public sealed class AnnotatedString : IMessage<AnnotatedString>, IEquatable<AnnotatedString>, IDeepCloneable<AnnotatedString>, IBufferMessage, IMessage
Describes string annotation from both semantic and formatting perspectives.
Example:
User Query:
top countries by population in Africa
0 4 14 17 28 31 37
Table Data:
"country" - dimension
"population" - metric
"Africa" - value in the "continent" column
text_formatted = "top countries by population in Africa"
html_formatted =
"top <b>countries</b> by <b>population</b> in <i>Africa</i>"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAnnotatedString\u003c/code\u003e class represents string annotations, encompassing both semantic and formatting perspectives within the \u003ccode\u003eGoogle.Cloud.DataQnA.V1Alpha\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties for \u003ccode\u003eHtmlFormatted\u003c/code\u003e and \u003ccode\u003eTextFormatted\u003c/code\u003e string representations, along with \u003ccode\u003eMarkups\u003c/code\u003e detailing semantic annotations like DIMENSION, METRIC, and FILTER.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, showcasing its capabilities for message handling, equality comparison, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eThere are different versions of the class available with the latest being \u003ccode\u003e2.0.0-alpha02\u003c/code\u003e and it also includes older versions, such as \u003ccode\u003e1.0.0-alpha03\u003c/code\u003e and \u003ccode\u003e2.0.0-alpha01\u003c/code\u003e, with the latest version indicated on the page.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnnotatedString\u003c/code\u003e includes constructors for creating new instances, including one for copying an existing \u003ccode\u003eAnnotatedString\u003c/code\u003e object, which takes another \u003ccode\u003eAnnotatedString\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]