Class HttpJsonEngineServiceStub (0.39.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonEngineServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(EngineServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings EngineServiceStubSettings
clientContext ClientContext

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
Name Description
settings EngineServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEngineCallable()

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