Class ManagedNotebookServiceStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<ManagedNotebookServiceStubSettings>
-
- com.google.cloud.notebooks.v1.stub.ManagedNotebookServiceStubSettings
-
@Generated("by gapic-generator-java") public class ManagedNotebookServiceStubSettings extends com.google.api.gax.rpc.StubSettings<ManagedNotebookServiceStubSettings>
Settings class to configure an instance ofManagedNotebookServiceStub
.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 ManagedNotebookServiceStubSettings.Builder managedNotebookServiceSettingsBuilder = ManagedNotebookServiceStubSettings.newBuilder(); managedNotebookServiceSettingsBuilder .getRuntimeSettings() .setRetrySettings( managedNotebookServiceSettingsBuilder .getRuntimeSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ManagedNotebookServiceStubSettings managedNotebookServiceSettings = managedNotebookServiceSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedNotebookServiceStubSettings.Builder
Builder for ManagedNotebookServiceStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ManagedNotebookServiceStubSettings(ManagedNotebookServiceStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.OperationCallSettings<CreateRuntimeRequest,Runtime,OperationMetadata>
createRuntimeOperationSettings()
Returns the object with the settings used for calls to createRuntime.com.google.api.gax.rpc.UnaryCallSettings<CreateRuntimeRequest,com.google.longrunning.Operation>
createRuntimeSettings()
Returns the object with the settings used for calls to createRuntime.ManagedNotebookServiceStub
createStub()
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.OperationCallSettings<DeleteRuntimeRequest,com.google.protobuf.Empty,OperationMetadata>
deleteRuntimeOperationSettings()
Returns the object with the settings used for calls to deleteRuntime.com.google.api.gax.rpc.UnaryCallSettings<DeleteRuntimeRequest,com.google.longrunning.Operation>
deleteRuntimeSettings()
Returns the object with the settings used for calls to deleteRuntime.com.google.api.gax.rpc.OperationCallSettings<DiagnoseRuntimeRequest,Runtime,OperationMetadata>
diagnoseRuntimeOperationSettings()
Returns the object with the settings used for calls to diagnoseRuntime.com.google.api.gax.rpc.UnaryCallSettings<DiagnoseRuntimeRequest,com.google.longrunning.Operation>
diagnoseRuntimeSettings()
Returns the object with the settings used for calls to diagnoseRuntime.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.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.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.com.google.api.gax.rpc.UnaryCallSettings<GetRuntimeRequest,Runtime>
getRuntimeSettings()
Returns the object with the settings used for calls to getRuntime.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.com.google.api.gax.rpc.PagedCallSettings<ListRuntimesRequest,ListRuntimesResponse,ManagedNotebookServiceClient.ListRuntimesPagedResponse>
listRuntimesSettings()
Returns the object with the settings used for calls to listRuntimes.static ManagedNotebookServiceStubSettings.Builder
newBuilder()
Returns a new builder for this class.static ManagedNotebookServiceStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.com.google.api.gax.rpc.UnaryCallSettings<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse>
refreshRuntimeTokenInternalSettings()
Returns the object with the settings used for calls to refreshRuntimeTokenInternal.com.google.api.gax.rpc.OperationCallSettings<ReportRuntimeEventRequest,Runtime,OperationMetadata>
reportRuntimeEventOperationSettings()
Returns the object with the settings used for calls to reportRuntimeEvent.com.google.api.gax.rpc.UnaryCallSettings<ReportRuntimeEventRequest,com.google.longrunning.Operation>
reportRuntimeEventSettings()
Returns the object with the settings used for calls to reportRuntimeEvent.com.google.api.gax.rpc.OperationCallSettings<ResetRuntimeRequest,Runtime,OperationMetadata>
resetRuntimeOperationSettings()
Returns the object with the settings used for calls to resetRuntime.com.google.api.gax.rpc.UnaryCallSettings<ResetRuntimeRequest,com.google.longrunning.Operation>
resetRuntimeSettings()
Returns the object with the settings used for calls to resetRuntime.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.com.google.api.gax.rpc.OperationCallSettings<StartRuntimeRequest,Runtime,OperationMetadata>
startRuntimeOperationSettings()
Returns the object with the settings used for calls to startRuntime.com.google.api.gax.rpc.UnaryCallSettings<StartRuntimeRequest,com.google.longrunning.Operation>
startRuntimeSettings()
Returns the object with the settings used for calls to startRuntime.com.google.api.gax.rpc.OperationCallSettings<StopRuntimeRequest,Runtime,OperationMetadata>
stopRuntimeOperationSettings()
Returns the object with the settings used for calls to stopRuntime.com.google.api.gax.rpc.UnaryCallSettings<StopRuntimeRequest,com.google.longrunning.Operation>
stopRuntimeSettings()
Returns the object with the settings used for calls to stopRuntime.com.google.api.gax.rpc.OperationCallSettings<SwitchRuntimeRequest,Runtime,OperationMetadata>
switchRuntimeOperationSettings()
Returns the object with the settings used for calls to switchRuntime.com.google.api.gax.rpc.UnaryCallSettings<SwitchRuntimeRequest,com.google.longrunning.Operation>
switchRuntimeSettings()
Returns the object with the settings used for calls to switchRuntime.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.ManagedNotebookServiceStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateRuntimeRequest,Runtime,OperationMetadata>
updateRuntimeOperationSettings()
Returns the object with the settings used for calls to updateRuntime.com.google.api.gax.rpc.UnaryCallSettings<UpdateRuntimeRequest,com.google.longrunning.Operation>
updateRuntimeSettings()
Returns the object with the settings used for calls to updateRuntime.com.google.api.gax.rpc.OperationCallSettings<UpgradeRuntimeRequest,Runtime,OperationMetadata>
upgradeRuntimeOperationSettings()
Returns the object with the settings used for calls to upgradeRuntime.com.google.api.gax.rpc.UnaryCallSettings<UpgradeRuntimeRequest,com.google.longrunning.Operation>
upgradeRuntimeSettings()
Returns the object with the settings used for calls to upgradeRuntime.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
ManagedNotebookServiceStubSettings
protected ManagedNotebookServiceStubSettings(ManagedNotebookServiceStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listRuntimesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListRuntimesRequest,ListRuntimesResponse,ManagedNotebookServiceClient.ListRuntimesPagedResponse> listRuntimesSettings()
Returns the object with the settings used for calls to listRuntimes.
-
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.
-
refreshRuntimeTokenInternalSettings
public com.google.api.gax.rpc.UnaryCallSettings<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternalSettings()
Returns the object with the settings used for calls to refreshRuntimeTokenInternal.
-
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.
-
createStub
public ManagedNotebookServiceStub createStub() 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.
-
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()
-
newBuilder
public static ManagedNotebookServiceStubSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static ManagedNotebookServiceStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public ManagedNotebookServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<ManagedNotebookServiceStubSettings>
-
-