Class GrpcManagedNotebookServiceStub
- java.lang.Object
-
- com.google.cloud.notebooks.v1.stub.ManagedNotebookServiceStub
-
- com.google.cloud.notebooks.v1.stub.GrpcManagedNotebookServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcManagedNotebookServiceStub extends ManagedNotebookServiceStub
gRPC stub implementation for the ManagedNotebookService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcManagedNotebookServiceStub, using the given settings.protectedGrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcManagedNotebookServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcManagedNotebookServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcManagedNotebookServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcManagedNotebookServiceStubcreate(ManagedNotebookServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateRuntimeRequest,com.google.longrunning.Operation>createRuntimeCallable()com.google.api.gax.rpc.OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata>createRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteRuntimeRequest,com.google.longrunning.Operation>deleteRuntimeCallable()com.google.api.gax.rpc.OperationCallable<DeleteRuntimeRequest,com.google.protobuf.Empty,OperationMetadata>deleteRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<DiagnoseRuntimeRequest,com.google.longrunning.Operation>diagnoseRuntimeCallable()com.google.api.gax.rpc.OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata>diagnoseRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetRuntimeRequest,Runtime>getRuntimeCallable()booleanisShutdown()booleanisTerminated()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,ManagedNotebookServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse>listRuntimesCallable()com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ManagedNotebookServiceClient.ListRuntimesPagedResponse>listRuntimesPagedCallable()com.google.api.gax.rpc.UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse>refreshRuntimeTokenInternalCallable()com.google.api.gax.rpc.UnaryCallable<ReportRuntimeEventRequest,com.google.longrunning.Operation>reportRuntimeEventCallable()com.google.api.gax.rpc.OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata>reportRuntimeEventOperationCallable()com.google.api.gax.rpc.UnaryCallable<ResetRuntimeRequest,com.google.longrunning.Operation>resetRuntimeCallable()com.google.api.gax.rpc.OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata>resetRuntimeOperationCallable()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<StartRuntimeRequest,com.google.longrunning.Operation>startRuntimeCallable()com.google.api.gax.rpc.OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata>startRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<StopRuntimeRequest,com.google.longrunning.Operation>stopRuntimeCallable()com.google.api.gax.rpc.OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata>stopRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<SwitchRuntimeRequest,com.google.longrunning.Operation>switchRuntimeCallable()com.google.api.gax.rpc.OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata>switchRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateRuntimeRequest,com.google.longrunning.Operation>updateRuntimeCallable()com.google.api.gax.rpc.OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata>updateRuntimeOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpgradeRuntimeRequest,com.google.longrunning.Operation>upgradeRuntimeCallable()com.google.api.gax.rpc.OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata>upgradeRuntimeOperationCallable()
-
-
-
Constructor Detail
-
GrpcManagedNotebookServiceStub
protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcManagedNotebookServiceStub, 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
-
GrpcManagedNotebookServiceStub
protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcManagedNotebookServiceStub, 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 GrpcManagedNotebookServiceStub create(ManagedNotebookServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcManagedNotebookServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcManagedNotebookServiceStub 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 classManagedNotebookServiceStub
-
listRuntimesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
- Overrides:
listRuntimesCallablein classManagedNotebookServiceStub
-
listRuntimesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ManagedNotebookServiceClient.ListRuntimesPagedResponse> listRuntimesPagedCallable()
- Overrides:
listRuntimesPagedCallablein classManagedNotebookServiceStub
-
getRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuntimeRequest,Runtime> getRuntimeCallable()
- Overrides:
getRuntimeCallablein classManagedNotebookServiceStub
-
createRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRuntimeRequest,com.google.longrunning.Operation> createRuntimeCallable()
- Overrides:
createRuntimeCallablein classManagedNotebookServiceStub
-
createRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata> createRuntimeOperationCallable()
- Overrides:
createRuntimeOperationCallablein classManagedNotebookServiceStub
-
updateRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRuntimeRequest,com.google.longrunning.Operation> updateRuntimeCallable()
- Overrides:
updateRuntimeCallablein classManagedNotebookServiceStub
-
updateRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata> updateRuntimeOperationCallable()
- Overrides:
updateRuntimeOperationCallablein classManagedNotebookServiceStub
-
deleteRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRuntimeRequest,com.google.longrunning.Operation> deleteRuntimeCallable()
- Overrides:
deleteRuntimeCallablein classManagedNotebookServiceStub
-
deleteRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRuntimeRequest,com.google.protobuf.Empty,OperationMetadata> deleteRuntimeOperationCallable()
- Overrides:
deleteRuntimeOperationCallablein classManagedNotebookServiceStub
-
startRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<StartRuntimeRequest,com.google.longrunning.Operation> startRuntimeCallable()
- Overrides:
startRuntimeCallablein classManagedNotebookServiceStub
-
startRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata> startRuntimeOperationCallable()
- Overrides:
startRuntimeOperationCallablein classManagedNotebookServiceStub
-
stopRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<StopRuntimeRequest,com.google.longrunning.Operation> stopRuntimeCallable()
- Overrides:
stopRuntimeCallablein classManagedNotebookServiceStub
-
stopRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata> stopRuntimeOperationCallable()
- Overrides:
stopRuntimeOperationCallablein classManagedNotebookServiceStub
-
switchRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<SwitchRuntimeRequest,com.google.longrunning.Operation> switchRuntimeCallable()
- Overrides:
switchRuntimeCallablein classManagedNotebookServiceStub
-
switchRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata> switchRuntimeOperationCallable()
- Overrides:
switchRuntimeOperationCallablein classManagedNotebookServiceStub
-
resetRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<ResetRuntimeRequest,com.google.longrunning.Operation> resetRuntimeCallable()
- Overrides:
resetRuntimeCallablein classManagedNotebookServiceStub
-
resetRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata> resetRuntimeOperationCallable()
- Overrides:
resetRuntimeOperationCallablein classManagedNotebookServiceStub
-
upgradeRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<UpgradeRuntimeRequest,com.google.longrunning.Operation> upgradeRuntimeCallable()
- Overrides:
upgradeRuntimeCallablein classManagedNotebookServiceStub
-
upgradeRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata> upgradeRuntimeOperationCallable()
- Overrides:
upgradeRuntimeOperationCallablein classManagedNotebookServiceStub
-
reportRuntimeEventCallable
public com.google.api.gax.rpc.UnaryCallable<ReportRuntimeEventRequest,com.google.longrunning.Operation> reportRuntimeEventCallable()
- Overrides:
reportRuntimeEventCallablein classManagedNotebookServiceStub
-
reportRuntimeEventOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata> reportRuntimeEventOperationCallable()
- Overrides:
reportRuntimeEventOperationCallablein classManagedNotebookServiceStub
-
refreshRuntimeTokenInternalCallable
public com.google.api.gax.rpc.UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternalCallable()
- Overrides:
refreshRuntimeTokenInternalCallablein classManagedNotebookServiceStub
-
diagnoseRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseRuntimeRequest,com.google.longrunning.Operation> diagnoseRuntimeCallable()
- Overrides:
diagnoseRuntimeCallablein classManagedNotebookServiceStub
-
diagnoseRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata> diagnoseRuntimeOperationCallable()
- Overrides:
diagnoseRuntimeOperationCallablein classManagedNotebookServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classManagedNotebookServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ManagedNotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classManagedNotebookServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classManagedNotebookServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classManagedNotebookServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classManagedNotebookServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classManagedNotebookServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classManagedNotebookServiceStub
-
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
-
-