All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.metadata.v0.CommonStatistics Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/statistics.proto

// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;

/**
 * 
 * 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 {@code tensorflow.metadata.v0.CommonStatistics} */ public final class CommonStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.CommonStatistics) CommonStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use CommonStatistics.newBuilder() to construct. private CommonStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommonStatistics() { presenceAndValencyStats_ = java.util.Collections.emptyList(); weightedPresenceAndValencyStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommonStatistics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CommonStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CommonStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CommonStatistics.class, org.tensorflow.metadata.v0.CommonStatistics.Builder.class); } private int bitField0_; public static final int NUM_NON_MISSING_FIELD_NUMBER = 1; private long numNonMissing_ = 0L; /** *
   * The number of examples that include this feature. Note that this includes
   * examples that contain this feature with an explicitly empty list of values,
   * which may be permitted for variable length features.
   * 
* * uint64 num_non_missing = 1; * @return The numNonMissing. */ @java.lang.Override public long getNumNonMissing() { return numNonMissing_; } public static final int NUM_MISSING_FIELD_NUMBER = 2; private long numMissing_ = 0L; /** *
   * The number of examples missing this feature.
   * 
* * uint64 num_missing = 2; * @return The numMissing. */ @java.lang.Override public long getNumMissing() { return numMissing_; } public static final int MIN_NUM_VALUES_FIELD_NUMBER = 3; private long minNumValues_ = 0L; /** *
   * The minimum number of values in a single example for this feature.
   * 
* * uint64 min_num_values = 3; * @return The minNumValues. */ @java.lang.Override public long getMinNumValues() { return minNumValues_; } public static final int MAX_NUM_VALUES_FIELD_NUMBER = 4; private long maxNumValues_ = 0L; /** *
   * The maximum number of values in a single example for this feature.
   * 
* * uint64 max_num_values = 4; * @return The maxNumValues. */ @java.lang.Override public long getMaxNumValues() { return maxNumValues_; } public static final int AVG_NUM_VALUES_FIELD_NUMBER = 5; private float avgNumValues_ = 0F; /** *
   * The average number of values in a single example for this feature.
   * 
* * float avg_num_values = 5; * @return The avgNumValues. */ @java.lang.Override public float getAvgNumValues() { return avgNumValues_; } public static final int TOT_NUM_VALUES_FIELD_NUMBER = 8; private long totNumValues_ = 0L; /** *
   * tot_num_values = avg_num_values * num_non_missing.
   * This is calculated directly, so should have less numerical error.
   * 
* * uint64 tot_num_values = 8; * @return The totNumValues. */ @java.lang.Override public long getTotNumValues() { return totNumValues_; } public static final int NUM_VALUES_HISTOGRAM_FIELD_NUMBER = 6; private org.tensorflow.metadata.v0.Histogram numValuesHistogram_; /** *
   * The quantiles histogram for the number of values in this feature.
   * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; * @return Whether the numValuesHistogram field is set. */ @java.lang.Override public boolean hasNumValuesHistogram() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The quantiles histogram for the number of values in this feature.
   * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; * @return The numValuesHistogram. */ @java.lang.Override public org.tensorflow.metadata.v0.Histogram getNumValuesHistogram() { return numValuesHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : numValuesHistogram_; } /** *
   * The quantiles histogram for the number of values in this feature.
   * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ @java.lang.Override public org.tensorflow.metadata.v0.HistogramOrBuilder getNumValuesHistogramOrBuilder() { return numValuesHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : numValuesHistogram_; } public static final int WEIGHTED_COMMON_STATS_FIELD_NUMBER = 7; private org.tensorflow.metadata.v0.WeightedCommonStatistics weightedCommonStats_; /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; * @return Whether the weightedCommonStats field is set. */ @java.lang.Override public boolean hasWeightedCommonStats() { return ((bitField0_ & 0x00000002) != 0); } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; * @return The weightedCommonStats. */ @java.lang.Override public org.tensorflow.metadata.v0.WeightedCommonStatistics getWeightedCommonStats() { return weightedCommonStats_ == null ? org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance() : weightedCommonStats_; } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ @java.lang.Override public org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder getWeightedCommonStatsOrBuilder() { return weightedCommonStats_ == null ? org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance() : weightedCommonStats_; } public static final int FEATURE_LIST_LENGTH_HISTOGRAM_FIELD_NUMBER = 9; private org.tensorflow.metadata.v0.Histogram featureListLengthHistogram_; /** *
   * 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; * @return Whether the featureListLengthHistogram field is set. */ @java.lang.Override public boolean hasFeatureListLengthHistogram() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * 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; * @return The featureListLengthHistogram. */ @java.lang.Override public org.tensorflow.metadata.v0.Histogram getFeatureListLengthHistogram() { return featureListLengthHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : featureListLengthHistogram_; } /** *
   * 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; */ @java.lang.Override public org.tensorflow.metadata.v0.HistogramOrBuilder getFeatureListLengthHistogramOrBuilder() { return featureListLengthHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : featureListLengthHistogram_; } public static final int PRESENCE_AND_VALENCY_STATS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List presenceAndValencyStats_; /** *
   * Contains presence and valency stats for each nest level of the feature.
   * The first item corresponds to the outermost level, and by definition,
   * the stats it contains equals to the corresponding stats defined above.
   * May not be populated if the feature is of nest level 1.
   * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ @java.lang.Override public java.util.List getPresenceAndValencyStatsList() { return presenceAndValencyStats_; } /** *
   * Contains presence and valency stats for each nest level of the feature.
   * The first item corresponds to the outermost level, and by definition,
   * the stats it contains equals to the corresponding stats defined above.
   * May not be populated if the feature is of nest level 1.
   * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ @java.lang.Override public java.util.List getPresenceAndValencyStatsOrBuilderList() { return presenceAndValencyStats_; } /** *
   * Contains presence and valency stats for each nest level of the feature.
   * The first item corresponds to the outermost level, and by definition,
   * the stats it contains equals to the corresponding stats defined above.
   * May not be populated if the feature is of nest level 1.
   * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ @java.lang.Override public int getPresenceAndValencyStatsCount() { return presenceAndValencyStats_.size(); } /** *
   * Contains presence and valency stats for each nest level of the feature.
   * The first item corresponds to the outermost level, and by definition,
   * the stats it contains equals to the corresponding stats defined above.
   * May not be populated if the feature is of nest level 1.
   * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ @java.lang.Override public org.tensorflow.metadata.v0.PresenceAndValencyStatistics getPresenceAndValencyStats(int index) { return presenceAndValencyStats_.get(index); } /** *
   * Contains presence and valency stats for each nest level of the feature.
   * The first item corresponds to the outermost level, and by definition,
   * the stats it contains equals to the corresponding stats defined above.
   * May not be populated if the feature is of nest level 1.
   * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ @java.lang.Override public org.tensorflow.metadata.v0.PresenceAndValencyStatisticsOrBuilder getPresenceAndValencyStatsOrBuilder( int index) { return presenceAndValencyStats_.get(index); } public static final int WEIGHTED_PRESENCE_AND_VALENCY_STATS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List weightedPresenceAndValencyStats_; /** *
   * If not empty, it's parallel to presence_and_valency_stats.
   * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ @java.lang.Override public java.util.List getWeightedPresenceAndValencyStatsList() { return weightedPresenceAndValencyStats_; } /** *
   * If not empty, it's parallel to presence_and_valency_stats.
   * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ @java.lang.Override public java.util.List getWeightedPresenceAndValencyStatsOrBuilderList() { return weightedPresenceAndValencyStats_; } /** *
   * If not empty, it's parallel to presence_and_valency_stats.
   * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ @java.lang.Override public int getWeightedPresenceAndValencyStatsCount() { return weightedPresenceAndValencyStats_.size(); } /** *
   * If not empty, it's parallel to presence_and_valency_stats.
   * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ @java.lang.Override public org.tensorflow.metadata.v0.WeightedCommonStatistics getWeightedPresenceAndValencyStats(int index) { return weightedPresenceAndValencyStats_.get(index); } /** *
   * If not empty, it's parallel to presence_and_valency_stats.
   * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ @java.lang.Override public org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder getWeightedPresenceAndValencyStatsOrBuilder( int index) { return weightedPresenceAndValencyStats_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numNonMissing_ != 0L) { output.writeUInt64(1, numNonMissing_); } if (numMissing_ != 0L) { output.writeUInt64(2, numMissing_); } if (minNumValues_ != 0L) { output.writeUInt64(3, minNumValues_); } if (maxNumValues_ != 0L) { output.writeUInt64(4, maxNumValues_); } if (java.lang.Float.floatToRawIntBits(avgNumValues_) != 0) { output.writeFloat(5, avgNumValues_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getNumValuesHistogram()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getWeightedCommonStats()); } if (totNumValues_ != 0L) { output.writeUInt64(8, totNumValues_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getFeatureListLengthHistogram()); } for (int i = 0; i < presenceAndValencyStats_.size(); i++) { output.writeMessage(10, presenceAndValencyStats_.get(i)); } for (int i = 0; i < weightedPresenceAndValencyStats_.size(); i++) { output.writeMessage(11, weightedPresenceAndValencyStats_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numNonMissing_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, numNonMissing_); } if (numMissing_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, numMissing_); } if (minNumValues_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, minNumValues_); } if (maxNumValues_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, maxNumValues_); } if (java.lang.Float.floatToRawIntBits(avgNumValues_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, avgNumValues_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getNumValuesHistogram()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getWeightedCommonStats()); } if (totNumValues_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, totNumValues_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getFeatureListLengthHistogram()); } for (int i = 0; i < presenceAndValencyStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, presenceAndValencyStats_.get(i)); } for (int i = 0; i < weightedPresenceAndValencyStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, weightedPresenceAndValencyStats_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.metadata.v0.CommonStatistics)) { return super.equals(obj); } org.tensorflow.metadata.v0.CommonStatistics other = (org.tensorflow.metadata.v0.CommonStatistics) obj; if (getNumNonMissing() != other.getNumNonMissing()) return false; if (getNumMissing() != other.getNumMissing()) return false; if (getMinNumValues() != other.getMinNumValues()) return false; if (getMaxNumValues() != other.getMaxNumValues()) return false; if (java.lang.Float.floatToIntBits(getAvgNumValues()) != java.lang.Float.floatToIntBits( other.getAvgNumValues())) return false; if (getTotNumValues() != other.getTotNumValues()) return false; if (hasNumValuesHistogram() != other.hasNumValuesHistogram()) return false; if (hasNumValuesHistogram()) { if (!getNumValuesHistogram() .equals(other.getNumValuesHistogram())) return false; } if (hasWeightedCommonStats() != other.hasWeightedCommonStats()) return false; if (hasWeightedCommonStats()) { if (!getWeightedCommonStats() .equals(other.getWeightedCommonStats())) return false; } if (hasFeatureListLengthHistogram() != other.hasFeatureListLengthHistogram()) return false; if (hasFeatureListLengthHistogram()) { if (!getFeatureListLengthHistogram() .equals(other.getFeatureListLengthHistogram())) return false; } if (!getPresenceAndValencyStatsList() .equals(other.getPresenceAndValencyStatsList())) return false; if (!getWeightedPresenceAndValencyStatsList() .equals(other.getWeightedPresenceAndValencyStatsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NUM_NON_MISSING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumNonMissing()); hash = (37 * hash) + NUM_MISSING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumMissing()); hash = (37 * hash) + MIN_NUM_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinNumValues()); hash = (37 * hash) + MAX_NUM_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxNumValues()); hash = (37 * hash) + AVG_NUM_VALUES_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getAvgNumValues()); hash = (37 * hash) + TOT_NUM_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotNumValues()); if (hasNumValuesHistogram()) { hash = (37 * hash) + NUM_VALUES_HISTOGRAM_FIELD_NUMBER; hash = (53 * hash) + getNumValuesHistogram().hashCode(); } if (hasWeightedCommonStats()) { hash = (37 * hash) + WEIGHTED_COMMON_STATS_FIELD_NUMBER; hash = (53 * hash) + getWeightedCommonStats().hashCode(); } if (hasFeatureListLengthHistogram()) { hash = (37 * hash) + FEATURE_LIST_LENGTH_HISTOGRAM_FIELD_NUMBER; hash = (53 * hash) + getFeatureListLengthHistogram().hashCode(); } if (getPresenceAndValencyStatsCount() > 0) { hash = (37 * hash) + PRESENCE_AND_VALENCY_STATS_FIELD_NUMBER; hash = (53 * hash) + getPresenceAndValencyStatsList().hashCode(); } if (getWeightedPresenceAndValencyStatsCount() > 0) { hash = (37 * hash) + WEIGHTED_PRESENCE_AND_VALENCY_STATS_FIELD_NUMBER; hash = (53 * hash) + getWeightedPresenceAndValencyStatsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.metadata.v0.CommonStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CommonStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.CommonStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.metadata.v0.CommonStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 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 {@code tensorflow.metadata.v0.CommonStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.CommonStatistics) org.tensorflow.metadata.v0.CommonStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CommonStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CommonStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.CommonStatistics.class, org.tensorflow.metadata.v0.CommonStatistics.Builder.class); } // Construct using org.tensorflow.metadata.v0.CommonStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNumValuesHistogramFieldBuilder(); getWeightedCommonStatsFieldBuilder(); getFeatureListLengthHistogramFieldBuilder(); getPresenceAndValencyStatsFieldBuilder(); getWeightedPresenceAndValencyStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; numNonMissing_ = 0L; numMissing_ = 0L; minNumValues_ = 0L; maxNumValues_ = 0L; avgNumValues_ = 0F; totNumValues_ = 0L; numValuesHistogram_ = null; if (numValuesHistogramBuilder_ != null) { numValuesHistogramBuilder_.dispose(); numValuesHistogramBuilder_ = null; } weightedCommonStats_ = null; if (weightedCommonStatsBuilder_ != null) { weightedCommonStatsBuilder_.dispose(); weightedCommonStatsBuilder_ = null; } featureListLengthHistogram_ = null; if (featureListLengthHistogramBuilder_ != null) { featureListLengthHistogramBuilder_.dispose(); featureListLengthHistogramBuilder_ = null; } if (presenceAndValencyStatsBuilder_ == null) { presenceAndValencyStats_ = java.util.Collections.emptyList(); } else { presenceAndValencyStats_ = null; presenceAndValencyStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (weightedPresenceAndValencyStatsBuilder_ == null) { weightedPresenceAndValencyStats_ = java.util.Collections.emptyList(); } else { weightedPresenceAndValencyStats_ = null; weightedPresenceAndValencyStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CommonStatistics_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.CommonStatistics getDefaultInstanceForType() { return org.tensorflow.metadata.v0.CommonStatistics.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.CommonStatistics build() { org.tensorflow.metadata.v0.CommonStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.CommonStatistics buildPartial() { org.tensorflow.metadata.v0.CommonStatistics result = new org.tensorflow.metadata.v0.CommonStatistics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.CommonStatistics result) { if (presenceAndValencyStatsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { presenceAndValencyStats_ = java.util.Collections.unmodifiableList(presenceAndValencyStats_); bitField0_ = (bitField0_ & ~0x00000200); } result.presenceAndValencyStats_ = presenceAndValencyStats_; } else { result.presenceAndValencyStats_ = presenceAndValencyStatsBuilder_.build(); } if (weightedPresenceAndValencyStatsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { weightedPresenceAndValencyStats_ = java.util.Collections.unmodifiableList(weightedPresenceAndValencyStats_); bitField0_ = (bitField0_ & ~0x00000400); } result.weightedPresenceAndValencyStats_ = weightedPresenceAndValencyStats_; } else { result.weightedPresenceAndValencyStats_ = weightedPresenceAndValencyStatsBuilder_.build(); } } private void buildPartial0(org.tensorflow.metadata.v0.CommonStatistics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.numNonMissing_ = numNonMissing_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numMissing_ = numMissing_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.minNumValues_ = minNumValues_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxNumValues_ = maxNumValues_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.avgNumValues_ = avgNumValues_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.totNumValues_ = totNumValues_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.numValuesHistogram_ = numValuesHistogramBuilder_ == null ? numValuesHistogram_ : numValuesHistogramBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.weightedCommonStats_ = weightedCommonStatsBuilder_ == null ? weightedCommonStats_ : weightedCommonStatsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.featureListLengthHistogram_ = featureListLengthHistogramBuilder_ == null ? featureListLengthHistogram_ : featureListLengthHistogramBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.metadata.v0.CommonStatistics) { return mergeFrom((org.tensorflow.metadata.v0.CommonStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.CommonStatistics other) { if (other == org.tensorflow.metadata.v0.CommonStatistics.getDefaultInstance()) return this; if (other.getNumNonMissing() != 0L) { setNumNonMissing(other.getNumNonMissing()); } if (other.getNumMissing() != 0L) { setNumMissing(other.getNumMissing()); } if (other.getMinNumValues() != 0L) { setMinNumValues(other.getMinNumValues()); } if (other.getMaxNumValues() != 0L) { setMaxNumValues(other.getMaxNumValues()); } if (other.getAvgNumValues() != 0F) { setAvgNumValues(other.getAvgNumValues()); } if (other.getTotNumValues() != 0L) { setTotNumValues(other.getTotNumValues()); } if (other.hasNumValuesHistogram()) { mergeNumValuesHistogram(other.getNumValuesHistogram()); } if (other.hasWeightedCommonStats()) { mergeWeightedCommonStats(other.getWeightedCommonStats()); } if (other.hasFeatureListLengthHistogram()) { mergeFeatureListLengthHistogram(other.getFeatureListLengthHistogram()); } if (presenceAndValencyStatsBuilder_ == null) { if (!other.presenceAndValencyStats_.isEmpty()) { if (presenceAndValencyStats_.isEmpty()) { presenceAndValencyStats_ = other.presenceAndValencyStats_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.addAll(other.presenceAndValencyStats_); } onChanged(); } } else { if (!other.presenceAndValencyStats_.isEmpty()) { if (presenceAndValencyStatsBuilder_.isEmpty()) { presenceAndValencyStatsBuilder_.dispose(); presenceAndValencyStatsBuilder_ = null; presenceAndValencyStats_ = other.presenceAndValencyStats_; bitField0_ = (bitField0_ & ~0x00000200); presenceAndValencyStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPresenceAndValencyStatsFieldBuilder() : null; } else { presenceAndValencyStatsBuilder_.addAllMessages(other.presenceAndValencyStats_); } } } if (weightedPresenceAndValencyStatsBuilder_ == null) { if (!other.weightedPresenceAndValencyStats_.isEmpty()) { if (weightedPresenceAndValencyStats_.isEmpty()) { weightedPresenceAndValencyStats_ = other.weightedPresenceAndValencyStats_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.addAll(other.weightedPresenceAndValencyStats_); } onChanged(); } } else { if (!other.weightedPresenceAndValencyStats_.isEmpty()) { if (weightedPresenceAndValencyStatsBuilder_.isEmpty()) { weightedPresenceAndValencyStatsBuilder_.dispose(); weightedPresenceAndValencyStatsBuilder_ = null; weightedPresenceAndValencyStats_ = other.weightedPresenceAndValencyStats_; bitField0_ = (bitField0_ & ~0x00000400); weightedPresenceAndValencyStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWeightedPresenceAndValencyStatsFieldBuilder() : null; } else { weightedPresenceAndValencyStatsBuilder_.addAllMessages(other.weightedPresenceAndValencyStats_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { numNonMissing_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { numMissing_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { minNumValues_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { maxNumValues_ = input.readUInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 45: { avgNumValues_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 50: { input.readMessage( getNumValuesHistogramFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage( getWeightedCommonStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 58 case 64: { totNumValues_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 64 case 74: { input.readMessage( getFeatureListLengthHistogramFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { org.tensorflow.metadata.v0.PresenceAndValencyStatistics m = input.readMessage( org.tensorflow.metadata.v0.PresenceAndValencyStatistics.parser(), extensionRegistry); if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.add(m); } else { presenceAndValencyStatsBuilder_.addMessage(m); } break; } // case 82 case 90: { org.tensorflow.metadata.v0.WeightedCommonStatistics m = input.readMessage( org.tensorflow.metadata.v0.WeightedCommonStatistics.parser(), extensionRegistry); if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.add(m); } else { weightedPresenceAndValencyStatsBuilder_.addMessage(m); } break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long numNonMissing_ ; /** *
     * The number of examples that include this feature. Note that this includes
     * examples that contain this feature with an explicitly empty list of values,
     * which may be permitted for variable length features.
     * 
* * uint64 num_non_missing = 1; * @return The numNonMissing. */ @java.lang.Override public long getNumNonMissing() { return numNonMissing_; } /** *
     * The number of examples that include this feature. Note that this includes
     * examples that contain this feature with an explicitly empty list of values,
     * which may be permitted for variable length features.
     * 
* * uint64 num_non_missing = 1; * @param value The numNonMissing to set. * @return This builder for chaining. */ public Builder setNumNonMissing(long value) { numNonMissing_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The number of examples that include this feature. Note that this includes
     * examples that contain this feature with an explicitly empty list of values,
     * which may be permitted for variable length features.
     * 
* * uint64 num_non_missing = 1; * @return This builder for chaining. */ public Builder clearNumNonMissing() { bitField0_ = (bitField0_ & ~0x00000001); numNonMissing_ = 0L; onChanged(); return this; } private long numMissing_ ; /** *
     * The number of examples missing this feature.
     * 
* * uint64 num_missing = 2; * @return The numMissing. */ @java.lang.Override public long getNumMissing() { return numMissing_; } /** *
     * The number of examples missing this feature.
     * 
* * uint64 num_missing = 2; * @param value The numMissing to set. * @return This builder for chaining. */ public Builder setNumMissing(long value) { numMissing_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The number of examples missing this feature.
     * 
* * uint64 num_missing = 2; * @return This builder for chaining. */ public Builder clearNumMissing() { bitField0_ = (bitField0_ & ~0x00000002); numMissing_ = 0L; onChanged(); return this; } private long minNumValues_ ; /** *
     * The minimum number of values in a single example for this feature.
     * 
* * uint64 min_num_values = 3; * @return The minNumValues. */ @java.lang.Override public long getMinNumValues() { return minNumValues_; } /** *
     * The minimum number of values in a single example for this feature.
     * 
* * uint64 min_num_values = 3; * @param value The minNumValues to set. * @return This builder for chaining. */ public Builder setMinNumValues(long value) { minNumValues_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The minimum number of values in a single example for this feature.
     * 
* * uint64 min_num_values = 3; * @return This builder for chaining. */ public Builder clearMinNumValues() { bitField0_ = (bitField0_ & ~0x00000004); minNumValues_ = 0L; onChanged(); return this; } private long maxNumValues_ ; /** *
     * The maximum number of values in a single example for this feature.
     * 
* * uint64 max_num_values = 4; * @return The maxNumValues. */ @java.lang.Override public long getMaxNumValues() { return maxNumValues_; } /** *
     * The maximum number of values in a single example for this feature.
     * 
* * uint64 max_num_values = 4; * @param value The maxNumValues to set. * @return This builder for chaining. */ public Builder setMaxNumValues(long value) { maxNumValues_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The maximum number of values in a single example for this feature.
     * 
* * uint64 max_num_values = 4; * @return This builder for chaining. */ public Builder clearMaxNumValues() { bitField0_ = (bitField0_ & ~0x00000008); maxNumValues_ = 0L; onChanged(); return this; } private float avgNumValues_ ; /** *
     * The average number of values in a single example for this feature.
     * 
* * float avg_num_values = 5; * @return The avgNumValues. */ @java.lang.Override public float getAvgNumValues() { return avgNumValues_; } /** *
     * The average number of values in a single example for this feature.
     * 
* * float avg_num_values = 5; * @param value The avgNumValues to set. * @return This builder for chaining. */ public Builder setAvgNumValues(float value) { avgNumValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The average number of values in a single example for this feature.
     * 
* * float avg_num_values = 5; * @return This builder for chaining. */ public Builder clearAvgNumValues() { bitField0_ = (bitField0_ & ~0x00000010); avgNumValues_ = 0F; onChanged(); return this; } private long totNumValues_ ; /** *
     * tot_num_values = avg_num_values * num_non_missing.
     * This is calculated directly, so should have less numerical error.
     * 
* * uint64 tot_num_values = 8; * @return The totNumValues. */ @java.lang.Override public long getTotNumValues() { return totNumValues_; } /** *
     * tot_num_values = avg_num_values * num_non_missing.
     * This is calculated directly, so should have less numerical error.
     * 
* * uint64 tot_num_values = 8; * @param value The totNumValues to set. * @return This builder for chaining. */ public Builder setTotNumValues(long value) { totNumValues_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * tot_num_values = avg_num_values * num_non_missing.
     * This is calculated directly, so should have less numerical error.
     * 
* * uint64 tot_num_values = 8; * @return This builder for chaining. */ public Builder clearTotNumValues() { bitField0_ = (bitField0_ & ~0x00000020); totNumValues_ = 0L; onChanged(); return this; } private org.tensorflow.metadata.v0.Histogram numValuesHistogram_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder> numValuesHistogramBuilder_; /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; * @return Whether the numValuesHistogram field is set. */ public boolean hasNumValuesHistogram() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; * @return The numValuesHistogram. */ public org.tensorflow.metadata.v0.Histogram getNumValuesHistogram() { if (numValuesHistogramBuilder_ == null) { return numValuesHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : numValuesHistogram_; } else { return numValuesHistogramBuilder_.getMessage(); } } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public Builder setNumValuesHistogram(org.tensorflow.metadata.v0.Histogram value) { if (numValuesHistogramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } numValuesHistogram_ = value; } else { numValuesHistogramBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public Builder setNumValuesHistogram( org.tensorflow.metadata.v0.Histogram.Builder builderForValue) { if (numValuesHistogramBuilder_ == null) { numValuesHistogram_ = builderForValue.build(); } else { numValuesHistogramBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public Builder mergeNumValuesHistogram(org.tensorflow.metadata.v0.Histogram value) { if (numValuesHistogramBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && numValuesHistogram_ != null && numValuesHistogram_ != org.tensorflow.metadata.v0.Histogram.getDefaultInstance()) { getNumValuesHistogramBuilder().mergeFrom(value); } else { numValuesHistogram_ = value; } } else { numValuesHistogramBuilder_.mergeFrom(value); } if (numValuesHistogram_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public Builder clearNumValuesHistogram() { bitField0_ = (bitField0_ & ~0x00000040); numValuesHistogram_ = null; if (numValuesHistogramBuilder_ != null) { numValuesHistogramBuilder_.dispose(); numValuesHistogramBuilder_ = null; } onChanged(); return this; } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public org.tensorflow.metadata.v0.Histogram.Builder getNumValuesHistogramBuilder() { bitField0_ |= 0x00000040; onChanged(); return getNumValuesHistogramFieldBuilder().getBuilder(); } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ public org.tensorflow.metadata.v0.HistogramOrBuilder getNumValuesHistogramOrBuilder() { if (numValuesHistogramBuilder_ != null) { return numValuesHistogramBuilder_.getMessageOrBuilder(); } else { return numValuesHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : numValuesHistogram_; } } /** *
     * The quantiles histogram for the number of values in this feature.
     * 
* * .tensorflow.metadata.v0.Histogram num_values_histogram = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder> getNumValuesHistogramFieldBuilder() { if (numValuesHistogramBuilder_ == null) { numValuesHistogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder>( getNumValuesHistogram(), getParentForChildren(), isClean()); numValuesHistogram_ = null; } return numValuesHistogramBuilder_; } private org.tensorflow.metadata.v0.WeightedCommonStatistics weightedCommonStats_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder> weightedCommonStatsBuilder_; /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; * @return Whether the weightedCommonStats field is set. */ public boolean hasWeightedCommonStats() { return ((bitField0_ & 0x00000080) != 0); } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; * @return The weightedCommonStats. */ public org.tensorflow.metadata.v0.WeightedCommonStatistics getWeightedCommonStats() { if (weightedCommonStatsBuilder_ == null) { return weightedCommonStats_ == null ? org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance() : weightedCommonStats_; } else { return weightedCommonStatsBuilder_.getMessage(); } } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public Builder setWeightedCommonStats(org.tensorflow.metadata.v0.WeightedCommonStatistics value) { if (weightedCommonStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } weightedCommonStats_ = value; } else { weightedCommonStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public Builder setWeightedCommonStats( org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder builderForValue) { if (weightedCommonStatsBuilder_ == null) { weightedCommonStats_ = builderForValue.build(); } else { weightedCommonStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public Builder mergeWeightedCommonStats(org.tensorflow.metadata.v0.WeightedCommonStatistics value) { if (weightedCommonStatsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && weightedCommonStats_ != null && weightedCommonStats_ != org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance()) { getWeightedCommonStatsBuilder().mergeFrom(value); } else { weightedCommonStats_ = value; } } else { weightedCommonStatsBuilder_.mergeFrom(value); } if (weightedCommonStats_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public Builder clearWeightedCommonStats() { bitField0_ = (bitField0_ & ~0x00000080); weightedCommonStats_ = null; if (weightedCommonStatsBuilder_ != null) { weightedCommonStatsBuilder_.dispose(); weightedCommonStatsBuilder_ = null; } onChanged(); return this; } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder getWeightedCommonStatsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getWeightedCommonStatsFieldBuilder().getBuilder(); } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ public org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder getWeightedCommonStatsOrBuilder() { if (weightedCommonStatsBuilder_ != null) { return weightedCommonStatsBuilder_.getMessageOrBuilder(); } else { return weightedCommonStats_ == null ? org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance() : weightedCommonStats_; } } /** * .tensorflow.metadata.v0.WeightedCommonStatistics weighted_common_stats = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder> getWeightedCommonStatsFieldBuilder() { if (weightedCommonStatsBuilder_ == null) { weightedCommonStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder>( getWeightedCommonStats(), getParentForChildren(), isClean()); weightedCommonStats_ = null; } return weightedCommonStatsBuilder_; } private org.tensorflow.metadata.v0.Histogram featureListLengthHistogram_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder> featureListLengthHistogramBuilder_; /** *
     * 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; * @return Whether the featureListLengthHistogram field is set. */ public boolean hasFeatureListLengthHistogram() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * 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; * @return The featureListLengthHistogram. */ public org.tensorflow.metadata.v0.Histogram getFeatureListLengthHistogram() { if (featureListLengthHistogramBuilder_ == null) { return featureListLengthHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : featureListLengthHistogram_; } else { return featureListLengthHistogramBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setFeatureListLengthHistogram(org.tensorflow.metadata.v0.Histogram value) { if (featureListLengthHistogramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featureListLengthHistogram_ = value; } else { featureListLengthHistogramBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * 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; */ public Builder setFeatureListLengthHistogram( org.tensorflow.metadata.v0.Histogram.Builder builderForValue) { if (featureListLengthHistogramBuilder_ == null) { featureListLengthHistogram_ = builderForValue.build(); } else { featureListLengthHistogramBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * 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; */ public Builder mergeFeatureListLengthHistogram(org.tensorflow.metadata.v0.Histogram value) { if (featureListLengthHistogramBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && featureListLengthHistogram_ != null && featureListLengthHistogram_ != org.tensorflow.metadata.v0.Histogram.getDefaultInstance()) { getFeatureListLengthHistogramBuilder().mergeFrom(value); } else { featureListLengthHistogram_ = value; } } else { featureListLengthHistogramBuilder_.mergeFrom(value); } if (featureListLengthHistogram_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * 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; */ public Builder clearFeatureListLengthHistogram() { bitField0_ = (bitField0_ & ~0x00000100); featureListLengthHistogram_ = null; if (featureListLengthHistogramBuilder_ != null) { featureListLengthHistogramBuilder_.dispose(); featureListLengthHistogramBuilder_ = null; } onChanged(); return this; } /** *
     * 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; */ public org.tensorflow.metadata.v0.Histogram.Builder getFeatureListLengthHistogramBuilder() { bitField0_ |= 0x00000100; onChanged(); return getFeatureListLengthHistogramFieldBuilder().getBuilder(); } /** *
     * 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; */ public org.tensorflow.metadata.v0.HistogramOrBuilder getFeatureListLengthHistogramOrBuilder() { if (featureListLengthHistogramBuilder_ != null) { return featureListLengthHistogramBuilder_.getMessageOrBuilder(); } else { return featureListLengthHistogram_ == null ? org.tensorflow.metadata.v0.Histogram.getDefaultInstance() : featureListLengthHistogram_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder> getFeatureListLengthHistogramFieldBuilder() { if (featureListLengthHistogramBuilder_ == null) { featureListLengthHistogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.Histogram, org.tensorflow.metadata.v0.Histogram.Builder, org.tensorflow.metadata.v0.HistogramOrBuilder>( getFeatureListLengthHistogram(), getParentForChildren(), isClean()); featureListLengthHistogram_ = null; } return featureListLengthHistogramBuilder_; } private java.util.List presenceAndValencyStats_ = java.util.Collections.emptyList(); private void ensurePresenceAndValencyStatsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { presenceAndValencyStats_ = new java.util.ArrayList(presenceAndValencyStats_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.PresenceAndValencyStatistics, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder, org.tensorflow.metadata.v0.PresenceAndValencyStatisticsOrBuilder> presenceAndValencyStatsBuilder_; /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public java.util.List getPresenceAndValencyStatsList() { if (presenceAndValencyStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(presenceAndValencyStats_); } else { return presenceAndValencyStatsBuilder_.getMessageList(); } } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public int getPresenceAndValencyStatsCount() { if (presenceAndValencyStatsBuilder_ == null) { return presenceAndValencyStats_.size(); } else { return presenceAndValencyStatsBuilder_.getCount(); } } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public org.tensorflow.metadata.v0.PresenceAndValencyStatistics getPresenceAndValencyStats(int index) { if (presenceAndValencyStatsBuilder_ == null) { return presenceAndValencyStats_.get(index); } else { return presenceAndValencyStatsBuilder_.getMessage(index); } } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder setPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.PresenceAndValencyStatistics value) { if (presenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.set(index, value); onChanged(); } else { presenceAndValencyStatsBuilder_.setMessage(index, value); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder setPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder builderForValue) { if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.set(index, builderForValue.build()); onChanged(); } else { presenceAndValencyStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder addPresenceAndValencyStats(org.tensorflow.metadata.v0.PresenceAndValencyStatistics value) { if (presenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.add(value); onChanged(); } else { presenceAndValencyStatsBuilder_.addMessage(value); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder addPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.PresenceAndValencyStatistics value) { if (presenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.add(index, value); onChanged(); } else { presenceAndValencyStatsBuilder_.addMessage(index, value); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder addPresenceAndValencyStats( org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder builderForValue) { if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.add(builderForValue.build()); onChanged(); } else { presenceAndValencyStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder addPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder builderForValue) { if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.add(index, builderForValue.build()); onChanged(); } else { presenceAndValencyStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder addAllPresenceAndValencyStats( java.lang.Iterable values) { if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, presenceAndValencyStats_); onChanged(); } else { presenceAndValencyStatsBuilder_.addAllMessages(values); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder clearPresenceAndValencyStats() { if (presenceAndValencyStatsBuilder_ == null) { presenceAndValencyStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { presenceAndValencyStatsBuilder_.clear(); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public Builder removePresenceAndValencyStats(int index) { if (presenceAndValencyStatsBuilder_ == null) { ensurePresenceAndValencyStatsIsMutable(); presenceAndValencyStats_.remove(index); onChanged(); } else { presenceAndValencyStatsBuilder_.remove(index); } return this; } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder getPresenceAndValencyStatsBuilder( int index) { return getPresenceAndValencyStatsFieldBuilder().getBuilder(index); } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public org.tensorflow.metadata.v0.PresenceAndValencyStatisticsOrBuilder getPresenceAndValencyStatsOrBuilder( int index) { if (presenceAndValencyStatsBuilder_ == null) { return presenceAndValencyStats_.get(index); } else { return presenceAndValencyStatsBuilder_.getMessageOrBuilder(index); } } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public java.util.List getPresenceAndValencyStatsOrBuilderList() { if (presenceAndValencyStatsBuilder_ != null) { return presenceAndValencyStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(presenceAndValencyStats_); } } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder addPresenceAndValencyStatsBuilder() { return getPresenceAndValencyStatsFieldBuilder().addBuilder( org.tensorflow.metadata.v0.PresenceAndValencyStatistics.getDefaultInstance()); } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder addPresenceAndValencyStatsBuilder( int index) { return getPresenceAndValencyStatsFieldBuilder().addBuilder( index, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.getDefaultInstance()); } /** *
     * Contains presence and valency stats for each nest level of the feature.
     * The first item corresponds to the outermost level, and by definition,
     * the stats it contains equals to the corresponding stats defined above.
     * May not be populated if the feature is of nest level 1.
     * 
* * repeated .tensorflow.metadata.v0.PresenceAndValencyStatistics presence_and_valency_stats = 10; */ public java.util.List getPresenceAndValencyStatsBuilderList() { return getPresenceAndValencyStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.PresenceAndValencyStatistics, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder, org.tensorflow.metadata.v0.PresenceAndValencyStatisticsOrBuilder> getPresenceAndValencyStatsFieldBuilder() { if (presenceAndValencyStatsBuilder_ == null) { presenceAndValencyStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.PresenceAndValencyStatistics, org.tensorflow.metadata.v0.PresenceAndValencyStatistics.Builder, org.tensorflow.metadata.v0.PresenceAndValencyStatisticsOrBuilder>( presenceAndValencyStats_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); presenceAndValencyStats_ = null; } return presenceAndValencyStatsBuilder_; } private java.util.List weightedPresenceAndValencyStats_ = java.util.Collections.emptyList(); private void ensureWeightedPresenceAndValencyStatsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { weightedPresenceAndValencyStats_ = new java.util.ArrayList(weightedPresenceAndValencyStats_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder> weightedPresenceAndValencyStatsBuilder_; /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public java.util.List getWeightedPresenceAndValencyStatsList() { if (weightedPresenceAndValencyStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(weightedPresenceAndValencyStats_); } else { return weightedPresenceAndValencyStatsBuilder_.getMessageList(); } } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public int getWeightedPresenceAndValencyStatsCount() { if (weightedPresenceAndValencyStatsBuilder_ == null) { return weightedPresenceAndValencyStats_.size(); } else { return weightedPresenceAndValencyStatsBuilder_.getCount(); } } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public org.tensorflow.metadata.v0.WeightedCommonStatistics getWeightedPresenceAndValencyStats(int index) { if (weightedPresenceAndValencyStatsBuilder_ == null) { return weightedPresenceAndValencyStats_.get(index); } else { return weightedPresenceAndValencyStatsBuilder_.getMessage(index); } } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder setWeightedPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.WeightedCommonStatistics value) { if (weightedPresenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.set(index, value); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.setMessage(index, value); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder setWeightedPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder builderForValue) { if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.set(index, builderForValue.build()); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder addWeightedPresenceAndValencyStats(org.tensorflow.metadata.v0.WeightedCommonStatistics value) { if (weightedPresenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.add(value); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.addMessage(value); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder addWeightedPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.WeightedCommonStatistics value) { if (weightedPresenceAndValencyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.add(index, value); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.addMessage(index, value); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder addWeightedPresenceAndValencyStats( org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder builderForValue) { if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.add(builderForValue.build()); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder addWeightedPresenceAndValencyStats( int index, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder builderForValue) { if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.add(index, builderForValue.build()); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder addAllWeightedPresenceAndValencyStats( java.lang.Iterable values) { if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, weightedPresenceAndValencyStats_); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.addAllMessages(values); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder clearWeightedPresenceAndValencyStats() { if (weightedPresenceAndValencyStatsBuilder_ == null) { weightedPresenceAndValencyStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.clear(); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public Builder removeWeightedPresenceAndValencyStats(int index) { if (weightedPresenceAndValencyStatsBuilder_ == null) { ensureWeightedPresenceAndValencyStatsIsMutable(); weightedPresenceAndValencyStats_.remove(index); onChanged(); } else { weightedPresenceAndValencyStatsBuilder_.remove(index); } return this; } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder getWeightedPresenceAndValencyStatsBuilder( int index) { return getWeightedPresenceAndValencyStatsFieldBuilder().getBuilder(index); } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder getWeightedPresenceAndValencyStatsOrBuilder( int index) { if (weightedPresenceAndValencyStatsBuilder_ == null) { return weightedPresenceAndValencyStats_.get(index); } else { return weightedPresenceAndValencyStatsBuilder_.getMessageOrBuilder(index); } } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public java.util.List getWeightedPresenceAndValencyStatsOrBuilderList() { if (weightedPresenceAndValencyStatsBuilder_ != null) { return weightedPresenceAndValencyStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(weightedPresenceAndValencyStats_); } } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder addWeightedPresenceAndValencyStatsBuilder() { return getWeightedPresenceAndValencyStatsFieldBuilder().addBuilder( org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance()); } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder addWeightedPresenceAndValencyStatsBuilder( int index) { return getWeightedPresenceAndValencyStatsFieldBuilder().addBuilder( index, org.tensorflow.metadata.v0.WeightedCommonStatistics.getDefaultInstance()); } /** *
     * If not empty, it's parallel to presence_and_valency_stats.
     * 
* * repeated .tensorflow.metadata.v0.WeightedCommonStatistics weighted_presence_and_valency_stats = 11; */ public java.util.List getWeightedPresenceAndValencyStatsBuilderList() { return getWeightedPresenceAndValencyStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder> getWeightedPresenceAndValencyStatsFieldBuilder() { if (weightedPresenceAndValencyStatsBuilder_ == null) { weightedPresenceAndValencyStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.WeightedCommonStatistics, org.tensorflow.metadata.v0.WeightedCommonStatistics.Builder, org.tensorflow.metadata.v0.WeightedCommonStatisticsOrBuilder>( weightedPresenceAndValencyStats_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); weightedPresenceAndValencyStats_ = null; } return weightedPresenceAndValencyStatsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.metadata.v0.CommonStatistics) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.CommonStatistics) private static final org.tensorflow.metadata.v0.CommonStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.CommonStatistics(); } public static org.tensorflow.metadata.v0.CommonStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommonStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.metadata.v0.CommonStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy