Class Page (3.20.0)

public final class Page extends GeneratedMessageV3 implements PageOrBuilder

Detected page from OCR.

Protobuf type google.cloud.vision.v1p4beta1.Page

Implements

PageOrBuilder

Static Fields

BLOCKS_FIELD_NUMBER

public static final int BLOCKS_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

HEIGHT_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER
Field Value
TypeDescription
int

PROPERTY_FIELD_NUMBER

public static final int PROPERTY_FIELD_NUMBER
Field Value
TypeDescription
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Page getDefaultInstance()
Returns
TypeDescription
Page

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Page.Builder newBuilder()
Returns
TypeDescription
Page.Builder

newBuilder(Page prototype)

public static Page.Builder newBuilder(Page prototype)
Parameter
NameDescription
prototypePage
Returns
TypeDescription
Page.Builder

parseDelimitedFrom(InputStream input)

public static Page parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Page parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Page parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Page parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Page parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Page parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Page parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Page parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Page parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Page parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Page parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Page parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Page> parser()
Returns
TypeDescription
Parser<Page>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBlocks(int index)

public Block getBlocks(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Block

getBlocksCount()

public int getBlocksCount()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
int

getBlocksList()

public List<Block> getBlocksList()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
List<Block>

getBlocksOrBuilder(int index)

public BlockOrBuilder getBlocksOrBuilder(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
BlockOrBuilder

getBlocksOrBuilderList()

public List<? extends BlockOrBuilder> getBlocksOrBuilderList()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.BlockOrBuilder>

getConfidence()

public float getConfidence()

Confidence of the OCR results on the page. Range [0, 1].

float confidence = 5;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public Page getDefaultInstanceForType()
Returns
TypeDescription
Page

getHeight()

public int getHeight()

Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

int32 height = 3;

Returns
TypeDescription
int

The height.

getParserForType()

public Parser<Page> getParserForType()
Returns
TypeDescription
Parser<Page>
Overrides

getProperty()

public TextAnnotation.TextProperty getProperty()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
TextAnnotation.TextProperty

The property.

getPropertyOrBuilder()

public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
TextAnnotation.TextPropertyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWidth()

public int getWidth()

Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

int32 width = 2;

Returns
TypeDescription
int

The width.

hasProperty()

public boolean hasProperty()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
boolean

Whether the property field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Page.Builder newBuilderForType()
Returns
TypeDescription
Page.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Page.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Page.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Page.Builder toBuilder()
Returns
TypeDescription
Page.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException