Class GrpcEngineServiceStub (0.51.0)

public class GrpcEngineServiceStub extends EngineServiceStub

gRPC stub implementation for the EngineService service API.

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

Inheritance

java.lang.Object > EngineServiceStub > GrpcEngineServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(EngineServiceStubSettings settings)

public static final GrpcEngineServiceStub create(EngineServiceStubSettings settings)
Parameter
Name Description
settings EngineServiceStubSettings
Returns
Type Description
GrpcEngineServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext)

protected GrpcEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcEngineServiceStub, 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 EngineServiceStubSettings
clientContext ClientContext

GrpcEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcEngineServiceStub, 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 EngineServiceStubSettings
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

createEngineCallable()

public UnaryCallable<CreateEngineRequest,Operation> createEngineCallable()
Returns
Type Description
UnaryCallable<CreateEngineRequest,Operation>
Overrides

createEngineOperationCallable()

public OperationCallable<CreateEngineRequest,Engine,CreateEngineMetadata> createEngineOperationCallable()
Returns
Type Description
OperationCallable<CreateEngineRequest,Engine,CreateEngineMetadata>
Overrides

deleteEngineCallable()

public UnaryCallable<DeleteEngineRequest,Operation> deleteEngineCallable()
Returns
Type Description
UnaryCallable<DeleteEngineRequest,Operation>
Overrides

deleteEngineOperationCallable()

public OperationCallable<DeleteEngineRequest,Empty,DeleteEngineMetadata> deleteEngineOperationCallable()
Returns
Type Description
OperationCallable<DeleteEngineRequest,Empty,DeleteEngineMetadata>
Overrides

getEngineCallable()

public UnaryCallable<GetEngineRequest,Engine> getEngineCallable()
Returns
Type Description
UnaryCallable<GetEngineRequest,Engine>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listEnginesCallable()

public UnaryCallable<ListEnginesRequest,ListEnginesResponse> listEnginesCallable()
Returns
Type Description
UnaryCallable<ListEnginesRequest,ListEnginesResponse>
Overrides

listEnginesPagedCallable()

public UnaryCallable<ListEnginesRequest,EngineServiceClient.ListEnginesPagedResponse> listEnginesPagedCallable()
Returns
Type Description
UnaryCallable<ListEnginesRequest,ListEnginesPagedResponse>
Overrides

pauseEngineCallable()

public UnaryCallable<PauseEngineRequest,Engine> pauseEngineCallable()
Returns
Type Description
UnaryCallable<PauseEngineRequest,Engine>
Overrides

resumeEngineCallable()

public UnaryCallable<ResumeEngineRequest,Engine> resumeEngineCallable()
Returns
Type Description
UnaryCallable<ResumeEngineRequest,Engine>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

tuneEngineCallable()

public UnaryCallable<TuneEngineRequest,Operation> tuneEngineCallable()
Returns
Type Description
UnaryCallable<TuneEngineRequest,Operation>
Overrides

tuneEngineOperationCallable()

public OperationCallable<TuneEngineRequest,TuneEngineResponse,TuneEngineMetadata> tuneEngineOperationCallable()
Returns
Type Description
OperationCallable<TuneEngineRequest,TuneEngineResponse,TuneEngineMetadata>
Overrides

updateEngineCallable()

public UnaryCallable<UpdateEngineRequest,Engine> updateEngineCallable()
Returns
Type Description
UnaryCallable<UpdateEngineRequest,Engine>
Overrides