Package com.google.api.gax.rpc
Class StubSettings<SettingsT extends StubSettings<SettingsT>>
java.lang.Object
com.google.api.gax.rpc.StubSettings<SettingsT>
A base settings class to configure a client stub class.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStubSettings.Builder<SettingsT extends StubSettings<SettingsT>,B extends StubSettings.Builder<SettingsT, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStubSettings(StubSettings.Builder builder) Constructs an instance of StubSettings. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the API Key that should be used for authentication.final ExecutorProviderfinal ApiClockgetClock()final CredentialsProviderfinal ExecutorProviderDeprecated.final StringGets the GDCH API audience to be used withGdchCredentialsfinal HeaderProviderprotected final HeaderProviderfinal Stringfinal Stringprotected StringMarked with Internal Api and meant to overriden by the generated subclasses.final org.threeten.bp.DurationThis method is obsolete.final Durationfinal WatchdogProviderGets the configuredApiTracerFactorythat will be used to generate traces for operations.final TransportChannelProviderfinal Stringabstract StubSettings.BuildertoString()
-
Constructor Details
-
StubSettings
Constructs an instance of StubSettings.
-
-
Method Details
-
getExecutorProvider
Deprecated.Please usegetBackgroundExecutorProvider(). -
getBackgroundExecutorProvider
-
getTransportChannelProvider
-
getCredentialsProvider
-
getHeaderProvider
-
getInternalHeaderProvider
-
getClock
-
getServiceName
Marked with Internal Api and meant to overriden by the generated subclasses. This getter is used to set the serviceName to the EndpointContext. The value in generated StubSettings subclasses comes from the proto files.This should be effectively treated as an abstract method.
-
getUniverseDomain
- Returns:
- the fully resolved universe domain used by the client
-
getEndpoint
- Returns:
- the fully resolved endpoint used by the client
-
getMtlsEndpoint
-
getQuotaProjectId
-
getStreamWatchdogProvider
-
getStreamWatchdogCheckInterval
@Nonnull @ObsoleteApi("Use getStreamWatchdogCheckIntervalDuration() instead") public final org.threeten.bp.Duration getStreamWatchdogCheckInterval()This method is obsolete. UsegetStreamWatchdogCheckIntervalDuration()instead. -
getStreamWatchdogCheckIntervalDuration
-
getTracerFactory
@BetaApi("The surface for tracing is not stable yet and may change in the future.") @Nonnull public ApiTracerFactory getTracerFactory()Gets the configuredApiTracerFactorythat will be used to generate traces for operations. -
getGdchApiAudience
Gets the GDCH API audience to be used withGdchCredentials -
getApiKey
Gets the API Key that should be used for authentication. -
toString
-
toBuilder
-
getBackgroundExecutorProvider().