Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::Product
Returns
- (::Google::Cloud::Vision::V1p3beta1::Product) — The Product.
#product=
def product=(value) -> ::Google::Cloud::Vision::V1p3beta1::Product
Parameter
- value (::Google::Cloud::Vision::V1p3beta1::Product) — The Product.
Returns
- (::Google::Cloud::Vision::V1p3beta1::Product) — The Product.
#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 toFULL
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 toFULL
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 toFULL
in the request.