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
-
#glossary_translations ⇒ Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>
Text translation response if a glossary is provided in the request.
-
#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.
232 233 234 |
# File 'lib/google/apis/translate_v3/classes.rb', line 232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glossary_translations ⇒ Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>
Text translation response if a glossary is provided in the request. This could
be the same as 'translation' above if no terms apply.
Corresponds to the JSON property glossaryTranslations
220 221 222 |
# File 'lib/google/apis/translate_v3/classes.rb', line 220 def glossary_translations @glossary_translations end |
#language_code ⇒ String
Output only. The translation's language code.
Corresponds to the JSON property languageCode
225 226 227 |
# File 'lib/google/apis/translate_v3/classes.rb', line 225 def language_code @language_code end |
#translations ⇒ Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>
Output only. The translation.
Corresponds to the JSON property translations
230 231 232 |
# File 'lib/google/apis/translate_v3/classes.rb', line 230 def translations @translations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
237 238 239 240 241 |
# File 'lib/google/apis/translate_v3/classes.rb', line 237 def update!(**args) @glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations) @language_code = args[:language_code] if args.key?(:language_code) @translations = args[:translations] if args.key?(:translations) end |