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