public final class DocumentProcessingConfig extends com.google.protobuf.GeneratedMessageV3 implements DocumentProcessingConfigOrBuilder
A singleton resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created, which defaults to digital parser. The first call to [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig] method will initialize the config.Protobuf type
google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentProcessingConfig.Builder
A singleton resource of
[DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
|
static class |
DocumentProcessingConfig.ChunkingConfig
Configuration for chunking config.
|
static interface |
DocumentProcessingConfig.ChunkingConfigOrBuilder |
static class |
DocumentProcessingConfig.ParsingConfig
Related configurations applied to a specific type of document parser.
|
static interface |
DocumentProcessingConfig.ParsingConfigOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNKING_CONFIG_FIELD_NUMBER |
static int |
DEFAULT_PARSING_CONFIG_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PARSING_CONFIG_OVERRIDES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParsingConfigOverrides(String key)
Map from file type to override the default parsing configuration based on
the file type.
|
boolean |
equals(Object obj) |
DocumentProcessingConfig.ChunkingConfig |
getChunkingConfig()
Whether chunking mode is enabled.
|
DocumentProcessingConfig.ChunkingConfigOrBuilder |
getChunkingConfigOrBuilder()
Whether chunking mode is enabled.
|
static DocumentProcessingConfig |
getDefaultInstance() |
DocumentProcessingConfig |
getDefaultInstanceForType() |
DocumentProcessingConfig.ParsingConfig |
getDefaultParsingConfig()
Configurations for default Document parser.
|
DocumentProcessingConfig.ParsingConfigOrBuilder |
getDefaultParsingConfigOrBuilder()
Configurations for default Document parser.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
The full resource name of the Document Processing Config.
|
com.google.protobuf.ByteString |
getNameBytes()
The full resource name of the Document Processing Config.
|
com.google.protobuf.Parser<DocumentProcessingConfig> |
getParserForType() |
Map<String,DocumentProcessingConfig.ParsingConfig> |
getParsingConfigOverrides()
Deprecated.
|
int |
getParsingConfigOverridesCount()
Map from file type to override the default parsing configuration based on
the file type.
|
Map<String,DocumentProcessingConfig.ParsingConfig> |
getParsingConfigOverridesMap()
Map from file type to override the default parsing configuration based on
the file type.
|
DocumentProcessingConfig.ParsingConfig |
getParsingConfigOverridesOrDefault(String key,
DocumentProcessingConfig.ParsingConfig defaultValue)
Map from file type to override the default parsing configuration based on
the file type.
|
DocumentProcessingConfig.ParsingConfig |
getParsingConfigOverridesOrThrow(String key)
Map from file type to override the default parsing configuration based on
the file type.
|
int |
getSerializedSize() |
boolean |
hasChunkingConfig()
Whether chunking mode is enabled.
|
boolean |
hasDefaultParsingConfig()
Configurations for default Document parser.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static DocumentProcessingConfig.Builder |
newBuilder() |
static DocumentProcessingConfig.Builder |
newBuilder(DocumentProcessingConfig prototype) |
DocumentProcessingConfig.Builder |
newBuilderForType() |
protected DocumentProcessingConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DocumentProcessingConfig |
parseDelimitedFrom(InputStream input) |
static DocumentProcessingConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentProcessingConfig |
parseFrom(byte[] data) |
static DocumentProcessingConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentProcessingConfig |
parseFrom(ByteBuffer data) |
static DocumentProcessingConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentProcessingConfig |
parseFrom(com.google.protobuf.ByteString data) |
static DocumentProcessingConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentProcessingConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DocumentProcessingConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentProcessingConfig |
parseFrom(InputStream input) |
static DocumentProcessingConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DocumentProcessingConfig> |
parser() |
DocumentProcessingConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CHUNKING_CONFIG_FIELD_NUMBER
public static final int DEFAULT_PARSING_CONFIG_FIELD_NUMBER
public static final int PARSING_CONFIG_OVERRIDES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
string name = 1;getName in interface DocumentProcessingConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
string name = 1;getNameBytes in interface DocumentProcessingConfigOrBuilderpublic boolean hasChunkingConfig()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
hasChunkingConfig in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ChunkingConfig getChunkingConfig()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
getChunkingConfig in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ChunkingConfigOrBuilder getChunkingConfigOrBuilder()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
getChunkingConfigOrBuilder in interface DocumentProcessingConfigOrBuilderpublic boolean hasDefaultParsingConfig()
Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
hasDefaultParsingConfig in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ParsingConfig getDefaultParsingConfig()
Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
getDefaultParsingConfig in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ParsingConfigOrBuilder getDefaultParsingConfigOrBuilder()
Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.
.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
getDefaultParsingConfigOrBuilder in interface DocumentProcessingConfigOrBuilderpublic int getParsingConfigOverridesCount()
DocumentProcessingConfigOrBuilderMap from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. * `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesCount in interface DocumentProcessingConfigOrBuilderpublic boolean containsParsingConfigOverrides(String key)
Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. * `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
containsParsingConfigOverrides in interface DocumentProcessingConfigOrBuilder@Deprecated public Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverrides()
getParsingConfigOverridesMap() instead.getParsingConfigOverrides in interface DocumentProcessingConfigOrBuilderpublic Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverridesMap()
Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. * `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesMap in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ParsingConfig getParsingConfigOverridesOrDefault(String key, DocumentProcessingConfig.ParsingConfig defaultValue)
Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. * `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesOrDefault in interface DocumentProcessingConfigOrBuilderpublic DocumentProcessingConfig.ParsingConfig getParsingConfigOverridesOrThrow(String key)
Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. * `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesOrThrow in interface DocumentProcessingConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DocumentProcessingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentProcessingConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentProcessingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentProcessingConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentProcessingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentProcessingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DocumentProcessingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DocumentProcessingConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DocumentProcessingConfig.Builder newBuilder()
public static DocumentProcessingConfig.Builder newBuilder(DocumentProcessingConfig prototype)
public DocumentProcessingConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DocumentProcessingConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DocumentProcessingConfig getDefaultInstance()
public static com.google.protobuf.Parser<DocumentProcessingConfig> parser()
public com.google.protobuf.Parser<DocumentProcessingConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DocumentProcessingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.