Class Page (3.47.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Page extends GeneratedMessageV3 implements PageOrBuilder
Detected page from OCR.
Protobuf type google.cloud.vision.v1p2beta1.Page
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BLOCKS_FIELD_NUMBER
public static final int BLOCKS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROPERTY_FIELD_NUMBER
public static final int PROPERTY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Page getDefaultInstance()
Returns |
Type |
Description |
Page |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Page.Builder newBuilder()
newBuilder(Page prototype)
public static Page.Builder newBuilder(Page prototype)
Parameter |
Name |
Description |
prototype |
Page
|
parseDelimitedFrom(InputStream input)
public static Page parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Page |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parseFrom(byte[] data)
public static Page parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Page |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parseFrom(ByteString data)
public static Page parseFrom(ByteString data)
Returns |
Type |
Description |
Page |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parseFrom(CodedInputStream input)
public static Page parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Page |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parseFrom(InputStream input)
public static Page parseFrom(InputStream input)
Returns |
Type |
Description |
Page |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parseFrom(ByteBuffer data)
public static Page parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Page |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Page |
|
parser()
public static Parser<Page> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBlocks(int index)
public Block getBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Block |
|
getBlocksCount()
public int getBlocksCount()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
Returns |
Type |
Description |
int |
|
getBlocksList()
public List<Block> getBlocksList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
getBlocksOrBuilder(int index)
public BlockOrBuilder getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
Parameter |
Name |
Description |
index |
int
|
getBlocksOrBuilderList()
public List<? extends BlockOrBuilder> getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
Returns |
Type |
Description |
List<? extends com.google.cloud.vision.v1p2beta1.BlockOrBuilder> |
|
getConfidence()
public float getConfidence()
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;
Returns |
Type |
Description |
float |
The confidence.
|
getDefaultInstanceForType()
public Page getDefaultInstanceForType()
Returns |
Type |
Description |
Page |
|
getHeight()
Page height. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.
int32 height = 3;
Returns |
Type |
Description |
int |
The height.
|
getParserForType()
public Parser<Page> getParserForType()
Overrides
getProperty()
public TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
getPropertyOrBuilder()
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getWidth()
Page width. For PDFs the unit is points. For images (including
TIFFs) the unit is pixels.
int32 width = 2;
Returns |
Type |
Description |
int |
The width.
|
hasProperty()
public boolean hasProperty()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
Returns |
Type |
Description |
boolean |
Whether the property field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Page.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Page.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Page.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]