Class Experiment.Result.Metric.Builder (0.13.0)

public static final class Experiment.Result.Metric.Builder extends GeneratedMessageV3.Builder<Experiment.Result.Metric.Builder> implements Experiment.Result.MetricOrBuilder

Metric and corresponding confidence intervals.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Experiment.Result.Metric build()
Returns
TypeDescription
Experiment.Result.Metric

buildPartial()

public Experiment.Result.Metric buildPartial()
Returns
TypeDescription
Experiment.Result.Metric

clear()

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

clearConfidenceInterval()

public Experiment.Result.Metric.Builder 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;

Returns
TypeDescription
Experiment.Result.Metric.Builder

clearCount()

public Experiment.Result.Metric.Builder clearCount()

Count value of a metric.

double count = 4;

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

clearCountType()

public Experiment.Result.Metric.Builder 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
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRatio()

public Experiment.Result.Metric.Builder clearRatio()

Ratio value of a metric.

double ratio = 2;

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

clearType()

public Experiment.Result.Metric.Builder 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
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

clearValue()

public Experiment.Result.Metric.Builder clearValue()
Returns
TypeDescription
Experiment.Result.Metric.Builder

clone()

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

getConfidenceInterval()

public Experiment.Result.ConfidenceInterval 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;

Returns
TypeDescription
Experiment.Result.ConfidenceInterval

The confidenceInterval.

getConfidenceIntervalBuilder()

public Experiment.Result.ConfidenceInterval.Builder 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;

Returns
TypeDescription
Experiment.Result.ConfidenceInterval.Builder

getConfidenceIntervalOrBuilder()

public Experiment.Result.ConfidenceIntervalOrBuilder 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;

Returns
TypeDescription
Experiment.Result.ConfidenceIntervalOrBuilder

getCount()

public double getCount()

Count value of a metric.

double count = 4;

Returns
TypeDescription
double

The count.

getCountType()

public Experiment.Result.CountType 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;

Returns
TypeDescription
Experiment.Result.CountType

The countType.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for countType.

getDefaultInstanceForType()

public Experiment.Result.Metric getDefaultInstanceForType()
Returns
TypeDescription
Experiment.Result.Metric

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRatio()

public double getRatio()

Ratio value of a metric.

double ratio = 2;

Returns
TypeDescription
double

The ratio.

getType()

public Experiment.Result.MetricType 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;

Returns
TypeDescription
Experiment.Result.MetricType

The type.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getValueCase()

public Experiment.Result.Metric.ValueCase getValueCase()
Returns
TypeDescription
Experiment.Result.Metric.ValueCase

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;

Returns
TypeDescription
boolean

Whether the confidenceInterval field is set.

hasCount()

public boolean hasCount()

Count value of a metric.

double count = 4;

Returns
TypeDescription
boolean

Whether the count field is set.

hasRatio()

public boolean hasRatio()

Ratio value of a metric.

double ratio = 2;

Returns
TypeDescription
boolean

Whether the ratio field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfidenceInterval(Experiment.Result.ConfidenceInterval value)

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;

Parameter
NameDescription
valueExperiment.Result.ConfidenceInterval
Returns
TypeDescription
Experiment.Result.Metric.Builder

mergeFrom(Experiment.Result.Metric other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidenceInterval(Experiment.Result.ConfidenceInterval value)

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;

Parameter
NameDescription
valueExperiment.Result.ConfidenceInterval
Returns
TypeDescription
Experiment.Result.Metric.Builder

setConfidenceInterval(Experiment.Result.ConfidenceInterval.Builder builderForValue)

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;

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

setCount(double value)

public Experiment.Result.Metric.Builder setCount(double value)

Count value of a metric.

double count = 4;

Parameter
NameDescription
valuedouble

The count to set.

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

setCountType(Experiment.Result.CountType value)

public Experiment.Result.Metric.Builder setCountType(Experiment.Result.CountType value)

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;

Parameter
NameDescription
valueExperiment.Result.CountType

The countType to set.

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

setCountTypeValue(int value)

public Experiment.Result.Metric.Builder setCountTypeValue(int value)

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;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRatio(double value)

public Experiment.Result.Metric.Builder setRatio(double value)

Ratio value of a metric.

double ratio = 2;

Parameter
NameDescription
valuedouble

The ratio to set.

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

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

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

setType(Experiment.Result.MetricType value)

public Experiment.Result.Metric.Builder setType(Experiment.Result.MetricType value)

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;

Parameter
NameDescription
valueExperiment.Result.MetricType

The type to set.

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

setTypeValue(int value)

public Experiment.Result.Metric.Builder setTypeValue(int value)

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;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Experiment.Result.Metric.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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