public class ProductServiceClient : ClientBase<ProductService.ProductServiceClient>Client for ProductService
Inheritance
System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<ProductService.ProductServiceClient> > ProductService.ProductServiceClientNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
ProductServiceClient()
protected ProductServiceClient()Protected parameterless constructor to allow creation of test doubles.
ProductServiceClient(CallInvoker)
public ProductServiceClient(CallInvoker callInvoker)Creates a new client for ProductService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
Grpc.Core.CallInvokerThe callInvoker to use to make remote calls. |
ProductServiceClient(ChannelBase)
public ProductServiceClient(ChannelBase channel)Creates a new client for ProductService
| Parameter | |
|---|---|
| Name | Description |
channel |
Grpc.Core.ChannelBaseThe channel to use to make remote calls. |
ProductServiceClient(ClientBase.ClientBaseConfiguration)
protected ProductServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
Grpc.Core.ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()Creates a new instance of Google.LongRunning.Operations.OperationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
Google.LongRunning.Operations.OperationsClient |
A new Operations client for the same target as this client. |
CreateProduct(CreateProductRequest, CallOptions)
public virtual Product CreateProduct(CreateProductRequest request, CallOptions options)Creates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
CreateProduct(CreateProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Product CreateProduct(CreateProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
CreateProductAsync(CreateProductRequest, CallOptions)
public virtual AsyncUnaryCall<Product> CreateProductAsync(CreateProductRequest request, CallOptions options)Creates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |
CreateProductAsync(CreateProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Product> CreateProductAsync(CreateProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |
DeleteProduct(DeleteProductRequest, CallOptions)
public virtual Empty DeleteProduct(DeleteProductRequest request, CallOptions options)Deletes a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Google.Protobuf.WellKnownTypes.Empty |
The response received from the server. |
DeleteProduct(DeleteProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteProduct(DeleteProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Google.Protobuf.WellKnownTypes.Empty |
The response received from the server. |
DeleteProductAsync(DeleteProductRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteProductAsync(DeleteProductRequest request, CallOptions options)Deletes a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> |
The call object. |
DeleteProductAsync(DeleteProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteProductAsync(DeleteProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> |
The call object. |
GetProduct(GetProductRequest, CallOptions)
public virtual Product GetProduct(GetProductRequest request, CallOptions options)Gets a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
GetProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
GetProduct(GetProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Product GetProduct(GetProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Gets a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
GetProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
GetProductAsync(GetProductRequest, CallOptions)
public virtual AsyncUnaryCall<Product> GetProductAsync(GetProductRequest request, CallOptions options)Gets a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
GetProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |
GetProductAsync(GetProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Product> GetProductAsync(GetProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Gets a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
GetProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |
ImportProducts(ImportProductsRequest, CallOptions)
public virtual Operation ImportProducts(ImportProductsRequest request, CallOptions options)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.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportProductsRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Google.LongRunning.Operation |
The response received from the server. |
ImportProducts(ImportProductsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation ImportProducts(ImportProductsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportProductsRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Google.LongRunning.Operation |
The response received from the server. |
ImportProductsAsync(ImportProductsRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ImportProductsAsync(ImportProductsRequest request, CallOptions options)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.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportProductsRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> |
The call object. |
ImportProductsAsync(ImportProductsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> ImportProductsAsync(ImportProductsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportProductsRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override ProductService.ProductServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
Grpc.Core.ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
ProductService.ProductServiceClient |
|
UpdateProduct(UpdateProductRequest, CallOptions)
public virtual Product UpdateProduct(UpdateProductRequest request, CallOptions options)Updates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
UpdateProduct(UpdateProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Product UpdateProduct(UpdateProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Product |
The response received from the server. |
UpdateProductAsync(UpdateProductRequest, CallOptions)
public virtual AsyncUnaryCall<Product> UpdateProductAsync(UpdateProductRequest request, CallOptions options)Updates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateProductRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |
UpdateProductAsync(UpdateProductRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Product> UpdateProductAsync(UpdateProductRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates a [Product][google.cloud.retail.v2.Product].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateProductRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Product> |
The call object. |