Class: Google::Apis::TexttospeechV1::SafetySettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

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