Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelectItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageCarouselSelectItem

Returns a new instance of GoogleCloudDialogflowV2IntentMessageCarouselSelectItem.



12463
12464
12465
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12463

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


12446
12447
12448
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12446

def description
  @description
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



12451
12452
12453
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12451

def image
  @image
end

#infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo

Corresponds to the JSON property info



12456
12457
12458
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12456

def info
  @info
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


12461
12462
12463
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12461

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12468
12469
12470
12471
12472
12473
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12468

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @image = args[:image] if args.key?(:image)
  @info = args[:info] if args.key?(:info)
  @title = args[:title] if args.key?(:title)
end