Class GrpcNotebookServiceStub
java.lang.Object
com.google.cloud.notebooks.v2.stub.NotebookServiceStub
com.google.cloud.notebooks.v2.stub.GrpcNotebookServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcNotebookServiceStub
extends NotebookServiceStub
gRPC stub implementation for the NotebookService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcNotebookServiceStub, using the given settings.protectedGrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcNotebookServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcNotebookServiceStubcreate(ClientContext clientContext) static final GrpcNotebookServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcNotebookServiceStubcreate(NotebookServiceStubSettings settings) OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.notebooks.v2.stub.NotebookServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcNotebookServiceStub
protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcNotebookServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcNotebookServiceStub
protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcNotebookServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcNotebookServiceStub create(NotebookServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcNotebookServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classNotebookServiceStub
-
listInstancesCallable
- Overrides:
listInstancesCallablein classNotebookServiceStub
-
listInstancesPagedCallable
public UnaryCallable<ListInstancesRequest,NotebookServiceClient.ListInstancesPagedResponse> listInstancesPagedCallable()- Overrides:
listInstancesPagedCallablein classNotebookServiceStub
-
getInstanceCallable
- Overrides:
getInstanceCallablein classNotebookServiceStub
-
createInstanceCallable
- Overrides:
createInstanceCallablein classNotebookServiceStub
-
createInstanceOperationCallable
public OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()OperationMetadata> - Overrides:
createInstanceOperationCallablein classNotebookServiceStub
-
updateInstanceCallable
- Overrides:
updateInstanceCallablein classNotebookServiceStub
-
updateInstanceOperationCallable
public OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()OperationMetadata> - Overrides:
updateInstanceOperationCallablein classNotebookServiceStub
-
deleteInstanceCallable
- Overrides:
deleteInstanceCallablein classNotebookServiceStub
-
deleteInstanceOperationCallable
public OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationCallable()OperationMetadata> - Overrides:
deleteInstanceOperationCallablein classNotebookServiceStub
-
startInstanceCallable
- Overrides:
startInstanceCallablein classNotebookServiceStub
-
startInstanceOperationCallable
public OperationCallable<StartInstanceRequest,Instance, startInstanceOperationCallable()OperationMetadata> - Overrides:
startInstanceOperationCallablein classNotebookServiceStub
-
stopInstanceCallable
- Overrides:
stopInstanceCallablein classNotebookServiceStub
-
stopInstanceOperationCallable
public OperationCallable<StopInstanceRequest,Instance, stopInstanceOperationCallable()OperationMetadata> - Overrides:
stopInstanceOperationCallablein classNotebookServiceStub
-
resetInstanceCallable
- Overrides:
resetInstanceCallablein classNotebookServiceStub
-
resetInstanceOperationCallable
public OperationCallable<ResetInstanceRequest,Instance, resetInstanceOperationCallable()OperationMetadata> - Overrides:
resetInstanceOperationCallablein classNotebookServiceStub
-
checkInstanceUpgradabilityCallable
public UnaryCallable<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse> checkInstanceUpgradabilityCallable()- Overrides:
checkInstanceUpgradabilityCallablein classNotebookServiceStub
-
upgradeInstanceCallable
- Overrides:
upgradeInstanceCallablein classNotebookServiceStub
-
upgradeInstanceOperationCallable
public OperationCallable<UpgradeInstanceRequest,Instance, upgradeInstanceOperationCallable()OperationMetadata> - Overrides:
upgradeInstanceOperationCallablein classNotebookServiceStub
-
rollbackInstanceCallable
- Overrides:
rollbackInstanceCallablein classNotebookServiceStub
-
rollbackInstanceOperationCallable
public OperationCallable<RollbackInstanceRequest,Instance, rollbackInstanceOperationCallable()OperationMetadata> - Overrides:
rollbackInstanceOperationCallablein classNotebookServiceStub
-
diagnoseInstanceCallable
- Overrides:
diagnoseInstanceCallablein classNotebookServiceStub
-
diagnoseInstanceOperationCallable
public OperationCallable<DiagnoseInstanceRequest,Instance, diagnoseInstanceOperationCallable()OperationMetadata> - Overrides:
diagnoseInstanceOperationCallablein classNotebookServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classNotebookServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,NotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classNotebookServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classNotebookServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classNotebookServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classNotebookServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classNotebookServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classNotebookServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-