[BindServiceMethod(typeof(ProductService), "BindService")]
public abstract class ProductServiceBase
Base class for server-side implementations of ProductService
Inheritance
System.Object > ProductService.ProductServiceBaseNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Methods
CreateProduct(CreateProductRequest, ServerCallContext)
public virtual Task<Product> CreateProduct(CreateProductRequest request, ServerCallContext context)
Creates a [Product][google.cloud.retail.v2.Product].
Parameters | |
---|---|
Name | Description |
request | CreateProductRequest The request received from the client. |
context | Grpc.Core.ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Product> | The response to send back to the client (wrapped by a task). |
DeleteProduct(DeleteProductRequest, ServerCallContext)
public virtual Task<Empty> DeleteProduct(DeleteProductRequest request, ServerCallContext context)
Deletes a [Product][google.cloud.retail.v2.Product].
Parameters | |
---|---|
Name | Description |
request | DeleteProductRequest The request received from the client. |
context | Grpc.Core.ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty> | The response to send back to the client (wrapped by a task). |
GetProduct(GetProductRequest, ServerCallContext)
public virtual Task<Product> GetProduct(GetProductRequest request, ServerCallContext context)
Gets a [Product][google.cloud.retail.v2.Product].
Parameters | |
---|---|
Name | Description |
request | GetProductRequest The request received from the client. |
context | Grpc.Core.ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Product> | The response to send back to the client (wrapped by a task). |
ImportProducts(ImportProductsRequest, ServerCallContext)
public virtual Task<Operation> ImportProducts(ImportProductsRequest request, ServerCallContext context)
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 | ImportProductsRequest The request received from the client. |
context | Grpc.Core.ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation> | The response to send back to the client (wrapped by a task). |
UpdateProduct(UpdateProductRequest, ServerCallContext)
public virtual Task<Product> UpdateProduct(UpdateProductRequest request, ServerCallContext context)
Updates a [Product][google.cloud.retail.v2.Product].
Parameters | |
---|---|
Name | Description |
request | UpdateProductRequest The request received from the client. |
context | Grpc.Core.ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Product> | The response to send back to the client (wrapped by a task). |