org.tensorflow.metadata.v0.DriftSkewInfo Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/anomalies.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* Message to contain the result of the drift/skew measurements for a feature.
*
*
* Protobuf type {@code tensorflow.metadata.v0.DriftSkewInfo}
*/
public final class DriftSkewInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DriftSkewInfo)
DriftSkewInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DriftSkewInfo.newBuilder() to construct.
private DriftSkewInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DriftSkewInfo() {
driftMeasurements_ = java.util.Collections.emptyList();
skewMeasurements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DriftSkewInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DriftSkewInfo.class, org.tensorflow.metadata.v0.DriftSkewInfo.Builder.class);
}
public interface MeasurementOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.metadata.v0.DriftSkewInfo.Measurement)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return The type.
*/
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type getType();
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return The value.
*/
double getValue();
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return Whether the threshold field is set.
*/
boolean hasThreshold();
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return The threshold.
*/
double getThreshold();
}
/**
* Protobuf type {@code tensorflow.metadata.v0.DriftSkewInfo.Measurement}
*/
public static final class Measurement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DriftSkewInfo.Measurement)
MeasurementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Measurement.newBuilder() to construct.
private Measurement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Measurement() {
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Measurement();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.class, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder.class);
}
/**
* Protobuf enum {@code tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* L_INFTY = 1;
*/
L_INFTY(1),
/**
* JENSEN_SHANNON_DIVERGENCE = 2;
*/
JENSEN_SHANNON_DIVERGENCE(2),
/**
* NORMALIZED_ABSOLUTE_DIFFERENCE = 3;
*/
NORMALIZED_ABSOLUTE_DIFFERENCE(3),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* L_INFTY = 1;
*/
public static final int L_INFTY_VALUE = 1;
/**
* JENSEN_SHANNON_DIVERGENCE = 2;
*/
public static final int JENSEN_SHANNON_DIVERGENCE_VALUE = 2;
/**
* NORMALIZED_ABSOLUTE_DIFFERENCE = 3;
*/
public static final int NORMALIZED_ABSOLUTE_DIFFERENCE_VALUE = 3;
public final int getNumber() {
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 UNKNOWN;
case 1: return L_INFTY;
case 2: return JENSEN_SHANNON_DIVERGENCE;
case 3: return NORMALIZED_ABSOLUTE_DIFFERENCE;
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() {
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.DriftSkewInfo.Measurement.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.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_ = 0;
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return The type.
*/
@java.lang.Override public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type getType() {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type result = org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type.forNumber(type_);
return result == null ? org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type.UNKNOWN : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private double value_ = 0D;
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
public static final int THRESHOLD_FIELD_NUMBER = 3;
private double threshold_ = 0D;
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return Whether the threshold field is set.
*/
@java.lang.Override
public boolean hasThreshold() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return The threshold.
*/
@java.lang.Override
public double getThreshold() {
return threshold_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, threshold_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, threshold_);
}
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.DriftSkewInfo.Measurement)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement other = (org.tensorflow.metadata.v0.DriftSkewInfo.Measurement) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
other.getValue())) return false;
}
if (hasThreshold() != other.hasThreshold()) return false;
if (hasThreshold()) {
if (java.lang.Double.doubleToLongBits(getThreshold())
!= java.lang.Double.doubleToLongBits(
other.getThreshold())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
}
if (hasThreshold()) {
hash = (37 * hash) + THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getThreshold()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement 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.DriftSkewInfo.Measurement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement 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.DriftSkewInfo.Measurement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement 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.DriftSkewInfo.Measurement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement 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.DriftSkewInfo.Measurement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement 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.DriftSkewInfo.Measurement 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;
}
/**
* Protobuf type {@code tensorflow.metadata.v0.DriftSkewInfo.Measurement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DriftSkewInfo.Measurement)
org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.class, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = 0;
value_ = 0D;
threshold_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_Measurement_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement build() {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement buildPartial() {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement result = new org.tensorflow.metadata.v0.DriftSkewInfo.Measurement(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.DriftSkewInfo.Measurement result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.threshold_ = threshold_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.metadata.v0.DriftSkewInfo.Measurement) {
return mergeFrom((org.tensorflow.metadata.v0.DriftSkewInfo.Measurement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.DriftSkewInfo.Measurement other) {
if (other == org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasThreshold()) {
setThreshold(other.getThreshold());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type tmpValue =
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
type_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 17: {
value_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
threshold_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
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 int type_ = 0;
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return The type.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type getType() {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type result = org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type.forNumber(type_);
return result == null ? org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type.UNKNOWN : result;
}
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the measurement.
*
*
* optional .tensorflow.metadata.v0.DriftSkewInfo.Measurement.Type type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private double value_ ;
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Value of the measurement.
*
*
* optional double value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0D;
onChanged();
return this;
}
private double threshold_ ;
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return Whether the threshold field is set.
*/
@java.lang.Override
public boolean hasThreshold() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return The threshold.
*/
@java.lang.Override
public double getThreshold() {
return threshold_;
}
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @param value The threshold to set.
* @return This builder for chaining.
*/
public Builder setThreshold(double value) {
threshold_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Threshold used to determine whether the measurement results in an
* anomaly.
*
*
* optional double threshold = 3;
* @return This builder for chaining.
*/
public Builder clearThreshold() {
bitField0_ = (bitField0_ & ~0x00000004);
threshold_ = 0D;
onChanged();
return this;
}
@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.DriftSkewInfo.Measurement)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DriftSkewInfo.Measurement)
private static final org.tensorflow.metadata.v0.DriftSkewInfo.Measurement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DriftSkewInfo.Measurement();
}
public static org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Measurement 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.DriftSkewInfo.Measurement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
private org.tensorflow.metadata.v0.Path path_;
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
* @return The path.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getPath() {
return path_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : path_;
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getPathOrBuilder() {
return path_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : path_;
}
public static final int DRIFT_MEASUREMENTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List driftMeasurements_;
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
@java.lang.Override
public java.util.List getDriftMeasurementsList() {
return driftMeasurements_;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getDriftMeasurementsOrBuilderList() {
return driftMeasurements_;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
@java.lang.Override
public int getDriftMeasurementsCount() {
return driftMeasurements_.size();
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getDriftMeasurements(int index) {
return driftMeasurements_.get(index);
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder getDriftMeasurementsOrBuilder(
int index) {
return driftMeasurements_.get(index);
}
public static final int SKEW_MEASUREMENTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List skewMeasurements_;
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
@java.lang.Override
public java.util.List getSkewMeasurementsList() {
return skewMeasurements_;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getSkewMeasurementsOrBuilderList() {
return skewMeasurements_;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
@java.lang.Override
public int getSkewMeasurementsCount() {
return skewMeasurements_.size();
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getSkewMeasurements(int index) {
return skewMeasurements_.get(index);
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder getSkewMeasurementsOrBuilder(
int index) {
return skewMeasurements_.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getPath());
}
for (int i = 0; i < driftMeasurements_.size(); i++) {
output.writeMessage(2, driftMeasurements_.get(i));
}
for (int i = 0; i < skewMeasurements_.size(); i++) {
output.writeMessage(3, skewMeasurements_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPath());
}
for (int i = 0; i < driftMeasurements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, driftMeasurements_.get(i));
}
for (int i = 0; i < skewMeasurements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, skewMeasurements_.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.DriftSkewInfo)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.DriftSkewInfo other = (org.tensorflow.metadata.v0.DriftSkewInfo) obj;
if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
if (!getPath()
.equals(other.getPath())) return false;
}
if (!getDriftMeasurementsList()
.equals(other.getDriftMeasurementsList())) return false;
if (!getSkewMeasurementsList()
.equals(other.getSkewMeasurementsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (getDriftMeasurementsCount() > 0) {
hash = (37 * hash) + DRIFT_MEASUREMENTS_FIELD_NUMBER;
hash = (53 * hash) + getDriftMeasurementsList().hashCode();
}
if (getSkewMeasurementsCount() > 0) {
hash = (37 * hash) + SKEW_MEASUREMENTS_FIELD_NUMBER;
hash = (53 * hash) + getSkewMeasurementsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.DriftSkewInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo 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.DriftSkewInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo 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.DriftSkewInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo 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.DriftSkewInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo 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.DriftSkewInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DriftSkewInfo 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.DriftSkewInfo 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;
}
/**
*
* Message to contain the result of the drift/skew measurements for a feature.
*
*
* Protobuf type {@code tensorflow.metadata.v0.DriftSkewInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DriftSkewInfo)
org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DriftSkewInfo.class, org.tensorflow.metadata.v0.DriftSkewInfo.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.DriftSkewInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPathFieldBuilder();
getDriftMeasurementsFieldBuilder();
getSkewMeasurementsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
path_ = null;
if (pathBuilder_ != null) {
pathBuilder_.dispose();
pathBuilder_ = null;
}
if (driftMeasurementsBuilder_ == null) {
driftMeasurements_ = java.util.Collections.emptyList();
} else {
driftMeasurements_ = null;
driftMeasurementsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (skewMeasurementsBuilder_ == null) {
skewMeasurements_ = java.util.Collections.emptyList();
} else {
skewMeasurements_ = null;
skewMeasurementsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_DriftSkewInfo_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.DriftSkewInfo.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo build() {
org.tensorflow.metadata.v0.DriftSkewInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo buildPartial() {
org.tensorflow.metadata.v0.DriftSkewInfo result = new org.tensorflow.metadata.v0.DriftSkewInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.DriftSkewInfo result) {
if (driftMeasurementsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
driftMeasurements_ = java.util.Collections.unmodifiableList(driftMeasurements_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.driftMeasurements_ = driftMeasurements_;
} else {
result.driftMeasurements_ = driftMeasurementsBuilder_.build();
}
if (skewMeasurementsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
skewMeasurements_ = java.util.Collections.unmodifiableList(skewMeasurements_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.skewMeasurements_ = skewMeasurements_;
} else {
result.skewMeasurements_ = skewMeasurementsBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.DriftSkewInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.path_ = pathBuilder_ == null
? path_
: pathBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.metadata.v0.DriftSkewInfo) {
return mergeFrom((org.tensorflow.metadata.v0.DriftSkewInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.DriftSkewInfo other) {
if (other == org.tensorflow.metadata.v0.DriftSkewInfo.getDefaultInstance()) return this;
if (other.hasPath()) {
mergePath(other.getPath());
}
if (driftMeasurementsBuilder_ == null) {
if (!other.driftMeasurements_.isEmpty()) {
if (driftMeasurements_.isEmpty()) {
driftMeasurements_ = other.driftMeasurements_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.addAll(other.driftMeasurements_);
}
onChanged();
}
} else {
if (!other.driftMeasurements_.isEmpty()) {
if (driftMeasurementsBuilder_.isEmpty()) {
driftMeasurementsBuilder_.dispose();
driftMeasurementsBuilder_ = null;
driftMeasurements_ = other.driftMeasurements_;
bitField0_ = (bitField0_ & ~0x00000002);
driftMeasurementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDriftMeasurementsFieldBuilder() : null;
} else {
driftMeasurementsBuilder_.addAllMessages(other.driftMeasurements_);
}
}
}
if (skewMeasurementsBuilder_ == null) {
if (!other.skewMeasurements_.isEmpty()) {
if (skewMeasurements_.isEmpty()) {
skewMeasurements_ = other.skewMeasurements_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.addAll(other.skewMeasurements_);
}
onChanged();
}
} else {
if (!other.skewMeasurements_.isEmpty()) {
if (skewMeasurementsBuilder_.isEmpty()) {
skewMeasurementsBuilder_.dispose();
skewMeasurementsBuilder_ = null;
skewMeasurements_ = other.skewMeasurements_;
bitField0_ = (bitField0_ & ~0x00000004);
skewMeasurementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSkewMeasurementsFieldBuilder() : null;
} else {
skewMeasurementsBuilder_.addAllMessages(other.skewMeasurements_);
}
}
}
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: {
input.readMessage(
getPathFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement m =
input.readMessage(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.PARSER,
extensionRegistry);
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.add(m);
} else {
driftMeasurementsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement m =
input.readMessage(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.PARSER,
extensionRegistry);
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.add(m);
} else {
skewMeasurementsBuilder_.addMessage(m);
}
break;
} // case 26
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 org.tensorflow.metadata.v0.Path path_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder> pathBuilder_;
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
* @return Whether the path field is set.
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
* @return The path.
*/
public org.tensorflow.metadata.v0.Path getPath() {
if (pathBuilder_ == null) {
return path_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : path_;
} else {
return pathBuilder_.getMessage();
}
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public Builder setPath(org.tensorflow.metadata.v0.Path value) {
if (pathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
} else {
pathBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public Builder setPath(
org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (pathBuilder_ == null) {
path_ = builderForValue.build();
} else {
pathBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public Builder mergePath(org.tensorflow.metadata.v0.Path value) {
if (pathBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
path_ != null &&
path_ != org.tensorflow.metadata.v0.Path.getDefaultInstance()) {
getPathBuilder().mergeFrom(value);
} else {
path_ = value;
}
} else {
pathBuilder_.mergeFrom(value);
}
if (path_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = null;
if (pathBuilder_ != null) {
pathBuilder_.dispose();
pathBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public org.tensorflow.metadata.v0.Path.Builder getPathBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPathFieldBuilder().getBuilder();
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
public org.tensorflow.metadata.v0.PathOrBuilder getPathOrBuilder() {
if (pathBuilder_ != null) {
return pathBuilder_.getMessageOrBuilder();
} else {
return path_ == null ?
org.tensorflow.metadata.v0.Path.getDefaultInstance() : path_;
}
}
/**
*
* Identifies the feature;
*
*
* optional .tensorflow.metadata.v0.Path path = 1;
*/
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) {
pathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>(
getPath(),
getParentForChildren(),
isClean());
path_ = null;
}
return pathBuilder_;
}
private java.util.List driftMeasurements_ =
java.util.Collections.emptyList();
private void ensureDriftMeasurementsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
driftMeasurements_ = new java.util.ArrayList(driftMeasurements_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder> driftMeasurementsBuilder_;
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public java.util.List getDriftMeasurementsList() {
if (driftMeasurementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(driftMeasurements_);
} else {
return driftMeasurementsBuilder_.getMessageList();
}
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public int getDriftMeasurementsCount() {
if (driftMeasurementsBuilder_ == null) {
return driftMeasurements_.size();
} else {
return driftMeasurementsBuilder_.getCount();
}
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getDriftMeasurements(int index) {
if (driftMeasurementsBuilder_ == null) {
return driftMeasurements_.get(index);
} else {
return driftMeasurementsBuilder_.getMessage(index);
}
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder setDriftMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (driftMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftMeasurementsIsMutable();
driftMeasurements_.set(index, value);
onChanged();
} else {
driftMeasurementsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder setDriftMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.set(index, builderForValue.build());
onChanged();
} else {
driftMeasurementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder addDriftMeasurements(org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (driftMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftMeasurementsIsMutable();
driftMeasurements_.add(value);
onChanged();
} else {
driftMeasurementsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder addDriftMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (driftMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftMeasurementsIsMutable();
driftMeasurements_.add(index, value);
onChanged();
} else {
driftMeasurementsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder addDriftMeasurements(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.add(builderForValue.build());
onChanged();
} else {
driftMeasurementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder addDriftMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.add(index, builderForValue.build());
onChanged();
} else {
driftMeasurementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder addAllDriftMeasurements(
java.lang.Iterable extends org.tensorflow.metadata.v0.DriftSkewInfo.Measurement> values) {
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, driftMeasurements_);
onChanged();
} else {
driftMeasurementsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder clearDriftMeasurements() {
if (driftMeasurementsBuilder_ == null) {
driftMeasurements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
driftMeasurementsBuilder_.clear();
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public Builder removeDriftMeasurements(int index) {
if (driftMeasurementsBuilder_ == null) {
ensureDriftMeasurementsIsMutable();
driftMeasurements_.remove(index);
onChanged();
} else {
driftMeasurementsBuilder_.remove(index);
}
return this;
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder getDriftMeasurementsBuilder(
int index) {
return getDriftMeasurementsFieldBuilder().getBuilder(index);
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder getDriftMeasurementsOrBuilder(
int index) {
if (driftMeasurementsBuilder_ == null) {
return driftMeasurements_.get(index); } else {
return driftMeasurementsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getDriftMeasurementsOrBuilderList() {
if (driftMeasurementsBuilder_ != null) {
return driftMeasurementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(driftMeasurements_);
}
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder addDriftMeasurementsBuilder() {
return getDriftMeasurementsFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance());
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder addDriftMeasurementsBuilder(
int index) {
return getDriftMeasurementsFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance());
}
/**
*
* The drift/skew may be measured in the same invocation of TFDV, in which
* case both of the following fields are populated.
* Also the drift/skew may be quantified by different measurements, thus
* repeated.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement drift_measurements = 2;
*/
public java.util.List
getDriftMeasurementsBuilderList() {
return getDriftMeasurementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getDriftMeasurementsFieldBuilder() {
if (driftMeasurementsBuilder_ == null) {
driftMeasurementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>(
driftMeasurements_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
driftMeasurements_ = null;
}
return driftMeasurementsBuilder_;
}
private java.util.List skewMeasurements_ =
java.util.Collections.emptyList();
private void ensureSkewMeasurementsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
skewMeasurements_ = new java.util.ArrayList(skewMeasurements_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder> skewMeasurementsBuilder_;
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public java.util.List getSkewMeasurementsList() {
if (skewMeasurementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(skewMeasurements_);
} else {
return skewMeasurementsBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public int getSkewMeasurementsCount() {
if (skewMeasurementsBuilder_ == null) {
return skewMeasurements_.size();
} else {
return skewMeasurementsBuilder_.getCount();
}
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement getSkewMeasurements(int index) {
if (skewMeasurementsBuilder_ == null) {
return skewMeasurements_.get(index);
} else {
return skewMeasurementsBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder setSkewMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (skewMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSkewMeasurementsIsMutable();
skewMeasurements_.set(index, value);
onChanged();
} else {
skewMeasurementsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder setSkewMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.set(index, builderForValue.build());
onChanged();
} else {
skewMeasurementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder addSkewMeasurements(org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (skewMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSkewMeasurementsIsMutable();
skewMeasurements_.add(value);
onChanged();
} else {
skewMeasurementsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder addSkewMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement value) {
if (skewMeasurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSkewMeasurementsIsMutable();
skewMeasurements_.add(index, value);
onChanged();
} else {
skewMeasurementsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder addSkewMeasurements(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.add(builderForValue.build());
onChanged();
} else {
skewMeasurementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder addSkewMeasurements(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder builderForValue) {
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.add(index, builderForValue.build());
onChanged();
} else {
skewMeasurementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder addAllSkewMeasurements(
java.lang.Iterable extends org.tensorflow.metadata.v0.DriftSkewInfo.Measurement> values) {
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, skewMeasurements_);
onChanged();
} else {
skewMeasurementsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder clearSkewMeasurements() {
if (skewMeasurementsBuilder_ == null) {
skewMeasurements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
skewMeasurementsBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public Builder removeSkewMeasurements(int index) {
if (skewMeasurementsBuilder_ == null) {
ensureSkewMeasurementsIsMutable();
skewMeasurements_.remove(index);
onChanged();
} else {
skewMeasurementsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder getSkewMeasurementsBuilder(
int index) {
return getSkewMeasurementsFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder getSkewMeasurementsOrBuilder(
int index) {
if (skewMeasurementsBuilder_ == null) {
return skewMeasurements_.get(index); } else {
return skewMeasurementsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getSkewMeasurementsOrBuilderList() {
if (skewMeasurementsBuilder_ != null) {
return skewMeasurementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(skewMeasurements_);
}
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder addSkewMeasurementsBuilder() {
return getSkewMeasurementsFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder addSkewMeasurementsBuilder(
int index) {
return getSkewMeasurementsFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.getDefaultInstance());
}
/**
* repeated .tensorflow.metadata.v0.DriftSkewInfo.Measurement skew_measurements = 3;
*/
public java.util.List
getSkewMeasurementsBuilderList() {
return getSkewMeasurementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>
getSkewMeasurementsFieldBuilder() {
if (skewMeasurementsBuilder_ == null) {
skewMeasurementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo.Measurement, org.tensorflow.metadata.v0.DriftSkewInfo.Measurement.Builder, org.tensorflow.metadata.v0.DriftSkewInfo.MeasurementOrBuilder>(
skewMeasurements_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
skewMeasurements_ = null;
}
return skewMeasurementsBuilder_;
}
@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.DriftSkewInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DriftSkewInfo)
private static final org.tensorflow.metadata.v0.DriftSkewInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DriftSkewInfo();
}
public static org.tensorflow.metadata.v0.DriftSkewInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DriftSkewInfo 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.DriftSkewInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy