public final class EntityAnnotation
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 |
|---|
EntityAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
EntityAnnotation |
clone() |
BoundingPoly |
getBoundingPoly()
Image region to which this entity belongs.
|
Float |
getConfidence()
**Deprecated.
|
String |
getDescription()
Entity textual description, expressed in its `locale` language.
|
String |
getLocale()
The language code for the locale in which the entity textual `description` is expressed.
|
List<LocationInfo> |
getLocations()
The location information for the detected entity.
|
String |
getMid()
Opaque entity ID.
|
List<Property> |
getProperties()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or
string that qualifies the entity.
|
Float |
getScore()
Overall score of the result.
|
Float |
getTopicality()
The relevancy of the ICA (Image Content Annotation) label to the image.
|
EntityAnnotation |
set(String fieldName,
Object value) |
EntityAnnotation |
setBoundingPoly(BoundingPoly boundingPoly)
Image region to which this entity belongs.
|
EntityAnnotation |
setConfidence(Float confidence)
**Deprecated.
|
EntityAnnotation |
setDescription(String description)
Entity textual description, expressed in its `locale` language.
|
EntityAnnotation |
setLocale(String locale)
The language code for the locale in which the entity textual `description` is expressed.
|
EntityAnnotation |
setLocations(List<LocationInfo> locations)
The location information for the detected entity.
|
EntityAnnotation |
setMid(String mid)
Opaque entity ID.
|
EntityAnnotation |
setProperties(List<Property> properties)
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or
string that qualifies the entity.
|
EntityAnnotation |
setScore(Float score)
Overall score of the result.
|
EntityAnnotation |
setTopicality(Float topicality)
The relevancy of the ICA (Image Content Annotation) label to the image.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic BoundingPoly getBoundingPoly()
null for nonepublic EntityAnnotation setBoundingPoly(BoundingPoly boundingPoly)
boundingPoly - boundingPoly or null for nonepublic Float getConfidence()
null for nonepublic EntityAnnotation setConfidence(Float confidence)
confidence - confidence or null for nonepublic String getDescription()
null for nonepublic EntityAnnotation setDescription(String description)
description - description or null for nonepublic String getLocale()
null for nonepublic EntityAnnotation setLocale(String locale)
locale - locale or null for nonepublic List<LocationInfo> getLocations()
null for nonepublic EntityAnnotation setLocations(List<LocationInfo> locations)
locations - locations or null for nonepublic String getMid()
null for nonepublic EntityAnnotation setMid(String mid)
mid - mid or null for nonepublic List<Property> getProperties()
null for nonepublic EntityAnnotation setProperties(List<Property> properties)
properties - properties or null for nonepublic Float getScore()
null for nonepublic EntityAnnotation setScore(Float score)
score - score or null for nonepublic Float getTopicality()
null for nonepublic EntityAnnotation setTopicality(Float topicality)
topicality - topicality or null for nonepublic EntityAnnotation set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic EntityAnnotation clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2019 Google. All rights reserved.