# Google Cloud Document Ai V1 Client - Class ProcessorVersion (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ProcessorVersion.

A processor version is an implementation of a processor. Each processor
can have multiple versions, pretrained by Google internally or uptrained
by the customer. A processor can only have one default version at a time.

Its document-processing behavior is defined by that version.

Generated from protobuf message `google.cloud.documentai.v1.ProcessorVersion`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` |
| `↳ display_name` | `string` The display name of the processor version. |
| `↳ document_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema` Output only. The schema of the processor version. Describes the output. |
| `↳ state` | `int` Output only. The state of the processor version. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the processor version was created. |
| `↳ latest_evaluation` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.EvaluationReference` Output only. The most recently invoked evaluation for the processor version. |
| `↳ kms_key_name` | `string` Output only. The KMS key name used for encryption. |
| `↳ kms_key_version_name` | `string` Output only. The KMS key version with which data is encrypted. |
| `↳ google_managed` | `bool` Output only. Denotes that this `ProcessorVersion` is managed by Google. |
| `↳ deprecation_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.DeprecationInfo` Output only. If set, information about the eventual deprecation of this version. |
| `↳ model_type` | `int` Output only. The model type of this processor version. |
| `↳ satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `↳ satisfies_pzi` | `bool` Output only. Reserved for future use. |
| `↳ gen_ai_model_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.GenAiModelInfo` Output only. Information about Generative AI model-based processor versions. |

### getName

Identifier. The resource name of the processor version.

Format:
`projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The resource name of the processor version.

Format:
`projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

The display name of the processor version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

The display name of the processor version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDocumentSchema

Output only. The schema of the processor version. Describes the output.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema|null` |   |

### hasDocumentSchema

### clearDocumentSchema

### setDocumentSchema

Output only. The schema of the processor version. Describes the output.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. The state of the processor version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.State). |

### setState

Output only. The state of the processor version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. The time the processor version was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the processor version was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLatestEvaluation

Output only. The most recently invoked evaluation for the processor
version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.EvaluationReference|null` |   |

### hasLatestEvaluation

### clearLatestEvaluation

### setLatestEvaluation

Output only. The most recently invoked evaluation for the processor
version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.EvaluationReference` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKeyName

Output only. The KMS key name used for encryption.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKmsKeyName

Output only. The KMS key name used for encryption.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKeyVersionName

Output only. The KMS key version with which data is encrypted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKmsKeyVersionName

Output only. The KMS key version with which data is encrypted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGoogleManaged

Output only. Denotes that this `ProcessorVersion` is managed by Google.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGoogleManaged

Output only. Denotes that this `ProcessorVersion` is managed by Google.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeprecationInfo

Output only. If set, information about the eventual deprecation of this
version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.DeprecationInfo|null` |   |

### hasDeprecationInfo

### clearDeprecationInfo

### setDeprecationInfo

Output only. If set, information about the eventual deprecation of this
version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.DeprecationInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getModelType

Output only. The model type of this processor version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ModelType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.ModelType). |

### setModelType

Output only. The model type of this processor version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ModelType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.ModelType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSatisfiesPzs

Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSatisfiesPzs

Output only. Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSatisfiesPzi

Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSatisfiesPzi

Output only. Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGenAiModelInfo

Output only. Information about Generative AI model-based processor
versions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.GenAiModelInfo|null` |   |

### hasGenAiModelInfo

### clearGenAiModelInfo

### setGenAiModelInfo

Output only. Information about Generative AI model-based processor
versions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.GenAiModelInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |