Class ProcessOptions.LayoutConfig.ChunkingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
com.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfig.Builder
- All Implemented Interfaces:
ProcessOptions.LayoutConfig.ChunkingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProcessOptions.LayoutConfig.ChunkingConfig
public static final class ProcessOptions.LayoutConfig.ChunkingConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
implements ProcessOptions.LayoutConfig.ChunkingConfigOrBuilder
Serving config for chunking.Protobuf type
google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.intOptional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBreakpointPercentileThreshold(int value) Optional.setChunkSize(int value) Optional.setIncludeAncestorHeadings(boolean value) Optional.setSemanticChunkingGroupSize(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
-
mergeFrom
public ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeFrom(ProcessOptions.LayoutConfig.ChunkingConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>
-
mergeFrom
public ProcessOptions.LayoutConfig.ChunkingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessOptions.LayoutConfig.ChunkingConfig.Builder>- Throws:
IOException
-
getChunkSize
public int getChunkSize()Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getChunkSizein interfaceProcessOptions.LayoutConfig.ChunkingConfigOrBuilder- Returns:
- The chunkSize.
-
setChunkSize
Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The chunkSize to set.- Returns:
- This builder for chaining.
-
clearChunkSize
Optional. The chunk sizes to use when splitting documents, in order of level.
int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getIncludeAncestorHeadings
public boolean getIncludeAncestorHeadings()Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIncludeAncestorHeadingsin interfaceProcessOptions.LayoutConfig.ChunkingConfigOrBuilder- Returns:
- The includeAncestorHeadings.
-
setIncludeAncestorHeadings
Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The includeAncestorHeadings to set.- Returns:
- This builder for chaining.
-
clearIncludeAncestorHeadings
Optional. Whether or not to include ancestor headings when splitting.
bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getSemanticChunkingGroupSize
public boolean getSemanticChunkingGroupSize()Optional. The number of tokens to group together when evaluating semantic similarity. **Note:** This field is not yet used.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSemanticChunkingGroupSizein interfaceProcessOptions.LayoutConfig.ChunkingConfigOrBuilder- Returns:
- The semanticChunkingGroupSize.
-
setSemanticChunkingGroupSize
public ProcessOptions.LayoutConfig.ChunkingConfig.Builder setSemanticChunkingGroupSize(boolean value) Optional. The number of tokens to group together when evaluating semantic similarity. **Note:** This field is not yet used.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The semanticChunkingGroupSize to set.- Returns:
- This builder for chaining.
-
clearSemanticChunkingGroupSize
Optional. The number of tokens to group together when evaluating semantic similarity. **Note:** This field is not yet used.
bool semantic_chunking_group_size = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getBreakpointPercentileThreshold
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. **Note:** This field is not yet used.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBreakpointPercentileThresholdin interfaceProcessOptions.LayoutConfig.ChunkingConfigOrBuilder- Returns:
- The breakpointPercentileThreshold.
-
setBreakpointPercentileThreshold
public 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. **Note:** This field is not yet used.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The breakpointPercentileThreshold to set.- Returns:
- This builder for chaining.
-
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. **Note:** This field is not yet used.
int32 breakpoint_percentile_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-