# Google Cloud Vision Ai V1 Client - Class RunStatus (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class RunStatus.

Message describing the status of the Process.

Generated from protobuf message `google.cloud.visionai.v1.RunStatus`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` The state of the Process. |
| `↳ reason` | `string` The reason of becoming the state. |

### getState

The state of the Process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.RunStatus.State). |

### setState

The state of the Process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.RunStatus.State). |

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

### getReason

The reason of becoming the state.

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

### setReason

The reason of becoming the state.

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

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