# Cloud Vision V1 Client - Class BatchAnnotateFilesRequest (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class BatchAnnotateFilesRequest.

A list of requests to annotate files using the BatchAnnotateFiles API.

Generated from protobuf message `google.cloud.vision.v1.BatchAnnotateFilesRequest`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ requests` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.AnnotateFileRequest>` Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest. |
| `↳ parent` | `string` Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. |

### getRequests

Required. The list of file annotation requests. Right now we support only
one AnnotateFileRequest in BatchAnnotateFilesRequest.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.AnnotateFileRequest>` |   |

### setRequests

Required. The list of file annotation requests. Right now we support only
one AnnotateFileRequest in BatchAnnotateFilesRequest.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.AnnotateFileRequest>` |

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

### getParent

Optional. Target project and location to make a call.

Format: `projects/{project-id}/locations/{location-id}`.
If no parent is specified, a region will be chosen automatically.
Supported location-ids:
`us`: USA country only,
`asia`: East asia areas, like Japan, Taiwan,
`eu`: The European Union.
Example: `projects/project-A/locations/eu`.

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

### setParent

Optional. Target project and location to make a call.

Format: `projects/{project-id}/locations/{location-id}`.
If no parent is specified, a region will be chosen automatically.
Supported location-ids:
`us`: USA country only,
`asia`: East asia areas, like Japan, Taiwan,
`eu`: The European Union.
Example: `projects/project-A/locations/eu`.

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

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

### getLabels

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.

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

### setLabels

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `requests` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.AnnotateFileRequest>` Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.BatchAnnotateFilesRequest` |   |