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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#entity_type
def entity_type() -> ::String
- (::String) — The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
#entity_type=
def entity_type=(value) -> ::String
- value (::String) — The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
- (::String) — The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
#formatted_value
def formatted_value() -> ::Google::Protobuf::Value
-
(::Google::Protobuf::Value) —
The Dialogflow system entity formatted value of this message part. For example for a system entity of type
@sys.unit-currency
, this may contain:{ "amount": 5, "currency": "USD" }
#formatted_value=
def formatted_value=(value) -> ::Google::Protobuf::Value
-
value (::Google::Protobuf::Value) —
The Dialogflow system entity formatted value of this message part. For example for a system entity of type
@sys.unit-currency
, this may contain:{ "amount": 5, "currency": "USD" }
-
(::Google::Protobuf::Value) —
The Dialogflow system entity formatted value of this message part. For example for a system entity of type
@sys.unit-currency
, this may contain:{ "amount": 5, "currency": "USD" }
#text
def text() -> ::String
- (::String) — A part of a message possibly annotated with an entity.
#text=
def text=(value) -> ::String
- value (::String) — A part of a message possibly annotated with an entity.
- (::String) — A part of a message possibly annotated with an entity.