[BindServiceMethod(typeof(CatalogService), "BindService")]
public abstract class CatalogService.CatalogServiceBase
Reference documentation and code samples for the Recommendations AI v1beta1 API class CatalogService.CatalogServiceBase.
Base class for server-side implementations of CatalogService
Namespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
Google.Cloud.RecommendationEngine.V1Beta1.dll
Methods
CreateCatalogItem(CreateCatalogItemRequest, ServerCallContext)
public virtual Task<CatalogItem> CreateCatalogItem(CreateCatalogItemRequest request, ServerCallContext context)
Creates a catalog item.
Parameters | |
---|---|
Name | Description |
request |
CreateCatalogItemRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskCatalogItem |
The response to send back to the client (wrapped by a task). |
DeleteCatalogItem(DeleteCatalogItemRequest, ServerCallContext)
public virtual Task<Empty> DeleteCatalogItem(DeleteCatalogItemRequest request, ServerCallContext context)
Deletes a catalog item.
Parameters | |
---|---|
Name | Description |
request |
DeleteCatalogItemRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
GetCatalogItem(GetCatalogItemRequest, ServerCallContext)
public virtual Task<CatalogItem> GetCatalogItem(GetCatalogItemRequest request, ServerCallContext context)
Gets a specific catalog item.
Parameters | |
---|---|
Name | Description |
request |
GetCatalogItemRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskCatalogItem |
The response to send back to the client (wrapped by a task). |
ImportCatalogItems(ImportCatalogItemsRequest, ServerCallContext)
public virtual Task<Operation> ImportCatalogItems(ImportCatalogItemsRequest request, ServerCallContext context)
Bulk import of multiple catalog items. Request processing may be synchronous. No partial updating supported. Non-existing items will be created.
Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully updated.
Parameters | |
---|---|
Name | Description |
request |
ImportCatalogItemsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
ListCatalogItems(ListCatalogItemsRequest, ServerCallContext)
public virtual Task<ListCatalogItemsResponse> ListCatalogItems(ListCatalogItemsRequest request, ServerCallContext context)
Gets a list of catalog items.
Parameters | |
---|---|
Name | Description |
request |
ListCatalogItemsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListCatalogItemsResponse |
The response to send back to the client (wrapped by a task). |
UpdateCatalogItem(UpdateCatalogItemRequest, ServerCallContext)
public virtual Task<CatalogItem> UpdateCatalogItem(UpdateCatalogItemRequest request, ServerCallContext context)
Updates a catalog item. Partial updating is supported. Non-existing items will be created.
Parameters | |
---|---|
Name | Description |
request |
UpdateCatalogItemRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskCatalogItem |
The response to send back to the client (wrapped by a task). |