Class ProductsService.ProductsServiceClient
Client for ProductsService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Products.V1
Assembly: Google.Shopping.Merchant.Products.V1.dll
Syntax
public class ProductsService.ProductsServiceClient : ClientBase<ProductsService.ProductsServiceClient>
Constructors
ProductsServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected ProductsServiceClient()
ProductsServiceClient(CallInvoker)
Creates a new client for ProductsService that uses a custom CallInvoker
.
Declaration
public ProductsServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
ProductsServiceClient(ChannelBase)
Creates a new client for ProductsService
Declaration
public ProductsServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
ProductsServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected ProductsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetProduct(GetProductRequest, CallOptions)
Retrieves the processed product from your Merchant Center account.
After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.
Declaration
public virtual Product GetProduct(GetProductRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Product | The response received from the server. |
GetProduct(GetProductRequest, Metadata, DateTime?, CancellationToken)
Retrieves the processed product from your Merchant Center account.
After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.
Declaration
public virtual Product GetProduct(GetProductRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | 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 |
---|---|
Product | The response received from the server. |
GetProductAsync(GetProductRequest, CallOptions)
Retrieves the processed product from your Merchant Center account.
After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.
Declaration
public virtual AsyncUnaryCall<Product> GetProductAsync(GetProductRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Product> | The call object. |
GetProductAsync(GetProductRequest, Metadata, DateTime?, CancellationToken)
Retrieves the processed product from your Merchant Center account.
After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.
Declaration
public virtual AsyncUnaryCall<Product> GetProductAsync(GetProductRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | 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<Product> | The call object. |
ListProducts(ListProductsRequest, CallOptions)
Lists the processed products in your Merchant Center account. The response
might contain fewer items than specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested.
After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
Declaration
public virtual ListProductsResponse ListProducts(ListProductsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListProductsResponse | The response received from the server. |
ListProducts(ListProductsRequest, Metadata, DateTime?, CancellationToken)
Lists the processed products in your Merchant Center account. The response
might contain fewer items than specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested.
After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
Declaration
public virtual ListProductsResponse ListProducts(ListProductsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | 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 |
---|---|
ListProductsResponse | The response received from the server. |
ListProductsAsync(ListProductsRequest, CallOptions)
Lists the processed products in your Merchant Center account. The response
might contain fewer items than specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested.
After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
Declaration
public virtual AsyncUnaryCall<ListProductsResponse> ListProductsAsync(ListProductsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListProductsResponse> | The call object. |
ListProductsAsync(ListProductsRequest, Metadata, DateTime?, CancellationToken)
Lists the processed products in your Merchant Center account. The response
might contain fewer items than specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested.
After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
Declaration
public virtual AsyncUnaryCall<ListProductsResponse> ListProductsAsync(ListProductsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | 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<ListProductsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override ProductsService.ProductsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
ProductsService.ProductsServiceClient |