Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton
- 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
-
#postback ⇒ String
Corresponds to the JSON property
postback. -
#text ⇒ String
Corresponds to the JSON property
text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageCardButton
constructor
A new instance of GoogleCloudDialogflowV2IntentMessageCardButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageCardButton
Returns a new instance of GoogleCloudDialogflowV2IntentMessageCardButton.
12376 12377 12378 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12376 def initialize(**args) update!(**args) end |
Instance Attribute Details
#postback ⇒ String
Corresponds to the JSON property postback
12369 12370 12371 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12369 def postback @postback end |
#text ⇒ String
Corresponds to the JSON property text
12374 12375 12376 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12374 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12381 12382 12383 12384 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12381 def update!(**args) @postback = args[:postback] if args.key?(:postback) @text = args[:text] if args.key?(:text) end |