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 protected
GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcManagedNotebookServiceStub, using the given settings.protected
GrpcManagedNotebookServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcManagedNotebookServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcManagedNotebookServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcManagedNotebookServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetRuntimeRequest,Runtime>
getRuntimeCallable()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classManagedNotebookServiceStub
-
listRuntimesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
- Overrides:
listRuntimesCallable
in classManagedNotebookServiceStub
-
listRuntimesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ManagedNotebookServiceClient.ListRuntimesPagedResponse> listRuntimesPagedCallable()
- Overrides:
listRuntimesPagedCallable
in classManagedNotebookServiceStub
-
getRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuntimeRequest,Runtime> getRuntimeCallable()
- Overrides:
getRuntimeCallable
in classManagedNotebookServiceStub
-
createRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRuntimeRequest,com.google.longrunning.Operation> createRuntimeCallable()
- Overrides:
createRuntimeCallable
in classManagedNotebookServiceStub
-
createRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata> createRuntimeOperationCallable()
- Overrides:
createRuntimeOperationCallable
in classManagedNotebookServiceStub
-
updateRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRuntimeRequest,com.google.longrunning.Operation> updateRuntimeCallable()
- Overrides:
updateRuntimeCallable
in classManagedNotebookServiceStub
-
updateRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata> updateRuntimeOperationCallable()
- Overrides:
updateRuntimeOperationCallable
in classManagedNotebookServiceStub
-
deleteRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRuntimeRequest,com.google.longrunning.Operation> deleteRuntimeCallable()
- Overrides:
deleteRuntimeCallable
in classManagedNotebookServiceStub
-
deleteRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRuntimeRequest,com.google.protobuf.Empty,OperationMetadata> deleteRuntimeOperationCallable()
- Overrides:
deleteRuntimeOperationCallable
in classManagedNotebookServiceStub
-
startRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<StartRuntimeRequest,com.google.longrunning.Operation> startRuntimeCallable()
- Overrides:
startRuntimeCallable
in classManagedNotebookServiceStub
-
startRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata> startRuntimeOperationCallable()
- Overrides:
startRuntimeOperationCallable
in classManagedNotebookServiceStub
-
stopRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<StopRuntimeRequest,com.google.longrunning.Operation> stopRuntimeCallable()
- Overrides:
stopRuntimeCallable
in classManagedNotebookServiceStub
-
stopRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata> stopRuntimeOperationCallable()
- Overrides:
stopRuntimeOperationCallable
in classManagedNotebookServiceStub
-
switchRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<SwitchRuntimeRequest,com.google.longrunning.Operation> switchRuntimeCallable()
- Overrides:
switchRuntimeCallable
in classManagedNotebookServiceStub
-
switchRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata> switchRuntimeOperationCallable()
- Overrides:
switchRuntimeOperationCallable
in classManagedNotebookServiceStub
-
resetRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<ResetRuntimeRequest,com.google.longrunning.Operation> resetRuntimeCallable()
- Overrides:
resetRuntimeCallable
in classManagedNotebookServiceStub
-
resetRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata> resetRuntimeOperationCallable()
- Overrides:
resetRuntimeOperationCallable
in classManagedNotebookServiceStub
-
upgradeRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<UpgradeRuntimeRequest,com.google.longrunning.Operation> upgradeRuntimeCallable()
- Overrides:
upgradeRuntimeCallable
in classManagedNotebookServiceStub
-
upgradeRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata> upgradeRuntimeOperationCallable()
- Overrides:
upgradeRuntimeOperationCallable
in classManagedNotebookServiceStub
-
reportRuntimeEventCallable
public com.google.api.gax.rpc.UnaryCallable<ReportRuntimeEventRequest,com.google.longrunning.Operation> reportRuntimeEventCallable()
- Overrides:
reportRuntimeEventCallable
in classManagedNotebookServiceStub
-
reportRuntimeEventOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata> reportRuntimeEventOperationCallable()
- Overrides:
reportRuntimeEventOperationCallable
in classManagedNotebookServiceStub
-
refreshRuntimeTokenInternalCallable
public com.google.api.gax.rpc.UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternalCallable()
- Overrides:
refreshRuntimeTokenInternalCallable
in classManagedNotebookServiceStub
-
diagnoseRuntimeCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseRuntimeRequest,com.google.longrunning.Operation> diagnoseRuntimeCallable()
- Overrides:
diagnoseRuntimeCallable
in classManagedNotebookServiceStub
-
diagnoseRuntimeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata> diagnoseRuntimeOperationCallable()
- Overrides:
diagnoseRuntimeOperationCallable
in classManagedNotebookServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classManagedNotebookServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ManagedNotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classManagedNotebookServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classManagedNotebookServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classManagedNotebookServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classManagedNotebookServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classManagedNotebookServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-