Class protos.google.cloud.dataqna.v1alpha.AutoSuggestionService (1.0.8)

Represents an AutoSuggestionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataqna.v1alpha.AutoSuggestionService

Package

@google-cloud/data-qna!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new AutoSuggestionService service.

Parameters
NameDescription
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.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

suggestQueries(request)

public suggestQueries(request: google.cloud.dataqna.v1alpha.ISuggestQueriesRequest): Promise<google.cloud.dataqna.v1alpha.SuggestQueriesResponse>;

Calls SuggestQueries.

Parameter
NameDescription
request ISuggestQueriesRequest

SuggestQueriesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataqna.v1alpha.SuggestQueriesResponse>

Promise