Class AwsClustersStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<AwsClustersStubSettings>
com.google.cloud.gkemulticloud.v1.stub.AwsClustersStubSettings
@Deprecated
@Generated("by gapic-generator-java")
public class AwsClustersStubSettings
extends StubSettings<AwsClustersStubSettings>
Deprecated.
This class is deprecated and will be removed in the next major version update.
Settings class to configure an instance of
AwsClustersStub.
The default instance has everything set to sensible defaults:
- The default service address (gkemulticloud.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 getAwsCluster:
// 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
AwsClustersStubSettings.Builder awsClustersSettingsBuilder =
AwsClustersStubSettings.newBuilder();
awsClustersSettingsBuilder
.getAwsClusterSettings()
.setRetrySettings(
awsClustersSettingsBuilder
.getAwsClusterSettings()
.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());
AwsClustersStubSettings awsClustersSettings = awsClustersSettingsBuilder.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 createAwsCluster:
// 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
AwsClustersStubSettings.Builder awsClustersSettingsBuilder =
AwsClustersStubSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
awsClustersSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Builder for AwsClustersStubSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAwsClustersStubSettings(AwsClustersStubSettings.Builder settingsBuilder) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the object with the settings used for calls to createAwsCluster.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.Returns the object with the settings used for calls to createAwsNodePool.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.Deprecated.Deprecated.Returns a builder for the default credentials for this service.Deprecated.Returns a builder for the default ExecutorProvider for this service.Deprecated.Deprecated.Returns a builder for the default gRPC ChannelProvider for this service.Deprecated.Deprecated.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderDeprecated.OperationCallSettings<DeleteAwsClusterRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.Returns the object with the settings used for calls to deleteAwsCluster.Deprecated.This method is deprecated and will be removed in the next major version update.OperationCallSettings<DeleteAwsNodePoolRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.Returns the object with the settings used for calls to deleteAwsNodePool.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.static StringDeprecated.Returns the default service endpoint.static StringDeprecated.Returns the default mTLS service endpoint.Deprecated.Returns the default service scopes.protected LibraryMetadataDeprecated.Deprecated.Returns the default service name.PagedCallSettings<ListAwsClustersRequest,ListAwsClustersResponse, AwsClustersClient.ListAwsClustersPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.PagedCallSettings<ListAwsNodePoolsRequest,ListAwsNodePoolsResponse, AwsClustersClient.ListAwsNodePoolsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Deprecated.Returns a new builder for this class.Deprecated.Returns a new REST builder for this class.Deprecated.Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.Returns a builder containing all the values of this settings class.Deprecated.Returns the object with the settings used for calls to updateAwsCluster.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.Returns the object with the settings used for calls to updateAwsNodePool.Deprecated.This method is deprecated and will be removed in the next major version update.Methods inherited from class com.google.api.gax.rpc.StubSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
AwsClustersStubSettings
protected AwsClustersStubSettings(AwsClustersStubSettings.Builder settingsBuilder) throws IOException Deprecated.- Throws:
IOException
-
-
Method Details
-
createAwsClusterSettings
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to createAwsCluster. -
createAwsClusterOperationSettings
public OperationCallSettings<CreateAwsClusterRequest,AwsCluster, createAwsClusterOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to createAwsCluster. -
updateAwsClusterSettings
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to updateAwsCluster. -
updateAwsClusterOperationSettings
public OperationCallSettings<UpdateAwsClusterRequest,AwsCluster, updateAwsClusterOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to updateAwsCluster. -
getAwsClusterSettings
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getAwsCluster. -
listAwsClustersSettings
@Deprecated public PagedCallSettings<ListAwsClustersRequest,ListAwsClustersResponse, listAwsClustersSettings()AwsClustersClient.ListAwsClustersPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to listAwsClusters. -
deleteAwsClusterSettings
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to deleteAwsCluster. -
deleteAwsClusterOperationSettings
public OperationCallSettings<DeleteAwsClusterRequest,com.google.protobuf.Empty, deleteAwsClusterOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to deleteAwsCluster. -
generateAwsClusterAgentTokenSettings
@Deprecated public UnaryCallSettings<GenerateAwsClusterAgentTokenRequest,GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to generateAwsClusterAgentToken. -
generateAwsAccessTokenSettings
@Deprecated public UnaryCallSettings<GenerateAwsAccessTokenRequest,GenerateAwsAccessTokenResponse> generateAwsAccessTokenSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to generateAwsAccessToken. -
createAwsNodePoolSettings
@Deprecated public UnaryCallSettings<CreateAwsNodePoolRequest,Operation> createAwsNodePoolSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to createAwsNodePool. -
createAwsNodePoolOperationSettings
public OperationCallSettings<CreateAwsNodePoolRequest,AwsNodePool, createAwsNodePoolOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to createAwsNodePool. -
updateAwsNodePoolSettings
@Deprecated public UnaryCallSettings<UpdateAwsNodePoolRequest,Operation> updateAwsNodePoolSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to updateAwsNodePool. -
updateAwsNodePoolOperationSettings
public OperationCallSettings<UpdateAwsNodePoolRequest,AwsNodePool, updateAwsNodePoolOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to updateAwsNodePool. -
rollbackAwsNodePoolUpdateSettings
@Deprecated public UnaryCallSettings<RollbackAwsNodePoolUpdateRequest,Operation> rollbackAwsNodePoolUpdateSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. -
rollbackAwsNodePoolUpdateOperationSettings
public OperationCallSettings<RollbackAwsNodePoolUpdateRequest,AwsNodePool, rollbackAwsNodePoolUpdateOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. -
getAwsNodePoolSettings
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getAwsNodePool. -
listAwsNodePoolsSettings
@Deprecated public PagedCallSettings<ListAwsNodePoolsRequest,ListAwsNodePoolsResponse, listAwsNodePoolsSettings()AwsClustersClient.ListAwsNodePoolsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to listAwsNodePools. -
deleteAwsNodePoolSettings
@Deprecated public UnaryCallSettings<DeleteAwsNodePoolRequest,Operation> deleteAwsNodePoolSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to deleteAwsNodePool. -
deleteAwsNodePoolOperationSettings
public OperationCallSettings<DeleteAwsNodePoolRequest,com.google.protobuf.Empty, deleteAwsNodePoolOperationSettings()OperationMetadata> Deprecated.Returns the object with the settings used for calls to deleteAwsNodePool. -
getAwsOpenIdConfigSettings
@Deprecated public UnaryCallSettings<GetAwsOpenIdConfigRequest,AwsOpenIdConfig> getAwsOpenIdConfigSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getAwsOpenIdConfig. -
getAwsJsonWebKeysSettings
@Deprecated public UnaryCallSettings<GetAwsJsonWebKeysRequest,AwsJsonWebKeys> getAwsJsonWebKeysSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getAwsJsonWebKeys. -
getAwsServerConfigSettings
@Deprecated public UnaryCallSettings<GetAwsServerConfigRequest,AwsServerConfig> getAwsServerConfigSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getAwsServerConfig. -
createStub
Deprecated.- Throws:
IOException
-
getServiceName
Deprecated.Returns the default service name.- Overrides:
getServiceNamein classStubSettings<AwsClustersStubSettings>
-
defaultExecutorProviderBuilder
Deprecated.Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Deprecated.Returns the default service endpoint. -
getDefaultMtlsEndpoint
Deprecated.Returns the default mTLS service endpoint. -
getDefaultServiceScopes
Deprecated.Returns the default service scopes. -
defaultCredentialsProviderBuilder
Deprecated.Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Deprecated.Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Deprecated.Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
Deprecated. -
defaultGrpcApiClientHeaderProviderBuilder
Deprecated. -
defaultHttpJsonApiClientHeaderProviderBuilder
Deprecated. -
defaultApiClientHeaderProviderBuilder
Deprecated. -
newBuilder
Deprecated.Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Deprecated.Returns a new REST builder for this class. -
newBuilder
Deprecated.Returns a new builder for this class. -
toBuilder
Deprecated.Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classStubSettings<AwsClustersStubSettings>
-
getLibraryMetadata
Deprecated.- Overrides:
getLibraryMetadatain classStubSettings<AwsClustersStubSettings>
-