public final class DocumentProcessingConfig extends GeneratedMessageV3 implements DocumentProcessingConfigOrBuilder
A singleton resource of
DataStore. It's empty when
DataStore is created, which
defaults to digital parser. The first call to
[DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
the config.
Protobuf type google.cloud.discoveryengine.v1beta.DocumentProcessingConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CHUNKING_CONFIG_FIELD_NUMBER
public static final int CHUNKING_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DEFAULT_PARSING_CONFIG_FIELD_NUMBER
public static final int DEFAULT_PARSING_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARSING_CONFIG_OVERRIDES_FIELD_NUMBER
public static final int PARSING_CONFIG_OVERRIDES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DocumentProcessingConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DocumentProcessingConfig.Builder newBuilder()
newBuilder(DocumentProcessingConfig prototype)
public static DocumentProcessingConfig.Builder newBuilder(DocumentProcessingConfig prototype)
public static DocumentProcessingConfig parseDelimitedFrom(InputStream input)
public static DocumentProcessingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DocumentProcessingConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DocumentProcessingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DocumentProcessingConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DocumentProcessingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DocumentProcessingConfig parseFrom(CodedInputStream input)
public static DocumentProcessingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DocumentProcessingConfig parseFrom(InputStream input)
public static DocumentProcessingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DocumentProcessingConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DocumentProcessingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DocumentProcessingConfig> parser()
Methods
containsParsingConfigOverrides(String key)
public 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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getChunkingConfig()
public DocumentProcessingConfig.ChunkingConfig getChunkingConfig()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
getChunkingConfigOrBuilder()
public DocumentProcessingConfig.ChunkingConfigOrBuilder getChunkingConfigOrBuilder()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
getDefaultInstanceForType()
public DocumentProcessingConfig getDefaultInstanceForType()
getDefaultParsingConfig()
public 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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
getDefaultParsingConfigOrBuilder()
public 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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
getName()
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<DocumentProcessingConfig> getParserForType()
Overrides
getParsingConfigOverrides() (deprecated)
public Map<String,DocumentProcessingConfig.ParsingConfig> getParsingConfigOverrides()
getParsingConfigOverridesCount()
public int getParsingConfigOverridesCount()
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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Returns |
Type |
Description |
int |
|
getParsingConfigOverridesMap()
public 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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesOrDefault(String key, DocumentProcessingConfig.ParsingConfig defaultValue)
public 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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
getParsingConfigOverridesOrThrow(String key)
public 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.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5;
Parameter |
Name |
Description |
key |
String
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasChunkingConfig()
public boolean hasChunkingConfig()
Whether chunking mode is enabled.
.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3;
Returns |
Type |
Description |
boolean |
Whether the chunkingConfig field is set.
|
hasDefaultParsingConfig()
public 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.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4;
Returns |
Type |
Description |
boolean |
Whether the defaultParsingConfig field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DocumentProcessingConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DocumentProcessingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DocumentProcessingConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides