# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ParsingConfig::OcrParsingConfig (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::ParsingConfig::OcrParsingConfig.

The OCR parsing configurations for documents.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #enhanced_document_elements

    def enhanced_document_elements() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- \[DEPRECATED\] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`.

### #enhanced_document_elements=

    def enhanced_document_elements=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- \[DEPRECATED\] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`.
**Returns**

- (::Array\<::String\>) --- \[DEPRECATED\] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`.

### #use_native_text

    def use_native_text() -> ::Boolean

**Returns**

- (::Boolean) --- If true, will use native text instead of OCR text on pages containing native text.

### #use_native_text=

    def use_native_text=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If true, will use native text instead of OCR text on pages containing native text.
**Returns**

- (::Boolean) --- If true, will use native text instead of OCR text on pages containing native text.