Class: Google::Apis::TranslateV3beta1::TranslateTextResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::TranslateTextResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb
Instance Attribute Summary collapse
-
#glossary_translations ⇒ Array<Google::Apis::TranslateV3beta1::Translation>
Text translation responses if a glossary is provided in the request.
-
#translations ⇒ Array<Google::Apis::TranslateV3beta1::Translation>
Text translation responses with no glossary applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TranslateTextResponse
constructor
A new instance of TranslateTextResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TranslateTextResponse
Returns a new instance of TranslateTextResponse.
1204 1205 1206 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1204 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glossary_translations ⇒ Array<Google::Apis::TranslateV3beta1::Translation>
Text translation responses if a glossary is provided in the request. This can
be the same as translations if no terms apply. This field has the same
length as contents.
Corresponds to the JSON property glossaryTranslations
1196 1197 1198 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1196 def glossary_translations @glossary_translations end |
#translations ⇒ Array<Google::Apis::TranslateV3beta1::Translation>
Text translation responses with no glossary applied. This field has the same
length as contents.
Corresponds to the JSON property translations
1202 1203 1204 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1202 def translations @translations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1209 1210 1211 1212 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1209 def update!(**args) @glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations) @translations = args[:translations] if args.key?(:translations) end |