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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListTranslationsResponse

Returns a new instance of ListTranslationsResponse



190
191
192
# File 'generated/google/apis/translate_v2/classes.rb', line 190

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



188
189
190
# File 'generated/google/apis/translate_v2/classes.rb', line 188

def translations
  @translations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
# File 'generated/google/apis/translate_v2/classes.rb', line 195

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