public static final class Block.Builder extends com.google.protobuf.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(com.google.protobuf.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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Block.Builder |
clearOneof(com.google.protobuf.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.
|
Block |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Block.Builder |
mergeBoundingBox(BoundingPoly value)
The bounding box for the block.
|
Block.Builder |
mergeFrom(Block other) |
Block.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Block.Builder |
mergeFrom(com.google.protobuf.Message other) |
Block.Builder |
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
|
Block.Builder |
mergeUnknownFields(com.google.protobuf.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 |
setField(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Block.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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 com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Block.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<Block.Builder>public Block getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Block build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Block buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Block.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Block.Builder>public Block.Builder mergeFrom(Block other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public Block.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 final Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>public final Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>