Represents a Completion
Inheritance
$protobuf.rpc.Service > protos.google.cloud.talent.v4beta1.CompletionPackage
@google-cloud/talentConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Completion 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.talent.v4beta1.ICompleteQueryRequest, callback: google.cloud.talent.v4beta1.Completion.CompleteQueryCallback): void;
Calls CompleteQuery.
Name | Description |
request |
ICompleteQueryRequest
CompleteQueryRequest message or plain object |
callback |
google.cloud.talent.v4beta1.Completion.CompleteQueryCallback
Node-style callback called with the error, if any, and CompleteQueryResponse |
Type | Description |
void |
completeQuery(request)
public completeQuery(request: google.cloud.talent.v4beta1.ICompleteQueryRequest): Promise<google.cloud.talent.v4beta1.CompleteQueryResponse>;
Calls CompleteQuery.
Name | Description |
request |
ICompleteQueryRequest
CompleteQueryRequest message or plain object |
Type | Description |
Promise<google.cloud.talent.v4beta1.CompleteQueryResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Completion;
Creates new Completion 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 |
Completion | RPC service. Useful where requests and/or responses are streamed. |