Class CompletionService.CompletionServiceBase (2.2.0)

[BindServiceMethod(typeof(CompletionService), "BindService")]
public abstract class 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. Please enable Retail Search on Cloud Console before using this feature.

Parameters
NameDescription
requestCompleteQueryRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<CompleteQueryResponse>

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. Please enable Retail Search on Cloud Console before using this feature.

Parameters
NameDescription
requestImportCompletionDataRequest

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