public static final class DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder> implements DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilder
Configuration for the layout based chunking.Protobuf type
google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder mergeFrom(DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder>IOExceptionpublic int getChunkSize()
The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500.
int32 chunk_size = 1;getChunkSize in interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilderpublic DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder setChunkSize(int value)
The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500.
int32 chunk_size = 1;value - The chunkSize to set.public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder clearChunkSize()
The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500.
int32 chunk_size = 1;public boolean getIncludeAncestorHeadings()
Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False.
bool include_ancestor_headings = 2;getIncludeAncestorHeadings in interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilderpublic DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder setIncludeAncestorHeadings(boolean value)
Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False.
bool include_ancestor_headings = 2;value - The includeAncestorHeadings to set.public DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder clearIncludeAncestorHeadings()
Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False.
bool include_ancestor_headings = 2;Copyright © 2026 Google LLC. All rights reserved.