# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig.

A singleton resource of
[DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"). If it's empty when
[DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") is created and
[DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") is set to
[DataStore.ContentConfig.CONTENT_REQUIRED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore-ContentConfig#Google__Cloud__DiscoveryEngine__V1__DataStore__ContentConfig__CONTENT_REQUIRED "Google::Cloud::DiscoveryEngine::V1::DataStore::ContentConfig::CONTENT_REQUIRED (constant)"),
the default parser will default to digital parser.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #chunking_config

    def chunking_config() -> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DocumentProcessingConfig-ChunkingConfig)) --- Whether chunking mode is enabled.

### #chunking_config=

    def chunking_config=(value) -> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DocumentProcessingConfig-ChunkingConfig)) --- Whether chunking mode is enabled.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DocumentProcessingConfig-ChunkingConfig)) --- Whether chunking mode is enabled.

### #default_parsing_config

    def default_parsing_config() -> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/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.

### #default_parsing_config=

    def default_parsing_config=(value) -> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/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.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/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.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
**Returns**

- (::String) --- The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.

### #parsing_config_overrides

    def parsing_config_overrides() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig}) --- 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.
  - `xlsm`: Override parsing config for XLSM files, only digital parsing and layout parsing are supported.
  - `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.

### #parsing_config_overrides=

    def parsing_config_overrides=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig}) ---

  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.
  - `xlsm`: Override parsing config for XLSM files, only digital parsing and layout parsing are supported.
  - `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig}) --- 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.
  - `xlsm`: Override parsing config for XLSM files, only digital parsing and layout parsing are supported.
  - `xlsx`: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.