public sealed class ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig : IMessage<ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig>, IEquatable<ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig>, IDeepCloneable<ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eChunkingConfig\u003c/code\u003e class within the Google Cloud Document AI v1 API is 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eProcessOptions.Types.LayoutConfig.Types.ChunkingConfig\u003c/code\u003e, is used for configuring chunking when processing documents in the Cloud Document AI v1 API, and it serves as a serving config for document chunking.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkingConfig\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for various functionalities like message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkingConfig\u003c/code\u003e class offers properties like \u003ccode\u003eChunkSize\u003c/code\u003e, specifying the document splitting sizes, and \u003ccode\u003eIncludeAncestorHeadings\u003c/code\u003e, a boolean to include or exclude ancestor headings during splitting.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides historical versions of \u003ccode\u003eChunkingConfig\u003c/code\u003e starting from version 1.0.0 up to the latest 3.19.0, allowing users to refer to specific API states.\u003c/p\u003e\n"]]],[],null,["# Cloud Document AI v1 API - Class ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig (3.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.21.0 (latest)](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.20.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.19.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.18.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.17.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.16.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.15.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.14.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.13.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.12.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.11.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.10.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.9.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.8.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.7.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.6.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.5.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.4.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.3.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.2.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.1.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/3.0.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/2.0.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.5.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.4.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.3.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.2.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.1.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/1.0.0/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig) \n\n public sealed class ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig : IMessage\u003cProcessOptions.Types.LayoutConfig.Types.ChunkingConfig\u003e, IEquatable\u003cProcessOptions.Types.LayoutConfig.Types.ChunkingConfig\u003e, IDeepCloneable\u003cProcessOptions.Types.LayoutConfig.Types.ChunkingConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Document AI v1 API class ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig.\n\nServing config for chunking. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ProcessOptions](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types)[LayoutConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types)[ChunkingConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ProcessOptions](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types)[LayoutConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types)[ChunkingConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ProcessOptions](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types)[LayoutConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types)[ChunkingConfig](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DocumentAI.V1](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DocumentAI.V1.dll\n\nConstructors\n------------\n\n### ChunkingConfig()\n\n public ChunkingConfig()\n\n### ChunkingConfig(ChunkingConfig)\n\n public ChunkingConfig(ProcessOptions.Types.LayoutConfig.Types.ChunkingConfig other)\n\nProperties\n----------\n\n### ChunkSize\n\n public int ChunkSize { get; set; }\n\nOptional. The chunk sizes to use when splitting documents, in order of\nlevel.\n\n### IncludeAncestorHeadings\n\n public bool IncludeAncestorHeadings { get; set; }\n\nOptional. Whether or not to include ancestor headings when splitting."]]