Class ProductsServiceClientImpl
ProductsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Products.V1Beta
Assembly: Google.Shopping.Merchant.Products.V1Beta.dll
Syntax
public sealed class ProductsServiceClientImpl : ProductsServiceClient
Remarks
Service to use Product resource. This service works for products with online channel only.
Constructors
ProductsServiceClientImpl(ProductsServiceClient, ProductsServiceSettings, ILogger)
Constructs a client wrapper for the ProductsService service, with the specified gRPC client and settings.
Declaration
public ProductsServiceClientImpl(ProductsService.ProductsServiceClient grpcClient, ProductsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ProductsService.ProductsServiceClient | grpcClient | The underlying gRPC client. |
ProductsServiceSettings | settings | The base ProductsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC ProductsService client
Declaration
public override ProductsService.ProductsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
ProductsService.ProductsServiceClient |
Overrides
Methods
GetProduct(GetProductRequest, CallSettings)
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 override Product GetProduct(GetProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | 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 |
---|---|
Product | The RPC response. |
Overrides
GetProductAsync(GetProductRequest, CallSettings)
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 override Task<Product> GetProductAsync(GetProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetProductRequest | 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<Product> | A Task containing the RPC response. |
Overrides
ListProducts(ListProductsRequest, CallSettings)
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 override PagedEnumerable<ListProductsResponse, Product> ListProducts(ListProductsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | 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<ListProductsResponse, Product> | A pageable sequence of Product resources. |
Overrides
ListProductsAsync(ListProductsRequest, CallSettings)
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 override PagedAsyncEnumerable<ListProductsResponse, Product> ListProductsAsync(ListProductsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListProductsRequest | 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<ListProductsResponse, Product> | A pageable asynchronous sequence of Product resources. |