Class: Google::Apis::TranslateV3::AdaptiveMtTranslateResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::AdaptiveMtTranslateResponse
- 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
-
#language_code ⇒ String
Output only.
-
#translations ⇒ Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptiveMtTranslateResponse
constructor
A new instance of AdaptiveMtTranslateResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
Output only. The translation's language code.
Corresponds to the JSON property languageCode
207 208 209 |
# File 'lib/google/apis/translate_v3/classes.rb', line 207 def language_code @language_code end |
#translations ⇒ Array<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 |