Send feedback
Class Document.ChunkedDocument.Chunk (2.59.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.59.0 keyboard_arrow_down
public static final class Document . ChunkedDocument . Chunk extends GeneratedMessageV3 implements Document . ChunkedDocument . ChunkOrBuilder
Represents a chunk.
Protobuf type google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk
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
CHUNK_ID_FIELD_NUMBER
public static final int CHUNK_ID_FIELD_NUMBER
Field Value
Type
Description
int
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int PAGE_FOOTERS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int PAGE_HEADERS_FIELD_NUMBER
Field Value
Type
Description
int
PAGE_SPAN_FIELD_NUMBER
public static final int PAGE_SPAN_FIELD_NUMBER
Field Value
Type
Description
int
SOURCE_BLOCK_IDS_FIELD_NUMBER
public static final int SOURCE_BLOCK_IDS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Document . ChunkedDocument . Chunk getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Document . ChunkedDocument . Chunk . Builder newBuilder ()
newBuilder(Document.ChunkedDocument.Chunk prototype)
public static Document . ChunkedDocument . Chunk . Builder newBuilder ( Document . ChunkedDocument . Chunk prototype )
public static Document . ChunkedDocument . Chunk parseDelimitedFrom ( InputStream input )
public static Document . ChunkedDocument . Chunk parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Document . ChunkedDocument . Chunk parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document . ChunkedDocument . Chunk parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Document . ChunkedDocument . Chunk parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document . ChunkedDocument . Chunk parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Document . ChunkedDocument . Chunk parseFrom ( CodedInputStream input )
public static Document . ChunkedDocument . Chunk parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Document . ChunkedDocument . Chunk parseFrom ( InputStream input )
public static Document . ChunkedDocument . Chunk parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Document . ChunkedDocument . Chunk parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document . ChunkedDocument . Chunk parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Document . ChunkedDocument . Chunk > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getChunkId()
public String getChunkId ()
ID of the chunk.
string chunk_id = 1;
Returns
Type
Description
String
The chunkId.
getChunkIdBytes()
public ByteString getChunkIdBytes ()
ID of the chunk.
string chunk_id = 1;
Returns
Type
Description
ByteString
The bytes for chunkId.
getContent()
public String getContent ()
Text content of the chunk.
string content = 3;
Returns
Type
Description
String
The content.
getContentBytes()
public ByteString getContentBytes ()
Text content of the chunk.
string content = 3;
Returns
Type
Description
ByteString
The bytes for content.
getDefaultInstanceForType()
public Document . ChunkedDocument . Chunk getDefaultInstanceForType ()
public Document . ChunkedDocument . Chunk . ChunkPageFooter getPageFooters ( int index )
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
Parameter
Name
Description
index
int
public int getPageFootersCount ()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
Returns
Type
Description
int
public List<Document . ChunkedDocument . Chunk . ChunkPageFooter > getPageFootersList ()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
public Document . ChunkedDocument . Chunk . ChunkPageFooterOrBuilder getPageFootersOrBuilder ( int index )
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
Parameter
Name
Description
index
int
public List <? extends Document . ChunkedDocument . Chunk . ChunkPageFooterOrBuilder > getPageFootersOrBuilderList ()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
Returns
Type
Description
List <? extends com.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder >
public Document . ChunkedDocument . Chunk . ChunkPageHeader getPageHeaders ( int index )
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
Parameter
Name
Description
index
int
public int getPageHeadersCount ()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
Returns
Type
Description
int
public List<Document . ChunkedDocument . Chunk . ChunkPageHeader > getPageHeadersList ()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
public Document . ChunkedDocument . Chunk . ChunkPageHeaderOrBuilder getPageHeadersOrBuilder ( int index )
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
Parameter
Name
Description
index
int
public List <? extends Document . ChunkedDocument . Chunk . ChunkPageHeaderOrBuilder > getPageHeadersOrBuilderList ()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
Returns
Type
Description
List <? extends com.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder >
getPageSpan()
public Document . ChunkedDocument . Chunk . ChunkPageSpan getPageSpan ()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
getPageSpanOrBuilder()
public Document . ChunkedDocument . Chunk . ChunkPageSpanOrBuilder getPageSpanOrBuilder ()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
getParserForType()
public Parser<Document . ChunkedDocument . Chunk > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSourceBlockIds(int index)
public String getSourceBlockIds ( int index )
Unused.
repeated string source_block_ids = 2;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The sourceBlockIds at the given index.
getSourceBlockIdsBytes(int index)
public ByteString getSourceBlockIdsBytes ( int index )
Unused.
repeated string source_block_ids = 2;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the sourceBlockIds at the given index.
getSourceBlockIdsCount()
public int getSourceBlockIdsCount ()
Unused.
repeated string source_block_ids = 2;
Returns
Type
Description
int
The count of sourceBlockIds.
getSourceBlockIdsList()
public ProtocolStringList getSourceBlockIdsList ()
Unused.
repeated string source_block_ids = 2;
hasPageSpan()
public boolean hasPageSpan ()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
Returns
Type
Description
boolean
Whether the pageSpan field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Document . ChunkedDocument . Chunk . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document . ChunkedDocument . Chunk . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Document . ChunkedDocument . Chunk . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]