class Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult

Information about a product.

Attributes

image[RW]

The resource name of the image from the product that is the closest match to the query. Corresponds to the JSON property `image` @return [String]

product[RW]

A Product contains ReferenceImages. Corresponds to the JSON property `product` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Product]

score[RW]

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). Corresponds to the JSON property `score` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 2484
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_v1/classes.rb, line 2489
def update!(**args)
  @image = args[:image] if args.key?(:image)
  @product = args[:product] if args.key?(:product)
  @score = args[:score] if args.key?(:score)
end