public static final class ProcessOptions.LayoutConfig.ChunkingConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder> implements ProcessOptions.LayoutConfig.ChunkingConfigOrBuilder
Serving config for chunking.Protobuf type
google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.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.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ProcessOptions.LayoutConfig.ChunkingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ProcessOptions.LayoutConfig.ChunkingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ProcessOptions.LayoutConfig.ChunkingConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeFrom(ProcessOptions.LayoutConfig.ChunkingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public ProcessOptions.LayoutConfig.ChunkingConfig.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<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>IOExceptionpublic int getChunkSize()
Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];getChunkSize in interface ProcessOptions.LayoutConfig.ChunkingConfigOrBuilderpublic ProcessOptions.LayoutConfig.ChunkingConfig.Builder setChunkSize(int value)
Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];value - The chunkSize to set.public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearChunkSize()
Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];public boolean getIncludeAncestorHeadings()
Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];
getIncludeAncestorHeadings in interface ProcessOptions.LayoutConfig.ChunkingConfigOrBuilderpublic ProcessOptions.LayoutConfig.ChunkingConfig.Builder setIncludeAncestorHeadings(boolean value)
Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The includeAncestorHeadings to set.public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearIncludeAncestorHeadings()
Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];
public boolean getSemanticChunkingGroupSize()
Optional. The number of tokens to group together when evaluating semantic similarity.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];
getSemanticChunkingGroupSize in interface ProcessOptions.LayoutConfig.ChunkingConfigOrBuilderpublic ProcessOptions.LayoutConfig.ChunkingConfig.Builder setSemanticChunkingGroupSize(boolean value)
Optional. The number of tokens to group together when evaluating semantic similarity.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The semanticChunkingGroupSize to set.public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearSemanticChunkingGroupSize()
Optional. The number of tokens to group together when evaluating semantic similarity.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];
public int getBreakpointPercentileThreshold()
Optional. The percentile of cosine dissimilarity that must be exceeded between a group of tokens and the next. The smaller this number is, the more chunks will be generated.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
getBreakpointPercentileThreshold in interface ProcessOptions.LayoutConfig.ChunkingConfigOrBuilderpublic ProcessOptions.LayoutConfig.ChunkingConfig.Builder setBreakpointPercentileThreshold(int value)
Optional. The percentile of cosine dissimilarity that must be exceeded between a group of tokens and the next. The smaller this number is, the more chunks will be generated.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The breakpointPercentileThreshold to set.public ProcessOptions.LayoutConfig.ChunkingConfig.Builder clearBreakpointPercentileThreshold()
Optional. The percentile of cosine dissimilarity that must be exceeded between a group of tokens and the next. The smaller this number is, the more chunks will be generated.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
public final ProcessOptions.LayoutConfig.ChunkingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>public final ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.