Class: Google::Apis::TranslateV3::AdaptiveMtTranslateResponse

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 AdaptiveMtTranslate response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdaptiveMtTranslateResponse

Returns a new instance of AdaptiveMtTranslateResponse.



214
215
216
# File 'lib/google/apis/translate_v3/classes.rb', line 214

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

Instance Attribute Details

#language_codeString

Output only. The translation's language code. Corresponds to the JSON property languageCode

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/translate_v3/classes.rb', line 207

def language_code
  @language_code
end

#translationsArray<Google::Apis::TranslateV3::AdaptiveMtTranslation>

Output only. The translation. Corresponds to the JSON property translations



212
213
214
# File 'lib/google/apis/translate_v3/classes.rb', line 212

def translations
  @translations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
# File 'lib/google/apis/translate_v3/classes.rb', line 219

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