Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
- 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
Settings for exporting audio.
Instance Attribute Summary collapse
-
#audio_export_pattern ⇒ String
Filename pattern for exported audio.
-
#audio_format ⇒ String
File format for exported audio file.
-
#enable_audio_redaction ⇒ Boolean
(also: #enable_audio_redaction?)
Enable audio redaction if it is true.
-
#gcs_bucket ⇒ String
Cloud Storage bucket to export audio record to.
-
#store_tts_audio ⇒ Boolean
(also: #store_tts_audio?)
Whether to store TTS audio.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
constructor
A new instance of GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
Returns a new instance of GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings.
7155 7156 7157 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7155 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_export_pattern ⇒ String
Filename pattern for exported audio.
Corresponds to the JSON property audioExportPattern
7126 7127 7128 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7126 def audio_export_pattern @audio_export_pattern end |
#audio_format ⇒ String
File format for exported audio file. Currently only in telephony recordings.
Corresponds to the JSON property audioFormat
7131 7132 7133 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7131 def audio_format @audio_format end |
#enable_audio_redaction ⇒ Boolean Also known as: enable_audio_redaction?
Enable audio redaction if it is true. Note that this only redacts end-user
audio data; Synthesised audio from the virtual agent is not redacted.
Corresponds to the JSON property enableAudioRedaction
7137 7138 7139 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7137 def enable_audio_redaction @enable_audio_redaction end |
#gcs_bucket ⇒ String
Cloud Storage bucket to export audio record to. Setting this field would grant
the Storage Object Creator role to the Dialogflow Service Agent. API caller
that tries to modify this field should have the permission of storage.buckets.
setIamPolicy.
Corresponds to the JSON property gcsBucket
7146 7147 7148 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7146 def gcs_bucket @gcs_bucket end |
#store_tts_audio ⇒ Boolean Also known as: store_tts_audio?
Whether to store TTS audio. By default, TTS audio from the virtual agent is
not exported.
Corresponds to the JSON property storeTtsAudio
7152 7153 7154 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7152 def store_tts_audio @store_tts_audio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7160 7161 7162 7163 7164 7165 7166 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7160 def update!(**args) @audio_export_pattern = args[:audio_export_pattern] if args.key?(:audio_export_pattern) @audio_format = args[:audio_format] if args.key?(:audio_format) @enable_audio_redaction = args[:enable_audio_redaction] if args.key?(:enable_audio_redaction) @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket) @store_tts_audio = args[:store_tts_audio] if args.key?(:store_tts_audio) end |