Represents a CompletionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.CompletionServicePackage
@google-cloud/retail!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CompletionService service.
Name | Description |
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.
Name | Description |
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 |
Type | Description |
void |
completeQuery(request)
public completeQuery(request: google.cloud.retail.v2alpha.ICompleteQueryRequest): Promise<google.cloud.retail.v2alpha.CompleteQueryResponse>;
Calls CompleteQuery.
Name | Description |
request |
ICompleteQueryRequest
CompleteQueryRequest message or plain object |
Type | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
importCompletionData(request)
public importCompletionData(request: google.cloud.retail.v2alpha.IImportCompletionDataRequest): Promise<google.longrunning.Operation>;
Calls ImportCompletionData.
Name | Description |
request |
IImportCompletionDataRequest
ImportCompletionDataRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |