Class ServiceControllerStubSettings (1.1.10)

publicclass ServiceControllerStubSettingsextendsStubSettings<ServiceControllerStubSettings>

Settings class to configure an instance of ServiceControllerStub.

The default instance has everything set to sensible defaults:

  • The default service address (servicecontrol.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of check to 30 seconds:


ServiceControllerStubSettings.BuilderserviceControllerSettingsBuilder=
ServiceControllerStubSettings.newBuilder();
serviceControllerSettingsBuilder
.checkSettings()
.setRetrySettings(
serviceControllerSettingsBuilder
.checkSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ServiceControllerStubSettingsserviceControllerSettings=
serviceControllerSettingsBuilder.build();

Inheritance

java.lang.Object > StubSettings > ServiceControllerStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
Type Description

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description

getDefaultMtlsEndpoint()

publicstaticStringgetDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description

newBuilder()

publicstaticServiceControllerStubSettings.BuildernewBuilder()

Returns a new builder for this class.

Returns
Type Description

newBuilder(ClientContext clientContext)

publicstaticServiceControllerStubSettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description

Constructors

ServiceControllerStubSettings(ServiceControllerStubSettings.Builder settingsBuilder)

protectedServiceControllerStubSettings(ServiceControllerStubSettings.BuildersettingsBuilder)
Parameter
Name Description

Methods

checkSettings()

publicUnaryCallSettings<CheckRequest,CheckResponse>checkSettings()

Returns the object with the settings used for calls to check.

Returns
Type Description

createStub()

publicServiceControllerStubcreateStub()
Returns
Type Description
Exceptions
Type Description

reportSettings()

publicUnaryCallSettings<ReportRequest,ReportResponse>reportSettings()

Returns the object with the settings used for calls to report.

Returns
Type Description

toBuilder()

publicServiceControllerStubSettings.BuildertoBuilder()

Returns a builder containing all the values of this settings class.

Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.