public final class Page
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
Page |
clone() |
List<Block> |
getBlocks()
List of blocks of text, images etc on this page.
|
Float |
getConfidence()
Confidence of the OCR results on the page.
|
Integer |
getHeight()
Page height.
|
TextProperty |
getProperty()
Additional information detected on the page.
|
Integer |
getWidth()
Page width.
|
Page |
set(String fieldName,
Object value) |
Page |
setBlocks(List<Block> blocks)
List of blocks of text, images etc on this page.
|
Page |
setConfidence(Float confidence)
Confidence of the OCR results on the page.
|
Page |
setHeight(Integer height)
Page height.
|
Page |
setProperty(TextProperty property)
Additional information detected on the page.
|
Page |
setWidth(Integer width)
Page width.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<Block> getBlocks()
null
for nonepublic Page setBlocks(List<Block> blocks)
blocks
- blocks or null
for nonepublic Float getConfidence()
null
for nonepublic Page setConfidence(Float confidence)
confidence
- confidence or null
for nonepublic Integer getHeight()
null
for nonepublic Page setHeight(Integer height)
height
- height or null
for nonepublic TextProperty getProperty()
null
for nonepublic Page setProperty(TextProperty property)
property
- property or null
for nonepublic Integer getWidth()
null
for nonepublic Page setWidth(Integer width)
width
- width or null
for nonepublic Page set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Page clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.