Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ProductSearchResults::Result (v1.1.0)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::ProductSearchResults::Result.

Information about a product.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image

def image() -> ::String
Returns
  • (::String) — The resource name of the image from the product that is the closest match to the query.

#image=

def image=(value) -> ::String
Parameter
  • value (::String) — The resource name of the image from the product that is the closest match to the query.
Returns
  • (::String) — The resource name of the image from the product that is the closest match to the query.

#product

def product() -> ::Google::Cloud::Vision::V1::Product
Returns

#product=

def product=(value) -> ::Google::Cloud::Vision::V1::Product
Parameter
Returns

#score

def score() -> ::Float
Returns
  • (::Float) — A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

#score=

def score=(value) -> ::Float
Parameter
  • value (::Float) — A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
Returns
  • (::Float) — A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).