Class Experiment.Builder (0.14.2)

public static final class Experiment.Builder extends GeneratedMessageV3.Builder<Experiment.Builder> implements ExperimentOrBuilder

Represents an experiment in an environment.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Experiment

Implements

ExperimentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVariantsHistory(Iterable<? extends VariantsHistory> values)

public Experiment.Builder addAllVariantsHistory(Iterable<? extends VariantsHistory> values)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory>
Returns
TypeDescription
Experiment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVariantsHistory(VariantsHistory value)

public Experiment.Builder addVariantsHistory(VariantsHistory value)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
valueVariantsHistory
Returns
TypeDescription
Experiment.Builder

addVariantsHistory(VariantsHistory.Builder builderForValue)

public Experiment.Builder addVariantsHistory(VariantsHistory.Builder builderForValue)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
builderForValueVariantsHistory.Builder
Returns
TypeDescription
Experiment.Builder

addVariantsHistory(int index, VariantsHistory value)

public Experiment.Builder addVariantsHistory(int index, VariantsHistory value)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameters
NameDescription
indexint
valueVariantsHistory
Returns
TypeDescription
Experiment.Builder

addVariantsHistory(int index, VariantsHistory.Builder builderForValue)

public Experiment.Builder addVariantsHistory(int index, VariantsHistory.Builder builderForValue)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameters
NameDescription
indexint
builderForValueVariantsHistory.Builder
Returns
TypeDescription
Experiment.Builder

addVariantsHistoryBuilder()

public VariantsHistory.Builder addVariantsHistoryBuilder()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
VariantsHistory.Builder

addVariantsHistoryBuilder(int index)

public VariantsHistory.Builder addVariantsHistoryBuilder(int index)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
VariantsHistory.Builder

build()

public Experiment build()
Returns
TypeDescription
Experiment

buildPartial()

public Experiment buildPartial()
Returns
TypeDescription
Experiment

clear()

public Experiment.Builder clear()
Returns
TypeDescription
Experiment.Builder
Overrides

clearCreateTime()

public Experiment.Builder clearCreateTime()

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Experiment.Builder

clearDefinition()

public Experiment.Builder clearDefinition()

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Returns
TypeDescription
Experiment.Builder

clearDescription()

public Experiment.Builder clearDescription()

The human-readable description of the experiment.

string description = 3;

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

clearDisplayName()

public Experiment.Builder clearDisplayName()

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

clearEndTime()

public Experiment.Builder clearEndTime()

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Returns
TypeDescription
Experiment.Builder

clearExperimentLength()

public Experiment.Builder clearExperimentLength()

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Returns
TypeDescription
Experiment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public Experiment.Builder clearLastUpdateTime()

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Returns
TypeDescription
Experiment.Builder

clearName()

public Experiment.Builder clearName()

The name of the experiment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/experiments/<Experiment ID>..

string name = 1;

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Experiment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Experiment.Builder
Overrides

clearResult()

public Experiment.Builder clearResult()

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Returns
TypeDescription
Experiment.Builder

clearRolloutConfig()

public Experiment.Builder clearRolloutConfig()

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Returns
TypeDescription
Experiment.Builder

clearRolloutFailureReason()

public Experiment.Builder clearRolloutFailureReason()

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

string rollout_failure_reason = 16;

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

clearRolloutState()

public Experiment.Builder clearRolloutState()

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Returns
TypeDescription
Experiment.Builder

clearStartTime()

public Experiment.Builder clearStartTime()

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Returns
TypeDescription
Experiment.Builder

clearState()

public Experiment.Builder clearState()

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

.google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4;

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

clearVariantsHistory()

public Experiment.Builder clearVariantsHistory()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
Experiment.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Experiment getDefaultInstanceForType()
Returns
TypeDescription
Experiment

getDefinition()

public Experiment.Definition getDefinition()

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Returns
TypeDescription
Experiment.Definition

The definition.

getDefinitionBuilder()

