Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::AnnotatedMessagePart (v1.0.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#entity_type

def entity_type() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns

#formatted_value=

def formatted_value=(value) -> ::Google::Protobuf::Value
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — A part of a message possibly annotated with an entity.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — A part of a message possibly annotated with an entity.
Returns
  • (::String) — A part of a message possibly annotated with an entity.