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 provided content details the \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e class within the Google Cloud Dialogflow v2 API for .NET, spanning versions 3.2.0 to 4.26.0, with version 4.26.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e represents a component of a message that can be tagged with an entity, either an identified entity or a segment of text between entities or message boundaries.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, enhancing its functionality and compatibility.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e class exposes properties like \u003ccode\u003eEntityType\u003c/code\u003e, \u003ccode\u003eFormattedValue\u003c/code\u003e, and \u003ccode\u003eText\u003c/code\u003e, which contain information about the system entity type, the formatted value, and the textual content of the message part, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e: a parameterless constructor and one that accepts another \u003ccode\u003eAnnotatedMessagePart\u003c/code\u003e object for initialization.\u003c/p\u003e\n"]]],[],null,[]]