Class Document.ChunkedDocument.Chunk.Builder (2.46.0)

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

Represents a chunk.

Protobuf type google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk

Static Methods

getDescriptor()

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

Methods

addAllPageFooters(Iterable<? extends Document.ChunkedDocument.Chunk.ChunkPageFooter> values)

public Document.ChunkedDocument.Chunk.Builder addAllPageFooters(Iterable<? extends Document.ChunkedDocument.Chunk.ChunkPageFooter> values)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter>
Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

addAllPageHeaders(Iterable<? extends Document.ChunkedDocument.Chunk.ChunkPageHeader> values)

public Document.ChunkedDocument.Chunk.Builder addAllPageHeaders(Iterable<? extends Document.ChunkedDocument.Chunk.ChunkPageHeader> values)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader>
Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

addAllSourceBlockIds(Iterable<String> values)

public Document.ChunkedDocument.Chunk.Builder addAllSourceBlockIds(Iterable<String> values)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Parameter
Name Description
values Iterable<String>

The sourceBlockIds to add.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

addPageFooters(Document.ChunkedDocument.Chunk.ChunkPageFooter value)

public Document.ChunkedDocument.Chunk.Builder addPageFooters(Document.ChunkedDocument.Chunk.ChunkPageFooter value)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

addPageFooters(Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder addPageFooters(Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

addPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter value)

public Document.ChunkedDocument.Chunk.Builder addPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter value)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

addPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder addPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

addPageFootersBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder addPageFootersBuilder()

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder

addPageFootersBuilder(int index)

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

addPageHeaders(Document.ChunkedDocument.Chunk.ChunkPageHeader value)

public Document.ChunkedDocument.Chunk.Builder addPageHeaders(Document.ChunkedDocument.Chunk.ChunkPageHeader value)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

addPageHeaders(Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder addPageHeaders(Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

addPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader value)

public Document.ChunkedDocument.Chunk.Builder addPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader value)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

addPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder addPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

addPageHeadersBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder addPageHeadersBuilder()

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder

addPageHeadersBuilder(int index)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSourceBlockIds(String value)

public Document.ChunkedDocument.Chunk.Builder addSourceBlockIds(String value)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Parameter
Name Description
value String

The sourceBlockIds to add.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

addSourceBlockIdsBytes(ByteString value)

public Document.ChunkedDocument.Chunk.Builder addSourceBlockIdsBytes(ByteString value)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the sourceBlockIds to add.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearChunkId()

public Document.ChunkedDocument.Chunk.Builder clearChunkId()

ID of the chunk.

string chunk_id = 1;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

clearContent()

public Document.ChunkedDocument.Chunk.Builder clearContent()

Text content of the chunk.

string content = 3;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageFooters()

public Document.ChunkedDocument.Chunk.Builder clearPageFooters()

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

clearPageHeaders()

public Document.ChunkedDocument.Chunk.Builder clearPageHeaders()

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

clearPageSpan()

public Document.ChunkedDocument.Chunk.Builder clearPageSpan()

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

clearSourceBlockIds()

public Document.ChunkedDocument.Chunk.Builder clearSourceBlockIds()

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

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

getPageFooters(int index)

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

getPageFootersBuilder(int index)

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

getPageFootersBuilderList()

public List<Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder> getPageFootersBuilderList()

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

Returns
Type Description
List<Builder>

getPageFootersCount()

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

getPageFootersList()

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;

Returns
Type Description
List<ChunkPageFooter>

getPageFootersOrBuilder(int index)

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

getPageFootersOrBuilderList()

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>

getPageHeaders(int index)

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

getPageHeadersBuilder(int index)

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

getPageHeadersBuilderList()

public List<Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder> getPageHeadersBuilderList()

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

Returns
Type Description
List<Builder>

getPageHeadersCount()

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

getPageHeadersList()

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;

Returns
Type Description
List<ChunkPageHeader>

getPageHeadersOrBuilder(int index)

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

getPageHeadersOrBuilderList()

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;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageSpan

The pageSpan.

getPageSpanBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageSpan.Builder getPageSpanBuilder()

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageSpan.Builder

getPageSpanOrBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder getPageSpanOrBuilder()

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder

getSourceBlockIds(int index)

public String getSourceBlockIds(int index)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

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)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

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()

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Returns
Type Description
int

The count of sourceBlockIds.

getSourceBlockIdsList()

public ProtocolStringList getSourceBlockIdsList()

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the sourceBlockIds.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.ChunkedDocument.Chunk other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan value)

public Document.ChunkedDocument.Chunk.Builder mergePageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan value)

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePageFooters(int index)

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

removePageHeaders(int index)

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

setChunkId(String value)

public Document.ChunkedDocument.Chunk.Builder setChunkId(String value)

ID of the chunk.

string chunk_id = 1;

Parameter
Name Description
value String

The chunkId to set.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

setChunkIdBytes(ByteString value)

public Document.ChunkedDocument.Chunk.Builder setChunkIdBytes(ByteString value)

ID of the chunk.

string chunk_id = 1;

Parameter
Name Description
value ByteString

The bytes for chunkId to set.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

setContent(String value)

public Document.ChunkedDocument.Chunk.Builder setContent(String value)

Text content of the chunk.

string content = 3;

Parameter
Name Description
value String

The content to set.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

setContentBytes(ByteString value)

public Document.ChunkedDocument.Chunk.Builder setContentBytes(ByteString value)

Text content of the chunk.

string content = 3;

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter value)

public Document.ChunkedDocument.Chunk.Builder setPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter value)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

setPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder setPageFooters(int index, Document.ChunkedDocument.Chunk.ChunkPageFooter.Builder builderForValue)

Page footers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;

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

setPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader value)

public Document.ChunkedDocument.Chunk.Builder setPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader value)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

setPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder setPageHeaders(int index, Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder builderForValue)

Page headers associated with the chunk.

repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;

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

setPageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan value)

public Document.ChunkedDocument.Chunk.Builder setPageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan value)

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

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

setPageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan.Builder builderForValue)

public Document.ChunkedDocument.Chunk.Builder setPageSpan(Document.ChunkedDocument.Chunk.ChunkPageSpan.Builder builderForValue)

Page span of the chunk.

.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;

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

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

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

setSourceBlockIds(int index, String value)

public Document.ChunkedDocument.Chunk.Builder setSourceBlockIds(int index, String value)

DO NOT USE. List of all parsed documents layout source blocks used to generate the chunk.

repeated string source_block_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The sourceBlockIds to set.

Returns
Type Description
Document.ChunkedDocument.Chunk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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