public Experiment.Definition.Builder getDefinitionBuilder()

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Returns
TypeDescription
Experiment.Definition.Builder

getDefinitionOrBuilder()

public Experiment.DefinitionOrBuilder getDefinitionOrBuilder()

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Returns
TypeDescription
Experiment.DefinitionOrBuilder

getDescription()

public String getDescription()

The human-readable description of the experiment.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The human-readable description of the experiment.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getEndTime()

public Timestamp getEndTime()

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Returns
TypeDescription
TimestampOrBuilder

getExperimentLength()

public Duration getExperimentLength()

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Returns
TypeDescription
Duration

The experimentLength.

getExperimentLengthBuilder()

public Duration.Builder getExperimentLengthBuilder()

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Returns
TypeDescription
Builder

getExperimentLengthOrBuilder()

public DurationOrBuilder getExperimentLengthOrBuilder()

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Returns
TypeDescription
DurationOrBuilder

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Returns
TypeDescription
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Returns
TypeDescription
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

The name of the experiment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/experiments/<Experiment ID>..

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the experiment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/experiments/<Experiment ID>..

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getResult()

public Experiment.Result getResult()

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Returns
TypeDescription
Experiment.Result

The result.

getResultBuilder()

public Experiment.Result.Builder getResultBuilder()

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Returns
TypeDescription
Experiment.Result.Builder

getResultOrBuilder()

public Experiment.ResultOrBuilder getResultOrBuilder()

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Returns
TypeDescription
Experiment.ResultOrBuilder

getRolloutConfig()

public RolloutConfig getRolloutConfig()

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Returns
TypeDescription
RolloutConfig

The rolloutConfig.

getRolloutConfigBuilder()

public RolloutConfig.Builder getRolloutConfigBuilder()

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Returns
TypeDescription
RolloutConfig.Builder

getRolloutConfigOrBuilder()

public RolloutConfigOrBuilder getRolloutConfigOrBuilder()

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Returns
TypeDescription
RolloutConfigOrBuilder

getRolloutFailureReason()

public String getRolloutFailureReason()

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

string rollout_failure_reason = 16;

Returns
TypeDescription
String

The rolloutFailureReason.

getRolloutFailureReasonBytes()

public ByteString getRolloutFailureReasonBytes()

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

string rollout_failure_reason = 16;

Returns
TypeDescription
ByteString

The bytes for rolloutFailureReason.

getRolloutState()

public RolloutState getRolloutState()

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Returns
TypeDescription
RolloutState

The rolloutState.

getRolloutStateBuilder()

public RolloutState.Builder getRolloutStateBuilder()

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Returns
TypeDescription
RolloutState.Builder

getRolloutStateOrBuilder()

public RolloutStateOrBuilder getRolloutStateOrBuilder()

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Returns
TypeDescription
RolloutStateOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getState()

public Experiment.State getState()

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

.google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4;

Returns
TypeDescription
Experiment.State

The state.

getStateValue()

public int getStateValue()

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

.google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getVariantsHistory(int index)

public VariantsHistory getVariantsHistory(int index)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
VariantsHistory

getVariantsHistoryBuilder(int index)

public VariantsHistory.Builder getVariantsHistoryBuilder(int index)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
VariantsHistory.Builder

getVariantsHistoryBuilderList()

public List<VariantsHistory.Builder> getVariantsHistoryBuilderList()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
List<Builder>

getVariantsHistoryCount()

public int getVariantsHistoryCount()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
int

getVariantsHistoryList()

public List<VariantsHistory> getVariantsHistoryList()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
List<VariantsHistory>

getVariantsHistoryOrBuilder(int index)

public VariantsHistoryOrBuilder getVariantsHistoryOrBuilder(int index)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
VariantsHistoryOrBuilder

getVariantsHistoryOrBuilderList()

public List<? extends VariantsHistoryOrBuilder> getVariantsHistoryOrBuilderList()

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDefinition()

public boolean hasDefinition()

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Returns
TypeDescription
boolean

