Class: Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Property

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#confidenceFloat

Value in range [0..1]. Confidence of this property value. Corresponds to the JSON property confidence

Returns:

  • (Float)


12066
12067
12068
# File 'generated/google/apis/vision_v1/classes.rb', line 12066

def confidence
  @confidence
end

#midString

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

Returns:

  • (String)


12079
12080
12081
# File 'generated/google/apis/vision_v1/classes.rb', line 12079

def mid
  @mid
end

#nameString

Name of the property. Corresponds to the JSON property name

Returns:

  • (String)


12084
12085
12086
# File 'generated/google/apis/vision_v1/classes.rb', line 12084

def name
  @name
end

#uint64_valueFixnum

Value of numeric properties. Corresponds to the JSON property uint64Value

Returns:

  • (Fixnum)


12089
12090
12091
# File 'generated/google/apis/vision_v1/classes.rb', line 12089

def uint64_value
  @uint64_value
end

#valueString

Value of the property. Corresponds to the JSON property value

Returns:

  • (String)


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