Class CreateEkmConnectionRequest.Builder (2.50.0)

public static final class CreateEkmConnectionRequest.Builder extends GeneratedMessageV3.Builder<CreateEkmConnectionRequest.Builder> implements CreateEkmConnectionRequestOrBuilder

Request message for EkmService.CreateEkmConnection.

Protobuf type google.cloud.kms.v1.CreateEkmConnectionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEkmConnectionRequest build()
Returns
Type Description
CreateEkmConnectionRequest

buildPartial()

public CreateEkmConnectionRequest buildPartial()
Returns
Type Description
CreateEkmConnectionRequest

clear()

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

clearEkmConnection()

public CreateEkmConnectionRequest.Builder clearEkmConnection()

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEkmConnectionRequest.Builder

clearEkmConnectionId()

public CreateEkmConnectionRequest.Builder clearEkmConnectionId()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateEkmConnectionRequest.Builder clearParent()

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

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

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateEkmConnectionRequest getDefaultInstanceForType()
Returns
Type Description
CreateEkmConnectionRequest

getDescriptorForType()

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

getEkmConnection()

public EkmConnection getEkmConnection()

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EkmConnection

The ekmConnection.

getEkmConnectionBuilder()

public EkmConnection.Builder getEkmConnectionBuilder()

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EkmConnection.Builder

getEkmConnectionId()

public String getEkmConnectionId()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The ekmConnectionId.

getEkmConnectionIdBytes()

public ByteString getEkmConnectionIdBytes()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for ekmConnectionId.

getEkmConnectionOrBuilder()

public EkmConnectionOrBuilder getEkmConnectionOrBuilder()

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EkmConnectionOrBuilder

getParent()

public String getParent()

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

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

Returns
Type Description
ByteString

The bytes for parent.

hasEkmConnection()

public boolean hasEkmConnection()

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the ekmConnection field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEkmConnection(EkmConnection value)

public CreateEkmConnectionRequest.Builder mergeEkmConnection(EkmConnection value)

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EkmConnection
Returns
Type Description
CreateEkmConnectionRequest.Builder

mergeFrom(CreateEkmConnectionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateEkmConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateEkmConnectionRequest.Builder
Overrides

setEkmConnection(EkmConnection value)

public CreateEkmConnectionRequest.Builder setEkmConnection(EkmConnection value)

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EkmConnection
Returns
Type Description
CreateEkmConnectionRequest.Builder

setEkmConnection(EkmConnection.Builder builderForValue)

public CreateEkmConnectionRequest.Builder setEkmConnection(EkmConnection.Builder builderForValue)

Required. An EkmConnection with initial field values.

.google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EkmConnection.Builder
Returns
Type Description
CreateEkmConnectionRequest.Builder

setEkmConnectionId(String value)

public CreateEkmConnectionRequest.Builder setEkmConnectionId(String value)

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The ekmConnectionId to set.

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

setEkmConnectionIdBytes(ByteString value)

public CreateEkmConnectionRequest.Builder setEkmConnectionIdBytes(ByteString value)

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for ekmConnectionId to set.

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateEkmConnectionRequest.Builder setParent(String value)

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEkmConnectionRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateEkmConnectionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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