Retail v2 API - Class CompletionService.CompletionServiceBase (2.8.0)

[BindServiceMethod(typeof(CompletionService), "BindService")]
public abstract class CompletionService.CompletionServiceBase

Reference documentation and code samples for the Retail v2 API class CompletionService.CompletionServiceBase.

Base class for server-side implementations of CompletionService

Inheritance

object > CompletionService.CompletionServiceBase

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Methods

CompleteQuery(CompleteQueryRequest, ServerCallContext)

public virtual Task<CompleteQueryResponse> CompleteQuery(CompleteQueryRequest request, ServerCallContext context)

Completes the specified prefix with keyword suggestions.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Parameters
Name Description
request CompleteQueryRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskCompleteQueryResponse

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

ImportCompletionData(ImportCompletionDataRequest, ServerCallContext)

public virtual Task<Operation> ImportCompletionData(ImportCompletionDataRequest request, ServerCallContext context)

Bulk import of processed completion dataset.

Request processing is asynchronous. Partial updating is not supported.

The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Parameters
Name Description
request ImportCompletionDataRequest

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).