Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

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

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) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction



3945
3946
3947
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3945

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

Instance Attribute Details

#dialGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial

Opens the user's default dialer app with the specified phone number but does not dial automatically (https://goo.gl/ergbB2). Corresponds to the JSON property dial



3917
3918
3919
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3917

def dial
  @dial
end

#open_urlGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri

Opens the user's default web browser app to the specified uri (https://goo.gl/6GLJD2). If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. Corresponds to the JSON property openUrl



3925
3926
3927
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3925

def open_url
  @open_url
end

#postback_dataString

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic. Corresponds to the JSON property postbackData

Returns:

  • (String)


3932
3933
3934
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3932

def postback_data
  @postback_data
end

#share_locationGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation

Opens the device's location chooser so the user can pick a location to send back to the agent (https://goo.gl/GXotJW). Corresponds to the JSON property shareLocation



3938
3939
3940
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3938

def share_location
  @share_location
end

#textString

Text to display alongside the action. Corresponds to the JSON property text

Returns:

  • (String)


3943
3944
3945
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3943

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3950
3951
3952
3953
3954
3955
3956
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3950

def update!(**args)
  @dial = args[:dial] if args.key?(:dial)
  @open_url = args[:open_url] if args.key?(:open_url)
  @postback_data = args[:postback_data] if args.key?(:postback_data)
  @share_location = args[:share_location] if args.key?(:share_location)
  @text = args[:text] if args.key?(:text)
end