Class LocalInventoryService.LocalInventoryServiceBase
Base class for server-side implementations of LocalInventoryService
Namespace: Google.Shopping.Merchant.Inventories.V1Beta
Assembly: Google.Shopping.Merchant.Inventories.V1Beta.dll
Syntax
[BindServiceMethod(typeof(LocalInventoryService), "BindService")]
public abstract class LocalInventoryService.LocalInventoryServiceBase
Methods
DeleteLocalInventory(DeleteLocalInventoryRequest, ServerCallContext)
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.
Declaration
public virtual Task<Empty> DeleteLocalInventory(DeleteLocalInventoryRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Empty> | The response to send back to the client (wrapped by a task). |
InsertLocalInventory(InsertLocalInventoryRequest, ServerCallContext)
Inserts a LocalInventory
resource to a product in your merchant
account.
Replaces the full LocalInventory
resource if an entry with the same
[storeCode
][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]
already exists for the product.
It might take up to 30 minutes for the new or updated LocalInventory
resource to appear in products.
Declaration
public virtual Task<LocalInventory> InsertLocalInventory(InsertLocalInventoryRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<LocalInventory> | The response to send back to the client (wrapped by a task). |
ListLocalInventories(ListLocalInventoriesRequest, ServerCallContext)
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.
Declaration
public virtual Task<ListLocalInventoriesResponse> ListLocalInventories(ListLocalInventoriesRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListLocalInventoriesResponse> | The response to send back to the client (wrapped by a task). |