1.1.0 (latest) 1.0.0

    public sealed class ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation : IMessage<ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation>, IEquatable<ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation>, IDeepCloneable<ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation.

Traffic allocation for the version release.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ExperimentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.md.txt)[VersionRelease](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.md.txt)[TrafficAllocation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExperimentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.md.txt)[VersionRelease](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.md.txt)[TrafficAllocation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ExperimentConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.md.txt)[VersionRelease](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.md.txt)[TrafficAllocation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### TrafficAllocation()

    public TrafficAllocation()

### TrafficAllocation(TrafficAllocation)

    public TrafficAllocation(ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ExperimentConfigTypesVersionReleaseTypesTrafficAllocation` |

## Properties

### AppVersion

    public string AppVersion { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### AppVersionAsAppVersionName

    public AppVersionName AppVersionAsAppVersionName { get; set; }

[AppVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.AppVersionName.md.txt)-typed view over the [AppVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ExperimentConfig.Types.VersionRelease.Types.TrafficAllocation.md.txt#Google_Cloud_Ces_V1_ExperimentConfig_Types_VersionRelease_Types_TrafficAllocation_AppVersion) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AppVersionName` |   |

### Id

    public string Id { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TrafficPercentage

    public int TrafficPercentage { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |