class Google::Apis::TranslateV3beta1::DetectLanguageResponse
The response message for language detection.
Attributes
languages[RW]
A list of detected languages sorted by detection confidence in descending order. The most probable language first. Corresponds to the JSON property `languages` @return [Array<Google::Apis::TranslateV3beta1::DetectedLanguage>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/translate_v3beta1/classes.rb, line 264 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 269 def update!(**args) @languages = args[:languages] if args.key?(:languages) end