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.



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

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


12433
12434
12435
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12433

def description
  @description
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



12438
12439
12440
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12438

def image
  @image
end

#infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo

Corresponds to the JSON property info



12443
12444
12445
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12443

def info
  @info
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


12448
12449
12450
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12448

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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