public final class ObjectAnnotation
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 |
---|
ObjectAnnotation() |
Modifier and Type | Method and Description |
---|---|
ObjectAnnotation |
clone() |
java.lang.String |
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
java.lang.String |
getMid()
Object ID that should align with EntityAnnotation mid.
|
java.lang.String |
getName()
Object name, expressed in its `language_code` language.
|
java.lang.Float |
getScore()
Score of the result.
|
ObjectAnnotation |
set(java.lang.String fieldName,
java.lang.Object value) |
ObjectAnnotation |
setLanguageCode(java.lang.String languageCode)
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
ObjectAnnotation |
setMid(java.lang.String mid)
Object ID that should align with EntityAnnotation mid.
|
ObjectAnnotation |
setName(java.lang.String name)
Object name, expressed in its `language_code` language.
|
ObjectAnnotation |
setScore(java.lang.Float score)
Score of the result.
|
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 getLanguageCode()
null
for nonepublic ObjectAnnotation setLanguageCode(java.lang.String languageCode)
languageCode
- languageCode or null
for nonepublic java.lang.String getMid()
null
for nonepublic ObjectAnnotation setMid(java.lang.String mid)
mid
- mid or null
for nonepublic java.lang.String getName()
null
for nonepublic ObjectAnnotation setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.Float getScore()
null
for nonepublic ObjectAnnotation setScore(java.lang.Float score)
score
- score or null
for nonepublic ObjectAnnotation set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ObjectAnnotation clone()
clone
in class com.google.api.client.json.GenericJson