[BindServiceMethod(typeof(CompletionService), "BindService")]
public abstract class 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. Contact Retail Support (retail-search-support@google.com) if you are interested in using Retail Search.
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 may be synchronous. Partial updating is not supported.
This feature is only available for users who have Retail Search enabled. Contact Retail Support (retail-search-support@google.com) if you are interested in using Retail Search.
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). |