# Google Cloud Build V2 Client - Class InstallationState (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.16.3 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.3 0.6.1 0.5.1 0.4.0 0.3.8 Reference documentation and code samples for the Google Cloud Build V2 Client class InstallationState.

Describes stage and necessary actions to be taken by the
user to complete the installation. Used for GitHub and GitHub Enterprise
based connections.

Generated from protobuf message `google.devtools.cloudbuild.v2.InstallationState`

## Namespace

Google \\ Cloud \\ Build \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ stage` | `int` Output only. Current step of the installation process. |
| `↳ message` | `string` Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete. |
| `↳ action_uri` | `string` Output only. Link to follow for next action. Empty string if the installation is already complete. |

### getStage

Output only. Current step of the installation process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Stage](https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.InstallationState.Stage). |

### setStage

Output only. Current step of the installation process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Stage](https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.InstallationState.Stage). |

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

### getMessage

Output only. Message of what the user should do next to continue the
installation. Empty string if the installation is already complete.

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

### setMessage

Output only. Message of what the user should do next to continue the
installation. Empty string if the installation is already complete.

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

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

### getActionUri

Output only. Link to follow for next action. Empty string if the
installation is already complete.

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

### setActionUri

Output only. Link to follow for next action. Empty string if the
installation is already complete.

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

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