Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem

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) ⇒ GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem

Returns a new instance of GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem.



12319
12320
12321
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12319

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


12297
12298
12299
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12297

def description
  @description
end

Corresponds to the JSON property footer

Returns:

  • (String)


12302
12303
12304
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12302

def footer
  @footer
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



12307
12308
12309
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12307

def image
  @image
end

#open_uri_actionGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction

Corresponds to the JSON property openUriAction



12312
12313
12314
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12312

def open_uri_action
  @open_uri_action
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


12317
12318
12319
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12317

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12324
12325
12326
12327
12328
12329
12330
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12324

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