Class: Google::Apis::TranslateV3::RomanizeTextResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::RomanizeTextResponse
- 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
-
#romanizations ⇒ Array<Google::Apis::TranslateV3::Romanization>
Text romanization responses.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RomanizeTextResponse
constructor
A new instance of RomanizeTextResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RomanizeTextResponse
Returns a new instance of RomanizeTextResponse.
1977 1978 1979 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1977 def initialize(**args) update!(**args) end |
Instance Attribute Details
#romanizations ⇒ Array<Google::Apis::TranslateV3::Romanization>
Text romanization responses. This field has the same length as contents
.
Corresponds to the JSON property romanizations
1975 1976 1977 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1975 def romanizations @romanizations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1982 1983 1984 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1982 def update!(**args) @romanizations = args[:romanizations] if args.key?(:romanizations) end |