class Google::Apis::TranslateV3::DetectedLanguage

The response message for language detection.

Attributes

confidence[RW]

The confidence of the detection result for this language. Corresponds to the JSON property `confidence` @return [Float]

language_code[RW]

The BCP-47 language code of source content in the request, detected automatically. Corresponds to the JSON property `languageCode` @return [String]

Public Class Methods

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