Class GrpcManagedNotebookServiceStub (1.2.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcManagedNotebookServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
IOException

create(ManagedNotebookServiceStubSettings settings)

public static final GrpcManagedNotebookServiceStub create(ManagedNotebookServiceStubSettings settings)
Parameter
NameDescription
settingsManagedNotebookServiceStubSettings
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsManagedNotebookServiceStubSettings
clientContextClientContext

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
NameDescription
settingsManagedNotebookServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createRuntimeCallable()

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

createRuntimeOperationCallable()

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

deleteRuntimeCallable()

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

deleteRuntimeOperationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getRuntimeCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listRuntimesCallable()

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

listRuntimesPagedCallable()

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

refreshRuntimeTokenInternalCallable()

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

reportRuntimeEventCallable()

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

reportRuntimeEventOperationCallable()

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

resetRuntimeCallable()

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

resetRuntimeOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startRuntimeCallable()

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

startRuntimeOperationCallable()

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

stopRuntimeCallable()

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

stopRuntimeOperationCallable()

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

switchRuntimeCallable()

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

switchRuntimeOperationCallable()

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