Interface DatabaseEncryptionOrBuilder (2.54.0)

public interface DatabaseEncryptionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCurrentState()

public abstract DatabaseEncryption.CurrentState getCurrentState()

Output only. The current state of etcd encryption.

optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatabaseEncryption.CurrentState

The currentState.

getCurrentStateValue()

public abstract int getCurrentStateValue()

Output only. The current state of etcd encryption.

optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for currentState.

getDecryptionKeys(int index)

public abstract String getDecryptionKeys(int index)

Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in key_name.

Each item is a CloudKMS key resource.

repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The decryptionKeys at the given index.

getDecryptionKeysBytes(int index)

public abstract ByteString getDecryptionKeysBytes(int index)

Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in key_name.

Each item is a CloudKMS key resource.

repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the decryptionKeys at the given index.

getDecryptionKeysCount()

public abstract int getDecryptionKeysCount()

Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in key_name.

Each item is a CloudKMS key resource.

repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of decryptionKeys.

getDecryptionKeysList()

public abstract List<String> getDecryptionKeysList()

Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in key_name.

Each item is a CloudKMS key resource.

repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<String>

A list containing the decryptionKeys.

getKeyName()

public abstract 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 abstract 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
Type Description
ByteString

The bytes for keyName.

getLastOperationErrors(int index)

public abstract DatabaseEncryption.OperationError getLastOperationErrors(int index)

Output only. Records errors seen during DatabaseEncryption update operations.

repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatabaseEncryption.OperationError

getLastOperationErrorsCount()

public abstract int getLastOperationErrorsCount()

Output only. Records errors seen during DatabaseEncryption update operations.

repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getLastOperationErrorsList()

public abstract List<DatabaseEncryption.OperationError> getLastOperationErrorsList()

Output only. Records errors seen during DatabaseEncryption update operations.

repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<OperationError>

getLastOperationErrorsOrBuilder(int index)

public abstract DatabaseEncryption.OperationErrorOrBuilder getLastOperationErrorsOrBuilder(int index)

Output only. Records errors seen during DatabaseEncryption update operations.

repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatabaseEncryption.OperationErrorOrBuilder

getLastOperationErrorsOrBuilderList()

public abstract List<? extends DatabaseEncryption.OperationErrorOrBuilder> getLastOperationErrorsOrBuilderList()

Output only. Records errors seen during DatabaseEncryption update operations.

repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.container.v1.DatabaseEncryption.OperationErrorOrBuilder>

getState()

public abstract DatabaseEncryption.State getState()

The desired state of etcd encryption.

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

Returns
Type Description
DatabaseEncryption.State

The state.

getStateValue()

public abstract int getStateValue()

The desired state of etcd encryption.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCurrentState()

public abstract boolean hasCurrentState()

Output only. The current state of etcd encryption.

optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the currentState field is set.