Class CompletionService.CompletionServiceBase (1.5.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 submit a form here to contact cloud sales if you are interested in using Retail Search.

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 may be synchronous. Partial updating is not supported.

This feature is only available for users who have Retail Search enabled. Please submit a form here to contact cloud sales if you are interested in using Retail Search.

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