Class NumericStatistics.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, NumericStatisticsOrBuilder
    Enclosing class:
    NumericStatistics

    public static final class NumericStatistics.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
    implements NumericStatisticsOrBuilder
     Statistics for a numeric feature in a dataset.
     
    Protobuf type tensorflow.metadata.v0.NumericStatistics
    • 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<NumericStatistics.Builder>
      • clear

        public NumericStatistics.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.GeneratedMessageV3.Builder<NumericStatistics.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<NumericStatistics.Builder>
      • getDefaultInstanceForType

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

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

        public NumericStatistics buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public NumericStatistics.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
      • setField

        public NumericStatistics.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
      • clearField

        public NumericStatistics.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
      • clearOneof

        public NumericStatistics.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
      • setRepeatedField

        public NumericStatistics.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<NumericStatistics.Builder>
      • addRepeatedField

        public NumericStatistics.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<NumericStatistics.Builder>
      • mergeFrom

        public NumericStatistics.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<NumericStatistics.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NumericStatistics.Builder>
      • mergeFrom

        public NumericStatistics.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<NumericStatistics.Builder>
        Throws:
        IOException
      • hasCommonStats

        public boolean hasCommonStats()
        .tensorflow.metadata.v0.CommonStatistics common_stats = 1;
        Specified by:
        hasCommonStats in interface NumericStatisticsOrBuilder
        Returns:
        Whether the commonStats field is set.
      • clearCommonStats

        public NumericStatistics.Builder clearCommonStats()
        .tensorflow.metadata.v0.CommonStatistics common_stats = 1;
      • getCommonStatsBuilder

        public CommonStatistics.Builder getCommonStatsBuilder()
        .tensorflow.metadata.v0.CommonStatistics common_stats = 1;
      • setMean

        public NumericStatistics.Builder setMean​(double value)
         The mean of the values
         
        double mean = 2;
        Parameters:
        value - The mean to set.
        Returns:
        This builder for chaining.
      • clearMean

        public NumericStatistics.Builder clearMean()
         The mean of the values
         
        double mean = 2;
        Returns:
        This builder for chaining.
      • getStdDev

        public double getStdDev()
         The standard deviation of the values
         
        double std_dev = 3;
        Specified by:
        getStdDev in interface NumericStatisticsOrBuilder
        Returns:
        The stdDev.
      • setStdDev

        public NumericStatistics.Builder setStdDev​(double value)
         The standard deviation of the values
         
        double std_dev = 3;
        Parameters:
        value - The stdDev to set.
        Returns:
        This builder for chaining.
      • clearStdDev

        public NumericStatistics.Builder clearStdDev()
         The standard deviation of the values
         
        double std_dev = 3;
        Returns:
        This builder for chaining.
      • getNumZeros

        public long getNumZeros()
         The number of values that equal 0
         
        uint64 num_zeros = 4;
        Specified by:
        getNumZeros in interface NumericStatisticsOrBuilder
        Returns:
        The numZeros.
      • setNumZeros

        public NumericStatistics.Builder setNumZeros​(long value)
         The number of values that equal 0
         
        uint64 num_zeros = 4;
        Parameters:
        value - The numZeros to set.
        Returns:
        This builder for chaining.
      • clearNumZeros

        public NumericStatistics.Builder clearNumZeros()
         The number of values that equal 0
         
        uint64 num_zeros = 4;
        Returns:
        This builder for chaining.
      • setMin

        public NumericStatistics.Builder setMin​(double value)
         The minimum value
         
        double min = 5;
        Parameters:
        value - The min to set.
        Returns:
        This builder for chaining.
      • clearMin

        public NumericStatistics.Builder clearMin()
         The minimum value
         
        double min = 5;
        Returns:
        This builder for chaining.
      • setMedian

        public NumericStatistics.Builder setMedian​(double value)
         The median value
         
        double median = 6;
        Parameters:
        value - The median to set.
        Returns:
        This builder for chaining.
      • clearMedian

        public NumericStatistics.Builder clearMedian()
         The median value
         
        double median = 6;
        Returns:
        This builder for chaining.
      • setMax

        public NumericStatistics.Builder setMax​(double value)
         The maximum value
         
        double max = 7;
        Parameters:
        value - The max to set.
        Returns:
        This builder for chaining.
      • clearMax

        public NumericStatistics.Builder clearMax()
         The maximum value
         
        double max = 7;
        Returns:
        This builder for chaining.
      • getHistogramsCount

        public int getHistogramsCount()
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
        Specified by:
        getHistogramsCount in interface NumericStatisticsOrBuilder
      • setHistograms

        public NumericStatistics.Builder setHistograms​(int index,
                                                       Histogram value)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • setHistograms

        public NumericStatistics.Builder setHistograms​(int index,
                                                       Histogram.Builder builderForValue)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addHistograms

        public NumericStatistics.Builder addHistograms​(Histogram value)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addHistograms

        public NumericStatistics.Builder addHistograms​(int index,
                                                       Histogram value)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addHistograms

        public NumericStatistics.Builder addHistograms​(int index,
                                                       Histogram.Builder builderForValue)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addAllHistograms

        public NumericStatistics.Builder addAllHistograms​(Iterable<? extends Histogram> values)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • clearHistograms

        public NumericStatistics.Builder clearHistograms()
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • removeHistograms

        public NumericStatistics.Builder removeHistograms​(int index)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • getHistogramsBuilder

        public Histogram.Builder getHistogramsBuilder​(int index)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addHistogramsBuilder

        public Histogram.Builder addHistogramsBuilder()
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • addHistogramsBuilder

        public Histogram.Builder addHistogramsBuilder​(int index)
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • getHistogramsBuilderList

        public List<Histogram.Builder> getHistogramsBuilderList()
         The histogram(s) of the feature values.
         
        repeated .tensorflow.metadata.v0.Histogram histograms = 8;
      • hasWeightedNumericStats

        public boolean hasWeightedNumericStats()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedNumericStatistics weighted_numeric_stats = 9;
        Specified by:
        hasWeightedNumericStats in interface NumericStatisticsOrBuilder
        Returns:
        Whether the weightedNumericStats field is set.
      • setWeightedNumericStats

        public NumericStatistics.Builder setWeightedNumericStats​(WeightedNumericStatistics value)
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedNumericStatistics weighted_numeric_stats = 9;
      • mergeWeightedNumericStats

        public NumericStatistics.Builder mergeWeightedNumericStats​(WeightedNumericStatistics value)
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedNumericStatistics weighted_numeric_stats = 9;
      • clearWeightedNumericStats

        public NumericStatistics.Builder clearWeightedNumericStats()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedNumericStatistics weighted_numeric_stats = 9;
      • getWeightedNumericStatsBuilder

        public WeightedNumericStatistics.Builder getWeightedNumericStatsBuilder()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedNumericStatistics weighted_numeric_stats = 9;
      • setUnknownFields

        public final NumericStatistics.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<NumericStatistics.Builder>
      • mergeUnknownFields

        public final NumericStatistics.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<NumericStatistics.Builder>