Package com.google.cloud.vision.v1
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.v1.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.v1.Block
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
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(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).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, 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(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.float
getConfidence()
Confidence of the OCR results on 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).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 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 value)
The bounding box for the block.Block.Builder
setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the block.Block.Builder
setConfidence(float value)
Confidence of the OCR results on the block.Block.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Block.Builder
setParagraphs(int index, Paragraph value)
List of paragraphs in this block (if this blocks is of type text).Block.Builder
setParagraphs(int index, Paragraph.Builder builderForValue)
List of paragraphs in this block (if this blocks is of type text).Block.Builder
setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.Block.Builder
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.Block.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Block.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clear
public Block.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
getDefaultInstanceForType
public Block getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Block build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Block buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Block.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
setField
public Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clearField
public Block.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
clearOneof
public Block.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
setRepeatedField
public Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
addRepeatedField
public Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
mergeFrom
public Block.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Block.Builder>
-
mergeFrom
public Block.Builder mergeFrom(Block other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Block.Builder>
- Throws:
IOException
-
hasProperty
public boolean hasProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
- Specified by:
hasProperty
in interfaceBlockOrBuilder
- Returns:
- Whether the property field is set.
-
getProperty
public TextAnnotation.TextProperty getProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
- Specified by:
getProperty
in interfaceBlockOrBuilder
- Returns:
- The property.
-
setProperty
public Block.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Block.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Block.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Block.Builder clearProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
- Specified by:
getPropertyOrBuilder
in 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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;
- Specified by:
hasBoundingBox
in 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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;
- Specified by:
getBoundingBox
in 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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.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 vertex order will still be (0, 1, 2, 3).
.google.cloud.vision.v1.BoundingPoly bounding_box = 2;
- Specified by:
getBoundingBoxOrBuilder
in interfaceBlockOrBuilder
-
getParagraphsList
public List<Paragraph> getParagraphsList()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;
- Specified by:
getParagraphsList
in interfaceBlockOrBuilder
-
getParagraphsCount
public int getParagraphsCount()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.Paragraph paragraphs = 3;
- Specified by:
getParagraphsCount
in interfaceBlockOrBuilder
-
getParagraphs
public 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;
- Specified by:
getParagraphs
in 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Paragraph paragraphs = 3;
- Specified by:
getParagraphsOrBuilder
in interfaceBlockOrBuilder
-
getParagraphsOrBuilderList
public 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;
- Specified by:
getParagraphsOrBuilderList
in interfaceBlockOrBuilder
-
addParagraphsBuilder
public Paragraph.Builder addParagraphsBuilder()
List of paragraphs in this block (if this blocks is of type text).
repeated .google.cloud.vision.v1.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.v1.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.v1.Paragraph paragraphs = 3;
-
getBlockTypeValue
public int getBlockTypeValue()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;
- Specified by:
getBlockTypeValue
in 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.v1.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.v1.Block.BlockType block_type = 4;
- Specified by:
getBlockType
in interfaceBlockOrBuilder
- Returns:
- The blockType.
-
setBlockType
public Block.Builder setBlockType(Block.BlockType value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.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.v1.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:
getConfidence
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
mergeUnknownFields
public final Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Block.Builder>
-
-