Class HttpJsonProductServiceStub (2.6.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
TypeDescription
HttpJsonProductServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ProductServiceStubSettings settings)

public static final HttpJsonProductServiceStub create(ProductServiceStubSettings settings)
Parameter
NameDescription
settingsProductServiceStubSettings
Returns
TypeDescription
HttpJsonProductServiceStub
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
TypeDescription
UnaryCallable<AddFulfillmentPlacesRequest,Operation>
Overrides

addFulfillmentPlacesOperationCallable()

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

addLocalInventoriesCallable()

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

addLocalInventoriesOperationCallable()

public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
Returns
TypeDescription
OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata>
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
TypeDescription
UnaryCallable<CreateProductRequest,Product>
Overrides

deleteProductCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getProductCallable()

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

importProductsCallable()

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

importProductsOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProductsCallable()

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

listProductsPagedCallable()

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

purgeProductsCallable()

public UnaryCallable<PurgeProductsRequest,Operation> purgeProductsCallable()
Returns
TypeDescription
UnaryCallable<PurgeProductsRequest,Operation>
Overrides

purgeProductsOperationCallable()

public OperationCallable<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata> purgeProductsOperationCallable()
Returns
TypeDescription
OperationCallable<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata>
Overrides

removeFulfillmentPlacesCallable()

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

removeFulfillmentPlacesOperationCallable()

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

removeLocalInventoriesCallable()

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

removeLocalInventoriesOperationCallable()

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

setInventoryCallable()

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

setInventoryOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProductCallable()

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