@@ -49,6 +49,11 @@ class GoogleCloudDialogflowCxV3AdvancedSettings
4949 # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings]
5050 attr_accessor :logging_settings
5151
52+ # Define behaviors of speech to text detection.
53+ # Corresponds to the JSON property `speechSettings`
54+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings]
55+ attr_accessor :speech_settings
56+
5257 def initialize(**args)
5358 update!(**args)
5459 end
@@ -58,6 +63,7 @@ def update!(**args)
5863 @audio_export_gcs_destination = args[:audio_export_gcs_destination] if args.key?(:audio_export_gcs_destination)
5964 @dtmf_settings = args[:dtmf_settings] if args.key?(:dtmf_settings)
6065 @logging_settings = args[:logging_settings] if args.key?(:logging_settings)
66+ @speech_settings = args[:speech_settings] if args.key?(:speech_settings)
6167 end
6268 end
6369
@@ -124,6 +130,49 @@ def update!(**args)
124130 end
125131 end
126132
133+ # Define behaviors of speech to text detection.
134+ class GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
135+ include Google::Apis::Core::Hashable
136+
137+ # Sensitivity of the speech model that detects the end of speech. Scale from 0
138+ # to 100.
139+ # Corresponds to the JSON property `endpointerSensitivity`
140+ # @return [Fixnum]
141+ attr_accessor :endpointer_sensitivity
142+
143+ # Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model
144+ # will be selected for requests from its corresponding language. For more
145+ # information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
146+ # concept/speech-models).
147+ # Corresponds to the JSON property `models`
148+ # @return [Hash<String,String>]
149+ attr_accessor :models
150+
151+ # Timeout before detecting no speech.
152+ # Corresponds to the JSON property `noSpeechTimeout`
153+ # @return [String]
154+ attr_accessor :no_speech_timeout
155+
156+ # Use timeout based endpointing, interpreting endpointer sensitivy as seconds of
157+ # timeout value.
158+ # Corresponds to the JSON property `useTimeoutBasedEndpointing`
159+ # @return [Boolean]
160+ attr_accessor :use_timeout_based_endpointing
161+ alias_method :use_timeout_based_endpointing?, :use_timeout_based_endpointing
162+
163+ def initialize(**args)
164+ update!(**args)
165+ end
166+
167+ # Update properties of this object
168+ def update!(**args)
169+ @endpointer_sensitivity = args[:endpointer_sensitivity] if args.key?(:endpointer_sensitivity)
170+ @models = args[:models] if args.key?(:models)
171+ @no_speech_timeout = args[:no_speech_timeout] if args.key?(:no_speech_timeout)
172+ @use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
173+ end
174+ end
175+
127176 # Agents are best described as Natural Language Understanding (NLU) modules that
128177 # transform user requests into actionable data. You can include agents in your
129178 # app, product, or service to determine user intent and respond to the user in a
@@ -213,6 +262,11 @@ class GoogleCloudDialogflowCxV3Agent
213262 # @return [String]
214263 attr_accessor :name
215264
265+ # Settings for end user personalization.
266+ # Corresponds to the JSON property `personalizationSettings`
267+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AgentPersonalizationSettings]
268+ attr_accessor :personalization_settings
269+
216270 # Name of the SecuritySettings reference for the agent. Format: `projects//
217271 # locations//securitySettings/`.
218272 # Corresponds to the JSON property `securitySettings`
@@ -266,6 +320,7 @@ def update!(**args)
266320 @git_integration_settings = args[:git_integration_settings] if args.key?(:git_integration_settings)
267321 @locked = args[:locked] if args.key?(:locked)
268322 @name = args[:name] if args.key?(:name)
323+ @personalization_settings = args[:personalization_settings] if args.key?(:personalization_settings)
269324 @security_settings = args[:security_settings] if args.key?(:security_settings)
270325 @speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
271326 @start_flow = args[:start_flow] if args.key?(:start_flow)
@@ -380,6 +435,29 @@ def update!(**args)
380435 end
381436 end
382437
438+ # Settings for end user personalization.
439+ class GoogleCloudDialogflowCxV3AgentPersonalizationSettings
440+ include Google::Apis::Core::Hashable
441+
442+ # Optional. Default end user metadata, used when processing DetectIntent
443+ # requests. Recommended to be filled as a template instead of hard-coded value,
444+ # for example ` "age": "$session.params.age" `. The data will be merged with the
445+ # QueryParameters.end_user_metadata in DetectIntentRequest.query_params during
446+ # query processing.
447+ # Corresponds to the JSON property `defaultEndUserMetadata`
448+ # @return [Hash<String,Object>]
449+ attr_accessor :default_end_user_metadata
450+
451+ def initialize(**args)
452+ update!(**args)
453+ end
454+
455+ # Update properties of this object
456+ def update!(**args)
457+ @default_end_user_metadata = args[:default_end_user_metadata] if args.key?(:default_end_user_metadata)
458+ end
459+ end
460+
383461 # The response message for Agents.GetAgentValidationResult.
384462 class GoogleCloudDialogflowCxV3AgentValidationResult
385463 include Google::Apis::Core::Hashable
@@ -6524,7 +6602,10 @@ class GoogleCloudDialogflowCxV3SecuritySettings
65246602 # Retains the data for the specified number of days. User must set a value lower
65256603 # than Dialogflow's default 365d TTL (30 days for Agent Assist traffic), higher
65266604 # value will be ignored and use default. Setting a value higher than that has no
6527- # effect. A missing value or setting to 0 also means we use default TTL.
6605+ # effect. A missing value or setting to 0 also means we use default TTL. When
6606+ # data retention configuration is changed, it only applies to the data created
6607+ # after the change; the TTL of existing data created before the change stays
6608+ # intact.
65286609 # Corresponds to the JSON property `retentionWindowDays`
65296610 # @return [Fixnum]
65306611 attr_accessor :retention_window_days
@@ -6563,7 +6644,8 @@ class GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
65636644 # @return [String]
65646645 attr_accessor :audio_format
65656646
6566- # Enable audio redaction if it is true.
6647+ # Enable audio redaction if it is true. Note that this only redacts end-user
6648+ # audio data; Synthesised audio from the virtual agent is not redacted.
65676649 # Corresponds to the JSON property `enableAudioRedaction`
65686650 # @return [Boolean]
65696651 attr_accessor :enable_audio_redaction
@@ -8329,6 +8411,11 @@ class GoogleCloudDialogflowCxV3beta1AdvancedSettings
83298411 # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings]
83308412 attr_accessor :logging_settings
83318413
8414+ # Define behaviors of speech to text detection.
8415+ # Corresponds to the JSON property `speechSettings`
8416+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings]
8417+ attr_accessor :speech_settings
8418+
83328419 def initialize(**args)
83338420 update!(**args)
83348421 end
@@ -8338,6 +8425,7 @@ def update!(**args)
83388425 @audio_export_gcs_destination = args[:audio_export_gcs_destination] if args.key?(:audio_export_gcs_destination)
83398426 @dtmf_settings = args[:dtmf_settings] if args.key?(:dtmf_settings)
83408427 @logging_settings = args[:logging_settings] if args.key?(:logging_settings)
8428+ @speech_settings = args[:speech_settings] if args.key?(:speech_settings)
83418429 end
83428430 end
83438431
@@ -8404,6 +8492,49 @@ def update!(**args)
84048492 end
84058493 end
84068494
8495+ # Define behaviors of speech to text detection.
8496+ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
8497+ include Google::Apis::Core::Hashable
8498+
8499+ # Sensitivity of the speech model that detects the end of speech. Scale from 0
8500+ # to 100.
8501+ # Corresponds to the JSON property `endpointerSensitivity`
8502+ # @return [Fixnum]
8503+ attr_accessor :endpointer_sensitivity
8504+
8505+ # Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model
8506+ # will be selected for requests from its corresponding language. For more
8507+ # information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
8508+ # concept/speech-models).
8509+ # Corresponds to the JSON property `models`
8510+ # @return [Hash<String,String>]
8511+ attr_accessor :models
8512+
8513+ # Timeout before detecting no speech.
8514+ # Corresponds to the JSON property `noSpeechTimeout`
8515+ # @return [String]
8516+ attr_accessor :no_speech_timeout
8517+
8518+ # Use timeout based endpointing, interpreting endpointer sensitivy as seconds of
8519+ # timeout value.
8520+ # Corresponds to the JSON property `useTimeoutBasedEndpointing`
8521+ # @return [Boolean]
8522+ attr_accessor :use_timeout_based_endpointing
8523+ alias_method :use_timeout_based_endpointing?, :use_timeout_based_endpointing
8524+
8525+ def initialize(**args)
8526+ update!(**args)
8527+ end
8528+
8529+ # Update properties of this object
8530+ def update!(**args)
8531+ @endpointer_sensitivity = args[:endpointer_sensitivity] if args.key?(:endpointer_sensitivity)
8532+ @models = args[:models] if args.key?(:models)
8533+ @no_speech_timeout = args[:no_speech_timeout] if args.key?(:no_speech_timeout)
8534+ @use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
8535+ end
8536+ end
8537+
84078538 # Represents the natural speech audio to be processed.
84088539 class GoogleCloudDialogflowCxV3beta1AudioInput
84098540 include Google::Apis::Core::Hashable
0 commit comments