Class Cluster.EncryptionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
com.google.bigtable.admin.v2.Cluster.EncryptionConfig.Builder
All Implemented Interfaces:
Cluster.EncryptionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Cluster.EncryptionConfig

public static final class Cluster.EncryptionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder> implements Cluster.EncryptionConfigOrBuilder
 Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected
 cluster.
 
Protobuf type google.bigtable.admin.v2.Cluster.EncryptionConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.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.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.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.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • getDefaultInstanceForType

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

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

      public Cluster.EncryptionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • setField

      public Cluster.EncryptionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • clearField

      public Cluster.EncryptionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • clearOneof

      public Cluster.EncryptionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • setRepeatedField

      public Cluster.EncryptionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • addRepeatedField

      public Cluster.EncryptionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • mergeFrom

      public Cluster.EncryptionConfig.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<Cluster.EncryptionConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public Cluster.EncryptionConfig.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<Cluster.EncryptionConfig.Builder>
      Throws:
      IOException
    • getKmsKeyName

      public String getKmsKeyName()
       Describes the Cloud KMS encryption key that will be used to protect the
       destination Bigtable cluster. The requirements for this key are:
        1) The Cloud Bigtable service account associated with the project that
        contains this cluster must be granted the
        `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
        2) Only regional keys can be used and the region of the CMEK key must
        match the region of the cluster.
        3) All clusters within an instance must use the same CMEK key.
       Values are of the form
       `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
       
      string kms_key_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyName in interface Cluster.EncryptionConfigOrBuilder
      Returns:
      The kmsKeyName.
    • getKmsKeyNameBytes

      public com.google.protobuf.ByteString getKmsKeyNameBytes()
       Describes the Cloud KMS encryption key that will be used to protect the
       destination Bigtable cluster. The requirements for this key are:
        1) The Cloud Bigtable service account associated with the project that
        contains this cluster must be granted the
        `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
        2) Only regional keys can be used and the region of the CMEK key must
        match the region of the cluster.
        3) All clusters within an instance must use the same CMEK key.
       Values are of the form
       `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
       
      string kms_key_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyNameBytes in interface Cluster.EncryptionConfigOrBuilder
      Returns:
      The bytes for kmsKeyName.
    • setKmsKeyName

      public Cluster.EncryptionConfig.Builder setKmsKeyName(String value)
       Describes the Cloud KMS encryption key that will be used to protect the
       destination Bigtable cluster. The requirements for this key are:
        1) The Cloud Bigtable service account associated with the project that
        contains this cluster must be granted the
        `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
        2) Only regional keys can be used and the region of the CMEK key must
        match the region of the cluster.
        3) All clusters within an instance must use the same CMEK key.
       Values are of the form
       `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
       
      string kms_key_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The kmsKeyName to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyName

      public Cluster.EncryptionConfig.Builder clearKmsKeyName()
       Describes the Cloud KMS encryption key that will be used to protect the
       destination Bigtable cluster. The requirements for this key are:
        1) The Cloud Bigtable service account associated with the project that
        contains this cluster must be granted the
        `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
        2) Only regional keys can be used and the region of the CMEK key must
        match the region of the cluster.
        3) All clusters within an instance must use the same CMEK key.
       Values are of the form
       `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
       
      string kms_key_name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setKmsKeyNameBytes

      public Cluster.EncryptionConfig.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
       Describes the Cloud KMS encryption key that will be used to protect the
       destination Bigtable cluster. The requirements for this key are:
        1) The Cloud Bigtable service account associated with the project that
        contains this cluster must be granted the
        `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
        2) Only regional keys can be used and the region of the CMEK key must
        match the region of the cluster.
        3) All clusters within an instance must use the same CMEK key.
       Values are of the form
       `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
       
      string kms_key_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for kmsKeyName to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Cluster.EncryptionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>
    • mergeUnknownFields

      public final Cluster.EncryptionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.EncryptionConfig.Builder>