Class EncryptionSpec.Builder (2.95.0)

public static final class EncryptionSpec.Builder extends GeneratedMessage.Builder<EncryptionSpec.Builder> implements EncryptionSpecOrBuilder

The configuration used for encrypting data at rest.

Protobuf type google.cloud.security.privateca.v1.EncryptionSpec

Static Methods

getDescriptor()

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

Methods

build()

public EncryptionSpec build()
Returns
Type Description
EncryptionSpec

buildPartial()

public EncryptionSpec buildPartial()
Returns
Type Description
EncryptionSpec

clear()

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

clearCloudKmsKey()

public EncryptionSpec.Builder clearCloudKmsKey()

The resource name for a Cloud KMS key in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

string cloud_kms_key = 1;

Returns
Type Description
EncryptionSpec.Builder

This builder for chaining.

getCloudKmsKey()

public String getCloudKmsKey()

The resource name for a Cloud KMS key in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

string cloud_kms_key = 1;

Returns
Type Description
String

The cloudKmsKey.

getCloudKmsKeyBytes()

public ByteString getCloudKmsKeyBytes()

The resource name for a Cloud KMS key in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

string cloud_kms_key = 1;

Returns
Type Description
ByteString

The bytes for cloudKmsKey.

getDefaultInstanceForType()

public EncryptionSpec getDefaultInstanceForType()
Returns
Type Description
EncryptionSpec

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EncryptionSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCloudKmsKey(String value)

public EncryptionSpec.Builder setCloudKmsKey(String value)

The resource name for a Cloud KMS key in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

string cloud_kms_key = 1;

Parameter
Name Description
value String

The cloudKmsKey to set.

Returns
Type Description
EncryptionSpec.Builder

This builder for chaining.

setCloudKmsKeyBytes(ByteString value)

public EncryptionSpec.Builder setCloudKmsKeyBytes(ByteString value)

The resource name for a Cloud KMS key in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

string cloud_kms_key = 1;

Parameter
Name Description
value ByteString

The bytes for cloudKmsKey to set.

Returns
Type Description
EncryptionSpec.Builder

This builder for chaining.