Class EkmConnection.ServiceResolver.Builder (2.55.0)

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

A ServiceResolver represents an EKM replica that can be reached within an EkmConnection.

Protobuf type google.cloud.kms.v1.EkmConnection.ServiceResolver

Static Methods

getDescriptor()

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

Methods

addAllServerCertificates(Iterable<? extends Certificate> values)

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

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.kms.v1.Certificate>
Returns
Type Description
EkmConnection.ServiceResolver.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServerCertificates(Certificate value)

public EkmConnection.ServiceResolver.Builder addServerCertificates(Certificate value)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Certificate
Returns
Type Description
EkmConnection.ServiceResolver.Builder

addServerCertificates(Certificate.Builder builderForValue)

public EkmConnection.ServiceResolver.Builder addServerCertificates(Certificate.Builder builderForValue)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Certificate.Builder
Returns
Type Description
EkmConnection.ServiceResolver.Builder

addServerCertificates(int index, Certificate value)

public EkmConnection.ServiceResolver.Builder addServerCertificates(int index, Certificate value)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Certificate
Returns
Type Description
EkmConnection.ServiceResolver.Builder

addServerCertificates(int index, Certificate.Builder builderForValue)

public EkmConnection.ServiceResolver.Builder addServerCertificates(int index, Certificate.Builder builderForValue)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Certificate.Builder
Returns
Type Description
EkmConnection.ServiceResolver.Builder

addServerCertificatesBuilder()

public Certificate.Builder addServerCertificatesBuilder()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Certificate.Builder

addServerCertificatesBuilder(int index)

public Certificate.Builder addServerCertificatesBuilder(int index)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Certificate.Builder

build()

public EkmConnection.ServiceResolver build()
Returns
Type Description
EkmConnection.ServiceResolver

buildPartial()

public EkmConnection.ServiceResolver buildPartial()
Returns
Type Description
EkmConnection.ServiceResolver

clear()

public EkmConnection.ServiceResolver.Builder clear()
Returns
Type Description
EkmConnection.ServiceResolver.Builder
Overrides

clearEndpointFilter()

public EkmConnection.ServiceResolver.Builder clearEndpointFilter()

Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHostname()

public EkmConnection.ServiceResolver.Builder clearHostname()

Required. The hostname of the EKM replica used at TLS and HTTP layers.

string hostname = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServerCertificates()

public EkmConnection.ServiceResolver.Builder clearServerCertificates()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EkmConnection.ServiceResolver.Builder

clearServiceDirectoryService()

public EkmConnection.ServiceResolver.Builder clearServiceDirectoryService()

Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*.

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

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

clone()

public EkmConnection.ServiceResolver.Builder clone()
Returns
Type Description
EkmConnection.ServiceResolver.Builder
Overrides

getDefaultInstanceForType()

public EkmConnection.ServiceResolver getDefaultInstanceForType()
Returns
Type Description
EkmConnection.ServiceResolver

getDescriptorForType()

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

getEndpointFilter()

public String getEndpointFilter()

Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The endpointFilter.

getEndpointFilterBytes()

public ByteString getEndpointFilterBytes()

Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for endpointFilter.

getHostname()

public String getHostname()

Required. The hostname of the EKM replica used at TLS and HTTP layers.

string hostname = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. The hostname of the EKM replica used at TLS and HTTP layers.

string hostname = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostname.

getServerCertificates(int index)

public Certificate getServerCertificates(int index)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Certificate

getServerCertificatesBuilder(int index)

public Certificate.Builder getServerCertificatesBuilder(int index)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Certificate.Builder

getServerCertificatesBuilderList()

public List<Certificate.Builder> getServerCertificatesBuilderList()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getServerCertificatesCount()

public int getServerCertificatesCount()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getServerCertificatesList()

public List<Certificate> getServerCertificatesList()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Certificate>

getServerCertificatesOrBuilder(int index)

public CertificateOrBuilder getServerCertificatesOrBuilder(int index)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CertificateOrBuilder

getServerCertificatesOrBuilderList()

public List<? extends CertificateOrBuilder> getServerCertificatesOrBuilderList()

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.kms.v1.CertificateOrBuilder>

getServiceDirectoryService()

public String getServiceDirectoryService()

Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*.

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

Returns
Type Description
String

The serviceDirectoryService.

getServiceDirectoryServiceBytes()

public ByteString getServiceDirectoryServiceBytes()

Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*.

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

Returns
Type Description
ByteString

The bytes for serviceDirectoryService.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EkmConnection.ServiceResolver other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeServerCertificates(int index)

public EkmConnection.ServiceResolver.Builder removeServerCertificates(int index)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EkmConnection.ServiceResolver.Builder

setEndpointFilter(String value)

public EkmConnection.ServiceResolver.Builder setEndpointFilter(String value)

Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The endpointFilter to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setEndpointFilterBytes(ByteString value)

public EkmConnection.ServiceResolver.Builder setEndpointFilterBytes(ByteString value)

Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for endpointFilter to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostname(String value)

public EkmConnection.ServiceResolver.Builder setHostname(String value)

Required. The hostname of the EKM replica used at TLS and HTTP layers.

string hostname = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public EkmConnection.ServiceResolver.Builder setHostnameBytes(ByteString value)

Required. The hostname of the EKM replica used at TLS and HTTP layers.

string hostname = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

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

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

setServerCertificates(int index, Certificate value)

public EkmConnection.ServiceResolver.Builder setServerCertificates(int index, Certificate value)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Certificate
Returns
Type Description
EkmConnection.ServiceResolver.Builder

setServerCertificates(int index, Certificate.Builder builderForValue)

public EkmConnection.ServiceResolver.Builder setServerCertificates(int index, Certificate.Builder builderForValue)

Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.

repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Certificate.Builder
Returns
Type Description
EkmConnection.ServiceResolver.Builder

setServiceDirectoryService(String value)

public EkmConnection.ServiceResolver.Builder setServiceDirectoryService(String value)

Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*.

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

Parameter
Name Description
value String

The serviceDirectoryService to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setServiceDirectoryServiceBytes(ByteString value)

public EkmConnection.ServiceResolver.Builder setServiceDirectoryServiceBytes(ByteString value)

Required. The resource name of the Service Directory service pointing to an EKM replica, in the format projects/*/locations/*/namespaces/*/services/*.

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

Parameter
Name Description
value ByteString

The bytes for serviceDirectoryService to set.

Returns
Type Description
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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