Package com.google.cloud.container.v1
Class ClusterManagerSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<ClusterManagerSettings>
-
- com.google.cloud.container.v1.ClusterManagerSettings
-
@Generated("by gapic-generator-java") public class ClusterManagerSettings extends com.google.api.gax.rpc.ClientSettings<ClusterManagerSettings>
Settings class to configure an instance ofClusterManagerClient
.The default instance has everything set to sensible defaults:
- The default service address (container.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 total timeout of listClusters 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 ClusterManagerSettings.Builder clusterManagerSettingsBuilder = ClusterManagerSettings.newBuilder(); clusterManagerSettingsBuilder .listClustersSettings() .setRetrySettings( clusterManagerSettingsBuilder .listClustersSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterManagerSettings.Builder
Builder for ClusterManagerSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClusterManagerSettings(ClusterManagerSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<CancelOperationRequest,com.google.protobuf.Empty>
cancelOperationSettings()
Returns the object with the settings used for calls to cancel.com.google.api.gax.rpc.UnaryCallSettings<CheckAutopilotCompatibilityRequest,CheckAutopilotCompatibilityResponse>
checkAutopilotCompatibilitySettings()
Returns the object with the settings used for calls to checkAutopilotCompatibility.com.google.api.gax.rpc.UnaryCallSettings<CompleteIPRotationRequest,Operation>
completeIPRotationSettings()
Returns the object with the settings used for calls to completeIPRotation.com.google.api.gax.rpc.UnaryCallSettings<CompleteNodePoolUpgradeRequest,com.google.protobuf.Empty>
completeNodePoolUpgradeSettings()
Returns the object with the settings used for calls to completeNodePoolUpgrade.static ClusterManagerSettings
create(ClusterManagerStubSettings stub)
com.google.api.gax.rpc.UnaryCallSettings<CreateClusterRequest,Operation>
createClusterSettings()
Returns the object with the settings used for calls to createCluster.com.google.api.gax.rpc.UnaryCallSettings<CreateNodePoolRequest,Operation>
createNodePoolSettings()
Returns the object with the settings used for calls to createNodePool.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 ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<DeleteClusterRequest,Operation>
deleteClusterSettings()
Returns the object with the settings used for calls to deleteCluster.com.google.api.gax.rpc.UnaryCallSettings<DeleteNodePoolRequest,Operation>
deleteNodePoolSettings()
Returns the object with the settings used for calls to deleteNodePool.com.google.api.gax.rpc.UnaryCallSettings<GetClusterRequest,Cluster>
getClusterSettings()
Returns the object with the settings used for calls to getCluster.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetJSONWebKeysRequest,GetJSONWebKeysResponse>
getJSONWebKeysSettings()
Returns the object with the settings used for calls to getJSONWebKeys.com.google.api.gax.rpc.UnaryCallSettings<GetNodePoolRequest,NodePool>
getNodePoolSettings()
Returns the object with the settings used for calls to getNodePool.com.google.api.gax.rpc.UnaryCallSettings<GetOperationRequest,Operation>
getOperationSettings()
Returns the object with the settings used for calls to get.com.google.api.gax.rpc.UnaryCallSettings<GetServerConfigRequest,ServerConfig>
getServerConfigSettings()
Returns the object with the settings used for calls to getServerConfig.com.google.api.gax.rpc.UnaryCallSettings<ListClustersRequest,ListClustersResponse>
listClustersSettings()
Returns the object with the settings used for calls to listClusters.com.google.api.gax.rpc.UnaryCallSettings<ListNodePoolsRequest,ListNodePoolsResponse>
listNodePoolsSettings()
Returns the object with the settings used for calls to listNodePools.com.google.api.gax.rpc.UnaryCallSettings<ListOperationsRequest,ListOperationsResponse>
listOperationsSettings()
Returns the object with the settings used for calls to listOperations.com.google.api.gax.rpc.PagedCallSettings<ListUsableSubnetworksRequest,ListUsableSubnetworksResponse,ClusterManagerClient.ListUsableSubnetworksPagedResponse>
listUsableSubnetworksSettings()
Returns the object with the settings used for calls to listUsableSubnetworks.static ClusterManagerSettings.Builder
newBuilder()
Returns a new builder for this class.static ClusterManagerSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.com.google.api.gax.rpc.UnaryCallSettings<RollbackNodePoolUpgradeRequest,Operation>
rollbackNodePoolUpgradeSettings()
Returns the object with the settings used for calls to rollbackNodePoolUpgrade.com.google.api.gax.rpc.UnaryCallSettings<SetAddonsConfigRequest,Operation>
setAddonsConfigSettings()
Returns the object with the settings used for calls to setAddonsConfig.com.google.api.gax.rpc.UnaryCallSettings<SetLabelsRequest,Operation>
setLabelsSettings()
Returns the object with the settings used for calls to setLabels.com.google.api.gax.rpc.UnaryCallSettings<SetLegacyAbacRequest,Operation>
setLegacyAbacSettings()
Returns the object with the settings used for calls to setLegacyAbac.com.google.api.gax.rpc.UnaryCallSettings<SetLocationsRequest,Operation>
setLocationsSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings<SetLoggingServiceRequest,Operation>
setLoggingServiceSettings()
Returns the object with the settings used for calls to setLoggingService.com.google.api.gax.rpc.UnaryCallSettings<SetMaintenancePolicyRequest,Operation>
setMaintenancePolicySettings()
Returns the object with the settings used for calls to setMaintenancePolicy.com.google.api.gax.rpc.UnaryCallSettings<SetMasterAuthRequest,Operation>
setMasterAuthSettings()
Returns the object with the settings used for calls to setMasterAuth.com.google.api.gax.rpc.UnaryCallSettings<SetMonitoringServiceRequest,Operation>
setMonitoringServiceSettings()
Returns the object with the settings used for calls to setMonitoringService.com.google.api.gax.rpc.UnaryCallSettings<SetNetworkPolicyRequest,Operation>
setNetworkPolicySettings()
Returns the object with the settings used for calls to setNetworkPolicy.com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolAutoscalingRequest,Operation>
setNodePoolAutoscalingSettings()
Returns the object with the settings used for calls to setNodePoolAutoscaling.com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolManagementRequest,Operation>
setNodePoolManagementSettings()
Returns the object with the settings used for calls to setNodePoolManagement.com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolSizeRequest,Operation>
setNodePoolSizeSettings()
Returns the object with the settings used for calls to setNodePoolSize.com.google.api.gax.rpc.UnaryCallSettings<StartIPRotationRequest,Operation>
startIPRotationSettings()
Returns the object with the settings used for calls to startIPRotation.ClusterManagerSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateClusterRequest,Operation>
updateClusterSettings()
Returns the object with the settings used for calls to updateCluster.com.google.api.gax.rpc.UnaryCallSettings<UpdateMasterRequest,Operation>
updateMasterSettings()
Returns the object with the settings used for calls to updateMaster.com.google.api.gax.rpc.UnaryCallSettings<UpdateNodePoolRequest,Operation>
updateNodePoolSettings()
Returns the object with the settings used for calls to updateNodePool.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
ClusterManagerSettings
protected ClusterManagerSettings(ClusterManagerSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listClustersSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListClustersRequest,ListClustersResponse> listClustersSettings()
Returns the object with the settings used for calls to listClusters.
-
getClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()
Returns the object with the settings used for calls to getCluster.
-
createClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()
Returns the object with the settings used for calls to createCluster.
-
updateClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()
Returns the object with the settings used for calls to updateCluster.
-
updateNodePoolSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateNodePoolRequest,Operation> updateNodePoolSettings()
Returns the object with the settings used for calls to updateNodePool.
-
setNodePoolAutoscalingSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolAutoscalingRequest,Operation> setNodePoolAutoscalingSettings()
Returns the object with the settings used for calls to setNodePoolAutoscaling.
-
setLoggingServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetLoggingServiceRequest,Operation> setLoggingServiceSettings()
Returns the object with the settings used for calls to setLoggingService.
-
setMonitoringServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetMonitoringServiceRequest,Operation> setMonitoringServiceSettings()
Returns the object with the settings used for calls to setMonitoringService.
-
setAddonsConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetAddonsConfigRequest,Operation> setAddonsConfigSettings()
Returns the object with the settings used for calls to setAddonsConfig.
-
setLocationsSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<SetLocationsRequest,Operation> setLocationsSettings()
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 setLocations.
-
updateMasterSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateMasterRequest,Operation> updateMasterSettings()
Returns the object with the settings used for calls to updateMaster.
-
setMasterAuthSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetMasterAuthRequest,Operation> setMasterAuthSettings()
Returns the object with the settings used for calls to setMasterAuth.
-
deleteClusterSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()
Returns the object with the settings used for calls to deleteCluster.
-
listOperationsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListOperationsRequest,ListOperationsResponse> listOperationsSettings()
Returns the object with the settings used for calls to listOperations.
-
getOperationSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetOperationRequest,Operation> getOperationSettings()
Returns the object with the settings used for calls to get.
-
cancelOperationSettings
public com.google.api.gax.rpc.UnaryCallSettings<CancelOperationRequest,com.google.protobuf.Empty> cancelOperationSettings()
Returns the object with the settings used for calls to cancel.
-
getServerConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetServerConfigRequest,ServerConfig> getServerConfigSettings()
Returns the object with the settings used for calls to getServerConfig.
-
getJSONWebKeysSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetJSONWebKeysRequest,GetJSONWebKeysResponse> getJSONWebKeysSettings()
Returns the object with the settings used for calls to getJSONWebKeys.
-
listNodePoolsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListNodePoolsRequest,ListNodePoolsResponse> listNodePoolsSettings()
Returns the object with the settings used for calls to listNodePools.
-
getNodePoolSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetNodePoolRequest,NodePool> getNodePoolSettings()
Returns the object with the settings used for calls to getNodePool.
-
createNodePoolSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateNodePoolRequest,Operation> createNodePoolSettings()
Returns the object with the settings used for calls to createNodePool.
-
deleteNodePoolSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteNodePoolRequest,Operation> deleteNodePoolSettings()
Returns the object with the settings used for calls to deleteNodePool.
-
completeNodePoolUpgradeSettings
public com.google.api.gax.rpc.UnaryCallSettings<CompleteNodePoolUpgradeRequest,com.google.protobuf.Empty> completeNodePoolUpgradeSettings()
Returns the object with the settings used for calls to completeNodePoolUpgrade.
-
rollbackNodePoolUpgradeSettings
public com.google.api.gax.rpc.UnaryCallSettings<RollbackNodePoolUpgradeRequest,Operation> rollbackNodePoolUpgradeSettings()
Returns the object with the settings used for calls to rollbackNodePoolUpgrade.
-
setNodePoolManagementSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolManagementRequest,Operation> setNodePoolManagementSettings()
Returns the object with the settings used for calls to setNodePoolManagement.
-
setLabelsSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetLabelsRequest,Operation> setLabelsSettings()
Returns the object with the settings used for calls to setLabels.
-
setLegacyAbacSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetLegacyAbacRequest,Operation> setLegacyAbacSettings()
Returns the object with the settings used for calls to setLegacyAbac.
-
startIPRotationSettings
public com.google.api.gax.rpc.UnaryCallSettings<StartIPRotationRequest,Operation> startIPRotationSettings()
Returns the object with the settings used for calls to startIPRotation.
-
completeIPRotationSettings
public com.google.api.gax.rpc.UnaryCallSettings<CompleteIPRotationRequest,Operation> completeIPRotationSettings()
Returns the object with the settings used for calls to completeIPRotation.
-
setNodePoolSizeSettings
public com.google.api.gax.rpc.UnaryCallSettings<SetNodePoolSizeRequest,Operation> setNodePoolSizeSettings()
Returns the object with the settings used for calls to setNodePoolSize.
-
setNetworkPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<SetNetworkPolicyRequest,Operation> setNetworkPolicySettings()
Returns the object with the settings used for calls to setNetworkPolicy.
-
setMaintenancePolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<SetMaintenancePolicyRequest,Operation> setMaintenancePolicySettings()
Returns the object with the settings used for calls to setMaintenancePolicy.
-
listUsableSubnetworksSettings
public com.google.api.gax.rpc.PagedCallSettings<ListUsableSubnetworksRequest,ListUsableSubnetworksResponse,ClusterManagerClient.ListUsableSubnetworksPagedResponse> listUsableSubnetworksSettings()
Returns the object with the settings used for calls to listUsableSubnetworks.
-
checkAutopilotCompatibilitySettings
public com.google.api.gax.rpc.UnaryCallSettings<CheckAutopilotCompatibilityRequest,CheckAutopilotCompatibilityResponse> checkAutopilotCompatibilitySettings()
Returns the object with the settings used for calls to checkAutopilotCompatibility.
-
create
public static final ClusterManagerSettings create(ClusterManagerStubSettings stub) throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static ClusterManagerSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static ClusterManagerSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public ClusterManagerSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<ClusterManagerSettings>
-
-