Class: Google::Apis::TranslateV3::AdaptiveMtTranslation
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::AdaptiveMtTranslation
- 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
An AdaptiveMt translation.
Instance Attribute Summary collapse
-
#translated_text ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptiveMtTranslation
constructor
A new instance of AdaptiveMtTranslation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdaptiveMtTranslation
Returns a new instance of AdaptiveMtTranslation.
253 254 255 |
# File 'lib/google/apis/translate_v3/classes.rb', line 253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#translated_text ⇒ String
Output only. The translated text.
Corresponds to the JSON property translatedText
251 252 253 |
# File 'lib/google/apis/translate_v3/classes.rb', line 251 def translated_text @translated_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
258 259 260 |
# File 'lib/google/apis/translate_v3/classes.rb', line 258 def update!(**args) @translated_text = args[:translated_text] if args.key?(:translated_text) end |