Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings.



3782
3783
3784
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 3782

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

Instance Attribute Details

#enabledBoolean 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

Returns:

  • (Boolean)


3769
3770
3771
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 3769

def enabled
  @enabled
end

#finish_digitString

The digit that terminates a DTMF digit sequence. Corresponds to the JSON property finishDigit

Returns:

  • (String)


3775
3776
3777
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 3775

def finish_digit
  @finish_digit
end

#max_digitsFixnum

Max length of DTMF digits. Corresponds to the JSON property maxDigits

Returns:

  • (Fixnum)


3780
3781
3782
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 3780

def max_digits
  @max_digits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3787
3788
3789
3790
3791
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 3787

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