Class NotebookServiceSettings (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public class NotebookServiceSettings extends ClientSettings<NotebookServiceSettings>

Settings class to configure an instance of NotebookServiceClient.

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 getInstance 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
 NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
     NotebookServiceSettings.newBuilder();
 notebookServiceSettingsBuilder
     .getInstanceSettings()
     .setRetrySettings(
         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > NotebookServiceSettings

Static Methods

create(NotebookServiceStubSettings stub)

public static final NotebookServiceSettings create(NotebookServiceStubSettings stub)
Parameter
NameDescription
stubNotebookServiceStubSettings
Returns
TypeDescription
NotebookServiceSettings
Exceptions
TypeDescription
IOException

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static NotebookServiceSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
TypeDescription
NotebookServiceSettings.Builder

newBuilder(ClientContext clientContext)

public static NotebookServiceSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
NotebookServiceSettings.Builder

Constructors

NotebookServiceSettings(NotebookServiceSettings.Builder settingsBuilder)

protected NotebookServiceSettings(NotebookServiceSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderNotebookServiceSettings.Builder

Methods

createEnvironmentOperationSettings()

public OperationCallSettings<CreateEnvironmentRequest,Environment,OperationMetadata> createEnvironmentOperationSettings()

Returns the object with the settings used for calls to createEnvironment.

Returns
TypeDescription
OperationCallSettings<CreateEnvironmentRequest,Environment,OperationMetadata>

createEnvironmentSettings()

public UnaryCallSettings<CreateEnvironmentRequest,Operation> createEnvironmentSettings()

Returns the object with the settings used for calls to createEnvironment.

Returns
TypeDescription
UnaryCallSettings<CreateEnvironmentRequest,Operation>

createExecutionOperationSettings()

public OperationCallSettings<CreateExecutionRequest,Execution,OperationMetadata> createExecutionOperationSettings()

Returns the object with the settings used for calls to createExecution.

Returns
TypeDescription
OperationCallSettings<CreateExecutionRequest,Execution,OperationMetadata>

createExecutionSettings()

public UnaryCallSettings<CreateExecutionRequest,Operation> createExecutionSettings()

Returns the object with the settings used for calls to createExecution.

Returns
TypeDescription
UnaryCallSettings<CreateExecutionRequest,Operation>

createInstanceOperationSettings()

public OperationCallSettings<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationSettings()

Returns the object with the settings used for calls to createInstance.

Returns
TypeDescription
OperationCallSettings<CreateInstanceRequest,Instance,OperationMetadata>

createInstanceSettings()

public UnaryCallSettings<CreateInstanceRequest,Operation> createInstanceSettings()

Returns the object with the settings used for calls to createInstance.

Returns
TypeDescription
UnaryCallSettings<CreateInstanceRequest,Operation>

createScheduleOperationSettings()

public OperationCallSettings<CreateScheduleRequest,Schedule,OperationMetadata> createScheduleOperationSettings()

Returns the object with the settings used for calls to createSchedule.

Returns
TypeDescription
OperationCallSettings<CreateScheduleRequest,Schedule,OperationMetadata>

createScheduleSettings()

public UnaryCallSettings<CreateScheduleRequest,Operation> createScheduleSettings()

Returns the object with the settings used for calls to createSchedule.

Returns
TypeDescription
UnaryCallSettings<CreateScheduleRequest,Operation>

deleteEnvironmentOperationSettings()

public OperationCallSettings<DeleteEnvironmentRequest,Empty,OperationMetadata> deleteEnvironmentOperationSettings()

Returns the object with the settings used for calls to deleteEnvironment.

Returns
TypeDescription
OperationCallSettings<DeleteEnvironmentRequest,Empty,OperationMetadata>

deleteEnvironmentSettings()

public UnaryCallSettings<DeleteEnvironmentRequest,Operation> deleteEnvironmentSettings()

Returns the object with the settings used for calls to deleteEnvironment.

Returns
TypeDescription
UnaryCallSettings<DeleteEnvironmentRequest,Operation>

deleteExecutionOperationSettings()

public OperationCallSettings<DeleteExecutionRequest,Empty,OperationMetadata> deleteExecutionOperationSettings()

Returns the object with the settings used for calls to deleteExecution.

Returns
TypeDescription
OperationCallSettings<DeleteExecutionRequest,Empty,OperationMetadata>

deleteExecutionSettings()

public UnaryCallSettings<DeleteExecutionRequest,Operation> deleteExecutionSettings()

Returns the object with the settings used for calls to deleteExecution.

Returns
TypeDescription
UnaryCallSettings<DeleteExecutionRequest,Operation>

deleteInstanceOperationSettings()

public OperationCallSettings<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationSettings()

Returns the object with the settings used for calls to deleteInstance.

Returns
TypeDescription
OperationCallSettings<DeleteInstanceRequest,Empty,OperationMetadata>

deleteInstanceSettings()

public UnaryCallSettings<DeleteInstanceRequest,Operation> deleteInstanceSettings()

Returns the object with the settings used for calls to deleteInstance.

Returns
TypeDescription
UnaryCallSettings<DeleteInstanceRequest,Operation>

deleteScheduleOperationSettings()

public OperationCallSettings<DeleteScheduleRequest,Empty,OperationMetadata> deleteScheduleOperationSettings()

Returns the object with the settings used for calls to deleteSchedule.

Returns
TypeDescription
OperationCallSettings<DeleteScheduleRequest,Empty,OperationMetadata>

deleteScheduleSettings()

public UnaryCallSettings<DeleteScheduleRequest,Operation> deleteScheduleSettings()

Returns the object with the settings used for calls to deleteSchedule.

Returns
TypeDescription
UnaryCallSettings<DeleteScheduleRequest,Operation>

getEnvironmentSettings()

public UnaryCallSettings<GetEnvironmentRequest,Environment> getEnvironmentSettings()

Returns the object with the settings used for calls to getEnvironment.

Returns
TypeDescription
UnaryCallSettings<GetEnvironmentRequest,Environment>

getExecutionSettings()

public UnaryCallSettings<GetExecutionRequest,Execution> getExecutionSettings()

Returns the object with the settings used for calls to getExecution.

Returns
TypeDescription
UnaryCallSettings<