Class RolloutConfig.Builder (0.11.5)

public static final class RolloutConfig.Builder extends GeneratedMessageV3.Builder<RolloutConfig.Builder> implements RolloutConfigOrBuilder

The configuration for auto rollout.

Protobuf type google.cloud.dialogflow.cx.v3.RolloutConfig

Static Methods

getDescriptor()

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

Methods

addAllRolloutSteps(Iterable<? extends RolloutConfig.RolloutStep> values)

public RolloutConfig.Builder addAllRolloutSteps(Iterable<? extends RolloutConfig.RolloutStep> values)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep>
Returns
Type Description
RolloutConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RolloutConfig.Builder
Overrides

addRolloutSteps(RolloutConfig.RolloutStep value)

public RolloutConfig.Builder addRolloutSteps(RolloutConfig.RolloutStep value)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
value RolloutConfig.RolloutStep
Returns
Type Description
RolloutConfig.Builder

addRolloutSteps(RolloutConfig.RolloutStep.Builder builderForValue)

public RolloutConfig.Builder addRolloutSteps(RolloutConfig.RolloutStep.Builder builderForValue)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
builderForValue RolloutConfig.RolloutStep.Builder
Returns
Type Description
RolloutConfig.Builder

addRolloutSteps(int index, RolloutConfig.RolloutStep value)

public RolloutConfig.Builder addRolloutSteps(int index, RolloutConfig.RolloutStep value)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameters
Name Description
index int
value RolloutConfig.RolloutStep
Returns
Type Description
RolloutConfig.Builder

addRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)

public RolloutConfig.Builder addRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameters
Name Description
index int
builderForValue RolloutConfig.RolloutStep.Builder
Returns
Type Description
RolloutConfig.Builder

addRolloutStepsBuilder()

public RolloutConfig.RolloutStep.Builder addRolloutStepsBuilder()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
RolloutConfig.RolloutStep.Builder

addRolloutStepsBuilder(int index)

public RolloutConfig.RolloutStep.Builder addRolloutStepsBuilder(int index)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
index int
Returns
Type Description
RolloutConfig.RolloutStep.Builder

build()

public RolloutConfig build()
Returns
Type Description
RolloutConfig

buildPartial()

public RolloutConfig buildPartial()
Returns
Type Description
RolloutConfig

clear()

public RolloutConfig.Builder clear()
Returns
Type Description
RolloutConfig.Builder
Overrides

clearFailureCondition()

public RolloutConfig.Builder clearFailureCondition()

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference.

string failure_condition = 3;

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RolloutConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RolloutConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RolloutConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RolloutConfig.Builder
Overrides

clearRolloutCondition()

public RolloutConfig.Builder clearRolloutCondition()

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference.

string rollout_condition = 2;

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

clearRolloutSteps()

public RolloutConfig.Builder clearRolloutSteps()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
RolloutConfig.Builder

clone()

public RolloutConfig.Builder clone()
Returns
Type Description
RolloutConfig.Builder
Overrides

getDefaultInstanceForType()

public RolloutConfig getDefaultInstanceForType()
Returns
Type Description
RolloutConfig

getDescriptorForType()

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

getFailureCondition()

public String getFailureCondition()

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference.

string failure_condition = 3;

Returns
Type Description
String

The failureCondition.

getFailureConditionBytes()

public ByteString getFailureConditionBytes()

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference.

string failure_condition = 3;

Returns
Type Description
ByteString

The bytes for failureCondition.

getRolloutCondition()

public String getRolloutCondition()

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference.

string rollout_condition = 2;

Returns
Type Description
String

The rolloutCondition.

getRolloutConditionBytes()

public ByteString getRolloutConditionBytes()

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference.

string rollout_condition = 2;

Returns
Type Description
ByteString

The bytes for rolloutCondition.

getRolloutSteps(int index)

public RolloutConfig.RolloutStep getRolloutSteps(int index)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
index int
Returns
Type Description
RolloutConfig.RolloutStep

getRolloutStepsBuilder(int index)

public RolloutConfig.RolloutStep.Builder getRolloutStepsBuilder(int index)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
index int
Returns
Type Description
RolloutConfig.RolloutStep.Builder

getRolloutStepsBuilderList()

public List<RolloutConfig.RolloutStep.Builder> getRolloutStepsBuilderList()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
List<Builder>

getRolloutStepsCount()

public int getRolloutStepsCount()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
int

getRolloutStepsList()

public List<RolloutConfig.RolloutStep> getRolloutStepsList()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
List<RolloutStep>

getRolloutStepsOrBuilder(int index)

public RolloutConfig.RolloutStepOrBuilder getRolloutStepsOrBuilder(int index)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
index int
Returns
Type Description
RolloutConfig.RolloutStepOrBuilder

getRolloutStepsOrBuilderList()

public List<? extends RolloutConfig.RolloutStepOrBuilder> getRolloutStepsOrBuilderList()

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStepOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RolloutConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RolloutConfig.Builder
Overrides

removeRolloutSteps(int index)

public RolloutConfig.Builder removeRolloutSteps(int index)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameter
Name Description
index int
Returns
Type Description
RolloutConfig.Builder

setFailureCondition(String value)

public RolloutConfig.Builder setFailureCondition(String value)

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference.

string failure_condition = 3;

Parameter
Name Description
value String

The failureCondition to set.

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

setFailureConditionBytes(ByteString value)

public RolloutConfig.Builder setFailureConditionBytes(ByteString value)

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference.

string failure_condition = 3;

Parameter
Name Description
value ByteString

The bytes for failureCondition to set.

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RolloutConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RolloutConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RolloutConfig.Builder
Overrides

setRolloutCondition(String value)

public RolloutConfig.Builder setRolloutCondition(String value)

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference.

string rollout_condition = 2;

Parameter
Name Description
value String

The rolloutCondition to set.

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

setRolloutConditionBytes(ByteString value)

public RolloutConfig.Builder setRolloutConditionBytes(ByteString value)

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference.

string rollout_condition = 2;

Parameter
Name Description
value ByteString

The bytes for rolloutCondition to set.

Returns
Type Description
RolloutConfig.Builder

This builder for chaining.

setRolloutSteps(int index, RolloutConfig.RolloutStep value)

public RolloutConfig.Builder setRolloutSteps(int index, RolloutConfig.RolloutStep value)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameters
Name Description
index int
value RolloutConfig.RolloutStep
Returns
Type Description
RolloutConfig.Builder

setRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)

public RolloutConfig.Builder setRolloutSteps(int index, RolloutConfig.RolloutStep.Builder builderForValue)

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.

repeated .google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep rollout_steps = 1;

Parameters
Name Description
index int
builderForValue RolloutConfig.RolloutStep.Builder
Returns
Type Description
RolloutConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RolloutConfig.Builder
Overrides