Class CatalogService.CatalogServiceBase (1.0.0-beta03)

[BindServiceMethod(typeof(CatalogService), "BindService")]
public abstract class 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
Task<CatalogItem>

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
Task<Empty>

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
Task<CatalogItem>

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
Task<Operation>

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
Task<ListCatalogItemsResponse>

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
Task<CatalogItem>

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