Class EkmConfig.Builder (2.48.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EkmConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EkmConfig.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public EkmConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EkmConfig.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public EkmConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EkmConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EkmConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public EkmConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EkmConfig.Builder
Overrides

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.

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

public EkmConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EkmConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EkmConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EkmConfig.Builder
Overrides