Class ExperimentConfig.VersionRelease.TrafficAllocation.Builder (0.9.0)

public static final class ExperimentConfig.VersionRelease.TrafficAllocation.Builder extends GeneratedMessage.Builder<ExperimentConfig.VersionRelease.TrafficAllocation.Builder> implements ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder

Traffic allocation for the version release.

Protobuf type google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ExperimentConfig.VersionRelease.TrafficAllocation build()
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation

buildPartial()

public ExperimentConfig.VersionRelease.TrafficAllocation buildPartial()
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation

clear()

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder clear()
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Overrides

clearAppVersion()

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder clearAppVersion()

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
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

clearId()

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder clearId()

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

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

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

clearTrafficPercentage()

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder clearTrafficPercentage()

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
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

getAppVersion()

public 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
String

The appVersion.

getAppVersionBytes()

public 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
ByteString

The bytes for appVersion.

getDefaultInstanceForType()

public ExperimentConfig.VersionRelease.TrafficAllocation getDefaultInstanceForType()
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public 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
String

The id.

getIdBytes()

public 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
ByteString

The bytes for id.

getTrafficPercentage()

public 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
int

The trafficPercentage.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExperimentConfig.VersionRelease.TrafficAllocation other)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder mergeFrom(ExperimentConfig.VersionRelease.TrafficAllocation other)
Parameter
Name Description
other ExperimentConfig.VersionRelease.TrafficAllocation
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Overrides

setAppVersion(String value)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder setAppVersion(String value)

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) = { ... }

Parameter
Name Description
value String

The appVersion to set.

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

setAppVersionBytes(ByteString value)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder setAppVersionBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for appVersion to set.

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

setId(String value)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder setId(String value)

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

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

setIdBytes(ByteString value)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder setIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.

setTrafficPercentage(int value)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder setTrafficPercentage(int value)

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

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

Parameter
Name Description
value int

The trafficPercentage to set.

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

This builder for chaining.