org.tensorflow.metadata.v0.LiftSeries Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/statistics.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* Container for lift information for a specific y-value.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries}
*/
public final class LiftSeries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.LiftSeries)
LiftSeriesOrBuilder {
private static final long serialVersionUID = 0L;
// Use LiftSeries.newBuilder() to construct.
private LiftSeries(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LiftSeries() {
liftValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LiftSeries();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.class, org.tensorflow.metadata.v0.LiftSeries.Builder.class);
}
public interface BucketOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.metadata.v0.LiftSeries.Bucket)
com.google.protobuf.MessageOrBuilder {
/**
*
* The low value of the bucket, inclusive.
*
*
* double low_value = 1;
* @return The lowValue.
*/
double getLowValue();
/**
*
* The high value of the bucket, exclusive (unless the high_value is
* positive infinity).
*
*
* double high_value = 2;
* @return The highValue.
*/
double getHighValue();
}
/**
*
* A bucket for referring to binned numeric features.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries.Bucket}
*/
public static final class Bucket extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.LiftSeries.Bucket)
BucketOrBuilder {
private static final long serialVersionUID = 0L;
// Use Bucket.newBuilder() to construct.
private Bucket(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Bucket() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Bucket();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_Bucket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_Bucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.Bucket.class, org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder.class);
}
public static final int LOW_VALUE_FIELD_NUMBER = 1;
private double lowValue_ = 0D;
/**
*
* The low value of the bucket, inclusive.
*
*
* double low_value = 1;
* @return The lowValue.
*/
@java.lang.Override
public double getLowValue() {
return lowValue_;
}
public static final int HIGH_VALUE_FIELD_NUMBER = 2;
private double highValue_ = 0D;
/**
*
* The high value of the bucket, exclusive (unless the high_value is
* positive infinity).
*
*
* double high_value = 2;
* @return The highValue.
*/
@java.lang.Override
public double getHighValue() {
return highValue_;
}
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 (java.lang.Double.doubleToRawLongBits(lowValue_) != 0) {
output.writeDouble(1, lowValue_);
}
if (java.lang.Double.doubleToRawLongBits(highValue_) != 0) {
output.writeDouble(2, highValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(lowValue_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, lowValue_);
}
if (java.lang.Double.doubleToRawLongBits(highValue_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, highValue_);
}
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.LiftSeries.Bucket)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.LiftSeries.Bucket other = (org.tensorflow.metadata.v0.LiftSeries.Bucket) obj;
if (java.lang.Double.doubleToLongBits(getLowValue())
!= java.lang.Double.doubleToLongBits(
other.getLowValue())) return false;
if (java.lang.Double.doubleToLongBits(getHighValue())
!= java.lang.Double.doubleToLongBits(
other.getHighValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOW_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLowValue()));
hash = (37 * hash) + HIGH_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getHighValue()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket 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.LiftSeries.Bucket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket 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.LiftSeries.Bucket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket 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.LiftSeries.Bucket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket 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.LiftSeries.Bucket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket 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.LiftSeries.Bucket 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;
}
/**
*
* A bucket for referring to binned numeric features.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries.Bucket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.LiftSeries.Bucket)
org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_Bucket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_Bucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.Bucket.class, org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.LiftSeries.Bucket.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
lowValue_ = 0D;
highValue_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_Bucket_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.Bucket getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.Bucket build() {
org.tensorflow.metadata.v0.LiftSeries.Bucket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.Bucket buildPartial() {
org.tensorflow.metadata.v0.LiftSeries.Bucket result = new org.tensorflow.metadata.v0.LiftSeries.Bucket(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.LiftSeries.Bucket result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.lowValue_ = lowValue_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.highValue_ = highValue_;
}
}
@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.LiftSeries.Bucket) {
return mergeFrom((org.tensorflow.metadata.v0.LiftSeries.Bucket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.LiftSeries.Bucket other) {
if (other == org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance()) return this;
if (other.getLowValue() != 0D) {
setLowValue(other.getLowValue());
}
if (other.getHighValue() != 0D) {
setHighValue(other.getHighValue());
}
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 9: {
lowValue_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
highValue_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
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 double lowValue_ ;
/**
*
* The low value of the bucket, inclusive.
*
*
* double low_value = 1;
* @return The lowValue.
*/
@java.lang.Override
public double getLowValue() {
return lowValue_;
}
/**
*
* The low value of the bucket, inclusive.
*
*
* double low_value = 1;
* @param value The lowValue to set.
* @return This builder for chaining.
*/
public Builder setLowValue(double value) {
lowValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The low value of the bucket, inclusive.
*
*
* double low_value = 1;
* @return This builder for chaining.
*/
public Builder clearLowValue() {
bitField0_ = (bitField0_ & ~0x00000001);
lowValue_ = 0D;
onChanged();
return this;
}
private double highValue_ ;
/**
*
* The high value of the bucket, exclusive (unless the high_value is
* positive infinity).
*
*
* double high_value = 2;
* @return The highValue.
*/
@java.lang.Override
public double getHighValue() {
return highValue_;
}
/**
*
* The high value of the bucket, exclusive (unless the high_value is
* positive infinity).
*
*
* double high_value = 2;
* @param value The highValue to set.
* @return This builder for chaining.
*/
public Builder setHighValue(double value) {
highValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The high value of the bucket, exclusive (unless the high_value is
* positive infinity).
*
*
* double high_value = 2;
* @return This builder for chaining.
*/
public Builder clearHighValue() {
bitField0_ = (bitField0_ & ~0x00000002);
highValue_ = 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.LiftSeries.Bucket)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.LiftSeries.Bucket)
private static final org.tensorflow.metadata.v0.LiftSeries.Bucket DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.LiftSeries.Bucket();
}
public static org.tensorflow.metadata.v0.LiftSeries.Bucket getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Bucket 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.LiftSeries.Bucket getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LiftValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.metadata.v0.LiftSeries.LiftValue)
com.google.protobuf.MessageOrBuilder {
/**
* int32 x_int = 1;
* @return Whether the xInt field is set.
*/
boolean hasXInt();
/**
* int32 x_int = 1;
* @return The xInt.
*/
int getXInt();
/**
* string x_string = 2;
* @return Whether the xString field is set.
*/
boolean hasXString();
/**
* string x_string = 2;
* @return The xString.
*/
java.lang.String getXString();
/**
* string x_string = 2;
* @return The bytes for xString.
*/
com.google.protobuf.ByteString
getXStringBytes();
/**
*
* P(path_y=y|path_x=x) / P(path_y=y) for x_value and the enclosing y_value.
* In terms of concrete fields, this number represents:
* (x_and_y_count / x_count) / (y_count / num_examples)
*
*
* double lift = 3;
* @return The lift.
*/
double getLift();
/**
* uint64 x_count = 4;
* @return Whether the xCount field is set.
*/
boolean hasXCount();
/**
* uint64 x_count = 4;
* @return The xCount.
*/
long getXCount();
/**
* double weighted_x_count = 5;
* @return Whether the weightedXCount field is set.
*/
boolean hasWeightedXCount();
/**
* double weighted_x_count = 5;
* @return The weightedXCount.
*/
double getWeightedXCount();
/**
* uint64 x_and_y_count = 6;
* @return Whether the xAndYCount field is set.
*/
boolean hasXAndYCount();
/**
* uint64 x_and_y_count = 6;
* @return The xAndYCount.
*/
long getXAndYCount();
/**
* double weighted_x_and_y_count = 7;
* @return Whether the weightedXAndYCount field is set.
*/
boolean hasWeightedXAndYCount();
/**
* double weighted_x_and_y_count = 7;
* @return The weightedXAndYCount.
*/
double getWeightedXAndYCount();
org.tensorflow.metadata.v0.LiftSeries.LiftValue.XValueCase getXValueCase();
org.tensorflow.metadata.v0.LiftSeries.LiftValue.XCountValueCase getXCountValueCase();
org.tensorflow.metadata.v0.LiftSeries.LiftValue.XAndYCountValueCase getXAndYCountValueCase();
}
/**
*
* A container for lift information about a specific value of path_x.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries.LiftValue}
*/
public static final class LiftValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.LiftSeries.LiftValue)
LiftValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use LiftValue.newBuilder() to construct.
private LiftValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LiftValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LiftValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_LiftValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_LiftValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.LiftValue.class, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder.class);
}
private int xValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object xValue_;
public enum XValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
X_INT(1),
X_STRING(2),
XVALUE_NOT_SET(0);
private final int value;
private XValueCase(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 XValueCase valueOf(int value) {
return forNumber(value);
}
public static XValueCase forNumber(int value) {
switch (value) {
case 1: return X_INT;
case 2: return X_STRING;
case 0: return XVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public XValueCase
getXValueCase() {
return XValueCase.forNumber(
xValueCase_);
}
private int xCountValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object xCountValue_;
public enum XCountValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
X_COUNT(4),
WEIGHTED_X_COUNT(5),
XCOUNTVALUE_NOT_SET(0);
private final int value;
private XCountValueCase(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 XCountValueCase valueOf(int value) {
return forNumber(value);
}
public static XCountValueCase forNumber(int value) {
switch (value) {
case 4: return X_COUNT;
case 5: return WEIGHTED_X_COUNT;
case 0: return XCOUNTVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public XCountValueCase
getXCountValueCase() {
return XCountValueCase.forNumber(
xCountValueCase_);
}
private int xAndYCountValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object xAndYCountValue_;
public enum XAndYCountValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
X_AND_Y_COUNT(6),
WEIGHTED_X_AND_Y_COUNT(7),
XANDYCOUNTVALUE_NOT_SET(0);
private final int value;
private XAndYCountValueCase(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 XAndYCountValueCase valueOf(int value) {
return forNumber(value);
}
public static XAndYCountValueCase forNumber(int value) {
switch (value) {
case 6: return X_AND_Y_COUNT;
case 7: return WEIGHTED_X_AND_Y_COUNT;
case 0: return XANDYCOUNTVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public XAndYCountValueCase
getXAndYCountValueCase() {
return XAndYCountValueCase.forNumber(
xAndYCountValueCase_);
}
public static final int X_INT_FIELD_NUMBER = 1;
/**
* int32 x_int = 1;
* @return Whether the xInt field is set.
*/
@java.lang.Override
public boolean hasXInt() {
return xValueCase_ == 1;
}
/**
* int32 x_int = 1;
* @return The xInt.
*/
@java.lang.Override
public int getXInt() {
if (xValueCase_ == 1) {
return (java.lang.Integer) xValue_;
}
return 0;
}
public static final int X_STRING_FIELD_NUMBER = 2;
/**
* string x_string = 2;
* @return Whether the xString field is set.
*/
public boolean hasXString() {
return xValueCase_ == 2;
}
/**
* string x_string = 2;
* @return The xString.
*/
public java.lang.String getXString() {
java.lang.Object ref = "";
if (xValueCase_ == 2) {
ref = xValue_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (xValueCase_ == 2) {
xValue_ = s;
}
return s;
}
}
/**
* string x_string = 2;
* @return The bytes for xString.
*/
public com.google.protobuf.ByteString
getXStringBytes() {
java.lang.Object ref = "";
if (xValueCase_ == 2) {
ref = xValue_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (xValueCase_ == 2) {
xValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIFT_FIELD_NUMBER = 3;
private double lift_ = 0D;
/**
*
* P(path_y=y|path_x=x) / P(path_y=y) for x_value and the enclosing y_value.
* In terms of concrete fields, this number represents:
* (x_and_y_count / x_count) / (y_count / num_examples)
*
*
* double lift = 3;
* @return The lift.
*/
@java.lang.Override
public double getLift() {
return lift_;
}
public static final int X_COUNT_FIELD_NUMBER = 4;
/**
* uint64 x_count = 4;
* @return Whether the xCount field is set.
*/
@java.lang.Override
public boolean hasXCount() {
return xCountValueCase_ == 4;
}
/**
* uint64 x_count = 4;
* @return The xCount.
*/
@java.lang.Override
public long getXCount() {
if (xCountValueCase_ == 4) {
return (java.lang.Long) xCountValue_;
}
return 0L;
}
public static final int WEIGHTED_X_COUNT_FIELD_NUMBER = 5;
/**
* double weighted_x_count = 5;
* @return Whether the weightedXCount field is set.
*/
@java.lang.Override
public boolean hasWeightedXCount() {
return xCountValueCase_ == 5;
}
/**
* double weighted_x_count = 5;
* @return The weightedXCount.
*/
@java.lang.Override
public double getWeightedXCount() {
if (xCountValueCase_ == 5) {
return (java.lang.Double) xCountValue_;
}
return 0D;
}
public static final int X_AND_Y_COUNT_FIELD_NUMBER = 6;
/**
* uint64 x_and_y_count = 6;
* @return Whether the xAndYCount field is set.
*/
@java.lang.Override
public boolean hasXAndYCount() {
return xAndYCountValueCase_ == 6;
}
/**
* uint64 x_and_y_count = 6;
* @return The xAndYCount.
*/
@java.lang.Override
public long getXAndYCount() {
if (xAndYCountValueCase_ == 6) {
return (java.lang.Long) xAndYCountValue_;
}
return 0L;
}
public static final int WEIGHTED_X_AND_Y_COUNT_FIELD_NUMBER = 7;
/**
* double weighted_x_and_y_count = 7;
* @return Whether the weightedXAndYCount field is set.
*/
@java.lang.Override
public boolean hasWeightedXAndYCount() {
return xAndYCountValueCase_ == 7;
}
/**
* double weighted_x_and_y_count = 7;
* @return The weightedXAndYCount.
*/
@java.lang.Override
public double getWeightedXAndYCount() {
if (xAndYCountValueCase_ == 7) {
return (java.lang.Double) xAndYCountValue_;
}
return 0D;
}
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 (xValueCase_ == 1) {
output.writeInt32(
1, (int)((java.lang.Integer) xValue_));
}
if (xValueCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xValue_);
}
if (java.lang.Double.doubleToRawLongBits(lift_) != 0) {
output.writeDouble(3, lift_);
}
if (xCountValueCase_ == 4) {
output.writeUInt64(
4, (long)((java.lang.Long) xCountValue_));
}
if (xCountValueCase_ == 5) {
output.writeDouble(
5, (double)((java.lang.Double) xCountValue_));
}
if (xAndYCountValueCase_ == 6) {
output.writeUInt64(
6, (long)((java.lang.Long) xAndYCountValue_));
}
if (xAndYCountValueCase_ == 7) {
output.writeDouble(
7, (double)((java.lang.Double) xAndYCountValue_));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (xValueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
1, (int)((java.lang.Integer) xValue_));
}
if (xValueCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xValue_);
}
if (java.lang.Double.doubleToRawLongBits(lift_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lift_);
}
if (xCountValueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
4, (long)((java.lang.Long) xCountValue_));
}
if (xCountValueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
5, (double)((java.lang.Double) xCountValue_));
}
if (xAndYCountValueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
6, (long)((java.lang.Long) xAndYCountValue_));
}
if (xAndYCountValueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
7, (double)((java.lang.Double) xAndYCountValue_));
}
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.LiftSeries.LiftValue)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.LiftSeries.LiftValue other = (org.tensorflow.metadata.v0.LiftSeries.LiftValue) obj;
if (java.lang.Double.doubleToLongBits(getLift())
!= java.lang.Double.doubleToLongBits(
other.getLift())) return false;
if (!getXValueCase().equals(other.getXValueCase())) return false;
switch (xValueCase_) {
case 1:
if (getXInt()
!= other.getXInt()) return false;
break;
case 2:
if (!getXString()
.equals(other.getXString())) return false;
break;
case 0:
default:
}
if (!getXCountValueCase().equals(other.getXCountValueCase())) return false;
switch (xCountValueCase_) {
case 4:
if (getXCount()
!= other.getXCount()) return false;
break;
case 5:
if (java.lang.Double.doubleToLongBits(getWeightedXCount())
!= java.lang.Double.doubleToLongBits(
other.getWeightedXCount())) return false;
break;
case 0:
default:
}
if (!getXAndYCountValueCase().equals(other.getXAndYCountValueCase())) return false;
switch (xAndYCountValueCase_) {
case 6:
if (getXAndYCount()
!= other.getXAndYCount()) return false;
break;
case 7:
if (java.lang.Double.doubleToLongBits(getWeightedXAndYCount())
!= java.lang.Double.doubleToLongBits(
other.getWeightedXAndYCount())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LIFT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLift()));
switch (xValueCase_) {
case 1:
hash = (37 * hash) + X_INT_FIELD_NUMBER;
hash = (53 * hash) + getXInt();
break;
case 2:
hash = (37 * hash) + X_STRING_FIELD_NUMBER;
hash = (53 * hash) + getXString().hashCode();
break;
case 0:
default:
}
switch (xCountValueCase_) {
case 4:
hash = (37 * hash) + X_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getXCount());
break;
case 5:
hash = (37 * hash) + WEIGHTED_X_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getWeightedXCount()));
break;
case 0:
default:
}
switch (xAndYCountValueCase_) {
case 6:
hash = (37 * hash) + X_AND_Y_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getXAndYCount());
break;
case 7:
hash = (37 * hash) + WEIGHTED_X_AND_Y_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getWeightedXAndYCount()));
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue 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.LiftSeries.LiftValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue 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.LiftSeries.LiftValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue 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.LiftSeries.LiftValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue 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.LiftSeries.LiftValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue 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.LiftSeries.LiftValue 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;
}
/**
*
* A container for lift information about a specific value of path_x.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries.LiftValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.LiftSeries.LiftValue)
org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_LiftValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_LiftValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.LiftValue.class, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.LiftSeries.LiftValue.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
lift_ = 0D;
xValueCase_ = 0;
xValue_ = null;
xCountValueCase_ = 0;
xCountValue_ = null;
xAndYCountValueCase_ = 0;
xAndYCountValue_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_LiftValue_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.LiftValue getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.LiftSeries.LiftValue.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.LiftValue build() {
org.tensorflow.metadata.v0.LiftSeries.LiftValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.LiftValue buildPartial() {
org.tensorflow.metadata.v0.LiftSeries.LiftValue result = new org.tensorflow.metadata.v0.LiftSeries.LiftValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.LiftSeries.LiftValue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lift_ = lift_;
}
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.LiftSeries.LiftValue result) {
result.xValueCase_ = xValueCase_;
result.xValue_ = this.xValue_;
result.xCountValueCase_ = xCountValueCase_;
result.xCountValue_ = this.xCountValue_;
result.xAndYCountValueCase_ = xAndYCountValueCase_;
result.xAndYCountValue_ = this.xAndYCountValue_;
}
@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.LiftSeries.LiftValue) {
return mergeFrom((org.tensorflow.metadata.v0.LiftSeries.LiftValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.LiftSeries.LiftValue other) {
if (other == org.tensorflow.metadata.v0.LiftSeries.LiftValue.getDefaultInstance()) return this;
if (other.getLift() != 0D) {
setLift(other.getLift());
}
switch (other.getXValueCase()) {
case X_INT: {
setXInt(other.getXInt());
break;
}
case X_STRING: {
xValueCase_ = 2;
xValue_ = other.xValue_;
onChanged();
break;
}
case XVALUE_NOT_SET: {
break;
}
}
switch (other.getXCountValueCase()) {
case X_COUNT: {
setXCount(other.getXCount());
break;
}
case WEIGHTED_X_COUNT: {
setWeightedXCount(other.getWeightedXCount());
break;
}
case XCOUNTVALUE_NOT_SET: {
break;
}
}
switch (other.getXAndYCountValueCase()) {
case X_AND_Y_COUNT: {
setXAndYCount(other.getXAndYCount());
break;
}
case WEIGHTED_X_AND_Y_COUNT: {
setWeightedXAndYCount(other.getWeightedXAndYCount());
break;
}
case XANDYCOUNTVALUE_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 8: {
xValue_ = input.readInt32();
xValueCase_ = 1;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
xValueCase_ = 2;
xValue_ = s;
break;
} // case 18
case 25: {
lift_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 32: {
xCountValue_ = input.readUInt64();
xCountValueCase_ = 4;
break;
} // case 32
case 41: {
xCountValue_ = input.readDouble();
xCountValueCase_ = 5;
break;
} // case 41
case 48: {
xAndYCountValue_ = input.readUInt64();
xAndYCountValueCase_ = 6;
break;
} // case 48
case 57: {
xAndYCountValue_ = input.readDouble();
xAndYCountValueCase_ = 7;
break;
} // case 57
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 xValueCase_ = 0;
private java.lang.Object xValue_;
public XValueCase
getXValueCase() {
return XValueCase.forNumber(
xValueCase_);
}
public Builder clearXValue() {
xValueCase_ = 0;
xValue_ = null;
onChanged();
return this;
}
private int xCountValueCase_ = 0;
private java.lang.Object xCountValue_;
public XCountValueCase
getXCountValueCase() {
return XCountValueCase.forNumber(
xCountValueCase_);
}
public Builder clearXCountValue() {
xCountValueCase_ = 0;
xCountValue_ = null;
onChanged();
return this;
}
private int xAndYCountValueCase_ = 0;
private java.lang.Object xAndYCountValue_;
public XAndYCountValueCase
getXAndYCountValueCase() {
return XAndYCountValueCase.forNumber(
xAndYCountValueCase_);
}
public Builder clearXAndYCountValue() {
xAndYCountValueCase_ = 0;
xAndYCountValue_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* int32 x_int = 1;
* @return Whether the xInt field is set.
*/
public boolean hasXInt() {
return xValueCase_ == 1;
}
/**
* int32 x_int = 1;
* @return The xInt.
*/
public int getXInt() {
if (xValueCase_ == 1) {
return (java.lang.Integer) xValue_;
}
return 0;
}
/**
* int32 x_int = 1;
* @param value The xInt to set.
* @return This builder for chaining.
*/
public Builder setXInt(int value) {
xValueCase_ = 1;
xValue_ = value;
onChanged();
return this;
}
/**
* int32 x_int = 1;
* @return This builder for chaining.
*/
public Builder clearXInt() {
if (xValueCase_ == 1) {
xValueCase_ = 0;
xValue_ = null;
onChanged();
}
return this;
}
/**
* string x_string = 2;
* @return Whether the xString field is set.
*/
@java.lang.Override
public boolean hasXString() {
return xValueCase_ == 2;
}
/**
* string x_string = 2;
* @return The xString.
*/
@java.lang.Override
public java.lang.String getXString() {
java.lang.Object ref = "";
if (xValueCase_ == 2) {
ref = xValue_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (xValueCase_ == 2) {
xValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string x_string = 2;
* @return The bytes for xString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getXStringBytes() {
java.lang.Object ref = "";
if (xValueCase_ == 2) {
ref = xValue_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (xValueCase_ == 2) {
xValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string x_string = 2;
* @param value The xString to set.
* @return This builder for chaining.
*/
public Builder setXString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
xValueCase_ = 2;
xValue_ = value;
onChanged();
return this;
}
/**
* string x_string = 2;
* @return This builder for chaining.
*/
public Builder clearXString() {
if (xValueCase_ == 2) {
xValueCase_ = 0;
xValue_ = null;
onChanged();
}
return this;
}
/**
* string x_string = 2;
* @param value The bytes for xString to set.
* @return This builder for chaining.
*/
public Builder setXStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
xValueCase_ = 2;
xValue_ = value;
onChanged();
return this;
}
private double lift_ ;
/**
*
* P(path_y=y|path_x=x) / P(path_y=y) for x_value and the enclosing y_value.
* In terms of concrete fields, this number represents:
* (x_and_y_count / x_count) / (y_count / num_examples)
*
*
* double lift = 3;
* @return The lift.
*/
@java.lang.Override
public double getLift() {
return lift_;
}
/**
*
* P(path_y=y|path_x=x) / P(path_y=y) for x_value and the enclosing y_value.
* In terms of concrete fields, this number represents:
* (x_and_y_count / x_count) / (y_count / num_examples)
*
*
* double lift = 3;
* @param value The lift to set.
* @return This builder for chaining.
*/
public Builder setLift(double value) {
lift_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* P(path_y=y|path_x=x) / P(path_y=y) for x_value and the enclosing y_value.
* In terms of concrete fields, this number represents:
* (x_and_y_count / x_count) / (y_count / num_examples)
*
*
* double lift = 3;
* @return This builder for chaining.
*/
public Builder clearLift() {
bitField0_ = (bitField0_ & ~0x00000004);
lift_ = 0D;
onChanged();
return this;
}
/**
* uint64 x_count = 4;
* @return Whether the xCount field is set.
*/
public boolean hasXCount() {
return xCountValueCase_ == 4;
}
/**
* uint64 x_count = 4;
* @return The xCount.
*/
public long getXCount() {
if (xCountValueCase_ == 4) {
return (java.lang.Long) xCountValue_;
}
return 0L;
}
/**
* uint64 x_count = 4;
* @param value The xCount to set.
* @return This builder for chaining.
*/
public Builder setXCount(long value) {
xCountValueCase_ = 4;
xCountValue_ = value;
onChanged();
return this;
}
/**
* uint64 x_count = 4;
* @return This builder for chaining.
*/
public Builder clearXCount() {
if (xCountValueCase_ == 4) {
xCountValueCase_ = 0;
xCountValue_ = null;
onChanged();
}
return this;
}
/**
* double weighted_x_count = 5;
* @return Whether the weightedXCount field is set.
*/
public boolean hasWeightedXCount() {
return xCountValueCase_ == 5;
}
/**
* double weighted_x_count = 5;
* @return The weightedXCount.
*/
public double getWeightedXCount() {
if (xCountValueCase_ == 5) {
return (java.lang.Double) xCountValue_;
}
return 0D;
}
/**
* double weighted_x_count = 5;
* @param value The weightedXCount to set.
* @return This builder for chaining.
*/
public Builder setWeightedXCount(double value) {
xCountValueCase_ = 5;
xCountValue_ = value;
onChanged();
return this;
}
/**
* double weighted_x_count = 5;
* @return This builder for chaining.
*/
public Builder clearWeightedXCount() {
if (xCountValueCase_ == 5) {
xCountValueCase_ = 0;
xCountValue_ = null;
onChanged();
}
return this;
}
/**
* uint64 x_and_y_count = 6;
* @return Whether the xAndYCount field is set.
*/
public boolean hasXAndYCount() {
return xAndYCountValueCase_ == 6;
}
/**
* uint64 x_and_y_count = 6;
* @return The xAndYCount.
*/
public long getXAndYCount() {
if (xAndYCountValueCase_ == 6) {
return (java.lang.Long) xAndYCountValue_;
}
return 0L;
}
/**
* uint64 x_and_y_count = 6;
* @param value The xAndYCount to set.
* @return This builder for chaining.
*/
public Builder setXAndYCount(long value) {
xAndYCountValueCase_ = 6;
xAndYCountValue_ = value;
onChanged();
return this;
}
/**
* uint64 x_and_y_count = 6;
* @return This builder for chaining.
*/
public Builder clearXAndYCount() {
if (xAndYCountValueCase_ == 6) {
xAndYCountValueCase_ = 0;
xAndYCountValue_ = null;
onChanged();
}
return this;
}
/**
* double weighted_x_and_y_count = 7;
* @return Whether the weightedXAndYCount field is set.
*/
public boolean hasWeightedXAndYCount() {
return xAndYCountValueCase_ == 7;
}
/**
* double weighted_x_and_y_count = 7;
* @return The weightedXAndYCount.
*/
public double getWeightedXAndYCount() {
if (xAndYCountValueCase_ == 7) {
return (java.lang.Double) xAndYCountValue_;
}
return 0D;
}
/**
* double weighted_x_and_y_count = 7;
* @param value The weightedXAndYCount to set.
* @return This builder for chaining.
*/
public Builder setWeightedXAndYCount(double value) {
xAndYCountValueCase_ = 7;
xAndYCountValue_ = value;
onChanged();
return this;
}
/**
* double weighted_x_and_y_count = 7;
* @return This builder for chaining.
*/
public Builder clearWeightedXAndYCount() {
if (xAndYCountValueCase_ == 7) {
xAndYCountValueCase_ = 0;
xAndYCountValue_ = null;
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.LiftSeries.LiftValue)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.LiftSeries.LiftValue)
private static final org.tensorflow.metadata.v0.LiftSeries.LiftValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.LiftSeries.LiftValue();
}
public static org.tensorflow.metadata.v0.LiftSeries.LiftValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LiftValue 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.LiftSeries.LiftValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int yValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object yValue_;
public enum YValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
Y_INT(1),
Y_STRING(2),
Y_BUCKET(3),
YVALUE_NOT_SET(0);
private final int value;
private YValueCase(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 YValueCase valueOf(int value) {
return forNumber(value);
}
public static YValueCase forNumber(int value) {
switch (value) {
case 1: return Y_INT;
case 2: return Y_STRING;
case 3: return Y_BUCKET;
case 0: return YVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public YValueCase
getYValueCase() {
return YValueCase.forNumber(
yValueCase_);
}
private int yCountValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object yCountValue_;
public enum YCountValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
Y_COUNT(4),
WEIGHTED_Y_COUNT(5),
YCOUNTVALUE_NOT_SET(0);
private final int value;
private YCountValueCase(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 YCountValueCase valueOf(int value) {
return forNumber(value);
}
public static YCountValueCase forNumber(int value) {
switch (value) {
case 4: return Y_COUNT;
case 5: return WEIGHTED_Y_COUNT;
case 0: return YCOUNTVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public YCountValueCase
getYCountValueCase() {
return YCountValueCase.forNumber(
yCountValueCase_);
}
public static final int Y_INT_FIELD_NUMBER = 1;
/**
* int32 y_int = 1;
* @return Whether the yInt field is set.
*/
@java.lang.Override
public boolean hasYInt() {
return yValueCase_ == 1;
}
/**
* int32 y_int = 1;
* @return The yInt.
*/
@java.lang.Override
public int getYInt() {
if (yValueCase_ == 1) {
return (java.lang.Integer) yValue_;
}
return 0;
}
public static final int Y_STRING_FIELD_NUMBER = 2;
/**
* string y_string = 2;
* @return Whether the yString field is set.
*/
public boolean hasYString() {
return yValueCase_ == 2;
}
/**
* string y_string = 2;
* @return The yString.
*/
public java.lang.String getYString() {
java.lang.Object ref = "";
if (yValueCase_ == 2) {
ref = yValue_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (yValueCase_ == 2) {
yValue_ = s;
}
return s;
}
}
/**
* string y_string = 2;
* @return The bytes for yString.
*/
public com.google.protobuf.ByteString
getYStringBytes() {
java.lang.Object ref = "";
if (yValueCase_ == 2) {
ref = yValue_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (yValueCase_ == 2) {
yValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int Y_BUCKET_FIELD_NUMBER = 3;
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
* @return Whether the yBucket field is set.
*/
@java.lang.Override
public boolean hasYBucket() {
return yValueCase_ == 3;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
* @return The yBucket.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.Bucket getYBucket() {
if (yValueCase_ == 3) {
return (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_;
}
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder getYBucketOrBuilder() {
if (yValueCase_ == 3) {
return (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_;
}
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
public static final int Y_COUNT_FIELD_NUMBER = 4;
/**
* uint64 y_count = 4;
* @return Whether the yCount field is set.
*/
@java.lang.Override
public boolean hasYCount() {
return yCountValueCase_ == 4;
}
/**
* uint64 y_count = 4;
* @return The yCount.
*/
@java.lang.Override
public long getYCount() {
if (yCountValueCase_ == 4) {
return (java.lang.Long) yCountValue_;
}
return 0L;
}
public static final int WEIGHTED_Y_COUNT_FIELD_NUMBER = 5;
/**
* double weighted_y_count = 5;
* @return Whether the weightedYCount field is set.
*/
@java.lang.Override
public boolean hasWeightedYCount() {
return yCountValueCase_ == 5;
}
/**
* double weighted_y_count = 5;
* @return The weightedYCount.
*/
@java.lang.Override
public double getWeightedYCount() {
if (yCountValueCase_ == 5) {
return (java.lang.Double) yCountValue_;
}
return 0D;
}
public static final int LIFT_VALUES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List liftValues_;
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
@java.lang.Override
public java.util.List getLiftValuesList() {
return liftValues_;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder>
getLiftValuesOrBuilderList() {
return liftValues_;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
@java.lang.Override
public int getLiftValuesCount() {
return liftValues_.size();
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.LiftValue getLiftValues(int index) {
return liftValues_.get(index);
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder getLiftValuesOrBuilder(
int index) {
return liftValues_.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 (yValueCase_ == 1) {
output.writeInt32(
1, (int)((java.lang.Integer) yValue_));
}
if (yValueCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, yValue_);
}
if (yValueCase_ == 3) {
output.writeMessage(3, (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_);
}
if (yCountValueCase_ == 4) {
output.writeUInt64(
4, (long)((java.lang.Long) yCountValue_));
}
if (yCountValueCase_ == 5) {
output.writeDouble(
5, (double)((java.lang.Double) yCountValue_));
}
for (int i = 0; i < liftValues_.size(); i++) {
output.writeMessage(6, liftValues_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (yValueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
1, (int)((java.lang.Integer) yValue_));
}
if (yValueCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, yValue_);
}
if (yValueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_);
}
if (yCountValueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
4, (long)((java.lang.Long) yCountValue_));
}
if (yCountValueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
5, (double)((java.lang.Double) yCountValue_));
}
for (int i = 0; i < liftValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, liftValues_.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.LiftSeries)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.LiftSeries other = (org.tensorflow.metadata.v0.LiftSeries) obj;
if (!getLiftValuesList()
.equals(other.getLiftValuesList())) return false;
if (!getYValueCase().equals(other.getYValueCase())) return false;
switch (yValueCase_) {
case 1:
if (getYInt()
!= other.getYInt()) return false;
break;
case 2:
if (!getYString()
.equals(other.getYString())) return false;
break;
case 3:
if (!getYBucket()
.equals(other.getYBucket())) return false;
break;
case 0:
default:
}
if (!getYCountValueCase().equals(other.getYCountValueCase())) return false;
switch (yCountValueCase_) {
case 4:
if (getYCount()
!= other.getYCount()) return false;
break;
case 5:
if (java.lang.Double.doubleToLongBits(getWeightedYCount())
!= java.lang.Double.doubleToLongBits(
other.getWeightedYCount())) 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 (getLiftValuesCount() > 0) {
hash = (37 * hash) + LIFT_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getLiftValuesList().hashCode();
}
switch (yValueCase_) {
case 1:
hash = (37 * hash) + Y_INT_FIELD_NUMBER;
hash = (53 * hash) + getYInt();
break;
case 2:
hash = (37 * hash) + Y_STRING_FIELD_NUMBER;
hash = (53 * hash) + getYString().hashCode();
break;
case 3:
hash = (37 * hash) + Y_BUCKET_FIELD_NUMBER;
hash = (53 * hash) + getYBucket().hashCode();
break;
case 0:
default:
}
switch (yCountValueCase_) {
case 4:
hash = (37 * hash) + Y_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getYCount());
break;
case 5:
hash = (37 * hash) + WEIGHTED_Y_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getWeightedYCount()));
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.LiftSeries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries 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.LiftSeries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries 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.LiftSeries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftSeries parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.LiftSeries parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries 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.LiftSeries parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries 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.LiftSeries parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftSeries 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.LiftSeries 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;
}
/**
*
* Container for lift information for a specific y-value.
*
*
* Protobuf type {@code tensorflow.metadata.v0.LiftSeries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.LiftSeries)
org.tensorflow.metadata.v0.LiftSeriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftSeries.class, org.tensorflow.metadata.v0.LiftSeries.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.LiftSeries.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (yBucketBuilder_ != null) {
yBucketBuilder_.clear();
}
if (liftValuesBuilder_ == null) {
liftValues_ = java.util.Collections.emptyList();
} else {
liftValues_ = null;
liftValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
yValueCase_ = 0;
yValue_ = null;
yCountValueCase_ = 0;
yCountValue_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftSeries_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries build() {
org.tensorflow.metadata.v0.LiftSeries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries buildPartial() {
org.tensorflow.metadata.v0.LiftSeries result = new org.tensorflow.metadata.v0.LiftSeries(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.LiftSeries result) {
if (liftValuesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
liftValues_ = java.util.Collections.unmodifiableList(liftValues_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.liftValues_ = liftValues_;
} else {
result.liftValues_ = liftValuesBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.LiftSeries result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.LiftSeries result) {
result.yValueCase_ = yValueCase_;
result.yValue_ = this.yValue_;
if (yValueCase_ == 3 &&
yBucketBuilder_ != null) {
result.yValue_ = yBucketBuilder_.build();
}
result.yCountValueCase_ = yCountValueCase_;
result.yCountValue_ = this.yCountValue_;
}
@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.LiftSeries) {
return mergeFrom((org.tensorflow.metadata.v0.LiftSeries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.LiftSeries other) {
if (other == org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance()) return this;
if (liftValuesBuilder_ == null) {
if (!other.liftValues_.isEmpty()) {
if (liftValues_.isEmpty()) {
liftValues_ = other.liftValues_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureLiftValuesIsMutable();
liftValues_.addAll(other.liftValues_);
}
onChanged();
}
} else {
if (!other.liftValues_.isEmpty()) {
if (liftValuesBuilder_.isEmpty()) {
liftValuesBuilder_.dispose();
liftValuesBuilder_ = null;
liftValues_ = other.liftValues_;
bitField0_ = (bitField0_ & ~0x00000020);
liftValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLiftValuesFieldBuilder() : null;
} else {
liftValuesBuilder_.addAllMessages(other.liftValues_);
}
}
}
switch (other.getYValueCase()) {
case Y_INT: {
setYInt(other.getYInt());
break;
}
case Y_STRING: {
yValueCase_ = 2;
yValue_ = other.yValue_;
onChanged();
break;
}
case Y_BUCKET: {
mergeYBucket(other.getYBucket());
break;
}
case YVALUE_NOT_SET: {
break;
}
}
switch (other.getYCountValueCase()) {
case Y_COUNT: {
setYCount(other.getYCount());
break;
}
case WEIGHTED_Y_COUNT: {
setWeightedYCount(other.getWeightedYCount());
break;
}
case YCOUNTVALUE_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 8: {
yValue_ = input.readInt32();
yValueCase_ = 1;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
yValueCase_ = 2;
yValue_ = s;
break;
} // case 18
case 26: {
input.readMessage(
getYBucketFieldBuilder().getBuilder(),
extensionRegistry);
yValueCase_ = 3;
break;
} // case 26
case 32: {
yCountValue_ = input.readUInt64();
yCountValueCase_ = 4;
break;
} // case 32
case 41: {
yCountValue_ = input.readDouble();
yCountValueCase_ = 5;
break;
} // case 41
case 50: {
org.tensorflow.metadata.v0.LiftSeries.LiftValue m =
input.readMessage(
org.tensorflow.metadata.v0.LiftSeries.LiftValue.parser(),
extensionRegistry);
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
liftValues_.add(m);
} else {
liftValuesBuilder_.addMessage(m);
}
break;
} // case 50
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 yValueCase_ = 0;
private java.lang.Object yValue_;
public YValueCase
getYValueCase() {
return YValueCase.forNumber(
yValueCase_);
}
public Builder clearYValue() {
yValueCase_ = 0;
yValue_ = null;
onChanged();
return this;
}
private int yCountValueCase_ = 0;
private java.lang.Object yCountValue_;
public YCountValueCase
getYCountValueCase() {
return YCountValueCase.forNumber(
yCountValueCase_);
}
public Builder clearYCountValue() {
yCountValueCase_ = 0;
yCountValue_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* int32 y_int = 1;
* @return Whether the yInt field is set.
*/
public boolean hasYInt() {
return yValueCase_ == 1;
}
/**
* int32 y_int = 1;
* @return The yInt.
*/
public int getYInt() {
if (yValueCase_ == 1) {
return (java.lang.Integer) yValue_;
}
return 0;
}
/**
* int32 y_int = 1;
* @param value The yInt to set.
* @return This builder for chaining.
*/
public Builder setYInt(int value) {
yValueCase_ = 1;
yValue_ = value;
onChanged();
return this;
}
/**
* int32 y_int = 1;
* @return This builder for chaining.
*/
public Builder clearYInt() {
if (yValueCase_ == 1) {
yValueCase_ = 0;
yValue_ = null;
onChanged();
}
return this;
}
/**
* string y_string = 2;
* @return Whether the yString field is set.
*/
@java.lang.Override
public boolean hasYString() {
return yValueCase_ == 2;
}
/**
* string y_string = 2;
* @return The yString.
*/
@java.lang.Override
public java.lang.String getYString() {
java.lang.Object ref = "";
if (yValueCase_ == 2) {
ref = yValue_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (yValueCase_ == 2) {
yValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string y_string = 2;
* @return The bytes for yString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getYStringBytes() {
java.lang.Object ref = "";
if (yValueCase_ == 2) {
ref = yValue_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (yValueCase_ == 2) {
yValue_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string y_string = 2;
* @param value The yString to set.
* @return This builder for chaining.
*/
public Builder setYString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
yValueCase_ = 2;
yValue_ = value;
onChanged();
return this;
}
/**
* string y_string = 2;
* @return This builder for chaining.
*/
public Builder clearYString() {
if (yValueCase_ == 2) {
yValueCase_ = 0;
yValue_ = null;
onChanged();
}
return this;
}
/**
* string y_string = 2;
* @param value The bytes for yString to set.
* @return This builder for chaining.
*/
public Builder setYStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
yValueCase_ = 2;
yValue_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.Bucket, org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder, org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder> yBucketBuilder_;
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
* @return Whether the yBucket field is set.
*/
@java.lang.Override
public boolean hasYBucket() {
return yValueCase_ == 3;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
* @return The yBucket.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.Bucket getYBucket() {
if (yBucketBuilder_ == null) {
if (yValueCase_ == 3) {
return (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_;
}
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
} else {
if (yValueCase_ == 3) {
return yBucketBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
public Builder setYBucket(org.tensorflow.metadata.v0.LiftSeries.Bucket value) {
if (yBucketBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
yValue_ = value;
onChanged();
} else {
yBucketBuilder_.setMessage(value);
}
yValueCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
public Builder setYBucket(
org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder builderForValue) {
if (yBucketBuilder_ == null) {
yValue_ = builderForValue.build();
onChanged();
} else {
yBucketBuilder_.setMessage(builderForValue.build());
}
yValueCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
public Builder mergeYBucket(org.tensorflow.metadata.v0.LiftSeries.Bucket value) {
if (yBucketBuilder_ == null) {
if (yValueCase_ == 3 &&
yValue_ != org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance()) {
yValue_ = org.tensorflow.metadata.v0.LiftSeries.Bucket.newBuilder((org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_)
.mergeFrom(value).buildPartial();
} else {
yValue_ = value;
}
onChanged();
} else {
if (yValueCase_ == 3) {
yBucketBuilder_.mergeFrom(value);
} else {
yBucketBuilder_.setMessage(value);
}
}
yValueCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
public Builder clearYBucket() {
if (yBucketBuilder_ == null) {
if (yValueCase_ == 3) {
yValueCase_ = 0;
yValue_ = null;
onChanged();
}
} else {
if (yValueCase_ == 3) {
yValueCase_ = 0;
yValue_ = null;
}
yBucketBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
public org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder getYBucketBuilder() {
return getYBucketFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder getYBucketOrBuilder() {
if ((yValueCase_ == 3) && (yBucketBuilder_ != null)) {
return yBucketBuilder_.getMessageOrBuilder();
} else {
if (yValueCase_ == 3) {
return (org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_;
}
return org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.LiftSeries.Bucket y_bucket = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.Bucket, org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder, org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder>
getYBucketFieldBuilder() {
if (yBucketBuilder_ == null) {
if (!(yValueCase_ == 3)) {
yValue_ = org.tensorflow.metadata.v0.LiftSeries.Bucket.getDefaultInstance();
}
yBucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.Bucket, org.tensorflow.metadata.v0.LiftSeries.Bucket.Builder, org.tensorflow.metadata.v0.LiftSeries.BucketOrBuilder>(
(org.tensorflow.metadata.v0.LiftSeries.Bucket) yValue_,
getParentForChildren(),
isClean());
yValue_ = null;
}
yValueCase_ = 3;
onChanged();
return yBucketBuilder_;
}
/**
* uint64 y_count = 4;
* @return Whether the yCount field is set.
*/
public boolean hasYCount() {
return yCountValueCase_ == 4;
}
/**
* uint64 y_count = 4;
* @return The yCount.
*/
public long getYCount() {
if (yCountValueCase_ == 4) {
return (java.lang.Long) yCountValue_;
}
return 0L;
}
/**
* uint64 y_count = 4;
* @param value The yCount to set.
* @return This builder for chaining.
*/
public Builder setYCount(long value) {
yCountValueCase_ = 4;
yCountValue_ = value;
onChanged();
return this;
}
/**
* uint64 y_count = 4;
* @return This builder for chaining.
*/
public Builder clearYCount() {
if (yCountValueCase_ == 4) {
yCountValueCase_ = 0;
yCountValue_ = null;
onChanged();
}
return this;
}
/**
* double weighted_y_count = 5;
* @return Whether the weightedYCount field is set.
*/
public boolean hasWeightedYCount() {
return yCountValueCase_ == 5;
}
/**
* double weighted_y_count = 5;
* @return The weightedYCount.
*/
public double getWeightedYCount() {
if (yCountValueCase_ == 5) {
return (java.lang.Double) yCountValue_;
}
return 0D;
}
/**
* double weighted_y_count = 5;
* @param value The weightedYCount to set.
* @return This builder for chaining.
*/
public Builder setWeightedYCount(double value) {
yCountValueCase_ = 5;
yCountValue_ = value;
onChanged();
return this;
}
/**
* double weighted_y_count = 5;
* @return This builder for chaining.
*/
public Builder clearWeightedYCount() {
if (yCountValueCase_ == 5) {
yCountValueCase_ = 0;
yCountValue_ = null;
onChanged();
}
return this;
}
private java.util.List liftValues_ =
java.util.Collections.emptyList();
private void ensureLiftValuesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
liftValues_ = new java.util.ArrayList(liftValues_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.LiftValue, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder, org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder> liftValuesBuilder_;
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public java.util.List getLiftValuesList() {
if (liftValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(liftValues_);
} else {
return liftValuesBuilder_.getMessageList();
}
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public int getLiftValuesCount() {
if (liftValuesBuilder_ == null) {
return liftValues_.size();
} else {
return liftValuesBuilder_.getCount();
}
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public org.tensorflow.metadata.v0.LiftSeries.LiftValue getLiftValues(int index) {
if (liftValuesBuilder_ == null) {
return liftValues_.get(index);
} else {
return liftValuesBuilder_.getMessage(index);
}
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder setLiftValues(
int index, org.tensorflow.metadata.v0.LiftSeries.LiftValue value) {
if (liftValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftValuesIsMutable();
liftValues_.set(index, value);
onChanged();
} else {
liftValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder setLiftValues(
int index, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder builderForValue) {
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
liftValues_.set(index, builderForValue.build());
onChanged();
} else {
liftValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder addLiftValues(org.tensorflow.metadata.v0.LiftSeries.LiftValue value) {
if (liftValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftValuesIsMutable();
liftValues_.add(value);
onChanged();
} else {
liftValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder addLiftValues(
int index, org.tensorflow.metadata.v0.LiftSeries.LiftValue value) {
if (liftValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftValuesIsMutable();
liftValues_.add(index, value);
onChanged();
} else {
liftValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder addLiftValues(
org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder builderForValue) {
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
liftValues_.add(builderForValue.build());
onChanged();
} else {
liftValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder addLiftValues(
int index, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder builderForValue) {
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
liftValues_.add(index, builderForValue.build());
onChanged();
} else {
liftValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder addAllLiftValues(
java.lang.Iterable extends org.tensorflow.metadata.v0.LiftSeries.LiftValue> values) {
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, liftValues_);
onChanged();
} else {
liftValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder clearLiftValues() {
if (liftValuesBuilder_ == null) {
liftValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
liftValuesBuilder_.clear();
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public Builder removeLiftValues(int index) {
if (liftValuesBuilder_ == null) {
ensureLiftValuesIsMutable();
liftValues_.remove(index);
onChanged();
} else {
liftValuesBuilder_.remove(index);
}
return this;
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder getLiftValuesBuilder(
int index) {
return getLiftValuesFieldBuilder().getBuilder(index);
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder getLiftValuesOrBuilder(
int index) {
if (liftValuesBuilder_ == null) {
return liftValues_.get(index); } else {
return liftValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public java.util.List extends org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder>
getLiftValuesOrBuilderList() {
if (liftValuesBuilder_ != null) {
return liftValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(liftValues_);
}
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder addLiftValuesBuilder() {
return getLiftValuesFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.LiftSeries.LiftValue.getDefaultInstance());
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder addLiftValuesBuilder(
int index) {
return getLiftValuesFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.LiftSeries.LiftValue.getDefaultInstance());
}
/**
*
* The lifts for a each path_x value and this y_value.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries.LiftValue lift_values = 6;
*/
public java.util.List
getLiftValuesBuilderList() {
return getLiftValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.LiftValue, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder, org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder>
getLiftValuesFieldBuilder() {
if (liftValuesBuilder_ == null) {
liftValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries.LiftValue, org.tensorflow.metadata.v0.LiftSeries.LiftValue.Builder, org.tensorflow.metadata.v0.LiftSeries.LiftValueOrBuilder>(
liftValues_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
liftValues_ = null;
}
return liftValuesBuilder_;
}
@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.LiftSeries)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.LiftSeries)
private static final org.tensorflow.metadata.v0.LiftSeries DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.LiftSeries();
}
public static org.tensorflow.metadata.v0.LiftSeries getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LiftSeries 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.LiftSeries getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy