public abstract class StubSettings<SettingsT extends StubSettings<SettingsT>> extends Object
This base class includes settings that are applicable to all services, which includes things like settings for creating an executor, credentials, transport-specific settings, and identifiers for http headers.
If no ExecutorProvider is set, then InstantiatingExecutorProvider will be used, which creates a default executor.
| Modifier and Type | Class and Description |
|---|---|
static class |
StubSettings.Builder<SettingsT extends StubSettings<SettingsT>,B extends StubSettings.Builder<SettingsT,B>> |
| Modifier | Constructor and Description |
|---|---|
protected |
StubSettings(StubSettings.Builder builder)
Constructs an instance of StubSettings.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiKey() |
ExecutorProvider |
getBackgroundExecutorProvider() |
com.google.api.core.ApiClock |
getClock() |
CredentialsProvider |
getCredentialsProvider() |
String |
getEndpoint() |
ExecutorProvider |
getExecutorProvider()
Deprecated.
Please use
getBackgroundExecutorProvider(). |
HeaderProvider |
getHeaderProvider() |
protected HeaderProvider |
getInternalHeaderProvider() |
String |
getMtlsEndpoint() |
String |
getQuotaProjectId() |
org.threeten.bp.Duration |
getStreamWatchdogCheckInterval() |
WatchdogProvider |
getStreamWatchdogProvider() |
ApiTracerFactory |
getTracerFactory()
Gets the configured
ApiTracerFactory that will be used to generate traces for
operations. |
TransportChannelProvider |
getTransportChannelProvider() |
abstract StubSettings.Builder |
toBuilder() |
String |
toString() |
protected StubSettings(StubSettings.Builder builder)
@Deprecated public final ExecutorProvider getExecutorProvider()
getBackgroundExecutorProvider().public final ExecutorProvider getBackgroundExecutorProvider()
public final TransportChannelProvider getTransportChannelProvider()
public final CredentialsProvider getCredentialsProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public final HeaderProvider getHeaderProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") protected final HeaderProvider getInternalHeaderProvider()
public final com.google.api.core.ApiClock getClock()
public final String getEndpoint()
public final String getMtlsEndpoint()
public final String getQuotaProjectId()
public final String getApiKey()
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @Nullable public final WatchdogProvider getStreamWatchdogProvider()
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @Nonnull public final org.threeten.bp.Duration getStreamWatchdogCheckInterval()
@BetaApi(value="The surface for tracing is not stable yet and may change in the future.") @Nonnull public ApiTracerFactory getTracerFactory()
ApiTracerFactory that will be used to generate traces for
operations.public abstract StubSettings.Builder toBuilder()