Class ExperimentConfig.VersionRelease.Builder (0.9.0)

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

Version release for the experiment.

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

Static Methods

getDescriptor()

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

Methods

addAllTrafficAllocations(Iterable<? extends ExperimentConfig.VersionRelease.TrafficAllocation> values)

public ExperimentConfig.VersionRelease.Builder addAllTrafficAllocations(Iterable<? extends ExperimentConfig.VersionRelease.TrafficAllocation> values)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation>
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

addTrafficAllocations(ExperimentConfig.VersionRelease.TrafficAllocation value)

public ExperimentConfig.VersionRelease.Builder addTrafficAllocations(ExperimentConfig.VersionRelease.TrafficAllocation value)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExperimentConfig.VersionRelease.TrafficAllocation
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

addTrafficAllocations(ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

public ExperimentConfig.VersionRelease.Builder addTrafficAllocations(ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

addTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation value)

public ExperimentConfig.VersionRelease.Builder addTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation value)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ExperimentConfig.VersionRelease.TrafficAllocation
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

addTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

public ExperimentConfig.VersionRelease.Builder addTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

addTrafficAllocationsBuilder()

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder addTrafficAllocationsBuilder()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

addTrafficAllocationsBuilder(int index)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder addTrafficAllocationsBuilder(int index)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

build()

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

buildPartial()

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

clear()

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

clearState()

public ExperimentConfig.VersionRelease.Builder clearState()

Optional. State of the version release.

.google.cloud.ces.v1beta.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExperimentConfig.VersionRelease.Builder

This builder for chaining.

clearTrafficAllocations()

public ExperimentConfig.VersionRelease.Builder clearTrafficAllocations()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExperimentConfig.VersionRelease.Builder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getState()

public ExperimentConfig.State getState()

Optional. State of the version release.

.google.cloud.ces.v1beta.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExperimentConfig.State

The state.

getStateValue()

public int getStateValue()

Optional. State of the version release.

.google.cloud.ces.v1beta.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTrafficAllocations(int index)

public ExperimentConfig.VersionRelease.TrafficAllocation getTrafficAllocations(int index)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation

getTrafficAllocationsBuilder(int index)

public ExperimentConfig.VersionRelease.TrafficAllocation.Builder getTrafficAllocationsBuilder(int index)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocation.Builder

getTrafficAllocationsBuilderList()

public List<ExperimentConfig.VersionRelease.TrafficAllocation.Builder> getTrafficAllocationsBuilderList()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getTrafficAllocationsCount()

public int getTrafficAllocationsCount()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTrafficAllocationsList()

public List<ExperimentConfig.VersionRelease.TrafficAllocation> getTrafficAllocationsList()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<TrafficAllocation>

getTrafficAllocationsOrBuilder(int index)

public ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder getTrafficAllocationsOrBuilder(int index)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder

getTrafficAllocationsOrBuilderList()

public List<? extends ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder> getTrafficAllocationsOrBuilderList()

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocationOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExperimentConfig.VersionRelease other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTrafficAllocations(int index)

public ExperimentConfig.VersionRelease.Builder removeTrafficAllocations(int index)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

setState(ExperimentConfig.State value)

public ExperimentConfig.VersionRelease.Builder setState(ExperimentConfig.State value)

Optional. State of the version release.

.google.cloud.ces.v1beta.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExperimentConfig.State

The state to set.

Returns
Type Description
ExperimentConfig.VersionRelease.Builder

This builder for chaining.

setStateValue(int value)

public ExperimentConfig.VersionRelease.Builder setStateValue(int value)

Optional. State of the version release.

.google.cloud.ces.v1beta.ExperimentConfig.State state = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
ExperimentConfig.VersionRelease.Builder

This builder for chaining.

setTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation value)

public ExperimentConfig.VersionRelease.Builder setTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation value)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ExperimentConfig.VersionRelease.TrafficAllocation
Returns
Type Description
ExperimentConfig.VersionRelease.Builder

setTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

public ExperimentConfig.VersionRelease.Builder setTrafficAllocations(int index, ExperimentConfig.VersionRelease.TrafficAllocation.Builder builderForValue)

Optional. Traffic allocations for the version release.

repeated .google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation traffic_allocations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ExperimentConfig.VersionRelease.TrafficAllocation.Builder
Returns
Type Description
ExperimentConfig.VersionRelease.Builder