class Google::Apis::TranslateV2::TranslationsResource
Attributes
detected_source_language[RW]
Detected source language if source parameter is unspecified. Corresponds to the JSON property `detectedSourceLanguage` @return [String]
translated_text[RW]
The translation. Corresponds to the JSON property `translatedText` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/translate_v2/classes.rb, line 156 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/translate_v2/classes.rb, line 161 def update!(**args) @detected_source_language = args[:detected_source_language] if args.key?(:detected_source_language) @translated_text = args[:translated_text] if args.key?(:translated_text) end