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.



1465
1466
1467
# File 'lib/google/apis/translate_v3/classes.rb', line 1465

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



1463
1464
1465
# File 'lib/google/apis/translate_v3/classes.rb', line 1463

def romanizations
  @romanizations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1470
1471
1472
# File 'lib/google/apis/translate_v3/classes.rb', line 1470

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