# Cloud AutoML V1 Client - Class BatchPredictResult (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class BatchPredictResult.

Result of the Batch Predict. This message is returned in
response of the operation returned
by the [PredictionService.BatchPredict](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.PredictionServiceClient#_Google_Cloud_AutoMl_V1_Client_PredictionServiceClient__batchPredict__).

Generated from protobuf message `google.cloud.automl.v1.BatchPredictResult`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ metadata` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes returned per image. AutoML Video Intelligence Object Tracking `max_bounding_box_count` : (int64) The maximum number of bounding boxes returned per frame. |

### getMetadata

Additional domain-specific prediction response metadata.

AutoML Vision Object Detection
`max_bounding_box_count`
: (int64) The maximum number of bounding boxes returned per image.
AutoML Video Intelligence Object Tracking
`max_bounding_box_count`
: (int64) The maximum number of bounding boxes returned per frame.

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

### setMetadata

Additional domain-specific prediction response metadata.

AutoML Vision Object Detection
`max_bounding_box_count`
: (int64) The maximum number of bounding boxes returned per image.
AutoML Video Intelligence Object Tracking
`max_bounding_box_count`
: (int64) The maximum number of bounding boxes returned per frame.

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

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