org.tensorflow.metadata.v0.FeatureNameStatistics 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 complete set of statistics for a given feature name for a dataset.
* NextID: 11
*
*
* Protobuf type {@code tensorflow.metadata.v0.FeatureNameStatistics}
*/
public final class FeatureNameStatistics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.FeatureNameStatistics)
FeatureNameStatisticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeatureNameStatistics.newBuilder() to construct.
private FeatureNameStatistics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FeatureNameStatistics() {
type_ = 0;
customStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeatureNameStatistics();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_FeatureNameStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_FeatureNameStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.FeatureNameStatistics.class, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder.class);
}
/**
*
* The types supported by the feature statistics. When aggregating
* tf.Examples, if the bytelist contains a string, it is recommended to encode
* it here as STRING instead of BYTES in order to calculate string-specific
* statistical measures.
*
*
* Protobuf enum {@code tensorflow.metadata.v0.FeatureNameStatistics.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INT = 0;
*/
INT(0),
/**
* FLOAT = 1;
*/
FLOAT(1),
/**
* STRING = 2;
*/
STRING(2),
/**
* BYTES = 3;
*/
BYTES(3),
/**
* STRUCT = 4;
*/
STRUCT(4),
UNRECOGNIZED(-1),
;
/**
* INT = 0;
*/
public static final int INT_VALUE = 0;
/**
* FLOAT = 1;
*/
public static final int FLOAT_VALUE = 1;
/**
* STRING = 2;
*/
public static final int STRING_VALUE = 2;
/**
* BYTES = 3;
*/
public static final int BYTES_VALUE = 3;
/**
* STRUCT = 4;
*/
public static final int STRUCT_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Type forNumber(int value) {
switch (value) {
case 0: return INT;
case 1: return FLOAT;
case 2: return STRING;
case 3: return BYTES;
case 4: return STRUCT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tensorflow.metadata.v0.FeatureNameStatistics.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tensorflow.metadata.v0.FeatureNameStatistics.Type)
}
private int bitField0_;
private int fieldIdCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fieldId_;
public enum FieldIdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NAME(1),
PATH(8),
FIELDID_NOT_SET(0);
private final int value;
private FieldIdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldIdCase valueOf(int value) {
return forNumber(value);
}
public static FieldIdCase forNumber(int value) {
switch (value) {
case 1: return NAME;
case 8: return PATH;
case 0: return FIELDID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldIdCase
getFieldIdCase() {
return FieldIdCase.forNumber(
fieldIdCase_);
}
private int statsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object stats_;
public enum StatsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NUM_STATS(3),
STRING_STATS(4),
BYTES_STATS(5),
STRUCT_STATS(7),
STATS_NOT_SET(0);
private final int value;
private StatsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatsCase valueOf(int value) {
return forNumber(value);
}
public static StatsCase forNumber(int value) {
switch (value) {
case 3: return NUM_STATS;
case 4: return STRING_STATS;
case 5: return BYTES_STATS;
case 7: return STRUCT_STATS;
case 0: return STATS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public StatsCase
getStatsCase() {
return StatsCase.forNumber(
statsCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
/**
*
* The feature name
*
*
* string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return fieldIdCase_ == 1;
}
/**
*
* The feature name
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = "";
if (fieldIdCase_ == 1) {
ref = fieldId_;
}
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();
if (fieldIdCase_ == 1) {
fieldId_ = s;
}
return s;
}
}
/**
*
* The feature name
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = "";
if (fieldIdCase_ == 1) {
ref = fieldId_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldIdCase_ == 1) {
fieldId_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 8;
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return fieldIdCase_ == 8;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
* @return The path.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getPath() {
if (fieldIdCase_ == 8) {
return (org.tensorflow.metadata.v0.Path) fieldId_;
}
return org.tensorflow.metadata.v0.Path.getDefaultInstance();
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getPathOrBuilder() {
if (fieldIdCase_ == 8) {
return (org.tensorflow.metadata.v0.Path) fieldId_;
}
return org.tensorflow.metadata.v0.Path.getDefaultInstance();
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_ = 0;
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @return The type.
*/
@java.lang.Override public org.tensorflow.metadata.v0.FeatureNameStatistics.Type getType() {
org.tensorflow.metadata.v0.FeatureNameStatistics.Type result = org.tensorflow.metadata.v0.FeatureNameStatistics.Type.forNumber(type_);
return result == null ? org.tensorflow.metadata.v0.FeatureNameStatistics.Type.UNRECOGNIZED : result;
}
public static final int NUM_STATS_FIELD_NUMBER = 3;
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
* @return Whether the numStats field is set.
*/
@java.lang.Override
public boolean hasNumStats() {
return statsCase_ == 3;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
* @return The numStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericStatistics getNumStats() {
if (statsCase_ == 3) {
return (org.tensorflow.metadata.v0.NumericStatistics) stats_;
}
return org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericStatisticsOrBuilder getNumStatsOrBuilder() {
if (statsCase_ == 3) {
return (org.tensorflow.metadata.v0.NumericStatistics) stats_;
}
return org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
}
public static final int STRING_STATS_FIELD_NUMBER = 4;
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
* @return Whether the stringStats field is set.
*/
@java.lang.Override
public boolean hasStringStats() {
return statsCase_ == 4;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
* @return The stringStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StringStatistics getStringStats() {
if (statsCase_ == 4) {
return (org.tensorflow.metadata.v0.StringStatistics) stats_;
}
return org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StringStatisticsOrBuilder getStringStatsOrBuilder() {
if (statsCase_ == 4) {
return (org.tensorflow.metadata.v0.StringStatistics) stats_;
}
return org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
}
public static final int BYTES_STATS_FIELD_NUMBER = 5;
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
* @return Whether the bytesStats field is set.
*/
@java.lang.Override
public boolean hasBytesStats() {
return statsCase_ == 5;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
* @return The bytesStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.BytesStatistics getBytesStats() {
if (statsCase_ == 5) {
return (org.tensorflow.metadata.v0.BytesStatistics) stats_;
}
return org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.BytesStatisticsOrBuilder getBytesStatsOrBuilder() {
if (statsCase_ == 5) {
return (org.tensorflow.metadata.v0.BytesStatistics) stats_;
}
return org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
}
public static final int STRUCT_STATS_FIELD_NUMBER = 7;
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
* @return Whether the structStats field is set.
*/
@java.lang.Override
public boolean hasStructStats() {
return statsCase_ == 7;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
* @return The structStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StructStatistics getStructStats() {
if (statsCase_ == 7) {
return (org.tensorflow.metadata.v0.StructStatistics) stats_;
}
return org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StructStatisticsOrBuilder getStructStatsOrBuilder() {
if (statsCase_ == 7) {
return (org.tensorflow.metadata.v0.StructStatistics) stats_;
}
return org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
}
public static final int CUSTOM_STATS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List customStats_;
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
@java.lang.Override
public java.util.List getCustomStatsList() {
return customStats_;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.CustomStatisticOrBuilder>
getCustomStatsOrBuilderList() {
return customStats_;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
@java.lang.Override
public int getCustomStatsCount() {
return customStats_.size();
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CustomStatistic getCustomStats(int index) {
return customStats_.get(index);
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CustomStatisticOrBuilder getCustomStatsOrBuilder(
int index) {
return customStats_.get(index);
}
public static final int VALIDATION_DERIVED_SOURCE_FIELD_NUMBER = 10;
private org.tensorflow.metadata.v0.DerivedFeatureSource validationDerivedSource_;
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
* @return Whether the validationDerivedSource field is set.
*/
@java.lang.Override
public boolean hasValidationDerivedSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
* @return The validationDerivedSource.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureSource getValidationDerivedSource() {
return validationDerivedSource_ == null ? org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance() : validationDerivedSource_;
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder getValidationDerivedSourceOrBuilder() {
return validationDerivedSource_ == null ? org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance() : validationDerivedSource_;
}
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 (fieldIdCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldId_);
}
if (type_ != org.tensorflow.metadata.v0.FeatureNameStatistics.Type.INT.getNumber()) {
output.writeEnum(2, type_);
}
if (statsCase_ == 3) {
output.writeMessage(3, (org.tensorflow.metadata.v0.NumericStatistics) stats_);
}
if (statsCase_ == 4) {
output.writeMessage(4, (org.tensorflow.metadata.v0.StringStatistics) stats_);
}
if (statsCase_ == 5) {
output.writeMessage(5, (org.tensorflow.metadata.v0.BytesStatistics) stats_);
}
for (int i = 0; i < customStats_.size(); i++) {
output.writeMessage(6, customStats_.get(i));
}
if (statsCase_ == 7) {
output.writeMessage(7, (org.tensorflow.metadata.v0.StructStatistics) stats_);
}
if (fieldIdCase_ == 8) {
output.writeMessage(8, (org.tensorflow.metadata.v0.Path) fieldId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(10, getValidationDerivedSource());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldIdCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldId_);
}
if (type_ != org.tensorflow.metadata.v0.FeatureNameStatistics.Type.INT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (statsCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.tensorflow.metadata.v0.NumericStatistics) stats_);
}
if (statsCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.tensorflow.metadata.v0.StringStatistics) stats_);
}
if (statsCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.metadata.v0.BytesStatistics) stats_);
}
for (int i = 0; i < customStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, customStats_.get(i));
}
if (statsCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (org.tensorflow.metadata.v0.StructStatistics) stats_);
}
if (fieldIdCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (org.tensorflow.metadata.v0.Path) fieldId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getValidationDerivedSource());
}
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.FeatureNameStatistics)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.FeatureNameStatistics other = (org.tensorflow.metadata.v0.FeatureNameStatistics) obj;
if (type_ != other.type_) return false;
if (!getCustomStatsList()
.equals(other.getCustomStatsList())) return false;
if (hasValidationDerivedSource() != other.hasValidationDerivedSource()) return false;
if (hasValidationDerivedSource()) {
if (!getValidationDerivedSource()
.equals(other.getValidationDerivedSource())) return false;
}
if (!getFieldIdCase().equals(other.getFieldIdCase())) return false;
switch (fieldIdCase_) {
case 1:
if (!getName()
.equals(other.getName())) return false;
break;
case 8:
if (!getPath()
.equals(other.getPath())) return false;
break;
case 0:
default:
}
if (!getStatsCase().equals(other.getStatsCase())) return false;
switch (statsCase_) {
case 3:
if (!getNumStats()
.equals(other.getNumStats())) return false;
break;
case 4:
if (!getStringStats()
.equals(other.getStringStats())) return false;
break;
case 5:
if (!getBytesStats()
.equals(other.getBytesStats())) return false;
break;
case 7:
if (!getStructStats()
.equals(other.getStructStats())) return false;
break;
case 0:
default:
}
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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getCustomStatsCount() > 0) {
hash = (37 * hash) + CUSTOM_STATS_FIELD_NUMBER;
hash = (53 * hash) + getCustomStatsList().hashCode();
}
if (hasValidationDerivedSource()) {
hash = (37 * hash) + VALIDATION_DERIVED_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getValidationDerivedSource().hashCode();
}
switch (fieldIdCase_) {
case 1:
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
break;
case 8:
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
break;
case 0:
default:
}
switch (statsCase_) {
case 3:
hash = (37 * hash) + NUM_STATS_FIELD_NUMBER;
hash = (53 * hash) + getNumStats().hashCode();
break;
case 4:
hash = (37 * hash) + STRING_STATS_FIELD_NUMBER;
hash = (53 * hash) + getStringStats().hashCode();
break;
case 5:
hash = (37 * hash) + BYTES_STATS_FIELD_NUMBER;
hash = (53 * hash) + getBytesStats().hashCode();
break;
case 7:
hash = (37 * hash) + STRUCT_STATS_FIELD_NUMBER;
hash = (53 * hash) + getStructStats().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics 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.FeatureNameStatistics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics 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.FeatureNameStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics 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.FeatureNameStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics 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.FeatureNameStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics 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.FeatureNameStatistics 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 complete set of statistics for a given feature name for a dataset.
* NextID: 11
*
*
* Protobuf type {@code tensorflow.metadata.v0.FeatureNameStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.FeatureNameStatistics)
org.tensorflow.metadata.v0.FeatureNameStatisticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_FeatureNameStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_FeatureNameStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.FeatureNameStatistics.class, org.tensorflow.metadata.v0.FeatureNameStatistics.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.FeatureNameStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomStatsFieldBuilder();
getValidationDerivedSourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (pathBuilder_ != null) {
pathBuilder_.clear();
}
type_ = 0;
if (numStatsBuilder_ != null) {
numStatsBuilder_.clear();
}
if (stringStatsBuilder_ != null) {
stringStatsBuilder_.clear();
}
if (bytesStatsBuilder_ != null) {
bytesStatsBuilder_.clear();
}
if (structStatsBuilder_ != null) {
structStatsBuilder_.clear();
}
if (customStatsBuilder_ == null) {
customStats_ = java.util.Collections.emptyList();
} else {
customStats_ = null;
customStatsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
validationDerivedSource_ = null;
if (validationDerivedSourceBuilder_ != null) {
validationDerivedSourceBuilder_.dispose();
validationDerivedSourceBuilder_ = null;
}
fieldIdCase_ = 0;
fieldId_ = null;
statsCase_ = 0;
stats_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_FeatureNameStatistics_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.FeatureNameStatistics getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.FeatureNameStatistics.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.FeatureNameStatistics build() {
org.tensorflow.metadata.v0.FeatureNameStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.FeatureNameStatistics buildPartial() {
org.tensorflow.metadata.v0.FeatureNameStatistics result = new org.tensorflow.metadata.v0.FeatureNameStatistics(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.FeatureNameStatistics result) {
if (customStatsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
customStats_ = java.util.Collections.unmodifiableList(customStats_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.customStats_ = customStats_;
} else {
result.customStats_ = customStatsBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.FeatureNameStatistics result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.validationDerivedSource_ = validationDerivedSourceBuilder_ == null
? validationDerivedSource_
: validationDerivedSourceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.FeatureNameStatistics result) {
result.fieldIdCase_ = fieldIdCase_;
result.fieldId_ = this.fieldId_;
if (fieldIdCase_ == 8 &&
pathBuilder_ != null) {
result.fieldId_ = pathBuilder_.build();
}
result.statsCase_ = statsCase_;
result.stats_ = this.stats_;
if (statsCase_ == 3 &&
numStatsBuilder_ != null) {
result.stats_ = numStatsBuilder_.build();
}
if (statsCase_ == 4 &&
stringStatsBuilder_ != null) {
result.stats_ = stringStatsBuilder_.build();
}
if (statsCase_ == 5 &&
bytesStatsBuilder_ != null) {
result.stats_ = bytesStatsBuilder_.build();
}
if (statsCase_ == 7 &&
structStatsBuilder_ != null) {
result.stats_ = structStatsBuilder_.build();
}
}
@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.FeatureNameStatistics) {
return mergeFrom((org.tensorflow.metadata.v0.FeatureNameStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.FeatureNameStatistics other) {
if (other == org.tensorflow.metadata.v0.FeatureNameStatistics.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (customStatsBuilder_ == null) {
if (!other.customStats_.isEmpty()) {
if (customStats_.isEmpty()) {
customStats_ = other.customStats_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureCustomStatsIsMutable();
customStats_.addAll(other.customStats_);
}
onChanged();
}
} else {
if (!other.customStats_.isEmpty()) {
if (customStatsBuilder_.isEmpty()) {
customStatsBuilder_.dispose();
customStatsBuilder_ = null;
customStats_ = other.customStats_;
bitField0_ = (bitField0_ & ~0x00000080);
customStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomStatsFieldBuilder() : null;
} else {
customStatsBuilder_.addAllMessages(other.customStats_);
}
}
}
if (other.hasValidationDerivedSource()) {
mergeValidationDerivedSource(other.getValidationDerivedSource());
}
switch (other.getFieldIdCase()) {
case NAME: {
fieldIdCase_ = 1;
fieldId_ = other.fieldId_;
onChanged();
break;
}
case PATH: {
mergePath(other.getPath());
break;
}
case FIELDID_NOT_SET: {
break;
}
}
switch (other.getStatsCase()) {
case NUM_STATS: {
mergeNumStats(other.getNumStats());
break;
}
case STRING_STATS: {
mergeStringStats(other.getStringStats());
break;
}
case BYTES_STATS: {
mergeBytesStats(other.getBytesStats());
break;
}
case STRUCT_STATS: {
mergeStructStats(other.getStructStats());
break;
}
case STATS_NOT_SET: {
break;
}
}
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: {
java.lang.String s = input.readStringRequireUtf8();
fieldIdCase_ = 1;
fieldId_ = s;
break;
} // case 10
case 16: {
type_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 16
case 26: {
input.readMessage(
getNumStatsFieldBuilder().getBuilder(),
extensionRegistry);
statsCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getStringStatsFieldBuilder().getBuilder(),
extensionRegistry);
statsCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getBytesStatsFieldBuilder().getBuilder(),
extensionRegistry);
statsCase_ = 5;
break;
} // case 42
case 50: {
org.tensorflow.metadata.v0.CustomStatistic m =
input.readMessage(
org.tensorflow.metadata.v0.CustomStatistic.parser(),
extensionRegistry);
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
customStats_.add(m);
} else {
customStatsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
input.readMessage(
getStructStatsFieldBuilder().getBuilder(),
extensionRegistry);
statsCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getPathFieldBuilder().getBuilder(),
extensionRegistry);
fieldIdCase_ = 8;
break;
} // case 66
case 82: {
input.readMessage(
getValidationDerivedSourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 82
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 fieldIdCase_ = 0;
private java.lang.Object fieldId_;
public FieldIdCase
getFieldIdCase() {
return FieldIdCase.forNumber(
fieldIdCase_);
}
public Builder clearFieldId() {
fieldIdCase_ = 0;
fieldId_ = null;
onChanged();
return this;
}
private int statsCase_ = 0;
private java.lang.Object stats_;
public StatsCase
getStatsCase() {
return StatsCase.forNumber(
statsCase_);
}
public Builder clearStats() {
statsCase_ = 0;
stats_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* The feature name
*
*
* string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return fieldIdCase_ == 1;
}
/**
*
* The feature name
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = "";
if (fieldIdCase_ == 1) {
ref = fieldId_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldIdCase_ == 1) {
fieldId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The feature name
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = "";
if (fieldIdCase_ == 1) {
ref = fieldId_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldIdCase_ == 1) {
fieldId_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The feature name
*
*
* 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(); }
fieldIdCase_ = 1;
fieldId_ = value;
onChanged();
return this;
}
/**
*
* The feature name
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
if (fieldIdCase_ == 1) {
fieldIdCase_ = 0;
fieldId_ = null;
onChanged();
}
return this;
}
/**
*
* The feature name
*
*
* 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);
fieldIdCase_ = 1;
fieldId_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder> pathBuilder_;
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return fieldIdCase_ == 8;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
* @return The path.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getPath() {
if (pathBuilder_ == null) {
if (fieldIdCase_ == 8) {
return (org.tensorflow.metadata.v0.Path) fieldId_;
}
return org.tensorflow.metadata.v0.Path.getDefaultInstance();
} else {
if (fieldIdCase_ == 8) {
return pathBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.Path.getDefaultInstance();
}
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
public Builder setPath(org.tensorflow.metadata.v0.Path value) {
if (pathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldId_ = value;
onChanged();
} else {
pathBuilder_.setMessage(value);
}
fieldIdCase_ = 8;
return this;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
public Builder setPath(
org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (pathBuilder_ == null) {
fieldId_ = builderForValue.build();
onChanged();
} else {
pathBuilder_.setMessage(builderForValue.build());
}
fieldIdCase_ = 8;
return this;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
public Builder mergePath(org.tensorflow.metadata.v0.Path value) {
if (pathBuilder_ == null) {
if (fieldIdCase_ == 8 &&
fieldId_ != org.tensorflow.metadata.v0.Path.getDefaultInstance()) {
fieldId_ = org.tensorflow.metadata.v0.Path.newBuilder((org.tensorflow.metadata.v0.Path) fieldId_)
.mergeFrom(value).buildPartial();
} else {
fieldId_ = value;
}
onChanged();
} else {
if (fieldIdCase_ == 8) {
pathBuilder_.mergeFrom(value);
} else {
pathBuilder_.setMessage(value);
}
}
fieldIdCase_ = 8;
return this;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
public Builder clearPath() {
if (pathBuilder_ == null) {
if (fieldIdCase_ == 8) {
fieldIdCase_ = 0;
fieldId_ = null;
onChanged();
}
} else {
if (fieldIdCase_ == 8) {
fieldIdCase_ = 0;
fieldId_ = null;
}
pathBuilder_.clear();
}
return this;
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
public org.tensorflow.metadata.v0.Path.Builder getPathBuilder() {
return getPathFieldBuilder().getBuilder();
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getPathOrBuilder() {
if ((fieldIdCase_ == 8) && (pathBuilder_ != null)) {
return pathBuilder_.getMessageOrBuilder();
} else {
if (fieldIdCase_ == 8) {
return (org.tensorflow.metadata.v0.Path) fieldId_;
}
return org.tensorflow.metadata.v0.Path.getDefaultInstance();
}
}
/**
*
* The path of the feature.
*
*
* .tensorflow.metadata.v0.Path path = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>
getPathFieldBuilder() {
if (pathBuilder_ == null) {
if (!(fieldIdCase_ == 8)) {
fieldId_ = org.tensorflow.metadata.v0.Path.getDefaultInstance();
}
pathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>(
(org.tensorflow.metadata.v0.Path) fieldId_,
getParentForChildren(),
isClean());
fieldId_ = null;
}
fieldIdCase_ = 8;
onChanged();
return pathBuilder_;
}
private int type_ = 0;
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @return The type.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.FeatureNameStatistics.Type getType() {
org.tensorflow.metadata.v0.FeatureNameStatistics.Type result = org.tensorflow.metadata.v0.FeatureNameStatistics.Type.forNumber(type_);
return result == null ? org.tensorflow.metadata.v0.FeatureNameStatistics.Type.UNRECOGNIZED : result;
}
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.tensorflow.metadata.v0.FeatureNameStatistics.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The data type of the feature
*
*
* .tensorflow.metadata.v0.FeatureNameStatistics.Type type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericStatistics, org.tensorflow.metadata.v0.NumericStatistics.Builder, org.tensorflow.metadata.v0.NumericStatisticsOrBuilder> numStatsBuilder_;
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
* @return Whether the numStats field is set.
*/
@java.lang.Override
public boolean hasNumStats() {
return statsCase_ == 3;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
* @return The numStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericStatistics getNumStats() {
if (numStatsBuilder_ == null) {
if (statsCase_ == 3) {
return (org.tensorflow.metadata.v0.NumericStatistics) stats_;
}
return org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
} else {
if (statsCase_ == 3) {
return numStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
public Builder setNumStats(org.tensorflow.metadata.v0.NumericStatistics value) {
if (numStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
numStatsBuilder_.setMessage(value);
}
statsCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
public Builder setNumStats(
org.tensorflow.metadata.v0.NumericStatistics.Builder builderForValue) {
if (numStatsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
numStatsBuilder_.setMessage(builderForValue.build());
}
statsCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
public Builder mergeNumStats(org.tensorflow.metadata.v0.NumericStatistics value) {
if (numStatsBuilder_ == null) {
if (statsCase_ == 3 &&
stats_ != org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance()) {
stats_ = org.tensorflow.metadata.v0.NumericStatistics.newBuilder((org.tensorflow.metadata.v0.NumericStatistics) stats_)
.mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
if (statsCase_ == 3) {
numStatsBuilder_.mergeFrom(value);
} else {
numStatsBuilder_.setMessage(value);
}
}
statsCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
public Builder clearNumStats() {
if (numStatsBuilder_ == null) {
if (statsCase_ == 3) {
statsCase_ = 0;
stats_ = null;
onChanged();
}
} else {
if (statsCase_ == 3) {
statsCase_ = 0;
stats_ = null;
}
numStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
public org.tensorflow.metadata.v0.NumericStatistics.Builder getNumStatsBuilder() {
return getNumStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericStatisticsOrBuilder getNumStatsOrBuilder() {
if ((statsCase_ == 3) && (numStatsBuilder_ != null)) {
return numStatsBuilder_.getMessageOrBuilder();
} else {
if (statsCase_ == 3) {
return (org.tensorflow.metadata.v0.NumericStatistics) stats_;
}
return org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.NumericStatistics num_stats = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericStatistics, org.tensorflow.metadata.v0.NumericStatistics.Builder, org.tensorflow.metadata.v0.NumericStatisticsOrBuilder>
getNumStatsFieldBuilder() {
if (numStatsBuilder_ == null) {
if (!(statsCase_ == 3)) {
stats_ = org.tensorflow.metadata.v0.NumericStatistics.getDefaultInstance();
}
numStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericStatistics, org.tensorflow.metadata.v0.NumericStatistics.Builder, org.tensorflow.metadata.v0.NumericStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.NumericStatistics) stats_,
getParentForChildren(),
isClean());
stats_ = null;
}
statsCase_ = 3;
onChanged();
return numStatsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StringStatistics, org.tensorflow.metadata.v0.StringStatistics.Builder, org.tensorflow.metadata.v0.StringStatisticsOrBuilder> stringStatsBuilder_;
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
* @return Whether the stringStats field is set.
*/
@java.lang.Override
public boolean hasStringStats() {
return statsCase_ == 4;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
* @return The stringStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StringStatistics getStringStats() {
if (stringStatsBuilder_ == null) {
if (statsCase_ == 4) {
return (org.tensorflow.metadata.v0.StringStatistics) stats_;
}
return org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
} else {
if (statsCase_ == 4) {
return stringStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
public Builder setStringStats(org.tensorflow.metadata.v0.StringStatistics value) {
if (stringStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
stringStatsBuilder_.setMessage(value);
}
statsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
public Builder setStringStats(
org.tensorflow.metadata.v0.StringStatistics.Builder builderForValue) {
if (stringStatsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
stringStatsBuilder_.setMessage(builderForValue.build());
}
statsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
public Builder mergeStringStats(org.tensorflow.metadata.v0.StringStatistics value) {
if (stringStatsBuilder_ == null) {
if (statsCase_ == 4 &&
stats_ != org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance()) {
stats_ = org.tensorflow.metadata.v0.StringStatistics.newBuilder((org.tensorflow.metadata.v0.StringStatistics) stats_)
.mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
if (statsCase_ == 4) {
stringStatsBuilder_.mergeFrom(value);
} else {
stringStatsBuilder_.setMessage(value);
}
}
statsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
public Builder clearStringStats() {
if (stringStatsBuilder_ == null) {
if (statsCase_ == 4) {
statsCase_ = 0;
stats_ = null;
onChanged();
}
} else {
if (statsCase_ == 4) {
statsCase_ = 0;
stats_ = null;
}
stringStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
public org.tensorflow.metadata.v0.StringStatistics.Builder getStringStatsBuilder() {
return getStringStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StringStatisticsOrBuilder getStringStatsOrBuilder() {
if ((statsCase_ == 4) && (stringStatsBuilder_ != null)) {
return stringStatsBuilder_.getMessageOrBuilder();
} else {
if (statsCase_ == 4) {
return (org.tensorflow.metadata.v0.StringStatistics) stats_;
}
return org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.StringStatistics string_stats = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StringStatistics, org.tensorflow.metadata.v0.StringStatistics.Builder, org.tensorflow.metadata.v0.StringStatisticsOrBuilder>
getStringStatsFieldBuilder() {
if (stringStatsBuilder_ == null) {
if (!(statsCase_ == 4)) {
stats_ = org.tensorflow.metadata.v0.StringStatistics.getDefaultInstance();
}
stringStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StringStatistics, org.tensorflow.metadata.v0.StringStatistics.Builder, org.tensorflow.metadata.v0.StringStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.StringStatistics) stats_,
getParentForChildren(),
isClean());
stats_ = null;
}
statsCase_ = 4;
onChanged();
return stringStatsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.BytesStatistics, org.tensorflow.metadata.v0.BytesStatistics.Builder, org.tensorflow.metadata.v0.BytesStatisticsOrBuilder> bytesStatsBuilder_;
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
* @return Whether the bytesStats field is set.
*/
@java.lang.Override
public boolean hasBytesStats() {
return statsCase_ == 5;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
* @return The bytesStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.BytesStatistics getBytesStats() {
if (bytesStatsBuilder_ == null) {
if (statsCase_ == 5) {
return (org.tensorflow.metadata.v0.BytesStatistics) stats_;
}
return org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
} else {
if (statsCase_ == 5) {
return bytesStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
public Builder setBytesStats(org.tensorflow.metadata.v0.BytesStatistics value) {
if (bytesStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
bytesStatsBuilder_.setMessage(value);
}
statsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
public Builder setBytesStats(
org.tensorflow.metadata.v0.BytesStatistics.Builder builderForValue) {
if (bytesStatsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
bytesStatsBuilder_.setMessage(builderForValue.build());
}
statsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
public Builder mergeBytesStats(org.tensorflow.metadata.v0.BytesStatistics value) {
if (bytesStatsBuilder_ == null) {
if (statsCase_ == 5 &&
stats_ != org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance()) {
stats_ = org.tensorflow.metadata.v0.BytesStatistics.newBuilder((org.tensorflow.metadata.v0.BytesStatistics) stats_)
.mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
if (statsCase_ == 5) {
bytesStatsBuilder_.mergeFrom(value);
} else {
bytesStatsBuilder_.setMessage(value);
}
}
statsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
public Builder clearBytesStats() {
if (bytesStatsBuilder_ == null) {
if (statsCase_ == 5) {
statsCase_ = 0;
stats_ = null;
onChanged();
}
} else {
if (statsCase_ == 5) {
statsCase_ = 0;
stats_ = null;
}
bytesStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
public org.tensorflow.metadata.v0.BytesStatistics.Builder getBytesStatsBuilder() {
return getBytesStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.BytesStatisticsOrBuilder getBytesStatsOrBuilder() {
if ((statsCase_ == 5) && (bytesStatsBuilder_ != null)) {
return bytesStatsBuilder_.getMessageOrBuilder();
} else {
if (statsCase_ == 5) {
return (org.tensorflow.metadata.v0.BytesStatistics) stats_;
}
return org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.BytesStatistics bytes_stats = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.BytesStatistics, org.tensorflow.metadata.v0.BytesStatistics.Builder, org.tensorflow.metadata.v0.BytesStatisticsOrBuilder>
getBytesStatsFieldBuilder() {
if (bytesStatsBuilder_ == null) {
if (!(statsCase_ == 5)) {
stats_ = org.tensorflow.metadata.v0.BytesStatistics.getDefaultInstance();
}
bytesStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.BytesStatistics, org.tensorflow.metadata.v0.BytesStatistics.Builder, org.tensorflow.metadata.v0.BytesStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.BytesStatistics) stats_,
getParentForChildren(),
isClean());
stats_ = null;
}
statsCase_ = 5;
onChanged();
return bytesStatsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StructStatistics, org.tensorflow.metadata.v0.StructStatistics.Builder, org.tensorflow.metadata.v0.StructStatisticsOrBuilder> structStatsBuilder_;
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
* @return Whether the structStats field is set.
*/
@java.lang.Override
public boolean hasStructStats() {
return statsCase_ == 7;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
* @return The structStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StructStatistics getStructStats() {
if (structStatsBuilder_ == null) {
if (statsCase_ == 7) {
return (org.tensorflow.metadata.v0.StructStatistics) stats_;
}
return org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
} else {
if (statsCase_ == 7) {
return structStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
public Builder setStructStats(org.tensorflow.metadata.v0.StructStatistics value) {
if (structStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
structStatsBuilder_.setMessage(value);
}
statsCase_ = 7;
return this;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
public Builder setStructStats(
org.tensorflow.metadata.v0.StructStatistics.Builder builderForValue) {
if (structStatsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
structStatsBuilder_.setMessage(builderForValue.build());
}
statsCase_ = 7;
return this;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
public Builder mergeStructStats(org.tensorflow.metadata.v0.StructStatistics value) {
if (structStatsBuilder_ == null) {
if (statsCase_ == 7 &&
stats_ != org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance()) {
stats_ = org.tensorflow.metadata.v0.StructStatistics.newBuilder((org.tensorflow.metadata.v0.StructStatistics) stats_)
.mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
if (statsCase_ == 7) {
structStatsBuilder_.mergeFrom(value);
} else {
structStatsBuilder_.setMessage(value);
}
}
statsCase_ = 7;
return this;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
public Builder clearStructStats() {
if (structStatsBuilder_ == null) {
if (statsCase_ == 7) {
statsCase_ = 0;
stats_ = null;
onChanged();
}
} else {
if (statsCase_ == 7) {
statsCase_ = 0;
stats_ = null;
}
structStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
public org.tensorflow.metadata.v0.StructStatistics.Builder getStructStatsBuilder() {
return getStructStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.StructStatisticsOrBuilder getStructStatsOrBuilder() {
if ((statsCase_ == 7) && (structStatsBuilder_ != null)) {
return structStatsBuilder_.getMessageOrBuilder();
} else {
if (statsCase_ == 7) {
return (org.tensorflow.metadata.v0.StructStatistics) stats_;
}
return org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.StructStatistics struct_stats = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StructStatistics, org.tensorflow.metadata.v0.StructStatistics.Builder, org.tensorflow.metadata.v0.StructStatisticsOrBuilder>
getStructStatsFieldBuilder() {
if (structStatsBuilder_ == null) {
if (!(statsCase_ == 7)) {
stats_ = org.tensorflow.metadata.v0.StructStatistics.getDefaultInstance();
}
structStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.StructStatistics, org.tensorflow.metadata.v0.StructStatistics.Builder, org.tensorflow.metadata.v0.StructStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.StructStatistics) stats_,
getParentForChildren(),
isClean());
stats_ = null;
}
statsCase_ = 7;
onChanged();
return structStatsBuilder_;
}
private java.util.List customStats_ =
java.util.Collections.emptyList();
private void ensureCustomStatsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
customStats_ = new java.util.ArrayList(customStats_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.CustomStatistic, org.tensorflow.metadata.v0.CustomStatistic.Builder, org.tensorflow.metadata.v0.CustomStatisticOrBuilder> customStatsBuilder_;
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public java.util.List getCustomStatsList() {
if (customStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customStats_);
} else {
return customStatsBuilder_.getMessageList();
}
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public int getCustomStatsCount() {
if (customStatsBuilder_ == null) {
return customStats_.size();
} else {
return customStatsBuilder_.getCount();
}
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public org.tensorflow.metadata.v0.CustomStatistic getCustomStats(int index) {
if (customStatsBuilder_ == null) {
return customStats_.get(index);
} else {
return customStatsBuilder_.getMessage(index);
}
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder setCustomStats(
int index, org.tensorflow.metadata.v0.CustomStatistic value) {
if (customStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomStatsIsMutable();
customStats_.set(index, value);
onChanged();
} else {
customStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder setCustomStats(
int index, org.tensorflow.metadata.v0.CustomStatistic.Builder builderForValue) {
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
customStats_.set(index, builderForValue.build());
onChanged();
} else {
customStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder addCustomStats(org.tensorflow.metadata.v0.CustomStatistic value) {
if (customStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomStatsIsMutable();
customStats_.add(value);
onChanged();
} else {
customStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder addCustomStats(
int index, org.tensorflow.metadata.v0.CustomStatistic value) {
if (customStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomStatsIsMutable();
customStats_.add(index, value);
onChanged();
} else {
customStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder addCustomStats(
org.tensorflow.metadata.v0.CustomStatistic.Builder builderForValue) {
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
customStats_.add(builderForValue.build());
onChanged();
} else {
customStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder addCustomStats(
int index, org.tensorflow.metadata.v0.CustomStatistic.Builder builderForValue) {
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
customStats_.add(index, builderForValue.build());
onChanged();
} else {
customStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder addAllCustomStats(
java.lang.Iterable extends org.tensorflow.metadata.v0.CustomStatistic> values) {
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customStats_);
onChanged();
} else {
customStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder clearCustomStats() {
if (customStatsBuilder_ == null) {
customStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
customStatsBuilder_.clear();
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public Builder removeCustomStats(int index) {
if (customStatsBuilder_ == null) {
ensureCustomStatsIsMutable();
customStats_.remove(index);
onChanged();
} else {
customStatsBuilder_.remove(index);
}
return this;
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public org.tensorflow.metadata.v0.CustomStatistic.Builder getCustomStatsBuilder(
int index) {
return getCustomStatsFieldBuilder().getBuilder(index);
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public org.tensorflow.metadata.v0.CustomStatisticOrBuilder getCustomStatsOrBuilder(
int index) {
if (customStatsBuilder_ == null) {
return customStats_.get(index); } else {
return customStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public java.util.List extends org.tensorflow.metadata.v0.CustomStatisticOrBuilder>
getCustomStatsOrBuilderList() {
if (customStatsBuilder_ != null) {
return customStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customStats_);
}
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public org.tensorflow.metadata.v0.CustomStatistic.Builder addCustomStatsBuilder() {
return getCustomStatsFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.CustomStatistic.getDefaultInstance());
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public org.tensorflow.metadata.v0.CustomStatistic.Builder addCustomStatsBuilder(
int index) {
return getCustomStatsFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.CustomStatistic.getDefaultInstance());
}
/**
*
* Any custom statistics can be stored in this list.
*
*
* repeated .tensorflow.metadata.v0.CustomStatistic custom_stats = 6;
*/
public java.util.List
getCustomStatsBuilderList() {
return getCustomStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.CustomStatistic, org.tensorflow.metadata.v0.CustomStatistic.Builder, org.tensorflow.metadata.v0.CustomStatisticOrBuilder>
getCustomStatsFieldBuilder() {
if (customStatsBuilder_ == null) {
customStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.CustomStatistic, org.tensorflow.metadata.v0.CustomStatistic.Builder, org.tensorflow.metadata.v0.CustomStatisticOrBuilder>(
customStats_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
customStats_ = null;
}
return customStatsBuilder_;
}
private org.tensorflow.metadata.v0.DerivedFeatureSource validationDerivedSource_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureSource, org.tensorflow.metadata.v0.DerivedFeatureSource.Builder, org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder> validationDerivedSourceBuilder_;
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
* @return Whether the validationDerivedSource field is set.
*/
public boolean hasValidationDerivedSource() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
* @return The validationDerivedSource.
*/
public org.tensorflow.metadata.v0.DerivedFeatureSource getValidationDerivedSource() {
if (validationDerivedSourceBuilder_ == null) {
return validationDerivedSource_ == null ? org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance() : validationDerivedSource_;
} else {
return validationDerivedSourceBuilder_.getMessage();
}
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public Builder setValidationDerivedSource(org.tensorflow.metadata.v0.DerivedFeatureSource value) {
if (validationDerivedSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
validationDerivedSource_ = value;
} else {
validationDerivedSourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public Builder setValidationDerivedSource(
org.tensorflow.metadata.v0.DerivedFeatureSource.Builder builderForValue) {
if (validationDerivedSourceBuilder_ == null) {
validationDerivedSource_ = builderForValue.build();
} else {
validationDerivedSourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public Builder mergeValidationDerivedSource(org.tensorflow.metadata.v0.DerivedFeatureSource value) {
if (validationDerivedSourceBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
validationDerivedSource_ != null &&
validationDerivedSource_ != org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance()) {
getValidationDerivedSourceBuilder().mergeFrom(value);
} else {
validationDerivedSource_ = value;
}
} else {
validationDerivedSourceBuilder_.mergeFrom(value);
}
if (validationDerivedSource_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public Builder clearValidationDerivedSource() {
bitField0_ = (bitField0_ & ~0x00000100);
validationDerivedSource_ = null;
if (validationDerivedSourceBuilder_ != null) {
validationDerivedSourceBuilder_.dispose();
validationDerivedSourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public org.tensorflow.metadata.v0.DerivedFeatureSource.Builder getValidationDerivedSourceBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getValidationDerivedSourceFieldBuilder().getBuilder();
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
public org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder getValidationDerivedSourceOrBuilder() {
if (validationDerivedSourceBuilder_ != null) {
return validationDerivedSourceBuilder_.getMessageOrBuilder();
} else {
return validationDerivedSource_ == null ?
org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance() : validationDerivedSource_;
}
}
/**
*
* If set, indicates that that this feature is derived for validation, and
* stores metadata about its source.
* Experimental and subject to change.
*
*
* .tensorflow.metadata.v0.DerivedFeatureSource validation_derived_source = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureSource, org.tensorflow.metadata.v0.DerivedFeatureSource.Builder, org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder>
getValidationDerivedSourceFieldBuilder() {
if (validationDerivedSourceBuilder_ == null) {
validationDerivedSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureSource, org.tensorflow.metadata.v0.DerivedFeatureSource.Builder, org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder>(
getValidationDerivedSource(),
getParentForChildren(),
isClean());
validationDerivedSource_ = null;
}
return validationDerivedSourceBuilder_;
}
@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.FeatureNameStatistics)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.FeatureNameStatistics)
private static final org.tensorflow.metadata.v0.FeatureNameStatistics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.FeatureNameStatistics();
}
public static org.tensorflow.metadata.v0.FeatureNameStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeatureNameStatistics 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.FeatureNameStatistics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy