@BetaApi("The surface for streaming is not stable yet and may change in the future.") public B setWatchdogCheckInterval(@Nullable Duration checkInterval) { stubSettings.setStreamWatchdogCheckInterval(checkInterval); return self(); }
@BetaApi("The surface for streaming is not stable yet and may change in the future.") public B setWatchdogProvider(@Nullable WatchdogProvider watchdogProvider) { stubSettings.setStreamWatchdogProvider(watchdogProvider); return self(); }
@BetaApi("The surface for streaming is not stable yet and may change in the future.") public B setWatchdogCheckInterval(@Nullable Duration checkInterval) { stubSettings.setStreamWatchdogCheckInterval(checkInterval); return self(); }
public B setEndpoint(String endpoint) { stubSettings.setEndpoint(endpoint); return self(); }
/** * Sets the clock to use for retry logic. * * <p>This will default to a system clock if it is not set. */ public B setClock(ApiClock clock) { stubSettings.setClock(clock); return self(); }
/** * Sets the TransportProvider to use for getting the transport-specific context to make calls * with. */ public B setTransportChannelProvider(TransportChannelProvider transportChannelProvider) { stubSettings.setTransportChannelProvider(transportChannelProvider); return self(); }
/** * Sets the ExecutorProvider to use for getting the executor to use for running asynchronous API * call logic (such as retries and long-running operations), and also to pass to the transport * settings if an executor is needed for the transport and it doesn't have its own executor * provider. */ public B setExecutorProvider(ExecutorProvider executorProvider) { stubSettings.setExecutorProvider(executorProvider); return self(); }
/** * Sets the HeaderProvider for getting internal (library-defined) static headers for http * requests. The header provider will be called during client construction only once. The * headers returned by the provider will be cached and supplied as is for each request issued by * the constructed client. Some reserved headers can be overridden (e.g. Content-Type) or merged * with the default value (e.g. User-Agent) by the underlying transport layer. */ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") protected B setInternalHeaderProvider(HeaderProvider internalHeaderProvider) { stubSettings.setInternalHeaderProvider(internalHeaderProvider); return self(); }
/** Sets the CredentialsProvider to use for getting the credentials to make calls with. */ public B setCredentialsProvider(CredentialsProvider credentialsProvider) { stubSettings.setCredentialsProvider(credentialsProvider); return self(); }
@BetaApi("The surface for streaming is not stable yet and may change in the future.") public B setWatchdogProvider(@Nullable WatchdogProvider watchdogProvider) { stubSettings.setStreamWatchdogProvider(watchdogProvider); return self(); }
/** * Sets the HeaderProvider for getting custom static headers for http requests. The header * provider will be called during client construction only once. The headers returned by the * provider will be cached and supplied as is for each request issued by the constructed client. * Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value * (e.g. User-Agent) by the underlying transport layer. */ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public B setHeaderProvider(HeaderProvider headerProvider) { stubSettings.setHeaderProvider(headerProvider); return self(); }
public B setEndpoint(String endpoint) { stubSettings.setEndpoint(endpoint); return self(); }
/** * Sets the TransportProvider to use for getting the transport-specific context to make calls * with. */ public B setTransportChannelProvider(TransportChannelProvider transportChannelProvider) { stubSettings.setTransportChannelProvider(transportChannelProvider); return self(); }
/** * Sets the ExecutorProvider to use for getting the executor to use for running asynchronous API * call logic (such as retries and long-running operations), and also to pass to the transport * settings if an executor is needed for the transport and it doesn't have its own executor * provider. */ public B setExecutorProvider(ExecutorProvider executorProvider) { stubSettings.setExecutorProvider(executorProvider); return self(); }
/** * Sets the HeaderProvider for getting custom static headers for http requests. The header * provider will be called during client construction only once. The headers returned by the * provider will be cached and supplied as is for each request issued by the constructed client. * Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value * (e.g. User-Agent) by the underlying transport layer. */ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public B setHeaderProvider(HeaderProvider headerProvider) { stubSettings.setHeaderProvider(headerProvider); return self(); }
/** * Sets the HeaderProvider for getting internal (library-defined) static headers for http * requests. The header provider will be called during client construction only once. The * headers returned by the provider will be cached and supplied as is for each request issued by * the constructed client. Some reserved headers can be overridden (e.g. Content-Type) or merged * with the default value (e.g. User-Agent) by the underlying transport layer. */ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") protected B setInternalHeaderProvider(HeaderProvider internalHeaderProvider) { stubSettings.setInternalHeaderProvider(internalHeaderProvider); return self(); }
/** Sets the CredentialsProvider to use for getting the credentials to make calls with. */ public B setCredentialsProvider(CredentialsProvider credentialsProvider) { stubSettings.setCredentialsProvider(credentialsProvider); return self(); }
/** * Sets the clock to use for retry logic. * * <p>This will default to a system clock if it is not set. */ public B setClock(ApiClock clock) { stubSettings.setClock(clock); return self(); }