class Google::Apis::TranslateV3beta1::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::TranslateV3beta1::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::TranslateV3beta1::Translation>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v3beta1/classes.rb, line 1154
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_v3beta1/classes.rb, line 1159
def update!(**args)
  @glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations)
  @translations = args[:translations] if args.key?(:translations)
end