org.tensorflow.metadata.v0.LiftStatistics 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;
/**
* Protobuf type {@code tensorflow.metadata.v0.LiftStatistics}
*/
public final class LiftStatistics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.LiftStatistics)
LiftStatisticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LiftStatistics.newBuilder() to construct.
private LiftStatistics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LiftStatistics() {
liftSeries_ = java.util.Collections.emptyList();
weightedLiftSeries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LiftStatistics();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftStatistics.class, org.tensorflow.metadata.v0.LiftStatistics.Builder.class);
}
public static final int LIFT_SERIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List liftSeries_;
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
@java.lang.Override
public java.util.List getLiftSeriesList() {
return liftSeries_;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getLiftSeriesOrBuilderList() {
return liftSeries_;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
@java.lang.Override
public int getLiftSeriesCount() {
return liftSeries_.size();
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries getLiftSeries(int index) {
return liftSeries_.get(index);
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeriesOrBuilder getLiftSeriesOrBuilder(
int index) {
return liftSeries_.get(index);
}
public static final int WEIGHTED_LIFT_SERIES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List weightedLiftSeries_;
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
@java.lang.Override
public java.util.List getWeightedLiftSeriesList() {
return weightedLiftSeries_;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getWeightedLiftSeriesOrBuilderList() {
return weightedLiftSeries_;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
@java.lang.Override
public int getWeightedLiftSeriesCount() {
return weightedLiftSeries_.size();
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeries getWeightedLiftSeries(int index) {
return weightedLiftSeries_.get(index);
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.LiftSeriesOrBuilder getWeightedLiftSeriesOrBuilder(
int index) {
return weightedLiftSeries_.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 {
for (int i = 0; i < liftSeries_.size(); i++) {
output.writeMessage(1, liftSeries_.get(i));
}
for (int i = 0; i < weightedLiftSeries_.size(); i++) {
output.writeMessage(2, weightedLiftSeries_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < liftSeries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, liftSeries_.get(i));
}
for (int i = 0; i < weightedLiftSeries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, weightedLiftSeries_.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.LiftStatistics)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.LiftStatistics other = (org.tensorflow.metadata.v0.LiftStatistics) obj;
if (!getLiftSeriesList()
.equals(other.getLiftSeriesList())) return false;
if (!getWeightedLiftSeriesList()
.equals(other.getWeightedLiftSeriesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLiftSeriesCount() > 0) {
hash = (37 * hash) + LIFT_SERIES_FIELD_NUMBER;
hash = (53 * hash) + getLiftSeriesList().hashCode();
}
if (getWeightedLiftSeriesCount() > 0) {
hash = (37 * hash) + WEIGHTED_LIFT_SERIES_FIELD_NUMBER;
hash = (53 * hash) + getWeightedLiftSeriesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.LiftStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftStatistics 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.LiftStatistics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftStatistics 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.LiftStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.LiftStatistics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.LiftStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftStatistics 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.LiftStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftStatistics 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.LiftStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.LiftStatistics 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.LiftStatistics prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.metadata.v0.LiftStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.LiftStatistics)
org.tensorflow.metadata.v0.LiftStatisticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.LiftStatistics.class, org.tensorflow.metadata.v0.LiftStatistics.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.LiftStatistics.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (liftSeriesBuilder_ == null) {
liftSeries_ = java.util.Collections.emptyList();
} else {
liftSeries_ = null;
liftSeriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (weightedLiftSeriesBuilder_ == null) {
weightedLiftSeries_ = java.util.Collections.emptyList();
} else {
weightedLiftSeries_ = null;
weightedLiftSeriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_LiftStatistics_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftStatistics getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.LiftStatistics.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftStatistics build() {
org.tensorflow.metadata.v0.LiftStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.LiftStatistics buildPartial() {
org.tensorflow.metadata.v0.LiftStatistics result = new org.tensorflow.metadata.v0.LiftStatistics(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.LiftStatistics result) {
if (liftSeriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
liftSeries_ = java.util.Collections.unmodifiableList(liftSeries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.liftSeries_ = liftSeries_;
} else {
result.liftSeries_ = liftSeriesBuilder_.build();
}
if (weightedLiftSeriesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
weightedLiftSeries_ = java.util.Collections.unmodifiableList(weightedLiftSeries_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.weightedLiftSeries_ = weightedLiftSeries_;
} else {
result.weightedLiftSeries_ = weightedLiftSeriesBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.LiftStatistics result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.metadata.v0.LiftStatistics) {
return mergeFrom((org.tensorflow.metadata.v0.LiftStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.LiftStatistics other) {
if (other == org.tensorflow.metadata.v0.LiftStatistics.getDefaultInstance()) return this;
if (liftSeriesBuilder_ == null) {
if (!other.liftSeries_.isEmpty()) {
if (liftSeries_.isEmpty()) {
liftSeries_ = other.liftSeries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLiftSeriesIsMutable();
liftSeries_.addAll(other.liftSeries_);
}
onChanged();
}
} else {
if (!other.liftSeries_.isEmpty()) {
if (liftSeriesBuilder_.isEmpty()) {
liftSeriesBuilder_.dispose();
liftSeriesBuilder_ = null;
liftSeries_ = other.liftSeries_;
bitField0_ = (bitField0_ & ~0x00000001);
liftSeriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLiftSeriesFieldBuilder() : null;
} else {
liftSeriesBuilder_.addAllMessages(other.liftSeries_);
}
}
}
if (weightedLiftSeriesBuilder_ == null) {
if (!other.weightedLiftSeries_.isEmpty()) {
if (weightedLiftSeries_.isEmpty()) {
weightedLiftSeries_ = other.weightedLiftSeries_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.addAll(other.weightedLiftSeries_);
}
onChanged();
}
} else {
if (!other.weightedLiftSeries_.isEmpty()) {
if (weightedLiftSeriesBuilder_.isEmpty()) {
weightedLiftSeriesBuilder_.dispose();
weightedLiftSeriesBuilder_ = null;
weightedLiftSeries_ = other.weightedLiftSeries_;
bitField0_ = (bitField0_ & ~0x00000002);
weightedLiftSeriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWeightedLiftSeriesFieldBuilder() : null;
} else {
weightedLiftSeriesBuilder_.addAllMessages(other.weightedLiftSeries_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tensorflow.metadata.v0.LiftSeries m =
input.readMessage(
org.tensorflow.metadata.v0.LiftSeries.parser(),
extensionRegistry);
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
liftSeries_.add(m);
} else {
liftSeriesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
org.tensorflow.metadata.v0.LiftSeries m =
input.readMessage(
org.tensorflow.metadata.v0.LiftSeries.parser(),
extensionRegistry);
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.add(m);
} else {
weightedLiftSeriesBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List liftSeries_ =
java.util.Collections.emptyList();
private void ensureLiftSeriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
liftSeries_ = new java.util.ArrayList(liftSeries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder> liftSeriesBuilder_;
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public java.util.List getLiftSeriesList() {
if (liftSeriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(liftSeries_);
} else {
return liftSeriesBuilder_.getMessageList();
}
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public int getLiftSeriesCount() {
if (liftSeriesBuilder_ == null) {
return liftSeries_.size();
} else {
return liftSeriesBuilder_.getCount();
}
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public org.tensorflow.metadata.v0.LiftSeries getLiftSeries(int index) {
if (liftSeriesBuilder_ == null) {
return liftSeries_.get(index);
} else {
return liftSeriesBuilder_.getMessage(index);
}
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder setLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries value) {
if (liftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftSeriesIsMutable();
liftSeries_.set(index, value);
onChanged();
} else {
liftSeriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder setLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
liftSeries_.set(index, builderForValue.build());
onChanged();
} else {
liftSeriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder addLiftSeries(org.tensorflow.metadata.v0.LiftSeries value) {
if (liftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftSeriesIsMutable();
liftSeries_.add(value);
onChanged();
} else {
liftSeriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder addLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries value) {
if (liftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiftSeriesIsMutable();
liftSeries_.add(index, value);
onChanged();
} else {
liftSeriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder addLiftSeries(
org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
liftSeries_.add(builderForValue.build());
onChanged();
} else {
liftSeriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder addLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
liftSeries_.add(index, builderForValue.build());
onChanged();
} else {
liftSeriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder addAllLiftSeries(
java.lang.Iterable extends org.tensorflow.metadata.v0.LiftSeries> values) {
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, liftSeries_);
onChanged();
} else {
liftSeriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder clearLiftSeries() {
if (liftSeriesBuilder_ == null) {
liftSeries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
liftSeriesBuilder_.clear();
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public Builder removeLiftSeries(int index) {
if (liftSeriesBuilder_ == null) {
ensureLiftSeriesIsMutable();
liftSeries_.remove(index);
onChanged();
} else {
liftSeriesBuilder_.remove(index);
}
return this;
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder getLiftSeriesBuilder(
int index) {
return getLiftSeriesFieldBuilder().getBuilder(index);
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public org.tensorflow.metadata.v0.LiftSeriesOrBuilder getLiftSeriesOrBuilder(
int index) {
if (liftSeriesBuilder_ == null) {
return liftSeries_.get(index); } else {
return liftSeriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public java.util.List extends org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getLiftSeriesOrBuilderList() {
if (liftSeriesBuilder_ != null) {
return liftSeriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(liftSeries_);
}
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder addLiftSeriesBuilder() {
return getLiftSeriesFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance());
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder addLiftSeriesBuilder(
int index) {
return getLiftSeriesFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance());
}
/**
*
* Lift information for each value of path_y. Lift is defined for each pair of
* values (x,y) as P(path_y=y|path_x=x)/P(path_y=y).
*
*
* repeated .tensorflow.metadata.v0.LiftSeries lift_series = 1;
*/
public java.util.List
getLiftSeriesBuilderList() {
return getLiftSeriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getLiftSeriesFieldBuilder() {
if (liftSeriesBuilder_ == null) {
liftSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder>(
liftSeries_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
liftSeries_ = null;
}
return liftSeriesBuilder_;
}
private java.util.List weightedLiftSeries_ =
java.util.Collections.emptyList();
private void ensureWeightedLiftSeriesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
weightedLiftSeries_ = new java.util.ArrayList(weightedLiftSeries_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder> weightedLiftSeriesBuilder_;
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public java.util.List getWeightedLiftSeriesList() {
if (weightedLiftSeriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(weightedLiftSeries_);
} else {
return weightedLiftSeriesBuilder_.getMessageList();
}
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public int getWeightedLiftSeriesCount() {
if (weightedLiftSeriesBuilder_ == null) {
return weightedLiftSeries_.size();
} else {
return weightedLiftSeriesBuilder_.getCount();
}
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public org.tensorflow.metadata.v0.LiftSeries getWeightedLiftSeries(int index) {
if (weightedLiftSeriesBuilder_ == null) {
return weightedLiftSeries_.get(index);
} else {
return weightedLiftSeriesBuilder_.getMessage(index);
}
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder setWeightedLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries value) {
if (weightedLiftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.set(index, value);
onChanged();
} else {
weightedLiftSeriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder setWeightedLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.set(index, builderForValue.build());
onChanged();
} else {
weightedLiftSeriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder addWeightedLiftSeries(org.tensorflow.metadata.v0.LiftSeries value) {
if (weightedLiftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.add(value);
onChanged();
} else {
weightedLiftSeriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder addWeightedLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries value) {
if (weightedLiftSeriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.add(index, value);
onChanged();
} else {
weightedLiftSeriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder addWeightedLiftSeries(
org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.add(builderForValue.build());
onChanged();
} else {
weightedLiftSeriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder addWeightedLiftSeries(
int index, org.tensorflow.metadata.v0.LiftSeries.Builder builderForValue) {
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.add(index, builderForValue.build());
onChanged();
} else {
weightedLiftSeriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder addAllWeightedLiftSeries(
java.lang.Iterable extends org.tensorflow.metadata.v0.LiftSeries> values) {
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, weightedLiftSeries_);
onChanged();
} else {
weightedLiftSeriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder clearWeightedLiftSeries() {
if (weightedLiftSeriesBuilder_ == null) {
weightedLiftSeries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
weightedLiftSeriesBuilder_.clear();
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public Builder removeWeightedLiftSeries(int index) {
if (weightedLiftSeriesBuilder_ == null) {
ensureWeightedLiftSeriesIsMutable();
weightedLiftSeries_.remove(index);
onChanged();
} else {
weightedLiftSeriesBuilder_.remove(index);
}
return this;
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder getWeightedLiftSeriesBuilder(
int index) {
return getWeightedLiftSeriesFieldBuilder().getBuilder(index);
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public org.tensorflow.metadata.v0.LiftSeriesOrBuilder getWeightedLiftSeriesOrBuilder(
int index) {
if (weightedLiftSeriesBuilder_ == null) {
return weightedLiftSeries_.get(index); } else {
return weightedLiftSeriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public java.util.List extends org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getWeightedLiftSeriesOrBuilderList() {
if (weightedLiftSeriesBuilder_ != null) {
return weightedLiftSeriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(weightedLiftSeries_);
}
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder addWeightedLiftSeriesBuilder() {
return getWeightedLiftSeriesFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance());
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public org.tensorflow.metadata.v0.LiftSeries.Builder addWeightedLiftSeriesBuilder(
int index) {
return getWeightedLiftSeriesFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.LiftSeries.getDefaultInstance());
}
/**
*
* Weighted lift information for each value of path_y. Weighted lift is
* defined for each pair of values (x,y) as P(path_y=y|path_x=x)/P(path_y=y)
* where probabilities are computed over weighted example space.
*
*
* repeated .tensorflow.metadata.v0.LiftSeries weighted_lift_series = 2;
*/
public java.util.List
getWeightedLiftSeriesBuilderList() {
return getWeightedLiftSeriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder>
getWeightedLiftSeriesFieldBuilder() {
if (weightedLiftSeriesBuilder_ == null) {
weightedLiftSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.LiftSeries, org.tensorflow.metadata.v0.LiftSeries.Builder, org.tensorflow.metadata.v0.LiftSeriesOrBuilder>(
weightedLiftSeries_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
weightedLiftSeries_ = null;
}
return weightedLiftSeriesBuilder_;
}
@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.LiftStatistics)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.LiftStatistics)
private static final org.tensorflow.metadata.v0.LiftStatistics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.LiftStatistics();
}
public static org.tensorflow.metadata.v0.LiftStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LiftStatistics 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.LiftStatistics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy