Class Document.ChunkedDocument.Builder (2.57.0)

public static final class Document.ChunkedDocument.Builder extends GeneratedMessageV3.Builder<Document.ChunkedDocument.Builder> implements Document.ChunkedDocumentOrBuilder

Represents the chunks that the document is divided into.

Protobuf type google.cloud.documentai.v1.Document.ChunkedDocument

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameter
Name Description
value Document.ChunkedDocument.Chunk
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameter
Name Description
builderForValue Document.ChunkedDocument.Chunk.Builder
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameters
Name Description
index int
value Document.ChunkedDocument.Chunk
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameters
Name Description
index int
builderForValue Document.ChunkedDocument.Chunk.Builder
Returns
Type Description
Document.ChunkedDocument.Builder

addChunksBuilder()

public Document.ChunkedDocument.Chunk.Builder addChunksBuilder()

List of chunks.

repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

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
Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.ChunkedDocument.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

build()

public Document.ChunkedDocument build()
Returns
Type Description
Document.ChunkedDocument

buildPartial()

public Document.ChunkedDocument buildPartial()
Returns
Type Description
Document.ChunkedDocument

clear()

public Document.ChunkedDocument.Builder clear()
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

clearChunks()

public Document.ChunkedDocument.Builder clearChunks()

List of chunks.

repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;

Returns
Type Description
Document.ChunkedDocument.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.ChunkedDocument.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.ChunkedDocument.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

clone()

public Document.ChunkedDocument.Builder clone()
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

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
Returns
Type Description
Document.ChunkedDocument.Chunk

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
Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

getChunksBuilderList()

public List<Document.ChunkedDocument.Chunk.Builder> getChunksBuilderList()

List of chunks.

repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<Chunk>

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
Returns
Type Description
Document.ChunkedDocument.ChunkOrBuilder

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()
Returns
Type Description
Document.ChunkedDocument

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.ChunkedDocument other)

public Document.ChunkedDocument.Builder mergeFrom(Document.ChunkedDocument other)
Parameter
Name Description
other Document.ChunkedDocument
Returns
Type Description
Document.ChunkedDocument.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.ChunkedDocument.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.ChunkedDocument.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.ChunkedDocument.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.ChunkedDocument.Builder
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
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameters
Name Description
index int
value Document.ChunkedDocument.Chunk
Returns
Type Description
Document.ChunkedDocument.Builder

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;

Parameters
Name Description
index int
builderForValue Document.ChunkedDocument.Chunk.Builder
Returns
Type Description
Document.ChunkedDocument.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.ChunkedDocument.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.ChunkedDocument.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.ChunkedDocument.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.ChunkedDocument.Builder
Overrides