Cloud Vision V1p3beta1 API - Class Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo (v0.5.5)

Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo.

Information about a product.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image_uri

def image_uri() -> ::String
Returns
  • (::String) — The URI of the image which matched the query image.

    This field is returned only if view is set to FULL in the request.

#image_uri=

def image_uri=(value) -> ::String
Parameter
  • value (::String) — The URI of the image which matched the query image.

    This field is returned only if view is set to FULL in the request.

Returns
  • (::String) — The URI of the image which matched the query image.

    This field is returned only if view is set to FULL in the request.

#product_id

def product_id() -> ::String
Returns
  • (::String) — Product ID.

#product_id=

def product_id=(value) -> ::String
Parameter
  • value (::String) — Product ID.
Returns
  • (::String) — Product ID.

#score

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

    This field is returned only if view is set to FULL in the request.

#score=

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

    This field is returned only if view is set to FULL in the request.

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

    This field is returned only if view is set to FULL in the request.