Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Represents the result of annotation for the message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2MessageAnnotation

Returns a new instance of GoogleCloudDialogflowV2MessageAnnotation.



11222
11223
11224
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11222

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contain_entitiesBoolean Also known as: contain_entities?

Indicates whether the text message contains entities. Corresponds to the JSON property containEntities

Returns:

  • (Boolean)


11212
11213
11214
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11212

def contain_entities
  @contain_entities
end

#partsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnnotatedMessagePart>

The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [ AnnotatedMessagePart.text]. Corresponds to the JSON property parts



11220
11221
11222
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11220

def parts
  @parts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11227
11228
11229
11230
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11227

def update!(**args)
  @contain_entities = args[:contain_entities] if args.key?(:contain_entities)
  @parts = args[:parts] if args.key?(:parts)
end