# Google Cloud Dialogflow Cx V3 Client - Class Version (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Version.

Represents a version of a flow.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Version`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Format: projects/ |
| `↳ display_name` | `string` Required. The human-readable name of the version. Limit of 64 characters. |
| `↳ description` | `string` The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected. |
| `↳ nlu_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.NluSettings` Output only. The NLU settings of the flow at version creation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Create time of the version. |
| `↳ state` | `int` Output only. The state of this version. This field is read-only and cannot be set by create and update methods. |

### getName

Format:
projects/


Version ID is a self-increasing number generated by Dialogflow upon version
creation.

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

### setName

Format:
projects/


Version ID is a self-increasing number generated by Dialogflow upon version
creation.

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

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

### getDisplayName

Required. The human-readable name of the version. Limit of 64 characters.

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

### setDisplayName

Required. The human-readable name of the version. Limit of 64 characters.

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

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

### getDescription

The description of the version. The maximum length is 500 characters. If
exceeded, the request is rejected.

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

### setDescription

The description of the version. The maximum length is 500 characters. If
exceeded, the request is rejected.

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

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

### getNluSettings

Output only. The NLU settings of the flow at version creation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.NluSettings|null` |   |

### hasNluSettings

### clearNluSettings

### setNluSettings

Output only. The NLU settings of the flow at version creation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.NluSettings` |

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

### getCreateTime

Output only. Create time of the version.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create time of the version.

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

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

### getState

Output only. The state of this version. This field is read-only and cannot
be set by create and update methods.

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

### setState

Output only. The state of this version. This field is read-only and cannot
be set by create and update methods.

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

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