class Google::Apis::DialogflowV3beta1::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

entity_type[RW]

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]

formatted_value[RW]

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]

text[RW]

Required. A part of a message possibly annotated with an entity. Corresponds to the JSON property `text` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 10836
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3beta1/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