// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: recommender.proto

package com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender;

public final class RecommenderProto {
  private RecommenderProto() {}
  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 IDProbsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:recommender.IDProbs)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated int32 ID = 1;</code>
     * @return A list containing the iD.
     */
    java.util.List<java.lang.Integer> getIDList();
    /**
     * <code>repeated int32 ID = 1;</code>
     * @return The count of iD.
     */
    int getIDCount();
    /**
     * <code>repeated int32 ID = 1;</code>
     * @param index The index of the element to return.
     * @return The iD at the given index.
     */
    int getID(int index);

    /**
     * <code>repeated float prob = 2;</code>
     * @return A list containing the prob.
     */
    java.util.List<java.lang.Float> getProbList();
    /**
     * <code>repeated float prob = 2;</code>
     * @return The count of prob.
     */
    int getProbCount();
    /**
     * <code>repeated float prob = 2;</code>
     * @param index The index of the element to return.
     * @return The prob at the given index.
     */
    float getProb(int index);
  }
  /**
   * Protobuf type {@code recommender.IDProbs}
   */
  public  static final class IDProbs extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:recommender.IDProbs)
      IDProbsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use IDProbs.newBuilder() to construct.
    private IDProbs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private IDProbs() {
      iD_ = emptyIntList();
      prob_ = emptyFloatList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new IDProbs();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private IDProbs(
        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: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                iD_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              iD_.addInt(input.readInt32());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                iD_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                iD_.addInt(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 21: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                prob_ = newFloatList();
                mutable_bitField0_ |= 0x00000002;
              }
              prob_.addFloat(input.readFloat());
              break;
            }
            case 18: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
                prob_ = newFloatList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                prob_.addFloat(input.readFloat());
              }
              input.popLimit(limit);
              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)) {
          iD_.makeImmutable(); // C
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          prob_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_IDProbs_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_IDProbs_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.IntList iD_;
    /**
     * <code>repeated int32 ID = 1;</code>
     * @return A list containing the iD.
     */
    public java.util.List<java.lang.Integer>
        getIDList() {
      return iD_;
    }
    /**
     * <code>repeated int32 ID = 1;</code>
     * @return The count of iD.
     */
    public int getIDCount() {
      return iD_.size();
    }
    /**
     * <code>repeated int32 ID = 1;</code>
     * @param index The index of the element to return.
     * @return The iD at the given index.
     */
    public int getID(int index) {
      return iD_.getInt(index);
    }
    private int iDMemoizedSerializedSize = -1;

    public static final int PROB_FIELD_NUMBER = 2;
    private com.google.protobuf.Internal.FloatList prob_;
    /**
     * <code>repeated float prob = 2;</code>
     * @return A list containing the prob.
     */
    public java.util.List<java.lang.Float>
        getProbList() {
      return prob_;
    }
    /**
     * <code>repeated float prob = 2;</code>
     * @return The count of prob.
     */
    public int getProbCount() {
      return prob_.size();
    }
    /**
     * <code>repeated float prob = 2;</code>
     * @param index The index of the element to return.
     * @return The prob at the given index.
     */
    public float getProb(int index) {
      return prob_.getFloat(index);
    }
    private int probMemoizedSerializedSize = -1;

    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 {
      getSerializedSize();
      if (getIDList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(iDMemoizedSerializedSize);
      }
      for (int i = 0; i < iD_.size(); i++) {
        output.writeInt32NoTag(iD_.getInt(i));
      }
      if (getProbList().size() > 0) {
        output.writeUInt32NoTag(18);
        output.writeUInt32NoTag(probMemoizedSerializedSize);
      }
      for (int i = 0; i < prob_.size(); i++) {
        output.writeFloatNoTag(prob_.getFloat(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < iD_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(iD_.getInt(i));
        }
        size += dataSize;
        if (!getIDList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        iDMemoizedSerializedSize = dataSize;
      }
      {
        int dataSize = 0;
        dataSize = 4 * getProbList().size();
        size += dataSize;
        if (!getProbList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        probMemoizedSerializedSize = dataSize;
      }
      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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs)) {
        return super.equals(obj);
      }
      com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs other = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs) obj;

      if (!getIDList()
          .equals(other.getIDList())) return false;
      if (!getProbList()
          .equals(other.getProbList())) 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();
      if (getIDCount() > 0) {
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getIDList().hashCode();
      }
      if (getProbCount() > 0) {
        hash = (37 * hash) + PROB_FIELD_NUMBER;
        hash = (53 * hash) + getProbList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs 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 recommender.IDProbs}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:recommender.IDProbs)
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_IDProbs_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_IDProbs_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder.class);
      }

      // Construct using com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.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();
        iD_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        prob_ = emptyFloatList();
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_IDProbs_descriptor;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getDefaultInstanceForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.getDefaultInstance();
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs build() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs buildPartial() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs result = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          iD_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.iD_ = iD_;
        if (((bitField0_ & 0x00000002) != 0)) {
          prob_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.prob_ = prob_;
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs) {
          return mergeFrom((com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs other) {
        if (other == com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.getDefaultInstance()) return this;
        if (!other.iD_.isEmpty()) {
          if (iD_.isEmpty()) {
            iD_ = other.iD_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureIDIsMutable();
            iD_.addAll(other.iD_);
          }
          onChanged();
        }
        if (!other.prob_.isEmpty()) {
          if (prob_.isEmpty()) {
            prob_ = other.prob_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureProbIsMutable();
            prob_.addAll(other.prob_);
          }
          onChanged();
        }
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.IntList iD_ = emptyIntList();
      private void ensureIDIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          iD_ = mutableCopy(iD_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @return A list containing the iD.
       */
      public java.util.List<java.lang.Integer>
          getIDList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(iD_) : iD_;
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @return The count of iD.
       */
      public int getIDCount() {
        return iD_.size();
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @param index The index of the element to return.
       * @return The iD at the given index.
       */
      public int getID(int index) {
        return iD_.getInt(index);
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @param index The index to set the value at.
       * @param value The iD to set.
       * @return This builder for chaining.
       */
      public Builder setID(
          int index, int value) {
        ensureIDIsMutable();
        iD_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @param value The iD to add.
       * @return This builder for chaining.
       */
      public Builder addID(int value) {
        ensureIDIsMutable();
        iD_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @param values The iD to add.
       * @return This builder for chaining.
       */
      public Builder addAllID(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureIDIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, iD_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearID() {
        iD_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.FloatList prob_ = emptyFloatList();
      private void ensureProbIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          prob_ = mutableCopy(prob_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @return A list containing the prob.
       */
      public java.util.List<java.lang.Float>
          getProbList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(prob_) : prob_;
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @return The count of prob.
       */
      public int getProbCount() {
        return prob_.size();
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @param index The index of the element to return.
       * @return The prob at the given index.
       */
      public float getProb(int index) {
        return prob_.getFloat(index);
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @param index The index to set the value at.
       * @param value The prob to set.
       * @return This builder for chaining.
       */
      public Builder setProb(
          int index, float value) {
        ensureProbIsMutable();
        prob_.setFloat(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @param value The prob to add.
       * @return This builder for chaining.
       */
      public Builder addProb(float value) {
        ensureProbIsMutable();
        prob_.addFloat(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @param values The prob to add.
       * @return This builder for chaining.
       */
      public Builder addAllProb(
          java.lang.Iterable<? extends java.lang.Float> values) {
        ensureProbIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, prob_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float prob = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearProb() {
        prob_ = emptyFloatList();
        bitField0_ = (bitField0_ & ~0x00000002);
        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:recommender.IDProbs)
    }

    // @@protoc_insertion_point(class_scope:recommender.IDProbs)
    private static final com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs();
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<IDProbs>
        PARSER = new com.google.protobuf.AbstractParser<IDProbs>() {
      @java.lang.Override
      public IDProbs parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new IDProbs(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<IDProbs> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<IDProbs> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RecommendRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:recommender.RecommendRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 recommendNum = 1;</code>
     * @return The recommendNum.
     */
    int getRecommendNum();

    /**
     * <code>int32 candidateNum = 2;</code>
     * @return The candidateNum.
     */
    int getCandidateNum();

    /**
     * <code>repeated int32 ID = 3;</code>
     * @return A list containing the iD.
     */
    java.util.List<java.lang.Integer> getIDList();
    /**
     * <code>repeated int32 ID = 3;</code>
     * @return The count of iD.
     */
    int getIDCount();
    /**
     * <code>repeated int32 ID = 3;</code>
     * @param index The index of the element to return.
     * @return The iD at the given index.
     */
    int getID(int index);
  }
  /**
   * Protobuf type {@code recommender.RecommendRequest}
   */
  public  static final class RecommendRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:recommender.RecommendRequest)
      RecommendRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RecommendRequest.newBuilder() to construct.
    private RecommendRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RecommendRequest() {
      iD_ = emptyIntList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new RecommendRequest();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private RecommendRequest(
        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: {

              recommendNum_ = input.readInt32();
              break;
            }
            case 16: {

              candidateNum_ = input.readInt32();
              break;
            }
            case 24: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                iD_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              iD_.addInt(input.readInt32());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                iD_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                iD_.addInt(input.readInt32());
              }
              input.popLimit(limit);
              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)) {
          iD_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.Builder.class);
    }

    public static final int RECOMMENDNUM_FIELD_NUMBER = 1;
    private int recommendNum_;
    /**
     * <code>int32 recommendNum = 1;</code>
     * @return The recommendNum.
     */
    public int getRecommendNum() {
      return recommendNum_;
    }

    public static final int CANDIDATENUM_FIELD_NUMBER = 2;
    private int candidateNum_;
    /**
     * <code>int32 candidateNum = 2;</code>
     * @return The candidateNum.
     */
    public int getCandidateNum() {
      return candidateNum_;
    }

    public static final int ID_FIELD_NUMBER = 3;
    private com.google.protobuf.Internal.IntList iD_;
    /**
     * <code>repeated int32 ID = 3;</code>
     * @return A list containing the iD.
     */
    public java.util.List<java.lang.Integer>
        getIDList() {
      return iD_;
    }
    /**
     * <code>repeated int32 ID = 3;</code>
     * @return The count of iD.
     */
    public int getIDCount() {
      return iD_.size();
    }
    /**
     * <code>repeated int32 ID = 3;</code>
     * @param index The index of the element to return.
     * @return The iD at the given index.
     */
    public int getID(int index) {
      return iD_.getInt(index);
    }
    private int iDMemoizedSerializedSize = -1;

    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 {
      getSerializedSize();
      if (recommendNum_ != 0) {
        output.writeInt32(1, recommendNum_);
      }
      if (candidateNum_ != 0) {
        output.writeInt32(2, candidateNum_);
      }
      if (getIDList().size() > 0) {
        output.writeUInt32NoTag(26);
        output.writeUInt32NoTag(iDMemoizedSerializedSize);
      }
      for (int i = 0; i < iD_.size(); i++) {
        output.writeInt32NoTag(iD_.getInt(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (recommendNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, recommendNum_);
      }
      if (candidateNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, candidateNum_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < iD_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(iD_.getInt(i));
        }
        size += dataSize;
        if (!getIDList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        iDMemoizedSerializedSize = dataSize;
      }
      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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest)) {
        return super.equals(obj);
      }
      com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest other = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest) obj;

      if (getRecommendNum()
          != other.getRecommendNum()) return false;
      if (getCandidateNum()
          != other.getCandidateNum()) return false;
      if (!getIDList()
          .equals(other.getIDList())) 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) + RECOMMENDNUM_FIELD_NUMBER;
      hash = (53 * hash) + getRecommendNum();
      hash = (37 * hash) + CANDIDATENUM_FIELD_NUMBER;
      hash = (53 * hash) + getCandidateNum();
      if (getIDCount() > 0) {
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getIDList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest 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 recommender.RecommendRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:recommender.RecommendRequest)
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.Builder.class);
      }

      // Construct using com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.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();
        recommendNum_ = 0;

        candidateNum_ = 0;

        iD_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendRequest_descriptor;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest getDefaultInstanceForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest build() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest buildPartial() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest result = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest(this);
        int from_bitField0_ = bitField0_;
        result.recommendNum_ = recommendNum_;
        result.candidateNum_ = candidateNum_;
        if (((bitField0_ & 0x00000001) != 0)) {
          iD_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.iD_ = iD_;
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest) {
          return mergeFrom((com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest other) {
        if (other == com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest.getDefaultInstance()) return this;
        if (other.getRecommendNum() != 0) {
          setRecommendNum(other.getRecommendNum());
        }
        if (other.getCandidateNum() != 0) {
          setCandidateNum(other.getCandidateNum());
        }
        if (!other.iD_.isEmpty()) {
          if (iD_.isEmpty()) {
            iD_ = other.iD_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureIDIsMutable();
            iD_.addAll(other.iD_);
          }
          onChanged();
        }
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int recommendNum_ ;
      /**
       * <code>int32 recommendNum = 1;</code>
       * @return The recommendNum.
       */
      public int getRecommendNum() {
        return recommendNum_;
      }
      /**
       * <code>int32 recommendNum = 1;</code>
       * @param value The recommendNum to set.
       * @return This builder for chaining.
       */
      public Builder setRecommendNum(int value) {
        
        recommendNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 recommendNum = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearRecommendNum() {
        
        recommendNum_ = 0;
        onChanged();
        return this;
      }

      private int candidateNum_ ;
      /**
       * <code>int32 candidateNum = 2;</code>
       * @return The candidateNum.
       */
      public int getCandidateNum() {
        return candidateNum_;
      }
      /**
       * <code>int32 candidateNum = 2;</code>
       * @param value The candidateNum to set.
       * @return This builder for chaining.
       */
      public Builder setCandidateNum(int value) {
        
        candidateNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 candidateNum = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCandidateNum() {
        
        candidateNum_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.IntList iD_ = emptyIntList();
      private void ensureIDIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          iD_ = mutableCopy(iD_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @return A list containing the iD.
       */
      public java.util.List<java.lang.Integer>
          getIDList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(iD_) : iD_;
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @return The count of iD.
       */
      public int getIDCount() {
        return iD_.size();
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @param index The index of the element to return.
       * @return The iD at the given index.
       */
      public int getID(int index) {
        return iD_.getInt(index);
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @param index The index to set the value at.
       * @param value The iD to set.
       * @return This builder for chaining.
       */
      public Builder setID(
          int index, int value) {
        ensureIDIsMutable();
        iD_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @param value The iD to add.
       * @return This builder for chaining.
       */
      public Builder addID(int value) {
        ensureIDIsMutable();
        iD_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @param values The iD to add.
       * @return This builder for chaining.
       */
      public Builder addAllID(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureIDIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, iD_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 ID = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearID() {
        iD_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        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:recommender.RecommendRequest)
    }

    // @@protoc_insertion_point(class_scope:recommender.RecommendRequest)
    private static final com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest();
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<RecommendRequest>
        PARSER = new com.google.protobuf.AbstractParser<RecommendRequest>() {
      @java.lang.Override
      public RecommendRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new RecommendRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<RecommendRequest> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<RecommendRequest> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RecommendIDProbsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:recommender.RecommendIDProbs)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> 
        getIDProbListList();
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getIDProbList(int index);
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    int getIDProbListCount();
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    java.util.List<? extends com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder> 
        getIDProbListOrBuilderList();
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder getIDProbListOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code recommender.RecommendIDProbs}
   */
  public  static final class RecommendIDProbs extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:recommender.RecommendIDProbs)
      RecommendIDProbsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RecommendIDProbs.newBuilder() to construct.
    private RecommendIDProbs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RecommendIDProbs() {
      iDProbList_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new RecommendIDProbs();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private RecommendIDProbs(
        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) != 0)) {
                iDProbList_ = new java.util.ArrayList<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs>();
                mutable_bitField0_ |= 0x00000001;
              }
              iDProbList_.add(
                  input.readMessage(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.parser(), extensionRegistry));
              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)) {
          iDProbList_ = java.util.Collections.unmodifiableList(iDProbList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendIDProbs_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendIDProbs_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.Builder.class);
    }

    public static final int IDPROBLIST_FIELD_NUMBER = 1;
    private java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> iDProbList_;
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    public java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> getIDProbListList() {
      return iDProbList_;
    }
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    public java.util.List<? extends com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder> 
        getIDProbListOrBuilderList() {
      return iDProbList_;
    }
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    public int getIDProbListCount() {
      return iDProbList_.size();
    }
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getIDProbList(int index) {
      return iDProbList_.get(index);
    }
    /**
     * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
     */
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder getIDProbListOrBuilder(
        int index) {
      return iDProbList_.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 < iDProbList_.size(); i++) {
        output.writeMessage(1, iDProbList_.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 < iDProbList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, iDProbList_.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 com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs)) {
        return super.equals(obj);
      }
      com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs other = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs) obj;

      if (!getIDProbListList()
          .equals(other.getIDProbListList())) 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();
      if (getIDProbListCount() > 0) {
        hash = (37 * hash) + IDPROBLIST_FIELD_NUMBER;
        hash = (53 * hash) + getIDProbListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs 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 recommender.RecommendIDProbs}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:recommender.RecommendIDProbs)
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendIDProbs_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendIDProbs_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.Builder.class);
      }

      // Construct using com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getIDProbListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (iDProbListBuilder_ == null) {
          iDProbList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          iDProbListBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_RecommendIDProbs_descriptor;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs getDefaultInstanceForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.getDefaultInstance();
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs build() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs buildPartial() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs result = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs(this);
        int from_bitField0_ = bitField0_;
        if (iDProbListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            iDProbList_ = java.util.Collections.unmodifiableList(iDProbList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.iDProbList_ = iDProbList_;
        } else {
          result.iDProbList_ = iDProbListBuilder_.build();
        }
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs) {
          return mergeFrom((com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs other) {
        if (other == com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs.getDefaultInstance()) return this;
        if (iDProbListBuilder_ == null) {
          if (!other.iDProbList_.isEmpty()) {
            if (iDProbList_.isEmpty()) {
              iDProbList_ = other.iDProbList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureIDProbListIsMutable();
              iDProbList_.addAll(other.iDProbList_);
            }
            onChanged();
          }
        } else {
          if (!other.iDProbList_.isEmpty()) {
            if (iDProbListBuilder_.isEmpty()) {
              iDProbListBuilder_.dispose();
              iDProbListBuilder_ = null;
              iDProbList_ = other.iDProbList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              iDProbListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getIDProbListFieldBuilder() : null;
            } else {
              iDProbListBuilder_.addAllMessages(other.iDProbList_);
            }
          }
        }
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> iDProbList_ =
        java.util.Collections.emptyList();
      private void ensureIDProbListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          iDProbList_ = new java.util.ArrayList<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs>(iDProbList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder> iDProbListBuilder_;

      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> getIDProbListList() {
        if (iDProbListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(iDProbList_);
        } else {
          return iDProbListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public int getIDProbListCount() {
        if (iDProbListBuilder_ == null) {
          return iDProbList_.size();
        } else {
          return iDProbListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs getIDProbList(int index) {
        if (iDProbListBuilder_ == null) {
          return iDProbList_.get(index);
        } else {
          return iDProbListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder setIDProbList(
          int index, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs value) {
        if (iDProbListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureIDProbListIsMutable();
          iDProbList_.set(index, value);
          onChanged();
        } else {
          iDProbListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder setIDProbList(
          int index, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder builderForValue) {
        if (iDProbListBuilder_ == null) {
          ensureIDProbListIsMutable();
          iDProbList_.set(index, builderForValue.build());
          onChanged();
        } else {
          iDProbListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder addIDProbList(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs value) {
        if (iDProbListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureIDProbListIsMutable();
          iDProbList_.add(value);
          onChanged();
        } else {
          iDProbListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder addIDProbList(
          int index, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs value) {
        if (iDProbListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureIDProbListIsMutable();
          iDProbList_.add(index, value);
          onChanged();
        } else {
          iDProbListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder addIDProbList(
          com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder builderForValue) {
        if (iDProbListBuilder_ == null) {
          ensureIDProbListIsMutable();
          iDProbList_.add(builderForValue.build());
          onChanged();
        } else {
          iDProbListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder addIDProbList(
          int index, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder builderForValue) {
        if (iDProbListBuilder_ == null) {
          ensureIDProbListIsMutable();
          iDProbList_.add(index, builderForValue.build());
          onChanged();
        } else {
          iDProbListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder addAllIDProbList(
          java.lang.Iterable<? extends com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs> values) {
        if (iDProbListBuilder_ == null) {
          ensureIDProbListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, iDProbList_);
          onChanged();
        } else {
          iDProbListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder clearIDProbList() {
        if (iDProbListBuilder_ == null) {
          iDProbList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          iDProbListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public Builder removeIDProbList(int index) {
        if (iDProbListBuilder_ == null) {
          ensureIDProbListIsMutable();
          iDProbList_.remove(index);
          onChanged();
        } else {
          iDProbListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder getIDProbListBuilder(
          int index) {
        return getIDProbListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder getIDProbListOrBuilder(
          int index) {
        if (iDProbListBuilder_ == null) {
          return iDProbList_.get(index);  } else {
          return iDProbListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public java.util.List<? extends com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder> 
           getIDProbListOrBuilderList() {
        if (iDProbListBuilder_ != null) {
          return iDProbListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(iDProbList_);
        }
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder addIDProbListBuilder() {
        return getIDProbListFieldBuilder().addBuilder(
            com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.getDefaultInstance());
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder addIDProbListBuilder(
          int index) {
        return getIDProbListFieldBuilder().addBuilder(
            index, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.getDefaultInstance());
      }
      /**
       * <code>repeated .recommender.IDProbs IDProbList = 1;</code>
       */
      public java.util.List<com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder> 
           getIDProbListBuilderList() {
        return getIDProbListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder> 
          getIDProbListFieldBuilder() {
        if (iDProbListBuilder_ == null) {
          iDProbListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbs.Builder, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.IDProbsOrBuilder>(
                  iDProbList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          iDProbList_ = null;
        }
        return iDProbListBuilder_;
      }
      @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:recommender.RecommendIDProbs)
    }

    // @@protoc_insertion_point(class_scope:recommender.RecommendIDProbs)
    private static final com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs();
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<RecommendIDProbs>
        PARSER = new com.google.protobuf.AbstractParser<RecommendIDProbs>() {
      @java.lang.Override
      public RecommendIDProbs parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new RecommendIDProbs(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<RecommendIDProbs> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<RecommendIDProbs> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.RecommendIDProbs getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ServerMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:recommender.ServerMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string str = 1;</code>
     * @return The str.
     */
    java.lang.String getStr();
    /**
     * <code>string str = 1;</code>
     * @return The bytes for str.
     */
    com.google.protobuf.ByteString
        getStrBytes();
  }
  /**
   * Protobuf type {@code recommender.ServerMessage}
   */
  public  static final class ServerMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:recommender.ServerMessage)
      ServerMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ServerMessage.newBuilder() to construct.
    private ServerMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ServerMessage() {
      str_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new ServerMessage();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ServerMessage(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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: {
              java.lang.String s = input.readStringRequireUtf8();

              str_ = s;
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_ServerMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_ServerMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.Builder.class);
    }

    public static final int STR_FIELD_NUMBER = 1;
    private volatile java.lang.Object str_;
    /**
     * <code>string str = 1;</code>
     * @return The str.
     */
    public java.lang.String getStr() {
      java.lang.Object ref = str_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        str_ = s;
        return s;
      }
    }
    /**
     * <code>string str = 1;</code>
     * @return The bytes for str.
     */
    public com.google.protobuf.ByteString
        getStrBytes() {
      java.lang.Object ref = str_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        str_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!getStrBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, str_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getStrBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, str_);
      }
      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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage)) {
        return super.equals(obj);
      }
      com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage other = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage) obj;

      if (!getStr()
          .equals(other.getStr())) 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) + STR_FIELD_NUMBER;
      hash = (53 * hash) + getStr().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage 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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage 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 recommender.ServerMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:recommender.ServerMessage)
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_ServerMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_ServerMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.class, com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.Builder.class);
      }

      // Construct using com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.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();
        str_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.internal_static_recommender_ServerMessage_descriptor;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage getDefaultInstanceForType() {
        return com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.getDefaultInstance();
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage build() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage buildPartial() {
        com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage result = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage(this);
        result.str_ = str_;
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage) {
          return mergeFrom((com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage other) {
        if (other == com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage.getDefaultInstance()) return this;
        if (!other.getStr().isEmpty()) {
          str_ = other.str_;
          onChanged();
        }
        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.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object str_ = "";
      /**
       * <code>string str = 1;</code>
       * @return The str.
       */
      public java.lang.String getStr() {
        java.lang.Object ref = str_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          str_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string str = 1;</code>
       * @return The bytes for str.
       */
      public com.google.protobuf.ByteString
          getStrBytes() {
        java.lang.Object ref = str_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          str_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string str = 1;</code>
       * @param value The str to set.
       * @return This builder for chaining.
       */
      public Builder setStr(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        str_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string str = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStr() {
        
        str_ = getDefaultInstance().getStr();
        onChanged();
        return this;
      }
      /**
       * <code>string str = 1;</code>
       * @param value The bytes for str to set.
       * @return This builder for chaining.
       */
      public Builder setStrBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        str_ = value;
        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:recommender.ServerMessage)
    }

    // @@protoc_insertion_point(class_scope:recommender.ServerMessage)
    private static final com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage();
    }

    public static com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ServerMessage>
        PARSER = new com.google.protobuf.AbstractParser<ServerMessage>() {
      @java.lang.Override
      public ServerMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ServerMessage(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<ServerMessage> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ServerMessage> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.intel.analytics.bigdl.friesian.serving.grpc.generated.recommender.RecommenderProto.ServerMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_recommender_IDProbs_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_recommender_IDProbs_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_recommender_RecommendRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_recommender_RecommendRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_recommender_RecommendIDProbs_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_recommender_RecommendIDProbs_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_recommender_ServerMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_recommender_ServerMessage_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\021recommender.proto\022\013recommender\032\033google" +
      "/protobuf/empty.proto\"#\n\007IDProbs\022\n\n\002ID\030\001" +
      " \003(\005\022\014\n\004prob\030\002 \003(\002\"J\n\020RecommendRequest\022\024" +
      "\n\014recommendNum\030\001 \001(\005\022\024\n\014candidateNum\030\002 \001" +
      "(\005\022\n\n\002ID\030\003 \003(\005\"<\n\020RecommendIDProbs\022(\n\nID" +
      "ProbList\030\001 \003(\0132\024.recommender.IDProbs\"\034\n\r" +
      "ServerMessage\022\013\n\003str\030\001 \001(\t2\260\002\n\013Recommend" +
      "er\022Q\n\017getRecommendIDs\022\035.recommender.Reco" +
      "mmendRequest\032\035.recommender.RecommendIDPr" +
      "obs\"\000\022B\n\ngetMetrics\022\026.google.protobuf.Em" +
      "pty\032\032.recommender.ServerMessage\"\000\022@\n\014res" +
      "etMetrics\022\026.google.protobuf.Empty\032\026.goog" +
      "le.protobuf.Empty\"\000\022H\n\020getClientMetrics\022" +
      "\026.google.protobuf.Empty\032\032.recommender.Se" +
      "rverMessage\"\000B_\nEcom.intel.analytics.big" +
      "dl.friesian.serving.grpc.generated.recom" +
      "menderB\020RecommenderProto\242\002\003RTGb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.EmptyProto.getDescriptor(),
        });
    internal_static_recommender_IDProbs_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_recommender_IDProbs_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_recommender_IDProbs_descriptor,
        new java.lang.String[] { "ID", "Prob", });
    internal_static_recommender_RecommendRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_recommender_RecommendRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_recommender_RecommendRequest_descriptor,
        new java.lang.String[] { "RecommendNum", "CandidateNum", "ID", });
    internal_static_recommender_RecommendIDProbs_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_recommender_RecommendIDProbs_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_recommender_RecommendIDProbs_descriptor,
        new java.lang.String[] { "IDProbList", });
    internal_static_recommender_ServerMessage_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_recommender_ServerMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_recommender_ServerMessage_descriptor,
        new java.lang.String[] { "Str", });
    com.google.protobuf.EmptyProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
