Class VersionsSettings (2.2.0)

publicclass VersionsSettingsextendsClientSettings<VersionsSettings>

Settings class to configure an instance of VersionsClient.

The default instance has everything set to sensible defaults:

  • The default service address (appengine.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 getVersion to 30 seconds:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
VersionsSettings.BuilderversionsSettingsBuilder=VersionsSettings.newBuilder();
versionsSettingsBuilder
.getVersionSettings()
.setRetrySettings(
versionsSettingsBuilder
.getVersionSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
VersionsSettingsversionsSettings=versionsSettingsBuilder.build();

Inheritance

java.lang.Object > ClientSettings > VersionsSettings

Static Methods

create(VersionsStubSettings stub)

publicstaticfinalVersionsSettingscreate(VersionsStubSettingsstub)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

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

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description

newBuilder()

publicstaticVersionsSettings.BuildernewBuilder()

Returns a new builder for this class.

Returns
Type Description

newBuilder(ClientContext clientContext)

publicstaticVersionsSettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description

Constructors

VersionsSettings(VersionsSettings.Builder settingsBuilder)

protectedVersionsSettings(VersionsSettings.BuildersettingsBuilder)
Parameter
Name Description
settingsBuilder VersionsSettings.Builder

Methods

createVersionOperationSettings()

publicOperationCallSettings<CreateVersionRequest,Version,CreateVersionMetadataV1>createVersionOperationSettings()

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

Returns
Type Description

createVersionSettings()

publicUnaryCallSettings<CreateVersionRequest,Operation>createVersionSettings()

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

Returns
Type Description

deleteVersionOperationSettings()

publicOperationCallSettings<DeleteVersionRequest,Empty,OperationMetadataV1>deleteVersionOperationSettings()

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

Returns
Type Description

deleteVersionSettings()

publicUnaryCallSettings<DeleteVersionRequest,Operation>deleteVersionSettings()

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

Returns
Type Description

getVersionSettings()

publicUnaryCallSettings<GetVersionRequest,Version>getVersionSettings()

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

Returns
Type Description

listVersionsSettings()

publicPagedCallSettings<ListVersionsRequest,ListVersionsResponse,VersionsClient.ListVersionsPagedResponse>listVersionsSettings()

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

Returns
Type Description

toBuilder()

publicVersionsSettings.BuildertoBuilder()

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

Returns
Type Description
Overrides

updateVersionOperationSettings()

publicOperationCallSettings<UpdateVersionRequest,Version,OperationMetadataV1>updateVersionOperationSettings()

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

Returns
Type Description

updateVersionSettings()

publicUnaryCallSettings<UpdateVersionRequest,Operation>updateVersionSettings()

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

Returns
Type Description

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年10月30日 UTC.