Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DocumentProcessingConfig.
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.
Generated from protobuf message google.cloud.discoveryengine.v1.DocumentProcessingConfig
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The full resource name of the Document Processing Config. Format: |
↳ default_parsing_config |
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig
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. |
↳ parsing_config_overrides |
array|Google\Protobuf\Internal\MapField
Map from file type to override the default parsing configuration based on the file type. Supported keys: * |
getName
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
Returns | |
---|---|
Type | Description |
string |
setName
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
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.
Returns | |
---|---|
Type | Description |
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig|null |
hasDefaultParsingConfig
clearDefaultParsingConfig
setDefaultParsingConfig
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.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig
|
Returns | |
---|---|
Type | Description |
$this |
getParsingConfigOverrides
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 or layout parsing are supported.docx
: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setParsingConfigOverrides
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 or layout parsing are supported.docx
: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |