# Google Cloud Shell V1 Client - Class StartEnvironmentResponse (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 StartEnvironmentResponse.

Message included in the response 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__)
once the operation is complete.

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

## Namespace

Google \\ Cloud \\ Shell \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-shell/latest/V1.Environment` Environment that was started. |

### getEnvironment

Environment that was started.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-shell/latest/V1.Environment|null` |   |

### hasEnvironment

### clearEnvironment

### setEnvironment

Environment that was started.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-shell/latest/V1.Environment` |

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