1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class RankingRecord : IMessage<RankingRecord>, IEquatable<RankingRecord>, IDeepCloneable<RankingRecord>, IBufferMessage, IMessage

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

Record message for
\[RankService.Rank\]\[google.cloud.discoveryengine.v1beta.RankService.Rank\]
method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RankingRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankingRecord), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RankingRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankingRecord), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RankingRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankingRecord), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.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

## Constructors

### RankingRecord()

    public RankingRecord()

### RankingRecord(RankingRecord)

    public RankingRecord(RankingRecord other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RankingRecord` |

## Properties

### Content

    public string Content { get; set; }

The content of the record. Empty by default.
At least one of
\[title\]\[google.cloud.discoveryengine.v1beta.RankingRecord.title\] or
\[content\]\[google.cloud.discoveryengine.v1beta.RankingRecord.content\] should
be set otherwise an INVALID_ARGUMENT error is thrown.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Id

    public string Id { get; set; }

The unique ID to represent the record.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Score

    public float Score { get; set; }

The score of this record based on the given query and selected model.
The score will be rounded to 4 decimal places. If the score is close to 0,
it will be rounded to 0.00001 to avoid returning unset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### Title

    public string Title { get; set; }

The title of the record. Empty by default.
At least one of
\[title\]\[google.cloud.discoveryengine.v1beta.RankingRecord.title\] or
\[content\]\[google.cloud.discoveryengine.v1beta.RankingRecord.content\] should
be set otherwise an INVALID_ARGUMENT error is thrown.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |