public final class Page extends com.google.protobuf.GeneratedMessageV3 implements PageOrBuilder
Detected page from OCR.Protobuf type
google.cloud.vision.v1p3beta1.Page| Modifier and Type | Class and Description |
|---|---|
static class |
Page.Builder
Detected page from OCR.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKS_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
HEIGHT_FIELD_NUMBER |
static int |
PROPERTY_FIELD_NUMBER |
static int |
WIDTH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Block |
getBlocks(int index)
List of blocks of text, images etc on this page.
|
int |
getBlocksCount()
List of blocks of text, images etc on this page.
|
List<Block> |
getBlocksList()
List of blocks of text, images etc on this page.
|
BlockOrBuilder |
getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
|
List<? extends BlockOrBuilder> |
getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
|
float |
getConfidence()
Confidence of the OCR results on the page.
|
static Page |
getDefaultInstance() |
Page |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getHeight()
Page height.
|
com.google.protobuf.Parser<Page> |
getParserForType() |
TextAnnotation.TextProperty |
getProperty()
Additional information detected on the page.
|
TextAnnotation.TextPropertyOrBuilder |
getPropertyOrBuilder()
Additional information detected on the page.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWidth()
Page width.
|
int |
hashCode() |
boolean |
hasProperty()
Additional information detected on the page.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Page.Builder |
newBuilder() |
static Page.Builder |
newBuilder(Page prototype) |
Page.Builder |
newBuilderForType() |
protected Page.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Page |
parseDelimitedFrom(InputStream input) |
static Page |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Page |
parseFrom(byte[] data) |
static Page |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Page |
parseFrom(ByteBuffer data) |
static Page |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Page |
parseFrom(com.google.protobuf.ByteString data) |
static Page |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Page |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Page |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Page |
parseFrom(InputStream input) |
static Page |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Page> |
parser() |
Page.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PROPERTY_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
public static final int BLOCKS_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasProperty()
Additional information detected on the page.
.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1;hasProperty in interface PageOrBuilderpublic TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1;getProperty in interface PageOrBuilderpublic TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty property = 1;getPropertyOrBuilder in interface PageOrBuilderpublic int getWidth()
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;getWidth in interface PageOrBuilderpublic int getHeight()
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;getHeight in interface PageOrBuilderpublic List<Block> getBlocksList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p3beta1.Block blocks = 4;getBlocksList in interface PageOrBuilderpublic List<? extends BlockOrBuilder> getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p3beta1.Block blocks = 4;getBlocksOrBuilderList in interface PageOrBuilderpublic int getBlocksCount()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p3beta1.Block blocks = 4;getBlocksCount in interface PageOrBuilderpublic Block getBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p3beta1.Block blocks = 4;getBlocks in interface PageOrBuilderpublic BlockOrBuilder getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p3beta1.Block blocks = 4;getBlocksOrBuilder in interface PageOrBuilderpublic float getConfidence()
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;getConfidence in interface PageOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Page parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Page parseFrom(InputStream input) throws IOException
IOExceptionpublic static Page parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Page parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Page parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Page parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Page parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Page.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Page.Builder newBuilder()
public static Page.Builder newBuilder(Page prototype)
public Page.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Page.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Page getDefaultInstance()
public static com.google.protobuf.Parser<Page> parser()
public com.google.protobuf.Parser<Page> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Page getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.