Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCard
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCard
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Instance Attribute Summary collapse
-
#buttons ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCardButton>
Corresponds to the JSON property
buttons. -
#formatted_text ⇒ String
Corresponds to the JSON property
formattedText. -
#image ⇒ Google::Apis::DialogflowV3::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.
14747 14748 14749 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14747 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buttons ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCardButton>
Corresponds to the JSON property buttons
14725 14726 14727 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14725 def @buttons end |
#formatted_text ⇒ String
Corresponds to the JSON property formattedText
14730 14731 14732 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14730 def formatted_text @formatted_text end |
#image ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageImage
Corresponds to the JSON property image
14735 14736 14737 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14735 def image @image end |
#subtitle ⇒ String
Corresponds to the JSON property subtitle
14740 14741 14742 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14740 def subtitle @subtitle end |
#title ⇒ String
Corresponds to the JSON property title
14745 14746 14747 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14745 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14752 14753 14754 14755 14756 14757 14758 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14752 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 |