Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard
- 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
-
#buttons ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButton>
Corresponds to the JSON property
buttons. -
#formatted_text ⇒ String
Corresponds to the JSON property
formattedText. -
#image ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage
Corresponds to the JSON property
image. -
#subtitle ⇒ String
Corresponds to the JSON property
subtitle. -
#title ⇒ String
Corresponds to the JSON property
title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageBasicCard
constructor
A new instance of GoogleCloudDialogflowV2IntentMessageBasicCard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageBasicCard
Returns a new instance of GoogleCloudDialogflowV2IntentMessageBasicCard.
12174 12175 12176 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buttons ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButton>
Corresponds to the JSON property buttons
12152 12153 12154 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12152 def @buttons end |
#formatted_text ⇒ String
Corresponds to the JSON property formattedText
12157 12158 12159 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12157 def formatted_text @formatted_text end |
#image ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage
Corresponds to the JSON property image
12162 12163 12164 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12162 def image @image end |
#subtitle ⇒ String
Corresponds to the JSON property subtitle
12167 12168 12169 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12167 def subtitle @subtitle end |
#title ⇒ String
Corresponds to the JSON property title
12172 12173 12174 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12172 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12179 12180 12181 12182 12183 12184 12185 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12179 def update!(**args) @buttons = args[:buttons] if args.key?(:buttons) @formatted_text = args[:formatted_text] if args.key?(:formatted_text) @image = args[:image] if args.key?(:image) @subtitle = args[:subtitle] if args.key?(:subtitle) @title = args[:title] if args.key?(:title) end |