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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionalInventoryServiceStubSettings settings)

public static final HttpJsonRegionalInventoryServiceStub create(RegionalInventoryServiceStubSettings settings)
Parameter
Name Description
settings RegionalInventoryServiceStubSettings
Returns
Type Description
HttpJsonRegionalInventoryServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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
Name Description
settings RegionalInventoryServiceStubSettings
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

deleteRegionalInventoryCallable()

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

insertRegionalInventoryCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listRegionalInventoriesCallable()

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

listRegionalInventoriesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()