Class ManagedNotebookServiceSettings


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

    The default instance has everything set to sensible defaults:

    • The default service address (notebooks.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 getRuntime 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
     ManagedNotebookServiceSettings.Builder managedNotebookServiceSettingsBuilder =
         ManagedNotebookServiceSettings.newBuilder();
     managedNotebookServiceSettingsBuilder
         .getRuntimeSettings()
         .setRetrySettings(
             managedNotebookServiceSettingsBuilder
                 .getRuntimeSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ManagedNotebookServiceSettings managedNotebookServiceSettings =
         managedNotebookServiceSettingsBuilder.build();
     
    • Method Detail

      • getRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRuntimeRequest,​Runtime> getRuntimeSettings()
        Returns the object with the settings used for calls to getRuntime.
      • createRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateRuntimeRequest,​com.google.longrunning.Operation> createRuntimeSettings()
        Returns the object with the settings used for calls to createRuntime.
      • createRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateRuntimeRequest,​Runtime,​OperationMetadata> createRuntimeOperationSettings()
        Returns the object with the settings used for calls to createRuntime.
      • updateRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRuntimeRequest,​com.google.longrunning.Operation> updateRuntimeSettings()
        Returns the object with the settings used for calls to updateRuntime.
      • updateRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateRuntimeRequest,​Runtime,​OperationMetadata> updateRuntimeOperationSettings()
        Returns the object with the settings used for calls to updateRuntime.
      • deleteRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRuntimeRequest,​com.google.longrunning.Operation> deleteRuntimeSettings()
        Returns the object with the settings used for calls to deleteRuntime.
      • deleteRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteRuntimeRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteRuntimeOperationSettings()
        Returns the object with the settings used for calls to deleteRuntime.
      • startRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StartRuntimeRequest,​com.google.longrunning.Operation> startRuntimeSettings()
        Returns the object with the settings used for calls to startRuntime.
      • startRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StartRuntimeRequest,​Runtime,​OperationMetadata> startRuntimeOperationSettings()
        Returns the object with the settings used for calls to startRuntime.
      • stopRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StopRuntimeRequest,​com.google.longrunning.Operation> stopRuntimeSettings()
        Returns the object with the settings used for calls to stopRuntime.
      • stopRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StopRuntimeRequest,​Runtime,​OperationMetadata> stopRuntimeOperationSettings()
        Returns the object with the settings used for calls to stopRuntime.
      • switchRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SwitchRuntimeRequest,​com.google.longrunning.Operation> switchRuntimeSettings()
        Returns the object with the settings used for calls to switchRuntime.
      • switchRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SwitchRuntimeRequest,​Runtime,​OperationMetadata> switchRuntimeOperationSettings()
        Returns the object with the settings used for calls to switchRuntime.
      • resetRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResetRuntimeRequest,​com.google.longrunning.Operation> resetRuntimeSettings()
        Returns the object with the settings used for calls to resetRuntime.
      • resetRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ResetRuntimeRequest,​Runtime,​OperationMetadata> resetRuntimeOperationSettings()
        Returns the object with the settings used for calls to resetRuntime.
      • upgradeRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpgradeRuntimeRequest,​com.google.longrunning.Operation> upgradeRuntimeSettings()
        Returns the object with the settings used for calls to upgradeRuntime.
      • upgradeRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpgradeRuntimeRequest,​Runtime,​OperationMetadata> upgradeRuntimeOperationSettings()
        Returns the object with the settings used for calls to upgradeRuntime.
      • reportRuntimeEventSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ReportRuntimeEventRequest,​com.google.longrunning.Operation> reportRuntimeEventSettings()
        Returns the object with the settings used for calls to reportRuntimeEvent.
      • reportRuntimeEventOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ReportRuntimeEventRequest,​Runtime,​OperationMetadata> reportRuntimeEventOperationSettings()
        Returns the object with the settings used for calls to reportRuntimeEvent.
      • diagnoseRuntimeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DiagnoseRuntimeRequest,​com.google.longrunning.Operation> diagnoseRuntimeSettings()
        Returns the object with the settings used for calls to diagnoseRuntime.
      • diagnoseRuntimeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DiagnoseRuntimeRequest,​Runtime,​OperationMetadata> diagnoseRuntimeOperationSettings()
        Returns the object with the settings used for calls to diagnoseRuntime.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​ManagedNotebookServiceClient.ListLocationsPagedResponse> listLocationsSettings()
        Returns the object with the settings used for calls to listLocations.
      • getLocationSettings

        public 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.
      • setIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,​com.google.iam.v1.Policy> setIamPolicySettings()
        Returns the object with the settings used for calls to setIamPolicy.
      • getIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,​com.google.iam.v1.Policy> getIamPolicySettings()
        Returns the object with the settings used for calls to getIamPolicy.
      • testIamPermissionsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,​com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
        Returns the object with the settings used for calls to testIamPermissions.
      • 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()