public static final class Block.Builder extends GeneratedMessageV3.Builder<Block.Builder> implements BlockOrBuilder
Logical element on the page.Protobuf type
google.cloud.vision.v1p1beta1.Block
Modifier and Type | Method and Description |
---|---|
Block.Builder |
addAllParagraphs(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,
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).
|
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).
|
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).
|
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,
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,
Object value) |
Block.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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<Block.Builder>
public Block.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Block.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Block.Builder>
public Block getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Block build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Block buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Block.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Block.Builder>
public Block.Builder mergeFrom(Block other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Block.Builder>
public Block.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Block.Builder>
IOException
public boolean hasProperty()
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
hasProperty
in interface BlockOrBuilder
public TextAnnotation.TextProperty getProperty()
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
getProperty
in interface BlockOrBuilder
public Block.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Block.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Block.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Block.Builder clearProperty()
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the block.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
getPropertyOrBuilder
in interface BlockOrBuilder
public 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.v1p1beta1.BoundingPoly bounding_box = 2;
hasBoundingBox
in interface BlockOrBuilder
public 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.v1p1beta1.BoundingPoly bounding_box = 2;
getBoundingBox
in interface BlockOrBuilder
public 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.BoundingPoly bounding_box = 2;
getBoundingBoxOrBuilder
in interface BlockOrBuilder
public List<Paragraph> getParagraphsList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
getParagraphsList
in interface BlockOrBuilder
public int getParagraphsCount()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
getParagraphsCount
in interface BlockOrBuilder
public Paragraph getParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
getParagraphs
in interface BlockOrBuilder
public Block.Builder setParagraphs(int index, Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.Paragraph paragraphs = 3;
public Block.Builder addAllParagraphs(Iterable<? extends Paragraph> values)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
public Block.Builder clearParagraphs()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.Paragraph paragraphs = 3;
getParagraphsOrBuilder
in interface BlockOrBuilder
public List<? extends ParagraphOrBuilder> getParagraphsOrBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
getParagraphsOrBuilderList
in interface BlockOrBuilder
public Paragraph.Builder addParagraphsBuilder()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.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.v1p1beta1.Paragraph paragraphs = 3;
public List<Paragraph.Builder> getParagraphsBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p1beta1.Paragraph paragraphs = 3;
public int getBlockTypeValue()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4;
getBlockTypeValue
in interface BlockOrBuilder
public Block.Builder setBlockTypeValue(int value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4;
value
- The enum numeric value on the wire for blockType to set.public Block.BlockType getBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4;
getBlockType
in interface BlockOrBuilder
public Block.Builder setBlockType(Block.BlockType value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p1beta1.Block.BlockType block_type = 4;
value
- The blockType to set.public Block.Builder clearBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p1beta1.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 BlockOrBuilder
public Block.Builder setConfidence(float value)
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;
value
- The confidence to set.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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Block.Builder>
public final Block.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Block.Builder>
Copyright © 2022 Google LLC. All rights reserved.