Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings

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

Overview

Settings for exporting audio.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings.



12109
12110
12111
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12109

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

Instance Attribute Details

#audio_export_patternString

Filename pattern for exported audio. Corresponds to the JSON property audioExportPattern

Returns:

  • (String)


12080
12081
12082
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12080

def audio_export_pattern
  @audio_export_pattern
end

#audio_formatString

File format for exported audio file. Currently only in telephony recordings. Corresponds to the JSON property audioFormat

Returns:

  • (String)


12085
12086
12087
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12085

def audio_format
  @audio_format
end

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

Returns:

  • (Boolean)


12091
12092
12093
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12091

def enable_audio_redaction
  @enable_audio_redaction
end

#gcs_bucketString

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

Returns:

  • (String)


12100
12101
12102
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12100

def gcs_bucket
  @gcs_bucket
end

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

Returns:

  • (Boolean)


12106
12107
12108
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12106

def store_tts_audio
  @store_tts_audio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12114
12115
12116
12117
12118
12119
12120
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12114

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