Class SingleRegionKey.Builder (0.79.0)

public static final class SingleRegionKey.Builder extends GeneratedMessage.Builder<SingleRegionKey.Builder> implements SingleRegionKeyOrBuilder

Metadata for single-regional CMEKs.

Protobuf type google.cloud.discoveryengine.v1.SingleRegionKey

Static Methods

getDescriptor()

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

Methods

build()

public SingleRegionKey build()
Returns
Type Description
SingleRegionKey

buildPartial()

public SingleRegionKey buildPartial()
Returns
Type Description
SingleRegionKey

clear()

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

clearKmsKey()

public SingleRegionKey.Builder clearKmsKey()

Required. Single-regional kms key resource name which will be used to encrypt resources projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.

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

Returns
Type Description
SingleRegionKey.Builder

This builder for chaining.

getDefaultInstanceForType()

public SingleRegionKey getDefaultInstanceForType()
Returns
Type Description
SingleRegionKey

getDescriptorForType()

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

getKmsKey()

public String getKmsKey()

Required. Single-regional kms key resource name which will be used to encrypt resources projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.

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

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Required. Single-regional kms key resource name which will be used to encrypt resources projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.

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(SingleRegionKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKmsKey(String value)

public SingleRegionKey.Builder setKmsKey(String value)

Required. Single-regional kms key resource name which will be used to encrypt resources projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.

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
SingleRegionKey.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public SingleRegionKey.Builder setKmsKeyBytes(ByteString value)

Required. Single-regional kms key resource name which will be used to encrypt resources projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.

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
SingleRegionKey.Builder

This builder for chaining.