class Google::Apis::TranslateV3::DetectLanguageResponse

The response message for language detection.

Attributes

languages[RW]

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result. Corresponds to the JSON property `languages` @return [Array<Google::Apis::TranslateV3::DetectedLanguage>]

Public Class Methods

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