# Google Cloud Dataplex V1 Client - Class Environment (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class Environment.

Environment represents a user-visible compute infrastructure for analytics
within a lake.

Generated from protobuf message `google.cloud.dataplex.v1.Environment`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The relative resource name of the environment, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} |
| `↳ display_name` | `string` Optional. User friendly display name. |
| `↳ uid` | `string` Output only. System generated globally unique ID for the environment. This ID will be different if the environment is deleted and re-created with the same name. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Environment creation time. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the environment was last updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. User defined labels for the environment. |
| `↳ description` | `string` Optional. Description of the environment. |
| `↳ state` | `int` Output only. Current state of the environment. |
| `↳ infrastructure_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Environment.InfrastructureSpec` Required. Infrastructure specification for the Environment. |
| `↳ session_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Environment.SessionSpec` Optional. Configuration for sessions created for this environment. |
| `↳ session_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Environment.SessionStatus` Output only. Status of sessions created for this environment. |
| `↳ endpoints` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Environment.Endpoints` Output only. URI Endpoints to access sessions associated with the Environment. |

### getName

Output only. The relative resource name of the environment, of the form:
projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}

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

### setName

Output only. The relative resource name of the environment, of the form:
projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}

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

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

### getDisplayName

Optional. User friendly display name.

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

### setDisplayName

Optional. User friendly display name.

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

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

### getUid

Output only. System generated globally unique ID for the environment. This
ID will be different if the environment is deleted and re-created with the
same name.

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

### setUid

Output only. System generated globally unique ID for the environment. This
ID will be different if the environment is deleted and re-created with the
same name.

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

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

### getCreateTime

Output only. Environment creation time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Environment creation time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the environment was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the environment was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. User defined labels for the environment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. User defined labels for the environment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getDescription

Optional. Description of the environment.

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

### setDescription

Optional. Description of the environment.

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

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

### getState

Output only. Current state of the environment.

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

### setState

Output only. Current state of the environment.

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

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

### getInfrastructureSpec

Required. Infrastructure specification for the Environment.

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

### hasInfrastructureSpec

### clearInfrastructureSpec

### setInfrastructureSpec

Required. Infrastructure specification for the Environment.

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

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

### getSessionSpec

Optional. Configuration for sessions created for this environment.

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

### hasSessionSpec

### clearSessionSpec

### setSessionSpec

Optional. Configuration for sessions created for this environment.

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

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

### getSessionStatus

Output only. Status of sessions created for this environment.

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

### hasSessionStatus

### clearSessionStatus

### setSessionStatus

Output only. Status of sessions created for this environment.

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

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

### getEndpoints

Output only. URI Endpoints to access sessions associated with the
Environment.

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

### hasEndpoints

### clearEndpoints

### setEndpoints

Output only. URI Endpoints to access sessions associated with the
Environment.

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

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