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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Experiment.Result.Metric.Builder>
    • getDefaultInstanceForType

      public Experiment.Result.Metric getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Experiment.Result.Metric build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Experiment.Result.Metric buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Experiment.Result.Metric.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Experiment.Result.Metric.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Experiment.Result.Metric.Builder>
      Throws:
      IOException
    • getValueCase

      public Experiment.Result.Metric.ValueCase getValueCase()
      Specified by:
      getValueCase in interface Experiment.Result.MetricOrBuilder
    • clearValue

      public Experiment.Result.Metric.Builder 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:
      getTypeValue in interface Experiment.Result.MetricOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getType in interface Experiment.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:
      getCountTypeValue in interface Experiment.Result.MetricOrBuilder
      Returns:
      The enum numeric value on the wire for countType.
    • setCountTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for countType to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getCountType in interface Experiment.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

      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:
      This builder for chaining.
    • hasRatio

      public boolean hasRatio()
       Ratio value of a metric.
       
      double ratio = 2;
      Specified by:
      hasRatio in interface Experiment.Result.MetricOrBuilder
      Returns:
      Whether the ratio field is set.
    • getRatio

      public double getRatio()
       Ratio value of a metric.
       
      double ratio = 2;
      Specified by:
      getRatio in interface Experiment.Result.MetricOrBuilder
      Returns:
      The ratio.
    • setRatio

      public Experiment.Result.Metric.Builder setRatio(double value)
       Ratio value of a metric.
       
      double ratio = 2;
      Parameters:
      value - The ratio to set.
      Returns:
      This builder for chaining.
    • clearRatio

      public Experiment.Result.Metric.Builder 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:
      hasCount in interface Experiment.Result.MetricOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public double getCount()
       Count value of a metric.
       
      double count = 4;
      Specified by:
      getCount in interface Experiment.Result.MetricOrBuilder
      Returns:
      The count.
    • setCount

      public Experiment.Result.Metric.Builder setCount(double value)
       Count value of a metric.
       
      double count = 4;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

      public Experiment.Result.Metric.Builder 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:
      hasConfidenceInterval in interface Experiment.Result.MetricOrBuilder
      Returns:
      Whether the confidenceInterval field is set.
    • 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;
      Specified by:
      getConfidenceInterval in interface Experiment.Result.MetricOrBuilder
      Returns:
      The confidenceInterval.
    • setConfidenceInterval

       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

       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

       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

      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;
    • 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;
    • 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;
      Specified by:
      getConfidenceIntervalOrBuilder in interface Experiment.Result.MetricOrBuilder