Class DatabaseEncryption (2.63.0)

publicfinalclassDatabaseEncryptionextendsGeneratedMessageV3implementsDatabaseEncryptionOrBuilder

Configuration of etcd encryption.

Protobuf type google.container.v1beta1.DatabaseEncryption

Static Fields

CURRENT_STATE_FIELD_NUMBER

publicstaticfinalintCURRENT_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

DECRYPTION_KEYS_FIELD_NUMBER

publicstaticfinalintDECRYPTION_KEYS_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_NAME_FIELD_NUMBER

publicstaticfinalintKEY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_OPERATION_ERRORS_FIELD_NUMBER

publicstaticfinalintLAST_OPERATION_ERRORS_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticDatabaseEncryptiongetDefaultInstance()
Returns
TypeDescription
DatabaseEncryption

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticDatabaseEncryption.BuildernewBuilder()
Returns
TypeDescription
DatabaseEncryption.Builder

newBuilder(DatabaseEncryption prototype)

publicstaticDatabaseEncryption.BuildernewBuilder(DatabaseEncryptionprototype)
Parameter
NameDescription
prototypeDatabaseEncryption
Returns
TypeDescription
DatabaseEncryption.Builder

parseDelimitedFrom(InputStream input)

publicstaticDatabaseEncryptionparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticDatabaseEncryptionparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDatabaseEncryptionparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDatabaseEncryptionparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticDatabaseEncryptionparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticDatabaseEncryptionparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDatabaseEncryptionparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<DatabaseEncryption>parser()
Returns
TypeDescription
Parser<DatabaseEncryption>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCurrentState()

publicDatabaseEncryption.CurrentStategetCurrentState()

Output only. The current state of etcd encryption.

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

Returns
TypeDescription
DatabaseEncryption.CurrentState

The currentState.

getCurrentStateValue()

publicintgetCurrentStateValue()

Output only. The current state of etcd encryption.

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

Returns
TypeDescription
int

The enum numeric value on the wire for currentState.

getDecryptionKeys(int index)

publicStringgetDecryptionKeys(intindex)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The decryptionKeys at the given index.

getDecryptionKeysBytes(int index)

publicByteStringgetDecryptionKeysBytes(intindex)

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the decryptionKeys at the given index.

getDecryptionKeysCount()

publicintgetDecryptionKeysCount()

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
TypeDescription
int

The count of decryptionKeys.

getDecryptionKeysList()

publicProtocolStringListgetDecryptionKeysList()

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
TypeDescription
ProtocolStringList

A list containing the decryptionKeys.

getDefaultInstanceForType()

publicDatabaseEncryptiongetDefaultInstanceForType()
Returns
TypeDescription
DatabaseEncryption

getKeyName()

publicStringgetKeyName()

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()

publicByteStringgetKeyNameBytes()

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.

getLastOperationErrors(int index)

publicDatabaseEncryption.OperationErrorgetLastOperationErrors(intindex)

Output only. Records errors seen during DatabaseEncryption update operations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseEncryption.OperationError

getLastOperationErrorsCount()

publicintgetLastOperationErrorsCount()

Output only. Records errors seen during DatabaseEncryption update operations.

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

Returns
TypeDescription
int

getLastOperationErrorsList()

publicList<DatabaseEncryption.OperationError>getLastOperationErrorsList()

Output only. Records errors seen during DatabaseEncryption update operations.

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

Returns
TypeDescription
List<OperationError>

getLastOperationErrorsOrBuilder(int index)

publicDatabaseEncryption.OperationErrorOrBuildergetLastOperationErrorsOrBuilder(intindex)

Output only. Records errors seen during DatabaseEncryption update operations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DatabaseEncryption.OperationErrorOrBuilder

getLastOperationErrorsOrBuilderList()

publicList<?extendsDatabaseEncryption.OperationErrorOrBuilder>getLastOperationErrorsOrBuilderList()

Output only. Records errors seen during DatabaseEncryption update operations.

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

Returns
TypeDescription
List<? extends com.google.container.v1beta1.DatabaseEncryption.OperationErrorOrBuilder>

getParserForType()

publicParser<DatabaseEncryption>getParserForType()
Returns
TypeDescription
Parser<DatabaseEncryption>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

publicDatabaseEncryption.StategetState()

The desired state of etcd encryption.

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

Returns
TypeDescription
DatabaseEncryption.State

The state.

getStateValue()

publicintgetStateValue()

The desired state of etcd encryption.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasCurrentState()

publicbooleanhasCurrentState()

Output only. The current state of etcd encryption.

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

Returns
TypeDescription
boolean

Whether the currentState field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicDatabaseEncryption.BuildernewBuilderForType()
Returns
TypeDescription
DatabaseEncryption.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDatabaseEncryption.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DatabaseEncryption.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicDatabaseEncryption.BuildertoBuilder()
Returns
TypeDescription
DatabaseEncryption.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException