Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AnnotatedMessagePart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnnotatedMessagePart

Returns a new instance of GoogleCloudDialogflowV2beta1AnnotatedMessagePart.



17382
17383
17384
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17382

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

Instance Attribute Details

#entity_typeString

Corresponds to the JSON property entityType

Returns:

  • (String)


17370
17371
17372
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17370

def entity_type
  @entity_type
end

#formatted_valueObject

Corresponds to the JSON property formattedValue

Returns:

  • (Object)


17375
17376
17377
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17375

def formatted_value
  @formatted_value
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


17380
17381
17382
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17380

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17387
17388
17389
17390
17391
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17387

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