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 TrafficAllocation.

Traffic allocation for the version release.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Optional. Id of the traffic allocation. Free format string, up to 128 characters. |
| `↳ traffic_percentage` | `int` Optional. Traffic percentage of the traffic allocation. Must be between 0 and 100. |
| `↳ app_version` | `string` Optional. App version of the traffic allocation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` |

### getId

Optional. Id of the traffic allocation.

Free format string, up to 128 characters.

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

### setId

Optional. Id of the traffic allocation.

Free format string, up to 128 characters.

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

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

### getTrafficPercentage

Optional. Traffic percentage of the traffic allocation.

Must be between 0 and 100.

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

### setTrafficPercentage

Optional. Traffic percentage of the traffic allocation.

Must be between 0 and 100.

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

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

### getAppVersion

Optional. App version of the traffic allocation.

Format:
`projects/{project}/locations/{location}/apps/{app}/versions/{version}`

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

### setAppVersion

Optional. App version of the traffic allocation.

Format:
`projects/{project}/locations/{location}/apps/{app}/versions/{version}`

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

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