Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion

Inherits:
Object
  • Object
show all
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

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

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion.



17945
17946
17947
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17945

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

Instance Attribute Details

#actionGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction

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



17937
17938
17939
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17937

def action
  @action
end

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



17943
17944
17945
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17943

def reply
  @reply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17950
17951
17952
17953
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17950

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