Class HttpJsonProductServiceStub (2.8.0)

public class HttpJsonProductServiceStub extends ProductServiceStub

REST stub implementation for the ProductService service API.

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

Inheritance

java.lang.Object > ProductServiceStub > HttpJsonProductServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ProductServiceStubSettings settings)

public static final HttpJsonProductServiceStub create(ProductServiceStubSettings settings)
Parameter
NameDescription
settingsProductServiceStubSettings
Returns Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonProductServiceStub, 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
settingsProductServiceStubSettings
clientContextClientContext

HttpJsonProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonProductServiceStub, 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
settingsProductServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addFulfillmentPlacesCallable()

public UnaryCallable<AddFulfillmentPlacesRequest,Operation> addFulfillmentPlacesCallable()
Returns Overrides

addFulfillmentPlacesOperationCallable()

public OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationCallable()
Returns Overrides

addLocalInventoriesCallable()

public UnaryCallable<AddLocalInventoriesRequest,Operation> addLocalInventoriesCallable()
Returns Overrides

addLocalInventoriesOperationCallable()

public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
Returns Overrides

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

createProductCallable()

public UnaryCallable<CreateProductRequest,Product> createProductCallable()
Returns Overrides

deleteProductCallable()

public UnaryCallable<DeleteProductRequest,Empty> deleteProductCallable()
Returns Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getProductCallable()

public UnaryCallable<GetProductRequest,Product> getProductCallable()
Returns Overrides

importProductsCallable()

public UnaryCallable<ImportProductsRequest,Operation> importProductsCallable()
Returns Overrides

importProductsOperationCallable()

public OperationCallable<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationCallable()
Returns Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProductsCallable()

public UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
Returns Overrides

listProductsPagedCallable()

public UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()
Returns Overrides

removeFulfillmentPlacesCallable()

public UnaryCallable<RemoveFulfillmentPlacesRequest,Operation> removeFulfillmentPlacesCallable()
Returns Overrides

removeFulfillmentPlacesOperationCallable()

public OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationCallable()
Returns Overrides

removeLocalInventoriesCallable()

public UnaryCallable<RemoveLocalInventoriesRequest,Operation> removeLocalInventoriesCallable()
Returns Overrides

removeLocalInventoriesOperationCallable()

public OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationCallable()
Returns Overrides

setInventoryCallable()

public UnaryCallable<SetInventoryRequest,Operation> setInventoryCallable()
Returns Overrides

setInventoryOperationCallable()

public OperationCallable<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationCallable()
Returns Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProductCallable()

public UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
Returns Overrides