Cloud Vision V1 Client - Class Result (2.1.1)

Reference documentation and code samples for the Cloud Vision V1 Client class Result.

Information about a product.

Generated from protobuf message google.cloud.vision.v1.ProductSearchResults.Result

Namespace

Google \ Cloud \ Vision \ V1 \ ProductSearchResults

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ product
↳ score
float

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

↳ image
string

The resource name of the image from the product that is the closest match to the query.

getProduct

The Product.

Returns
Type
Description

hasProduct

clearProduct

setProduct

The Product.

Parameter
Name
Description
Returns
Type
Description
$this

getScore

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

Returns
Type
Description
float

setScore

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getImage

The resource name of the image from the product that is the closest match to the query.

Returns
Type
Description
string

setImage

The resource name of the image from the product that is the closest match to the query.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: