Discovery Engine v1 API - Class RankingRecord (1.5.0)

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

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

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

Inheritance

object > RankingRecord

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

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.

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