# Interface LocalInventoryServiceGrpc.AsyncService (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.46.0 0.44.0 0.43.0 0.40.0 0.39.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0

    public static interface LocalInventoryServiceGrpc.AsyncService

Service to manage local inventory for products

## Methods

### deleteLocalInventory(DeleteLocalInventoryRequest request, StreamObserver\<Empty\> responseObserver)

    public default 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` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |

### insertLocalInventory(InsertLocalInventoryRequest request, StreamObserver\<LocalInventory\> responseObserver)

    public default 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` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1beta.LocalInventory>` |

### listLocalInventories(ListLocalInventoriesRequest request, StreamObserver\<ListLocalInventoriesResponse\> responseObserver)

    public default 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` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse>` |