Class EkmConfig.Builder (2.86.0)

public static final class EkmConfig.Builder extends GeneratedMessage.Builder<EkmConfig.Builder> implements EkmConfigOrBuilder

An EkmConfig is a singleton resource that represents configuration parameters that apply to all CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC in a given project and location.

Protobuf type google.cloud.kms.v1.EkmConfig

Implements

EkmConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public EkmConfig build()
Returns
Type Description
EkmConfig

buildPartial()

public EkmConfig buildPartial()
Returns
Type Description
EkmConfig

clear()

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

clearDefaultEkmConnection()

public EkmConfig.Builder clearDefaultEkmConnection()

Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

string default_ekm_connection = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
EkmConfig.Builder

This builder for chaining.

clearName()

public EkmConfig.Builder clearName()

Output only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EkmConfig.Builder

This builder for chaining.

getDefaultEkmConnection()

public String getDefaultEkmConnection()

Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

string default_ekm_connection = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The defaultEkmConnection.

getDefaultEkmConnectionBytes()

public ByteString getDefaultEkmConnectionBytes()

Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

string default_ekm_connection = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for defaultEkmConnection.

getDefaultInstanceForType()

public EkmConfig getDefaultInstanceForType()
Returns
Type Description
EkmConfig

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EkmConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDefaultEkmConnection(String value)

public EkmConfig.Builder setDefaultEkmConnection(String value)

Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

string default_ekm_connection = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The defaultEkmConnection to set.

Returns
Type Description
EkmConfig.Builder

This builder for chaining.

setDefaultEkmConnectionBytes(ByteString value)

public EkmConfig.Builder setDefaultEkmConnectionBytes(ByteString value)

Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

string default_ekm_connection = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for defaultEkmConnection to set.

Returns
Type Description
EkmConfig.Builder

This builder for chaining.

setName(String value)

public EkmConfig.Builder setName(String value)

Output only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EkmConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EkmConfig.Builder setNameBytes(ByteString value)

Output only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EkmConfig.Builder

This builder for chaining.