# Google Cloud Functions V2 Client - Class Runtime (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 Runtime.

Describes a runtime and any special information (e.g., deprecation status)
related to it.

Generated from protobuf message `google.cloud.functions.v2.ListRuntimesResponse.Runtime`

## Namespace

Google \\ Cloud \\ Functions \\ V2 \\ ListRuntimesResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the runtime, e.g., 'go113', 'nodejs12', etc. |
| `↳ display_name` | `string` The user facing name, eg 'Go 1.13', 'Node.js 12', etc. |
| `↳ stage` | `int` The stage of life this runtime is in, e.g., BETA, GA, etc. |
| `↳ warnings` | `string[]` Warning messages, e.g., a deprecation warning. |
| `↳ environment` | `int` The environment for the runtime. |
| `↳ deprecation_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Deprecation date for the runtime. |
| `↳ decommission_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Decommission date for the runtime. |

### getName

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

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

### setName

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

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

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

### getDisplayName

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

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

### setDisplayName

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

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

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

### getStage

The stage of life this runtime is in, e.g., BETA, GA, etc.

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

### setStage

The stage of life this runtime is in, e.g., BETA, GA, etc.

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

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

### getWarnings

Warning messages, e.g., a deprecation warning.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setWarnings

Warning messages, e.g., a deprecation warning.

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

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

### getEnvironment

The environment for the runtime.

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

### setEnvironment

The environment for the runtime.

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

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

### getDeprecationDate

Deprecation date for the runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasDeprecationDate

### clearDeprecationDate

### setDeprecationDate

Deprecation date for the runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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

### getDecommissionDate

Decommission date for the runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasDecommissionDate

### clearDecommissionDate

### setDecommissionDate

Decommission date for the runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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