Class Cluster.EncryptionConfig.Builder

    • Method Detail

      • 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>
      • 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
      • 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>
      • 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>