boosted_trees.Quantiles Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/contrib/boosted_trees/proto/quantiles.proto
package boosted_trees;
public final class Quantiles {
private Quantiles() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface QuantileConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:boosted_trees.QuantileConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Maximum eps error when computing quantile summaries.
*
*
* double eps = 1;
*/
double getEps();
/**
*
* Number of quantiles to generate.
*
*
* int64 num_quantiles = 2;
*/
long getNumQuantiles();
}
/**
* Protobuf type {@code boosted_trees.QuantileConfig}
*/
public static final class QuantileConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:boosted_trees.QuantileConfig)
QuantileConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuantileConfig.newBuilder() to construct.
private QuantileConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuantileConfig() {
eps_ = 0D;
numQuantiles_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuantileConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
eps_ = input.readDouble();
break;
}
case 16: {
numQuantiles_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileConfig.class, boosted_trees.Quantiles.QuantileConfig.Builder.class);
}
public static final int EPS_FIELD_NUMBER = 1;
private double eps_;
/**
*
* Maximum eps error when computing quantile summaries.
*
*
* double eps = 1;
*/
public double getEps() {
return eps_;
}
public static final int NUM_QUANTILES_FIELD_NUMBER = 2;
private long numQuantiles_;
/**
*
* Number of quantiles to generate.
*
*
* int64 num_quantiles = 2;
*/
public long getNumQuantiles() {
return numQuantiles_;
}
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 (eps_ != 0D) {
output.writeDouble(1, eps_);
}
if (numQuantiles_ != 0L) {
output.writeInt64(2, numQuantiles_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eps_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, eps_);
}
if (numQuantiles_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, numQuantiles_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof boosted_trees.Quantiles.QuantileConfig)) {
return super.equals(obj);
}
boosted_trees.Quantiles.QuantileConfig other = (boosted_trees.Quantiles.QuantileConfig) obj;
boolean result = true;
result = result && (
java.lang.Double.doubleToLongBits(getEps())
== java.lang.Double.doubleToLongBits(
other.getEps()));
result = result && (getNumQuantiles()
== other.getNumQuantiles());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getEps()));
hash = (37 * hash) + NUM_QUANTILES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumQuantiles());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileConfig 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 boosted_trees.Quantiles.QuantileConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileConfig 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 boosted_trees.Quantiles.QuantileConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileConfig 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(boosted_trees.Quantiles.QuantileConfig 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 boosted_trees.QuantileConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:boosted_trees.QuantileConfig)
boosted_trees.Quantiles.QuantileConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileConfig.class, boosted_trees.Quantiles.QuantileConfig.Builder.class);
}
// Construct using boosted_trees.Quantiles.QuantileConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
eps_ = 0D;
numQuantiles_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileConfig_descriptor;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileConfig getDefaultInstanceForType() {
return boosted_trees.Quantiles.QuantileConfig.getDefaultInstance();
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileConfig build() {
boosted_trees.Quantiles.QuantileConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileConfig buildPartial() {
boosted_trees.Quantiles.QuantileConfig result = new boosted_trees.Quantiles.QuantileConfig(this);
result.eps_ = eps_;
result.numQuantiles_ = numQuantiles_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof boosted_trees.Quantiles.QuantileConfig) {
return mergeFrom((boosted_trees.Quantiles.QuantileConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(boosted_trees.Quantiles.QuantileConfig other) {
if (other == boosted_trees.Quantiles.QuantileConfig.getDefaultInstance()) return this;
if (other.getEps() != 0D) {
setEps(other.getEps());
}
if (other.getNumQuantiles() != 0L) {
setNumQuantiles(other.getNumQuantiles());
}
this.mergeUnknownFields(other.unknownFields);
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 {
boosted_trees.Quantiles.QuantileConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (boosted_trees.Quantiles.QuantileConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double eps_ ;
/**
*
* Maximum eps error when computing quantile summaries.
*
*
* double eps = 1;
*/
public double getEps() {
return eps_;
}
/**
*
* Maximum eps error when computing quantile summaries.
*
*
* double eps = 1;
*/
public Builder setEps(double value) {
eps_ = value;
onChanged();
return this;
}
/**
*
* Maximum eps error when computing quantile summaries.
*
*
* double eps = 1;
*/
public Builder clearEps() {
eps_ = 0D;
onChanged();
return this;
}
private long numQuantiles_ ;
/**
*
* Number of quantiles to generate.
*
*
* int64 num_quantiles = 2;
*/
public long getNumQuantiles() {
return numQuantiles_;
}
/**
*
* Number of quantiles to generate.
*
*
* int64 num_quantiles = 2;
*/
public Builder setNumQuantiles(long value) {
numQuantiles_ = value;
onChanged();
return this;
}
/**
*
* Number of quantiles to generate.
*
*
* int64 num_quantiles = 2;
*/
public Builder clearNumQuantiles() {
numQuantiles_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:boosted_trees.QuantileConfig)
}
// @@protoc_insertion_point(class_scope:boosted_trees.QuantileConfig)
private static final boosted_trees.Quantiles.QuantileConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new boosted_trees.Quantiles.QuantileConfig();
}
public static boosted_trees.Quantiles.QuantileConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuantileConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuantileConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuantileEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:boosted_trees.QuantileEntry)
com.google.protobuf.MessageOrBuilder {
/**
*
* Value for the entry.
*
*
* float value = 1;
*/
float getValue();
/**
*
* Weight for the entry.
*
*
* float weight = 2;
*/
float getWeight();
/**
*
* We need the minimum and maximum rank possible for this entry.
* Rank is 0.0 for the absolute minimum and sum of the weights for the maximum
* value in the input.
*
*
* float min_rank = 3;
*/
float getMinRank();
/**
* float max_rank = 4;
*/
float getMaxRank();
}
/**
* Protobuf type {@code boosted_trees.QuantileEntry}
*/
public static final class QuantileEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:boosted_trees.QuantileEntry)
QuantileEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuantileEntry.newBuilder() to construct.
private QuantileEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuantileEntry() {
value_ = 0F;
weight_ = 0F;
minRank_ = 0F;
maxRank_ = 0F;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuantileEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 13: {
value_ = input.readFloat();
break;
}
case 21: {
weight_ = input.readFloat();
break;
}
case 29: {
minRank_ = input.readFloat();
break;
}
case 37: {
maxRank_ = input.readFloat();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileEntry.class, boosted_trees.Quantiles.QuantileEntry.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private float value_;
/**
*
* Value for the entry.
*
*
* float value = 1;
*/
public float getValue() {
return value_;
}
public static final int WEIGHT_FIELD_NUMBER = 2;
private float weight_;
/**
*
* Weight for the entry.
*
*
* float weight = 2;
*/
public float getWeight() {
return weight_;
}
public static final int MIN_RANK_FIELD_NUMBER = 3;
private float minRank_;
/**
*
* We need the minimum and maximum rank possible for this entry.
* Rank is 0.0 for the absolute minimum and sum of the weights for the maximum
* value in the input.
*
*
* float min_rank = 3;
*/
public float getMinRank() {
return minRank_;
}
public static final int MAX_RANK_FIELD_NUMBER = 4;
private float maxRank_;
/**
* float max_rank = 4;
*/
public float getMaxRank() {
return maxRank_;
}
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 (value_ != 0F) {
output.writeFloat(1, value_);
}
if (weight_ != 0F) {
output.writeFloat(2, weight_);
}
if (minRank_ != 0F) {
output.writeFloat(3, minRank_);
}
if (maxRank_ != 0F) {
output.writeFloat(4, maxRank_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(1, value_);
}
if (weight_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, weight_);
}
if (minRank_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, minRank_);
}
if (maxRank_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, maxRank_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof boosted_trees.Quantiles.QuantileEntry)) {
return super.equals(obj);
}
boosted_trees.Quantiles.QuantileEntry other = (boosted_trees.Quantiles.QuantileEntry) obj;
boolean result = true;
result = result && (
java.lang.Float.floatToIntBits(getValue())
== java.lang.Float.floatToIntBits(
other.getValue()));
result = result && (
java.lang.Float.floatToIntBits(getWeight())
== java.lang.Float.floatToIntBits(
other.getWeight()));
result = result && (
java.lang.Float.floatToIntBits(getMinRank())
== java.lang.Float.floatToIntBits(
other.getMinRank()));
result = result && (
java.lang.Float.floatToIntBits(getMaxRank())
== java.lang.Float.floatToIntBits(
other.getMaxRank()));
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getValue());
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getWeight());
hash = (37 * hash) + MIN_RANK_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getMinRank());
hash = (37 * hash) + MAX_RANK_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getMaxRank());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileEntry 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 boosted_trees.Quantiles.QuantileEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileEntry 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 boosted_trees.Quantiles.QuantileEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileEntry 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(boosted_trees.Quantiles.QuantileEntry 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 boosted_trees.QuantileEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:boosted_trees.QuantileEntry)
boosted_trees.Quantiles.QuantileEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileEntry.class, boosted_trees.Quantiles.QuantileEntry.Builder.class);
}
// Construct using boosted_trees.Quantiles.QuantileEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = 0F;
weight_ = 0F;
minRank_ = 0F;
maxRank_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileEntry_descriptor;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileEntry getDefaultInstanceForType() {
return boosted_trees.Quantiles.QuantileEntry.getDefaultInstance();
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileEntry build() {
boosted_trees.Quantiles.QuantileEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileEntry buildPartial() {
boosted_trees.Quantiles.QuantileEntry result = new boosted_trees.Quantiles.QuantileEntry(this);
result.value_ = value_;
result.weight_ = weight_;
result.minRank_ = minRank_;
result.maxRank_ = maxRank_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof boosted_trees.Quantiles.QuantileEntry) {
return mergeFrom((boosted_trees.Quantiles.QuantileEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(boosted_trees.Quantiles.QuantileEntry other) {
if (other == boosted_trees.Quantiles.QuantileEntry.getDefaultInstance()) return this;
if (other.getValue() != 0F) {
setValue(other.getValue());
}
if (other.getWeight() != 0F) {
setWeight(other.getWeight());
}
if (other.getMinRank() != 0F) {
setMinRank(other.getMinRank());
}
if (other.getMaxRank() != 0F) {
setMaxRank(other.getMaxRank());
}
this.mergeUnknownFields(other.unknownFields);
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 {
boosted_trees.Quantiles.QuantileEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (boosted_trees.Quantiles.QuantileEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private float value_ ;
/**
*
* Value for the entry.
*
*
* float value = 1;
*/
public float getValue() {
return value_;
}
/**
*
* Value for the entry.
*
*
* float value = 1;
*/
public Builder setValue(float value) {
value_ = value;
onChanged();
return this;
}
/**
*
* Value for the entry.
*
*
* float value = 1;
*/
public Builder clearValue() {
value_ = 0F;
onChanged();
return this;
}
private float weight_ ;
/**
*
* Weight for the entry.
*
*
* float weight = 2;
*/
public float getWeight() {
return weight_;
}
/**
*
* Weight for the entry.
*
*
* float weight = 2;
*/
public Builder setWeight(float value) {
weight_ = value;
onChanged();
return this;
}
/**
*
* Weight for the entry.
*
*
* float weight = 2;
*/
public Builder clearWeight() {
weight_ = 0F;
onChanged();
return this;
}
private float minRank_ ;
/**
*
* We need the minimum and maximum rank possible for this entry.
* Rank is 0.0 for the absolute minimum and sum of the weights for the maximum
* value in the input.
*
*
* float min_rank = 3;
*/
public float getMinRank() {
return minRank_;
}
/**
*
* We need the minimum and maximum rank possible for this entry.
* Rank is 0.0 for the absolute minimum and sum of the weights for the maximum
* value in the input.
*
*
* float min_rank = 3;
*/
public Builder setMinRank(float value) {
minRank_ = value;
onChanged();
return this;
}
/**
*
* We need the minimum and maximum rank possible for this entry.
* Rank is 0.0 for the absolute minimum and sum of the weights for the maximum
* value in the input.
*
*
* float min_rank = 3;
*/
public Builder clearMinRank() {
minRank_ = 0F;
onChanged();
return this;
}
private float maxRank_ ;
/**
* float max_rank = 4;
*/
public float getMaxRank() {
return maxRank_;
}
/**
* float max_rank = 4;
*/
public Builder setMaxRank(float value) {
maxRank_ = value;
onChanged();
return this;
}
/**
* float max_rank = 4;
*/
public Builder clearMaxRank() {
maxRank_ = 0F;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:boosted_trees.QuantileEntry)
}
// @@protoc_insertion_point(class_scope:boosted_trees.QuantileEntry)
private static final boosted_trees.Quantiles.QuantileEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new boosted_trees.Quantiles.QuantileEntry();
}
public static boosted_trees.Quantiles.QuantileEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuantileEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuantileEntry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuantileSummaryStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:boosted_trees.QuantileSummaryState)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
java.util.List
getEntriesList();
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
boosted_trees.Quantiles.QuantileEntry getEntries(int index);
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
int getEntriesCount();
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
java.util.List extends boosted_trees.Quantiles.QuantileEntryOrBuilder>
getEntriesOrBuilderList();
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
boosted_trees.Quantiles.QuantileEntryOrBuilder getEntriesOrBuilder(
int index);
}
/**
* Protobuf type {@code boosted_trees.QuantileSummaryState}
*/
public static final class QuantileSummaryState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:boosted_trees.QuantileSummaryState)
QuantileSummaryStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuantileSummaryState.newBuilder() to construct.
private QuantileSummaryState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuantileSummaryState() {
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuantileSummaryState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(
input.readMessage(boosted_trees.Quantiles.QuantileEntry.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileSummaryState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileSummaryState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileSummaryState.class, boosted_trees.Quantiles.QuantileSummaryState.Builder.class);
}
public static final int ENTRIES_FIELD_NUMBER = 1;
private java.util.List entries_;
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public java.util.List getEntriesList() {
return entries_;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public java.util.List extends boosted_trees.Quantiles.QuantileEntryOrBuilder>
getEntriesOrBuilderList() {
return entries_;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntry getEntries(int index) {
return entries_.get(index);
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.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 < entries_.size(); i++) {
output.writeMessage(1, entries_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entries_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof boosted_trees.Quantiles.QuantileSummaryState)) {
return super.equals(obj);
}
boosted_trees.Quantiles.QuantileSummaryState other = (boosted_trees.Quantiles.QuantileSummaryState) obj;
boolean result = true;
result = result && getEntriesList()
.equals(other.getEntriesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileSummaryState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileSummaryState 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 boosted_trees.Quantiles.QuantileSummaryState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileSummaryState 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 boosted_trees.Quantiles.QuantileSummaryState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileSummaryState 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(boosted_trees.Quantiles.QuantileSummaryState 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 boosted_trees.QuantileSummaryState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:boosted_trees.QuantileSummaryState)
boosted_trees.Quantiles.QuantileSummaryStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileSummaryState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileSummaryState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileSummaryState.class, boosted_trees.Quantiles.QuantileSummaryState.Builder.class);
}
// Construct using boosted_trees.Quantiles.QuantileSummaryState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entriesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileSummaryState_descriptor;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileSummaryState getDefaultInstanceForType() {
return boosted_trees.Quantiles.QuantileSummaryState.getDefaultInstance();
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileSummaryState build() {
boosted_trees.Quantiles.QuantileSummaryState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileSummaryState buildPartial() {
boosted_trees.Quantiles.QuantileSummaryState result = new boosted_trees.Quantiles.QuantileSummaryState(this);
int from_bitField0_ = bitField0_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof boosted_trees.Quantiles.QuantileSummaryState) {
return mergeFrom((boosted_trees.Quantiles.QuantileSummaryState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(boosted_trees.Quantiles.QuantileSummaryState other) {
if (other == boosted_trees.Quantiles.QuantileSummaryState.getDefaultInstance()) return this;
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
entriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
boosted_trees.Quantiles.QuantileSummaryState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (boosted_trees.Quantiles.QuantileSummaryState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileEntry, boosted_trees.Quantiles.QuantileEntry.Builder, boosted_trees.Quantiles.QuantileEntryOrBuilder> entriesBuilder_;
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public java.util.List getEntriesList() {
if (entriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(entries_);
} else {
return entriesBuilder_.getMessageList();
}
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public int getEntriesCount() {
if (entriesBuilder_ == null) {
return entries_.size();
} else {
return entriesBuilder_.getCount();
}
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntry getEntries(int index) {
if (entriesBuilder_ == null) {
return entries_.get(index);
} else {
return entriesBuilder_.getMessage(index);
}
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder setEntries(
int index, boosted_trees.Quantiles.QuantileEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.set(index, value);
onChanged();
} else {
entriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder setEntries(
int index, boosted_trees.Quantiles.QuantileEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.set(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder addEntries(boosted_trees.Quantiles.QuantileEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(value);
onChanged();
} else {
entriesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder addEntries(
int index, boosted_trees.Quantiles.QuantileEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(index, value);
onChanged();
} else {
entriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder addEntries(
boosted_trees.Quantiles.QuantileEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder addEntries(
int index, boosted_trees.Quantiles.QuantileEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder addAllEntries(
java.lang.Iterable extends boosted_trees.Quantiles.QuantileEntry> values) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entries_);
onChanged();
} else {
entriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder clearEntries() {
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entriesBuilder_.clear();
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public Builder removeEntries(int index) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.remove(index);
onChanged();
} else {
entriesBuilder_.remove(index);
}
return this;
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntry.Builder getEntriesBuilder(
int index) {
return getEntriesFieldBuilder().getBuilder(index);
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntryOrBuilder getEntriesOrBuilder(
int index) {
if (entriesBuilder_ == null) {
return entries_.get(index); } else {
return entriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public java.util.List extends boosted_trees.Quantiles.QuantileEntryOrBuilder>
getEntriesOrBuilderList() {
if (entriesBuilder_ != null) {
return entriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entries_);
}
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntry.Builder addEntriesBuilder() {
return getEntriesFieldBuilder().addBuilder(
boosted_trees.Quantiles.QuantileEntry.getDefaultInstance());
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public boosted_trees.Quantiles.QuantileEntry.Builder addEntriesBuilder(
int index) {
return getEntriesFieldBuilder().addBuilder(
index, boosted_trees.Quantiles.QuantileEntry.getDefaultInstance());
}
/**
* repeated .boosted_trees.QuantileEntry entries = 1;
*/
public java.util.List
getEntriesBuilderList() {
return getEntriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileEntry, boosted_trees.Quantiles.QuantileEntry.Builder, boosted_trees.Quantiles.QuantileEntryOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileEntry, boosted_trees.Quantiles.QuantileEntry.Builder, boosted_trees.Quantiles.QuantileEntryOrBuilder>(
entries_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:boosted_trees.QuantileSummaryState)
}
// @@protoc_insertion_point(class_scope:boosted_trees.QuantileSummaryState)
private static final boosted_trees.Quantiles.QuantileSummaryState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new boosted_trees.Quantiles.QuantileSummaryState();
}
public static boosted_trees.Quantiles.QuantileSummaryState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuantileSummaryState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuantileSummaryState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileSummaryState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuantileStreamStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:boosted_trees.QuantileStreamState)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
java.util.List
getSummariesList();
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
boosted_trees.Quantiles.QuantileSummaryState getSummaries(int index);
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
int getSummariesCount();
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
java.util.List extends boosted_trees.Quantiles.QuantileSummaryStateOrBuilder>
getSummariesOrBuilderList();
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
boosted_trees.Quantiles.QuantileSummaryStateOrBuilder getSummariesOrBuilder(
int index);
}
/**
* Protobuf type {@code boosted_trees.QuantileStreamState}
*/
public static final class QuantileStreamState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:boosted_trees.QuantileStreamState)
QuantileStreamStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuantileStreamState.newBuilder() to construct.
private QuantileStreamState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuantileStreamState() {
summaries_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuantileStreamState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
summaries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
summaries_.add(
input.readMessage(boosted_trees.Quantiles.QuantileSummaryState.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
summaries_ = java.util.Collections.unmodifiableList(summaries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileStreamState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileStreamState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileStreamState.class, boosted_trees.Quantiles.QuantileStreamState.Builder.class);
}
public static final int SUMMARIES_FIELD_NUMBER = 1;
private java.util.List summaries_;
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public java.util.List getSummariesList() {
return summaries_;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public java.util.List extends boosted_trees.Quantiles.QuantileSummaryStateOrBuilder>
getSummariesOrBuilderList() {
return summaries_;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public int getSummariesCount() {
return summaries_.size();
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryState getSummaries(int index) {
return summaries_.get(index);
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryStateOrBuilder getSummariesOrBuilder(
int index) {
return summaries_.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 < summaries_.size(); i++) {
output.writeMessage(1, summaries_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < summaries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, summaries_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof boosted_trees.Quantiles.QuantileStreamState)) {
return super.equals(obj);
}
boosted_trees.Quantiles.QuantileStreamState other = (boosted_trees.Quantiles.QuantileStreamState) obj;
boolean result = true;
result = result && getSummariesList()
.equals(other.getSummariesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSummariesCount() > 0) {
hash = (37 * hash) + SUMMARIES_FIELD_NUMBER;
hash = (53 * hash) + getSummariesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static boosted_trees.Quantiles.QuantileStreamState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileStreamState 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 boosted_trees.Quantiles.QuantileStreamState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileStreamState 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 boosted_trees.Quantiles.QuantileStreamState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static boosted_trees.Quantiles.QuantileStreamState 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(boosted_trees.Quantiles.QuantileStreamState 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 boosted_trees.QuantileStreamState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:boosted_trees.QuantileStreamState)
boosted_trees.Quantiles.QuantileStreamStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileStreamState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileStreamState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
boosted_trees.Quantiles.QuantileStreamState.class, boosted_trees.Quantiles.QuantileStreamState.Builder.class);
}
// Construct using boosted_trees.Quantiles.QuantileStreamState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSummariesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (summariesBuilder_ == null) {
summaries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
summariesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return boosted_trees.Quantiles.internal_static_boosted_trees_QuantileStreamState_descriptor;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileStreamState getDefaultInstanceForType() {
return boosted_trees.Quantiles.QuantileStreamState.getDefaultInstance();
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileStreamState build() {
boosted_trees.Quantiles.QuantileStreamState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileStreamState buildPartial() {
boosted_trees.Quantiles.QuantileStreamState result = new boosted_trees.Quantiles.QuantileStreamState(this);
int from_bitField0_ = bitField0_;
if (summariesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
summaries_ = java.util.Collections.unmodifiableList(summaries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.summaries_ = summaries_;
} else {
result.summaries_ = summariesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof boosted_trees.Quantiles.QuantileStreamState) {
return mergeFrom((boosted_trees.Quantiles.QuantileStreamState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(boosted_trees.Quantiles.QuantileStreamState other) {
if (other == boosted_trees.Quantiles.QuantileStreamState.getDefaultInstance()) return this;
if (summariesBuilder_ == null) {
if (!other.summaries_.isEmpty()) {
if (summaries_.isEmpty()) {
summaries_ = other.summaries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSummariesIsMutable();
summaries_.addAll(other.summaries_);
}
onChanged();
}
} else {
if (!other.summaries_.isEmpty()) {
if (summariesBuilder_.isEmpty()) {
summariesBuilder_.dispose();
summariesBuilder_ = null;
summaries_ = other.summaries_;
bitField0_ = (bitField0_ & ~0x00000001);
summariesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSummariesFieldBuilder() : null;
} else {
summariesBuilder_.addAllMessages(other.summaries_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
boosted_trees.Quantiles.QuantileStreamState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (boosted_trees.Quantiles.QuantileStreamState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List summaries_ =
java.util.Collections.emptyList();
private void ensureSummariesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
summaries_ = new java.util.ArrayList(summaries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileSummaryState, boosted_trees.Quantiles.QuantileSummaryState.Builder, boosted_trees.Quantiles.QuantileSummaryStateOrBuilder> summariesBuilder_;
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public java.util.List getSummariesList() {
if (summariesBuilder_ == null) {
return java.util.Collections.unmodifiableList(summaries_);
} else {
return summariesBuilder_.getMessageList();
}
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public int getSummariesCount() {
if (summariesBuilder_ == null) {
return summaries_.size();
} else {
return summariesBuilder_.getCount();
}
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryState getSummaries(int index) {
if (summariesBuilder_ == null) {
return summaries_.get(index);
} else {
return summariesBuilder_.getMessage(index);
}
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder setSummaries(
int index, boosted_trees.Quantiles.QuantileSummaryState value) {
if (summariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummariesIsMutable();
summaries_.set(index, value);
onChanged();
} else {
summariesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder setSummaries(
int index, boosted_trees.Quantiles.QuantileSummaryState.Builder builderForValue) {
if (summariesBuilder_ == null) {
ensureSummariesIsMutable();
summaries_.set(index, builderForValue.build());
onChanged();
} else {
summariesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder addSummaries(boosted_trees.Quantiles.QuantileSummaryState value) {
if (summariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummariesIsMutable();
summaries_.add(value);
onChanged();
} else {
summariesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder addSummaries(
int index, boosted_trees.Quantiles.QuantileSummaryState value) {
if (summariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummariesIsMutable();
summaries_.add(index, value);
onChanged();
} else {
summariesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder addSummaries(
boosted_trees.Quantiles.QuantileSummaryState.Builder builderForValue) {
if (summariesBuilder_ == null) {
ensureSummariesIsMutable();
summaries_.add(builderForValue.build());
onChanged();
} else {
summariesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder addSummaries(
int index, boosted_trees.Quantiles.QuantileSummaryState.Builder builderForValue) {
if (summariesBuilder_ == null) {
ensureSummariesIsMutable();
summaries_.add(index, builderForValue.build());
onChanged();
} else {
summariesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder addAllSummaries(
java.lang.Iterable extends boosted_trees.Quantiles.QuantileSummaryState> values) {
if (summariesBuilder_ == null) {
ensureSummariesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, summaries_);
onChanged();
} else {
summariesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder clearSummaries() {
if (summariesBuilder_ == null) {
summaries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
summariesBuilder_.clear();
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public Builder removeSummaries(int index) {
if (summariesBuilder_ == null) {
ensureSummariesIsMutable();
summaries_.remove(index);
onChanged();
} else {
summariesBuilder_.remove(index);
}
return this;
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryState.Builder getSummariesBuilder(
int index) {
return getSummariesFieldBuilder().getBuilder(index);
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryStateOrBuilder getSummariesOrBuilder(
int index) {
if (summariesBuilder_ == null) {
return summaries_.get(index); } else {
return summariesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public java.util.List extends boosted_trees.Quantiles.QuantileSummaryStateOrBuilder>
getSummariesOrBuilderList() {
if (summariesBuilder_ != null) {
return summariesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(summaries_);
}
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryState.Builder addSummariesBuilder() {
return getSummariesFieldBuilder().addBuilder(
boosted_trees.Quantiles.QuantileSummaryState.getDefaultInstance());
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public boosted_trees.Quantiles.QuantileSummaryState.Builder addSummariesBuilder(
int index) {
return getSummariesFieldBuilder().addBuilder(
index, boosted_trees.Quantiles.QuantileSummaryState.getDefaultInstance());
}
/**
* repeated .boosted_trees.QuantileSummaryState summaries = 1;
*/
public java.util.List
getSummariesBuilderList() {
return getSummariesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileSummaryState, boosted_trees.Quantiles.QuantileSummaryState.Builder, boosted_trees.Quantiles.QuantileSummaryStateOrBuilder>
getSummariesFieldBuilder() {
if (summariesBuilder_ == null) {
summariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
boosted_trees.Quantiles.QuantileSummaryState, boosted_trees.Quantiles.QuantileSummaryState.Builder, boosted_trees.Quantiles.QuantileSummaryStateOrBuilder>(
summaries_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
summaries_ = null;
}
return summariesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:boosted_trees.QuantileStreamState)
}
// @@protoc_insertion_point(class_scope:boosted_trees.QuantileStreamState)
private static final boosted_trees.Quantiles.QuantileStreamState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new boosted_trees.Quantiles.QuantileStreamState();
}
public static boosted_trees.Quantiles.QuantileStreamState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuantileStreamState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuantileStreamState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public boosted_trees.Quantiles.QuantileStreamState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_boosted_trees_QuantileConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_boosted_trees_QuantileConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_boosted_trees_QuantileEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_boosted_trees_QuantileEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_boosted_trees_QuantileSummaryState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_boosted_trees_QuantileSummaryState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_boosted_trees_QuantileStreamState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_boosted_trees_QuantileStreamState_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n6tensorflow/contrib/boosted_trees/proto" +
"/quantiles.proto\022\rboosted_trees\"4\n\016Quant" +
"ileConfig\022\013\n\003eps\030\001 \001(\001\022\025\n\rnum_quantiles\030" +
"\002 \001(\003\"R\n\rQuantileEntry\022\r\n\005value\030\001 \001(\002\022\016\n" +
"\006weight\030\002 \001(\002\022\020\n\010min_rank\030\003 \001(\002\022\020\n\010max_r" +
"ank\030\004 \001(\002\"E\n\024QuantileSummaryState\022-\n\007ent" +
"ries\030\001 \003(\0132\034.boosted_trees.QuantileEntry" +
"\"M\n\023QuantileStreamState\0226\n\tsummaries\030\001 \003" +
"(\0132#.boosted_trees.QuantileSummaryStateB" +
"\003\370\001\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_boosted_trees_QuantileConfig_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_boosted_trees_QuantileConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_boosted_trees_QuantileConfig_descriptor,
new java.lang.String[] { "Eps", "NumQuantiles", });
internal_static_boosted_trees_QuantileEntry_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_boosted_trees_QuantileEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_boosted_trees_QuantileEntry_descriptor,
new java.lang.String[] { "Value", "Weight", "MinRank", "MaxRank", });
internal_static_boosted_trees_QuantileSummaryState_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_boosted_trees_QuantileSummaryState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_boosted_trees_QuantileSummaryState_descriptor,
new java.lang.String[] { "Entries", });
internal_static_boosted_trees_QuantileStreamState_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_boosted_trees_QuantileStreamState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_boosted_trees_QuantileStreamState_descriptor,
new java.lang.String[] { "Summaries", });
}
// @@protoc_insertion_point(outer_class_scope)
}