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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ product |
Google\Cloud\Vision\V1\Product
The 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 |
Google\Cloud\Vision\V1\Product|null |
hasProduct
clearProduct
setProduct
The Product.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Vision\V1\Product
|
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 |