Class EkmConfig.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EkmConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EkmConfig.Builder
Overrides

build()

public EkmConfig build()
Returns
TypeDescription
EkmConfig

buildPartial()

public EkmConfig buildPartial()
Returns
TypeDescription
EkmConfig

clear()

public EkmConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
EkmConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EkmConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
EkmConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EkmConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EkmConfig.Builder
Overrides

clone()

public EkmConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultEkmConnection.

getDefaultInstanceForType()

public EkmConfig getDefaultInstanceForType()
Returns
TypeDescription
EkmConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EkmConfig other)

public EkmConfig.Builder mergeFrom(EkmConfig other)
Parameter
NameDescription
otherEkmConfig
Returns
TypeDescription
EkmConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EkmConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EkmConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EkmConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EkmConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EkmConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The defaultEkmConnection to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultEkmConnection to set.

Returns
TypeDescription
EkmConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EkmConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EkmConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EkmConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EkmConfig.Builder
Overrides