Class ProductServiceClientImpl
ProductService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class ProductServiceClientImpl : ProductServiceClient
Remarks
Service for ingesting [Product][google.cloud.retail.v2.Product] information of the customer's website.
Constructors
ProductServiceClientImpl(ProductService.ProductServiceClient, ProductServiceSettings)
Constructs a client wrapper for the ProductService service, with the specified gRPC client and settings.
Declaration
public ProductServiceClientImpl(ProductService.ProductServiceClient grpcClient, ProductServiceSettings settings)
Parameters
Type | Name | Description |
---|---|---|
ProductService.ProductServiceClient | grpcClient | The underlying gRPC client. |
ProductServiceSettings | settings | The base ProductServiceSettings used within this client. |
Properties
GrpcClient
The underlying gRPC ProductService client
Declaration
public override ProductService.ProductServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
ProductService.ProductServiceClient |
Overrides
ImportProductsOperationsClient
The long-running operations client for ImportProducts
.
Declaration
public override OperationsClient ImportProductsOperationsClient { get; }
Property Value
Type | Description |
---|---|
OperationsClient |
Overrides
Methods
CreateProduct(CreateProductRequest, CallSettings)
Creates a [Product][google.cloud.retail.v2.Product].
Declaration
public override Product CreateProduct(CreateProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateProductRequest | 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
CreateProductAsync(CreateProductRequest, CallSettings)
Creates a [Product][google.cloud.retail.v2.Product].
Declaration
public override Task<Product> CreateProductAsync(CreateProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateProductRequest | 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 |
---|---|
System.Threading.Tasks.Task<Product> | A Task containing the RPC response. |
Overrides
DeleteProduct(DeleteProductRequest, CallSettings)
Deletes a [Product][google.cloud.retail.v2.Product].
Declaration
public override void DeleteProduct(DeleteProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteProductRequest | 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
DeleteProductAsync(DeleteProductRequest, CallSettings)
Deletes a [Product][google.cloud.retail.v2.Product].
Declaration
public override Task DeleteProductAsync(DeleteProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteProductRequest | 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 |
---|---|
System.Threading.Tasks.Task | A Task containing the RPC response. |
Overrides
GetProduct(GetProductRequest, CallSettings)
Gets a [Product][google.cloud.retail.v2.Product].
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)
Gets a [Product][google.cloud.retail.v2.Product].
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 |
---|---|
System.Threading.Tasks.Task<Product> | A Task containing the RPC response. |
Overrides
ImportProducts(ImportProductsRequest, CallSettings)
Bulk import of multiple [Product][google.cloud.retail.v2.Product]s.
Request processing may be synchronous. No partial updating is supported. Non-existing items are created.
Note that it is possible for a subset of the [Product][google.cloud.retail.v2.Product]s to be successfully updated.
Declaration
public override Operation<ImportProductsResponse, ImportMetadata> ImportProducts(ImportProductsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ImportProductsRequest | 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 |
---|---|
Operation<ImportProductsResponse, ImportMetadata> | The RPC response. |
Overrides
ImportProductsAsync(ImportProductsRequest, CallSettings)
Bulk import of multiple [Product][google.cloud.retail.v2.Product]s.
Request processing may be synchronous. No partial updating is supported. Non-existing items are created.
Note that it is possible for a subset of the [Product][google.cloud.retail.v2.Product]s to be successfully updated.
Declaration
public override Task<Operation<ImportProductsResponse, ImportMetadata>> ImportProductsAsync(ImportProductsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ImportProductsRequest | 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 |
---|---|
System.Threading.Tasks.Task<Operation<ImportProductsResponse, ImportMetadata>> | A Task containing the RPC response. |
Overrides
UpdateProduct(UpdateProductRequest, CallSettings)
Updates a [Product][google.cloud.retail.v2.Product].
Declaration
public override Product UpdateProduct(UpdateProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateProductRequest | 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
UpdateProductAsync(UpdateProductRequest, CallSettings)
Updates a [Product][google.cloud.retail.v2.Product].
Declaration
public override Task<Product> UpdateProductAsync(UpdateProductRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateProductRequest | 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 |
---|---|
System.Threading.Tasks.Task<Product> | A Task containing the RPC response. |