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.
Implements
IMessageRankingRecord, IEquatableRankingRecord, IDeepCloneableRankingRecord, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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.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 |
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.
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.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 |
string |