# Cloud Document AI v1 API - Class CreateProcessorRequest (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 CreateProcessorRequest : IMessage<CreateProcessorRequest>, IEquatable<CreateProcessorRequest>, IDeepCloneable<CreateProcessorRequest>, IBufferMessage, IMessage

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

Request message for the
\[CreateProcessor\]\[google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor\]
method. Notice this request is sent to a regionalized backend service. If the
\[ProcessorType\]\[google.cloud.documentai.v1.ProcessorType\] isn't available in
that region, the creation fails.

## Inheritance

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

## Implements

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

### CreateProcessorRequest()

    public CreateProcessorRequest()

### CreateProcessorRequest(CreateProcessorRequest)

    public CreateProcessorRequest(CreateProcessorRequest other)

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

## Properties

### Parent

    public string Parent { get; set; }

Required. The parent (project and location) under which to create the
processor. Format: `projects/{project}/locations/{location}`

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.CreateProcessorRequest#Google_Cloud_DocumentAI_V1_CreateProcessorRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### Processor

    public Processor Processor { get; set; }

Required. The processor to be created, requires
\[Processor.type\]\[google.cloud.documentai.v1.Processor.type\] and
\[Processor.display_name\]\[google.cloud.documentai.v1.Processor.display_name\]
to be set. Also, the
\[Processor.kms_key_name\]\[google.cloud.documentai.v1.Processor.kms_key_name\]
field must be set if the processor is under CMEK.

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