Class EncryptionKey.Builder (0.86.0)

public static final class EncryptionKey.Builder extends GeneratedMessage.Builder<EncryptionKey.Builder> implements EncryptionKeyOrBuilder

Defined a customer managed encryption key that will be used to encrypt Backup artifacts.

Protobuf type google.cloud.gkebackup.v1.EncryptionKey

Static Methods

getDescriptor()

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

Methods

build()

public EncryptionKey build()
Returns
Type Description
EncryptionKey

buildPartial()

public EncryptionKey buildPartial()
Returns
Type Description
EncryptionKey

clear()

public EncryptionKey.Builder clear()
Returns
Type Description
EncryptionKey.Builder
Overrides

clearGcpKmsEncryptionKey()

public EncryptionKey.Builder clearGcpKmsEncryptionKey()

Optional. Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

getDefaultInstanceForType()

public EncryptionKey getDefaultInstanceForType()
Returns
Type Description
EncryptionKey

getDescriptorForType()

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

getGcpKmsEncryptionKey()

public String getGcpKmsEncryptionKey()

Optional. Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Returns
Type Description
String

The gcpKmsEncryptionKey.

getGcpKmsEncryptionKeyBytes()

public ByteString getGcpKmsEncryptionKeyBytes()

Optional. Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Returns
Type Description
ByteString

The bytes for gcpKmsEncryptionKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EncryptionKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGcpKmsEncryptionKey(String value)

public EncryptionKey.Builder setGcpKmsEncryptionKey(String value)

Optional. Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Parameter
Name Description
value String

The gcpKmsEncryptionKey to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.

setGcpKmsEncryptionKeyBytes(ByteString value)

public EncryptionKey.Builder setGcpKmsEncryptionKeyBytes(ByteString value)

Optional. Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Parameter
Name Description
value ByteString

The bytes for gcpKmsEncryptionKey to set.

Returns
Type Description
EncryptionKey.Builder

This builder for chaining.