Class RegionalInventoryServiceClientImpl
RegionalInventoryService 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 RegionalInventoryServiceClientImpl : RegionalInventoryServiceClient
Remarks
Service to manage regional inventory for products. There is also separate
regions
resource and API to manage regions definitions.
Constructors
RegionalInventoryServiceClientImpl(RegionalInventoryServiceClient, RegionalInventoryServiceSettings, ILogger)
Constructs a client wrapper for the RegionalInventoryService service, with the specified gRPC client and settings.
Declaration
public RegionalInventoryServiceClientImpl(RegionalInventoryService.RegionalInventoryServiceClient grpcClient, RegionalInventoryServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Regional |
grpcClient | The underlying gRPC client. |
Regional |
settings | The base Regional |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC RegionalInventoryService client
Declaration
public override RegionalInventoryService.RegionalInventoryServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Regional |
Overrides
Methods
DeleteRegionalInventory(DeleteRegionalInventoryRequest, CallSettings)
Deletes the specified RegionalInventory
resource from the given product
in your merchant account. It might take up to an hour for the
RegionalInventory
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 DeleteRegionalInventory(DeleteRegionalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteRegionalInventoryAsync(DeleteRegionalInventoryRequest, CallSettings)
Deletes the specified RegionalInventory
resource from the given product
in your merchant account. It might take up to an hour for the
RegionalInventory
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 DeleteRegionalInventoryAsync(DeleteRegionalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
InsertRegionalInventory(InsertRegionalInventoryRequest, CallSettings)
Inserts a RegionalInventory
to a given product in your
merchant account.
Replaces the full RegionalInventory
resource if an entry with the same
[region
][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]
already exists for the product.
It might take up to 30 minutes for the new or updated RegionalInventory
resource to appear in products.
Declaration
public override RegionalInventory InsertRegionalInventory(InsertRegionalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Insert |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Regional |
The RPC response. |
Overrides
InsertRegionalInventoryAsync(InsertRegionalInventoryRequest, CallSettings)
Inserts a RegionalInventory
to a given product in your
merchant account.
Replaces the full RegionalInventory
resource if an entry with the same
[region
][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]
already exists for the product.
It might take up to 30 minutes for the new or updated RegionalInventory
resource to appear in products.
Declaration
public override Task<RegionalInventory> InsertRegionalInventoryAsync(InsertRegionalInventoryRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Insert |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Regional |
A Task containing the RPC response. |
Overrides
ListRegionalInventories(ListRegionalInventoriesRequest, CallSettings)
Lists the RegionalInventory
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.
RegionalInventory
resources are listed per product for a given account.
Declaration
public override PagedEnumerable<ListRegionalInventoriesResponse, RegionalInventory> ListRegionalInventories(ListRegionalInventoriesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable sequence of Regional |
Overrides
ListRegionalInventoriesAsync(ListRegionalInventoriesRequest, CallSettings)
Lists the RegionalInventory
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.
RegionalInventory
resources are listed per product for a given account.
Declaration
public override PagedAsyncEnumerable<ListRegionalInventoriesResponse, RegionalInventory> ListRegionalInventoriesAsync(ListRegionalInventoriesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable asynchronous sequence of Regional |