Class Suggestion (1.0.0-alpha03)

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

A suggestion for a query with a ranking score.

Inheritance

Object > Suggestion

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

Suggestion()

public Suggestion()

Suggestion(Suggestion)

public Suggestion(Suggestion other)
Parameter
NameDescription
otherSuggestion

Properties

RankingScore

public double RankingScore { get; set; }

The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range [0, 1).

Property Value
TypeDescription
Double

SuggestionInfo

public SuggestionInfo SuggestionInfo { get; set; }

Detailed information about the suggestion.

Property Value
TypeDescription
SuggestionInfo

SuggestionType

public SuggestionType SuggestionType { get; set; }

The type of the suggestion.

Property Value
TypeDescription
SuggestionType