Class protos.google.cloud.retail.v2beta.CompletionService

Represents a CompletionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2beta.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.v2beta.ICompleteQueryRequest, callback: google.cloud.retail.v2beta.CompletionService.CompleteQueryCallback): void;

Calls CompleteQuery.

Parameters
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

callback google.cloud.retail.v2beta.CompletionService.CompleteQueryCallback

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

Returns
TypeDescription
void

completeQuery(request)

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

Calls CompleteQuery.

Parameter
NameDescription
request ICompleteQueryRequest

CompleteQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2beta.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.v2beta.IImportCompletionDataRequest, callback: google.cloud.retail.v2beta.CompletionService.ImportCompletionDataCallback): void;

Calls ImportCompletionData.

Parameters
NameDescription
request google.cloud.retail.v2beta.IImportCompletionDataRequest

ImportCompletionDataRequest message or plain object

callback google.cloud.retail.v2beta.CompletionService.ImportCompletionDataCallback

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

Returns
TypeDescription
void

importCompletionData(request)

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

Calls ImportCompletionData.

Parameter
NameDescription
request google.cloud.retail.v2beta.IImportCompletionDataRequest

ImportCompletionDataRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise