Package com.google.api.gax.rpc
Class ClientSettings<SettingsT extends ClientSettings<SettingsT>>
java.lang.Object
com.google.api.gax.rpc.ClientSettings<SettingsT>
A base settings class to configure a client 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 classClientSettings.Builder<SettingsT extends ClientSettings<SettingsT>,B extends ClientSettings.Builder<SettingsT, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientSettings(ClientSettings.Builder builder) Constructs an instance of ClientSettings. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the API Key that should be used for authentication.final ExecutorProviderfinal ApiClockgetClock()final CredentialsProviderfinal Stringfinal ExecutorProviderDeprecated.final StringGets the GDCH API audience that was previously set in this Builderfinal HeaderProviderprotected final HeaderProviderfinal Stringfinal StubSettingsfinal TransportChannelProviderfinal Stringfinal org.threeten.bp.DurationThis method is obsolete.final Durationfinal WatchdogProviderabstract <B extends ClientSettings.Builder<SettingsT,B>>
BtoString()
-
Constructor Details
-
ClientSettings
Constructs an instance of ClientSettings.- Throws:
IOException
-
-
Method Details
-
getStubSettings
-
getExecutorProvider
Deprecated.Please usegetBackgroundExecutorProvider() -
getBackgroundExecutorProvider
-
getTransportChannelProvider
-
getCredentialsProvider
-
getHeaderProvider
-
getInternalHeaderProvider
-
getClock
-
getUniverseDomain
-
getEndpoint
-
getQuotaProjectId
-
getWatchdogProvider
-
getApiKey
Gets the API Key that should be used for authentication. -
getWatchdogCheckInterval
@Nonnull @ObsoleteApi("Use getWatchdogCheckIntervalDuration() instead") public final org.threeten.bp.Duration getWatchdogCheckInterval()This method is obsolete. UsegetWatchdogCheckIntervalDuration()instead. -
getWatchdogCheckIntervalDuration
-
getGdchApiAudience
Gets the GDCH API audience that was previously set in this Builder -
toString
-
toBuilder
-
getBackgroundExecutorProvider()