Class GrpcNotebookServiceStub (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public class GrpcNotebookServiceStub extends NotebookServiceStub

gRPC stub implementation for the NotebookService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > NotebookServiceStub > GrpcNotebookServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcNotebookServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcNotebookServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(NotebookServiceStubSettings settings)

public static final GrpcNotebookServiceStub create(NotebookServiceStubSettings settings)
Parameter
NameDescription
settingsNotebookServiceStubSettings
Returns
TypeDescription
GrpcNotebookServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext)

protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcNotebookServiceStub, 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
settingsNotebookServiceStubSettings
clientContextClientContext

GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcNotebookServiceStub, 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
settingsNotebookServiceStubSettings
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

createEnvironmentCallable()

public UnaryCallable<CreateEnvironmentRequest,Operation> createEnvironmentCallable()
Returns
TypeDescription
UnaryCallable<CreateEnvironmentRequest,Operation>
Overrides

createEnvironmentOperationCallable()

public OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata> createEnvironmentOperationCallable()
Returns
TypeDescription
OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata>
Overrides

createExecutionCallable()

public UnaryCallable<CreateExecutionRequest,Operation> createExecutionCallable()
Returns
TypeDescription
UnaryCallable<CreateExecutionRequest,Operation>
Overrides

createExecutionOperationCallable()

public OperationCallable<CreateExecutionRequest,Execution,OperationMetadata> createExecutionOperationCallable()
Returns
TypeDescription
OperationCallable<CreateExecutionRequest,Execution,OperationMetadata>
Overrides

createInstanceCallable()

public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Returns
TypeDescription
UnaryCallable<CreateInstanceRequest,Operation>
Overrides

createInstanceOperationCallable()

public OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<CreateInstanceRequest,Instance,OperationMetadata>
Overrides

createScheduleCallable()

public UnaryCallable<CreateScheduleRequest,Operation> createScheduleCallable()
Returns
TypeDescription
UnaryCallable<CreateScheduleRequest,Operation>
Overrides

createScheduleOperationCallable()

public OperationCallable<CreateScheduleRequest,Schedule,OperationMetadata> createScheduleOperationCallable()
Returns
Type<