# Google Cloud Document Ai V1 Client - Class LayoutConfig (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class LayoutConfig.

Serving config for layout parser processor.

Generated from protobuf message `google.cloud.documentai.v1.ProcessOptions.LayoutConfig`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ ProcessOptions

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ chunking_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessOptions.LayoutConfig.ChunkingConfig` Optional. Config for chunking in layout parser processor. |
| `↳ return_images` | `bool` Optional. Whether to include images in layout parser processor response. |
| `↳ return_bounding_boxes` | `bool` Optional. Whether to include bounding boxes in layout parser processor response. |
| `↳ enable_image_annotation` | `bool` Optional. Whether to include image annotations in layout parser response. |
| `↳ enable_table_annotation` | `bool` Optional. Whether to include table annotations in layout parser response. |

### getChunkingConfig

Optional. Config for chunking in layout parser processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessOptions.LayoutConfig.ChunkingConfig|null` |   |

### hasChunkingConfig

### clearChunkingConfig

### setChunkingConfig

Optional. Config for chunking in layout parser processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessOptions.LayoutConfig.ChunkingConfig` |

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

### getReturnImages

Optional. Whether to include images in layout parser processor response.

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

### setReturnImages

Optional. Whether to include images in layout parser processor response.

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

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

### getReturnBoundingBoxes

Optional. Whether to include bounding boxes in layout parser processor
response.

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

### setReturnBoundingBoxes

Optional. Whether to include bounding boxes in layout parser processor
response.

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

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

### getEnableImageAnnotation

Optional. Whether to include image annotations in layout parser response.

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

### setEnableImageAnnotation

Optional. Whether to include image annotations in layout parser response.

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

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

### getEnableTableAnnotation

Optional. Whether to include table annotations in layout parser response.

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

### setEnableTableAnnotation

Optional. Whether to include table annotations in layout parser response.

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

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