Represents a RankService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.RankServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new RankService service.
| Parameters | |
|---|---|
| Name | Description | 
| rpcImpl | $protobuf.RPCImplRPC implementation | 
| requestDelimited | booleanWhether requests are length-delimited | 
| responseDelimited | booleanWhether 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.RPCImplRPC implementation | 
| requestDelimited | booleanWhether requests are length-delimited | 
| responseDelimited | booleanWhether 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 | IRankRequestRankRequest message or plain object | 
| callback | RankCallbackNode-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 | IRankRequestRankRequest message or plain object | 
| Returns | |
|---|---|
| Type | Description | 
| Promise<google.cloud.discoveryengine.v1beta.RankResponse> | Promise |