public final class Result
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Vision API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
Result |
clone() |
java.lang.String |
getImage()
The resource name of the image from the product that is the closest match to the query.
|
Product |
getProduct()
The Product.
|
java.lang.Float |
getScore()
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
|
Result |
set(java.lang.String fieldName,
java.lang.Object value) |
Result |
setImage(java.lang.String image)
The resource name of the image from the product that is the closest match to the query.
|
Result |
setProduct(Product product)
The Product.
|
Result |
setScore(java.lang.Float score)
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getImage()
null
for nonepublic Result setImage(java.lang.String image)
image
- image or null
for nonepublic Product getProduct()
null
for nonepublic Result setProduct(Product product)
product
- product or null
for nonepublic java.lang.Float getScore()
null
for nonepublic Result setScore(java.lang.Float score)
score
- score or null
for nonepublic Result set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Result clone()
clone
in class com.google.api.client.json.GenericJson