Class DatabaseEncryption.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
com.google.container.v1.DatabaseEncryption.Builder
All Implemented Interfaces:
DatabaseEncryptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DatabaseEncryption

public static final class DatabaseEncryption.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder> implements DatabaseEncryptionOrBuilder
 Configuration of etcd encryption.
 
Protobuf type google.container.v1.DatabaseEncryption
  • 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.Builder<DatabaseEncryption.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
    • getDefaultInstanceForType

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

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

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

      public DatabaseEncryption.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatabaseEncryption.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DatabaseEncryption.Builder>
    • mergeFrom

      public DatabaseEncryption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatabaseEncryption.Builder>
      Throws:
      IOException
    • 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.
    • setKeyName

      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;
      Parameters:
      value - The keyName to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setKeyNameBytes

      public DatabaseEncryption.Builder setKeyNameBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for keyName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public DatabaseEncryption.Builder setStateValue(int value)
       The desired state of etcd encryption.
       
      .google.container.v1.DatabaseEncryption.State state = 2;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

       The desired state of etcd encryption.
       
      .google.container.v1.DatabaseEncryption.State state = 2;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public DatabaseEncryption.Builder clearState()
       The desired state of etcd encryption.
       
      .google.container.v1.DatabaseEncryption.State state = 2;
      Returns:
      This builder for chaining.
    • 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.
    • setCurrentStateValue

      public DatabaseEncryption.Builder setCurrentStateValue(int value)
       Output only. The current state of etcd encryption.
       
      optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for currentState to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCurrentState

       Output only. The current state of etcd encryption.
       
      optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The currentState to set.
      Returns:
      This builder for chaining.
    • clearCurrentState

      public DatabaseEncryption.Builder clearCurrentState()
       Output only. The current state of etcd encryption.
       
      optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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.
    • setDecryptionKeys

      public DatabaseEncryption.Builder setDecryptionKeys(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The decryptionKeys to set.
      Returns:
      This builder for chaining.
    • addDecryptionKeys

      public DatabaseEncryption.Builder addDecryptionKeys(String value)
       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];
      Parameters:
      value - The decryptionKeys to add.
      Returns:
      This builder for chaining.
    • addAllDecryptionKeys

      public DatabaseEncryption.Builder addAllDecryptionKeys(Iterable<String> values)
       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];
      Parameters:
      values - The decryptionKeys to add.
      Returns:
      This builder for chaining.
    • clearDecryptionKeys

      public DatabaseEncryption.Builder clearDecryptionKeys()
       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:
      This builder for chaining.
    • addDecryptionKeysBytes

      public DatabaseEncryption.Builder addDecryptionKeysBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the decryptionKeys to add.
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setLastOperationErrors

      public DatabaseEncryption.Builder setLastOperationErrors(int index, DatabaseEncryption.OperationError value)
       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];
    • setLastOperationErrors

      public DatabaseEncryption.Builder setLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue)
       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];
    • addLastOperationErrors

      public DatabaseEncryption.Builder addLastOperationErrors(DatabaseEncryption.OperationError value)
       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];
    • addLastOperationErrors

      public DatabaseEncryption.Builder addLastOperationErrors(int index, DatabaseEncryption.OperationError value)
       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];
    • addLastOperationErrors

      public DatabaseEncryption.Builder addLastOperationErrors(DatabaseEncryption.OperationError.Builder builderForValue)
       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];
    • addLastOperationErrors

      public DatabaseEncryption.Builder addLastOperationErrors(int index, DatabaseEncryption.OperationError.Builder builderForValue)
       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];
    • addAllLastOperationErrors

      public DatabaseEncryption.Builder addAllLastOperationErrors(Iterable<? extends DatabaseEncryption.OperationError> values)
       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];
    • clearLastOperationErrors

      public DatabaseEncryption.Builder clearLastOperationErrors()
       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];
    • removeLastOperationErrors

      public DatabaseEncryption.Builder removeLastOperationErrors(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];
    • getLastOperationErrorsBuilder

      public DatabaseEncryption.OperationError.Builder getLastOperationErrorsBuilder(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];
    • 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
    • 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
    • addLastOperationErrorsBuilder

      public DatabaseEncryption.OperationError.Builder addLastOperationErrorsBuilder()
       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];
    • addLastOperationErrorsBuilder

      public DatabaseEncryption.OperationError.Builder addLastOperationErrorsBuilder(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];
    • getLastOperationErrorsBuilderList

      public List<DatabaseEncryption.OperationError.Builder> getLastOperationErrorsBuilderList()
       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];