Class EkmConnection.ServiceResolver.Builder (2.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.kms.v1.Certificate>
Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EkmConnection.ServiceResolver.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueCertificate
Returns
TypeDescription
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
NameDescription
builderForValueCertificate.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCertificate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCertificate.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Certificate.Builder

build()

public EkmConnection.ServiceResolver build()
Returns
TypeDescription
EkmConnection.ServiceResolver

buildPartial()

public EkmConnection.ServiceResolver buildPartial()
Returns
TypeDescription
EkmConnection.ServiceResolver

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EkmConnection.ServiceResolver getDefaultInstanceForType()
Returns
TypeDescription
EkmConnection.ServiceResolver

getDescriptorForType()

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

The bytes for serviceDirectoryService.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EkmConnection.ServiceResolver other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The endpointFilter to set.

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

The bytes for endpointFilter to set.

Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The hostname to set.

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

The bytes for hostname to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueCertificate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCertificate.Builder
Returns
TypeDescription
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
NameDescription
valueString

The serviceDirectoryService to set.

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

The bytes for serviceDirectoryService to set.

Returns
TypeDescription
EkmConnection.ServiceResolver.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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