Data QnA v1alpha API - Class Suggestion (2.0.0-alpha02)

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

Reference documentation and code samples for the Data QnA v1alpha API class Suggestion.

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