Class HttpJsonEngineServiceStub (0.31.0)

public class HttpJsonEngineServiceStub extends EngineServiceStub

REST stub implementation for the EngineService service API.

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

Inheritance

java.lang.Object > EngineServiceStub > HttpJsonEngineServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonEngineServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonEngineServiceStub
Exceptions
TypeDescription
IOException

create(EngineServiceStubSettings settings)

public static final HttpJsonEngineServiceStub create(EngineServiceStubSettings settings)
Parameter
NameDescription
settingsEngineServiceStubSettings
Returns
TypeDescription
HttpJsonEngineServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonEngineServiceStub(EngineServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonEngineServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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