# Discovery Engine v1 API - Class DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig (1.13.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.13.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.12.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.11.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.10.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.9.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig)

    public sealed class DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig : IMessage<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IEquatable<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IDeepCloneable<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig.

Configuration for the layout based chunking.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DocumentProcessingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types)[ChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types)[LayoutBasedChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DocumentProcessingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types)[ChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types)[LayoutBasedChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DocumentProcessingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types)[ChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types)[LayoutBasedChunkingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)

## Assembly

Google.Cloud.DiscoveryEngine.V1.dll

## Constructors

### LayoutBasedChunkingConfig()

    public LayoutBasedChunkingConfig()

### LayoutBasedChunkingConfig(LayoutBasedChunkingConfig)

    public LayoutBasedChunkingConfig(DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig` |

## Properties

### ChunkSize

    public int ChunkSize { get; set; }

The token size limit for each chunk.

Supported values: 100-500 (inclusive).
Default value: 500.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### IncludeAncestorHeadings

    public bool IncludeAncestorHeadings { get; set; }

Whether to include appending different levels of headings to chunks
from the middle of the document to prevent context loss.

Default value: False.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |