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

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

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

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

        public CreateBackupEncryptionConfig.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<CreateBackupEncryptionConfig.Builder>
        Throws:
        IOException
      • getEncryptionTypeValue

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

        public CreateBackupEncryptionConfig.Builder setEncryptionTypeValue​(int value)
         Required. The encryption type of the backup.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 CreateBackupEncryptionConfig.Builder setEncryptionType​(CreateBackupEncryptionConfig.EncryptionType value)
         Required. The encryption type of the backup.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The encryptionType to set.
        Returns:
        This builder for chaining.
      • clearEncryptionType

        public CreateBackupEncryptionConfig.Builder clearEncryptionType()
         Required. The encryption type of the backup.
         
        .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 protect the backup.
         This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 CreateBackupEncryptionConfigOrBuilder
        Returns:
        The kmsKeyName.
      • getKmsKeyNameBytes

        public com.google.protobuf.ByteString getKmsKeyNameBytes()
         Optional. The Cloud KMS key that will be used to protect the backup.
         This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 CreateBackupEncryptionConfigOrBuilder
        Returns:
        The bytes for kmsKeyName.
      • setKmsKeyName

        public CreateBackupEncryptionConfig.Builder setKmsKeyName​(String value)
         Optional. The Cloud KMS key that will be used to protect the backup.
         This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 CreateBackupEncryptionConfig.Builder clearKmsKeyName()
         Optional. The Cloud KMS key that will be used to protect the backup.
         This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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 CreateBackupEncryptionConfig.Builder setKmsKeyNameBytes​(com.google.protobuf.ByteString value)
         Optional. The Cloud KMS key that will be used to protect the backup.
         This field should be set only when
         [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.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.