Class BackupVault.EncryptionConfig.Builder (0.42.0)

public static final class BackupVault.EncryptionConfig.Builder extends GeneratedMessage.Builder<BackupVault.EncryptionConfig.Builder> implements BackupVault.EncryptionConfigOrBuilder

Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest.

Protobuf type google.cloud.backupdr.v1.BackupVault.EncryptionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BackupVault.EncryptionConfig build()
Returns
Type Description
BackupVault.EncryptionConfig

buildPartial()

public BackupVault.EncryptionConfig buildPartial()
Returns
Type Description
BackupVault.EncryptionConfig

clear()

public BackupVault.EncryptionConfig.Builder clear()
Returns
Type Description
BackupVault.EncryptionConfig.Builder
Overrides

clearKmsKeyName()

public BackupVault.EncryptionConfig.Builder clearKmsKeyName()

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupVault.EncryptionConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackupVault.EncryptionConfig getDefaultInstanceForType()
Returns
Type Description
BackupVault.EncryptionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKmsKeyName()

public String getKmsKeyName()

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKeyName.

hasKmsKeyName()

public boolean hasKmsKeyName()

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the kmsKeyName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupVault.EncryptionConfig other)

public BackupVault.EncryptionConfig.Builder mergeFrom(BackupVault.EncryptionConfig other)
Parameter
Name Description
other BackupVault.EncryptionConfig
Returns
Type Description
BackupVault.EncryptionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupVault.EncryptionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupVault.EncryptionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupVault.EncryptionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupVault.EncryptionConfig.Builder
Overrides

setKmsKeyName(String value)

public BackupVault.EncryptionConfig.Builder setKmsKeyName(String value)

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
BackupVault.EncryptionConfig.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public BackupVault.EncryptionConfig.Builder setKmsKeyNameBytes(ByteString value)

Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
BackupVault.EncryptionConfig.Builder

This builder for chaining.