Package com.google.cloud.documentai.v1
Class Document.DocumentLayout.DocumentLayoutBlock.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.Builder
- All Implemented Interfaces:
Document.DocumentLayout.DocumentLayoutBlockOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.DocumentLayout.DocumentLayoutBlock
public static final class Document.DocumentLayout.DocumentLayoutBlock.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
implements Document.DocumentLayout.DocumentLayoutBlockOrBuilder
Represents a block. A block could be one of the various types (text, table, list) supported.Protobuf type
google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()ID of the block.Identifies the bounding box for the block.Block consisting of image content.Block consisting of list content/structure.Page span of the block.Block consisting of table content/structure.Block consisting of text content.ID of the block.com.google.protobuf.ByteStringID of the block.Identifies the bounding box for the block.Identifies the bounding box for the block.Identifies the bounding box for the block.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorBlock consisting of image content.Block consisting of image content.Block consisting of image content.Block consisting of list content/structure.Block consisting of list content/structure.Block consisting of list content/structure.Page span of the block.Page span of the block.Page span of the block.Block consisting of table content/structure.Block consisting of table content/structure.Block consisting of table content/structure.Block consisting of text content.Block consisting of text content.Block consisting of text content.booleanIdentifies the bounding box for the block.booleanBlock consisting of image content.booleanBlock consisting of list content/structure.booleanPage span of the block.booleanBlock consisting of table content/structure.booleanBlock consisting of text content.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingBox(BoundingPoly value) Identifies the bounding box for the block.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Block consisting of image content.Block consisting of list content/structure.Page span of the block.Block consisting of table content/structure.Block consisting of text content.setBlockId(String value) ID of the block.setBlockIdBytes(com.google.protobuf.ByteString value) ID of the block.setBoundingBox(BoundingPoly value) Identifies the bounding box for the block.setBoundingBox(BoundingPoly.Builder builderForValue) Identifies the bounding box for the block.Block consisting of image content.Block consisting of image content.Block consisting of list content/structure.Block consisting of list content/structure.Page span of the block.Page span of the block.Block consisting of table content/structure.Block consisting of table content/structure.Block consisting of text content.Block consisting of text content.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.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.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
-
mergeFrom
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeFrom(Document.DocumentLayout.DocumentLayoutBlock other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.Builder>
-
mergeFrom
public Document.DocumentLayout.DocumentLayoutBlock.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<Document.DocumentLayout.DocumentLayoutBlock.Builder>- Throws:
IOException
-
getBlockCase
- Specified by:
getBlockCasein interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
clearBlock
-
hasTextBlock
public boolean hasTextBlock()Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;- Specified by:
hasTextBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the textBlock field is set.
-
getTextBlock
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;- Specified by:
getTextBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The textBlock.
-
setTextBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setTextBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock value) Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; -
setTextBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setTextBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder builderForValue) Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; -
mergeTextBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeTextBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock value) Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; -
clearTextBlock
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; -
getTextBlockBuilder
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; -
getTextBlockOrBuilder
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;- Specified by:
getTextBlockOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
hasTableBlock
public boolean hasTableBlock()Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;- Specified by:
hasTableBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the tableBlock field is set.
-
getTableBlock
Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;- Specified by:
getTableBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The tableBlock.
-
setTableBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setTableBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock value) Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; -
setTableBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setTableBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock.Builder builderForValue) Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; -
mergeTableBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeTableBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock value) Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; -
clearTableBlock
Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; -
getTableBlockBuilder
Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; -
getTableBlockOrBuilder
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockOrBuilder getTableBlockOrBuilder()Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;- Specified by:
getTableBlockOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
hasListBlock
public boolean hasListBlock()Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;- Specified by:
hasListBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the listBlock field is set.
-
getListBlock
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;- Specified by:
getListBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The listBlock.
-
setListBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setListBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock value) Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; -
setListBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setListBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock.Builder builderForValue) Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; -
mergeListBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeListBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock value) Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; -
clearListBlock
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; -
getListBlockBuilder
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; -
getListBlockOrBuilder
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;- Specified by:
getListBlockOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
hasImageBlock
public boolean hasImageBlock()Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;- Specified by:
hasImageBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the imageBlock field is set.
-
getImageBlock
Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;- Specified by:
getImageBlockin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The imageBlock.
-
setImageBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setImageBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock value) Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; -
setImageBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder setImageBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock.Builder builderForValue) Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; -
mergeImageBlock
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergeImageBlock(Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock value) Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; -
clearImageBlock
Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; -
getImageBlockBuilder
Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7; -
getImageBlockOrBuilder
public Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockOrBuilder getImageBlockOrBuilder()Block consisting of image content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;- Specified by:
getImageBlockOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
getBlockId
ID of the block.
string block_id = 1;- Specified by:
getBlockIdin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The blockId.
-
getBlockIdBytes
public com.google.protobuf.ByteString getBlockIdBytes()ID of the block.
string block_id = 1;- Specified by:
getBlockIdBytesin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The bytes for blockId.
-
setBlockId
ID of the block.
string block_id = 1;- Parameters:
value- The blockId to set.- Returns:
- This builder for chaining.
-
clearBlockId
ID of the block.
string block_id = 1;- Returns:
- This builder for chaining.
-
setBlockIdBytes
public Document.DocumentLayout.DocumentLayoutBlock.Builder setBlockIdBytes(com.google.protobuf.ByteString value) ID of the block.
string block_id = 1;- Parameters:
value- The bytes for blockId to set.- Returns:
- This builder for chaining.
-
hasPageSpan
public boolean hasPageSpan()Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;- Specified by:
hasPageSpanin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the pageSpan field is set.
-
getPageSpan
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;- Specified by:
getPageSpanin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The pageSpan.
-
setPageSpan
public Document.DocumentLayout.DocumentLayoutBlock.Builder setPageSpan(Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan value) Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; -
setPageSpan
public Document.DocumentLayout.DocumentLayoutBlock.Builder setPageSpan(Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan.Builder builderForValue) Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; -
mergePageSpan
public Document.DocumentLayout.DocumentLayoutBlock.Builder mergePageSpan(Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan value) Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; -
clearPageSpan
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; -
getPageSpanBuilder
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; -
getPageSpanOrBuilder
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;- Specified by:
getPageSpanOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
hasBoundingBox
public boolean hasBoundingBox()Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6;- Specified by:
hasBoundingBoxin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6;- Specified by:
getBoundingBoxin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder- Returns:
- The boundingBox.
-
setBoundingBox
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6; -
setBoundingBox
public Document.DocumentLayout.DocumentLayoutBlock.Builder setBoundingBox(BoundingPoly.Builder builderForValue) Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6; -
mergeBoundingBox
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6; -
clearBoundingBox
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6; -
getBoundingBoxBuilder
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6; -
getBoundingBoxOrBuilder
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6;- Specified by:
getBoundingBoxOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-