Class DatabaseEncryption

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.DatabaseEncryption
All Implemented Interfaces:
DatabaseEncryptionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DatabaseEncryption extends com.google.protobuf.GeneratedMessage implements DatabaseEncryptionOrBuilder
 Configuration of etcd encryption.
 
Protobuf type google.container.v1.DatabaseEncryption
See Also:
  • Field Details

    • KEY_NAME_FIELD_NUMBER

      public static final int KEY_NAME_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • CURRENT_STATE_FIELD_NUMBER

      public static final int CURRENT_STATE_FIELD_NUMBER
      See Also:
    • DECRYPTION_KEYS_FIELD_NUMBER

      public static final int DECRYPTION_KEYS_FIELD_NUMBER
      See Also:
    • LAST_OPERATION_ERRORS_FIELD_NUMBER

      public static final int LAST_OPERATION_ERRORS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      getKeyName in interface DatabaseEncryptionOrBuilder
      Returns:
      The keyName.
    • getKeyNameBytes

      public com.google.protobuf.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;
      Specified by:
      getKeyNameBytes in interface DatabaseEncryptionOrBuilder
      Returns:
      The bytes for keyName.
    • getStateValue

      public int getStateValue()
       The desired state of etcd encryption.
       
      .google.container.v1.DatabaseEncryption.State state = 2;
      Specified by:
      getStateValue in interface DatabaseEncryptionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public DatabaseEncryption.State getState()
       The desired state of etcd encryption.
       
      .google.container.v1.DatabaseEncryption.State state = 2;
      Specified by:
      getState in interface DatabaseEncryptionOrBuilder
      Returns:
      The state.
    • hasCurrentState

      public 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];
      Specified by:
      hasCurrentState in interface DatabaseEncryptionOrBuilder
      Returns:
      Whether the currentState field is set.
    • getCurrentStateValue

      public 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];
      Specified by:
      getCurrentStateValue in interface DatabaseEncryptionOrBuilder
      Returns:
      The enum numeric value on the wire for currentState.
    • getCurrentState

      public 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];
      Specified by:
      getCurrentState in interface DatabaseEncryptionOrBuilder
      Returns:
      The currentState.
    • getDecryptionKeysList

      public com.google.protobuf.ProtocolStringList 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];
      Specified by:
      getDecryptionKeysList in interface DatabaseEncryptionOrBuilder
      Returns:
      A list containing the decryptionKeys.
    • getDecryptionKeysCount

      public 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];
      Specified by:
      getDecryptionKeysCount in interface DatabaseEncryptionOrBuilder
      Returns:
      The count of decryptionKeys.
    • getDecryptionKeys

      public 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];
      Specified by:
      getDecryptionKeys in interface DatabaseEncryptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The decryptionKeys at the given index.
    • getDecryptionKeysBytes

      public com.google.protobuf.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];
      Specified by:
      getDecryptionKeysBytes in interface DatabaseEncryptionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the decryptionKeys at the given index.
    • getLastOperationErrorsList

      public 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];
      Specified by:
      getLastOperationErrorsList in interface DatabaseEncryptionOrBuilder
    • getLastOperationErrorsOrBuilderList

      public 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];
      Specified by:
      getLastOperationErrorsOrBuilderList in interface DatabaseEncryptionOrBuilder
    • getLastOperationErrorsCount

      public 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];
      Specified by:
      getLastOperationErrorsCount in interface DatabaseEncryptionOrBuilder
    • getLastOperationErrors

      public 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];
      Specified by:
      getLastOperationErrors in interface DatabaseEncryptionOrBuilder
    • getLastOperationErrorsOrBuilder

      public 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];
      Specified by:
      getLastOperationErrorsOrBuilder in interface DatabaseEncryptionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DatabaseEncryption parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DatabaseEncryption parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DatabaseEncryption parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DatabaseEncryption parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DatabaseEncryption parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DatabaseEncryption parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DatabaseEncryption parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DatabaseEncryption.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DatabaseEncryption.Builder newBuilder()
    • newBuilder

      public static DatabaseEncryption.Builder newBuilder(DatabaseEncryption prototype)
    • toBuilder

      public DatabaseEncryption.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DatabaseEncryption.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DatabaseEncryption getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DatabaseEncryption> parser()
    • getParserForType

      public com.google.protobuf.Parser<DatabaseEncryption> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DatabaseEncryption getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder