Class protos.google.cloud.talent.v4.Completion

Represents a Completion

Inheritance

$protobuf.rpc.Service > protos.google.cloud.talent.v4.Completion

Package

@google-cloud/talent!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Completion service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Methods

completeQuery(request, callback)

public completeQuery(request: google.cloud.talent.v4.ICompleteQueryRequest, callback: google.cloud.talent.v4.Completion.CompleteQueryCallback): void;

Calls CompleteQuery.

Parameters
TypeNameDescription
google.cloud.talent.v4.ICompleteQueryRequestrequest

CompleteQueryRequest message or plain object

google.cloud.talent.v4.Completion.CompleteQueryCallbackcallback

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

Returns
TypeDescription
void

completeQuery(request)

public completeQuery(request: google.cloud.talent.v4.ICompleteQueryRequest): Promise<google.cloud.talent.v4.CompleteQueryResponse>;

Calls CompleteQuery.

Parameter
TypeNameDescription
google.cloud.talent.v4.ICompleteQueryRequestrequest

CompleteQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4.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.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
Completion

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