class Google::Apis::TranslateV2::DetectLanguageRequest

The request message for language detection.

Attributes

q[RW]

The input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs. Corresponds to the JSON property `q` @return [Array<String>]

Public Class Methods

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