Class RestoreDatabaseEncryptionConfig.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<RestoreDatabaseEncryptionConfig.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<RestoreDatabaseEncryptionConfig.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public int getEncryptionTypeValue()
         Required. The encryption type of the restored database.
         
        .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEncryptionTypeValue in interface RestoreDatabaseEncryptionConfigOrBuilder
        Returns:
        The enum numeric value on the wire for encryptionType.
      • setEncryptionTypeValue

        public RestoreDatabaseEncryptionConfig.Builder setEncryptionTypeValue​(int value)
         Required. The encryption type of the restored database.
         
        .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for encryptionType to set.
        Returns:
        This builder for chaining.
      • setEncryptionType

        public RestoreDatabaseEncryptionConfig.Builder setEncryptionType​(RestoreDatabaseEncryptionConfig.EncryptionType value)
         Required. The encryption type of the restored database.
         
        .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The encryptionType to set.
        Returns:
        This builder for chaining.
      • clearEncryptionType

        public RestoreDatabaseEncryptionConfig.Builder clearEncryptionType()
         Required. The encryption type of the restored database.
         
        .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getKmsKeyName

        public String getKmsKeyName()
         Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
         database. This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
         `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
         `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
         
        string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getKmsKeyName in interface RestoreDatabaseEncryptionConfigOrBuilder
        Returns:
        The kmsKeyName.
      • getKmsKeyNameBytes

        public com.google.protobuf.ByteString getKmsKeyNameBytes()
         Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
         database. This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
         `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
         `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
         
        string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getKmsKeyNameBytes in interface RestoreDatabaseEncryptionConfigOrBuilder
        Returns:
        The bytes for kmsKeyName.
      • setKmsKeyName

        public RestoreDatabaseEncryptionConfig.Builder setKmsKeyName​(String value)
         Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
         database. This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
         `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
         `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
         
        string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The kmsKeyName to set.
        Returns:
        This builder for chaining.
      • clearKmsKeyName

        public RestoreDatabaseEncryptionConfig.Builder clearKmsKeyName()
         Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
         database. This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
         `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
         `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
         
        string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setKmsKeyNameBytes

        public RestoreDatabaseEncryptionConfig.Builder setKmsKeyNameBytes​(com.google.protobuf.ByteString value)
         Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
         database. This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
         `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
         `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
         
        string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for kmsKeyName to set.
        Returns:
        This builder for chaining.