public static final class Block.Builder extends GeneratedMessageV3.Builder<Block.Builder> implements BlockOrBuilder
Logical element on the page.Protobuf type
google.cloud.vision.v1.Block| Type | Property and Description |
|---|---|
Block.Builder |
clear
Additional information detected for the block.
|
boolean |
has
Additional information detected for the block.
|
| Modifier and Type | Method and Description |
|---|---|
Block.Builder |
addAllParagraphs(java.lang.Iterable<? extends Paragraph> values)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
addParagraphs(int index,
Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
addParagraphs(int index,
Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
addParagraphs(Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
addParagraphs(Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
|
Paragraph.Builder |
addParagraphsBuilder()
List of paragraphs in this block (if this blocks is of type text).
|
Paragraph.Builder |
addParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Block |
build() |
Block |
buildPartial() |
Block.Builder |
clear() |
Block.Builder |
clearBlockType()
Detected block type (text, image etc) for this block.
|
Block.Builder |
clearBoundingBox()
The bounding box for the block.
|
Block.Builder |
clearConfidence()
Confidence of the OCR results on the block.
|
Block.Builder |
clearField(Descriptors.FieldDescriptor field) |
Block.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Block.Builder |
clearParagraphs()
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
clearProperty()
Additional information detected for the block.
|
Block.Builder |
clone() |
Block.BlockType |
getBlockType()
Detected block type (text, image etc) for this block.
|
int |
getBlockTypeValue()
Detected block type (text, image etc) for this block.
|
BoundingPoly |
getBoundingBox()
The bounding box for the block.
|
BoundingPoly.Builder |
getBoundingBoxBuilder()
The bounding box for the block.
|
BoundingPolyOrBuilder |
getBoundingBoxOrBuilder()
The bounding box for the block.
|
float |
getConfidence()
Confidence of the OCR results on the block.
|
Block |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Paragraph |
getParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
|
Paragraph.Builder |
getParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
|
java.util.List<Paragraph.Builder> |
getParagraphsBuilderList()
List of paragraphs in this block (if this blocks is of type text).
|
int |
getParagraphsCount()
List of paragraphs in this block (if this blocks is of type text).
|
java.util.List<Paragraph> |
getParagraphsList()
List of paragraphs in this block (if this blocks is of type text).
|
ParagraphOrBuilder |
getParagraphsOrBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
|
java.util.List<? extends ParagraphOrBuilder> |
getParagraphsOrBuilderList()
List of paragraphs in this block (if this blocks is of type text).
|
TextAnnotation.TextProperty |
getProperty()
Additional information detected for the block.
|
TextAnnotation.TextProperty.Builder |
getPropertyBuilder()
Additional information detected for the block.
|
TextAnnotation.TextPropertyOrBuilder |
getPropertyOrBuilder()
Additional information detected for the block.
|
boolean |
hasBoundingBox()
The bounding box for the block.
|
boolean |
hasProperty()
Additional information detected for the block.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Block.Builder |
mergeBoundingBox(BoundingPoly value)
The bounding box for the block.
|
Block.Builder |
mergeFrom(Block other) |
Block.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Block.Builder |
mergeFrom(Message other) |
Block.Builder |
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
|
Block.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Block.Builder |
removeParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
setBlockType(Block.BlockType value)
Detected block type (text, image etc) for this block.
|
Block.Builder |
setBlockTypeValue(int value)
Detected block type (text, image etc) for this block.
|
Block.Builder |
setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the block.
|
Block.Builder |
setBoundingBox(BoundingPoly value)
The bounding box for the block.
|
Block.Builder |
setConfidence(float value)
Confidence of the OCR results on the block.
|
Block.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Block.Builder |
setParagraphs(int index,
Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
setParagraphs(int index,
Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
|
Block.Builder |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
|
Block.Builder |
setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
|
Block.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Block.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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 for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface BlockOrBuilderpublic Block.Builder clearProperty
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Block.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Block.Builder>public Block getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Block build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Block buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Block.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Block.Builder>public Block.Builder mergeFrom(Block other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Block.Builder>public Block.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Block.Builder>java.io.IOExceptionpublic boolean hasProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface BlockOrBuilderpublic TextAnnotation.TextProperty getProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getProperty in interface BlockOrBuilderpublic Block.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Block.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Block.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Block.Builder clearProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getPropertyOrBuilder in interface BlockOrBuilderpublic boolean hasBoundingBox()
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;hasBoundingBox in interface BlockOrBuilderpublic BoundingPoly getBoundingBox()
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;getBoundingBox in interface BlockOrBuilderpublic Block.Builder setBoundingBox(BoundingPoly value)
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;public Block.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;public Block.Builder mergeBoundingBox(BoundingPoly value)
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;public Block.Builder clearBoundingBox()
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;public BoundingPoly.Builder getBoundingBoxBuilder()
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
The bounding box for the block.
The vertices are in the order of top-left, top-right, bottom-right,
bottom-left. When a rotation of the bounding box is detected the rotation
is represented as around the top-left corner as defined when the text is
read in the 'natural' orientation.
For example:
* when the text is horizontal it might look like:
0----1
| |
3----2
* when it's rotated 180 degrees around the top-left corner it becomes:
2----3
| |
1----0
and the vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;getBoundingBoxOrBuilder in interface BlockOrBuilderpublic java.util.List<Paragraph> getParagraphsList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;getParagraphsList in interface BlockOrBuilderpublic int getParagraphsCount()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;getParagraphsCount in interface BlockOrBuilderpublic Paragraph getParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;getParagraphs in interface BlockOrBuilderpublic Block.Builder setParagraphs(int index, Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder setParagraphs(int index, Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder addParagraphs(Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder addParagraphs(int index, Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder addParagraphs(Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder addParagraphs(int index, Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder addAllParagraphs(java.lang.Iterable<? extends Paragraph> values)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder clearParagraphs()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Block.Builder removeParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Paragraph.Builder getParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public ParagraphOrBuilder getParagraphsOrBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;getParagraphsOrBuilder in interface BlockOrBuilderpublic java.util.List<? extends ParagraphOrBuilder> getParagraphsOrBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;getParagraphsOrBuilderList in interface BlockOrBuilderpublic Paragraph.Builder addParagraphsBuilder()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public Paragraph.Builder addParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public java.util.List<Paragraph.Builder> getParagraphsBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;public int getBlockTypeValue()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;getBlockTypeValue in interface BlockOrBuilderpublic Block.Builder setBlockTypeValue(int value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;public Block.BlockType getBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;getBlockType in interface BlockOrBuilderpublic Block.Builder setBlockType(Block.BlockType value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;public Block.Builder clearBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;public float getConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;getConfidence in interface BlockOrBuilderpublic Block.Builder setConfidence(float value)
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;public Block.Builder clearConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;public final Block.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Block.Builder>public final Block.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Block.Builder>