# Google Cloud Document Ai V1 Client - Class ReviewDocumentRequest (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 ReviewDocumentRequest.

Request message for the
[ReviewDocument](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Client.DocumentProcessorServiceClient#_Google_Cloud_DocumentAI_V1_Client_DocumentProcessorServiceClient__reviewDocument__)
method.

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

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ inline_document` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document` An inline document proto. |
| `↳ human_review_config` | `string` Required. The resource name of the HumanReviewConfig that the document will be reviewed with. |
| `↳ enable_schema_validation` | `bool` Whether the validation should be performed on the ad-hoc review request. |
| `↳ priority` | `int` The priority of the human review task. |
| `↳ document_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentSchema` The document schema of the human review task. |

### getInlineDocument

An inline document proto.

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

### hasInlineDocument

### setInlineDocument

An inline document proto.

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

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

### getHumanReviewConfig

Required. The resource name of the
HumanReviewConfig that the
document will be reviewed with.

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

### setHumanReviewConfig

Required. The resource name of the
HumanReviewConfig that the
document will be reviewed with.

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

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

### getEnableSchemaValidation

Whether the validation should be performed on the ad-hoc review request.

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

### setEnableSchemaValidation

Whether the validation should be performed on the ad-hoc review request.

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

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

### getPriority

The priority of the human review task.

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

### setPriority

The priority of the human review task.

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

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

### getDocumentSchema

The document schema of the human review task.

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

### hasDocumentSchema

### clearDocumentSchema

### setDocumentSchema

The document schema of the human review task.

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

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

### getSource

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `humanReviewConfig` | `string` Required. The resource name of the HumanReviewConfig that the document will be reviewed with. Please see DocumentProcessorServiceClient::humanReviewConfigName() for help formatting this field. |

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