# Google Cloud Service Control V1 Client - Class ReportError (2.2.0)

2.2.0 (latest) 2.1.1 2.0.4 1.4.4 1.3.0 1.2.1 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Control V1 Client class ReportError.

Represents the processing error of one
[Operation](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation) in the request.

Generated from protobuf message `google.api.servicecontrol.v1.ReportResponse.ReportError`

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1 \\ ReportResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operation_id` | `string` The [Operation.operation_id](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation#_Google_Cloud_ServiceControl_V1_Operation__getOperationId__) value from the request. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Details of the error when processing the [Operation](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation). |

### getOperationId

The
[Operation.operation_id](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation#_Google_Cloud_ServiceControl_V1_Operation__getOperationId__)
value from the request.

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

### setOperationId

The
[Operation.operation_id](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation#_Google_Cloud_ServiceControl_V1_Operation__getOperationId__)
value from the request.

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

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

### getStatus

Details of the error when processing the
[Operation](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasStatus

### clearStatus

### setStatus

Details of the error when processing the
[Operation](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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