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.Flags| Constructor and Description |
|---|
EntityAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
EntityAnnotation |
clone() |
BoundingPoly |
getBoundingPoly()
Image region to which this entity belongs.
|
java.lang.Float |
getConfidence()
**Deprecated.
|
java.lang.String |
getDescription()
Entity textual description, expressed in its `locale` language.
|
java.lang.String |
getLocale()
The language code for the locale in which the entity textual `description` is expressed.
|
java.util.List<LocationInfo> |
getLocations()
The location information for the detected entity.
|
java.lang.String |
getMid()
Opaque entity ID.
|
java.util.List<Property> |
getProperties()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or
string that qualifies the entity.
|
java.lang.Float |
getScore()
Overall score of the result.
|
java.lang.Float |
getTopicality()
The relevancy of the ICA (Image Content Annotation) label to the image.
|
EntityAnnotation |
set(java.lang.String fieldName,
java.lang.Object value) |
EntityAnnotation |
setBoundingPoly(BoundingPoly boundingPoly)
Image region to which this entity belongs.
|
EntityAnnotation |
setConfidence(java.lang.Float confidence)
**Deprecated.
|
EntityAnnotation |
setDescription(java.lang.String description)
Entity textual description, expressed in its `locale` language.
|
EntityAnnotation |
setLocale(java.lang.String locale)
The language code for the locale in which the entity textual `description` is expressed.
|
EntityAnnotation |
setLocations(java.util.List<LocationInfo> locations)
The location information for the detected entity.
|
EntityAnnotation |
setMid(java.lang.String mid)
Opaque entity ID.
|
EntityAnnotation |
setProperties(java.util.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(java.lang.Float score)
Overall score of the result.
|
EntityAnnotation |
setTopicality(java.lang.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, valuespublic BoundingPoly getBoundingPoly()
null for nonepublic EntityAnnotation setBoundingPoly(BoundingPoly boundingPoly)
boundingPoly - boundingPoly or null for nonepublic java.lang.Float getConfidence()
null for nonepublic EntityAnnotation setConfidence(java.lang.Float confidence)
confidence - confidence or null for nonepublic java.lang.String getDescription()
null for nonepublic EntityAnnotation setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.String getLocale()
null for nonepublic EntityAnnotation setLocale(java.lang.String locale)
locale - locale or null for nonepublic java.util.List<LocationInfo> getLocations()
null for nonepublic EntityAnnotation setLocations(java.util.List<LocationInfo> locations)
locations - locations or null for nonepublic java.lang.String getMid()
null for nonepublic EntityAnnotation setMid(java.lang.String mid)
mid - mid or null for nonepublic java.util.List<Property> getProperties()
null for nonepublic EntityAnnotation setProperties(java.util.List<Property> properties)
properties - properties or null for nonepublic java.lang.Float getScore()
null for nonepublic EntityAnnotation setScore(java.lang.Float score)
score - score or null for nonepublic java.lang.Float getTopicality()
null for nonepublic EntityAnnotation setTopicality(java.lang.Float topicality)
topicality - topicality or null for nonepublic EntityAnnotation set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic EntityAnnotation clone()
clone in class com.google.api.client.json.GenericJson