class Google::Apis::VisionV1p1beta1::DetectedLanguage

Detected language for a structural component.

Attributes

confidence[RW]

Confidence of detected language. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]

language_code[RW]

The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see www.unicode.org/reports/tr35/#Unicode_locale_identifier. Corresponds to the JSON property `languageCode` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 615
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1p1beta1/classes.rb, line 620
def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @language_code = args[:language_code] if args.key?(:language_code)
end