Package org.tensorflow.metadata.v0
Class StringStatistics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.metadata.v0.StringStatistics
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,StringStatisticsOrBuilder
public final class StringStatistics extends com.google.protobuf.GeneratedMessageV3 implements StringStatisticsOrBuilder
Statistics for a string feature in a dataset.
Protobuf typetensorflow.metadata.v0.StringStatistics- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringStatistics.BuilderStatistics for a string feature in a dataset.static classStringStatistics.FreqAndValueProtobuf typetensorflow.metadata.v0.StringStatistics.FreqAndValuestatic interfaceStringStatistics.FreqAndValueOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAVG_LENGTH_FIELD_NUMBERstatic intCOMMON_STATS_FIELD_NUMBERstatic intRANK_HISTOGRAM_FIELD_NUMBERstatic intTOP_VALUES_FIELD_NUMBERstatic intUNIQUE_FIELD_NUMBERstatic intVOCABULARY_FILE_FIELD_NUMBERstatic intWEIGHTED_STRING_STATS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)floatgetAvgLength()The average length of the valuesCommonStatisticsgetCommonStats().tensorflow.metadata.v0.CommonStatistics common_stats = 1;CommonStatisticsOrBuildergetCommonStatsOrBuilder().tensorflow.metadata.v0.CommonStatistics common_stats = 1;static StringStatisticsgetDefaultInstance()StringStatisticsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<StringStatistics>getParserForType()RankHistogramgetRankHistogram()The rank histogram for the values of the feature.RankHistogramOrBuildergetRankHistogramOrBuilder()The rank histogram for the values of the feature.intgetSerializedSize()StringStatistics.FreqAndValuegetTopValues(int index)A sorted list of the most-frequent values and their frequencies, with the most-frequent being first.intgetTopValuesCount()A sorted list of the most-frequent values and their frequencies, with the most-frequent being first.List<StringStatistics.FreqAndValue>getTopValuesList()A sorted list of the most-frequent values and their frequencies, with the most-frequent being first.StringStatistics.FreqAndValueOrBuildergetTopValuesOrBuilder(int index)A sorted list of the most-frequent values and their frequencies, with the most-frequent being first.List<? extends StringStatistics.FreqAndValueOrBuilder>getTopValuesOrBuilderList()A sorted list of the most-frequent values and their frequencies, with the most-frequent being first.longgetUnique()The number of unique valuescom.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetVocabularyFile()A vocabulary file, used for vocabularies too large to store in the proto itself.com.google.protobuf.ByteStringgetVocabularyFileBytes()A vocabulary file, used for vocabularies too large to store in the proto itself.WeightedStringStatisticsgetWeightedStringStats()Weighted statistics for the feature, if the values have weights.WeightedStringStatisticsOrBuildergetWeightedStringStatsOrBuilder()Weighted statistics for the feature, if the values have weights.booleanhasCommonStats().tensorflow.metadata.v0.CommonStatistics common_stats = 1;inthashCode()booleanhasRankHistogram()The rank histogram for the values of the feature.booleanhasWeightedStringStats()Weighted statistics for the feature, if the values have weights.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static StringStatistics.BuildernewBuilder()static StringStatistics.BuildernewBuilder(StringStatistics prototype)StringStatistics.BuildernewBuilderForType()protected StringStatistics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static StringStatisticsparseDelimitedFrom(InputStream input)static StringStatisticsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static StringStatisticsparseFrom(byte[] data)static StringStatisticsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static StringStatisticsparseFrom(com.google.protobuf.ByteString data)static StringStatisticsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static StringStatisticsparseFrom(com.google.protobuf.CodedInputStream input)static StringStatisticsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static StringStatisticsparseFrom(InputStream input)static StringStatisticsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static StringStatisticsparseFrom(ByteBuffer data)static StringStatisticsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<StringStatistics>parser()StringStatistics.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COMMON_STATS_FIELD_NUMBER
public static final int COMMON_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNIQUE_FIELD_NUMBER
public static final int UNIQUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOP_VALUES_FIELD_NUMBER
public static final int TOP_VALUES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVG_LENGTH_FIELD_NUMBER
public static final int AVG_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RANK_HISTOGRAM_FIELD_NUMBER
public static final int RANK_HISTOGRAM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHTED_STRING_STATS_FIELD_NUMBER
public static final int WEIGHTED_STRING_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOCABULARY_FILE_FIELD_NUMBER
public static final int VOCABULARY_FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCommonStats
public boolean hasCommonStats()
.tensorflow.metadata.v0.CommonStatistics common_stats = 1;- Specified by:
hasCommonStatsin interfaceStringStatisticsOrBuilder- Returns:
- Whether the commonStats field is set.
-
getCommonStats
public CommonStatistics getCommonStats()
.tensorflow.metadata.v0.CommonStatistics common_stats = 1;- Specified by:
getCommonStatsin interfaceStringStatisticsOrBuilder- Returns:
- The commonStats.
-
getCommonStatsOrBuilder
public CommonStatisticsOrBuilder getCommonStatsOrBuilder()
.tensorflow.metadata.v0.CommonStatistics common_stats = 1;- Specified by:
getCommonStatsOrBuilderin interfaceStringStatisticsOrBuilder
-
getUnique
public long getUnique()
The number of unique values
uint64 unique = 2;- Specified by:
getUniquein interfaceStringStatisticsOrBuilder- Returns:
- The unique.
-
getTopValuesList
public List<StringStatistics.FreqAndValue> getTopValuesList()
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:
getTopValuesListin interfaceStringStatisticsOrBuilder
-
getTopValuesOrBuilderList
public List<? extends StringStatistics.FreqAndValueOrBuilder> getTopValuesOrBuilderList()
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:
getTopValuesOrBuilderListin interfaceStringStatisticsOrBuilder
-
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:
getTopValuesCountin interfaceStringStatisticsOrBuilder
-
getTopValues
public StringStatistics.FreqAndValue getTopValues(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;- Specified by:
getTopValuesin interfaceStringStatisticsOrBuilder
-
getTopValuesOrBuilder
public StringStatistics.FreqAndValueOrBuilder getTopValuesOrBuilder(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;- Specified by:
getTopValuesOrBuilderin interfaceStringStatisticsOrBuilder
-
getAvgLength
public float getAvgLength()
The average length of the values
float avg_length = 4;- Specified by:
getAvgLengthin interfaceStringStatisticsOrBuilder- Returns:
- The avgLength.
-
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:
hasRankHistogramin interfaceStringStatisticsOrBuilder- 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:
getRankHistogramin interfaceStringStatisticsOrBuilder- Returns:
- The rankHistogram.
-
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:
getRankHistogramOrBuilderin interfaceStringStatisticsOrBuilder
-
hasWeightedStringStats
public boolean hasWeightedStringStats()
Weighted statistics for the feature, if the values have weights.
.tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;- Specified by:
hasWeightedStringStatsin interfaceStringStatisticsOrBuilder- Returns:
- Whether the weightedStringStats field is set.
-
getWeightedStringStats
public WeightedStringStatistics getWeightedStringStats()
Weighted statistics for the feature, if the values have weights.
.tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;- Specified by:
getWeightedStringStatsin interfaceStringStatisticsOrBuilder- Returns:
- The weightedStringStats.
-
getWeightedStringStatsOrBuilder
public WeightedStringStatisticsOrBuilder getWeightedStringStatsOrBuilder()
Weighted statistics for the feature, if the values have weights.
.tensorflow.metadata.v0.WeightedStringStatistics weighted_string_stats = 6;- Specified by:
getWeightedStringStatsOrBuilderin interfaceStringStatisticsOrBuilder
-
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:
getVocabularyFilein interfaceStringStatisticsOrBuilder- 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:
getVocabularyFileBytesin interfaceStringStatisticsOrBuilder- Returns:
- The bytes for vocabularyFile.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StringStatistics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StringStatistics parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static StringStatistics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static StringStatistics parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static StringStatistics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static StringStatistics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static StringStatistics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public StringStatistics.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static StringStatistics.Builder newBuilder()
-
newBuilder
public static StringStatistics.Builder newBuilder(StringStatistics prototype)
-
toBuilder
public StringStatistics.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StringStatistics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static StringStatistics getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<StringStatistics> parser()
-
getParserForType
public com.google.protobuf.Parser<StringStatistics> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public StringStatistics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-