Whether the definition field is set.

hasEndTime()

public boolean hasEndTime()

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasExperimentLength()

public boolean hasExperimentLength()

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Returns
TypeDescription
boolean

Whether the experimentLength field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Returns
TypeDescription
boolean

Whether the lastUpdateTime field is set.

hasResult()

public boolean hasResult()

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Returns
TypeDescription
boolean

Whether the result field is set.

hasRolloutConfig()

public boolean hasRolloutConfig()

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Returns
TypeDescription
boolean

Whether the rolloutConfig field is set.

hasRolloutState()

public boolean hasRolloutState()

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Returns
TypeDescription
boolean

Whether the rolloutState field is set.

hasStartTime()

public boolean hasStartTime()

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Experiment.Builder mergeCreateTime(Timestamp value)

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

mergeDefinition(Experiment.Definition value)

public Experiment.Builder mergeDefinition(Experiment.Definition value)

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Parameter
NameDescription
valueExperiment.Definition
Returns
TypeDescription
Experiment.Builder

mergeEndTime(Timestamp value)

public Experiment.Builder mergeEndTime(Timestamp value)

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

mergeExperimentLength(Duration value)

public Experiment.Builder mergeExperimentLength(Duration value)

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Experiment.Builder

mergeFrom(Experiment other)

public Experiment.Builder mergeFrom(Experiment other)
Parameter
NameDescription
otherExperiment
Returns
TypeDescription
Experiment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public Experiment.Builder mergeLastUpdateTime(Timestamp value)

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

mergeResult(Experiment.Result value)

public Experiment.Builder mergeResult(Experiment.Result value)

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Parameter
NameDescription
valueExperiment.Result
Returns
TypeDescription
Experiment.Builder

mergeRolloutConfig(RolloutConfig value)

public Experiment.Builder mergeRolloutConfig(RolloutConfig value)

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Parameter
NameDescription
valueRolloutConfig
Returns
TypeDescription
Experiment.Builder

mergeRolloutState(RolloutState value)

public Experiment.Builder mergeRolloutState(RolloutState value)

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Parameter
NameDescription
valueRolloutState
Returns
TypeDescription
Experiment.Builder

mergeStartTime(Timestamp value)

public Experiment.Builder mergeStartTime(Timestamp value)

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Experiment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Experiment.Builder
Overrides

removeVariantsHistory(int index)

public Experiment.Builder removeVariantsHistory(int index)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
Experiment.Builder

setCreateTime(Timestamp value)

public Experiment.Builder setCreateTime(Timestamp value)

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Experiment.Builder setCreateTime(Timestamp.Builder builderForValue)

Creation time of this experiment.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Experiment.Builder

setDefinition(Experiment.Definition value)

public Experiment.Builder setDefinition(Experiment.Definition value)

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Parameter
NameDescription
valueExperiment.Definition
Returns
TypeDescription
Experiment.Builder

setDefinition(Experiment.Definition.Builder builderForValue)

public Experiment.Builder setDefinition(Experiment.Definition.Builder builderForValue)

The definition of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5;

Parameter
NameDescription
builderForValueExperiment.Definition.Builder
Returns
TypeDescription
Experiment.Builder

setDescription(String value)

public Experiment.Builder setDescription(String value)

The human-readable description of the experiment.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Experiment.Builder setDescriptionBytes(ByteString value)

The human-readable description of the experiment.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setDisplayName(String value)

public Experiment.Builder setDisplayName(String value)

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Experiment.Builder setDisplayNameBytes(ByteString value)

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setEndTime(Timestamp value)

public Experiment.Builder setEndTime(Timestamp value)

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

setEndTime(Timestamp.Builder builderForValue)

public Experiment.Builder setEndTime(Timestamp.Builder builderForValue)

End time of this experiment.

.google.protobuf.Timestamp end_time = 9;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Experiment.Builder

setExperimentLength(Duration value)

public Experiment.Builder setExperimentLength(Duration value)

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Experiment.Builder

