Class EndpointContext.Builder (2.47.0)

public abstract static class EndpointContext.Builder

Inheritance

java.lang.Object > EndpointContext.Builder

Constructors

Builder()

public Builder()

Methods

build()

public EndpointContext build()
Returns
Type Description
EndpointContext
Exceptions
Type Description
IOException

setClientSettingsEndpoint(String clientSettingsEndpoint)

public abstract EndpointContext.Builder setClientSettingsEndpoint(String clientSettingsEndpoint)

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

Parameter
Name Description
clientSettingsEndpoint String
Returns
Type Description
EndpointContext.Builder

setMtlsEndpoint(String mtlsEndpoint)

public abstract EndpointContext.Builder setMtlsEndpoint(String mtlsEndpoint)
Parameter
Name Description
mtlsEndpoint String
Returns
Type Description
EndpointContext.Builder

setMtlsProvider(MtlsProvider mtlsProvider)

public abstract EndpointContext.Builder setMtlsProvider(MtlsProvider mtlsProvider)
Parameter
Name Description
mtlsProvider MtlsProvider
Returns
Type Description
EndpointContext.Builder

setResolvedEndpoint(String resolvedEndpoint)

public abstract EndpointContext.Builder setResolvedEndpoint(String resolvedEndpoint)
Parameter
Name Description
resolvedEndpoint String
Returns
Type Description
EndpointContext.Builder

setResolvedUniverseDomain(String resolvedUniverseDomain)

public abstract EndpointContext.Builder setResolvedUniverseDomain(String resolvedUniverseDomain)
Parameter
Name Description
resolvedUniverseDomain String
Returns
Type Description
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
Name Description
serviceName String
Returns
Type Description
EndpointContext.Builder

setSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed)

public abstract EndpointContext.Builder setSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed)
Parameter
Name Description
switchToMtlsEndpointAllowed boolean
Returns
Type Description
EndpointContext.Builder

setTransportChannelProviderEndpoint(String transportChannelEndpoint)

public abstract EndpointContext.Builder setTransportChannelProviderEndpoint(String transportChannelEndpoint)

TransportChannelProviderEndpoint is the endpoint value set via the TransportChannelProvider class.

Parameter
Name Description
transportChannelEndpoint String
Returns
Type Description
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
Name Description
universeDomain String
Returns
Type Description
EndpointContext.Builder

setUsingGDCH(boolean usingGDCH)

public abstract EndpointContext.Builder setUsingGDCH(boolean usingGDCH)
Parameter
Name Description
usingGDCH boolean
Returns
Type Description
EndpointContext.Builder