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

org.tensorflow.metadata.v0.WeightedStringStatistics 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;

/**
 * 
 * Statistics for a weighted string feature in a dataset.
 * 
* * Protobuf type {@code tensorflow.metadata.v0.WeightedStringStatistics} */ public final class WeightedStringStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.WeightedStringStatistics) WeightedStringStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use WeightedStringStatistics.newBuilder() to construct. private WeightedStringStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WeightedStringStatistics() { topValues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WeightedStringStatistics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_WeightedStringStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_WeightedStringStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.WeightedStringStatistics.class, org.tensorflow.metadata.v0.WeightedStringStatistics.Builder.class); } private int bitField0_; public static final int TOP_VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List topValues_; /** *
   * A sorted list of the most-frequent values and their weighted frequencies,
   * with the most-frequent being first.
   * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ @java.lang.Override public java.util.List getTopValuesList() { return topValues_; } /** *
   * A sorted list of the most-frequent values and their weighted frequencies,
   * with the most-frequent being first.
   * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ @java.lang.Override public java.util.List getTopValuesOrBuilderList() { return topValues_; } /** *
   * A sorted list of the most-frequent values and their weighted frequencies,
   * with the most-frequent being first.
   * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ @java.lang.Override public int getTopValuesCount() { return topValues_.size(); } /** *
   * A sorted list of the most-frequent values and their weighted frequencies,
   * with the most-frequent being first.
   * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ @java.lang.Override public org.tensorflow.metadata.v0.StringStatistics.FreqAndValue getTopValues(int index) { return topValues_.get(index); } /** *
   * A sorted list of the most-frequent values and their weighted frequencies,
   * with the most-frequent being first.
   * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ @java.lang.Override public org.tensorflow.metadata.v0.StringStatistics.FreqAndValueOrBuilder getTopValuesOrBuilder( int index) { return topValues_.get(index); } public static final int RANK_HISTOGRAM_FIELD_NUMBER = 2; private org.tensorflow.metadata.v0.RankHistogram rankHistogram_; /** *
   * The rank histogram for the weighted values of the feature.
   * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; * @return Whether the rankHistogram field is set. */ @java.lang.Override public boolean hasRankHistogram() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The rank histogram for the weighted values of the feature.
   * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; * @return The rankHistogram. */ @java.lang.Override public org.tensorflow.metadata.v0.RankHistogram getRankHistogram() { return rankHistogram_ == null ? org.tensorflow.metadata.v0.RankHistogram.getDefaultInstance() : rankHistogram_; } /** *
   * The rank histogram for the weighted values of the feature.
   * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ @java.lang.Override public org.tensorflow.metadata.v0.RankHistogramOrBuilder getRankHistogramOrBuilder() { return rankHistogram_ == null ? org.tensorflow.metadata.v0.RankHistogram.getDefaultInstance() : rankHistogram_; } 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 { for (int i = 0; i < topValues_.size(); i++) { output.writeMessage(1, topValues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRankHistogram()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < topValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, topValues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRankHistogram()); } 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.WeightedStringStatistics)) { return super.equals(obj); } org.tensorflow.metadata.v0.WeightedStringStatistics other = (org.tensorflow.metadata.v0.WeightedStringStatistics) obj; if (!getTopValuesList() .equals(other.getTopValuesList())) return false; if (hasRankHistogram() != other.hasRankHistogram()) return false; if (hasRankHistogram()) { if (!getRankHistogram() .equals(other.getRankHistogram())) 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(); if (getTopValuesCount() > 0) { hash = (37 * hash) + TOP_VALUES_FIELD_NUMBER; hash = (53 * hash) + getTopValuesList().hashCode(); } if (hasRankHistogram()) { hash = (37 * hash) + RANK_HISTOGRAM_FIELD_NUMBER; hash = (53 * hash) + getRankHistogram().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.WeightedStringStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.WeightedStringStatistics 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.WeightedStringStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.WeightedStringStatistics 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.WeightedStringStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.WeightedStringStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.WeightedStringStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.WeightedStringStatistics 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.WeightedStringStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.WeightedStringStatistics 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.WeightedStringStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.WeightedStringStatistics 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.WeightedStringStatistics 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; } /** *
   * Statistics for a weighted string feature in a dataset.
   * 
* * Protobuf type {@code tensorflow.metadata.v0.WeightedStringStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.WeightedStringStatistics) org.tensorflow.metadata.v0.WeightedStringStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_WeightedStringStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_WeightedStringStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.WeightedStringStatistics.class, org.tensorflow.metadata.v0.WeightedStringStatistics.Builder.class); } // Construct using org.tensorflow.metadata.v0.WeightedStringStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTopValuesFieldBuilder(); getRankHistogramFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (topValuesBuilder_ == null) { topValues_ = java.util.Collections.emptyList(); } else { topValues_ = null; topValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); rankHistogram_ = null; if (rankHistogramBuilder_ != null) { rankHistogramBuilder_.dispose(); rankHistogramBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_WeightedStringStatistics_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.WeightedStringStatistics getDefaultInstanceForType() { return org.tensorflow.metadata.v0.WeightedStringStatistics.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.WeightedStringStatistics build() { org.tensorflow.metadata.v0.WeightedStringStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.WeightedStringStatistics buildPartial() { org.tensorflow.metadata.v0.WeightedStringStatistics result = new org.tensorflow.metadata.v0.WeightedStringStatistics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.WeightedStringStatistics result) { if (topValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topValues_ = java.util.Collections.unmodifiableList(topValues_); bitField0_ = (bitField0_ & ~0x00000001); } result.topValues_ = topValues_; } else { result.topValues_ = topValuesBuilder_.build(); } } private void buildPartial0(org.tensorflow.metadata.v0.WeightedStringStatistics result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.rankHistogram_ = rankHistogramBuilder_ == null ? rankHistogram_ : rankHistogramBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.WeightedStringStatistics) { return mergeFrom((org.tensorflow.metadata.v0.WeightedStringStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.WeightedStringStatistics other) { if (other == org.tensorflow.metadata.v0.WeightedStringStatistics.getDefaultInstance()) return this; if (topValuesBuilder_ == null) { if (!other.topValues_.isEmpty()) { if (topValues_.isEmpty()) { topValues_ = other.topValues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTopValuesIsMutable(); topValues_.addAll(other.topValues_); } onChanged(); } } else { if (!other.topValues_.isEmpty()) { if (topValuesBuilder_.isEmpty()) { topValuesBuilder_.dispose(); topValuesBuilder_ = null; topValues_ = other.topValues_; bitField0_ = (bitField0_ & ~0x00000001); topValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopValuesFieldBuilder() : null; } else { topValuesBuilder_.addAllMessages(other.topValues_); } } } if (other.hasRankHistogram()) { mergeRankHistogram(other.getRankHistogram()); } 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 10: { org.tensorflow.metadata.v0.StringStatistics.FreqAndValue m = input.readMessage( org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.parser(), extensionRegistry); if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); topValues_.add(m); } else { topValuesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getRankHistogramFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 java.util.List topValues_ = java.util.Collections.emptyList(); private void ensureTopValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topValues_ = new java.util.ArrayList(topValues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.StringStatistics.FreqAndValue, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder, org.tensorflow.metadata.v0.StringStatistics.FreqAndValueOrBuilder> topValuesBuilder_; /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public java.util.List getTopValuesList() { if (topValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(topValues_); } else { return topValuesBuilder_.getMessageList(); } } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public int getTopValuesCount() { if (topValuesBuilder_ == null) { return topValues_.size(); } else { return topValuesBuilder_.getCount(); } } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public org.tensorflow.metadata.v0.StringStatistics.FreqAndValue getTopValues(int index) { if (topValuesBuilder_ == null) { return topValues_.get(index); } else { return topValuesBuilder_.getMessage(index); } } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder setTopValues( int index, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue value) { if (topValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopValuesIsMutable(); topValues_.set(index, value); onChanged(); } else { topValuesBuilder_.setMessage(index, value); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder setTopValues( int index, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder builderForValue) { if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); topValues_.set(index, builderForValue.build()); onChanged(); } else { topValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder addTopValues(org.tensorflow.metadata.v0.StringStatistics.FreqAndValue value) { if (topValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopValuesIsMutable(); topValues_.add(value); onChanged(); } else { topValuesBuilder_.addMessage(value); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder addTopValues( int index, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue value) { if (topValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopValuesIsMutable(); topValues_.add(index, value); onChanged(); } else { topValuesBuilder_.addMessage(index, value); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder addTopValues( org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder builderForValue) { if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); topValues_.add(builderForValue.build()); onChanged(); } else { topValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder addTopValues( int index, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder builderForValue) { if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); topValues_.add(index, builderForValue.build()); onChanged(); } else { topValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder addAllTopValues( java.lang.Iterable values) { if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topValues_); onChanged(); } else { topValuesBuilder_.addAllMessages(values); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder clearTopValues() { if (topValuesBuilder_ == null) { topValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { topValuesBuilder_.clear(); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public Builder removeTopValues(int index) { if (topValuesBuilder_ == null) { ensureTopValuesIsMutable(); topValues_.remove(index); onChanged(); } else { topValuesBuilder_.remove(index); } return this; } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder getTopValuesBuilder( int index) { return getTopValuesFieldBuilder().getBuilder(index); } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public org.tensorflow.metadata.v0.StringStatistics.FreqAndValueOrBuilder getTopValuesOrBuilder( int index) { if (topValuesBuilder_ == null) { return topValues_.get(index); } else { return topValuesBuilder_.getMessageOrBuilder(index); } } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public java.util.List getTopValuesOrBuilderList() { if (topValuesBuilder_ != null) { return topValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topValues_); } } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder addTopValuesBuilder() { return getTopValuesFieldBuilder().addBuilder( org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.getDefaultInstance()); } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder addTopValuesBuilder( int index) { return getTopValuesFieldBuilder().addBuilder( index, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.getDefaultInstance()); } /** *
     * A sorted list of the most-frequent values and their weighted frequencies,
     * with the most-frequent being first.
     * 
* * repeated .tensorflow.metadata.v0.StringStatistics.FreqAndValue top_values = 1; */ public java.util.List getTopValuesBuilderList() { return getTopValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.StringStatistics.FreqAndValue, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder, org.tensorflow.metadata.v0.StringStatistics.FreqAndValueOrBuilder> getTopValuesFieldBuilder() { if (topValuesBuilder_ == null) { topValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.StringStatistics.FreqAndValue, org.tensorflow.metadata.v0.StringStatistics.FreqAndValue.Builder, org.tensorflow.metadata.v0.StringStatistics.FreqAndValueOrBuilder>( topValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); topValues_ = null; } return topValuesBuilder_; } private org.tensorflow.metadata.v0.RankHistogram rankHistogram_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.RankHistogram, org.tensorflow.metadata.v0.RankHistogram.Builder, org.tensorflow.metadata.v0.RankHistogramOrBuilder> rankHistogramBuilder_; /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; * @return Whether the rankHistogram field is set. */ public boolean hasRankHistogram() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; * @return The rankHistogram. */ public org.tensorflow.metadata.v0.RankHistogram getRankHistogram() { if (rankHistogramBuilder_ == null) { return rankHistogram_ == null ? org.tensorflow.metadata.v0.RankHistogram.getDefaultInstance() : rankHistogram_; } else { return rankHistogramBuilder_.getMessage(); } } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public Builder setRankHistogram(org.tensorflow.metadata.v0.RankHistogram value) { if (rankHistogramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rankHistogram_ = value; } else { rankHistogramBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public Builder setRankHistogram( org.tensorflow.metadata.v0.RankHistogram.Builder builderForValue) { if (rankHistogramBuilder_ == null) { rankHistogram_ = builderForValue.build(); } else { rankHistogramBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public Builder mergeRankHistogram(org.tensorflow.metadata.v0.RankHistogram value) { if (rankHistogramBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && rankHistogram_ != null && rankHistogram_ != org.tensorflow.metadata.v0.RankHistogram.getDefaultInstance()) { getRankHistogramBuilder().mergeFrom(value); } else { rankHistogram_ = value; } } else { rankHistogramBuilder_.mergeFrom(value); } if (rankHistogram_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public Builder clearRankHistogram() { bitField0_ = (bitField0_ & ~0x00000002); rankHistogram_ = null; if (rankHistogramBuilder_ != null) { rankHistogramBuilder_.dispose(); rankHistogramBuilder_ = null; } onChanged(); return this; } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public org.tensorflow.metadata.v0.RankHistogram.Builder getRankHistogramBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRankHistogramFieldBuilder().getBuilder(); } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ public org.tensorflow.metadata.v0.RankHistogramOrBuilder getRankHistogramOrBuilder() { if (rankHistogramBuilder_ != null) { return rankHistogramBuilder_.getMessageOrBuilder(); } else { return rankHistogram_ == null ? org.tensorflow.metadata.v0.RankHistogram.getDefaultInstance() : rankHistogram_; } } /** *
     * The rank histogram for the weighted values of the feature.
     * 
* * .tensorflow.metadata.v0.RankHistogram rank_histogram = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.RankHistogram, org.tensorflow.metadata.v0.RankHistogram.Builder, org.tensorflow.metadata.v0.RankHistogramOrBuilder> getRankHistogramFieldBuilder() { if (rankHistogramBuilder_ == null) { rankHistogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.RankHistogram, org.tensorflow.metadata.v0.RankHistogram.Builder, org.tensorflow.metadata.v0.RankHistogramOrBuilder>( getRankHistogram(), getParentForChildren(), isClean()); rankHistogram_ = null; } return rankHistogramBuilder_; } @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.WeightedStringStatistics) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.WeightedStringStatistics) private static final org.tensorflow.metadata.v0.WeightedStringStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.WeightedStringStatistics(); } public static org.tensorflow.metadata.v0.WeightedStringStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WeightedStringStatistics 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.WeightedStringStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy