Constructor
new AutoSuggestionService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new AutoSuggestionService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
suggestQueries(request, callback) → {undefined}
Calls SuggestQueries.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.ISuggestQueriesRequest |
SuggestQueriesRequest message or plain object |
callback |
google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueriesCallback |
Node-style callback called with the error, if any, and SuggestQueriesResponse |
Returns:
Type | Description |
---|---|
undefined |
suggestQueries(request) → {Promise.<google.cloud.dataqna.v1alpha.SuggestQueriesResponse>}
Calls SuggestQueries.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataqna.v1alpha.ISuggestQueriesRequest |
SuggestQueriesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataqna.v1alpha.SuggestQueriesResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AutoSuggestionService}
Creates new AutoSuggestionService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
AutoSuggestionService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
SuggestQueriesCallback(error, responseopt)
Callback as used by suggestQueries.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataqna.v1alpha.SuggestQueriesResponse |
<optional> |
SuggestQueriesResponse |