public sealed class SuggestionInfo.Types.MatchInfo : IMessage<SuggestionInfo.Types.MatchInfo>, IEquatable<SuggestionInfo.Types.MatchInfo>, IDeepCloneable<SuggestionInfo.Types.MatchInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Data QnA v1alpha API class SuggestionInfo.Types.MatchInfo.
MatchInfo describes which part of suggestion matched with data in user
typed query. This can be used to highlight matching parts in the UI. This
is different from the annotations provided in annotated_suggestion. The
annotated_suggestion provides information about the semantic meaning, while
this provides information about how it relates to the input.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `SuggestionInfo.Types.MatchInfo` class in the Data QnA v1alpha API helps identify which parts of a suggestion correspond to the user's input, enabling UI highlighting."],["`MatchInfo` differs from `annotated_suggestion` by focusing on the relationship to the input query rather than the semantic meaning of the suggestion."],["The class has two key properties, `Length` and `StartCharIndex`, which respectively specify the length of the matching substring and the starting character index within the user's query."],["This class inherits from `object` and implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and is available within the `Google.Cloud.DataQnA.V1Alpha` namespace, found in the `Google.Cloud.DataQnA.V1Alpha.dll` assembly."],["The `MatchInfo` class has two constructors, a parameterless constructor and another constructor which takes in `SuggestionInfo.Types.MatchInfo` as a parameter."]]],[]]