Class: Google::Apis::TexttospeechV1beta1::ListVoicesResponse

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

Overview

The message returned to the client by the ListVoices method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListVoicesResponse

Returns a new instance of ListVoicesResponse.



106
107
108
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 106

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

Instance Attribute Details

#voicesArray<Google::Apis::TexttospeechV1beta1::Voice>

The list of voices. Corresponds to the JSON property voices



104
105
106
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 104

def voices
  @voices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 111

def update!(**args)
  @voices = args[:voices] if args.key?(:voices)
end