@Generated(value="by gapic-generator-java") public class ClusterControllerSettings extends ClientSettings<ClusterControllerSettings>
ClusterControllerClient
.
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 total timeout of getCluster to 30 seconds:
// 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
ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
ClusterControllerSettings.newBuilder();
clusterControllerSettingsBuilder
.getClusterSettings()
.setRetrySettings(
clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
ClusterControllerSettings.Builder
Builder for ClusterControllerSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
ClusterControllerSettings(ClusterControllerSettings.Builder settingsBuilder) |
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected ClusterControllerSettings(ClusterControllerSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()
public OperationCallSettings<CreateClusterRequest,Cluster,ClusterOperationMetadata> createClusterOperationSettings()
public UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()
public OperationCallSettings<UpdateClusterRequest,Cluster,ClusterOperationMetadata> updateClusterOperationSettings()
public UnaryCallSettings<StopClusterRequest,Operation> stopClusterSettings()
public OperationCallSettings<StopClusterRequest,Cluster,ClusterOperationMetadata> stopClusterOperationSettings()
public UnaryCallSettings<StartClusterRequest,Operation> startClusterSettings()
public OperationCallSettings<StartClusterRequest,Cluster,ClusterOperationMetadata> startClusterOperationSettings()
public UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()
public OperationCallSettings<DeleteClusterRequest,Empty,ClusterOperationMetadata> deleteClusterOperationSettings()
public UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()
public PagedCallSettings<ListClustersRequest,ListClustersResponse,ClusterControllerClient.ListClustersPagedResponse> listClustersSettings()
public UnaryCallSettings<DiagnoseClusterRequest,Operation> diagnoseClusterSettings()
public OperationCallSettings<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata> diagnoseClusterOperationSettings()
public static final ClusterControllerSettings create(ClusterControllerStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ClusterControllerSettings.Builder newBuilder()
@BetaApi public static ClusterControllerSettings.Builder newHttpJsonBuilder()
public static ClusterControllerSettings.Builder newBuilder(ClientContext clientContext)
public ClusterControllerSettings.Builder toBuilder()
toBuilder
in class ClientSettings<ClusterControllerSettings>
Copyright © 2022 Google LLC. All rights reserved.