Class DeveloperConnectStubSettings (0.29.0)

publicclass DeveloperConnectStubSettingsextendsStubSettings<DeveloperConnectStubSettings>

Settings class to configure an instance of DeveloperConnectStub.

The default instance has everything set to sensible defaults:

  • The default service address (developerconnect.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 RetrySettings of getConnection:


// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DeveloperConnectStubSettings.BuilderdeveloperConnectSettingsBuilder=
DeveloperConnectStubSettings.newBuilder();
developerConnectSettingsBuilder
.getConnectionSettings()
.setRetrySettings(
developerConnectSettingsBuilder
.getConnectionSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
DeveloperConnectStubSettingsdeveloperConnectSettings=developerConnectSettingsBuilder.build();

Please refer to the Client Side Retry Guide for additional support in setting retries.

To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for createConnection:


// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DeveloperConnectStubSettings.BuilderdeveloperConnectSettingsBuilder=
DeveloperConnectStubSettings.newBuilder();
TimedRetryAlgorithmtimedRetryAlgorithm=
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
developerConnectSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();

Inheritance

java.lang.Object > StubSettings > DeveloperConnectStubSettings

Inherited Members

Static Methods

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultMtlsEndpoint()

publicstaticStringgetDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

publicstaticDeveloperConnectStubSettings.BuildernewBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
DeveloperConnectStubSettings.Builder

newBuilder(ClientContext clientContext)

publicstaticDeveloperConnectStubSettings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
DeveloperConnectStubSettings.Builder

newHttpJsonBuilder()

publicstaticDeveloperConnectStubSettings.BuildernewHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
DeveloperConnectStubSettings.Builder

Constructors

DeveloperConnectStubSettings(DeveloperConnectStubSettings.Builder settingsBuilder)

protectedDeveloperConnectStubSettings(DeveloperConnectStubSettings.BuildersettingsBuilder)
Parameter
Name Description
settingsBuilder DeveloperConnectStubSettings.Builder

Methods

createAccountConnectorOperationSettings()

publicOperationCallSettings<CreateAccountConnectorRequest,AccountConnector,OperationMetadata>createAccountConnectorOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateAccountConnectorRequest,AccountConnector,OperationMetadata>

createAccountConnectorSettings()

publicUnaryCallSettings<CreateAccountConnectorRequest,Operation>createAccountConnectorSettings()

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

Returns
Type Description
UnaryCallSettings<CreateAccountConnectorRequest,Operation>

createConnectionOperationSettings()

publicOperationCallSettings<CreateConnectionRequest,Connection,OperationMetadata>createConnectionOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateConnectionRequest,Connection,OperationMetadata>

createConnectionSettings()

publicUnaryCallSettings<CreateConnectionRequest,Operation>createConnectionSettings()

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

Returns
Type Description
UnaryCallSettings<CreateConnectionRequest,Operation>

createGitRepositoryLinkOperationSettings()

publicOperationCallSettings<CreateGitRepositoryLinkRequest,GitRepositoryLink,OperationMetadata>createGitRepositoryLinkOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateGitRepositoryLinkRequest,GitRepositoryLink,OperationMetadata>

createGitRepositoryLinkSettings()

publicUnaryCallSettings<CreateGitRepositoryLinkRequest,Operation>createGitRepositoryLinkSettings()

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

Returns
Type Description
UnaryCallSettings<CreateGitRepositoryLinkRequest,Operation>

createStub()

publicDeveloperConnectStubcreateStub()
Returns
Type Description
DeveloperConnectStub
Exceptions
Type Description
IOException

deleteAccountConnectorOperationSettings()

publicOperationCallSettings<DeleteAccountConnectorRequest,Empty,OperationMetadata>deleteAccountConnectorOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteAccountConnectorRequest,Empty,OperationMetadata>

deleteAccountConnectorSettings()

publicUnaryCallSettings<DeleteAccountConnectorRequest,Operation>deleteAccountConnectorSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteAccountConnectorRequest,Operation>

deleteConnectionOperationSettings()

publicOperationCallSettings<DeleteConnectionRequest,Empty,OperationMetadata>deleteConnectionOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteConnectionRequest,Empty,OperationMetadata>

deleteConnectionSettings()

publicUnaryCallSettings<DeleteConnectionRequest,Operation>deleteConnectionSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteConnectionRequest,Operation>

deleteGitRepositoryLinkOperationSettings()

publicOperationCallSettings<DeleteGitRepositoryLinkRequest,Empty,OperationMetadata>deleteGitRepositoryLinkOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteGitRepositoryLinkRequest,Empty,OperationMetadata>

deleteGitRepositoryLinkSettings()

publicUnaryCallSettings<DeleteGitRepositoryLinkRequest,Operation>deleteGitRepositoryLinkSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteGitRepositoryLinkRequest,Operation>

deleteSelfOperationSettings()

publicOperationCallSettings<DeleteSelfRequest,Empty,OperationMetadata>deleteSelfOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteSelfRequest,Empty,OperationMetadata>

deleteSelfSettings()

publicUnaryCallSettings<DeleteSelfRequest,Operation>deleteSelfSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteSelfRequest,Operation>

deleteUserOperationSettings()

publicOperationCallSettings<DeleteUserRequest,Empty,OperationMetadata>deleteUserOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteUserRequest,Empty,OperationMetadata>

deleteUserSettings()

publicUnaryCallSettings<DeleteUserRequest,Operation>deleteUserSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteUserRequest,Operation>

fetchAccessTokenSettings()

publicUnaryCallSettings<FetchAccessTokenRequest,FetchAccessTokenResponse>fetchAccessTokenSettings()

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

Returns
Type Description
UnaryCallSettings<FetchAccessTokenRequest,FetchAccessTokenResponse>

fetchGitHubInstallationsSettings()

publicUnaryCallSettings<FetchGitHubInstallationsRequest,FetchGitHubInstallationsResponse>fetchGitHubInstallationsSettings()

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

Returns
Type Description
UnaryCallSettings<FetchGitHubInstallationsRequest,FetchGitHubInstallationsResponse>

fetchGitRefsSettings()

publicPagedCallSettings<FetchGitRefsRequest,FetchGitRefsResponse,DeveloperConnectClient.FetchGitRefsPagedResponse>fetchGitRefsSettings()

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

Returns
Type Description
PagedCallSettings<FetchGitRefsRequest,FetchGitRefsResponse,FetchGitRefsPagedResponse>

fetchLinkableGitRepositoriesSettings()

publicPagedCallSettings<FetchLinkableGitRepositoriesRequest,FetchLinkableGitRepositoriesResponse,DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse>fetchLinkableGitRepositoriesSettings()

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

Returns
Type Description
PagedCallSettings<FetchLinkableGitRepositoriesRequest,FetchLinkableGitRepositoriesResponse,FetchLinkableGitRepositoriesPagedResponse>

fetchReadTokenSettings()

publicUnaryCallSettings<FetchReadTokenRequest,FetchReadTokenResponse>fetchReadTokenSettings()

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

Returns
Type Description
UnaryCallSettings<FetchReadTokenRequest,FetchReadTokenResponse>

fetchReadWriteTokenSettings()

publicUnaryCallSettings<FetchReadWriteTokenRequest,FetchReadWriteTokenResponse>fetchReadWriteTokenSettings()

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

Returns
Type Description
UnaryCallSettings<FetchReadWriteTokenRequest,FetchReadWriteTokenResponse>

fetchSelfSettings()

publicUnaryCallSettings<FetchSelfRequest,User>fetchSelfSettings()

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

Returns
Type Description
UnaryCallSettings<FetchSelfRequest,User>

getAccountConnectorSettings()

publicUnaryCallSettings<GetAccountConnectorRequest,AccountConnector>getAccountConnectorSettings()

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

Returns
Type Description
UnaryCallSettings<GetAccountConnectorRequest,AccountConnector>

getConnectionSettings()

publicUnaryCallSettings<GetConnectionRequest,Connection>getConnectionSettings()

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

Returns
Type Description
UnaryCallSettings<GetConnectionRequest,Connection>

getGitRepositoryLinkSettings()

publicUnaryCallSettings<GetGitRepositoryLinkRequest,GitRepositoryLink>getGitRepositoryLinkSettings()

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

Returns
Type Description
UnaryCallSettings<GetGitRepositoryLinkRequest,GitRepositoryLink>

getLocationSettings()

publicUnaryCallSettings<GetLocationRequest,Location>getLocationSettings()

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

Returns
Type Description
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getServiceName()

publicStringgetServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

listAccountConnectorsSettings()

publicPagedCallSettings<ListAccountConnectorsRequest,ListAccountConnectorsResponse,DeveloperConnectClient.ListAccountConnectorsPagedResponse>listAccountConnectorsSettings()

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

Returns
Type Description
PagedCallSettings<ListAccountConnectorsRequest,ListAccountConnectorsResponse,ListAccountConnectorsPagedResponse>

listConnectionsSettings()

publicPagedCallSettings<ListConnectionsRequest,ListConnectionsResponse,DeveloperConnectClient.ListConnectionsPagedResponse>listConnectionsSettings()

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

Returns
Type Description
PagedCallSettings<ListConnectionsRequest,ListConnectionsResponse,ListConnectionsPagedResponse>

listGitRepositoryLinksSettings()

publicPagedCallSettings<ListGitRepositoryLinksRequest,ListGitRepositoryLinksResponse,DeveloperConnectClient.ListGitRepositoryLinksPagedResponse>listGitRepositoryLinksSettings()

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

Returns
Type Description
PagedCallSettings<ListGitRepositoryLinksRequest,ListGitRepositoryLinksResponse,ListGitRepositoryLinksPagedResponse>

listLocationsSettings()

publicPagedCallSettings<ListLocationsRequest,ListLocationsResponse,DeveloperConnectClient.ListLocationsPagedResponse>listLocationsSettings()

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

Returns
Type Description
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listUsersSettings()

publicPagedCallSettings<ListUsersRequest,ListUsersResponse,DeveloperConnectClient.ListUsersPagedResponse>listUsersSettings()

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

Returns
Type Description
PagedCallSettings<ListUsersRequest,ListUsersResponse,ListUsersPagedResponse>

toBuilder()

publicDeveloperConnectStubSettings.BuildertoBuilder()

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

Returns
Type Description
DeveloperConnectStubSettings.Builder
Overrides

updateAccountConnectorOperationSettings()

publicOperationCallSettings<UpdateAccountConnectorRequest,AccountConnector,OperationMetadata>updateAccountConnectorOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateAccountConnectorRequest,AccountConnector,OperationMetadata>

updateAccountConnectorSettings()

publicUnaryCallSettings<UpdateAccountConnectorRequest,Operation>updateAccountConnectorSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateAccountConnectorRequest,Operation>

updateConnectionOperationSettings()

publicOperationCallSettings<UpdateConnectionRequest,Connection,OperationMetadata>updateConnectionOperationSettings()

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

Returns
Type Description
OperationCallSettings<UpdateConnectionRequest,Connection,OperationMetadata>

updateConnectionSettings()

publicUnaryCallSettings<UpdateConnectionRequest,Operation>updateConnectionSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateConnectionRequest,Operation>

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.