[BindServiceMethod(typeof(CompletionService), "BindService")]
public abstract class CompletionServiceBase
Reference documentation and code samples for the Retail v2 API class CompletionService.CompletionServiceBase.
Base class for server-side implementations of CompletionService
Namespace
Google.Cloud.Retail.V2Assembly
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 |
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. 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 |
Task<Operation> | The response to send back to the client (wrapped by a task). |