Class: Google::Cloud::Dialogflow::V2::AnnotatedMessagePart

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/participant.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#entity_type::String

Returns 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.



963
964
965
966
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 963

class AnnotatedMessagePart
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#formatted_value::Google::Protobuf::Value

Returns 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"
}
.

Returns:



963
964
965
966
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 963

class AnnotatedMessagePart
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text::String

Returns A part of a message possibly annotated with an entity.

Returns:

  • (::String)

    A part of a message possibly annotated with an entity.



963
964
965
966
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 963

class AnnotatedMessagePart
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end