Class Experiment.Result.Metric.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public Experiment.Result.Metric.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Result.Metric.Builder>
      • addRepeatedField

        public Experiment.Result.Metric.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Result.Metric.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • setType

        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;
        Parameters:
        value - The type to set.
        Returns:
        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:
        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.
      • setCountType

        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;
        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.
      • 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.
      • 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.
      • 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.
      • 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;
      • setUnknownFields

        public final Experiment.Result.Metric.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Result.Metric.Builder>
      • mergeUnknownFields

        public final Experiment.Result.Metric.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Experiment.Result.Metric.Builder>