Class: Google::Apis::TexttospeechV1::SafetySettings
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::SafetySettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/texttospeech_v1/classes.rb,
lib/google/apis/texttospeech_v1/representations.rb,
lib/google/apis/texttospeech_v1/representations.rb
Overview
Safety settings for the request.
Instance Attribute Summary collapse
-
#settings ⇒ Array<Google::Apis::TexttospeechV1::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.
493 494 495 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 493 def initialize(**args) update!(**args) end |
Instance Attribute Details
#settings ⇒ Array<Google::Apis::TexttospeechV1::SafetySetting>
The safety settings for the request.
Corresponds to the JSON property settings
491 492 493 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 491 def settings @settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
498 499 500 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 498 def update!(**args) @settings = args[:settings] if args.key?(:settings) end |