Class protos.google.cloud.retail.v2alpha.CompletionService (1.2.2)

Represents a CompletionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.CompletionService

Package

@google-cloud/retail!

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.retail.v2alpha.ICompleteQueryRequest, callback: google.cloud.retail.v2alpha.CompletionService.CompleteQueryCallback): void;

Calls CompleteQuery.

Parameters
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

callback google.cloud.retail.v2alpha.CompletionService.CompleteQueryCallback

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

Returns
TypeDescription
void

completeQuery(request)

public completeQuery(request: google.cloud.retail.v2alpha.ICompleteQueryRequest): Promise<google.cloud.retail.v2alpha.CompleteQueryResponse>;

Calls CompleteQuery.

Parameter
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2alpha.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.

importCompletionData(request, callback)

public importCompletionData(request: google.cloud.retail.v2alpha.IImportCompletionDataRequest, callback: google.cloud.retail.v2alpha.CompletionService.ImportCompletionDataCallback): void;

Calls ImportCompletionData.

Parameters
NameDescription
request IImportCompletionDataRequest

ImportCompletionDataRequest message or plain object

callback google.cloud.retail.v2alpha.CompletionService.ImportCompletionDataCallback

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

Returns
TypeDescription
void

importCompletionData(request)

public importCompletionData(request: google.cloud.retail.v2alpha.IImportCompletionDataRequest): Promise<google.longrunning.Operation>;

Calls ImportCompletionData.

Parameter
NameDescription
request IImportCompletionDataRequest

ImportCompletionDataRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise