[BindServiceMethod(typeof(ProductService), "BindService")]
public abstract class ProductServiceBaseBase 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 |
CreateProductRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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 |
DeleteProductRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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 |
GetProductRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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 |
ImportProductsRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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 |
UpdateProductRequestThe request received from the client. |
context |
Grpc.Core.ServerCallContextThe 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). |