class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AnnotatedMessagePart
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.
Attributes
Optional. The [Dialogflow system entity type](cloud.google.com/ dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity. Corresponds to the JSON property `entityType` @return [String]
Optional. The [Dialogflow system entity formatted value ](cloud.google. com/dialogflow/docs/reference/system-entities) of this message part. For example for a system entity of type `@sys.unit-currency`, this may contain: ` “ amount”: 5, “currency”: “USD” ` Corresponds to the JSON property `formattedValue` @return [Object]
Required. A part of a message possibly annotated with an entity. Corresponds to the JSON property `text` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v3/classes.rb, line 10836 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v3/classes.rb, line 10841 def update!(**args) @entity_type = args[:entity_type] if args.key?(:entity_type) @formatted_value = args[:formatted_value] if args.key?(:formatted_value) @text = args[:text] if args.key?(:text) end