Class: Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Property
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Property
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
A Property
consists of a user-supplied name/value pair.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Value in range [0..1].
-
#mid ⇒ String
Opaque property value ID.
-
#name ⇒ String
Name of the property.
-
#uint64_value ⇒ Fixnum
Value of numeric properties.
-
#value ⇒ String
Value of the property.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p6beta1Property
constructor
A new instance of GoogleCloudVisionV1p6beta1Property.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p6beta1Property
Returns a new instance of GoogleCloudVisionV1p6beta1Property
12096 12097 12098 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12096 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Value in range [0..1]. Confidence of this property value.
Corresponds to the JSON property confidence
12066 12067 12068 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12066 def confidence @confidence end |
#mid ⇒ String
Opaque property value ID. Some IDs may be available in
Google Knowledge Graph Search
API.
An example property for a blue coat would be:
Property
name: 'color'
value: 'blue'
mid: '/m/01g5v' // For color blue
Corresponds to the JSON property mid
12079 12080 12081 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12079 def mid @mid end |
#name ⇒ String
Name of the property.
Corresponds to the JSON property name
12084 12085 12086 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12084 def name @name end |
#uint64_value ⇒ Fixnum
Value of numeric properties.
Corresponds to the JSON property uint64Value
12089 12090 12091 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12089 def uint64_value @uint64_value end |
#value ⇒ String
Value of the property.
Corresponds to the JSON property value
12094 12095 12096 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12094 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12101 12102 12103 12104 12105 12106 12107 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12101 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @mid = args[:mid] if args.key?(:mid) @name = args[:name] if args.key?(:name) @uint64_value = args[:uint64_value] if args.key?(:uint64_value) @value = args[:value] if args.key?(:value) end |