class Google::Apis::TranslateV3::TranslateTextResponse
Attributes
glossary_translations[RW]
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` @return [Array<Google::Apis::TranslateV3::Translation>]
translations[RW]
Text translation responses with no glossary applied. This field has the same length as `contents`. Corresponds to the JSON property `translations` @return [Array<Google::Apis::TranslateV3::Translation>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/translate_v3/classes.rb, line 840 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/translate_v3/classes.rb, line 845 def update!(**args) @glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations) @translations = args[:translations] if args.key?(:translations) end