public static final class Page.Builder extends GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilder
Detected page from OCR.Protobuf type
google.cloud.vision.v1.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(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(Descriptors.FieldDescriptor field) |
Page.Builder |
clearHeight()
Page height.
|
Page.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
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 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,
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(Descriptors.FieldDescriptor field,
int index,
Object value) |
Page.Builder |
setUnknownFields(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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Page.Builder>
public Page.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Page.Builder>
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. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;
getWidth
in interface PageOrBuilder
public 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 PageOrBuilder
public 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.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(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 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 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;
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(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>
Copyright © 2022 Google LLC. All rights reserved.