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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| Result() | 
| Modifier and Type | Method and Description | 
|---|---|
| Result | clone() | 
| String | getImage()The resource name of the image from the product that is the closest match to the query. | 
| Product | getProduct()The Product. | 
| Float | getScore()A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). | 
| Result | set(String fieldName,
   Object value) | 
| Result | setImage(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(Float score)A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getImage()
null for nonepublic Result setImage(String image)
image - image or null for nonepublic Product getProduct()
null for nonepublic Result setProduct(Product product)
product - product or null for nonepublic Float getScore()
null for nonepublic Result setScore(Float score)
score - score or null for nonepublic Result set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Result clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.