Class Encryption.Builder (1.83.0)

public static final class Encryption.Builder extends GeneratedMessage.Builder<Encryption.Builder> implements EncryptionOrBuilder

Encryption message describes the details of the applied encryption.

Protobuf type google.cloud.vmmigration.v1.Encryption

Implements

EncryptionOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Encryption build()
Returns
Type Description
Encryption

buildPartial()

public Encryption buildPartial()
Returns
Type Description
Encryption

clear()

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

clearKmsKey()

public Encryption.Builder clearKmsKey()

Required. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Encryption.Builder

This builder for chaining.

getDefaultInstanceForType()

public Encryption getDefaultInstanceForType()
Returns
Type Description
Encryption

getDescriptorForType()

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

getKmsKey()

public String getKmsKey()

Required. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Required. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Encryption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKmsKey(String value)

public Encryption.Builder setKmsKey(String value)

Required. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
Encryption.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public Encryption.Builder setKmsKeyBytes(ByteString value)

Required. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
Encryption.Builder

This builder for chaining.