Class EkmConnection.Builder (2.6.2)

public static final class EkmConnection.Builder extends GeneratedMessageV3.Builder<EkmConnection.Builder> implements EkmConnectionOrBuilder

An EkmConnection represents an individual EKM connection. It can be used for creating CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC, as well as performing cryptographic operations using keys created within the EkmConnection.

Protobuf type google.cloud.kms.v1.EkmConnection

Static Methods

getDescriptor()

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

Methods

addAllServiceResolvers(Iterable<? extends EkmConnection.ServiceResolver> values)

public EkmConnection.Builder addAllServiceResolvers(Iterable<? extends EkmConnection.ServiceResolver> values)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.kms.v1.EkmConnection.ServiceResolver>
Returns
TypeDescription
EkmConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceResolvers(EkmConnection.ServiceResolver value)

public EkmConnection.Builder addServiceResolvers(EkmConnection.ServiceResolver value)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
valueEkmConnection.ServiceResolver
Returns
TypeDescription
EkmConnection.Builder

addServiceResolvers(EkmConnection.ServiceResolver.Builder builderForValue)

public EkmConnection.Builder addServiceResolvers(EkmConnection.ServiceResolver.Builder builderForValue)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
builderForValueEkmConnection.ServiceResolver.Builder
Returns
TypeDescription
EkmConnection.Builder

addServiceResolvers(int index, EkmConnection.ServiceResolver value)

public EkmConnection.Builder addServiceResolvers(int index, EkmConnection.ServiceResolver value)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameters
NameDescription
indexint
valueEkmConnection.ServiceResolver
Returns
TypeDescription
EkmConnection.Builder

addServiceResolvers(int index, EkmConnection.ServiceResolver.Builder builderForValue)

public EkmConnection.Builder addServiceResolvers(int index, EkmConnection.ServiceResolver.Builder builderForValue)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameters
NameDescription
indexint
builderForValueEkmConnection.ServiceResolver.Builder
Returns
TypeDescription
EkmConnection.Builder

addServiceResolversBuilder()

public EkmConnection.ServiceResolver.Builder addServiceResolversBuilder()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

addServiceResolversBuilder(int index)

public EkmConnection.ServiceResolver.Builder addServiceResolversBuilder(int index)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

build()

public EkmConnection build()
Returns
TypeDescription
EkmConnection

buildPartial()

public EkmConnection buildPartial()
Returns
TypeDescription
EkmConnection

clear()

public EkmConnection.Builder clear()
Returns
TypeDescription
EkmConnection.Builder
Overrides

clearCreateTime()

public EkmConnection.Builder clearCreateTime()

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EkmConnection.Builder

clearEtag()

public EkmConnection.Builder clearEtag()

This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public EkmConnection.Builder clearName()

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

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

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceResolvers()

public EkmConnection.Builder clearServiceResolvers()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
EkmConnection.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public EkmConnection getDefaultInstanceForType()
Returns
TypeDescription
EkmConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

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 EkmConnection in the format projects/*/locations/*/ekmConnections/*.

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

Returns
TypeDescription
ByteString

The bytes for name.

getServiceResolvers(int index)

public EkmConnection.ServiceResolver getServiceResolvers(int index)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EkmConnection.ServiceResolver

getServiceResolversBuilder(int index)

public EkmConnection.ServiceResolver.Builder getServiceResolversBuilder(int index)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

getServiceResolversBuilderList()

public List<EkmConnection.ServiceResolver.Builder> getServiceResolversBuilderList()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
List<Builder>

getServiceResolversCount()

public int getServiceResolversCount()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
int

getServiceResolversList()

public List<EkmConnection.ServiceResolver> getServiceResolversList()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
List<ServiceResolver>

getServiceResolversOrBuilder(int index)

public EkmConnection.ServiceResolverOrBuilder getServiceResolversOrBuilder(int index)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EkmConnection.ServiceResolverOrBuilder

getServiceResolversOrBuilderList()

public List<? extends EkmConnection.ServiceResolverOrBuilder> getServiceResolversOrBuilderList()

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Returns
TypeDescription
List<? extends com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public EkmConnection.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
EkmConnection.Builder

mergeFrom(EkmConnection other)

public EkmConnection.Builder mergeFrom(EkmConnection other)
Parameter
NameDescription
otherEkmConnection
Returns
TypeDescription
EkmConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EkmConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EkmConnection.Builder
Overrides

removeServiceResolvers(int index)

public EkmConnection.Builder removeServiceResolvers(int index)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EkmConnection.Builder

setCreateTime(Timestamp value)

public EkmConnection.Builder setCreateTime(Timestamp value)

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
EkmConnection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EkmConnection.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the EkmConnection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
EkmConnection.Builder

setEtag(String value)

public EkmConnection.Builder setEtag(String value)

This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public EkmConnection.Builder setEtagBytes(ByteString value)

This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EkmConnection.Builder setName(String value)

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EkmConnection.Builder setNameBytes(ByteString value)

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

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

public EkmConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EkmConnection.Builder
Overrides

setServiceResolvers(int index, EkmConnection.ServiceResolver value)

public EkmConnection.Builder setServiceResolvers(int index, EkmConnection.ServiceResolver value)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameters
NameDescription
indexint
valueEkmConnection.ServiceResolver
Returns
TypeDescription
EkmConnection.Builder

setServiceResolvers(int index, EkmConnection.ServiceResolver.Builder builderForValue)

public EkmConnection.Builder setServiceResolvers(int index, EkmConnection.ServiceResolver.Builder builderForValue)

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;

Parameters
NameDescription
indexint
builderForValueEkmConnection.ServiceResolver.Builder
Returns
TypeDescription
EkmConnection.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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