Show / Hide Table of Contents

Class LocalInventoryServiceClientImpl

LocalInventoryService client wrapper implementation, for convenient use.

Inheritance
object
LocalInventoryServiceClient
LocalInventoryServiceClientImpl
Inherited Members
LocalInventoryServiceClient.DefaultEndpoint
LocalInventoryServiceClient.DefaultScopes
LocalInventoryServiceClient.ServiceMetadata
LocalInventoryServiceClient.CreateAsync(CancellationToken)
LocalInventoryServiceClient.Create()
LocalInventoryServiceClient.ShutdownDefaultChannelsAsync()
LocalInventoryServiceClient.ListLocalInventories(string, string, int?, CallSettings)
LocalInventoryServiceClient.ListLocalInventoriesAsync(string, string, int?, CallSettings)
LocalInventoryServiceClient.ListLocalInventories(ProductName, string, int?, CallSettings)
LocalInventoryServiceClient.ListLocalInventoriesAsync(ProductName, string, int?, CallSettings)
LocalInventoryServiceClient.InsertLocalInventoryAsync(InsertLocalInventoryRequest, CancellationToken)
LocalInventoryServiceClient.DeleteLocalInventoryAsync(DeleteLocalInventoryRequest, CancellationToken)
LocalInventoryServiceClient.DeleteLocalInventory(string, CallSettings)
LocalInventoryServiceClient.DeleteLocalInventoryAsync(string, CallSettings)
LocalInventoryServiceClient.DeleteLocalInventoryAsync(string, CancellationToken)
LocalInventoryServiceClient.DeleteLocalInventory(LocalInventoryName, CallSettings)
LocalInventoryServiceClient.DeleteLocalInventoryAsync(LocalInventoryName, CallSettings)
LocalInventoryServiceClient.DeleteLocalInventoryAsync(LocalInventoryName, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Inventories.V1
Assembly: Google.Shopping.Merchant.Inventories.V1.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
LocalInventoryServiceClient.GrpcClient

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
LocalInventoryServiceClient.DeleteLocalInventory(DeleteLocalInventoryRequest, CallSettings)

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
LocalInventoryServiceClient.DeleteLocalInventoryAsync(DeleteLocalInventoryRequest, CallSettings)

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.v1.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
LocalInventoryServiceClient.InsertLocalInventory(InsertLocalInventoryRequest, CallSettings)

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.v1.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
LocalInventoryServiceClient.InsertLocalInventoryAsync(InsertLocalInventoryRequest, CallSettings)

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
LocalInventoryServiceClient.ListLocalInventories(ListLocalInventoriesRequest, CallSettings)

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.

Overrides
LocalInventoryServiceClient.ListLocalInventoriesAsync(ListLocalInventoriesRequest, CallSettings)
In this article
Back to top Generated by DocFX