Class GrpcNotebookServiceStub
- java.lang.Object
-
- com.google.cloud.notebooks.v2.stub.NotebookServiceStub
-
- com.google.cloud.notebooks.v2.stub.GrpcNotebookServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.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
Constructors Modifier Constructor Description protectedGrpcNotebookServiceStub(NotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcNotebookServiceStub, using the given settings.protectedGrpcNotebookServiceStub(NotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcNotebookServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse>checkInstanceUpgradabilityCallable()voidclose()static GrpcNotebookServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcNotebookServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcNotebookServiceStubcreate(NotebookServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation>createInstanceCallable()com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,OperationMetadata>createInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.longrunning.Operation>deleteInstanceCallable()com.google.api.gax.rpc.OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty,OperationMetadata>deleteInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<DiagnoseInstanceRequest,com.google.longrunning.Operation>diagnoseInstanceCallable()com.google.api.gax.rpc.OperationCallable<DiagnoseInstanceRequest,Instance,OperationMetadata>diagnoseInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance>getInstanceCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse>listInstancesCallable()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,NotebookServiceClient.ListInstancesPagedResponse>listInstancesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,NotebookServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ResetInstanceRequest,com.google.longrunning.Operation>resetInstanceCallable()com.google.api.gax.rpc.OperationCallable<ResetInstanceRequest,Instance,OperationMetadata>resetInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<RollbackInstanceRequest,com.google.longrunning.Operation>rollbackInstanceCallable()com.google.api.gax.rpc.OperationCallable<RollbackInstanceRequest,Instance,OperationMetadata>rollbackInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<StartInstanceRequest,com.google.longrunning.Operation>startInstanceCallable()com.google.api.gax.rpc.OperationCallable<StartInstanceRequest,Instance,OperationMetadata>startInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<StopInstanceRequest,com.google.longrunning.Operation>stopInstanceCallable()com.google.api.gax.rpc.OperationCallable<StopInstanceRequest,Instance,OperationMetadata>stopInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation>updateInstanceCallable()com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata>updateInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpgradeInstanceRequest,com.google.longrunning.Operation>upgradeInstanceCallable()com.google.api.gax.rpc.OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata>upgradeInstanceOperationCallable()-
Methods inherited from class com.google.cloud.notebooks.v2.stub.NotebookServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcNotebookServiceStub
protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcNotebookServiceStub create(NotebookServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcNotebookServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcNotebookServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classNotebookServiceStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
- Overrides:
listInstancesCallablein classNotebookServiceStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,NotebookServiceClient.ListInstancesPagedResponse> listInstancesPagedCallable()
- Overrides:
listInstancesPagedCallablein classNotebookServiceStub
-
getInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
- Overrides:
getInstanceCallablein classNotebookServiceStub
-
createInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation> createInstanceCallable()
- Overrides:
createInstanceCallablein classNotebookServiceStub
-
createInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
- Overrides:
createInstanceOperationCallablein classNotebookServiceStub
-
updateInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation> updateInstanceCallable()
- Overrides:
updateInstanceCallablein classNotebookServiceStub
-
updateInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
- Overrides:
updateInstanceOperationCallablein classNotebookServiceStub
-
deleteInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.longrunning.Operation> deleteInstanceCallable()
- Overrides:
deleteInstanceCallablein classNotebookServiceStub
-
deleteInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty,OperationMetadata> deleteInstanceOperationCallable()
- Overrides:
deleteInstanceOperationCallablein classNotebookServiceStub
-
startInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<StartInstanceRequest,com.google.longrunning.Operation> startInstanceCallable()
- Overrides:
startInstanceCallablein classNotebookServiceStub
-
startInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartInstanceRequest,Instance,OperationMetadata> startInstanceOperationCallable()
- Overrides:
startInstanceOperationCallablein classNotebookServiceStub
-
stopInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<StopInstanceRequest,com.google.longrunning.Operation> stopInstanceCallable()
- Overrides:
stopInstanceCallablein classNotebookServiceStub
-
stopInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopInstanceRequest,Instance,OperationMetadata> stopInstanceOperationCallable()
- Overrides:
stopInstanceOperationCallablein classNotebookServiceStub
-
resetInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<ResetInstanceRequest,com.google.longrunning.Operation> resetInstanceCallable()
- Overrides:
resetInstanceCallablein classNotebookServiceStub
-
resetInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResetInstanceRequest,Instance,OperationMetadata> resetInstanceOperationCallable()
- Overrides:
resetInstanceOperationCallablein classNotebookServiceStub
-
checkInstanceUpgradabilityCallable
public com.google.api.gax.rpc.UnaryCallable<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse> checkInstanceUpgradabilityCallable()
- Overrides:
checkInstanceUpgradabilityCallablein classNotebookServiceStub
-
upgradeInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpgradeInstanceRequest,com.google.longrunning.Operation> upgradeInstanceCallable()
- Overrides:
upgradeInstanceCallablein classNotebookServiceStub
-
upgradeInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata> upgradeInstanceOperationCallable()
- Overrides:
upgradeInstanceOperationCallablein classNotebookServiceStub
-
rollbackInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackInstanceRequest,com.google.longrunning.Operation> rollbackInstanceCallable()
- Overrides:
rollbackInstanceCallablein classNotebookServiceStub
-
rollbackInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<RollbackInstanceRequest,Instance,OperationMetadata> rollbackInstanceOperationCallable()
- Overrides:
rollbackInstanceOperationCallablein classNotebookServiceStub
-
diagnoseInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseInstanceRequest,com.google.longrunning.Operation> diagnoseInstanceCallable()
- Overrides:
diagnoseInstanceCallablein classNotebookServiceStub
-
diagnoseInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseInstanceRequest,Instance,OperationMetadata> diagnoseInstanceOperationCallable()
- Overrides:
diagnoseInstanceOperationCallablein classNotebookServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classNotebookServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,NotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classNotebookServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classNotebookServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classNotebookServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classNotebookServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-