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.
Implements
IMessageSuggestion, IEquatableSuggestion, IDeepCloneableSuggestion, IBufferMessage, IMessageNamespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Constructors
Suggestion()
public Suggestion()
Suggestion(Suggestion)
public Suggestion(Suggestion other)
Parameter | |
---|---|
Name | Description |
other | Suggestion |
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 | |
---|---|
Type | Description |
double |
SuggestionInfo
public SuggestionInfo SuggestionInfo { get; set; }
Detailed information about the suggestion.
Property Value | |
---|---|
Type | Description |
SuggestionInfo |
SuggestionType
public SuggestionType SuggestionType { get; set; }
The type of the suggestion.
Property Value | |
---|---|
Type | Description |
SuggestionType |