Class AutoSuggestionService.AutoSuggestionServiceBase (2.0.0-alpha01)

[BindServiceMethod(typeof(AutoSuggestionService), "BindService")]
public abstract class AutoSuggestionServiceBase

Base class for server-side implementations of AutoSuggestionService

Inheritance

Object > AutoSuggestionService.AutoSuggestionServiceBase

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Methods

SuggestQueries(SuggestQueriesRequest, ServerCallContext)

public virtual Task<SuggestQueriesResponse> SuggestQueries(SuggestQueriesRequest request, ServerCallContext context)

Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.

Parameters
NameDescription
requestSuggestQueriesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<SuggestQueriesResponse>

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