Class DeveloperConnectSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<DeveloperConnectSettings>
com.google.cloud.developerconnect.v1.DeveloperConnectSettings
@Generated("by gapic-generator-java")
public class DeveloperConnectSettings
extends ClientSettings<DeveloperConnectSettings>
Settings class to configure an instance of
DeveloperConnectClient.
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](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.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
DeveloperConnectSettings.Builder developerConnectSettingsBuilder =
DeveloperConnectSettings.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());
DeveloperConnectSettings developerConnectSettings = developerConnectSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) 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
DeveloperConnectSettings.Builder developerConnectSettingsBuilder =
DeveloperConnectSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for DeveloperConnectSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeveloperConnectSettings(DeveloperConnectSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionstatic final DeveloperConnectSettingsReturns the object with the settings used for calls to createAccountConnector.Returns the object with the settings used for calls to createAccountConnector.Returns the object with the settings used for calls to createConnection.Returns the object with the settings used for calls to createConnection.Returns the object with the settings used for calls to createGitRepositoryLink.Returns the object with the settings used for calls to createGitRepositoryLink.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderOperationCallSettings<DeleteAccountConnectorRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteAccountConnector.Returns the object with the settings used for calls to deleteAccountConnector.OperationCallSettings<DeleteConnectionRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteConnection.Returns the object with the settings used for calls to deleteConnection.OperationCallSettings<DeleteGitRepositoryLinkRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteGitRepositoryLink.Returns the object with the settings used for calls to deleteGitRepositoryLink.OperationCallSettings<DeleteSelfRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteSelf.Returns the object with the settings used for calls to deleteSelf.OperationCallSettings<DeleteUserRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteUser.Returns the object with the settings used for calls to deleteUser.Returns the object with the settings used for calls to fetchAccessToken.Returns the object with the settings used for calls to fetchGitHubInstallations.PagedCallSettings<FetchGitRefsRequest,FetchGitRefsResponse, DeveloperConnectClient.FetchGitRefsPagedResponse> Returns the object with the settings used for calls to fetchGitRefs.PagedCallSettings<FetchLinkableGitRepositoriesRequest,FetchLinkableGitRepositoriesResponse, DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse> Returns the object with the settings used for calls to fetchLinkableGitRepositories.Returns the object with the settings used for calls to fetchReadToken.Returns the object with the settings used for calls to fetchReadWriteToken.Returns the object with the settings used for calls to fetchSelf.Returns the object with the settings used for calls to finishOAuth.Returns the object with the settings used for calls to getAccountConnector.Returns the object with the settings used for calls to getConnection.static StringReturns the default service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getGitRepositoryLink.Returns the object with the settings used for calls to getLocation.PagedCallSettings<ListAccountConnectorsRequest,ListAccountConnectorsResponse, DeveloperConnectClient.ListAccountConnectorsPagedResponse> Returns the object with the settings used for calls to listAccountConnectors.PagedCallSettings<ListConnectionsRequest,ListConnectionsResponse, DeveloperConnectClient.ListConnectionsPagedResponse> Returns the object with the settings used for calls to listConnections.PagedCallSettings<ListGitRepositoryLinksRequest,ListGitRepositoryLinksResponse, DeveloperConnectClient.ListGitRepositoryLinksPagedResponse> Returns the object with the settings used for calls to listGitRepositoryLinks.PagedCallSettings<ListLocationsRequest,ListLocationsResponse, DeveloperConnectClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations.Returns the object with the settings used for calls to listUsers.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.Returns the object with the settings used for calls to startOAuth.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateAccountConnector.Returns the object with the settings used for calls to updateAccountConnector.Returns the object with the settings used for calls to updateConnection.Returns the object with the settings used for calls to updateConnection.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toString
-
Constructor Details
-
DeveloperConnectSettings
protected DeveloperConnectSettings(DeveloperConnectSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
listConnectionsSettings
public PagedCallSettings<ListConnectionsRequest,ListConnectionsResponse, listConnectionsSettings()DeveloperConnectClient.ListConnectionsPagedResponse> Returns the object with the settings used for calls to listConnections. -
getConnectionSettings
Returns the object with the settings used for calls to getConnection. -
createConnectionSettings
Returns the object with the settings used for calls to createConnection. -
createConnectionOperationSettings
public OperationCallSettings<CreateConnectionRequest,Connection, createConnectionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createConnection. -
updateConnectionSettings
Returns the object with the settings used for calls to updateConnection. -
updateConnectionOperationSettings
public OperationCallSettings<UpdateConnectionRequest,Connection, updateConnectionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateConnection. -
deleteConnectionSettings
Returns the object with the settings used for calls to deleteConnection. -
deleteConnectionOperationSettings
public OperationCallSettings<DeleteConnectionRequest,com.google.protobuf.Empty, deleteConnectionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteConnection. -
createGitRepositoryLinkSettings
public UnaryCallSettings<CreateGitRepositoryLinkRequest,Operation> createGitRepositoryLinkSettings()Returns the object with the settings used for calls to createGitRepositoryLink. -
createGitRepositoryLinkOperationSettings
public OperationCallSettings<CreateGitRepositoryLinkRequest,GitRepositoryLink, createGitRepositoryLinkOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createGitRepositoryLink. -
deleteGitRepositoryLinkSettings
public UnaryCallSettings<DeleteGitRepositoryLinkRequest,Operation> deleteGitRepositoryLinkSettings()Returns the object with the settings used for calls to deleteGitRepositoryLink. -
deleteGitRepositoryLinkOperationSettings
public OperationCallSettings<DeleteGitRepositoryLinkRequest,com.google.protobuf.Empty, deleteGitRepositoryLinkOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteGitRepositoryLink. -
listGitRepositoryLinksSettings
public PagedCallSettings<ListGitRepositoryLinksRequest,ListGitRepositoryLinksResponse, listGitRepositoryLinksSettings()DeveloperConnectClient.ListGitRepositoryLinksPagedResponse> Returns the object with the settings used for calls to listGitRepositoryLinks. -
getGitRepositoryLinkSettings
public UnaryCallSettings<GetGitRepositoryLinkRequest,GitRepositoryLink> getGitRepositoryLinkSettings()Returns the object with the settings used for calls to getGitRepositoryLink. -
fetchReadWriteTokenSettings
public UnaryCallSettings<FetchReadWriteTokenRequest,FetchReadWriteTokenResponse> fetchReadWriteTokenSettings()Returns the object with the settings used for calls to fetchReadWriteToken. -
fetchReadTokenSettings
Returns the object with the settings used for calls to fetchReadToken. -
fetchLinkableGitRepositoriesSettings
public PagedCallSettings<FetchLinkableGitRepositoriesRequest,FetchLinkableGitRepositoriesResponse, fetchLinkableGitRepositoriesSettings()DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse> Returns the object with the settings used for calls to fetchLinkableGitRepositories. -
fetchGitHubInstallationsSettings
public UnaryCallSettings<FetchGitHubInstallationsRequest,FetchGitHubInstallationsResponse> fetchGitHubInstallationsSettings()Returns the object with the settings used for calls to fetchGitHubInstallations. -
fetchGitRefsSettings
public PagedCallSettings<FetchGitRefsRequest,FetchGitRefsResponse, fetchGitRefsSettings()DeveloperConnectClient.FetchGitRefsPagedResponse> Returns the object with the settings used for calls to fetchGitRefs. -
listAccountConnectorsSettings
public PagedCallSettings<ListAccountConnectorsRequest,ListAccountConnectorsResponse, listAccountConnectorsSettings()DeveloperConnectClient.ListAccountConnectorsPagedResponse> Returns the object with the settings used for calls to listAccountConnectors. -
getAccountConnectorSettings
Returns the object with the settings used for calls to getAccountConnector. -
createAccountConnectorSettings
Returns the object with the settings used for calls to createAccountConnector. -
createAccountConnectorOperationSettings
public OperationCallSettings<CreateAccountConnectorRequest,AccountConnector, createAccountConnectorOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createAccountConnector. -
updateAccountConnectorSettings
Returns the object with the settings used for calls to updateAccountConnector. -
updateAccountConnectorOperationSettings
public OperationCallSettings<UpdateAccountConnectorRequest,AccountConnector, updateAccountConnectorOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateAccountConnector. -
deleteAccountConnectorSettings
Returns the object with the settings used for calls to deleteAccountConnector. -
deleteAccountConnectorOperationSettings
public OperationCallSettings<DeleteAccountConnectorRequest,com.google.protobuf.Empty, deleteAccountConnectorOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteAccountConnector. -
fetchAccessTokenSettings
public UnaryCallSettings<FetchAccessTokenRequest,FetchAccessTokenResponse> fetchAccessTokenSettings()Returns the object with the settings used for calls to fetchAccessToken. -
listUsersSettings
public PagedCallSettings<ListUsersRequest,ListUsersResponse, listUsersSettings()DeveloperConnectClient.ListUsersPagedResponse> Returns the object with the settings used for calls to listUsers. -
deleteUserSettings
Returns the object with the settings used for calls to deleteUser. -
deleteUserOperationSettings
public OperationCallSettings<DeleteUserRequest,com.google.protobuf.Empty, deleteUserOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteUser. -
fetchSelfSettings
Returns the object with the settings used for calls to fetchSelf. -
deleteSelfSettings
Returns the object with the settings used for calls to deleteSelf. -
deleteSelfOperationSettings
public OperationCallSettings<DeleteSelfRequest,com.google.protobuf.Empty, deleteSelfOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteSelf. -
startOAuthSettings
Returns the object with the settings used for calls to startOAuth. -
finishOAuthSettings
Returns the object with the settings used for calls to finishOAuth. -
listLocationsSettings
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()DeveloperConnectClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations. -
getLocationSettings
Returns the object with the settings used for calls to getLocation. -
create
public static final DeveloperConnectSettings create(DeveloperConnectStubSettings stub) throws IOException - Throws:
IOException
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classClientSettings<DeveloperConnectSettings>
-