Class CreateEkmConnectionRequest.Builder (2.5.2)

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

Request message for [KeyManagementService.CreateEkmConnection][].

Protobuf type google.cloud.kms.v1.CreateEkmConnectionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEkmConnectionRequest build()
Returns
TypeDescription
CreateEkmConnectionRequest

buildPartial()

public CreateEkmConnectionRequest buildPartial()
Returns
TypeDescription
CreateEkmConnectionRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateEkmConnectionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateEkmConnectionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateEkmConnectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateEkmConnectionRequest.Builder

This builder for chaining.

clone()

public CreateEkmConnectionRequest.Builder clone()
Returns
TypeDescription
CreateEkmConnectionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateEkmConnectionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateEkmConnectionRequest

getDescriptorForType()

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

Whether the ekmConnection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueEkmConnection
Returns
TypeDescription
CreateEkmConnectionRequest.Builder

mergeFrom(CreateEkmConnectionRequest other)

public CreateEkmConnectionRequest.Builder mergeFrom(CreateEkmConnectionRequest other)
Parameter
NameDescription
otherCreateEkmConnectionRequest
Returns
TypeDescription
CreateEkmConnectionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The ekmConnectionId to set.

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

The bytes for ekmConnectionId to set.

Returns
TypeDescription
CreateEkmConnectionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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