Class: Google::Apis::TexttospeechV1beta1::SafetySettings
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::SafetySettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/texttospeech_v1beta1/classes.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb
Overview
Safety settings for the request.
Instance Attribute Summary collapse
-
#settings ⇒ Array<Google::Apis::TexttospeechV1beta1::SafetySetting>
The safety settings for the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SafetySettings
constructor
A new instance of SafetySettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SafetySettings
Returns a new instance of SafetySettings.
464 465 466 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 464 def initialize(**args) update!(**args) end |
Instance Attribute Details
#settings ⇒ Array<Google::Apis::TexttospeechV1beta1::SafetySetting>
The safety settings for the request.
Corresponds to the JSON property settings
462 463 464 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 462 def settings @settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
469 470 471 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 469 def update!(**args) @settings = args[:settings] if args.key?(:settings) end |