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.
1947 1948 1949 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1947 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
1945 1946 1947 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1945 def romanizations @romanizations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1952 1953 1954 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1952 def update!(**args) @romanizations = args[:romanizations] if args.key?(:romanizations) end |