Class protos.google.cloud.discoveryengine.v1beta.CompletionService (1.3.1)

Represents a CompletionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.CompletionService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CompletionService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

completeQuery(request, callback)

public completeQuery(request: google.cloud.discoveryengine.v1beta.ICompleteQueryRequest, callback: google.cloud.discoveryengine.v1beta.CompletionService.CompleteQueryCallback): void;

Calls CompleteQuery.

Parameters
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

callback CompleteQueryCallback

Node-style callback called with the error, if any, and CompleteQueryResponse

Returns
TypeDescription
void

completeQuery(request)

public completeQuery(request: google.cloud.discoveryengine.v1beta.ICompleteQueryRequest): Promise<google.cloud.discoveryengine.v1beta.CompleteQueryResponse>;

Calls CompleteQuery.

Parameter
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.CompleteQueryResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CompletionService;

Creates new CompletionService 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
CompletionService

RPC service. Useful where requests and/or responses are streamed.