# Discovery Engine v1beta API - Class RankService.RankServiceBase (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    [BindServiceMethod(typeof(RankService), "BindService")]
    public abstract class RankService.RankServiceBase

Reference documentation and code samples for the Discovery Engine v1beta API class RankService.RankServiceBase.

Base class for server-side implementations of RankService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RankService.RankServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Methods

### Rank(RankRequest, ServerCallContext)

    public virtual Task<RankResponse> Rank(RankRequest request, ServerCallContext context)

Ranks a list of text records based on the given input query.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankResponse` | The response to send back to the client (wrapped by a task). |