Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Define behaviors for DTMF (dual tone multi frequency).
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
If true, incoming audio is processed for DTMF (dual tone multi frequency) events.
-
#finish_digit ⇒ String
The digit that terminates a DTMF digit sequence.
-
#max_digits ⇒ Fixnum
Max length of DTMF digits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
constructor
A new instance of GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
Returns a new instance of GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings.
88 89 90 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 88 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
If true, incoming audio is processed for DTMF (dual tone multi frequency)
events. For example, if the caller presses a button on their telephone keypad
and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3"
was pressed) in the incoming audio and pass the event to the bot to drive
business logic (e.g. when 3 is pressed, return the account balance).
Corresponds to the JSON property enabled
75 76 77 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 75 def enabled @enabled end |
#finish_digit ⇒ String
The digit that terminates a DTMF digit sequence.
Corresponds to the JSON property finishDigit
81 82 83 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 81 def finish_digit @finish_digit end |
#max_digits ⇒ Fixnum
Max length of DTMF digits.
Corresponds to the JSON property maxDigits
86 87 88 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 86 def max_digits @max_digits end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
93 94 95 96 97 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 93 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @finish_digit = args[:finish_digit] if args.key?(:finish_digit) @max_digits = args[:max_digits] if args.key?(:max_digits) end |