## Resource: Processor

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

| JSON representation |
|---|
| ``` { "name": string, "type": string, "displayName": string, "state": enum (`State`), "defaultProcessorVersion": string, "processorVersionAliases": [ { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/Processor#ProcessorVersionAlias`) } ], "processEndpoint": string, "createTime": string, "kmsKeyName": string, "satisfiesPzs": boolean, "satisfiesPzi": boolean, "activeSchemaVersion": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` |
| `type` | `string` The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations/fetchProcessorTypes#google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes`. |
| `displayName` | `string` The display name of the processor. |
| `state` | ``enum (`State`)`` Output only. The state of the processor. |
| `defaultProcessorVersion` | `string` The default processor version. |
| `processorVersionAliases[]` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/Processor#ProcessorVersionAlias`)`` Output only. The processor version aliases. |
| `processEndpoint` | `string` Output only. Immutable. The http endpoint that can be called to invoke processing. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time the processor was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `kmsKeyName` | `string` The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. |
| `satisfiesPzs` | `boolean` Output only. Reserved for future use. |
| `satisfiesPzi` | `boolean` Output only. Reserved for future use. |
| `activeSchemaVersion` | `string` Optional. SchemaVersion used by the Processor. It is the same as Processor's `DatasetSchema.schema_version` Format is \`projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schemaVersion}. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/batchProcess` | LRO endpoint to batch process many documents. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/create` | Creates a processor from the `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processorTypes#ProcessorType` provided. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/delete` | Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/disable` | Disables a processor |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/enable` | Enables a processor |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/get` | Gets a processor detail. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/list` | Lists all processors which belong to this project. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/process` | Processes a single document. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/setDefaultProcessorVersion` | Set the default (active) version of a `https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/Processor` that will be used in `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/process#google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument` and `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/batchProcess#google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments`. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/updateDataset` | Updates metadata associated with a dataset. |