# Cloud Document AI v1 API - Class ProcessOptions (3.25.0)

3.25.0 (latest) 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ProcessOptions : IMessage<ProcessOptions>, IEquatable<ProcessOptions>, IDeepCloneable<ProcessOptions>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1 API class ProcessOptions.

Options for Process API

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ProcessOptions

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ProcessOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ProcessOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ProcessOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions), [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.DocumentAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1)

## Assembly

Google.Cloud.DocumentAI.V1.dll

## Constructors

### ProcessOptions()

    public ProcessOptions()

### ProcessOptions(ProcessOptions)

    public ProcessOptions(ProcessOptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions` |

## Properties

### FromEnd

    public int FromEnd { get; set; }

Only process certain pages from the end, same as above.

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

### FromStart

    public int FromStart { get; set; }

Only process certain pages from the start. Process all if the document
has fewer pages.

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

### HasFromEnd

    public bool HasFromEnd { get; }

Gets whether the "from_end" field is set

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

### HasFromStart

    public bool HasFromStart { get; }

Gets whether the "from_start" field is set

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

### IndividualPageSelector

    public ProcessOptions.Types.IndividualPageSelector IndividualPageSelector { get; set; }

Which pages to process (1-indexed).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.IndividualPageSelector` |   |

### LayoutConfig

    public ProcessOptions.Types.LayoutConfig LayoutConfig { get; set; }

Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`.
Returns error if set on other processor types.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.Types.LayoutConfig` |   |

### OcrConfig

    public OcrConfig OcrConfig { get; set; }

Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
Returns error if set on other processor types.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.OcrConfig` |   |

### PageRangeCase

    public ProcessOptions.PageRangeOneofCase PageRangeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.ProcessOptions.PageRangeOneofCase` |   |

### SchemaOverride

    public DocumentSchema SchemaOverride { get; set; }

Optional. Override the schema of the
\[ProcessorVersion\]\[google.cloud.documentai.v1.ProcessorVersion\]. Will
return an Invalid Argument error if this field is set when the underlying
\[ProcessorVersion\]\[google.cloud.documentai.v1.ProcessorVersion\] doesn't
support schema override.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.DocumentSchema` |   |