# Google Cloud Discovery Engine V1 Client - Class OcrParsingConfig (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class OcrParsingConfig.

The OCR parsing configurations for documents.

Generated from protobuf message `google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ DocumentProcessingConfig \\ ParsingConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enhanced_document_elements` | `string[]` \[DEPRECATED\] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. |
| `↳ use_native_text` | `bool` If true, will use native text instead of OCR text on pages containing native text. |

### getEnhancedDocumentElements

\[DEPRECATED\] This field is deprecated. To use the additional enhanced
document elements processing, please switch to `layout_parsing_config`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setEnhancedDocumentElements

\[DEPRECATED\] This field is deprecated. To use the additional enhanced
document elements processing, please switch to `layout_parsing_config`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUseNativeText

If true, will use native text instead of OCR text on pages containing
native text.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUseNativeText

If true, will use native text instead of OCR text on pages containing
native text.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |