org.tensorflow.metadata.v0.Anomalies 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 represent the anomalies, which describe the mismatches (if any)
* between the stats and the schema.
*
*
* Protobuf type {@code tensorflow.metadata.v0.Anomalies}
*/
public final class Anomalies extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.Anomalies)
AnomaliesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Anomalies.newBuilder() to construct.
private Anomalies(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Anomalies() {
anomalyNameFormat_ = 0;
driftSkewInfo_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Anomalies();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetAnomalyInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.Anomalies.class, org.tensorflow.metadata.v0.Anomalies.Builder.class);
}
/**
*
* Map from a column to the difference that it represents.
*
*
* Protobuf enum {@code tensorflow.metadata.v0.Anomalies.AnomalyNameFormat}
*/
public enum AnomalyNameFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* At present, this indicates that the keys in anomaly_info
* refers to the raw field name in the Schema.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* The serialized path to a struct.
*
*
* SERIALIZED_PATH = 1;
*/
SERIALIZED_PATH(1),
;
/**
*
* At present, this indicates that the keys in anomaly_info
* refers to the raw field name in the Schema.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* The serialized path to a struct.
*
*
* SERIALIZED_PATH = 1;
*/
public static final int SERIALIZED_PATH_VALUE = 1;
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 AnomalyNameFormat 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 AnomalyNameFormat forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SERIALIZED_PATH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AnomalyNameFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AnomalyNameFormat findValueByNumber(int number) {
return AnomalyNameFormat.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.Anomalies.getDescriptor().getEnumTypes().get(0);
}
private static final AnomalyNameFormat[] VALUES = values();
public static AnomalyNameFormat 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 AnomalyNameFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tensorflow.metadata.v0.Anomalies.AnomalyNameFormat)
}
private int bitField0_;
private int baselineSchemaCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object baselineSchema_;
public enum BaselineSchemaCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BASELINE(1),
@java.lang.Deprecated BASELINE_V1(6),
BASELINESCHEMA_NOT_SET(0);
private final int value;
private BaselineSchemaCase(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 BaselineSchemaCase valueOf(int value) {
return forNumber(value);
}
public static BaselineSchemaCase forNumber(int value) {
switch (value) {
case 1: return BASELINE;
case 6: return BASELINE_V1;
case 0: return BASELINESCHEMA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BaselineSchemaCase
getBaselineSchemaCase() {
return BaselineSchemaCase.forNumber(
baselineSchemaCase_);
}
public static final int BASELINE_FIELD_NUMBER = 1;
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
* @return Whether the baseline field is set.
*/
@java.lang.Override
public boolean hasBaseline() {
return baselineSchemaCase_ == 1;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
* @return The baseline.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Schema getBaseline() {
if (baselineSchemaCase_ == 1) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SchemaOrBuilder getBaselineOrBuilder() {
if (baselineSchemaCase_ == 1) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
public static final int BASELINE_V1_FIELD_NUMBER = 6;
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
* @deprecated tensorflow.metadata.v0.Anomalies.baseline_v1 is deprecated.
* See tensorflow_metadata/proto/v0/anomalies.proto;l=311
* @return Whether the baselineV1 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBaselineV1() {
return baselineSchemaCase_ == 6;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
* @deprecated tensorflow.metadata.v0.Anomalies.baseline_v1 is deprecated.
* See tensorflow_metadata/proto/v0/anomalies.proto;l=311
* @return The baselineV1.
*/
@java.lang.Override
@java.lang.Deprecated public org.tensorflow.metadata.v0.Schema getBaselineV1() {
if (baselineSchemaCase_ == 6) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.tensorflow.metadata.v0.SchemaOrBuilder getBaselineV1OrBuilder() {
if (baselineSchemaCase_ == 6) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
public static final int ANOMALY_NAME_FORMAT_FIELD_NUMBER = 7;
private int anomalyNameFormat_ = 0;
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @return Whether the anomalyNameFormat field is set.
*/
@java.lang.Override public boolean hasAnomalyNameFormat() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @return The anomalyNameFormat.
*/
@java.lang.Override public org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat getAnomalyNameFormat() {
org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat result = org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat.forNumber(anomalyNameFormat_);
return result == null ? org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat.UNKNOWN : result;
}
public static final int ANOMALY_INFO_FIELD_NUMBER = 2;
private static final class AnomalyInfoDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.tensorflow.metadata.v0.AnomalyInfo> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_AnomalyInfoEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.tensorflow.metadata.v0.AnomalyInfo> anomalyInfo_;
private com.google.protobuf.MapField
internalGetAnomalyInfo() {
if (anomalyInfo_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnomalyInfoDefaultEntryHolder.defaultEntry);
}
return anomalyInfo_;
}
public int getAnomalyInfoCount() {
return internalGetAnomalyInfo().getMap().size();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public boolean containsAnomalyInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnomalyInfo().getMap().containsKey(key);
}
/**
* Use {@link #getAnomalyInfoMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnomalyInfo() {
return getAnomalyInfoMap();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public java.util.Map getAnomalyInfoMap() {
return internalGetAnomalyInfo().getMap();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public /* nullable */
org.tensorflow.metadata.v0.AnomalyInfo getAnomalyInfoOrDefault(
java.lang.String key,
/* nullable */
org.tensorflow.metadata.v0.AnomalyInfo defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAnomalyInfo().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AnomalyInfo getAnomalyInfoOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAnomalyInfo().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DATASET_ANOMALY_INFO_FIELD_NUMBER = 8;
private org.tensorflow.metadata.v0.AnomalyInfo datasetAnomalyInfo_;
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
* @return Whether the datasetAnomalyInfo field is set.
*/
@java.lang.Override
public boolean hasDatasetAnomalyInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
* @return The datasetAnomalyInfo.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AnomalyInfo getDatasetAnomalyInfo() {
return datasetAnomalyInfo_ == null ? org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance() : datasetAnomalyInfo_;
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AnomalyInfoOrBuilder getDatasetAnomalyInfoOrBuilder() {
return datasetAnomalyInfo_ == null ? org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance() : datasetAnomalyInfo_;
}
public static final int DATA_MISSING_FIELD_NUMBER = 3;
private boolean dataMissing_ = false;
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @return Whether the dataMissing field is set.
*/
@java.lang.Override
public boolean hasDataMissing() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @return The dataMissing.
*/
@java.lang.Override
public boolean getDataMissing() {
return dataMissing_;
}
public static final int DRIFT_SKEW_INFO_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List driftSkewInfo_;
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
@java.lang.Override
public java.util.List getDriftSkewInfoList() {
return driftSkewInfo_;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder>
getDriftSkewInfoOrBuilderList() {
return driftSkewInfo_;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
@java.lang.Override
public int getDriftSkewInfoCount() {
return driftSkewInfo_.size();
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfo getDriftSkewInfo(int index) {
return driftSkewInfo_.get(index);
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder getDriftSkewInfoOrBuilder(
int index) {
return driftSkewInfo_.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 (baselineSchemaCase_ == 1) {
output.writeMessage(1, (org.tensorflow.metadata.v0.Schema) baselineSchema_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAnomalyInfo(),
AnomalyInfoDefaultEntryHolder.defaultEntry,
2);
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, dataMissing_);
}
if (baselineSchemaCase_ == 6) {
output.writeMessage(6, (org.tensorflow.metadata.v0.Schema) baselineSchema_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(7, anomalyNameFormat_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getDatasetAnomalyInfo());
}
for (int i = 0; i < driftSkewInfo_.size(); i++) {
output.writeMessage(9, driftSkewInfo_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (baselineSchemaCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (org.tensorflow.metadata.v0.Schema) baselineSchema_);
}
for (java.util.Map.Entry entry
: internalGetAnomalyInfo().getMap().entrySet()) {
com.google.protobuf.MapEntry
anomalyInfo__ = AnomalyInfoDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, anomalyInfo__);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, dataMissing_);
}
if (baselineSchemaCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (org.tensorflow.metadata.v0.Schema) baselineSchema_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, anomalyNameFormat_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDatasetAnomalyInfo());
}
for (int i = 0; i < driftSkewInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, driftSkewInfo_.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.Anomalies)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.Anomalies other = (org.tensorflow.metadata.v0.Anomalies) obj;
if (hasAnomalyNameFormat() != other.hasAnomalyNameFormat()) return false;
if (hasAnomalyNameFormat()) {
if (anomalyNameFormat_ != other.anomalyNameFormat_) return false;
}
if (!internalGetAnomalyInfo().equals(
other.internalGetAnomalyInfo())) return false;
if (hasDatasetAnomalyInfo() != other.hasDatasetAnomalyInfo()) return false;
if (hasDatasetAnomalyInfo()) {
if (!getDatasetAnomalyInfo()
.equals(other.getDatasetAnomalyInfo())) return false;
}
if (hasDataMissing() != other.hasDataMissing()) return false;
if (hasDataMissing()) {
if (getDataMissing()
!= other.getDataMissing()) return false;
}
if (!getDriftSkewInfoList()
.equals(other.getDriftSkewInfoList())) return false;
if (!getBaselineSchemaCase().equals(other.getBaselineSchemaCase())) return false;
switch (baselineSchemaCase_) {
case 1:
if (!getBaseline()
.equals(other.getBaseline())) return false;
break;
case 6:
if (!getBaselineV1()
.equals(other.getBaselineV1())) 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();
if (hasAnomalyNameFormat()) {
hash = (37 * hash) + ANOMALY_NAME_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + anomalyNameFormat_;
}
if (!internalGetAnomalyInfo().getMap().isEmpty()) {
hash = (37 * hash) + ANOMALY_INFO_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnomalyInfo().hashCode();
}
if (hasDatasetAnomalyInfo()) {
hash = (37 * hash) + DATASET_ANOMALY_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDatasetAnomalyInfo().hashCode();
}
if (hasDataMissing()) {
hash = (37 * hash) + DATA_MISSING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDataMissing());
}
if (getDriftSkewInfoCount() > 0) {
hash = (37 * hash) + DRIFT_SKEW_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDriftSkewInfoList().hashCode();
}
switch (baselineSchemaCase_) {
case 1:
hash = (37 * hash) + BASELINE_FIELD_NUMBER;
hash = (53 * hash) + getBaseline().hashCode();
break;
case 6:
hash = (37 * hash) + BASELINE_V1_FIELD_NUMBER;
hash = (53 * hash) + getBaselineV1().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.Anomalies parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.Anomalies 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.Anomalies parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.Anomalies 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.Anomalies parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.Anomalies parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.Anomalies parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.Anomalies 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.Anomalies parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.Anomalies 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.Anomalies parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.Anomalies 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.Anomalies 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 represent the anomalies, which describe the mismatches (if any)
* between the stats and the schema.
*
*
* Protobuf type {@code tensorflow.metadata.v0.Anomalies}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.Anomalies)
org.tensorflow.metadata.v0.AnomaliesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetAnomalyInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetMutableAnomalyInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.Anomalies.class, org.tensorflow.metadata.v0.Anomalies.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.Anomalies.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDatasetAnomalyInfoFieldBuilder();
getDriftSkewInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (baselineBuilder_ != null) {
baselineBuilder_.clear();
}
if (baselineV1Builder_ != null) {
baselineV1Builder_.clear();
}
anomalyNameFormat_ = 0;
internalGetMutableAnomalyInfo().clear();
datasetAnomalyInfo_ = null;
if (datasetAnomalyInfoBuilder_ != null) {
datasetAnomalyInfoBuilder_.dispose();
datasetAnomalyInfoBuilder_ = null;
}
dataMissing_ = false;
if (driftSkewInfoBuilder_ == null) {
driftSkewInfo_ = java.util.Collections.emptyList();
} else {
driftSkewInfo_ = null;
driftSkewInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
baselineSchemaCase_ = 0;
baselineSchema_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.AnomaliesOuterClass.internal_static_tensorflow_metadata_v0_Anomalies_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.Anomalies getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.Anomalies.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.Anomalies build() {
org.tensorflow.metadata.v0.Anomalies result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.Anomalies buildPartial() {
org.tensorflow.metadata.v0.Anomalies result = new org.tensorflow.metadata.v0.Anomalies(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.Anomalies result) {
if (driftSkewInfoBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
driftSkewInfo_ = java.util.Collections.unmodifiableList(driftSkewInfo_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.driftSkewInfo_ = driftSkewInfo_;
} else {
result.driftSkewInfo_ = driftSkewInfoBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.Anomalies result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.anomalyNameFormat_ = anomalyNameFormat_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.anomalyInfo_ = internalGetAnomalyInfo().build(AnomalyInfoDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.datasetAnomalyInfo_ = datasetAnomalyInfoBuilder_ == null
? datasetAnomalyInfo_
: datasetAnomalyInfoBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.dataMissing_ = dataMissing_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.Anomalies result) {
result.baselineSchemaCase_ = baselineSchemaCase_;
result.baselineSchema_ = this.baselineSchema_;
if (baselineSchemaCase_ == 1 &&
baselineBuilder_ != null) {
result.baselineSchema_ = baselineBuilder_.build();
}
if (baselineSchemaCase_ == 6 &&
baselineV1Builder_ != null) {
result.baselineSchema_ = baselineV1Builder_.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.Anomalies) {
return mergeFrom((org.tensorflow.metadata.v0.Anomalies)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.Anomalies other) {
if (other == org.tensorflow.metadata.v0.Anomalies.getDefaultInstance()) return this;
if (other.hasAnomalyNameFormat()) {
setAnomalyNameFormat(other.getAnomalyNameFormat());
}
internalGetMutableAnomalyInfo().mergeFrom(
other.internalGetAnomalyInfo());
bitField0_ |= 0x00000008;
if (other.hasDatasetAnomalyInfo()) {
mergeDatasetAnomalyInfo(other.getDatasetAnomalyInfo());
}
if (other.hasDataMissing()) {
setDataMissing(other.getDataMissing());
}
if (driftSkewInfoBuilder_ == null) {
if (!other.driftSkewInfo_.isEmpty()) {
if (driftSkewInfo_.isEmpty()) {
driftSkewInfo_ = other.driftSkewInfo_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.addAll(other.driftSkewInfo_);
}
onChanged();
}
} else {
if (!other.driftSkewInfo_.isEmpty()) {
if (driftSkewInfoBuilder_.isEmpty()) {
driftSkewInfoBuilder_.dispose();
driftSkewInfoBuilder_ = null;
driftSkewInfo_ = other.driftSkewInfo_;
bitField0_ = (bitField0_ & ~0x00000040);
driftSkewInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDriftSkewInfoFieldBuilder() : null;
} else {
driftSkewInfoBuilder_.addAllMessages(other.driftSkewInfo_);
}
}
}
switch (other.getBaselineSchemaCase()) {
case BASELINE: {
mergeBaseline(other.getBaseline());
break;
}
case BASELINE_V1: {
mergeBaselineV1(other.getBaselineV1());
break;
}
case BASELINESCHEMA_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: {
input.readMessage(
getBaselineFieldBuilder().getBuilder(),
extensionRegistry);
baselineSchemaCase_ = 1;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry
anomalyInfo__ = input.readMessage(
AnomalyInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAnomalyInfo().ensureBuilderMap().put(
anomalyInfo__.getKey(), anomalyInfo__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 18
case 24: {
dataMissing_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 24
case 50: {
input.readMessage(
getBaselineV1FieldBuilder().getBuilder(),
extensionRegistry);
baselineSchemaCase_ = 6;
break;
} // case 50
case 56: {
int tmpRaw = input.readEnum();
org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat tmpValue =
org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(7, tmpRaw);
} else {
anomalyNameFormat_ = tmpRaw;
bitField0_ |= 0x00000004;
}
break;
} // case 56
case 66: {
input.readMessage(
getDatasetAnomalyInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 66
case 74: {
org.tensorflow.metadata.v0.DriftSkewInfo m =
input.readMessage(
org.tensorflow.metadata.v0.DriftSkewInfo.PARSER,
extensionRegistry);
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.add(m);
} else {
driftSkewInfoBuilder_.addMessage(m);
}
break;
} // case 74
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 baselineSchemaCase_ = 0;
private java.lang.Object baselineSchema_;
public BaselineSchemaCase
getBaselineSchemaCase() {
return BaselineSchemaCase.forNumber(
baselineSchemaCase_);
}
public Builder clearBaselineSchema() {
baselineSchemaCase_ = 0;
baselineSchema_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder> baselineBuilder_;
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
* @return Whether the baseline field is set.
*/
@java.lang.Override
public boolean hasBaseline() {
return baselineSchemaCase_ == 1;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
* @return The baseline.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Schema getBaseline() {
if (baselineBuilder_ == null) {
if (baselineSchemaCase_ == 1) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
} else {
if (baselineSchemaCase_ == 1) {
return baselineBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
public Builder setBaseline(org.tensorflow.metadata.v0.Schema value) {
if (baselineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baselineSchema_ = value;
onChanged();
} else {
baselineBuilder_.setMessage(value);
}
baselineSchemaCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
public Builder setBaseline(
org.tensorflow.metadata.v0.Schema.Builder builderForValue) {
if (baselineBuilder_ == null) {
baselineSchema_ = builderForValue.build();
onChanged();
} else {
baselineBuilder_.setMessage(builderForValue.build());
}
baselineSchemaCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
public Builder mergeBaseline(org.tensorflow.metadata.v0.Schema value) {
if (baselineBuilder_ == null) {
if (baselineSchemaCase_ == 1 &&
baselineSchema_ != org.tensorflow.metadata.v0.Schema.getDefaultInstance()) {
baselineSchema_ = org.tensorflow.metadata.v0.Schema.newBuilder((org.tensorflow.metadata.v0.Schema) baselineSchema_)
.mergeFrom(value).buildPartial();
} else {
baselineSchema_ = value;
}
onChanged();
} else {
if (baselineSchemaCase_ == 1) {
baselineBuilder_.mergeFrom(value);
} else {
baselineBuilder_.setMessage(value);
}
}
baselineSchemaCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
public Builder clearBaseline() {
if (baselineBuilder_ == null) {
if (baselineSchemaCase_ == 1) {
baselineSchemaCase_ = 0;
baselineSchema_ = null;
onChanged();
}
} else {
if (baselineSchemaCase_ == 1) {
baselineSchemaCase_ = 0;
baselineSchema_ = null;
}
baselineBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
public org.tensorflow.metadata.v0.Schema.Builder getBaselineBuilder() {
return getBaselineFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SchemaOrBuilder getBaselineOrBuilder() {
if ((baselineSchemaCase_ == 1) && (baselineBuilder_ != null)) {
return baselineBuilder_.getMessageOrBuilder();
} else {
if (baselineSchemaCase_ == 1) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.Schema baseline = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder>
getBaselineFieldBuilder() {
if (baselineBuilder_ == null) {
if (!(baselineSchemaCase_ == 1)) {
baselineSchema_ = org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
baselineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder>(
(org.tensorflow.metadata.v0.Schema) baselineSchema_,
getParentForChildren(),
isClean());
baselineSchema_ = null;
}
baselineSchemaCase_ = 1;
onChanged();
return baselineBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder> baselineV1Builder_;
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
* @deprecated tensorflow.metadata.v0.Anomalies.baseline_v1 is deprecated.
* See tensorflow_metadata/proto/v0/anomalies.proto;l=311
* @return Whether the baselineV1 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBaselineV1() {
return baselineSchemaCase_ == 6;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
* @deprecated tensorflow.metadata.v0.Anomalies.baseline_v1 is deprecated.
* See tensorflow_metadata/proto/v0/anomalies.proto;l=311
* @return The baselineV1.
*/
@java.lang.Override
@java.lang.Deprecated public org.tensorflow.metadata.v0.Schema getBaselineV1() {
if (baselineV1Builder_ == null) {
if (baselineSchemaCase_ == 6) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
} else {
if (baselineSchemaCase_ == 6) {
return baselineV1Builder_.getMessage();
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Deprecated public Builder setBaselineV1(org.tensorflow.metadata.v0.Schema value) {
if (baselineV1Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baselineSchema_ = value;
onChanged();
} else {
baselineV1Builder_.setMessage(value);
}
baselineSchemaCase_ = 6;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Deprecated public Builder setBaselineV1(
org.tensorflow.metadata.v0.Schema.Builder builderForValue) {
if (baselineV1Builder_ == null) {
baselineSchema_ = builderForValue.build();
onChanged();
} else {
baselineV1Builder_.setMessage(builderForValue.build());
}
baselineSchemaCase_ = 6;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeBaselineV1(org.tensorflow.metadata.v0.Schema value) {
if (baselineV1Builder_ == null) {
if (baselineSchemaCase_ == 6 &&
baselineSchema_ != org.tensorflow.metadata.v0.Schema.getDefaultInstance()) {
baselineSchema_ = org.tensorflow.metadata.v0.Schema.newBuilder((org.tensorflow.metadata.v0.Schema) baselineSchema_)
.mergeFrom(value).buildPartial();
} else {
baselineSchema_ = value;
}
onChanged();
} else {
if (baselineSchemaCase_ == 6) {
baselineV1Builder_.mergeFrom(value);
} else {
baselineV1Builder_.setMessage(value);
}
}
baselineSchemaCase_ = 6;
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearBaselineV1() {
if (baselineV1Builder_ == null) {
if (baselineSchemaCase_ == 6) {
baselineSchemaCase_ = 0;
baselineSchema_ = null;
onChanged();
}
} else {
if (baselineSchemaCase_ == 6) {
baselineSchemaCase_ = 0;
baselineSchema_ = null;
}
baselineV1Builder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Deprecated public org.tensorflow.metadata.v0.Schema.Builder getBaselineV1Builder() {
return getBaselineV1FieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.tensorflow.metadata.v0.SchemaOrBuilder getBaselineV1OrBuilder() {
if ((baselineSchemaCase_ == 6) && (baselineV1Builder_ != null)) {
return baselineV1Builder_.getMessageOrBuilder();
} else {
if (baselineSchemaCase_ == 6) {
return (org.tensorflow.metadata.v0.Schema) baselineSchema_;
}
return org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.Schema baseline_v1 = 6 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder>
getBaselineV1FieldBuilder() {
if (baselineV1Builder_ == null) {
if (!(baselineSchemaCase_ == 6)) {
baselineSchema_ = org.tensorflow.metadata.v0.Schema.getDefaultInstance();
}
baselineV1Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Schema, org.tensorflow.metadata.v0.Schema.Builder, org.tensorflow.metadata.v0.SchemaOrBuilder>(
(org.tensorflow.metadata.v0.Schema) baselineSchema_,
getParentForChildren(),
isClean());
baselineSchema_ = null;
}
baselineSchemaCase_ = 6;
onChanged();
return baselineV1Builder_;
}
private int anomalyNameFormat_ = 0;
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @return Whether the anomalyNameFormat field is set.
*/
@java.lang.Override public boolean hasAnomalyNameFormat() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @return The anomalyNameFormat.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat getAnomalyNameFormat() {
org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat result = org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat.forNumber(anomalyNameFormat_);
return result == null ? org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat.UNKNOWN : result;
}
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @param value The anomalyNameFormat to set.
* @return This builder for chaining.
*/
public Builder setAnomalyNameFormat(org.tensorflow.metadata.v0.Anomalies.AnomalyNameFormat value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
anomalyNameFormat_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The format of the keys in anomaly_info.
* If absent, default is DEFAULT.
*
*
* optional .tensorflow.metadata.v0.Anomalies.AnomalyNameFormat anomaly_name_format = 7;
* @return This builder for chaining.
*/
public Builder clearAnomalyNameFormat() {
bitField0_ = (bitField0_ & ~0x00000004);
anomalyNameFormat_ = 0;
onChanged();
return this;
}
private static final class AnomalyInfoConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.tensorflow.metadata.v0.AnomalyInfo build(org.tensorflow.metadata.v0.AnomalyInfoOrBuilder val) {
if (val instanceof org.tensorflow.metadata.v0.AnomalyInfo) { return (org.tensorflow.metadata.v0.AnomalyInfo) val; }
return ((org.tensorflow.metadata.v0.AnomalyInfo.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return AnomalyInfoDefaultEntryHolder.defaultEntry;
}
};
private static final AnomalyInfoConverter anomalyInfoConverter = new AnomalyInfoConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.tensorflow.metadata.v0.AnomalyInfoOrBuilder, org.tensorflow.metadata.v0.AnomalyInfo, org.tensorflow.metadata.v0.AnomalyInfo.Builder> anomalyInfo_;
private com.google.protobuf.MapFieldBuilder
internalGetAnomalyInfo() {
if (anomalyInfo_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(anomalyInfoConverter);
}
return anomalyInfo_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableAnomalyInfo() {
if (anomalyInfo_ == null) {
anomalyInfo_ = new com.google.protobuf.MapFieldBuilder<>(anomalyInfoConverter);
}
bitField0_ |= 0x00000008;
onChanged();
return anomalyInfo_;
}
public int getAnomalyInfoCount() {
return internalGetAnomalyInfo().ensureBuilderMap().size();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public boolean containsAnomalyInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnomalyInfo().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getAnomalyInfoMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnomalyInfo() {
return getAnomalyInfoMap();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public java.util.Map getAnomalyInfoMap() {
return internalGetAnomalyInfo().getImmutableMap();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public /* nullable */
org.tensorflow.metadata.v0.AnomalyInfo getAnomalyInfoOrDefault(
java.lang.String key,
/* nullable */
org.tensorflow.metadata.v0.AnomalyInfo defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableAnomalyInfo().ensureBuilderMap();
return map.containsKey(key) ? anomalyInfoConverter.build(map.get(key)) : defaultValue;
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AnomalyInfo getAnomalyInfoOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableAnomalyInfo().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return anomalyInfoConverter.build(map.get(key));
}
public Builder clearAnomalyInfo() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableAnomalyInfo().clear();
return this;
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
public Builder removeAnomalyInfo(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAnomalyInfo().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAnomalyInfo() {
bitField0_ |= 0x00000008;
return internalGetMutableAnomalyInfo().ensureMessageMap();
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
public Builder putAnomalyInfo(
java.lang.String key,
org.tensorflow.metadata.v0.AnomalyInfo value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableAnomalyInfo().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
public Builder putAllAnomalyInfo(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableAnomalyInfo().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Information about feature-level anomalies.
*
*
* map<string, .tensorflow.metadata.v0.AnomalyInfo> anomaly_info = 2;
*/
public org.tensorflow.metadata.v0.AnomalyInfo.Builder putAnomalyInfoBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableAnomalyInfo().ensureBuilderMap();
org.tensorflow.metadata.v0.AnomalyInfoOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.tensorflow.metadata.v0.AnomalyInfo.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.tensorflow.metadata.v0.AnomalyInfo) {
entry = ((org.tensorflow.metadata.v0.AnomalyInfo) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.tensorflow.metadata.v0.AnomalyInfo.Builder) entry;
}
private org.tensorflow.metadata.v0.AnomalyInfo datasetAnomalyInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AnomalyInfo, org.tensorflow.metadata.v0.AnomalyInfo.Builder, org.tensorflow.metadata.v0.AnomalyInfoOrBuilder> datasetAnomalyInfoBuilder_;
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
* @return Whether the datasetAnomalyInfo field is set.
*/
public boolean hasDatasetAnomalyInfo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
* @return The datasetAnomalyInfo.
*/
public org.tensorflow.metadata.v0.AnomalyInfo getDatasetAnomalyInfo() {
if (datasetAnomalyInfoBuilder_ == null) {
return datasetAnomalyInfo_ == null ? org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance() : datasetAnomalyInfo_;
} else {
return datasetAnomalyInfoBuilder_.getMessage();
}
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public Builder setDatasetAnomalyInfo(org.tensorflow.metadata.v0.AnomalyInfo value) {
if (datasetAnomalyInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
datasetAnomalyInfo_ = value;
} else {
datasetAnomalyInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public Builder setDatasetAnomalyInfo(
org.tensorflow.metadata.v0.AnomalyInfo.Builder builderForValue) {
if (datasetAnomalyInfoBuilder_ == null) {
datasetAnomalyInfo_ = builderForValue.build();
} else {
datasetAnomalyInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public Builder mergeDatasetAnomalyInfo(org.tensorflow.metadata.v0.AnomalyInfo value) {
if (datasetAnomalyInfoBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
datasetAnomalyInfo_ != null &&
datasetAnomalyInfo_ != org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance()) {
getDatasetAnomalyInfoBuilder().mergeFrom(value);
} else {
datasetAnomalyInfo_ = value;
}
} else {
datasetAnomalyInfoBuilder_.mergeFrom(value);
}
if (datasetAnomalyInfo_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public Builder clearDatasetAnomalyInfo() {
bitField0_ = (bitField0_ & ~0x00000010);
datasetAnomalyInfo_ = null;
if (datasetAnomalyInfoBuilder_ != null) {
datasetAnomalyInfoBuilder_.dispose();
datasetAnomalyInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public org.tensorflow.metadata.v0.AnomalyInfo.Builder getDatasetAnomalyInfoBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDatasetAnomalyInfoFieldBuilder().getBuilder();
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
public org.tensorflow.metadata.v0.AnomalyInfoOrBuilder getDatasetAnomalyInfoOrBuilder() {
if (datasetAnomalyInfoBuilder_ != null) {
return datasetAnomalyInfoBuilder_.getMessageOrBuilder();
} else {
return datasetAnomalyInfo_ == null ?
org.tensorflow.metadata.v0.AnomalyInfo.getDefaultInstance() : datasetAnomalyInfo_;
}
}
/**
*
* Information about dataset-level anomalies.
*
*
* optional .tensorflow.metadata.v0.AnomalyInfo dataset_anomaly_info = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AnomalyInfo, org.tensorflow.metadata.v0.AnomalyInfo.Builder, org.tensorflow.metadata.v0.AnomalyInfoOrBuilder>
getDatasetAnomalyInfoFieldBuilder() {
if (datasetAnomalyInfoBuilder_ == null) {
datasetAnomalyInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AnomalyInfo, org.tensorflow.metadata.v0.AnomalyInfo.Builder, org.tensorflow.metadata.v0.AnomalyInfoOrBuilder>(
getDatasetAnomalyInfo(),
getParentForChildren(),
isClean());
datasetAnomalyInfo_ = null;
}
return datasetAnomalyInfoBuilder_;
}
private boolean dataMissing_ ;
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @return Whether the dataMissing field is set.
*/
@java.lang.Override
public boolean hasDataMissing() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @return The dataMissing.
*/
@java.lang.Override
public boolean getDataMissing() {
return dataMissing_;
}
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @param value The dataMissing to set.
* @return This builder for chaining.
*/
public Builder setDataMissing(boolean value) {
dataMissing_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* True if numExamples == 0.
*
*
* optional bool data_missing = 3;
* @return This builder for chaining.
*/
public Builder clearDataMissing() {
bitField0_ = (bitField0_ & ~0x00000020);
dataMissing_ = false;
onChanged();
return this;
}
private java.util.List driftSkewInfo_ =
java.util.Collections.emptyList();
private void ensureDriftSkewInfoIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
driftSkewInfo_ = new java.util.ArrayList(driftSkewInfo_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo, org.tensorflow.metadata.v0.DriftSkewInfo.Builder, org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder> driftSkewInfoBuilder_;
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public java.util.List getDriftSkewInfoList() {
if (driftSkewInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(driftSkewInfo_);
} else {
return driftSkewInfoBuilder_.getMessageList();
}
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public int getDriftSkewInfoCount() {
if (driftSkewInfoBuilder_ == null) {
return driftSkewInfo_.size();
} else {
return driftSkewInfoBuilder_.getCount();
}
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo getDriftSkewInfo(int index) {
if (driftSkewInfoBuilder_ == null) {
return driftSkewInfo_.get(index);
} else {
return driftSkewInfoBuilder_.getMessage(index);
}
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder setDriftSkewInfo(
int index, org.tensorflow.metadata.v0.DriftSkewInfo value) {
if (driftSkewInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.set(index, value);
onChanged();
} else {
driftSkewInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder setDriftSkewInfo(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Builder builderForValue) {
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.set(index, builderForValue.build());
onChanged();
} else {
driftSkewInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder addDriftSkewInfo(org.tensorflow.metadata.v0.DriftSkewInfo value) {
if (driftSkewInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.add(value);
onChanged();
} else {
driftSkewInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder addDriftSkewInfo(
int index, org.tensorflow.metadata.v0.DriftSkewInfo value) {
if (driftSkewInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.add(index, value);
onChanged();
} else {
driftSkewInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder addDriftSkewInfo(
org.tensorflow.metadata.v0.DriftSkewInfo.Builder builderForValue) {
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.add(builderForValue.build());
onChanged();
} else {
driftSkewInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder addDriftSkewInfo(
int index, org.tensorflow.metadata.v0.DriftSkewInfo.Builder builderForValue) {
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.add(index, builderForValue.build());
onChanged();
} else {
driftSkewInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder addAllDriftSkewInfo(
java.lang.Iterable extends org.tensorflow.metadata.v0.DriftSkewInfo> values) {
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, driftSkewInfo_);
onChanged();
} else {
driftSkewInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder clearDriftSkewInfo() {
if (driftSkewInfoBuilder_ == null) {
driftSkewInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
driftSkewInfoBuilder_.clear();
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public Builder removeDriftSkewInfo(int index) {
if (driftSkewInfoBuilder_ == null) {
ensureDriftSkewInfoIsMutable();
driftSkewInfo_.remove(index);
onChanged();
} else {
driftSkewInfoBuilder_.remove(index);
}
return this;
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Builder getDriftSkewInfoBuilder(
int index) {
return getDriftSkewInfoFieldBuilder().getBuilder(index);
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder getDriftSkewInfoOrBuilder(
int index) {
if (driftSkewInfoBuilder_ == null) {
return driftSkewInfo_.get(index); } else {
return driftSkewInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public java.util.List extends org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder>
getDriftSkewInfoOrBuilderList() {
if (driftSkewInfoBuilder_ != null) {
return driftSkewInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(driftSkewInfo_);
}
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Builder addDriftSkewInfoBuilder() {
return getDriftSkewInfoFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.DriftSkewInfo.getDefaultInstance());
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public org.tensorflow.metadata.v0.DriftSkewInfo.Builder addDriftSkewInfoBuilder(
int index) {
return getDriftSkewInfoFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.DriftSkewInfo.getDefaultInstance());
}
/**
*
* If drift / skew detection was conducted, this field will hold the
* comparison results for all the features compared, regardless whether a
* related anomaly was reported.
*
*
* repeated .tensorflow.metadata.v0.DriftSkewInfo drift_skew_info = 9;
*/
public java.util.List
getDriftSkewInfoBuilderList() {
return getDriftSkewInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo, org.tensorflow.metadata.v0.DriftSkewInfo.Builder, org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder>
getDriftSkewInfoFieldBuilder() {
if (driftSkewInfoBuilder_ == null) {
driftSkewInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.DriftSkewInfo, org.tensorflow.metadata.v0.DriftSkewInfo.Builder, org.tensorflow.metadata.v0.DriftSkewInfoOrBuilder>(
driftSkewInfo_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
driftSkewInfo_ = null;
}
return driftSkewInfoBuilder_;
}
@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.Anomalies)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.Anomalies)
private static final org.tensorflow.metadata.v0.Anomalies DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.Anomalies();
}
public static org.tensorflow.metadata.v0.Anomalies getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Anomalies 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.Anomalies getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy