public sealed class AnnotatedMessagePart : IMessage<AnnotatedMessagePart>, IEquatable<AnnotatedMessagePart>, IDeepCloneable<AnnotatedMessagePart>, IBufferMessage, IMessage
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.
Inheritance
System.Object > AnnotatedMessagePartImplements
IMessage<AnnotatedMessagePart>, IEquatable<AnnotatedMessagePart>, IDeepCloneable<AnnotatedMessagePart>, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
AnnotatedMessagePart()
public AnnotatedMessagePart()
AnnotatedMessagePart(AnnotatedMessagePart)
public AnnotatedMessagePart(AnnotatedMessagePart other)
Parameter | |
---|---|
Name | Description |
other | AnnotatedMessagePart |
Properties
EntityType
public string EntityType { get; set; }
The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
Property Value | |
---|---|
Type | Description |
String |
FormattedValue
public Value FormattedValue { get; set; }
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>
Property Value | |
---|---|
Type | Description |
Value |
Text
public string Text { get; set; }
A part of a message possibly annotated with an entity.
Property Value | |
---|---|
Type | Description |
String |