Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
- 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
Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
Instance Attribute Summary collapse
-
#action ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card.
-
#reply ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
constructor
A new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion.
18348 18349 18350 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18348 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
Rich Business Messaging (RBM) suggested client-side action that the user can
choose from the card.
Corresponds to the JSON property action
18340 18341 18342 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18340 def action @action end |
#reply ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
Rich Business Messaging (RBM) suggested reply that the user can click instead
of typing in their own response.
Corresponds to the JSON property reply
18346 18347 18348 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18346 def reply @reply end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18353 18354 18355 18356 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18353 def update!(**args) @action = args[:action] if args.key?(:action) @reply = args[:reply] if args.key?(:reply) end |