@Generated(value="by gapic-generator-java") public class EnvironmentsSettings extends com.google.api.gax.rpc.ClientSettings<EnvironmentsSettings>
EnvironmentsClient.
The default instance has everything set to sensible defaults:
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 getEnvironment:
// 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
EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder();
environmentsSettingsBuilder
.getEnvironmentSettings()
.setRetrySettings(
environmentsSettingsBuilder
.getEnvironmentSettings()
.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());
EnvironmentsSettings environmentsSettings = environmentsSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 createEnvironment:
// 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
EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
environmentsSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
EnvironmentsSettings.Builder
Builder for EnvironmentsSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EnvironmentsSettings(EnvironmentsSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentsSettings |
create(EnvironmentsStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateEnvironmentRequest,Environment,com.google.protobuf.Struct> |
createEnvironmentOperationSettings()
Returns the object with the settings used for calls to createEnvironment.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateEnvironmentRequest,com.google.longrunning.Operation> |
createEnvironmentSettings()
Returns the object with the settings used for calls to createEnvironment.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.UnaryCallSettings<DeleteEnvironmentRequest,com.google.protobuf.Empty> |
deleteEnvironmentSettings()
Returns the object with the settings used for calls to deleteEnvironment.
|
com.google.api.gax.rpc.OperationCallSettings<DeployFlowRequest,DeployFlowResponse,DeployFlowMetadata> |
deployFlowOperationSettings()
Returns the object with the settings used for calls to deployFlow.
|
com.google.api.gax.rpc.UnaryCallSettings<DeployFlowRequest,com.google.longrunning.Operation> |
deployFlowSettings()
Returns the object with the settings used for calls to deployFlow.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetEnvironmentRequest,Environment> |
getEnvironmentSettings()
Returns the object with the settings used for calls to getEnvironment.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationSettings()
Returns the object with the settings used for calls to getLocation.
|
com.google.api.gax.rpc.PagedCallSettings<ListContinuousTestResultsRequest,ListContinuousTestResultsResponse,EnvironmentsClient.ListContinuousTestResultsPagedResponse> |
listContinuousTestResultsSettings()
Returns the object with the settings used for calls to listContinuousTestResults.
|
com.google.api.gax.rpc.PagedCallSettings<ListEnvironmentsRequest,ListEnvironmentsResponse,EnvironmentsClient.ListEnvironmentsPagedResponse> |
listEnvironmentsSettings()
Returns the object with the settings used for calls to listEnvironments.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EnvironmentsClient.ListLocationsPagedResponse> |
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
|
com.google.api.gax.rpc.PagedCallSettings<LookupEnvironmentHistoryRequest,LookupEnvironmentHistoryResponse,EnvironmentsClient.LookupEnvironmentHistoryPagedResponse> |
lookupEnvironmentHistorySettings()
Returns the object with the settings used for calls to lookupEnvironmentHistory.
|
static EnvironmentsSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static EnvironmentsSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static EnvironmentsSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
com.google.api.gax.rpc.OperationCallSettings<RunContinuousTestRequest,RunContinuousTestResponse,RunContinuousTestMetadata> |
runContinuousTestOperationSettings()
Returns the object with the settings used for calls to runContinuousTest.
|
com.google.api.gax.rpc.UnaryCallSettings<RunContinuousTestRequest,com.google.longrunning.Operation> |
runContinuousTestSettings()
Returns the object with the settings used for calls to runContinuousTest.
|
EnvironmentsSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateEnvironmentRequest,Environment,com.google.protobuf.Struct> |
updateEnvironmentOperationSettings()
Returns the object with the settings used for calls to updateEnvironment.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateEnvironmentRequest,com.google.longrunning.Operation> |
updateEnvironmentSettings()
Returns the object with the settings used for calls to updateEnvironment.
|
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toStringprotected EnvironmentsSettings(EnvironmentsSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<ListEnvironmentsRequest,ListEnvironmentsResponse,EnvironmentsClient.ListEnvironmentsPagedResponse> listEnvironmentsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetEnvironmentRequest,Environment> getEnvironmentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateEnvironmentRequest,com.google.longrunning.Operation> createEnvironmentSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateEnvironmentRequest,Environment,com.google.protobuf.Struct> createEnvironmentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateEnvironmentRequest,com.google.longrunning.Operation> updateEnvironmentSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateEnvironmentRequest,Environment,com.google.protobuf.Struct> updateEnvironmentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteEnvironmentRequest,com.google.protobuf.Empty> deleteEnvironmentSettings()
public com.google.api.gax.rpc.PagedCallSettings<LookupEnvironmentHistoryRequest,LookupEnvironmentHistoryResponse,EnvironmentsClient.LookupEnvironmentHistoryPagedResponse> lookupEnvironmentHistorySettings()
public com.google.api.gax.rpc.UnaryCallSettings<RunContinuousTestRequest,com.google.longrunning.Operation> runContinuousTestSettings()
public com.google.api.gax.rpc.OperationCallSettings<RunContinuousTestRequest,RunContinuousTestResponse,RunContinuousTestMetadata> runContinuousTestOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListContinuousTestResultsRequest,ListContinuousTestResultsResponse,EnvironmentsClient.ListContinuousTestResultsPagedResponse> listContinuousTestResultsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeployFlowRequest,com.google.longrunning.Operation> deployFlowSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeployFlowRequest,DeployFlowResponse,DeployFlowMetadata> deployFlowOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EnvironmentsClient.ListLocationsPagedResponse> listLocationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
public static final EnvironmentsSettings create(EnvironmentsStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static EnvironmentsSettings.Builder newBuilder()
public static EnvironmentsSettings.Builder newHttpJsonBuilder()
public static EnvironmentsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public EnvironmentsSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<EnvironmentsSettings>Copyright © 2025 Google LLC. All rights reserved.