public sealed class AnnotatedMessagePart : IMessage<AnnotatedMessagePart>, IEquatable<AnnotatedMessagePart>, IDeepCloneable<AnnotatedMessagePart>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class AnnotatedMessagePart.
Represents a part of a message possibly annotated with an entity. The part
can be an entity or purely a part of the message between two entities or
message start/end.
The Dialogflow system entity formatted value
of
this message part. For example for a system entity of type
@sys.unit-currency, this may contain:
<pre>
{
"amount": 5,
"currency": "USD"
}
</pre>
[[["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 document provides a comprehensive list of versions for the \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e class within the Google Cloud Dialogflow v2 API, ranging from version 4.26.0 down to 3.2.0, with 4.26.0 being the latest release.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e represents a segment of a message that may contain an entity or simply be a portion of text between entities, and is available as part of the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage<AnnotatedMessagePart>\u003c/code\u003e, \u003ccode\u003eIEquatable<AnnotatedMessagePart>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<AnnotatedMessagePart>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e class has properties for EntityType, FormattedValue, and Text, allowing developers to interact with parts of messages in the API.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors provided within this class, \u003ccode\u003eAnnotatedMessagePart()\u003c/code\u003e and \u003ccode\u003eAnnotatedMessagePart(AnnotatedMessagePart other)\u003c/code\u003e, for creating an instance of the object.\u003c/p\u003e\n"]]],[],null,[]]