# Google Cloud Service Control V1 Client - Class CheckResponse (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 CheckResponse.

Response message for the Check method.

Generated from protobuf message `google.api.servicecontrol.v1.CheckResponse`

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operation_id` | `string` The same operation_id value used in the [CheckRequest](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckRequest). Used for logging and diagnostics purposes. |
| `↳ check_errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckError>` Indicate the decision of the check. If no check errors are present, the service should process the operation. Otherwise the service should use the list of errors to determine the appropriate action. |
| `↳ service_config_id` | `string` The actual config id used to process the request. |
| `↳ service_rollout_id` | `string` The current service rollout id used to process the request. |
| `↳ check_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckResponse.CheckInfo` Feedback data returned from the server during processing a Check request. |

### getOperationId

The same operation_id value used in the
[CheckRequest](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckRequest). Used for logging
and diagnostics purposes.

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

### setOperationId

The same operation_id value used in the
[CheckRequest](https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckRequest). Used for logging
and diagnostics purposes.

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

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

### getCheckErrors

Indicate the decision of the check.

If no check errors are present, the service should process the operation.
Otherwise the service should use the list of errors to determine the
appropriate action.

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

### setCheckErrors

Indicate the decision of the check.

If no check errors are present, the service should process the operation.
Otherwise the service should use the list of errors to determine the
appropriate action.

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

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

### getServiceConfigId

The actual config id used to process the request.

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

### setServiceConfigId

The actual config id used to process the request.

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

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

### getServiceRolloutId

The current service rollout id used to process the request.

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

### setServiceRolloutId

The current service rollout id used to process the request.

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

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

### getCheckInfo

Feedback data returned from the server during processing a Check request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckResponse.CheckInfo|null` |   |

### hasCheckInfo

### clearCheckInfo

### setCheckInfo

Feedback data returned from the server during processing a Check request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.CheckResponse.CheckInfo` |

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