Class: Google::Apis::TranslateV3::RomanizeTextResponse

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

Overview

The response message for synchronous romanization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RomanizeTextResponse

Returns a new instance of RomanizeTextResponse.



1851
1852
1853
# File 'lib/google/apis/translate_v3/classes.rb', line 1851

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

Instance Attribute Details

#romanizationsArray<Google::Apis::TranslateV3::Romanization>

Text romanization responses. This field has the same length as contents. Corresponds to the JSON property romanizations



1849
1850
1851
# File 'lib/google/apis/translate_v3/classes.rb', line 1849

def romanizations
  @romanizations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1856
1857
1858
# File 'lib/google/apis/translate_v3/classes.rb', line 1856

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