Class EndpointContext.Builder (2.46.1)

public abstract static class EndpointContext.Builder

Inheritance

java.lang.Object > EndpointContext.Builder

Constructors

Builder()

public Builder()

Methods

build()

public EndpointContext build()
Returns
TypeDescription
EndpointContext
Exceptions
TypeDescription
IOException

setClientSettingsEndpoint(String clientSettingsEndpoint)

public abstract EndpointContext.Builder setClientSettingsEndpoint(String clientSettingsEndpoint)

ClientSettingsEndpoint is the endpoint value set via the ClientSettings/StubSettings classes.

Parameter
NameDescription
clientSettingsEndpointString
Returns
TypeDescription
EndpointContext.Builder

setMtlsEndpoint(String mtlsEndpoint)

public abstract EndpointContext.Builder setMtlsEndpoint(String mtlsEndpoint)
Parameter
NameDescription
mtlsEndpointString
Returns
TypeDescription
EndpointContext.Builder

setMtlsProvider(MtlsProvider mtlsProvider)

public abstract EndpointContext.Builder setMtlsProvider(MtlsProvider mtlsProvider)
Parameter
NameDescription
mtlsProviderMtlsProvider
Returns
TypeDescription
EndpointContext.Builder

setResolvedEndpoint(String resolvedEndpoint)

public abstract EndpointContext.Builder setResolvedEndpoint(String resolvedEndpoint)
Parameter
NameDescription
resolvedEndpointString
Returns
TypeDescription
EndpointContext.Builder

setResolvedUniverseDomain(String resolvedUniverseDomain)

public abstract EndpointContext.Builder setResolvedUniverseDomain(String resolvedUniverseDomain)
Parameter
NameDescription
resolvedUniverseDomainString
Returns
TypeDescription
EndpointContext.Builder

setServiceName(String serviceName)

public abstract EndpointContext.Builder setServiceName(String serviceName)

ServiceName is host URI for Google Cloud Services. It follows the format of {ServiceName}.googleapis.com. For example, speech.googleapis.com would have a ServiceName of speech and cloudasset.googleapis.com would have a ServiceName of cloudasset.

Parameter
NameDescription
serviceNameString
Returns
TypeDescription
EndpointContext.Builder

setSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed)

public abstract EndpointContext.Builder setSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed)
Parameter
NameDescription
switchToMtlsEndpointAllowedboolean
Returns
TypeDescription
EndpointContext.Builder

setTransportChannelProviderEndpoint(String transportChannelEndpoint)

public abstract EndpointContext.Builder setTransportChannelProviderEndpoint(String transportChannelEndpoint)

TransportChannelProviderEndpoint is the endpoint value set via the TransportChannelProvider class.

Parameter
NameDescription
transportChannelEndpointString
Returns
TypeDescription
EndpointContext.Builder

setUniverseDomain(String universeDomain)

public abstract EndpointContext.Builder setUniverseDomain(String universeDomain)

Universe Domain is the domain for Google Cloud Services. It follows the format of {ServiceName}.{UniverseDomain}. For example, speech.googleapis.com would have a Universe Domain value of googleapis.com and cloudasset.test.com would have a Universe Domain of test.com. If this value is not set, this will default to googleapis.com.

Parameter
NameDescription
universeDomainString
Returns
TypeDescription
EndpointContext.Builder

setUsingGDCH(boolean usingGDCH)

public abstract EndpointContext.Builder setUsingGDCH(boolean usingGDCH)
Parameter
NameDescription
usingGDCHboolean
Returns
TypeDescription
EndpointContext.Builder