public final class TextAnnotation
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 |
|---|
TextAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
TextAnnotation |
clone() |
java.util.List<Page> |
getPages()
List of pages detected by OCR.
|
java.lang.String |
getText()
UTF-8 text detected on the pages.
|
TextAnnotation |
set(java.lang.String fieldName,
java.lang.Object value) |
TextAnnotation |
setPages(java.util.List<Page> pages)
List of pages detected by OCR.
|
TextAnnotation |
setText(java.lang.String text)
UTF-8 text detected on the pages.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<Page> getPages()
null for nonepublic TextAnnotation setPages(java.util.List<Page> pages)
pages - pages or null for nonepublic java.lang.String getText()
null for nonepublic TextAnnotation setText(java.lang.String text)
text - text or null for nonepublic TextAnnotation set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic TextAnnotation clone()
clone in class com.google.api.client.json.GenericJson