Class HttpJsonRegionalInventoryServiceStub (0.3.0)

public class HttpJsonRegionalInventoryServiceStub extends RegionalInventoryServiceStub

REST stub implementation for the RegionalInventoryService service API.

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

Inheritance

java.lang.Object > RegionalInventoryServiceStub > HttpJsonRegionalInventoryServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionalInventoryServiceStubSettings settings)

public static final HttpJsonRegionalInventoryServiceStub create(RegionalInventoryServiceStubSettings settings)
Parameter
NameDescription
settingsRegionalInventoryServiceStubSettings
Returns
TypeDescription
HttpJsonRegionalInventoryServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonRegionalInventoryServiceStub(RegionalInventoryServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionalInventoryServiceStub(RegionalInventoryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionalInventoryServiceStub, 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
settingsRegionalInventoryServiceStubSettings
clientContextClientContext

HttpJsonRegionalInventoryServiceStub(RegionalInventoryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionalInventoryServiceStub(RegionalInventoryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

deleteRegionalInventoryCallable()

public UnaryCallable<DeleteRegionalInventoryRequest,Empty> deleteRegionalInventoryCallable()
Returns
TypeDescription
UnaryCallable<DeleteRegionalInventoryRequest,Empty>
Overrides

insertRegionalInventoryCallable()

public UnaryCallable<InsertRegionalInventoryRequest,RegionalInventory> insertRegionalInventoryCallable()
Returns
TypeDescription
UnaryCallable<InsertRegionalInventoryRequest,RegionalInventory>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listRegionalInventoriesCallable()

public UnaryCallable<ListRegionalInventoriesRequest,ListRegionalInventoriesResponse> listRegionalInventoriesCallable()
Returns
TypeDescription
UnaryCallable<ListRegionalInventoriesRequest,ListRegionalInventoriesResponse>
Overrides

listRegionalInventoriesPagedCallable()

public UnaryCallable<ListRegionalInventoriesRequest,RegionalInventoryServiceClient.ListRegionalInventoriesPagedResponse> listRegionalInventoriesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRegionalInventoriesRequest,ListRegionalInventoriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()