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 protected
GrpcNotebookServiceStub(NotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcNotebookServiceStub, using the given settings.protected
GrpcNotebookServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse>
checkInstanceUpgradabilityCallable()
void
close()
static GrpcNotebookServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcNotebookServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcNotebookServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classNotebookServiceStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
- Overrides:
listInstancesCallable
in classNotebookServiceStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,NotebookServiceClient.ListInstancesPagedResponse> listInstancesPagedCallable()
- Overrides:
listInstancesPagedCallable
in classNotebookServiceStub
-
getInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
- Overrides:
getInstanceCallable
in classNotebookServiceStub
-
createInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation> createInstanceCallable()
- Overrides:
createInstanceCallable
in classNotebookServiceStub
-
createInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
- Overrides:
createInstanceOperationCallable
in classNotebookServiceStub
-
updateInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation> updateInstanceCallable()
- Overrides:
updateInstanceCallable
in classNotebookServiceStub
-
updateInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
- Overrides:
updateInstanceOperationCallable
in classNotebookServiceStub
-
deleteInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.longrunning.Operation> deleteInstanceCallable()
- Overrides:
deleteInstanceCallable
in classNotebookServiceStub
-
deleteInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty,OperationMetadata> deleteInstanceOperationCallable()
- Overrides:
deleteInstanceOperationCallable
in classNotebookServiceStub
-
startInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<StartInstanceRequest,com.google.longrunning.Operation> startInstanceCallable()
- Overrides:
startInstanceCallable
in classNotebookServiceStub
-
startInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartInstanceRequest,Instance,OperationMetadata> startInstanceOperationCallable()
- Overrides:
startInstanceOperationCallable
in classNotebookServiceStub
-
stopInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<StopInstanceRequest,com.google.longrunning.Operation> stopInstanceCallable()
- Overrides:
stopInstanceCallable
in classNotebookServiceStub
-
stopInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopInstanceRequest,Instance,OperationMetadata> stopInstanceOperationCallable()
- Overrides:
stopInstanceOperationCallable
in classNotebookServiceStub
-
resetInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<ResetInstanceRequest,com.google.longrunning.Operation> resetInstanceCallable()
- Overrides:
resetInstanceCallable
in classNotebookServiceStub
-
resetInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResetInstanceRequest,Instance,OperationMetadata> resetInstanceOperationCallable()
- Overrides:
resetInstanceOperationCallable
in classNotebookServiceStub
-
checkInstanceUpgradabilityCallable
public com.google.api.gax.rpc.UnaryCallable<CheckInstanceUpgradabilityRequest,CheckInstanceUpgradabilityResponse> checkInstanceUpgradabilityCallable()
- Overrides:
checkInstanceUpgradabilityCallable
in classNotebookServiceStub
-
upgradeInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpgradeInstanceRequest,com.google.longrunning.Operation> upgradeInstanceCallable()
- Overrides:
upgradeInstanceCallable
in classNotebookServiceStub
-
upgradeInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata> upgradeInstanceOperationCallable()
- Overrides:
upgradeInstanceOperationCallable
in classNotebookServiceStub
-
rollbackInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackInstanceRequest,com.google.longrunning.Operation> rollbackInstanceCallable()
- Overrides:
rollbackInstanceCallable
in classNotebookServiceStub
-
rollbackInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<RollbackInstanceRequest,Instance,OperationMetadata> rollbackInstanceOperationCallable()
- Overrides:
rollbackInstanceOperationCallable
in classNotebookServiceStub
-
diagnoseInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseInstanceRequest,com.google.longrunning.Operation> diagnoseInstanceCallable()
- Overrides:
diagnoseInstanceCallable
in classNotebookServiceStub
-
diagnoseInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseInstanceRequest,Instance,OperationMetadata> diagnoseInstanceOperationCallable()
- Overrides:
diagnoseInstanceOperationCallable
in classNotebookServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classNotebookServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,NotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classNotebookServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classNotebookServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classNotebookServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classNotebookServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classNotebookServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-