Class StringStatistics.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public long getUnique()
         The number of unique values
         
        uint64 unique = 2;
        Specified by:
        getUnique in interface StringStatisticsOrBuilder
        Returns:
        The unique.
      • setUnique

        public StringStatistics.Builder setUnique​(long value)
         The number of unique values
         
        uint64 unique = 2;
        Parameters:
        value - The unique to set.
        Returns:
        This builder for chaining.
      • clearUnique

        public StringStatistics.Builder clearUnique()
         The number of unique values
         
        uint64 unique = 2;
        Returns:
        This builder for chaining.
      • getTopValuesCount

        public int getTopValuesCount()
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
        Specified by:
        getTopValuesCount in interface StringStatisticsOrBuilder
      • setTopValues

        public StringStatistics.Builder setTopValues​(int index,
                                                     StringStatistics.FreqAndValue value)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • setTopValues

        public StringStatistics.Builder setTopValues​(int index,
                                                     StringStatistics.FreqAndValue.Builder builderForValue)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addTopValues

        public StringStatistics.Builder addTopValues​(StringStatistics.FreqAndValue value)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addTopValues

        public StringStatistics.Builder addTopValues​(int index,
                                                     StringStatistics.FreqAndValue value)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addTopValues

        public StringStatistics.Builder addTopValues​(int index,
                                                     StringStatistics.FreqAndValue.Builder builderForValue)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addAllTopValues

        public StringStatistics.Builder addAllTopValues​(Iterable<? extends StringStatistics.FreqAndValue> values)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • clearTopValues

        public StringStatistics.Builder clearTopValues()
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • removeTopValues

        public StringStatistics.Builder removeTopValues​(int index)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • getTopValuesBuilder

        public StringStatistics.FreqAndValue.Builder getTopValuesBuilder​(int index)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addTopValuesBuilder

        public StringStatistics.FreqAndValue.Builder addTopValuesBuilder()
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • addTopValuesBuilder

        public StringStatistics.FreqAndValue.Builder addTopValuesBuilder​(int index)
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • getTopValuesBuilderList

        public List<StringStatistics.FreqAndValue.Builder> getTopValuesBuilderList()
         A sorted list of the most-frequent values and their frequencies, with
         the most-frequent being first.
         
        repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 3;
      • getAvgLength

        public float getAvgLength()
         The average length of the values
         
        float avg_length = 4;
        Specified by:
        getAvgLength in interface StringStatisticsOrBuilder
        Returns:
        The avgLength.
      • setAvgLength

        public StringStatistics.Builder setAvgLength​(float value)
         The average length of the values
         
        float avg_length = 4;
        Parameters:
        value - The avgLength to set.
        Returns:
        This builder for chaining.
      • clearAvgLength

        public StringStatistics.Builder clearAvgLength()
         The average length of the values
         
        float avg_length = 4;
        Returns:
        This builder for chaining.
      • hasRankHistogram

        public boolean hasRankHistogram()
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
        Specified by:
        hasRankHistogram in interface StringStatisticsOrBuilder
        Returns:
        Whether the rankHistogram field is set.
      • getRankHistogram

        public RankHistogram getRankHistogram()
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
        Specified by:
        getRankHistogram in interface StringStatisticsOrBuilder
        Returns:
        The rankHistogram.
      • setRankHistogram

        public StringStatistics.Builder setRankHistogram​(RankHistogram value)
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
      • setRankHistogram

        public StringStatistics.Builder setRankHistogram​(RankHistogram.Builder builderForValue)
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
      • mergeRankHistogram

        public StringStatistics.Builder mergeRankHistogram​(RankHistogram value)
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
      • clearRankHistogram

        public StringStatistics.Builder clearRankHistogram()
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
      • getRankHistogramBuilder

        public RankHistogram.Builder getRankHistogramBuilder()
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
      • getRankHistogramOrBuilder

        public RankHistogramOrBuilder getRankHistogramOrBuilder()
         The rank histogram for the values of the feature.
         The rank is used to measure of how commonly the value is found in the
         dataset. The most common value would have a rank of 1, with the second-most
         common value having a rank of 2, and so on.
         
        .tensorflow.metadata.v0.RankHistogram rank_histogram = 5;
        Specified by:
        getRankHistogramOrBuilder in interface StringStatisticsOrBuilder
      • hasWeightedStringStats

        public boolean hasWeightedStringStats()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;
        Specified by:
        hasWeightedStringStats in interface StringStatisticsOrBuilder
        Returns:
        Whether the weightedStringStats field is set.
      • setWeightedStringStats

        public StringStatistics.Builder setWeightedStringStats​(WeightedStringStatistics value)
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;
      • mergeWeightedStringStats

        public StringStatistics.Builder mergeWeightedStringStats​(WeightedStringStatistics value)
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;
      • clearWeightedStringStats

        public StringStatistics.Builder clearWeightedStringStats()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;
      • getWeightedStringStatsBuilder

        public WeightedStringStatistics.Builder getWeightedStringStatsBuilder()
         Weighted statistics for the feature, if the values have weights.
         
        .tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;
      • getVocabularyFile

        public String getVocabularyFile()
         A vocabulary file, used for vocabularies too large to store in the proto
         itself.  Note that the file may be relative to some context-dependent
         directory.  E.g. in TFX the feature statistics will live in a PPP and
         vocabulary file names will be relative to this PPP.
         
        string vocabulary_file = 7;
        Specified by:
        getVocabularyFile in interface StringStatisticsOrBuilder
        Returns:
        The vocabularyFile.
      • getVocabularyFileBytes

        public com.google.protobuf.ByteString getVocabularyFileBytes()
         A vocabulary file, used for vocabularies too large to store in the proto
         itself.  Note that the file may be relative to some context-dependent
         directory.  E.g. in TFX the feature statistics will live in a PPP and
         vocabulary file names will be relative to this PPP.
         
        string vocabulary_file = 7;
        Specified by:
        getVocabularyFileBytes in interface StringStatisticsOrBuilder
        Returns:
        The bytes for vocabularyFile.
      • setVocabularyFile

        public StringStatistics.Builder setVocabularyFile​(String value)
         A vocabulary file, used for vocabularies too large to store in the proto
         itself.  Note that the file may be relative to some context-dependent
         directory.  E.g. in TFX the feature statistics will live in a PPP and
         vocabulary file names will be relative to this PPP.
         
        string vocabulary_file = 7;
        Parameters:
        value - The vocabularyFile to set.
        Returns:
        This builder for chaining.
      • clearVocabularyFile

        public StringStatistics.Builder clearVocabularyFile()
         A vocabulary file, used for vocabularies too large to store in the proto
         itself.  Note that the file may be relative to some context-dependent
         directory.  E.g. in TFX the feature statistics will live in a PPP and
         vocabulary file names will be relative to this PPP.
         
        string vocabulary_file = 7;
        Returns:
        This builder for chaining.
      • setVocabularyFileBytes

        public StringStatistics.Builder setVocabularyFileBytes​(com.google.protobuf.ByteString value)
         A vocabulary file, used for vocabularies too large to store in the proto
         itself.  Note that the file may be relative to some context-dependent
         directory.  E.g. in TFX the feature statistics will live in a PPP and
         vocabulary file names will be relative to this PPP.
         
        string vocabulary_file = 7;
        Parameters:
        value - The bytes for vocabularyFile to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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