setExperimentLength(Duration.Builder builderForValue)

public Experiment.Builder setExperimentLength(Duration.Builder builderForValue)

Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

.google.protobuf.Duration experiment_length = 11;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Experiment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastUpdateTime(Timestamp value)

public Experiment.Builder setLastUpdateTime(Timestamp value)

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public Experiment.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Last update time of this experiment.

.google.protobuf.Timestamp last_update_time = 10;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Experiment.Builder

setName(String value)

public Experiment.Builder setName(String value)

The name of the experiment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/experiments/<Experiment ID>..

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Experiment.Builder setNameBytes(ByteString value)

The name of the experiment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/experiments/<Experiment ID>..

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

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

public Experiment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Experiment.Builder
Overrides

setResult(Experiment.Result value)

public Experiment.Builder setResult(Experiment.Result value)

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Parameter
NameDescription
valueExperiment.Result
Returns
TypeDescription
Experiment.Builder

setResult(Experiment.Result.Builder builderForValue)

public Experiment.Builder setResult(Experiment.Result.Builder builderForValue)

Inference result of the experiment.

.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6;

Parameter
NameDescription
builderForValueExperiment.Result.Builder
Returns
TypeDescription
Experiment.Builder

setRolloutConfig(RolloutConfig value)

public Experiment.Builder setRolloutConfig(RolloutConfig value)

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Parameter
NameDescription
valueRolloutConfig
Returns
TypeDescription
Experiment.Builder

setRolloutConfig(RolloutConfig.Builder builderForValue)

public Experiment.Builder setRolloutConfig(RolloutConfig.Builder builderForValue)

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14;

Parameter
NameDescription
builderForValueRolloutConfig.Builder
Returns
TypeDescription
Experiment.Builder

setRolloutFailureReason(String value)

public Experiment.Builder setRolloutFailureReason(String value)

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

string rollout_failure_reason = 16;

Parameter
NameDescription
valueString

The rolloutFailureReason to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setRolloutFailureReasonBytes(ByteString value)

public Experiment.Builder setRolloutFailureReasonBytes(ByteString value)

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

string rollout_failure_reason = 16;

Parameter
NameDescription
valueByteString

The bytes for rolloutFailureReason to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setRolloutState(RolloutState value)

public Experiment.Builder setRolloutState(RolloutState value)

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Parameter
NameDescription
valueRolloutState
Returns
TypeDescription
Experiment.Builder

setRolloutState(RolloutState.Builder builderForValue)

public Experiment.Builder setRolloutState(RolloutState.Builder builderForValue)

State of the auto rollout process.

.google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15;

Parameter
NameDescription
builderForValueRolloutState.Builder
Returns
TypeDescription
Experiment.Builder

setStartTime(Timestamp value)

public Experiment.Builder setStartTime(Timestamp value)

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Experiment.Builder

setStartTime(Timestamp.Builder builderForValue)

public Experiment.Builder setStartTime(Timestamp.Builder builderForValue)

Start time of this experiment.

.google.protobuf.Timestamp start_time = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Experiment.Builder

setState(Experiment.State value)

public Experiment.Builder setState(Experiment.State value)

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

.google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4;

Parameter
NameDescription
valueExperiment.State

The state to set.

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setStateValue(int value)

public Experiment.Builder setStateValue(int value)

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

.google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Experiment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVariantsHistory(int index, VariantsHistory value)

public Experiment.Builder setVariantsHistory(int index, VariantsHistory value)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameters
NameDescription
indexint
valueVariantsHistory
Returns
TypeDescription
Experiment.Builder

setVariantsHistory(int index, VariantsHistory.Builder builderForValue)

public Experiment.Builder setVariantsHistory(int index, VariantsHistory.Builder builderForValue)

The history of updates to the experiment variants.

repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12;

Parameters
NameDescription
indexint
builderForValueVariantsHistory.Builder
Returns
TypeDescription
Experiment.Builder