Class GrpcManagedNotebookServiceStub (1.51.0)

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.

Inheritance

java.lang.Object > ManagedNotebookServiceStub > GrpcManagedNotebookServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcManagedNotebookServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcManagedNotebookServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcManagedNotebookServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcManagedNotebookServiceStub
Exceptions
Type Description
IOException

create(ManagedNotebookServiceStubSettings settings)

public static final GrpcManagedNotebookServiceStub create(ManagedNotebookServiceStubSettings settings)
Parameter
Name Description
settings ManagedNotebookServiceStubSettings
Returns
Type Description
GrpcManagedNotebookServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext)

protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
Name Description
settings ManagedNotebookServiceStubSettings
clientContext ClientContext

GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
Name Description
settings ManagedNotebookServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createRuntimeCallable()

public UnaryCallable<CreateRuntimeRequest,Operation> createRuntimeCallable()
Returns
Type Description
UnaryCallable<CreateRuntimeRequest,Operation>
Overrides

createRuntimeOperationCallable()

public OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata> createRuntimeOperationCallable()
Returns
Type Description
OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata>
Overrides

deleteRuntimeCallable()

public UnaryCallable<DeleteRuntimeRequest,Operation> deleteRuntimeCallable()
Returns
Type Description
UnaryCallable<DeleteRuntimeRequest,Operation>
Overrides

deleteRuntimeOperationCallable()

public OperationCallable<DeleteRuntimeRequest,Empty,OperationMetadata> deleteRuntimeOperationCallable()
Returns
Type Description
OperationCallable<DeleteRuntimeRequest,Empty,OperationMetadata>
Overrides

diagnoseRuntimeCallable()

public UnaryCallable<DiagnoseRuntimeRequest,Operation> diagnoseRuntimeCallable()
Returns
Type Description
UnaryCallable<DiagnoseRuntimeRequest,Operation>
Overrides

diagnoseRuntimeOperationCallable()

public OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata> diagnoseRuntimeOperationCallable()
Returns
Type Description
OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getRuntimeCallable()

public UnaryCallable<GetRuntimeRequest,Runtime> getRuntimeCallable()
Returns
Type Description
UnaryCallable<GetRuntimeRequest,Runtime>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ManagedNotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listRuntimesCallable()

public UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
Returns
Type Description
UnaryCallable<ListRuntimesRequest,ListRuntimesResponse>
Overrides

listRuntimesPagedCallable()

public UnaryCallable<ListRuntimesRequest,ManagedNotebookServiceClient.ListRuntimesPagedResponse> listRuntimesPagedCallable()
Returns
Type Description
UnaryCallable<ListRuntimesRequest,ListRuntimesPagedResponse>
Overrides

refreshRuntimeTokenInternalCallable()

public UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternalCallable()
Returns
Type Description
UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse>
Overrides

reportRuntimeEventCallable()

public UnaryCallable<ReportRuntimeEventRequest,Operation> reportRuntimeEventCallable()
Returns
Type Description
UnaryCallable<ReportRuntimeEventRequest,Operation>
Overrides

reportRuntimeEventOperationCallable()

public OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata> reportRuntimeEventOperationCallable()
Returns
Type Description
OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata>
Overrides

resetRuntimeCallable()

public UnaryCallable<ResetRuntimeRequest,Operation> resetRuntimeCallable()
Returns
Type Description
UnaryCallable<ResetRuntimeRequest,Operation>
Overrides

resetRuntimeOperationCallable()

public OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata> resetRuntimeOperationCallable()
Returns
Type Description
OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startRuntimeCallable()

public UnaryCallable<StartRuntimeRequest,Operation> startRuntimeCallable()
Returns
Type Description
UnaryCallable<StartRuntimeRequest,Operation>
Overrides

startRuntimeOperationCallable()

public OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata> startRuntimeOperationCallable()
Returns
Type Description
OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata>
Overrides

stopRuntimeCallable()

public UnaryCallable<StopRuntimeRequest,Operation> stopRuntimeCallable()
Returns
Type Description
UnaryCallable<StopRuntimeRequest,Operation>
Overrides

stopRuntimeOperationCallable()

public OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata> stopRuntimeOperationCallable()
Returns
Type Description
OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata>
Overrides

switchRuntimeCallable()

public UnaryCallable<SwitchRuntimeRequest,Operation> switchRuntimeCallable()
Returns
Type Description
UnaryCallable<SwitchRuntimeRequest,Operation>
Overrides

switchRuntimeOperationCallable()

public OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata> switchRuntimeOperationCallable()
Returns
Type Description
OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateRuntimeCallable()

public UnaryCallable<UpdateRuntimeRequest,Operation> updateRuntimeCallable()
Returns
Type Description
UnaryCallable<UpdateRuntimeRequest,Operation>
Overrides

updateRuntimeOperationCallable()

public OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata> updateRuntimeOperationCallable()
Returns
Type Description
OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata>
Overrides

upgradeRuntimeCallable()

public UnaryCallable<UpgradeRuntimeRequest,Operation> upgradeRuntimeCallable()
Returns
Type Description
UnaryCallable<UpgradeRuntimeRequest,Operation>
Overrides

upgradeRuntimeOperationCallable()

public OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata> upgradeRuntimeOperationCallable()
Returns
Type Description
OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata>
Overrides