Package com.google.api.gax.rpc
Class ClientContext.Builder
java.lang.Object
com.google.api.gax.rpc.ClientContext.Builder
- Enclosing class:
- ClientContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ClientContext
build()
abstract ClientContext.Builder
setBackgroundResources
(List<BackgroundResource> backgroundResources) abstract ClientContext.Builder
abstract ClientContext.Builder
setCredentials
(com.google.auth.Credentials value) abstract ClientContext.Builder
setDefaultCallContext
(ApiCallContext defaultCallContext) abstract ClientContext.Builder
setEndpoint
(String endpoint) abstract ClientContext.Builder
Sets the executor to use for running scheduled API call logic (such as retries and long-running operations).abstract ClientContext.Builder
setGdchApiAudience
(String gdchApiAudience) Sets the API audience used byGdchCredentials
It cannot be used if other type ofCredentials
is usedabstract ClientContext.Builder
setHeaders
(Map<String, String> headers) protected abstract ClientContext.Builder
setInternalHeaders
(Map<String, String> headers) abstract ClientContext.Builder
setQuotaProjectId
(String QuotaProjectId) abstract ClientContext.Builder
setStreamWatchdog
(Watchdog watchdog) abstract ClientContext.Builder
setStreamWatchdogCheckInterval
(org.threeten.bp.Duration duration) abstract ClientContext.Builder
setTracerFactory
(ApiTracerFactory tracerFactory) Set theApiTracerFactory
that will be used to generate traces for operations.abstract ClientContext.Builder
setTransportChannel
(TransportChannel transportChannel) abstract ClientContext.Builder
setUniverseDomain
(String universeDomain)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setBackgroundResources
public abstract ClientContext.Builder setBackgroundResources(List<BackgroundResource> backgroundResources) -
setExecutor
Sets the executor to use for running scheduled API call logic (such as retries and long-running operations). -
setCredentials
-
setTransportChannel
-
setHeaders
-
setInternalHeaders
-
setClock
-
setDefaultCallContext
-
setUniverseDomain
-
setEndpoint
-
setQuotaProjectId
-
setStreamWatchdog
-
setStreamWatchdogCheckInterval
public abstract ClientContext.Builder setStreamWatchdogCheckInterval(org.threeten.bp.Duration duration) -
setTracerFactory
@BetaApi("The surface for tracing is not stable yet and may change in the future.") public abstract ClientContext.Builder setTracerFactory(ApiTracerFactory tracerFactory) Set theApiTracerFactory
that will be used to generate traces for operations.- Parameters:
tracerFactory
- an instanceApiTracerFactory
.
-
setGdchApiAudience
Sets the API audience used byGdchCredentials
It cannot be used if other type ofCredentials
is usedIf the provided credentials already contain an api audience, it will be overriden by this one
- Parameters:
gdchApiAudience
- the audience to be used - must be a valid URI string
-
build
-