public static final class DatabaseEncryption.Builder extends GeneratedMessageV3.Builder<DatabaseEncryption.Builder> implements DatabaseEncryptionOrBuilder
Configuration of etcd encryption.
Protobuf type google.container.v1.DatabaseEncryption
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DatabaseEncryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DatabaseEncryption build()
Returns
buildPartial()
public DatabaseEncryption buildPartial()
Returns
clear()
public DatabaseEncryption.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DatabaseEncryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public DatabaseEncryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearState()
public DatabaseEncryption.Builder clearState()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
clone()
public DatabaseEncryption.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DatabaseEncryption getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
getState()
public DatabaseEncryption.State getState()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
getStateValue()
public int getStateValue()
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DatabaseEncryption other)
public DatabaseEncryption.Builder mergeFrom(DatabaseEncryption other)
Parameter
Returns
public DatabaseEncryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DatabaseEncryption.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DatabaseEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DatabaseEncryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The keyName to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for keyName to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DatabaseEncryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setState(DatabaseEncryption.State value)
public DatabaseEncryption.Builder setState(DatabaseEncryption.State value)
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Parameter
Returns
setStateValue(int value)
public DatabaseEncryption.Builder setStateValue(int value)
Denotes the state of etcd encryption.
.google.container.v1.DatabaseEncryption.State state = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for state to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final DatabaseEncryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides