Recommendations AI v1beta1 API - Class CatalogService.CatalogServiceBase (2.0.0-beta04)

[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

Inheritance

object > CatalogService.CatalogServiceBase

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Methods

CreateCatalogItem(CreateCatalogItemRequest, ServerCallContext)

public virtual Task<CatalogItem> CreateCatalogItem(CreateCatalogItemRequest request, ServerCallContext context)

Creates a catalog item.

Parameters
NameDescription
requestCreateCatalogItemRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskCatalogItem

The response to send back to the client (wrapped by a task).