Represents an AutoSuggestionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataqna.v1alpha.AutoSuggestionServicePackage
@google-cloud/data-qna!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AutoSuggestionService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AutoSuggestionService;
Creates new AutoSuggestionService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
AutoSuggestionService | RPC service. Useful where requests and/or responses are streamed. |
suggestQueries(request, callback)
public suggestQueries(request: google.cloud.dataqna.v1alpha.ISuggestQueriesRequest, callback: google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueriesCallback): void;
Calls SuggestQueries.
Name | Description |
request |
ISuggestQueriesRequest
SuggestQueriesRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueriesCallback
Node-style callback called with the error, if any, and SuggestQueriesResponse |
Type | Description |
void |
suggestQueries(request)
public suggestQueries(request: google.cloud.dataqna.v1alpha.ISuggestQueriesRequest): Promise<google.cloud.dataqna.v1alpha.SuggestQueriesResponse>;
Calls SuggestQueries.
Name | Description |
request |
ISuggestQueriesRequest
SuggestQueriesRequest message or plain object |
Type | Description |
Promise<google.cloud.dataqna.v1alpha.SuggestQueriesResponse> | Promise |