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

Overview

Browsing carousel tile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem

Returns a new instance of GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem.



10075
10076
10077
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10075

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

Instance Attribute Details

#descriptionString

Optional. Description of the carousel item. Maximum of four lines of text. Corresponds to the JSON property description

Returns:

  • (String)


10052
10053
10054
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10052

def description
  @description
end

Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. Corresponds to the JSON property footer

Returns:

  • (String)


10058
10059
10060
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10058

def footer
  @footer
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

The image response message. Corresponds to the JSON property image



10063
10064
10065
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10063

def image
  @image
end

#open_uri_actionGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction

Actions on Google action to open a given url. Corresponds to the JSON property openUriAction



10068
10069
10070
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10068

def open_uri_action
  @open_uri_action
end

#titleString

Required. Title of the carousel item. Maximum of two lines of text. Corresponds to the JSON property title

Returns:

  • (String)


10073
10074
10075
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10073

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10080
10081
10082
10083
10084
10085
10086
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10080

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