Package com.google.api.gax.rpc
Class EndpointContext.Builder
java.lang.Object
com.google.api.gax.rpc.EndpointContext.Builder
- Enclosing class:
- EndpointContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()abstract EndpointContext.BuildersetClientSettingsEndpoint(String clientSettingsEndpoint) ClientSettingsEndpoint is the endpoint value set via the ClientSettings/StubSettings classes.abstract EndpointContext.BuildersetMtlsEndpoint(String mtlsEndpoint) abstract EndpointContext.BuildersetMtlsProvider(MtlsProvider mtlsProvider) abstract EndpointContext.BuildersetResolvedEndpoint(String resolvedEndpoint) abstract EndpointContext.BuildersetResolvedUniverseDomain(String resolvedUniverseDomain) abstract EndpointContext.BuildersetServiceName(String serviceName) ServiceName is host URI for Google Cloud Services.abstract EndpointContext.BuildersetSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed) abstract EndpointContext.BuildersetTransportChannelProviderEndpoint(String transportChannelEndpoint) TransportChannelProviderEndpoint is the endpoint value set via the TransportChannelProvider class.abstract EndpointContext.BuildersetUniverseDomain(String universeDomain) Universe Domain is the domain for Google Cloud Services.abstract EndpointContext.BuildersetUsingGDCH(boolean usingGDCH)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setServiceName
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. -
setUniverseDomain
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`. -
setClientSettingsEndpoint
ClientSettingsEndpoint is the endpoint value set via the ClientSettings/StubSettings classes. -
setTransportChannelProviderEndpoint
public abstract EndpointContext.Builder setTransportChannelProviderEndpoint(String transportChannelEndpoint) TransportChannelProviderEndpoint is the endpoint value set via the TransportChannelProvider class. -
setMtlsEndpoint
-
setSwitchToMtlsEndpointAllowed
public abstract EndpointContext.Builder setSwitchToMtlsEndpointAllowed(boolean switchToMtlsEndpointAllowed) -
setMtlsProvider
-
setUsingGDCH
-
setResolvedEndpoint
-
setResolvedUniverseDomain
-
build
- Throws:
IOException
-