Class LocalInventoryServiceGrpc.LocalInventoryServiceStub (0.31.0)

public static final class LocalInventoryServiceGrpc.LocalInventoryServiceStub extends AbstractAsyncStub<LocalInventoryServiceGrpc.LocalInventoryServiceStub>

A stub to allow clients to do asynchronous rpc calls to service LocalInventoryService.

Service to manage local inventory for products

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > LocalInventoryServiceGrpc.LocalInventoryServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected LocalInventoryServiceGrpc.LocalInventoryServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
LocalInventoryServiceGrpc.LocalInventoryServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

deleteLocalInventory(DeleteLocalInventoryRequest request, StreamObserver<Empty> responseObserver)

public void deleteLocalInventory(DeleteLocalInventoryRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified LocalInventory from the given product in your merchant account. It might take a up to an hour for the LocalInventory to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.

Parameters
Name Description
request DeleteLocalInventoryRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

insertLocalInventory(InsertLocalInventoryRequest request, StreamObserver<LocalInventory> responseObserver)

public void insertLocalInventory(InsertLocalInventoryRequest request, StreamObserver<LocalInventory> responseObserver)

Inserts a LocalInventory resource to a product in your merchant account. Replaces the full LocalInventory resource if an entry with the same storeCode already exists for the product. It might take up to 30 minutes for the new or updated LocalInventory resource to appear in products.

Parameters
Name Description
request InsertLocalInventoryRequest
responseObserver io.grpc.stub.StreamObserver<LocalInventory>

listLocalInventories(ListLocalInventoriesRequest request, StreamObserver<ListLocalInventoriesResponse> responseObserver)

public void listLocalInventories(ListLocalInventoriesRequest request, StreamObserver<ListLocalInventoriesResponse> responseObserver)

Lists the LocalInventory resources for the given product in your merchant account. The response might contain fewer items than specified by pageSize. If pageToken was returned in previous request, it can be used to obtain additional results. LocalInventory resources are listed per product for a given account.

Parameters
Name Description
request ListLocalInventoriesRequest
responseObserver io.grpc.stub.StreamObserver<ListLocalInventoriesResponse>