public static final class Page.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilder
Detected page from OCR.Protobuf type
google.cloud.vision.v1p4beta1.Page| Modifier and Type | Method and Description |
|---|---|
Page.Builder |
addAllBlocks(Iterable<? extends Block> values)
List of blocks of text, images etc on this page.
|
Page.Builder |
addBlocks(Block.Builder builderForValue)
List of blocks of text, images etc on this page.
|
Page.Builder |
addBlocks(Block value)
List of blocks of text, images etc on this page.
|
Page.Builder |
addBlocks(int index,
Block.Builder builderForValue)
List of blocks of text, images etc on this page.
|
Page.Builder |
addBlocks(int index,
Block value)
List of blocks of text, images etc on this page.
|
Block.Builder |
addBlocksBuilder()
List of blocks of text, images etc on this page.
|
Block.Builder |
addBlocksBuilder(int index)
List of blocks of text, images etc on this page.
|
Page.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Page |
build() |
Page |
buildPartial() |
Page.Builder |
clear() |
Page.Builder |
clearBlocks()
List of blocks of text, images etc on this page.
|
Page.Builder |
clearConfidence()
Confidence of the OCR results on the page.
|
Page.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Page.Builder |
clearHeight()
Page height.
|
Page.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Page.Builder |
clearProperty()
Additional information detected on the page.
|
Page.Builder |
clearWidth()
Page width.
|
Page.Builder |
clone() |
Block |
getBlocks(int index)
List of blocks of text, images etc on this page.
|
Block.Builder |
getBlocksBuilder(int index)
List of blocks of text, images etc on this page.
|
List<Block.Builder> |
getBlocksBuilderList()
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.
|
Page |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getHeight()
Page height.
|
TextAnnotation.TextProperty |
getProperty()
Additional information detected on the page.
|
TextAnnotation.TextProperty.Builder |
getPropertyBuilder()
Additional information detected on the page.
|
TextAnnotation.TextPropertyOrBuilder |
getPropertyOrBuilder()
Additional information detected on the page.
|
int |
getWidth()
Page width.
|
boolean |
hasProperty()
Additional information detected on the page.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Page.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Page.Builder |
mergeFrom(com.google.protobuf.Message other) |
Page.Builder |
mergeFrom(Page other) |
Page.Builder |
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
|
Page.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Page.Builder |
removeBlocks(int index)
List of blocks of text, images etc on this page.
|
Page.Builder |
setBlocks(int index,
Block.Builder builderForValue)
List of blocks of text, images etc on this page.
|
Page.Builder |
setBlocks(int index,
Block value)
List of blocks of text, images etc on this page.
|
Page.Builder |
setConfidence(float value)
Confidence of the OCR results on the page.
|
Page.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Page.Builder |
setHeight(int value)
Page height.
|
Page.Builder |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected on the page.
|
Page.Builder |
setProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
|
Page.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Page.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Page.Builder |
setWidth(int value)
Page width.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Page build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Page buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Page.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Page.Builder>public Page.Builder mergeFrom(Page other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public Page.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Page.Builder>IOExceptionpublic boolean hasProperty()
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;hasProperty in interface PageOrBuilderpublic TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;getProperty in interface PageOrBuilderpublic Page.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;public Page.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;public Page.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;public Page.Builder clearProperty()
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p4beta1.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 Page.Builder setWidth(int value)
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;value - The width to set.public Page.Builder clearWidth()
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;public 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 Page.Builder setHeight(int value)
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;value - The height to set.public Page.Builder clearHeight()
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;public List<Block> getBlocksList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;getBlocksList in interface PageOrBuilderpublic int getBlocksCount()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.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.v1p4beta1.Block blocks = 4;getBlocks in interface PageOrBuilderpublic Page.Builder setBlocks(int index, Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder setBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder addBlocks(Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder addBlocks(int index, Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder addBlocks(Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder addBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder addAllBlocks(Iterable<? extends Block> values)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder clearBlocks()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Page.Builder removeBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Block.Builder getBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public BlockOrBuilder getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;getBlocksOrBuilder in interface PageOrBuilderpublic List<? extends BlockOrBuilder> getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;getBlocksOrBuilderList in interface PageOrBuilderpublic Block.Builder addBlocksBuilder()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public Block.Builder addBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public List<Block.Builder> getBlocksBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;public float getConfidence()
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;getConfidence in interface PageOrBuilderpublic Page.Builder setConfidence(float value)
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;value - The confidence to set.public Page.Builder clearConfidence()
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;public final Page.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>public final Page.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>Copyright © 2023 Google LLC. All rights reserved.