Class DatabaseEncryption.Builder (2.12.0)

public static final class DatabaseEncryption.Builder extends GeneratedMessageV3.Builder<DatabaseEncryption.Builder> implements DatabaseEncryptionOrBuilder

Configuration of etcd encryption.

Protobuf type google.container.v1beta1.DatabaseEncryption

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatabaseEncryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

build()

public DatabaseEncryption build()
Returns
TypeDescription
DatabaseEncryption

buildPartial()

public DatabaseEncryption buildPartial()
Returns
TypeDescription
DatabaseEncryption

clear()

public DatabaseEncryption.Builder clear()
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DatabaseEncryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

clearKeyName()

public DatabaseEncryption.Builder clearKeyName()

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key

string key_name = 1;

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DatabaseEncryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

clearState()

public DatabaseEncryption.Builder clearState()

Denotes the state of etcd encryption.

.google.container.v1beta1.DatabaseEncryption.State state = 2;

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

clone()

public DatabaseEncryption.Builder clone()
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

getDefaultInstanceForType()

public DatabaseEncryption getDefaultInstanceForType()
Returns
TypeDescription
DatabaseEncryption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeyName()

public String getKeyName()

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key

string key_name = 1;

Returns
TypeDescription
String

The keyName.

getKeyNameBytes()

public ByteString getKeyNameBytes()

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key

string key_name = 1;

Returns
TypeDescription
ByteString

The bytes for keyName.

getState()

public DatabaseEncryption.State getState()

Denotes the state of etcd encryption.

.google.container.v1beta1.DatabaseEncryption.State state = 2;

Returns
TypeDescription
DatabaseEncryption.State

The state.

getStateValue()

public int getStateValue()

Denotes the state of etcd encryption.

.google.container.v1beta1.DatabaseEncryption.State state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DatabaseEncryption other)

public DatabaseEncryption.Builder mergeFrom(DatabaseEncryption other)
Parameter
NameDescription
otherDatabaseEncryption
Returns
TypeDescription
DatabaseEncryption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatabaseEncryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DatabaseEncryption.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DatabaseEncryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

setKeyName(String value)

public DatabaseEncryption.Builder setKeyName(String value)

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key

string key_name = 1;

Parameter
NameDescription
valueString

The keyName to set.

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

setKeyNameBytes(ByteString value)

public DatabaseEncryption.Builder setKeyNameBytes(ByteString value)

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key

string key_name = 1;

Parameter
NameDescription
valueByteString

The bytes for keyName to set.

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DatabaseEncryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

setState(DatabaseEncryption.State value)

public DatabaseEncryption.Builder setState(DatabaseEncryption.State value)

Denotes the state of etcd encryption.

.google.container.v1beta1.DatabaseEncryption.State state = 2;

Parameter
NameDescription
valueDatabaseEncryption.State

The state to set.

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

setStateValue(int value)

public DatabaseEncryption.Builder setStateValue(int value)

Denotes the state of etcd encryption.

.google.container.v1beta1.DatabaseEncryption.State state = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
DatabaseEncryption.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseEncryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides