Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion.



4675
4676
4677
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4675

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

Instance Attribute Details

#actionGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction

Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. Corresponds to the JSON property action



4667
4668
4669
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4667

def action
  @action
end

#replyGoogle::Apis::DialogflowV2beta1::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



4673
4674
4675
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4673

def reply
  @reply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4680
4681
4682
4683
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4680

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @reply = args[:reply] if args.key?(:reply)
end