Class: Google::Apis::VisionV1::KeyValue
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::VisionV1::KeyValue
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1/classes.rb,
 lib/google/apis/vision_v1/representations.rb,
 lib/google/apis/vision_v1/representations.rb
Overview
A product label represented as a key-value pair.
Instance Attribute Summary collapse
- 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The key of the label attached to the product. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The value of the label attached to the product. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ KeyValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of KeyValue. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ KeyValue
Returns a new instance of KeyValue.
| 8857 8858 8859 | # File 'lib/google/apis/vision_v1/classes.rb', line 8857 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#key ⇒ String
The key of the label attached to the product. Cannot be empty and cannot
exceed 128 bytes.
Corresponds to the JSON property key
| 8849 8850 8851 | # File 'lib/google/apis/vision_v1/classes.rb', line 8849 def key @key end | 
#value ⇒ String
The value of the label attached to the product. Cannot be empty and cannot
exceed 128 bytes.
Corresponds to the JSON property value
| 8855 8856 8857 | # File 'lib/google/apis/vision_v1/classes.rb', line 8855 def value @value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 8862 8863 8864 8865 | # File 'lib/google/apis/vision_v1/classes.rb', line 8862 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |