1.39.4 (latest) 1.39.3 1.38.0 1.37.0 1.36.0 1.35.2 1.34.7 1.33.1 1.32.0 1.31.1 1.30.3 1.29.0 1.28.3 1.27.0 1.26.1 1.25.1 1.24.2 1.23.10 Reference documentation and code samples for the BigQuery Client class InsertResponse.

Represents the result of streaming data into a table.

This class should be not instantiated directly, but as a result of calling
[Table::insertRow()](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery/latest/Table.md.txt#_Google_Cloud_BigQuery_Table__insertRow__) or
[Table::insertRows()](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery/latest/Table.md.txt#_Google_Cloud_BigQuery_Table__insertRows__).

## Namespace

Google \\ Cloud \\ BigQuery

## Methods

### __construct

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `info` | `array` The API response. |
| `rows` | `array` The rows provided in the original request. |

### isSuccessful

Determines if the request was successful.

Example:

```php
if (!$insertResponse->isSuccessful()) {
   print_r($insertResponse->failedRows());
}
```

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

### failedRows

See also:

- [Tabledata insertAll API response documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll#response-body)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` |   |

### info

See also:

- [Tabledata insertAll API response documentation.](https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll#response-body)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` |   |