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.



2090
2091
2092
# File 'lib/google/apis/translate_v3/classes.rb', line 2090

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



2088
2089
2090
# File 'lib/google/apis/translate_v3/classes.rb', line 2088

def romanizations
  @romanizations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2095
2096
2097
# File 'lib/google/apis/translate_v3/classes.rb', line 2095

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