Class LocalInventoryService.LocalInventoryServiceClient
Client for LocalInventoryService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Inventories.V1Beta
Assembly: Google.Shopping.Merchant.Inventories.V1Beta.dll
Syntax
public class LocalInventoryService.LocalInventoryServiceClient : ClientBase<LocalInventoryService.LocalInventoryServiceClient>
Constructors
LocalInventoryServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected LocalInventoryServiceClient()
LocalInventoryServiceClient(CallInvoker)
Creates a new client for LocalInventoryService that uses a custom CallInvoker
.
Declaration
public LocalInventoryServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
LocalInventoryServiceClient(ChannelBase)
Creates a new client for LocalInventoryService
Declaration
public LocalInventoryServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
LocalInventoryServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected LocalInventoryServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
DeleteLocalInventory(DeleteLocalInventoryRequest, CallOptions)
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 Empty DeleteLocalInventory(DeleteLocalInventoryRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteLocalInventory(DeleteLocalInventoryRequest, Metadata, DateTime?, CancellationToken)
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 Empty DeleteLocalInventory(DeleteLocalInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteLocalInventoryAsync(DeleteLocalInventoryRequest, CallOptions)
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 AsyncUnaryCall<Empty> DeleteLocalInventoryAsync(DeleteLocalInventoryRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
DeleteLocalInventoryAsync(DeleteLocalInventoryRequest, Metadata, DateTime?, CancellationToken)
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 AsyncUnaryCall<Empty> DeleteLocalInventoryAsync(DeleteLocalInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteLocalInventoryRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
InsertLocalInventory(InsertLocalInventoryRequest, CallOptions)
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 LocalInventory InsertLocalInventory(InsertLocalInventoryRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
LocalInventory | The response received from the server. |
InsertLocalInventory(InsertLocalInventoryRequest, Metadata, DateTime?, CancellationToken)
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 LocalInventory InsertLocalInventory(InsertLocalInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
LocalInventory | The response received from the server. |
InsertLocalInventoryAsync(InsertLocalInventoryRequest, CallOptions)
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 AsyncUnaryCall<LocalInventory> InsertLocalInventoryAsync(InsertLocalInventoryRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<LocalInventory> | The call object. |
InsertLocalInventoryAsync(InsertLocalInventoryRequest, Metadata, DateTime?, CancellationToken)
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 AsyncUnaryCall<LocalInventory> InsertLocalInventoryAsync(InsertLocalInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
InsertLocalInventoryRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<LocalInventory> | The call object. |
ListLocalInventories(ListLocalInventoriesRequest, CallOptions)
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 ListLocalInventoriesResponse ListLocalInventories(ListLocalInventoriesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListLocalInventoriesResponse | The response received from the server. |
ListLocalInventories(ListLocalInventoriesRequest, Metadata, DateTime?, CancellationToken)
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 ListLocalInventoriesResponse ListLocalInventories(ListLocalInventoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
ListLocalInventoriesResponse | The response received from the server. |
ListLocalInventoriesAsync(ListLocalInventoriesRequest, CallOptions)
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 AsyncUnaryCall<ListLocalInventoriesResponse> ListLocalInventoriesAsync(ListLocalInventoriesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListLocalInventoriesResponse> | The call object. |
ListLocalInventoriesAsync(ListLocalInventoriesRequest, Metadata, DateTime?, CancellationToken)
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 AsyncUnaryCall<ListLocalInventoriesResponse> ListLocalInventoriesAsync(ListLocalInventoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListLocalInventoriesRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListLocalInventoriesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override LocalInventoryService.LocalInventoryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
LocalInventoryService.LocalInventoryServiceClient |