- 3.46.0 (latest)
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
public static final class Block.Builder extends GeneratedMessageV3.Builder<Block.Builder> implements BlockOrBuilder
Logical element on the page.
Protobuf type google.cloud.vision.v1.Block
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Block.BuilderImplements
BlockOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllParagraphs(Iterable<? extends Paragraph> values)
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;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1.Paragraph> |
Type | Description |
Block.Builder |
addParagraphs(Paragraph value)
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;
Name | Description |
value | Paragraph |
Type | Description |
Block.Builder |
addParagraphs(Paragraph.Builder builderForValue)
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;
Name | Description |
builderForValue | Paragraph.Builder |
Type | Description |
Block.Builder |
addParagraphs(int index, Paragraph value)
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;
Name | Description |
index | int |
value | Paragraph |
Type | Description |
Block.Builder |
addParagraphs(int index, Paragraph.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | Paragraph.Builder |
Type | Description |
Block.Builder |
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;
Type | Description |
Paragraph.Builder |
addParagraphsBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
Paragraph.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Block.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Block.Builder |
build()
public Block build()
Type | Description |
Block |
buildPartial()
public Block buildPartial()
Type | Description |
Block |
clear()
public Block.Builder clear()
Type | Description |
Block.Builder |
clearBlockType()
public Block.Builder clearBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;
Type | Description |
Block.Builder | This builder for chaining. |
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;
Type | Description |
Block.Builder |
clearConfidence()
public Block.Builder clearConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;
Type | Description |
Block.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Block.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Block.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Block.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Block.Builder |
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;
Type | Description |
Block.Builder |
clearProperty()
public Block.Builder clearProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Type | Description |
Block.Builder |
clone()
public Block.Builder clone()
Type | Description |
Block.Builder |
getBlockType()
public Block.BlockType getBlockType()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;
Type | Description |
Block.BlockType | The blockType. |
getBlockTypeValue()
public int getBlockTypeValue()
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;
Type | Description |
int | The enum numeric value on the wire for blockType. |
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;
Type | Description |
BoundingPoly | The boundingBox. |
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;
Type | Description |
BoundingPoly.Builder |
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;
Type | Description |
BoundingPolyOrBuilder |
getConfidence()
public float getConfidence()
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;
Type | Description |
float | The confidence. |
getDefaultInstanceForType()
public Block getDefaultInstanceForType()
Type | Description |
Block |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getParagraphs(int index)
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;
Name | Description |
index | int |
Type | Description |
Paragraph |
getParagraphsBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
Paragraph.Builder |
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;
Type | Description |
List<Builder> |
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;
Type | Description |
int |
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;
Type | Description |
List<Paragraph> |
getParagraphsOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
ParagraphOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.vision.v1.ParagraphOrBuilder> |
getProperty()
public TextAnnotation.TextProperty getProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Type | Description |
TextAnnotation.TextProperty | The property. |
getPropertyBuilder()
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Type | Description |
TextAnnotation.TextProperty.Builder |
getPropertyOrBuilder()
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Type | Description |
TextAnnotation.TextPropertyOrBuilder |
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;
Type | Description |
boolean | Whether the boundingBox field is set. |
hasProperty()
public boolean hasProperty()
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Type | Description |
boolean | Whether the property field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBoundingBox(BoundingPoly value)
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;
Name | Description |
value | BoundingPoly |
Type | Description |
Block.Builder |
mergeFrom(Block other)
public Block.Builder mergeFrom(Block other)
Name | Description |
other | Block |
Type | Description |
Block.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Block.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Block.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Block.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Block.Builder |
mergeProperty(TextAnnotation.TextProperty value)
public Block.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Name | Description |
value | TextAnnotation.TextProperty |
Type | Description |
Block.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Block.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Block.Builder |
removeParagraphs(int index)
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;
Name | Description |
index | int |
Type | Description |
Block.Builder |
setBlockType(Block.BlockType value)
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;
Name | Description |
value | Block.BlockType The blockType to set. |
Type | Description |
Block.Builder | This builder for chaining. |
setBlockTypeValue(int value)
public Block.Builder setBlockTypeValue(int value)
Detected block type (text, image etc) for this block.
.google.cloud.vision.v1.Block.BlockType block_type = 4;
Name | Description |
value | int The enum numeric value on the wire for blockType to set. |
Type | Description |
Block.Builder | This builder for chaining. |
setBoundingBox(BoundingPoly value)
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;
Name | Description |
value | BoundingPoly |
Type | Description |
Block.Builder |
setBoundingBox(BoundingPoly.Builder builderForValue)
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;
Name | Description |
builderForValue | BoundingPoly.Builder |
Type | Description |
Block.Builder |
setConfidence(float value)
public Block.Builder setConfidence(float value)
Confidence of the OCR results on the block. Range [0, 1].
float confidence = 5;
Name | Description |
value | float The confidence to set. |
Type | Description |
Block.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Block.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Block.Builder |
setParagraphs(int index, Paragraph value)
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;
Name | Description |
index | int |
value | Paragraph |
Type | Description |
Block.Builder |
setParagraphs(int index, Paragraph.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | Paragraph.Builder |
Type | Description |
Block.Builder |
setProperty(TextAnnotation.TextProperty value)
public Block.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Name | Description |
value | TextAnnotation.TextProperty |
Type | Description |
Block.Builder |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
public Block.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the block.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
Name | Description |
builderForValue | TextAnnotation.TextProperty.Builder |
Type | Description |
Block.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Block.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Block.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Block.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Block.Builder |