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

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

/**
 * 
 * The feature statistics for a single dataset.
 * 
* * Protobuf type {@code tensorflow.metadata.v0.DatasetFeatureStatistics} */ public final class DatasetFeatureStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DatasetFeatureStatistics) DatasetFeatureStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use DatasetFeatureStatistics.newBuilder() to construct. private DatasetFeatureStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DatasetFeatureStatistics() { name_ = ""; features_ = java.util.Collections.emptyList(); crossFeatures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DatasetFeatureStatistics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_DatasetFeatureStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_DatasetFeatureStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.DatasetFeatureStatistics.class, org.tensorflow.metadata.v0.DatasetFeatureStatistics.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * The name of the dataset.
   * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The name of the dataset.
   * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUM_EXAMPLES_FIELD_NUMBER = 2; private long numExamples_ = 0L; /** *
   * The number of examples in the dataset.
   * 
* * uint64 num_examples = 2; * @return The numExamples. */ @java.lang.Override public long getNumExamples() { return numExamples_; } public static final int WEIGHTED_NUM_EXAMPLES_FIELD_NUMBER = 4; private double weightedNumExamples_ = 0D; /** *
   * Only valid if the weight feature was specified.
   * Treats a missing weighted feature as zero.
   * 
* * double weighted_num_examples = 4; * @return The weightedNumExamples. */ @java.lang.Override public double getWeightedNumExamples() { return weightedNumExamples_; } public static final int FEATURES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List features_; /** *
   * The feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ @java.lang.Override public java.util.List getFeaturesList() { return features_; } /** *
   * The feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ @java.lang.Override public java.util.List getFeaturesOrBuilderList() { return features_; } /** *
   * The feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ @java.lang.Override public int getFeaturesCount() { return features_.size(); } /** *
   * The feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ @java.lang.Override public org.tensorflow.metadata.v0.FeatureNameStatistics getFeatures(int index) { return features_.get(index); } /** *
   * The feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ @java.lang.Override public org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder getFeaturesOrBuilder( int index) { return features_.get(index); } public static final int CROSS_FEATURES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List crossFeatures_; /** *
   * Cross feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ @java.lang.Override public java.util.List getCrossFeaturesList() { return crossFeatures_; } /** *
   * Cross feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ @java.lang.Override public java.util.List getCrossFeaturesOrBuilderList() { return crossFeatures_; } /** *
   * Cross feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ @java.lang.Override public int getCrossFeaturesCount() { return crossFeatures_.size(); } /** *
   * Cross feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ @java.lang.Override public org.tensorflow.metadata.v0.CrossFeatureStatistics getCrossFeatures(int index) { return crossFeatures_.get(index); } /** *
   * Cross feature statistics for the dataset.
   * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ @java.lang.Override public org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder getCrossFeaturesOrBuilder( int index) { return crossFeatures_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (numExamples_ != 0L) { output.writeUInt64(2, numExamples_); } for (int i = 0; i < features_.size(); i++) { output.writeMessage(3, features_.get(i)); } if (java.lang.Double.doubleToRawLongBits(weightedNumExamples_) != 0) { output.writeDouble(4, weightedNumExamples_); } for (int i = 0; i < crossFeatures_.size(); i++) { output.writeMessage(5, crossFeatures_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (numExamples_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, numExamples_); } for (int i = 0; i < features_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, features_.get(i)); } if (java.lang.Double.doubleToRawLongBits(weightedNumExamples_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, weightedNumExamples_); } for (int i = 0; i < crossFeatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, crossFeatures_.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.DatasetFeatureStatistics)) { return super.equals(obj); } org.tensorflow.metadata.v0.DatasetFeatureStatistics other = (org.tensorflow.metadata.v0.DatasetFeatureStatistics) obj; if (!getName() .equals(other.getName())) return false; if (getNumExamples() != other.getNumExamples()) return false; if (java.lang.Double.doubleToLongBits(getWeightedNumExamples()) != java.lang.Double.doubleToLongBits( other.getWeightedNumExamples())) return false; if (!getFeaturesList() .equals(other.getFeaturesList())) return false; if (!getCrossFeaturesList() .equals(other.getCrossFeaturesList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NUM_EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumExamples()); hash = (37 * hash) + WEIGHTED_NUM_EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getWeightedNumExamples())); if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeaturesList().hashCode(); } if (getCrossFeaturesCount() > 0) { hash = (37 * hash) + CROSS_FEATURES_FIELD_NUMBER; hash = (53 * hash) + getCrossFeaturesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics 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.DatasetFeatureStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics 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.DatasetFeatureStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics 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.DatasetFeatureStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics 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.DatasetFeatureStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics 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.DatasetFeatureStatistics 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; } /** *
   * The feature statistics for a single dataset.
   * 
* * Protobuf type {@code tensorflow.metadata.v0.DatasetFeatureStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DatasetFeatureStatistics) org.tensorflow.metadata.v0.DatasetFeatureStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_DatasetFeatureStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_DatasetFeatureStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.DatasetFeatureStatistics.class, org.tensorflow.metadata.v0.DatasetFeatureStatistics.Builder.class); } // Construct using org.tensorflow.metadata.v0.DatasetFeatureStatistics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; numExamples_ = 0L; weightedNumExamples_ = 0D; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { features_ = null; featuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (crossFeaturesBuilder_ == null) { crossFeatures_ = java.util.Collections.emptyList(); } else { crossFeatures_ = null; crossFeaturesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_DatasetFeatureStatistics_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.DatasetFeatureStatistics getDefaultInstanceForType() { return org.tensorflow.metadata.v0.DatasetFeatureStatistics.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.DatasetFeatureStatistics build() { org.tensorflow.metadata.v0.DatasetFeatureStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.DatasetFeatureStatistics buildPartial() { org.tensorflow.metadata.v0.DatasetFeatureStatistics result = new org.tensorflow.metadata.v0.DatasetFeatureStatistics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.DatasetFeatureStatistics result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); bitField0_ = (bitField0_ & ~0x00000008); } result.features_ = features_; } else { result.features_ = featuresBuilder_.build(); } if (crossFeaturesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { crossFeatures_ = java.util.Collections.unmodifiableList(crossFeatures_); bitField0_ = (bitField0_ & ~0x00000010); } result.crossFeatures_ = crossFeatures_; } else { result.crossFeatures_ = crossFeaturesBuilder_.build(); } } private void buildPartial0(org.tensorflow.metadata.v0.DatasetFeatureStatistics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numExamples_ = numExamples_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.weightedNumExamples_ = weightedNumExamples_; } } @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.DatasetFeatureStatistics) { return mergeFrom((org.tensorflow.metadata.v0.DatasetFeatureStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.DatasetFeatureStatistics other) { if (other == org.tensorflow.metadata.v0.DatasetFeatureStatistics.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getNumExamples() != 0L) { setNumExamples(other.getNumExamples()); } if (other.getWeightedNumExamples() != 0D) { setWeightedNumExamples(other.getWeightedNumExamples()); } if (featuresBuilder_ == null) { if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); } onChanged(); } } else { if (!other.features_.isEmpty()) { if (featuresBuilder_.isEmpty()) { featuresBuilder_.dispose(); featuresBuilder_ = null; features_ = other.features_; bitField0_ = (bitField0_ & ~0x00000008); featuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeaturesFieldBuilder() : null; } else { featuresBuilder_.addAllMessages(other.features_); } } } if (crossFeaturesBuilder_ == null) { if (!other.crossFeatures_.isEmpty()) { if (crossFeatures_.isEmpty()) { crossFeatures_ = other.crossFeatures_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCrossFeaturesIsMutable(); crossFeatures_.addAll(other.crossFeatures_); } onChanged(); } } else { if (!other.crossFeatures_.isEmpty()) { if (crossFeaturesBuilder_.isEmpty()) { crossFeaturesBuilder_.dispose(); crossFeaturesBuilder_ = null; crossFeatures_ = other.crossFeatures_; bitField0_ = (bitField0_ & ~0x00000010); crossFeaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCrossFeaturesFieldBuilder() : null; } else { crossFeaturesBuilder_.addAllMessages(other.crossFeatures_); } } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { numExamples_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { org.tensorflow.metadata.v0.FeatureNameStatistics m = input.readMessage( org.tensorflow.metadata.v0.FeatureNameStatistics.parser(), extensionRegistry); if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(m); } else { featuresBuilder_.addMessage(m); } break; } // case 26 case 33: { weightedNumExamples_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 33 case 42: { org.tensorflow.metadata.v0.CrossFeatureStatistics m = input.readMessage( org.tensorflow.metadata.v0.CrossFeatureStatistics.parser(), extensionRegistry); if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); crossFeatures_.add(m); } else { crossFeaturesBuilder_.addMessage(m); } break; } // case 42 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.lang.Object name_ = ""; /** *
     * The name of the dataset.
     * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the dataset.
     * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the dataset.
     * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name of the dataset.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name of the dataset.
     * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long numExamples_ ; /** *
     * The number of examples in the dataset.
     * 
* * uint64 num_examples = 2; * @return The numExamples. */ @java.lang.Override public long getNumExamples() { return numExamples_; } /** *
     * The number of examples in the dataset.
     * 
* * uint64 num_examples = 2; * @param value The numExamples to set. * @return This builder for chaining. */ public Builder setNumExamples(long value) { numExamples_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The number of examples in the dataset.
     * 
* * uint64 num_examples = 2; * @return This builder for chaining. */ public Builder clearNumExamples() { bitField0_ = (bitField0_ & ~0x00000002); numExamples_ = 0L; onChanged(); return this; } private double weightedNumExamples_ ; /** *
     * Only valid if the weight feature was specified.
     * Treats a missing weighted feature as zero.
     * 
* * double weighted_num_examples = 4; * @return The weightedNumExamples. */ @java.lang.Override public double getWeightedNumExamples() { return weightedNumExamples_; } /** *
     * Only valid if the weight feature was specified.
     * Treats a missing weighted feature as zero.
     * 
* * double weighted_num_examples = 4; * @param value The weightedNumExamples to set. * @return This builder for chaining. */ public Builder setWeightedNumExamples(double value) { weightedNumExamples_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Only valid if the weight feature was specified.
     * Treats a missing weighted feature as zero.
     * 
* * double weighted_num_examples = 4; * @return This builder for chaining. */ public Builder clearWeightedNumExamples() { bitField0_ = (bitField0_ & ~0x00000004); weightedNumExamples_ = 0D; onChanged(); return this; } private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.FeatureNameStatistics, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder, org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder> featuresBuilder_; /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public java.util.List getFeaturesList() { if (featuresBuilder_ == null) { return java.util.Collections.unmodifiableList(features_); } else { return featuresBuilder_.getMessageList(); } } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public int getFeaturesCount() { if (featuresBuilder_ == null) { return features_.size(); } else { return featuresBuilder_.getCount(); } } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public org.tensorflow.metadata.v0.FeatureNameStatistics getFeatures(int index) { if (featuresBuilder_ == null) { return features_.get(index); } else { return featuresBuilder_.getMessage(index); } } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder setFeatures( int index, org.tensorflow.metadata.v0.FeatureNameStatistics value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeaturesIsMutable(); features_.set(index, value); onChanged(); } else { featuresBuilder_.setMessage(index, value); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder setFeatures( int index, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.set(index, builderForValue.build()); onChanged(); } else { featuresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder addFeatures(org.tensorflow.metadata.v0.FeatureNameStatistics value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeaturesIsMutable(); features_.add(value); onChanged(); } else { featuresBuilder_.addMessage(value); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder addFeatures( int index, org.tensorflow.metadata.v0.FeatureNameStatistics value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeaturesIsMutable(); features_.add(index, value); onChanged(); } else { featuresBuilder_.addMessage(index, value); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder addFeatures( org.tensorflow.metadata.v0.FeatureNameStatistics.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(builderForValue.build()); onChanged(); } else { featuresBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder addFeatures( int index, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder builderForValue) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.add(index, builderForValue.build()); onChanged(); } else { featuresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder clearFeatures() { if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { featuresBuilder_.clear(); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public Builder removeFeatures(int index) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); features_.remove(index); onChanged(); } else { featuresBuilder_.remove(index); } return this; } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public org.tensorflow.metadata.v0.FeatureNameStatistics.Builder getFeaturesBuilder( int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder getFeaturesOrBuilder( int index) { if (featuresBuilder_ == null) { return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public java.util.List getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(features_); } } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public org.tensorflow.metadata.v0.FeatureNameStatistics.Builder addFeaturesBuilder() { return getFeaturesFieldBuilder().addBuilder( org.tensorflow.metadata.v0.FeatureNameStatistics.getDefaultInstance()); } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public org.tensorflow.metadata.v0.FeatureNameStatistics.Builder addFeaturesBuilder( int index) { return getFeaturesFieldBuilder().addBuilder( index, org.tensorflow.metadata.v0.FeatureNameStatistics.getDefaultInstance()); } /** *
     * The feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.FeatureNameStatistics features = 3; */ public java.util.List getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.FeatureNameStatistics, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder, org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.FeatureNameStatistics, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder, org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder>( features_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; } private java.util.List crossFeatures_ = java.util.Collections.emptyList(); private void ensureCrossFeaturesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { crossFeatures_ = new java.util.ArrayList(crossFeatures_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.CrossFeatureStatistics, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder, org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder> crossFeaturesBuilder_; /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public java.util.List getCrossFeaturesList() { if (crossFeaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(crossFeatures_); } else { return crossFeaturesBuilder_.getMessageList(); } } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public int getCrossFeaturesCount() { if (crossFeaturesBuilder_ == null) { return crossFeatures_.size(); } else { return crossFeaturesBuilder_.getCount(); } } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public org.tensorflow.metadata.v0.CrossFeatureStatistics getCrossFeatures(int index) { if (crossFeaturesBuilder_ == null) { return crossFeatures_.get(index); } else { return crossFeaturesBuilder_.getMessage(index); } } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder setCrossFeatures( int index, org.tensorflow.metadata.v0.CrossFeatureStatistics value) { if (crossFeaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrossFeaturesIsMutable(); crossFeatures_.set(index, value); onChanged(); } else { crossFeaturesBuilder_.setMessage(index, value); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder setCrossFeatures( int index, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder builderForValue) { if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); crossFeatures_.set(index, builderForValue.build()); onChanged(); } else { crossFeaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder addCrossFeatures(org.tensorflow.metadata.v0.CrossFeatureStatistics value) { if (crossFeaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrossFeaturesIsMutable(); crossFeatures_.add(value); onChanged(); } else { crossFeaturesBuilder_.addMessage(value); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder addCrossFeatures( int index, org.tensorflow.metadata.v0.CrossFeatureStatistics value) { if (crossFeaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrossFeaturesIsMutable(); crossFeatures_.add(index, value); onChanged(); } else { crossFeaturesBuilder_.addMessage(index, value); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder addCrossFeatures( org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder builderForValue) { if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); crossFeatures_.add(builderForValue.build()); onChanged(); } else { crossFeaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder addCrossFeatures( int index, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder builderForValue) { if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); crossFeatures_.add(index, builderForValue.build()); onChanged(); } else { crossFeaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder addAllCrossFeatures( java.lang.Iterable values) { if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, crossFeatures_); onChanged(); } else { crossFeaturesBuilder_.addAllMessages(values); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder clearCrossFeatures() { if (crossFeaturesBuilder_ == null) { crossFeatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { crossFeaturesBuilder_.clear(); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public Builder removeCrossFeatures(int index) { if (crossFeaturesBuilder_ == null) { ensureCrossFeaturesIsMutable(); crossFeatures_.remove(index); onChanged(); } else { crossFeaturesBuilder_.remove(index); } return this; } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder getCrossFeaturesBuilder( int index) { return getCrossFeaturesFieldBuilder().getBuilder(index); } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder getCrossFeaturesOrBuilder( int index) { if (crossFeaturesBuilder_ == null) { return crossFeatures_.get(index); } else { return crossFeaturesBuilder_.getMessageOrBuilder(index); } } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public java.util.List getCrossFeaturesOrBuilderList() { if (crossFeaturesBuilder_ != null) { return crossFeaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(crossFeatures_); } } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder addCrossFeaturesBuilder() { return getCrossFeaturesFieldBuilder().addBuilder( org.tensorflow.metadata.v0.CrossFeatureStatistics.getDefaultInstance()); } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder addCrossFeaturesBuilder( int index) { return getCrossFeaturesFieldBuilder().addBuilder( index, org.tensorflow.metadata.v0.CrossFeatureStatistics.getDefaultInstance()); } /** *
     * Cross feature statistics for the dataset.
     * 
* * repeated .tensorflow.metadata.v0.CrossFeatureStatistics cross_features = 5; */ public java.util.List getCrossFeaturesBuilderList() { return getCrossFeaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.CrossFeatureStatistics, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder, org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder> getCrossFeaturesFieldBuilder() { if (crossFeaturesBuilder_ == null) { crossFeaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.metadata.v0.CrossFeatureStatistics, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder, org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder>( crossFeatures_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); crossFeatures_ = null; } return crossFeaturesBuilder_; } @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.DatasetFeatureStatistics) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DatasetFeatureStatistics) private static final org.tensorflow.metadata.v0.DatasetFeatureStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DatasetFeatureStatistics(); } public static org.tensorflow.metadata.v0.DatasetFeatureStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DatasetFeatureStatistics 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.DatasetFeatureStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy