# Google Cloud Shell V1 Client - Class StartEnvironmentMetadata (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.4 Reference documentation and code samples for the Google Cloud Shell V1 Client class StartEnvironmentMetadata.

Message included in the metadata field of operations returned from
[StartEnvironment](https://docs.cloud.google.com/php/docs/reference/cloud-shell/latest/V1.Client.CloudShellServiceClient#_Google_Cloud_Shell_V1_Client_CloudShellServiceClient__startEnvironment__).

Generated from protobuf message `google.cloud.shell.v1.StartEnvironmentMetadata`

## Namespace

Google \\ Cloud \\ Shell \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Current state of the environment being started. |

### getState

Current state of the environment being started.

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

### setState

Current state of the environment being started.

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

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