Class: Google::Apis::TranslateV3::TranslateTextResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::TranslateTextResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/translate_v3/classes.rb,
generated/google/apis/translate_v3/representations.rb,
generated/google/apis/translate_v3/representations.rb
Instance Attribute Summary collapse
-
#glossary_translations ⇒ Array<Google::Apis::TranslateV3::Translation>
Text translation responses if a glossary is provided in the request.
-
#translations ⇒ Array<Google::Apis::TranslateV3::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.
842 843 844 |
# File 'generated/google/apis/translate_v3/classes.rb', line 842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glossary_translations ⇒ Array<Google::Apis::TranslateV3::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
834 835 836 |
# File 'generated/google/apis/translate_v3/classes.rb', line 834 def glossary_translations @glossary_translations end |
#translations ⇒ Array<Google::Apis::TranslateV3::Translation>
Text translation responses with no glossary applied. This field has the same
length as contents.
Corresponds to the JSON property translations
840 841 842 |
# File 'generated/google/apis/translate_v3/classes.rb', line 840 def translations @translations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
847 848 849 850 |
# File 'generated/google/apis/translate_v3/classes.rb', line 847 def update!(**args) @glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations) @translations = args[:translations] if args.key?(:translations) end |