Class: Google::Apis::TranslateV3::AdaptiveMtTranslation

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

An AdaptiveMt translation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdaptiveMtTranslation

Returns a new instance of AdaptiveMtTranslation.



234
235
236
# File 'lib/google/apis/translate_v3/classes.rb', line 234

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#translated_textString

Output only. The translated text. Corresponds to the JSON property translatedText

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/translate_v3/classes.rb', line 232

def translated_text
  @translated_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



239
240
241
# File 'lib/google/apis/translate_v3/classes.rb', line 239

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