Class CommonStatistics.Builder

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

    public static final class CommonStatistics.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CommonStatistics.Builder>
    implements CommonStatisticsOrBuilder
     Common statistics for all feature types. Statistics counting number of values
     (i.e., min_num_values, max_num_values, avg_num_values, and tot_num_values)
     include NaNs.
     
    Protobuf type tensorflow.metadata.v0.CommonStatistics
    • 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<CommonStatistics.Builder>
      • clear

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

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

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

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

        public CommonStatistics.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<CommonStatistics.Builder>
      • setField

        public CommonStatistics.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<CommonStatistics.Builder>
      • clearField

        public CommonStatistics.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<CommonStatistics.Builder>
      • clearOneof

        public CommonStatistics.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<CommonStatistics.Builder>
      • setRepeatedField

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

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

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

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

        public CommonStatistics.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<CommonStatistics.Builder>
        Throws:
        IOException
      • getNumNonMissing

        public long getNumNonMissing()
         The number of examples with at least one value for this feature.
         
        uint64 num_non_missing = 1;
        Specified by:
        getNumNonMissing in interface CommonStatisticsOrBuilder
        Returns:
        The numNonMissing.
      • setNumNonMissing

        public CommonStatistics.Builder setNumNonMissing​(long value)
         The number of examples with at least one value for this feature.
         
        uint64 num_non_missing = 1;
        Parameters:
        value - The numNonMissing to set.
        Returns:
        This builder for chaining.
      • clearNumNonMissing

        public CommonStatistics.Builder clearNumNonMissing()
         The number of examples with at least one value for this feature.
         
        uint64 num_non_missing = 1;
        Returns:
        This builder for chaining.
      • getNumMissing

        public long getNumMissing()
         The number of examples with no values for this feature.
         
        uint64 num_missing = 2;
        Specified by:
        getNumMissing in interface CommonStatisticsOrBuilder
        Returns:
        The numMissing.
      • setNumMissing

        public CommonStatistics.Builder setNumMissing​(long value)
         The number of examples with no values for this feature.
         
        uint64 num_missing = 2;
        Parameters:
        value - The numMissing to set.
        Returns:
        This builder for chaining.
      • clearNumMissing

        public CommonStatistics.Builder clearNumMissing()
         The number of examples with no values for this feature.
         
        uint64 num_missing = 2;
        Returns:
        This builder for chaining.
      • getMinNumValues

        public long getMinNumValues()
         The minimum number of values in a single example for this feature.
         
        uint64 min_num_values = 3;
        Specified by:
        getMinNumValues in interface CommonStatisticsOrBuilder
        Returns:
        The minNumValues.
      • setMinNumValues

        public CommonStatistics.Builder setMinNumValues​(long value)
         The minimum number of values in a single example for this feature.
         
        uint64 min_num_values = 3;
        Parameters:
        value - The minNumValues to set.
        Returns:
        This builder for chaining.
      • clearMinNumValues

        public CommonStatistics.Builder clearMinNumValues()
         The minimum number of values in a single example for this feature.
         
        uint64 min_num_values = 3;
        Returns:
        This builder for chaining.
      • getMaxNumValues

        public long getMaxNumValues()
         The maximum number of values in a single example for this feature.
         
        uint64 max_num_values = 4;
        Specified by:
        getMaxNumValues in interface CommonStatisticsOrBuilder
        Returns:
        The maxNumValues.
      • setMaxNumValues

        public CommonStatistics.Builder setMaxNumValues​(long value)
         The maximum number of values in a single example for this feature.
         
        uint64 max_num_values = 4;
        Parameters:
        value - The maxNumValues to set.
        Returns:
        This builder for chaining.
      • clearMaxNumValues

        public CommonStatistics.Builder clearMaxNumValues()
         The maximum number of values in a single example for this feature.
         
        uint64 max_num_values = 4;
        Returns:
        This builder for chaining.
      • getAvgNumValues

        public float getAvgNumValues()
         The average number of values in a single example for this feature.
         
        float avg_num_values = 5;
        Specified by:
        getAvgNumValues in interface CommonStatisticsOrBuilder
        Returns:
        The avgNumValues.
      • setAvgNumValues

        public CommonStatistics.Builder setAvgNumValues​(float value)
         The average number of values in a single example for this feature.
         
        float avg_num_values = 5;
        Parameters:
        value - The avgNumValues to set.
        Returns:
        This builder for chaining.
      • clearAvgNumValues

        public CommonStatistics.Builder clearAvgNumValues()
         The average number of values in a single example for this feature.
         
        float avg_num_values = 5;
        Returns:
        This builder for chaining.
      • getTotNumValues

        public long getTotNumValues()
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        uint64 tot_num_values = 8;
        Specified by:
        getTotNumValues in interface CommonStatisticsOrBuilder
        Returns:
        The totNumValues.
      • setTotNumValues

        public CommonStatistics.Builder setTotNumValues​(long value)
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        uint64 tot_num_values = 8;
        Parameters:
        value - The totNumValues to set.
        Returns:
        This builder for chaining.
      • clearTotNumValues

        public CommonStatistics.Builder clearTotNumValues()
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        uint64 tot_num_values = 8;
        Returns:
        This builder for chaining.
      • hasNumValuesHistogram

        public boolean hasNumValuesHistogram()
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
        Specified by:
        hasNumValuesHistogram in interface CommonStatisticsOrBuilder
        Returns:
        Whether the numValuesHistogram field is set.
      • getNumValuesHistogram

        public Histogram getNumValuesHistogram()
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
        Specified by:
        getNumValuesHistogram in interface CommonStatisticsOrBuilder
        Returns:
        The numValuesHistogram.
      • setNumValuesHistogram

        public CommonStatistics.Builder setNumValuesHistogram​(Histogram value)
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
      • setNumValuesHistogram

        public CommonStatistics.Builder setNumValuesHistogram​(Histogram.Builder builderForValue)
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
      • mergeNumValuesHistogram

        public CommonStatistics.Builder mergeNumValuesHistogram​(Histogram value)
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
      • clearNumValuesHistogram

        public CommonStatistics.Builder clearNumValuesHistogram()
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
      • getNumValuesHistogramBuilder

        public Histogram.Builder getNumValuesHistogramBuilder()
         The quantiles histogram for the number of values in this feature.
         
        .tensorflow.metadata.v0.Histogram num_values_histogram = 6;
      • hasWeightedCommonStats

        public boolean hasWeightedCommonStats()
        .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7;
        Specified by:
        hasWeightedCommonStats in interface CommonStatisticsOrBuilder
        Returns:
        Whether the weightedCommonStats field is set.
      • clearWeightedCommonStats

        public CommonStatistics.Builder clearWeightedCommonStats()
        .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7;
      • getWeightedCommonStatsBuilder

        public WeightedCommonStatistics.Builder getWeightedCommonStatsBuilder()
        .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7;
      • hasFeatureListLengthHistogram

        public boolean hasFeatureListLengthHistogram()
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
        Specified by:
        hasFeatureListLengthHistogram in interface CommonStatisticsOrBuilder
        Returns:
        Whether the featureListLengthHistogram field is set.
      • getFeatureListLengthHistogram

        public Histogram getFeatureListLengthHistogram()
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
        Specified by:
        getFeatureListLengthHistogram in interface CommonStatisticsOrBuilder
        Returns:
        The featureListLengthHistogram.
      • setFeatureListLengthHistogram

        public CommonStatistics.Builder setFeatureListLengthHistogram​(Histogram value)
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
      • setFeatureListLengthHistogram

        public CommonStatistics.Builder setFeatureListLengthHistogram​(Histogram.Builder builderForValue)
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
      • mergeFeatureListLengthHistogram

        public CommonStatistics.Builder mergeFeatureListLengthHistogram​(Histogram value)
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
      • clearFeatureListLengthHistogram

        public CommonStatistics.Builder clearFeatureListLengthHistogram()
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
      • getFeatureListLengthHistogramBuilder

        public Histogram.Builder getFeatureListLengthHistogramBuilder()
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
      • getFeatureListLengthHistogramOrBuilder

        public HistogramOrBuilder getFeatureListLengthHistogramOrBuilder()
         The histogram for the number of features in the feature list (only set if
         this feature is a non-context feature from a tf.SequenceExample).
         This is different from num_values_histogram, as num_values_histogram tracks
         the count of all values for a feature in an example, whereas this tracks
         the length of the feature list for this feature in an example (where each
         feature list can contain multiple values).
         
        .tensorflow.metadata.v0.Histogram feature_list_length_histogram = 9;
        Specified by:
        getFeatureListLengthHistogramOrBuilder in interface CommonStatisticsOrBuilder
      • setUnknownFields

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

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