Class Experiment.Result.Metric.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder
- All Implemented Interfaces:
Experiment.Result.MetricOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Experiment.Result.Metric
public static final class Experiment.Result.Metric.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
implements Experiment.Result.MetricOrBuilder
Metric and corresponding confidence intervals.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The probability that the treatment is better than all other treatments in the experimentCount value of a metric.Count-based metric type.Ratio value of a metric.Ratio-based metric type.The probability that the treatment is better than all other treatments in the experimentThe probability that the treatment is better than all other treatments in the experimentThe probability that the treatment is better than all other treatments in the experimentdoublegetCount()Count value of a metric.Count-based metric type.intCount-based metric type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetRatio()Ratio value of a metric.getType()Ratio-based metric type.intRatio-based metric type.booleanThe probability that the treatment is better than all other treatments in the experimentbooleanhasCount()Count value of a metric.booleanhasRatio()Ratio value of a metric.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe probability that the treatment is better than all other treatments in the experimentmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The probability that the treatment is better than all other treatments in the experimentsetConfidenceInterval(Experiment.Result.ConfidenceInterval.Builder builderForValue) The probability that the treatment is better than all other treatments in the experimentsetCount(double value) Count value of a metric.Count-based metric type.setCountTypeValue(int value) Count-based metric type.setRatio(double value) Ratio value of a metric.Ratio-based metric type.setTypeValue(int value) Ratio-based metric type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Experiment.Result.Metric.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
-
mergeFrom
public Experiment.Result.Metric.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Experiment.Result.Metric.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceExperiment.Result.MetricOrBuilder
-
clearValue
-
getTypeValue
public int getTypeValue()Ratio-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1;- Specified by:
getTypeValuein interfaceExperiment.Result.MetricOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1;- Specified by:
getTypein interfaceExperiment.Result.MetricOrBuilder- Returns:
- The type.
-
setType
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1;- Returns:
- This builder for chaining.
-
getCountTypeValue
public int getCountTypeValue()Count-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5;- Specified by:
getCountTypeValuein interfaceExperiment.Result.MetricOrBuilder- Returns:
- The enum numeric value on the wire for countType.
-
setCountTypeValue
Count-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5;- Parameters:
value- The enum numeric value on the wire for countType to set.- Returns:
- This builder for chaining.
-
getCountType
Count-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5;- Specified by:
getCountTypein interfaceExperiment.Result.MetricOrBuilder- Returns:
- The countType.
-
setCountType
Count-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5;- Parameters:
value- The countType to set.- Returns:
- This builder for chaining.
-
clearCountType
Count-based metric type. Only one of type or count_type is specified in each Metric.
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5;- Returns:
- This builder for chaining.
-
hasRatio
public boolean hasRatio()Ratio value of a metric.
double ratio = 2;- Specified by:
hasRatioin interfaceExperiment.Result.MetricOrBuilder- Returns:
- Whether the ratio field is set.
-
getRatio
public double getRatio()Ratio value of a metric.
double ratio = 2;- Specified by:
getRatioin interfaceExperiment.Result.MetricOrBuilder- Returns:
- The ratio.
-
setRatio
Ratio value of a metric.
double ratio = 2;- Parameters:
value- The ratio to set.- Returns:
- This builder for chaining.
-
clearRatio
Ratio value of a metric.
double ratio = 2;- Returns:
- This builder for chaining.
-
hasCount
public boolean hasCount()Count value of a metric.
double count = 4;- Specified by:
hasCountin interfaceExperiment.Result.MetricOrBuilder- Returns:
- Whether the count field is set.
-
getCount
public double getCount()Count value of a metric.
double count = 4;- Specified by:
getCountin interfaceExperiment.Result.MetricOrBuilder- Returns:
- The count.
-
setCount
Count value of a metric.
double count = 4;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
Count value of a metric.
double count = 4;- Returns:
- This builder for chaining.
-
hasConfidenceInterval
public boolean hasConfidenceInterval()The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3;- Specified by:
hasConfidenceIntervalin interfaceExperiment.Result.MetricOrBuilder- Returns:
- Whether the confidenceInterval field is set.
-
getConfidenceInterval
The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3;- Specified by:
getConfidenceIntervalin interfaceExperiment.Result.MetricOrBuilder- Returns:
- The confidenceInterval.
-
setConfidenceInterval
public Experiment.Result.Metric.Builder setConfidenceInterval(Experiment.Result.ConfidenceInterval value) The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; -
setConfidenceInterval
public Experiment.Result.Metric.Builder setConfidenceInterval(Experiment.Result.ConfidenceInterval.Builder builderForValue) The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; -
mergeConfidenceInterval
public Experiment.Result.Metric.Builder mergeConfidenceInterval(Experiment.Result.ConfidenceInterval value) The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; -
clearConfidenceInterval
The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; -
getConfidenceIntervalBuilder
The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; -
getConfidenceIntervalOrBuilder
The probability that the treatment is better than all other treatments in the experiment
.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3;- Specified by:
getConfidenceIntervalOrBuilderin interfaceExperiment.Result.MetricOrBuilder
-