class Google::Apis::TranslateV2::ListTranslationsResponse

The main language translation response message.

Attributes

translations[RW]

Translations contains list of translation results of given text Corresponds to the JSON property `translations` @return [Array<Google::Apis::TranslateV2::TranslationsResource>]

Public Class Methods

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