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