Class GrpcManagedNotebookServiceStub (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
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()