public abstract static class ClientContext.Builder extends Object
| Constructor and Description |
|---|
Builder() |
public abstract ClientContext.Builder setBackgroundResources(List<BackgroundResource> backgroundResources)
public abstract ClientContext.Builder setExecutor(ScheduledExecutorService value)
public abstract ClientContext.Builder setCredentials(com.google.auth.Credentials value)
public abstract ClientContext.Builder setTransportChannel(TransportChannel transportChannel)
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public abstract ClientContext.Builder setHeaders(Map<String,String> headers)
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") protected abstract ClientContext.Builder setInternalHeaders(Map<String,String> headers)
public abstract ClientContext.Builder setClock(com.google.api.core.ApiClock clock)
public abstract ClientContext.Builder setDefaultCallContext(ApiCallContext defaultCallContext)
public abstract ClientContext.Builder setEndpoint(String endpoint)
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public abstract ClientContext.Builder setStreamWatchdog(Watchdog watchdog)
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public abstract ClientContext.Builder setStreamWatchdogCheckInterval(org.threeten.bp.Duration duration)
@BetaApi(value="The surface for tracing is not stable yet and may change in the future.") public abstract ClientContext.Builder setTracerFactory(ApiTracerFactory tracerFactory)
ApiTracerFactory that will be used to generate traces for operations.tracerFactory - an instance ApiTracerFactory.public abstract ClientContext build()