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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public boolean hasProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
hasProperty
in interface PageOrBuilder
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Page.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Page.Builder>
public Page getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Page build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Page buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Page.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Page.Builder>
public Page.Builder mergeFrom(Page other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Page.Builder>
java.io.IOException
public boolean hasProperty()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
hasProperty
in interface PageOrBuilder
public TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
getProperty
in interface PageOrBuilder
public 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 PageOrBuilder
public int getWidth()
Page width in pixels.
int32 width = 2;
getWidth
in interface PageOrBuilder
public 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 PageOrBuilder
public 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 PageOrBuilder
public int getBlocksCount()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
getBlocksCount
in interface PageOrBuilder
public 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 PageOrBuilder
public 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 PageOrBuilder
public 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 PageOrBuilder
public 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 PageOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Page.Builder>
public final Page.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Page.Builder>