public sealed class RankingRecord : IMessage<RankingRecord>, IEquatable<RankingRecord>, IDeepCloneable<RankingRecord>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class RankingRecord.
Record message for [RankService.Rank][google.cloud.discoveryengine.v1.RankService.Rank] method.
Implements
IMessageRankingRecord, IEquatableRankingRecord, IDeepCloneableRankingRecord, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
RankingRecord()
public RankingRecord()RankingRecord(RankingRecord)
public RankingRecord(RankingRecord other)| Parameter | |
|---|---|
| Name | Description |
other |
RankingRecord |
Properties
Content
public string Content { get; set; }The content of the record. Empty by default. At least one of [title][google.cloud.discoveryengine.v1.RankingRecord.title] or [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be set otherwise an INVALID_ARGUMENT error is thrown.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Id
public string Id { get; set; }The unique ID to represent the record.
| Property Value | |
|---|---|
| Type | Description |
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 2 decimal places. If the score is close to 0, it will be rounded to 0.0001 to avoid returning unset.
| Property Value | |
|---|---|
| Type | Description |
float |
|
Title
public string Title { get; set; }The title of the record. Empty by default. At least one of [title][google.cloud.discoveryengine.v1.RankingRecord.title] or [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be set otherwise an INVALID_ARGUMENT error is thrown.
| Property Value | |
|---|---|
| Type | Description |
string |
|