Class EncryptionKey.Builder (0.20.0)

public static final class EncryptionKey.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EncryptionKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EncryptionKey.Builder
Overrides

build()

public EncryptionKey build()
Returns
TypeDescription
EncryptionKey

buildPartial()

public EncryptionKey buildPartial()
Returns
TypeDescription
EncryptionKey

clear()

public EncryptionKey.Builder clear()
Returns
TypeDescription
EncryptionKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EncryptionKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EncryptionKey.Builder
Overrides

clearGcpKmsEncryptionKey()

public EncryptionKey.Builder clearGcpKmsEncryptionKey()

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

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

Returns
TypeDescription
EncryptionKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EncryptionKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EncryptionKey.Builder
Overrides

clone()

public EncryptionKey.Builder clone()
Returns
TypeDescription
EncryptionKey.Builder
Overrides

getDefaultInstanceForType()

public EncryptionKey getDefaultInstanceForType()
Returns
TypeDescription
EncryptionKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcpKmsEncryptionKey()

public String getGcpKmsEncryptionKey()

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

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

Returns
TypeDescription
String

The gcpKmsEncryptionKey.

getGcpKmsEncryptionKeyBytes()

public ByteString getGcpKmsEncryptionKeyBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for gcpKmsEncryptionKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EncryptionKey other)

public EncryptionKey.Builder mergeFrom(EncryptionKey other)
Parameter
NameDescription
otherEncryptionKey
Returns
TypeDescription
EncryptionKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EncryptionKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EncryptionKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EncryptionKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EncryptionKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EncryptionKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EncryptionKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public EncryptionKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EncryptionKey.Builder
Overrides

setGcpKmsEncryptionKey(String value)

public EncryptionKey.Builder setGcpKmsEncryptionKey(String value)

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

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

Parameter
NameDescription
valueString

The gcpKmsEncryptionKey to set.

Returns
TypeDescription
EncryptionKey.Builder

This builder for chaining.

setGcpKmsEncryptionKeyBytes(ByteString value)

public EncryptionKey.Builder setGcpKmsEncryptionKeyBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for gcpKmsEncryptionKey to set.

Returns
TypeDescription
EncryptionKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EncryptionKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EncryptionKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EncryptionKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EncryptionKey.Builder
Overrides