class Google::Apis::VisionV1p2beta1::WebLabel

Label to provide extra metadata for the web detection.

Attributes

label[RW]

Label for extra metadata. Corresponds to the JSON property `label` @return [String]

language_code[RW]

The BCP-47 language code for `label`, 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_v1p2beta1/classes.rb, line 9782
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_v1p2beta1/classes.rb, line 9787
def update!(**args)
  @label = args[:label] if args.key?(:label)
  @language_code = args[:language_code] if args.key?(:language_code)
end