|
@@ -0,0 +1,1094 @@
|
|
|
+// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
+// source: com/tzld/piaoquan/recommend/server/ctr_samples.proto
|
|
|
+
|
|
|
+package com.tzld.piaoquan.recommend.server.gen.recommend;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Protobuf type {@code LRSamples}
|
|
|
+ */
|
|
|
+public final class LRSamples extends
|
|
|
+ com.google.protobuf.GeneratedMessageV3 implements
|
|
|
+ // @@protoc_insertion_point(message_implements:LRSamples)
|
|
|
+ LRSamplesOrBuilder {
|
|
|
+private static final long serialVersionUID = 0L;
|
|
|
+ // Use LRSamples.newBuilder() to construct.
|
|
|
+ private LRSamples(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
|
+ super(builder);
|
|
|
+ }
|
|
|
+ private LRSamples() {
|
|
|
+ features_ = java.util.Collections.emptyList();
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ @SuppressWarnings({"unused"})
|
|
|
+ protected java.lang.Object newInstance(
|
|
|
+ UnusedPrivateParameter unused) {
|
|
|
+ return new LRSamples();
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public final com.google.protobuf.UnknownFieldSet
|
|
|
+ getUnknownFields() {
|
|
|
+ return this.unknownFields;
|
|
|
+ }
|
|
|
+ private LRSamples(
|
|
|
+ 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 8: {
|
|
|
+
|
|
|
+ isClick_ = input.readInt32();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 16: {
|
|
|
+
|
|
|
+ groupNum_ = input.readInt32();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 24: {
|
|
|
+
|
|
|
+ count_ = input.readInt32();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 34: {
|
|
|
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
|
+ features_ = new java.util.ArrayList<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature>();
|
|
|
+ mutable_bitField0_ |= 0x00000001;
|
|
|
+ }
|
|
|
+ features_.add(
|
|
|
+ input.readMessage(com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.parser(), extensionRegistry));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 41: {
|
|
|
+
|
|
|
+ weight_ = input.readDouble();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 49: {
|
|
|
+
|
|
|
+ predictCtr_ = input.readDouble();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ default: {
|
|
|
+ if (!parseUnknownField(
|
|
|
+ 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) != 0)) {
|
|
|
+ features_ = java.util.Collections.unmodifiableList(features_);
|
|
|
+ }
|
|
|
+ this.unknownFields = unknownFields.build();
|
|
|
+ makeExtensionsImmutable();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
+ getDescriptor() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.CtrSamples.internal_static_LRSamples_descriptor;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
|
+ internalGetFieldAccessorTable() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.CtrSamples.internal_static_LRSamples_fieldAccessorTable
|
|
|
+ .ensureFieldAccessorsInitialized(
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.class, com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.Builder.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int IS_CLICK_FIELD_NUMBER = 1;
|
|
|
+ private int isClick_;
|
|
|
+ /**
|
|
|
+ * <code>int32 is_click = 1;</code>
|
|
|
+ * @return The isClick.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getIsClick() {
|
|
|
+ return isClick_;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int GROUP_NUM_FIELD_NUMBER = 2;
|
|
|
+ private int groupNum_;
|
|
|
+ /**
|
|
|
+ * <code>int32 group_num = 2;</code>
|
|
|
+ * @return The groupNum.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getGroupNum() {
|
|
|
+ return groupNum_;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int COUNT_FIELD_NUMBER = 3;
|
|
|
+ private int count_;
|
|
|
+ /**
|
|
|
+ * <code>int32 count = 3;</code>
|
|
|
+ * @return The count.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getCount() {
|
|
|
+ return count_;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int FEATURES_FIELD_NUMBER = 4;
|
|
|
+ private java.util.List<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature> features_;
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public java.util.List<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature> getFeaturesList() {
|
|
|
+ return features_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public java.util.List<? extends com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder>
|
|
|
+ getFeaturesOrBuilderList() {
|
|
|
+ return features_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getFeaturesCount() {
|
|
|
+ return features_.size();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature getFeatures(int index) {
|
|
|
+ return features_.get(index);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder getFeaturesOrBuilder(
|
|
|
+ int index) {
|
|
|
+ return features_.get(index);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int WEIGHT_FIELD_NUMBER = 5;
|
|
|
+ private double weight_;
|
|
|
+ /**
|
|
|
+ * <code>double weight = 5;</code>
|
|
|
+ * @return The weight.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public double getWeight() {
|
|
|
+ return weight_;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final int PREDICT_CTR_FIELD_NUMBER = 6;
|
|
|
+ private double predictCtr_;
|
|
|
+ /**
|
|
|
+ * <code>double predict_ctr = 6;</code>
|
|
|
+ * @return The predictCtr.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public double getPredictCtr() {
|
|
|
+ return predictCtr_;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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 (isClick_ != 0) {
|
|
|
+ output.writeInt32(1, isClick_);
|
|
|
+ }
|
|
|
+ if (groupNum_ != 0) {
|
|
|
+ output.writeInt32(2, groupNum_);
|
|
|
+ }
|
|
|
+ if (count_ != 0) {
|
|
|
+ output.writeInt32(3, count_);
|
|
|
+ }
|
|
|
+ for (int i = 0; i < features_.size(); i++) {
|
|
|
+ output.writeMessage(4, features_.get(i));
|
|
|
+ }
|
|
|
+ if (weight_ != 0D) {
|
|
|
+ output.writeDouble(5, weight_);
|
|
|
+ }
|
|
|
+ if (predictCtr_ != 0D) {
|
|
|
+ output.writeDouble(6, predictCtr_);
|
|
|
+ }
|
|
|
+ unknownFields.writeTo(output);
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public int getSerializedSize() {
|
|
|
+ int size = memoizedSize;
|
|
|
+ if (size != -1) return size;
|
|
|
+
|
|
|
+ size = 0;
|
|
|
+ if (isClick_ != 0) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeInt32Size(1, isClick_);
|
|
|
+ }
|
|
|
+ if (groupNum_ != 0) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeInt32Size(2, groupNum_);
|
|
|
+ }
|
|
|
+ if (count_ != 0) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeInt32Size(3, count_);
|
|
|
+ }
|
|
|
+ for (int i = 0; i < features_.size(); i++) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeMessageSize(4, features_.get(i));
|
|
|
+ }
|
|
|
+ if (weight_ != 0D) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeDoubleSize(5, weight_);
|
|
|
+ }
|
|
|
+ if (predictCtr_ != 0D) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeDoubleSize(6, predictCtr_);
|
|
|
+ }
|
|
|
+ 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 com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples)) {
|
|
|
+ return super.equals(obj);
|
|
|
+ }
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples other = (com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples) obj;
|
|
|
+
|
|
|
+ if (getIsClick()
|
|
|
+ != other.getIsClick()) return false;
|
|
|
+ if (getGroupNum()
|
|
|
+ != other.getGroupNum()) return false;
|
|
|
+ if (getCount()
|
|
|
+ != other.getCount()) return false;
|
|
|
+ if (!getFeaturesList()
|
|
|
+ .equals(other.getFeaturesList())) return false;
|
|
|
+ if (java.lang.Double.doubleToLongBits(getWeight())
|
|
|
+ != java.lang.Double.doubleToLongBits(
|
|
|
+ other.getWeight())) return false;
|
|
|
+ if (java.lang.Double.doubleToLongBits(getPredictCtr())
|
|
|
+ != java.lang.Double.doubleToLongBits(
|
|
|
+ other.getPredictCtr())) return false;
|
|
|
+ if (!unknownFields.equals(other.unknownFields)) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public int hashCode() {
|
|
|
+ if (memoizedHashCode != 0) {
|
|
|
+ return memoizedHashCode;
|
|
|
+ }
|
|
|
+ int hash = 41;
|
|
|
+ hash = (19 * hash) + getDescriptor().hashCode();
|
|
|
+ hash = (37 * hash) + IS_CLICK_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + getIsClick();
|
|
|
+ hash = (37 * hash) + GROUP_NUM_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + getGroupNum();
|
|
|
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + getCount();
|
|
|
+ if (getFeaturesCount() > 0) {
|
|
|
+ hash = (37 * hash) + FEATURES_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + getFeaturesList().hashCode();
|
|
|
+ }
|
|
|
+ hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
|
+ java.lang.Double.doubleToLongBits(getWeight()));
|
|
|
+ hash = (37 * hash) + PREDICT_CTR_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
|
+ java.lang.Double.doubleToLongBits(getPredictCtr()));
|
|
|
+ hash = (29 * hash) + unknownFields.hashCode();
|
|
|
+ memoizedHashCode = hash;
|
|
|
+ return hash;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ java.nio.ByteBuffer data)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ java.nio.ByteBuffer data,
|
|
|
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data, extensionRegistry);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ com.google.protobuf.ByteString data)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ com.google.protobuf.ByteString data,
|
|
|
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data, extensionRegistry);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(byte[] data)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ byte[] data,
|
|
|
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return PARSER.parseFrom(data, extensionRegistry);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(java.io.InputStream input)
|
|
|
+ throws java.io.IOException {
|
|
|
+ return com.google.protobuf.GeneratedMessageV3
|
|
|
+ .parseWithIOException(PARSER, input);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples 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 com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseDelimitedFrom(java.io.InputStream input)
|
|
|
+ throws java.io.IOException {
|
|
|
+ return com.google.protobuf.GeneratedMessageV3
|
|
|
+ .parseDelimitedWithIOException(PARSER, input);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples 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 com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parseFrom(
|
|
|
+ com.google.protobuf.CodedInputStream input)
|
|
|
+ throws java.io.IOException {
|
|
|
+ return com.google.protobuf.GeneratedMessageV3
|
|
|
+ .parseWithIOException(PARSER, input);
|
|
|
+ }
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples 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(com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples 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 LRSamples}
|
|
|
+ */
|
|
|
+ public static final class Builder extends
|
|
|
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
|
+ // @@protoc_insertion_point(builder_implements:LRSamples)
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamplesOrBuilder {
|
|
|
+ public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
+ getDescriptor() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.CtrSamples.internal_static_LRSamples_descriptor;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
|
+ internalGetFieldAccessorTable() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.CtrSamples.internal_static_LRSamples_fieldAccessorTable
|
|
|
+ .ensureFieldAccessorsInitialized(
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.class, com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.Builder.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ // Construct using com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.newBuilder()
|
|
|
+ private Builder() {
|
|
|
+ maybeForceBuilderInitialization();
|
|
|
+ }
|
|
|
+
|
|
|
+ private Builder(
|
|
|
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
|
+ super(parent);
|
|
|
+ maybeForceBuilderInitialization();
|
|
|
+ }
|
|
|
+ private void maybeForceBuilderInitialization() {
|
|
|
+ if (com.google.protobuf.GeneratedMessageV3
|
|
|
+ .alwaysUseFieldBuilders) {
|
|
|
+ getFeaturesFieldBuilder();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @java.lang.Override
|
|
|
+ public Builder clear() {
|
|
|
+ super.clear();
|
|
|
+ isClick_ = 0;
|
|
|
+
|
|
|
+ groupNum_ = 0;
|
|
|
+
|
|
|
+ count_ = 0;
|
|
|
+
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ features_ = java.util.Collections.emptyList();
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.clear();
|
|
|
+ }
|
|
|
+ weight_ = 0D;
|
|
|
+
|
|
|
+ predictCtr_ = 0D;
|
|
|
+
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.google.protobuf.Descriptors.Descriptor
|
|
|
+ getDescriptorForType() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.CtrSamples.internal_static_LRSamples_descriptor;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples getDefaultInstanceForType() {
|
|
|
+ return com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.getDefaultInstance();
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples build() {
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples result = buildPartial();
|
|
|
+ if (!result.isInitialized()) {
|
|
|
+ throw newUninitializedMessageException(result);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples buildPartial() {
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples result = new com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples(this);
|
|
|
+ int from_bitField0_ = bitField0_;
|
|
|
+ result.isClick_ = isClick_;
|
|
|
+ result.groupNum_ = groupNum_;
|
|
|
+ result.count_ = count_;
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ if (((bitField0_ & 0x00000001) != 0)) {
|
|
|
+ features_ = java.util.Collections.unmodifiableList(features_);
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
+ }
|
|
|
+ result.features_ = features_;
|
|
|
+ } else {
|
|
|
+ result.features_ = featuresBuilder_.build();
|
|
|
+ }
|
|
|
+ result.weight_ = weight_;
|
|
|
+ result.predictCtr_ = predictCtr_;
|
|
|
+ onBuilt();
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @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 com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples) {
|
|
|
+ return mergeFrom((com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples)other);
|
|
|
+ } else {
|
|
|
+ super.mergeFrom(other);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder mergeFrom(com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples other) {
|
|
|
+ if (other == com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples.getDefaultInstance()) return this;
|
|
|
+ if (other.getIsClick() != 0) {
|
|
|
+ setIsClick(other.getIsClick());
|
|
|
+ }
|
|
|
+ if (other.getGroupNum() != 0) {
|
|
|
+ setGroupNum(other.getGroupNum());
|
|
|
+ }
|
|
|
+ if (other.getCount() != 0) {
|
|
|
+ setCount(other.getCount());
|
|
|
+ }
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ if (!other.features_.isEmpty()) {
|
|
|
+ if (features_.isEmpty()) {
|
|
|
+ features_ = other.features_;
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
+ } else {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.addAll(other.features_);
|
|
|
+ }
|
|
|
+ onChanged();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!other.features_.isEmpty()) {
|
|
|
+ if (featuresBuilder_.isEmpty()) {
|
|
|
+ featuresBuilder_.dispose();
|
|
|
+ featuresBuilder_ = null;
|
|
|
+ features_ = other.features_;
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
+ featuresBuilder_ =
|
|
|
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
|
+ getFeaturesFieldBuilder() : null;
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addAllMessages(other.features_);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (other.getWeight() != 0D) {
|
|
|
+ setWeight(other.getWeight());
|
|
|
+ }
|
|
|
+ if (other.getPredictCtr() != 0D) {
|
|
|
+ setPredictCtr(other.getPredictCtr());
|
|
|
+ }
|
|
|
+ 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 {
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples parsedMessage = null;
|
|
|
+ try {
|
|
|
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
|
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
|
+ parsedMessage = (com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples) e.getUnfinishedMessage();
|
|
|
+ throw e.unwrapIOException();
|
|
|
+ } finally {
|
|
|
+ if (parsedMessage != null) {
|
|
|
+ mergeFrom(parsedMessage);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ private int bitField0_;
|
|
|
+
|
|
|
+ private int isClick_ ;
|
|
|
+ /**
|
|
|
+ * <code>int32 is_click = 1;</code>
|
|
|
+ * @return The isClick.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getIsClick() {
|
|
|
+ return isClick_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 is_click = 1;</code>
|
|
|
+ * @param value The isClick to set.
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder setIsClick(int value) {
|
|
|
+
|
|
|
+ isClick_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 is_click = 1;</code>
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder clearIsClick() {
|
|
|
+
|
|
|
+ isClick_ = 0;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ private int groupNum_ ;
|
|
|
+ /**
|
|
|
+ * <code>int32 group_num = 2;</code>
|
|
|
+ * @return The groupNum.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getGroupNum() {
|
|
|
+ return groupNum_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 group_num = 2;</code>
|
|
|
+ * @param value The groupNum to set.
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder setGroupNum(int value) {
|
|
|
+
|
|
|
+ groupNum_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 group_num = 2;</code>
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder clearGroupNum() {
|
|
|
+
|
|
|
+ groupNum_ = 0;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ private int count_ ;
|
|
|
+ /**
|
|
|
+ * <code>int32 count = 3;</code>
|
|
|
+ * @return The count.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public int getCount() {
|
|
|
+ return count_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 count = 3;</code>
|
|
|
+ * @param value The count to set.
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder setCount(int value) {
|
|
|
+
|
|
|
+ count_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>int32 count = 3;</code>
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder clearCount() {
|
|
|
+
|
|
|
+ count_ = 0;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ private java.util.List<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature> features_ =
|
|
|
+ java.util.Collections.emptyList();
|
|
|
+ private void ensureFeaturesIsMutable() {
|
|
|
+ if (!((bitField0_ & 0x00000001) != 0)) {
|
|
|
+ features_ = new java.util.ArrayList<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature>(features_);
|
|
|
+ bitField0_ |= 0x00000001;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder> featuresBuilder_;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public java.util.List<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature> getFeaturesList() {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ return java.util.Collections.unmodifiableList(features_);
|
|
|
+ } else {
|
|
|
+ return featuresBuilder_.getMessageList();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public int getFeaturesCount() {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ return features_.size();
|
|
|
+ } else {
|
|
|
+ return featuresBuilder_.getCount();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature getFeatures(int index) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ return features_.get(index);
|
|
|
+ } else {
|
|
|
+ return featuresBuilder_.getMessage(index);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder setFeatures(
|
|
|
+ int index, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature value) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ if (value == null) {
|
|
|
+ throw new NullPointerException();
|
|
|
+ }
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.set(index, value);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.setMessage(index, value);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder setFeatures(
|
|
|
+ int index, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder builderForValue) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.set(index, builderForValue.build());
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.setMessage(index, builderForValue.build());
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder addFeatures(com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature value) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ if (value == null) {
|
|
|
+ throw new NullPointerException();
|
|
|
+ }
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.add(value);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addMessage(value);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder addFeatures(
|
|
|
+ int index, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature value) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ if (value == null) {
|
|
|
+ throw new NullPointerException();
|
|
|
+ }
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.add(index, value);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addMessage(index, value);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder addFeatures(
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder builderForValue) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.add(builderForValue.build());
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addMessage(builderForValue.build());
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder addFeatures(
|
|
|
+ int index, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder builderForValue) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.add(index, builderForValue.build());
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addMessage(index, builderForValue.build());
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder addAllFeatures(
|
|
|
+ java.lang.Iterable<? extends com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature> values) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
|
+ values, features_);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.addAllMessages(values);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder clearFeatures() {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ features_ = java.util.Collections.emptyList();
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.clear();
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public Builder removeFeatures(int index) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ ensureFeaturesIsMutable();
|
|
|
+ features_.remove(index);
|
|
|
+ onChanged();
|
|
|
+ } else {
|
|
|
+ featuresBuilder_.remove(index);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder getFeaturesBuilder(
|
|
|
+ int index) {
|
|
|
+ return getFeaturesFieldBuilder().getBuilder(index);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder getFeaturesOrBuilder(
|
|
|
+ int index) {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ return features_.get(index); } else {
|
|
|
+ return featuresBuilder_.getMessageOrBuilder(index);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public java.util.List<? extends com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder>
|
|
|
+ getFeaturesOrBuilderList() {
|
|
|
+ if (featuresBuilder_ != null) {
|
|
|
+ return featuresBuilder_.getMessageOrBuilderList();
|
|
|
+ } else {
|
|
|
+ return java.util.Collections.unmodifiableList(features_);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder addFeaturesBuilder() {
|
|
|
+ return getFeaturesFieldBuilder().addBuilder(
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.getDefaultInstance());
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder addFeaturesBuilder(
|
|
|
+ int index) {
|
|
|
+ return getFeaturesFieldBuilder().addBuilder(
|
|
|
+ index, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.getDefaultInstance());
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>repeated .GroupedFeature features = 4;</code>
|
|
|
+ */
|
|
|
+ public java.util.List<com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder>
|
|
|
+ getFeaturesBuilderList() {
|
|
|
+ return getFeaturesFieldBuilder().getBuilderList();
|
|
|
+ }
|
|
|
+ private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder>
|
|
|
+ getFeaturesFieldBuilder() {
|
|
|
+ if (featuresBuilder_ == null) {
|
|
|
+ featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
|
+ com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeature.Builder, com.tzld.piaoquan.recommend.server.gen.recommend.GroupedFeatureOrBuilder>(
|
|
|
+ features_,
|
|
|
+ ((bitField0_ & 0x00000001) != 0),
|
|
|
+ getParentForChildren(),
|
|
|
+ isClean());
|
|
|
+ features_ = null;
|
|
|
+ }
|
|
|
+ return featuresBuilder_;
|
|
|
+ }
|
|
|
+
|
|
|
+ private double weight_ ;
|
|
|
+ /**
|
|
|
+ * <code>double weight = 5;</code>
|
|
|
+ * @return The weight.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public double getWeight() {
|
|
|
+ return weight_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>double weight = 5;</code>
|
|
|
+ * @param value The weight to set.
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder setWeight(double value) {
|
|
|
+
|
|
|
+ weight_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>double weight = 5;</code>
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder clearWeight() {
|
|
|
+
|
|
|
+ weight_ = 0D;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ private double predictCtr_ ;
|
|
|
+ /**
|
|
|
+ * <code>double predict_ctr = 6;</code>
|
|
|
+ * @return The predictCtr.
|
|
|
+ */
|
|
|
+ @java.lang.Override
|
|
|
+ public double getPredictCtr() {
|
|
|
+ return predictCtr_;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>double predict_ctr = 6;</code>
|
|
|
+ * @param value The predictCtr to set.
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder setPredictCtr(double value) {
|
|
|
+
|
|
|
+ predictCtr_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * <code>double predict_ctr = 6;</code>
|
|
|
+ * @return This builder for chaining.
|
|
|
+ */
|
|
|
+ public Builder clearPredictCtr() {
|
|
|
+
|
|
|
+ predictCtr_ = 0D;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ @java.lang.Override
|
|
|
+ public final Builder setUnknownFields(
|
|
|
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
|
+ return super.setUnknownFields(unknownFields);
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public final Builder mergeUnknownFields(
|
|
|
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
|
+ return super.mergeUnknownFields(unknownFields);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ // @@protoc_insertion_point(builder_scope:LRSamples)
|
|
|
+ }
|
|
|
+
|
|
|
+ // @@protoc_insertion_point(class_scope:LRSamples)
|
|
|
+ private static final com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples DEFAULT_INSTANCE;
|
|
|
+ static {
|
|
|
+ DEFAULT_INSTANCE = new com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples getDefaultInstance() {
|
|
|
+ return DEFAULT_INSTANCE;
|
|
|
+ }
|
|
|
+
|
|
|
+ private static final com.google.protobuf.Parser<LRSamples>
|
|
|
+ PARSER = new com.google.protobuf.AbstractParser<LRSamples>() {
|
|
|
+ @java.lang.Override
|
|
|
+ public LRSamples parsePartialFrom(
|
|
|
+ com.google.protobuf.CodedInputStream input,
|
|
|
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
+ throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
+ return new LRSamples(input, extensionRegistry);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ public static com.google.protobuf.Parser<LRSamples> parser() {
|
|
|
+ return PARSER;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.google.protobuf.Parser<LRSamples> getParserForType() {
|
|
|
+ return PARSER;
|
|
|
+ }
|
|
|
+
|
|
|
+ @java.lang.Override
|
|
|
+ public com.tzld.piaoquan.recommend.server.gen.recommend.LRSamples getDefaultInstanceForType() {
|
|
|
+ return DEFAULT_INSTANCE;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|