Class ClusterManagerStubSettings


  • @BetaApi
    @Generated("by gapic-generator-java")
    public class ClusterManagerStubSettings
    extends com.google.api.gax.rpc.StubSettings<ClusterManagerStubSettings>
    Settings class to configure an instance of ClusterManagerStub.

    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
     ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder =
         ClusterManagerStubSettings.newBuilder();
     clusterManagerSettingsBuilder
         .listClustersSettings()
         .setRetrySettings(
             clusterManagerSettingsBuilder
                 .listClustersSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
     
    • 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.
      • listLocationsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ListLocationsRequest,​ListLocationsResponse> listLocationsSettings()
        Returns the object with the settings used for calls to listLocations.
      • 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.
      • getDefaultMtlsEndpoint

        public static String getDefaultMtlsEndpoint()
        Returns the default mTLS 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()