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

Version variant and associated metrics.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `string` The name of the flow [Version](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `↳ metrics` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Experiment.Result.Metric>` The metrics and corresponding confidence intervals in the inference result. |
| `↳ session_count` | `int` Number of sessions that were allocated to this version. |

### getVersion

The name of the flow [Version](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.

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

### setVersion

The name of the flow [Version](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Version).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.

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

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

### getMetrics

The metrics and corresponding confidence intervals in the inference
result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Experiment.Result.Metric>` |   |

### setMetrics

The metrics and corresponding confidence intervals in the inference
result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Experiment.Result.Metric>` |

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

### getSessionCount

Number of sessions that were allocated to this version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setSessionCount

Number of sessions that were allocated to this version.

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

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