Class Document.ChunkedDocument.Builder (2.99.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class Document.ChunkedDocument.Builder extends GeneratedMessage.Builder<Document.ChunkedDocument.Builder> implements Document.ChunkedDocumentOrBuilder
Represents the chunks that the document is divided into.
Protobuf type google.cloud.documentai.v1.Document.ChunkedDocument
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllChunks(Iterable<? extends Document.ChunkedDocument.Chunk> values)
public Document.ChunkedDocument.Builder addAllChunks(Iterable<? extends Document.ChunkedDocument.Chunk> values)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk>
|
addChunks(Document.ChunkedDocument.Chunk value)
public Document.ChunkedDocument.Builder addChunks(Document.ChunkedDocument.Chunk value)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
addChunks(Document.ChunkedDocument.Chunk.Builder builderForValue)
public Document.ChunkedDocument.Builder addChunks(Document.ChunkedDocument.Chunk.Builder builderForValue)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
addChunks(int index, Document.ChunkedDocument.Chunk value)
public Document.ChunkedDocument.Builder addChunks(int index, Document.ChunkedDocument.Chunk value)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
addChunks(int index, Document.ChunkedDocument.Chunk.Builder builderForValue)
public Document.ChunkedDocument.Builder addChunks(int index, Document.ChunkedDocument.Chunk.Builder builderForValue)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
addChunksBuilder()
public Document.ChunkedDocument.Chunk.Builder addChunksBuilder()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
addChunksBuilder(int index)
public Document.ChunkedDocument.Chunk.Builder addChunksBuilder(int index)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public Document.ChunkedDocument build()
buildPartial()
public Document.ChunkedDocument buildPartial()
clear()
public Document.ChunkedDocument.Builder clear()
Overrides
clearChunks()
public Document.ChunkedDocument.Builder clearChunks()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
getChunks(int index)
public Document.ChunkedDocument.Chunk getChunks(int index)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getChunksBuilder(int index)
public Document.ChunkedDocument.Chunk.Builder getChunksBuilder(int index)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getChunksBuilderList()
public List<Document.ChunkedDocument.Chunk.Builder> getChunksBuilderList()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
getChunksCount()
public int getChunksCount()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Returns |
| Type |
Description |
int |
|
getChunksList()
public List<Document.ChunkedDocument.Chunk> getChunksList()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
getChunksOrBuilder(int index)
public Document.ChunkedDocument.ChunkOrBuilder getChunksOrBuilder(int index)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getChunksOrBuilderList()
public List<? extends Document.ChunkedDocument.ChunkOrBuilder> getChunksOrBuilderList()
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.documentai.v1.Document.ChunkedDocument.ChunkOrBuilder> |
|
getDefaultInstanceForType()
public Document.ChunkedDocument getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Document.ChunkedDocument other)
public Document.ChunkedDocument.Builder mergeFrom(Document.ChunkedDocument other)
public Document.ChunkedDocument.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Document.ChunkedDocument.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeChunks(int index)
public Document.ChunkedDocument.Builder removeChunks(int index)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
setChunks(int index, Document.ChunkedDocument.Chunk value)
public Document.ChunkedDocument.Builder setChunks(int index, Document.ChunkedDocument.Chunk value)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
setChunks(int index, Document.ChunkedDocument.Chunk.Builder builderForValue)
public Document.ChunkedDocument.Builder setChunks(int index, Document.ChunkedDocument.Chunk.Builder builderForValue)
List of chunks.
repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;
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 2026-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]