- 1.51.0 (latest)
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.3
- 1.0.6
- 0.6.2
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();
Static Methods
create(NotebookServiceStubSettings stub)
public static final NotebookServiceSettings create(NotebookServiceStubSettings stub)
Parameter | |
---|---|
Name | Description |
stub | NotebookServiceStubSettings |
Returns | |
---|---|
Type | Description |
NotebookServiceSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
defaultApiClientHeaderProviderBuilder()
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns | |
---|---|
Type | Description |
Builder |
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns | |
---|---|
Type | Description |
TransportChannelProvider |
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns | |
---|---|
Type | Description |
String |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns | |
---|---|
Type | Description |
List<String> |
newBuilder()
public static NotebookServiceSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns | |
---|---|
Type | Description |
NotebookServiceSettings.Builder |
newBuilder(ClientContext clientContext)
public static NotebookServiceSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
NotebookServiceSettings.Builder |
newHttpJsonBuilder()
public static NotebookServiceSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns | |
---|---|
Type | Description |
NotebookServiceSettings.Builder |
Constructors
NotebookServiceSettings(NotebookServiceSettings.Builder settingsBuilder)
protected NotebookServiceSettings(NotebookServiceSettings.Builder settingsBuilder)
Parameter | |
---|---|
Name | Description |
settingsBuilder | NotebookServiceSettings.Builder |
Methods
checkInstanceUpgradabilitySettings()
public UnaryCallSettings<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse> checkInstanceUpgradabilitySettings()
Returns the object with the settings used for calls to checkInstanceUpgradability.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse> |
createInstanceOperationSettings()
public OperationCallSettings<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationSettings()
Returns the object with the settings used for calls to createInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<CreateInstanceRequest,Instance,OperationMetadata> |
createInstanceSettings()
public UnaryCallSettings<CreateInstanceRequest,Operation> createInstanceSettings()
Returns the object with the settings used for calls to createInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateInstanceRequest,Operation> |
deleteInstanceOperationSettings()
public OperationCallSettings<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationSettings()
Returns the object with the settings used for calls to deleteInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<DeleteInstanceRequest,Empty,OperationMetadata> |
deleteInstanceSettings()
public UnaryCallSettings<DeleteInstanceRequest,Operation> deleteInstanceSettings()
Returns the object with the settings used for calls to deleteInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteInstanceRequest,Operation> |
diagnoseInstanceOperationSettings()
public OperationCallSettings<DiagnoseInstanceRequest,Instance,OperationMetadata> diagnoseInstanceOperationSettings()
Returns the object with the settings used for calls to diagnoseInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<DiagnoseInstanceRequest,Instance,OperationMetadata> |
diagnoseInstanceSettings()
public UnaryCallSettings<DiagnoseInstanceRequest,Operation> diagnoseInstanceSettings()
Returns the object with the settings used for calls to diagnoseInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DiagnoseInstanceRequest,Operation> |
getIamPolicySettings()
public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getInstanceSettings()
public UnaryCallSettings<GetInstanceRequest,Instance> getInstanceSettings()
Returns the object with the settings used for calls to getInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetInstanceRequest,Instance> |
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
listInstancesSettings()
public PagedCallSettings<ListInstancesRequest,ListInstancesResponse,NotebookServiceClient.ListInstancesPagedResponse> listInstancesSettings()
Returns the object with the settings used for calls to listInstances.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListInstancesRequest,ListInstancesResponse,ListInstancesPagedResponse> |
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,NotebookServiceClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Returns | |
---|---|
Type | Description |
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse> |
resetInstanceOperationSettings()
public OperationCallSettings<ResetInstanceRequest,Instance,OperationMetadata> resetInstanceOperationSettings()
Returns the object with the settings used for calls to resetInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<ResetInstanceRequest,Instance,OperationMetadata> |
resetInstanceSettings()
public UnaryCallSettings<ResetInstanceRequest,Operation> resetInstanceSettings()
Returns the object with the settings used for calls to resetInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ResetInstanceRequest,Operation> |
rollbackInstanceOperationSettings()
public OperationCallSettings<RollbackInstanceRequest,Instance,OperationMetadata> rollbackInstanceOperationSettings()
Returns the object with the settings used for calls to rollbackInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<RollbackInstanceRequest,Instance,OperationMetadata> |
rollbackInstanceSettings()
public UnaryCallSettings<RollbackInstanceRequest,Operation> rollbackInstanceSettings()
Returns the object with the settings used for calls to rollbackInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<RollbackInstanceRequest,Operation> |
setIamPolicySettings()
public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
startInstanceOperationSettings()
public OperationCallSettings<StartInstanceRequest,Instance,OperationMetadata> startInstanceOperationSettings()
Returns the object with the settings used for calls to startInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<StartInstanceRequest,Instance,OperationMetadata> |
startInstanceSettings()
public UnaryCallSettings<StartInstanceRequest,Operation> startInstanceSettings()
Returns the object with the settings used for calls to startInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<StartInstanceRequest,Operation> |
stopInstanceOperationSettings()
public OperationCallSettings<StopInstanceRequest,Instance,OperationMetadata> stopInstanceOperationSettings()
Returns the object with the settings used for calls to stopInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<StopInstanceRequest,Instance,OperationMetadata> |
stopInstanceSettings()
public UnaryCallSettings<StopInstanceRequest,Operation> stopInstanceSettings()
Returns the object with the settings used for calls to stopInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<StopInstanceRequest,Operation> |
testIamPermissionsSettings()
public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
toBuilder()
public NotebookServiceSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns | |
---|---|
Type | Description |
NotebookServiceSettings.Builder |
updateInstanceOperationSettings()
public OperationCallSettings<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationSettings()
Returns the object with the settings used for calls to updateInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<UpdateInstanceRequest,Instance,OperationMetadata> |
updateInstanceSettings()
public UnaryCallSettings<UpdateInstanceRequest,Operation> updateInstanceSettings()
Returns the object with the settings used for calls to updateInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateInstanceRequest,Operation> |
upgradeInstanceOperationSettings()
public OperationCallSettings<UpgradeInstanceRequest,Instance,OperationMetadata> upgradeInstanceOperationSettings()
Returns the object with the settings used for calls to upgradeInstance.
Returns | |
---|---|
Type | Description |
OperationCallSettings<UpgradeInstanceRequest,Instance,OperationMetadata> |
upgradeInstanceSettings()
public UnaryCallSettings<UpgradeInstanceRequest,Operation> upgradeInstanceSettings()
Returns the object with the settings used for calls to upgradeInstance.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpgradeInstanceRequest,Operation> |