Class protos.google.cloud.discoveryengine.v1beta.RankService (1.9.0)

Represents a RankService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.RankService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RankService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RankService;

Creates new RankService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
RankService

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

rank(request, callback)

public rank(request: google.cloud.discoveryengine.v1beta.IRankRequest, callback: google.cloud.discoveryengine.v1beta.RankService.RankCallback): void;

Calls Rank.

Parameters
Name Description
request IRankRequest

RankRequest message or plain object

callback RankCallback

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

Returns
Type Description
void

rank(request)

public rank(request: google.cloud.discoveryengine.v1beta.IRankRequest): Promise<google.cloud.discoveryengine.v1beta.RankResponse>;

Calls Rank.

Parameter
Name Description
request IRankRequest

RankRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1beta.RankResponse>

Promise