Class ProductService.ProductServiceClient (1.0.0)

public class ProductServiceClient : ClientBase<ProductService.ProductServiceClient>

Client for ProductService

Inheritance

System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<ProductService.ProductServiceClient> > ProductService.ProductServiceClient

Namespace

Google.Cloud.Retail.V2

Assembly

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
NameDescription
callInvokerGrpc.Core.CallInvoker

The callInvoker to use to make remote calls.

ProductServiceClient(ChannelBase)

public ProductServiceClient(ChannelBase channel)

Creates a new client for ProductService

Parameter
NameDescription
channelGrpc.Core.ChannelBase

The channel to use to make remote calls.

ProductServiceClient(ClientBase.ClientBaseConfiguration)

protected ProductServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration

The 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
TypeDescription
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
NameDescription
requestCreateProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestCreateProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestImportProductsRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestImportProductsRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestImportProductsRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestImportProductsRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration
Returns
TypeDescription
ProductService.ProductServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Retail.V2.ProductService.ProductServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateProduct(UpdateProductRequest, CallOptions)

public virtual Product UpdateProduct(UpdateProductRequest request, CallOptions options)

Updates a [Product][google.cloud.retail.v2.Product].

Parameters
NameDescription
requestUpdateProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestUpdateProductRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateProductRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Product>

The call object.