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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(EngineServiceStubSettings settings)

public static final GrpcEngineServiceStub create(EngineServiceStubSettings settings)
Parameter
NameDescription
settingsEngineServiceStubSettings
Returns
TypeDescription
GrpcEngineServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsEngineServiceStubSettings
clientContextClientContext

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
NameDescription
settingsEngineServiceStubSettings
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

createEngineCallable()

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

createEngineOperationCallable()

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

deleteEngineCallable()

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

deleteEngineOperationCallable()

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

getEngineCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEnginesCallable()

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

listEnginesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEngineCallable()

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