Class RolloutConfig.Builder (0.14.2)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep>
Returns
TypeDescription
RolloutConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRolloutConfig.RolloutStep
Returns
TypeDescription
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
NameDescription
builderForValueRolloutConfig.RolloutStep.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRolloutConfig.RolloutStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRolloutConfig.RolloutStep.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RolloutConfig.RolloutStep.Builder

build()

public RolloutConfig build()
Returns
TypeDescription
RolloutConfig

buildPartial()

public RolloutConfig buildPartial()
Returns
TypeDescription
RolloutConfig

clear()

public RolloutConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
RolloutConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RolloutConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RolloutConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RolloutConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RolloutConfig.Builder

clone()

public RolloutConfig.Builder clone()
Returns
TypeDescription
RolloutConfig.Builder
Overrides

getDefaultInstanceForType()

public RolloutConfig getDefaultInstanceForType()
Returns
TypeDescription
RolloutConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStepOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RolloutConfig other)

public RolloutConfig.Builder mergeFrom(RolloutConfig other)
Parameter
NameDescription
otherRolloutConfig
Returns
TypeDescription
RolloutConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RolloutConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RolloutConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RolloutConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RolloutConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The failureCondition to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for failureCondition to set.

Returns
TypeDescription
RolloutConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RolloutConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RolloutConfig.Builder
Overrides

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

public RolloutConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The rolloutCondition to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for rolloutCondition to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRolloutConfig.RolloutStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRolloutConfig.RolloutStep.Builder
Returns
TypeDescription
RolloutConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RolloutConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RolloutConfig.Builder
Overrides