public static final class Document.DocumentLayout.DocumentLayoutBlock extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BLOCK_ID_FIELD_NUMBER
public static final int BLOCK_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LIST_BLOCK_FIELD_NUMBER
public static final int LIST_BLOCK_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PAGE_SPAN_FIELD_NUMBER
public static final int PAGE_SPAN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TABLE_BLOCK_FIELD_NUMBER
public static final int TABLE_BLOCK_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TEXT_BLOCK_FIELD_NUMBER
public static final int TEXT_BLOCK_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Document.DocumentLayout.DocumentLayoutBlock getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilder()
newBuilder(Document.DocumentLayout.DocumentLayoutBlock prototype)
public static Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilder(Document.DocumentLayout.DocumentLayoutBlock prototype)
public static Document.DocumentLayout.DocumentLayoutBlock parseDelimitedFrom(InputStream input)
public static Document.DocumentLayout.DocumentLayoutBlock parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(CodedInputStream input)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(InputStream input)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Document.DocumentLayout.DocumentLayoutBlock> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBlockCase()
public Document.DocumentLayout.DocumentLayoutBlock.BlockCase getBlockCase()
getBlockId()
public String getBlockId()
ID of the block.
string block_id = 1;
Returns |
Type |
Description |
String |
The blockId.
|
getBlockIdBytes()
public ByteString getBlockIdBytes()
ID of the block.
string block_id = 1;
Returns |
Type |
Description |
ByteString |
The bytes for blockId.
|
getDefaultInstanceForType()
public Document.DocumentLayout.DocumentLayoutBlock getDefaultInstanceForType()
getListBlock()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock getListBlock()
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
getListBlockOrBuilder()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockOrBuilder getListBlockOrBuilder()
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
getPageSpan()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan getPageSpan()
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
getPageSpanOrBuilder()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpanOrBuilder getPageSpanOrBuilder()
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
getParserForType()
public Parser<Document.DocumentLayout.DocumentLayoutBlock> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTableBlock()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock getTableBlock()
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;
getTextBlock()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock getTextBlock()
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
getTextBlockOrBuilder()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder getTextBlockOrBuilder()
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
hasListBlock()
public boolean hasListBlock()
Block consisting of list content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
Returns |
Type |
Description |
boolean |
Whether the listBlock field is set.
|
hasPageSpan()
public boolean hasPageSpan()
Page span of the block.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
Returns |
Type |
Description |
boolean |
Whether the pageSpan field is set.
|
hasTableBlock()
public boolean hasTableBlock()
Block consisting of table content/structure.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;
Returns |
Type |
Description |
boolean |
Whether the tableBlock field is set.
|
hasTextBlock()
public boolean hasTextBlock()
Block consisting of text content.
.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
Returns |
Type |
Description |
boolean |
Whether the textBlock field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Document.DocumentLayout.DocumentLayoutBlock.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides