Package com.google.cloud.documentai.v1
Class Document.DocumentLayout.DocumentLayoutBlock
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock
- All Implemented Interfaces:
Document.DocumentLayout.DocumentLayoutBlockOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Document.DocumentLayout
public static final class Document.DocumentLayout.DocumentLayoutBlock
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classRepresents a block.static final classRepresents an image type block.static interfacestatic final classRepresents a list type block.static interfacestatic final classRepresents an entry in the list.static interfacestatic final classRepresents where the block starts and ends in the document.static interfacestatic final classRepresents a table type block.static interfacestatic final classRepresents a cell in a table row.static interfacestatic final classRepresents a row in a table.static interfacestatic final classRepresents a text type block.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanID of the block.com.google.protobuf.ByteStringID of the block.Identifies the bounding box for the block.Identifies the bounding box for the block.static final com.google.protobuf.Descriptors.DescriptorBlock 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.com.google.protobuf.Parser<Document.DocumentLayout.DocumentLayoutBlock>intBlock consisting of table content/structure.Block consisting of table content/structure.Block consisting of text content.Block consisting of text content.booleanIdentifies the bounding box for the block.inthashCode()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 booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Document.DocumentLayout.DocumentLayoutBlock>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TEXT_BLOCK_FIELD_NUMBER
public static final int TEXT_BLOCK_FIELD_NUMBER- See Also:
-
TABLE_BLOCK_FIELD_NUMBER
public static final int TABLE_BLOCK_FIELD_NUMBER- See Also:
-
LIST_BLOCK_FIELD_NUMBER
public static final int LIST_BLOCK_FIELD_NUMBER- See Also:
-
IMAGE_BLOCK_FIELD_NUMBER
public static final int IMAGE_BLOCK_FIELD_NUMBER- See Also:
-
BLOCK_ID_FIELD_NUMBER
public static final int BLOCK_ID_FIELD_NUMBER- See Also:
-
PAGE_SPAN_FIELD_NUMBER
public static final int PAGE_SPAN_FIELD_NUMBER- See Also:
-
BOUNDING_BOX_FIELD_NUMBER
public static final int BOUNDING_BOX_FIELD_NUMBER- See Also:
-
-
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
-
getBlockCase
- Specified by:
getBlockCasein interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getBoundingBoxOrBuilder
Identifies the bounding box for the block.
.google.cloud.documentai.v1.BoundingPoly bounding_box = 6;- Specified by:
getBoundingBoxOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlockOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Document.DocumentLayout.DocumentLayoutBlock parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilder(Document.DocumentLayout.DocumentLayoutBlock prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.DocumentLayout.DocumentLayoutBlock.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-