# Google Cloud Dialogflow Cx V3 Client - Class Definition (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 Definition.

Definition of the experiment.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Experiment.Definition`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ condition` | `string` The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input.language_code=en" See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). |
| `↳ version_variants` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.VersionVariants` The flow versions as the variants of this experiment. |

### getCondition

The condition defines which subset of sessions are selected for
this experiment. If not specified, all sessions are eligible. E.g.

"query_input.language_code=en" See the [conditions
reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).

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

### setCondition

The condition defines which subset of sessions are selected for
this experiment. If not specified, all sessions are eligible. E.g.

"query_input.language_code=en" See the [conditions
reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).

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

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

### getVersionVariants

The flow versions as the variants of this experiment.

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

### hasVersionVariants

### setVersionVariants

The flow versions as the variants of this experiment.

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

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

### getVariants

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