Class LocalInventoryServiceClientImpl
LocalInventoryService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Inventories.V1Beta
Assembly: Google.Shopping.Merchant.Inventories.V1Beta.dll
Syntax
public sealed class LocalInventoryServiceClientImpl : LocalInventoryServiceClient
Remarks
Service to manage local inventory for products
Constructors
LocalInventoryServiceClientImpl(LocalInventoryServiceClient, LocalInventoryServiceSettings, ILogger)
Constructs a client wrapper for the LocalInventoryService service, with the specified gRPC client and settings.
Declaration
public LocalInventoryServiceClientImpl(LocalInventoryService.LocalInventoryServiceClient grpcClient, LocalInventoryServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
LocalInventoryService.LocalInventoryServiceClient | grpcClient | The underlying gRPC client. |
LocalInventoryServiceSettings | settings | The base LocalInventoryServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC LocalInventoryService client
Declaration
public override LocalInventoryService.LocalInventoryServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
LocalInventoryService.LocalInventoryServiceClient |
Overrides
Methods
DeleteLocalInventory(DeleteLocalInventoryRequest, CallSettings)
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 override void DeleteLocalInventory(DeleteLocalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteLocalInventoryAsync(DeleteLocalInventoryRequest, CallSettings)
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 override Task DeleteLocalInventoryAsync(DeleteLocalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
InsertLocalInventory(InsertLocalInventoryRequest, CallSettings)
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 override LocalInventory InsertLocalInventory(InsertLocalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
LocalInventory | The RPC response. |
Overrides
InsertLocalInventoryAsync(InsertLocalInventoryRequest, CallSettings)
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 override Task<LocalInventory> InsertLocalInventoryAsync(InsertLocalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<LocalInventory> | A Task containing the RPC response. |
Overrides
ListLocalInventories(ListLocalInventoriesRequest, CallSettings)
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 override PagedEnumerable<ListLocalInventoriesResponse, LocalInventory> ListLocalInventories(ListLocalInventoriesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListLocalInventoriesResponse, LocalInventory> | A pageable sequence of LocalInventory resources. |
Overrides
ListLocalInventoriesAsync(ListLocalInventoriesRequest, CallSettings)
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 override PagedAsyncEnumerable<ListLocalInventoriesResponse, LocalInventory> ListLocalInventoriesAsync(ListLocalInventoriesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListLocalInventoriesResponse, LocalInventory> | A pageable asynchronous sequence of LocalInventory resources. |