# Google Cloud Functions V2 Client - Class Environment (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.7.0 1.6.5 1.5.0 1.4.2 1.3.1 1.2.0 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Functions V2 Client class Environment.

The environment the function is hosted on.

Protobuf type `google.cloud.functions.v2.Environment`

## Namespace

Google \\ Cloud \\ Functions \\ V2

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ENVIRONMENT_UNSPECIFIED

    Value: 0

Unspecified

Generated from protobuf enum `ENVIRONMENT_UNSPECIFIED = 0;`

### GEN_1

    Value: 1

Gen 1

Generated from protobuf enum `GEN_1 = 1;`

### GEN_2

    Value: 2

Gen 2

Generated from protobuf enum `GEN_2 = 2;`