Class Block.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
- com.google.cloud.vision.v1p2beta1.Block.Builder
-
- All Implemented Interfaces:
BlockOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Block
public static final class Block.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Block.Builder> implements BlockOrBuilder
Logical element on the page.
Protobuf typegoogle.cloud.vision.v1p2beta1.Block
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Block.BuilderaddAllParagraphs(Iterable<? extends Paragraph> values)List of paragraphs in this block (if this blocks is of type text).Block.BuilderaddParagraphs(int index, Paragraph value)List of paragraphs in this block (if this blocks is of type text).Block.BuilderaddParagraphs(int index, Paragraph.Builder builderForValue)List of paragraphs in this block (if this blocks is of type text).Block.BuilderaddParagraphs(Paragraph value)List of paragraphs in this block (if this blocks is of type text).Block.BuilderaddParagraphs(Paragraph.Builder builderForValue)List of paragraphs in this block (if this blocks is of type text).Paragraph.BuilderaddParagraphsBuilder()List of paragraphs in this block (if this blocks is of type text).Paragraph.BuilderaddParagraphsBuilder(int index)List of paragraphs in this block (if this blocks is of type text).Block.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Blockbuild()BlockbuildPartial()Block.Builderclear()Block.BuilderclearBlockType()Detected block type (text, image etc) for this block.Block.BuilderclearBoundingBox()The bounding box for the block.Block.BuilderclearConfidence()Confidence of the OCR results on the block.Block.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Block.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Block.BuilderclearParagraphs()List of paragraphs in this block (if this blocks is of type text).Block.BuilderclearProperty()Additional information detected for the block.Block.Builderclone()Block.BlockTypegetBlockType()Detected block type (text, image etc) for this block.intgetBlockTypeValue()Detected block type (text, image etc) for this block.BoundingPolygetBoundingBox()The bounding box for the block.BoundingPoly.BuildergetBoundingBoxBuilder()The bounding box for the block.BoundingPolyOrBuildergetBoundingBoxOrBuilder()The bounding box for the block.floatgetConfidence()Confidence of the OCR results on the block.BlockgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ParagraphgetParagraphs(int index)List of paragraphs in this block (if this blocks is of type text).Paragraph.BuildergetParagraphsBuilder(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).intgetParagraphsCount()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).ParagraphOrBuildergetParagraphsOrBuilder(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.TextPropertygetProperty()Additional information detected for the block.TextAnnotation.TextProperty.BuildergetPropertyBuilder()Additional information detected for the block.TextAnnotation.TextPropertyOrBuildergetPropertyOrBuilder()Additional information detected for the block.booleanhasBoundingBox()The bounding box for the block.booleanhasProperty()Additional information detected for the block.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Block.BuildermergeBoundingBox(BoundingPoly value)The bounding box for the block.Block.BuildermergeFrom(Block other)Block.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Block.BuildermergeFrom(com.google.protobuf.Message other)Block.BuildermergeProperty(TextAnnotation.TextProperty value)Additional information detected for the block.Block.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Block.BuilderremoveParagraphs(int index)List of paragraphs in this block (if this blocks is of type text).Block.BuildersetBlockType(Block.BlockType value)Detected block type (text, image etc) for this block.Block.BuildersetBlockTypeValue(int value)Detected block type (text, image etc) for this block.Block.BuildersetBoundingBox(BoundingPoly value)The bounding box for the block.Block.BuildersetBoundingBox(BoundingPoly.Builder builderForValue)The bounding box for the block.Block.BuildersetConfidence(float value)Confidence of the OCR results on the block.Block.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Block.BuildersetParagraphs(int index, Paragraph value)List of paragraphs in this block (if this blocks is of type text).Block.BuildersetParagraphs(int index, Paragraph.Builder builderForValue)List of paragraphs in this block (if this blocks is of type text).Block.BuildersetProperty(TextAnnotation.TextProperty value)Additional information detected for the block.Block.BuildersetProperty(TextAnnotation.TextProperty.Builder builderForValue)Additional information detected for the block.Block.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Block.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clear
public Block.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
getDefaultInstanceForType
public Block getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Block build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Block buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Block.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
setField
public Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clearField
public Block.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clearOneof
public Block.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
setRepeatedField
public Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
addRepeatedField
public Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
mergeFrom
public Block.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Block.Builder>
-
mergeFrom
public Block.Builder mergeFrom(Block other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
mergeFrom
public Block.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Block.Builder>- Throws:
IOException
-
hasProperty
public boolean hasProperty()
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;- Specified by:
hasPropertyin interfaceBlockOrBuilder- Returns:
- Whether the property field is set.
-
getProperty
public TextAnnotation.TextProperty getProperty()
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfaceBlockOrBuilder- Returns:
- The property.
-
setProperty
public Block.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Block.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Block.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Block.Builder clearProperty()
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the block.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyOrBuilderin interfaceBlockOrBuilder
-
hasBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;- Specified by:
hasBoundingBoxin interfaceBlockOrBuilder- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxin interfaceBlockOrBuilder- Returns:
- The boundingBox.
-
setBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;
-
setBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;
-
mergeBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;
-
clearBoundingBox
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.v1p2beta1.BoundingPoly bounding_box = 2;
-
getBoundingBoxBuilder
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.v1p2beta1.BoundingPoly bounding_box = 2;
-
getBoundingBoxOrBuilder
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.v1p2beta1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxOrBuilderin interfaceBlockOrBuilder
-
getParagraphsList
public List<Paragraph> getParagraphsList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;- Specified by:
getParagraphsListin interfaceBlockOrBuilder
-
getParagraphsCount
public int getParagraphsCount()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;- Specified by:
getParagraphsCountin interfaceBlockOrBuilder
-
getParagraphs
public Paragraph getParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;- Specified by:
getParagraphsin interfaceBlockOrBuilder
-
setParagraphs
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.v1p2beta1.Paragraph paragraphs = 3;
-
setParagraphs
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.v1p2beta1.Paragraph paragraphs = 3;
-
addParagraphs
public Block.Builder addParagraphs(Paragraph value)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
addParagraphs
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.v1p2beta1.Paragraph paragraphs = 3;
-
addParagraphs
public Block.Builder addParagraphs(Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
addParagraphs
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.v1p2beta1.Paragraph paragraphs = 3;
-
addAllParagraphs
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.v1p2beta1.Paragraph paragraphs = 3;
-
clearParagraphs
public Block.Builder clearParagraphs()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
removeParagraphs
public Block.Builder removeParagraphs(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
getParagraphsBuilder
public Paragraph.Builder getParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
getParagraphsOrBuilder
public ParagraphOrBuilder getParagraphsOrBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;- Specified by:
getParagraphsOrBuilderin interfaceBlockOrBuilder
-
getParagraphsOrBuilderList
public List<? extends ParagraphOrBuilder> getParagraphsOrBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;- Specified by:
getParagraphsOrBuilderListin interfaceBlockOrBuilder
-
addParagraphsBuilder
public Paragraph.Builder addParagraphsBuilder()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
addParagraphsBuilder
public Paragraph.Builder addParagraphsBuilder(int index)
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
getParagraphsBuilderList
public List<Paragraph.Builder> getParagraphsBuilderList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1p2beta1.Paragraph paragraphs = 3;
-
getBlockTypeValue
public int getBlockTypeValue()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4;- Specified by:
getBlockTypeValuein interfaceBlockOrBuilder- Returns:
- The enum numeric value on the wire for blockType.
-
setBlockTypeValue
public Block.Builder setBlockTypeValue(int value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4;- Parameters:
value- The enum numeric value on the wire for blockType to set.- Returns:
- This builder for chaining.
-
getBlockType
public Block.BlockType getBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4;- Specified by:
getBlockTypein interfaceBlockOrBuilder- Returns:
- The blockType.
-
setBlockType
public Block.Builder setBlockType(Block.BlockType value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4;- Parameters:
value- The blockType to set.- Returns:
- This builder for chaining.
-
clearBlockType
public Block.Builder clearBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1p2beta1.Block.BlockType block_type = 4;- Returns:
- This builder for chaining.
-
getConfidence
public float getConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;- Specified by:
getConfidencein interfaceBlockOrBuilder- Returns:
- The confidence.
-
setConfidence
public Block.Builder setConfidence(float value)
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
public Block.Builder clearConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
mergeUnknownFields
public final Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
-