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