Package com.google.cloud.documentai.v1
Class Document.ChunkedDocument.Chunk
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk
- All Implemented Interfaces:
Document.ChunkedDocument.ChunkOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Document.ChunkedDocument
public static final class Document.ChunkedDocument.Chunk
extends com.google.protobuf.GeneratedMessage
implements Document.ChunkedDocument.ChunkOrBuilder
Represents a chunk.Protobuf type
google.cloud.documentai.v1.Document.ChunkedDocument.Chunk- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a chunk.static final classThe chunk field in the chunk.static interfacestatic final classRepresents the page footer associated with the chunk.static interfacestatic final classRepresents the page header associated with the chunk.static interfacestatic final classRepresents where the chunk starts and ends in the document.static interfacestatic final classThe image chunk field in the chunk.static interfacestatic final classThe table chunk field in the chunk.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 TypeMethodDescriptionbooleangetChunkFields(int index) Chunk fields inside this chunk.intChunk fields inside this chunk.Chunk fields inside this chunk.getChunkFieldsOrBuilder(int index) Chunk fields inside this chunk.Chunk fields inside this chunk.ID of the chunk.com.google.protobuf.ByteStringID of the chunk.Text content of the chunk.com.google.protobuf.ByteStringText content of the chunk.static final com.google.protobuf.Descriptors.DescriptorgetPageFooters(int index) Page footers associated with the chunk.intPage footers associated with the chunk.Page footers associated with the chunk.getPageFootersOrBuilder(int index) Page footers associated with the chunk.Page footers associated with the chunk.getPageHeaders(int index) Page headers associated with the chunk.intPage headers associated with the chunk.Page headers associated with the chunk.getPageHeadersOrBuilder(int index) Page headers associated with the chunk.Page headers associated with the chunk.Page span of the chunk.Page span of the chunk.com.google.protobuf.Parser<Document.ChunkedDocument.Chunk>intgetSourceBlockIds(int index) Unused.com.google.protobuf.ByteStringgetSourceBlockIdsBytes(int index) Unused.intUnused.com.google.protobuf.ProtocolStringListUnused.inthashCode()booleanPage span of the chunk.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Document.ChunkedDocument.Chunk prototype) protected Document.ChunkedDocument.Chunk.BuildernewBuilderForType(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.ChunkedDocument.Chunk>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
-
CHUNK_ID_FIELD_NUMBER
public static final int CHUNK_ID_FIELD_NUMBER- See Also:
-
SOURCE_BLOCK_IDS_FIELD_NUMBER
public static final int SOURCE_BLOCK_IDS_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
PAGE_SPAN_FIELD_NUMBER
public static final int PAGE_SPAN_FIELD_NUMBER- See Also:
-
PAGE_HEADERS_FIELD_NUMBER
public static final int PAGE_HEADERS_FIELD_NUMBER- See Also:
-
PAGE_FOOTERS_FIELD_NUMBER
public static final int PAGE_FOOTERS_FIELD_NUMBER- See Also:
-
CHUNK_FIELDS_FIELD_NUMBER
public static final int CHUNK_FIELDS_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
-
getChunkId
ID of the chunk.
string chunk_id = 1;- Specified by:
getChunkIdin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The chunkId.
-
getChunkIdBytes
public com.google.protobuf.ByteString getChunkIdBytes()ID of the chunk.
string chunk_id = 1;- Specified by:
getChunkIdBytesin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The bytes for chunkId.
-
getSourceBlockIdsList
public com.google.protobuf.ProtocolStringList getSourceBlockIdsList()Unused.
repeated string source_block_ids = 2;- Specified by:
getSourceBlockIdsListin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- A list containing the sourceBlockIds.
-
getSourceBlockIdsCount
public int getSourceBlockIdsCount()Unused.
repeated string source_block_ids = 2;- Specified by:
getSourceBlockIdsCountin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The count of sourceBlockIds.
-
getSourceBlockIds
Unused.
repeated string source_block_ids = 2;- Specified by:
getSourceBlockIdsin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceBlockIds at the given index.
-
getSourceBlockIdsBytes
public com.google.protobuf.ByteString getSourceBlockIdsBytes(int index) Unused.
repeated string source_block_ids = 2;- Specified by:
getSourceBlockIdsBytesin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceBlockIds at the given index.
-
getContent
Text content of the chunk.
string content = 3;- Specified by:
getContentin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()Text content of the chunk.
string content = 3;- Specified by:
getContentBytesin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The bytes for content.
-
hasPageSpan
public boolean hasPageSpan()Page span of the chunk.
.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;- Specified by:
hasPageSpanin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- Whether the pageSpan field is set.
-
getPageSpan
Page span of the chunk.
.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;- Specified by:
getPageSpanin interfaceDocument.ChunkedDocument.ChunkOrBuilder- Returns:
- The pageSpan.
-
getPageSpanOrBuilder
Page span of the chunk.
.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;- Specified by:
getPageSpanOrBuilderin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getPageHeadersList
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;- Specified by:
getPageHeadersListin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getPageHeadersOrBuilderList
public List<? extends Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder> getPageHeadersOrBuilderList()Page headers associated with the chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;- Specified by:
getPageHeadersOrBuilderListin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getPageHeadersCount
public int getPageHeadersCount()Page headers associated with the chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;- Specified by:
getPageHeadersCountin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getPageHeaders
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;- Specified by:
getPageHeadersin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getPageHeadersOrBuilder
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;- Specified by:
getPageHeadersOrBuilderin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getChunkFieldsList
Chunk fields inside this chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7;- Specified by:
getChunkFieldsListin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getChunkFieldsOrBuilderList
public List<? extends Document.ChunkedDocument.Chunk.ChunkFieldOrBuilder> getChunkFieldsOrBuilderList()Chunk fields inside this chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7;- Specified by:
getChunkFieldsOrBuilderListin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getChunkFieldsCount
public int getChunkFieldsCount()Chunk fields inside this chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7;- Specified by:
getChunkFieldsCountin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getChunkFields
Chunk fields inside this chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7;- Specified by:
getChunkFieldsin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
getChunkFieldsOrBuilder
Chunk fields inside this chunk.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkField chunk_fields = 7;- Specified by:
getChunkFieldsOrBuilderin interfaceDocument.ChunkedDocument.ChunkOrBuilder
-
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.ChunkedDocument.Chunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.ChunkedDocument.Chunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.ChunkedDocument.Chunk 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.ChunkedDocument.Chunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.ChunkedDocument.Chunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Document.ChunkedDocument.Chunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Document.ChunkedDocument.Chunk parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Document.ChunkedDocument.Chunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Document.ChunkedDocument.Chunk 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.ChunkedDocument.Chunk.Builder newBuilder(Document.ChunkedDocument.Chunk prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.ChunkedDocument.Chunk.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
-