0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class VersionRelease.

Version release for the experiment.

Generated from protobuf message `google.cloud.ces.v1.ExperimentConfig.VersionRelease`

## Namespace

Google \\ Cloud \\ Ces \\ V1 \\ ExperimentConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Optional. State of the version release. |
| `↳ traffic_allocations` | `array<VersionRelease\TrafficAllocation>` Optional. Traffic allocations for the version release. |

### getState

Optional. State of the version release.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ExperimentConfig.State.md.txt). |

### setState

Optional. State of the version release.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ExperimentConfig.State.md.txt). |

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

### getTrafficAllocations

Optional. Traffic allocations for the version release.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<VersionRelease\TrafficAllocation>` |   |

### setTrafficAllocations

Optional. Traffic allocations for the version release.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<VersionRelease\TrafficAllocation>` |

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