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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSuggestionInfo.Types.MatchInfo\u003c/code\u003e class in the Data QnA v1alpha API helps identify which parts of a suggestion correspond to the user's input, enabling UI highlighting.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMatchInfo\u003c/code\u003e differs from \u003ccode\u003eannotated_suggestion\u003c/code\u003e by focusing on the relationship to the input query rather than the semantic meaning of the suggestion.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two key properties, \u003ccode\u003eLength\u003c/code\u003e and \u003ccode\u003eStartCharIndex\u003c/code\u003e, which respectively specify the length of the matching substring and the starting character index within the user's query.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is available within the \u003ccode\u003eGoogle.Cloud.DataQnA.V1Alpha\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Cloud.DataQnA.V1Alpha.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMatchInfo\u003c/code\u003e class has two constructors, a parameterless constructor and another constructor which takes in \u003ccode\u003eSuggestionInfo.Types.MatchInfo\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]