# Interface ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAppVersion()

    public abstract String getAppVersion()

Optional. App version of the traffic allocation.
Format:
`projects/{project}/locations/{location}/apps/{app}/versions/{version}`

`
string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The appVersion. |

### getAppVersionBytes()

    public abstract ByteString getAppVersionBytes()

Optional. App version of the traffic allocation.
Format:
`projects/{project}/locations/{location}/apps/{app}/versions/{version}`

`
string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for appVersion. |

### getId()

    public abstract String getId()

Optional. Id of the traffic allocation.
Free format string, up to 128 characters.

`string id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Optional. Id of the traffic allocation.
Free format string, up to 128 characters.

`string id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getTrafficPercentage()

    public abstract int getTrafficPercentage()

Optional. Traffic percentage of the traffic allocation.
Must be between 0 and 100.

`int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The trafficPercentage. |