Class: Google::Apis::TranslateV2::ListTranslationsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/translate_v2/classes.rb,
generated/google/apis/translate_v2/representations.rb,
generated/google/apis/translate_v2/representations.rb

Overview

The main language translation response message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListTranslationsResponse

Returns a new instance of ListTranslationsResponse.



224
225
226
# File 'generated/google/apis/translate_v2/classes.rb', line 224

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#translationsArray<Google::Apis::TranslateV2::TranslationsResource>

Translations contains list of translation results of given text Corresponds to the JSON property translations



222
223
224
# File 'generated/google/apis/translate_v2/classes.rb', line 222

def translations
  @translations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



229
230
231
# File 'generated/google/apis/translate_v2/classes.rb', line 229

def update!(**args)
  @translations = args[:translations] if args.key?(:translations)
end