Send feedback
Class Page (3.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.5.0 keyboard_arrow_down
public final class Page extends GeneratedMessageV3 implements PageOrBuilder
Detected page from OCR.
Protobuf type google.cloud.vision.v1.Page
Static Fields
BLOCKS_FIELD_NUMBER
public static final int BLOCKS_FIELD_NUMBER
Field Value
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
Field Value
PROPERTY_FIELD_NUMBER
public static final int PROPERTY_FIELD_NUMBER
Field Value
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Page getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static Page . Builder newBuilder ()
Returns
newBuilder(Page prototype)
public static Page . Builder newBuilder ( Page prototype )
Parameter
Name Description prototype Page
Returns
parseDelimitedFrom(InputStream input)
public static Page parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Page parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Page parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static Page parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static Page parseFrom ( InputStream input )
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Page parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<Page> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getBlocks(int index)
public Block getBlocks ( int index )
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
Parameter
Returns
getBlocksCount()
public int getBlocksCount ()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
Returns
getBlocksList()
public List<Block> getBlocksList ()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
Returns
getBlocksOrBuilder(int index)
public BlockOrBuilder getBlocksOrBuilder ( int index )
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
Parameter
Returns
getBlocksOrBuilderList()
public List <? extends BlockOrBuilder > getBlocksOrBuilderList ()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
Returns
Type Description List <? extends com.google.cloud.vision.v1.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
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 ()
Returns
Overrides
getProperty()
public TextAnnotation . TextProperty getProperty ()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Returns
getPropertyOrBuilder()
public TextAnnotation . TextPropertyOrBuilder getPropertyOrBuilder ()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Returns
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
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.v1.TextAnnotation.TextProperty property = 1;
Returns
Type Description boolean Whether the property field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public Page . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Page . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public Page . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
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 2025-02-22 UTC.
Need to tell us more?
[[["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 2025-02-22 UTC."],[],[]]