content: /*
   * Tencent is pleased to support the open source community by making Angel available.
   *
   * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
   * compliance with the License. You may obtain a copy of the License at
   *
   * https://opensource.org/licenses/Apache-2.0
   *
   * Unless required by applicable law or agreed to in writing, software distributed under the License
   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
   * or implied. See the License for the specific language governing permissions and limitations under
   * the License.
   *
   */
  // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: apis/prediction/response.proto
  
  package com.tencent.angel.serving.apis.prediction;
  
  public final class ResponseProtos {
    private ResponseProtos() {}
    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 ResponseOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.serving.Response)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      boolean hasModelSpec();
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getModelSpec();
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder getModelSpecOrBuilder();
  
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance> 
          getPredictionsList();
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      com.tencent.angel.serving.apis.common.InstanceProtos.Instance getPredictions(int index);
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      int getPredictionsCount();
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      java.util.List<? extends com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder> 
          getPredictionsOrBuilderList();
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder getPredictionsOrBuilder(
          int index);
  
      /**
       * <code>string error = 3;</code>
       */
      java.lang.String getError();
      /**
       * <code>string error = 3;</code>
       */
      com.google.protobuf.ByteString
          getErrorBytes();
    }
    /**
     * Protobuf type {@code angel.serving.Response}
     */
    public  static final class Response extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.serving.Response)
        ResponseOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Response.newBuilder() to construct.
      private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private Response() {
        predictions_ = java.util.Collections.emptyList();
        error_ = "";
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Response(
          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;
              default: {
                if (!parseUnknownFieldProto3(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
              case 10: {
                com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder subBuilder = null;
                if (modelSpec_ != null) {
                  subBuilder = modelSpec_.toBuilder();
                }
                modelSpec_ = input.readMessage(com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(modelSpec_);
                  modelSpec_ = subBuilder.buildPartial();
                }
  
                break;
              }
              case 18: {
                if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                  predictions_ = new java.util.ArrayList<com.tencent.angel.serving.apis.common.InstanceProtos.Instance>();
                  mutable_bitField0_ |= 0x00000002;
                }
                predictions_.add(
                    input.readMessage(com.tencent.angel.serving.apis.common.InstanceProtos.Instance.parser(), extensionRegistry));
                break;
              }
              case 26: {
                java.lang.String s = input.readStringRequireUtf8();
  
                error_ = s;
                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_ & 0x00000002) == 0x00000002)) {
            predictions_ = java.util.Collections.unmodifiableList(predictions_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.serving.apis.prediction.ResponseProtos.internal_static_angel_serving_Response_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.serving.apis.prediction.ResponseProtos.internal_static_angel_serving_Response_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.class, com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.Builder.class);
      }
  
      private int bitField0_;
      public static final int MODEL_SPEC_FIELD_NUMBER = 1;
      private com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec modelSpec_;
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      public boolean hasModelSpec() {
        return modelSpec_ != null;
      }
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getModelSpec() {
        return modelSpec_ == null ? com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.getDefaultInstance() : modelSpec_;
      }
      /**
       * <code>.angel.serving.ModelSpec model_spec = 1;</code>
       */
      public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder getModelSpecOrBuilder() {
        return getModelSpec();
      }
  
      public static final int PREDICTIONS_FIELD_NUMBER = 2;
      private java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance> predictions_;
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      public java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance> getPredictionsList() {
        return predictions_;
      }
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      public java.util.List<? extends com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder> 
          getPredictionsOrBuilderList() {
        return predictions_;
      }
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      public int getPredictionsCount() {
        return predictions_.size();
      }
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      public com.tencent.angel.serving.apis.common.InstanceProtos.Instance getPredictions(int index) {
        return predictions_.get(index);
      }
      /**
       * <code>repeated .angel.serving.Instance predictions = 2;</code>
       */
      public com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder getPredictionsOrBuilder(
          int index) {
        return predictions_.get(index);
      }
  
      public static final int ERROR_FIELD_NUMBER = 3;
      private volatile java.lang.Object error_;
      /**
       * <code>string error = 3;</code>
       */
      public java.lang.String getError() {
        java.lang.Object ref = error_;
        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();
          error_ = s;
          return s;
        }
      }
      /**
       * <code>string error = 3;</code>
       */
      public com.google.protobuf.ByteString
          getErrorBytes() {
        java.lang.Object ref = error_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          error_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;
  
        memoizedIsInitialized = 1;
        return true;
      }
  
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        if (modelSpec_ != null) {
          output.writeMessage(1, getModelSpec());
        }
        for (int i = 0; i < predictions_.size(); i++) {
          output.writeMessage(2, predictions_.get(i));
        }
        if (!getErrorBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_);
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (modelSpec_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, getModelSpec());
        }
        for (int i = 0; i < predictions_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, predictions_.get(i));
        }
        if (!getErrorBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_);
        }
        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.tencent.angel.serving.apis.prediction.ResponseProtos.Response)) {
          return super.equals(obj);
        }
        com.tencent.angel.serving.apis.prediction.ResponseProtos.Response other = (com.tencent.angel.serving.apis.prediction.ResponseProtos.Response) obj;
  
        boolean result = true;
        result = result && (hasModelSpec() == other.hasModelSpec());
        if (hasModelSpec()) {
          result = result && getModelSpec()
              .equals(other.getModelSpec());
        }
        result = result && getPredictionsList()
            .equals(other.getPredictionsList());
        result = result && getError()
            .equals(other.getError());
        result = result && unknownFields.equals(other.unknownFields);
        return result;
      }
  
      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasModelSpec()) {
          hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER;
          hash = (53 * hash) + getModelSpec().hashCode();
        }
        if (getPredictionsCount() > 0) {
          hash = (37 * hash) + PREDICTIONS_FIELD_NUMBER;
          hash = (53 * hash) + getPredictionsList().hashCode();
        }
        hash = (37 * hash) + ERROR_FIELD_NUMBER;
        hash = (53 * hash) + getError().hashCode();
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response 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.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response 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.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }
  
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
      }
      public static Builder newBuilder(com.tencent.angel.serving.apis.prediction.ResponseProtos.Response prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      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 angel.serving.Response}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.serving.Response)
          com.tencent.angel.serving.apis.prediction.ResponseProtos.ResponseOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.serving.apis.prediction.ResponseProtos.internal_static_angel_serving_Response_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.serving.apis.prediction.ResponseProtos.internal_static_angel_serving_Response_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.class, com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.Builder.class);
        }
  
        // Construct using com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
  
        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
            getPredictionsFieldBuilder();
          }
        }
        public Builder clear() {
          super.clear();
          if (modelSpecBuilder_ == null) {
            modelSpec_ = null;
          } else {
            modelSpec_ = null;
            modelSpecBuilder_ = null;
          }
          if (predictionsBuilder_ == null) {
            predictions_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            predictionsBuilder_.clear();
          }
          error_ = "";
  
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.serving.apis.prediction.ResponseProtos.internal_static_angel_serving_Response_descriptor;
        }
  
        public com.tencent.angel.serving.apis.prediction.ResponseProtos.Response getDefaultInstanceForType() {
          return com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.getDefaultInstance();
        }
  
        public com.tencent.angel.serving.apis.prediction.ResponseProtos.Response build() {
          com.tencent.angel.serving.apis.prediction.ResponseProtos.Response result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.serving.apis.prediction.ResponseProtos.Response buildPartial() {
          com.tencent.angel.serving.apis.prediction.ResponseProtos.Response result = new com.tencent.angel.serving.apis.prediction.ResponseProtos.Response(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (modelSpecBuilder_ == null) {
            result.modelSpec_ = modelSpec_;
          } else {
            result.modelSpec_ = modelSpecBuilder_.build();
          }
          if (predictionsBuilder_ == null) {
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
              predictions_ = java.util.Collections.unmodifiableList(predictions_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.predictions_ = predictions_;
          } else {
            result.predictions_ = predictionsBuilder_.build();
          }
          result.error_ = error_;
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
  
        public Builder clone() {
          return (Builder) super.clone();
        }
        public Builder setField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return (Builder) super.setField(field, value);
        }
        public Builder clearField(
            com.google.protobuf.Descriptors.FieldDescriptor field) {
          return (Builder) super.clearField(field);
        }
        public Builder clearOneof(
            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          return (Builder) super.clearOneof(oneof);
        }
        public Builder setRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            int index, java.lang.Object value) {
          return (Builder) super.setRepeatedField(field, index, value);
        }
        public Builder addRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return (Builder) super.addRepeatedField(field, value);
        }
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.tencent.angel.serving.apis.prediction.ResponseProtos.Response) {
            return mergeFrom((com.tencent.angel.serving.apis.prediction.ResponseProtos.Response)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.serving.apis.prediction.ResponseProtos.Response other) {
          if (other == com.tencent.angel.serving.apis.prediction.ResponseProtos.Response.getDefaultInstance()) return this;
          if (other.hasModelSpec()) {
            mergeModelSpec(other.getModelSpec());
          }
          if (predictionsBuilder_ == null) {
            if (!other.predictions_.isEmpty()) {
              if (predictions_.isEmpty()) {
                predictions_ = other.predictions_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensurePredictionsIsMutable();
                predictions_.addAll(other.predictions_);
              }
              onChanged();
            }
          } else {
            if (!other.predictions_.isEmpty()) {
              if (predictionsBuilder_.isEmpty()) {
                predictionsBuilder_.dispose();
                predictionsBuilder_ = null;
                predictions_ = other.predictions_;
                bitField0_ = (bitField0_ & ~0x00000002);
                predictionsBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getPredictionsFieldBuilder() : null;
              } else {
                predictionsBuilder_.addAllMessages(other.predictions_);
              }
            }
          }
          if (!other.getError().isEmpty()) {
            error_ = other.error_;
            onChanged();
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }
  
        public final boolean isInitialized() {
          return true;
        }
  
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.tencent.angel.serving.apis.prediction.ResponseProtos.Response parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.serving.apis.prediction.ResponseProtos.Response) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        private com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec modelSpec_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder> modelSpecBuilder_;
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public boolean hasModelSpec() {
          return modelSpecBuilder_ != null || modelSpec_ != null;
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getModelSpec() {
          if (modelSpecBuilder_ == null) {
            return modelSpec_ == null ? com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.getDefaultInstance() : modelSpec_;
          } else {
            return modelSpecBuilder_.getMessage();
          }
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public Builder setModelSpec(com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec value) {
          if (modelSpecBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            modelSpec_ = value;
            onChanged();
          } else {
            modelSpecBuilder_.setMessage(value);
          }
  
          return this;
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public Builder setModelSpec(
            com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder builderForValue) {
          if (modelSpecBuilder_ == null) {
            modelSpec_ = builderForValue.build();
            onChanged();
          } else {
            modelSpecBuilder_.setMessage(builderForValue.build());
          }
  
          return this;
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public Builder mergeModelSpec(com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec value) {
          if (modelSpecBuilder_ == null) {
            if (modelSpec_ != null) {
              modelSpec_ =
                com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.newBuilder(modelSpec_).mergeFrom(value).buildPartial();
            } else {
              modelSpec_ = value;
            }
            onChanged();
          } else {
            modelSpecBuilder_.mergeFrom(value);
          }
  
          return this;
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public Builder clearModelSpec() {
          if (modelSpecBuilder_ == null) {
            modelSpec_ = null;
            onChanged();
          } else {
            modelSpec_ = null;
            modelSpecBuilder_ = null;
          }
  
          return this;
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder getModelSpecBuilder() {
          
          onChanged();
          return getModelSpecFieldBuilder().getBuilder();
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder getModelSpecOrBuilder() {
          if (modelSpecBuilder_ != null) {
            return modelSpecBuilder_.getMessageOrBuilder();
          } else {
            return modelSpec_ == null ?
                com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.getDefaultInstance() : modelSpec_;
          }
        }
        /**
         * <code>.angel.serving.ModelSpec model_spec = 1;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder> 
            getModelSpecFieldBuilder() {
          if (modelSpecBuilder_ == null) {
            modelSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder>(
                    getModelSpec(),
                    getParentForChildren(),
                    isClean());
            modelSpec_ = null;
          }
          return modelSpecBuilder_;
        }
  
        private java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance> predictions_ =
          java.util.Collections.emptyList();
        private void ensurePredictionsIsMutable() {
          if (!((bitField0_ & 0x00000002) == 0x00000002)) {
            predictions_ = new java.util.ArrayList<com.tencent.angel.serving.apis.common.InstanceProtos.Instance>(predictions_);
            bitField0_ |= 0x00000002;
           }
        }
  
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.tencent.angel.serving.apis.common.InstanceProtos.Instance, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder, com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder> predictionsBuilder_;
  
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance> getPredictionsList() {
          if (predictionsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(predictions_);
          } else {
            return predictionsBuilder_.getMessageList();
          }
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public int getPredictionsCount() {
          if (predictionsBuilder_ == null) {
            return predictions_.size();
          } else {
            return predictionsBuilder_.getCount();
          }
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.InstanceProtos.Instance getPredictions(int index) {
          if (predictionsBuilder_ == null) {
            return predictions_.get(index);
          } else {
            return predictionsBuilder_.getMessage(index);
          }
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder setPredictions(
            int index, com.tencent.angel.serving.apis.common.InstanceProtos.Instance value) {
          if (predictionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensurePredictionsIsMutable();
            predictions_.set(index, value);
            onChanged();
          } else {
            predictionsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder setPredictions(
            int index, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder builderForValue) {
          if (predictionsBuilder_ == null) {
            ensurePredictionsIsMutable();
            predictions_.set(index, builderForValue.build());
            onChanged();
          } else {
            predictionsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder addPredictions(com.tencent.angel.serving.apis.common.InstanceProtos.Instance value) {
          if (predictionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensurePredictionsIsMutable();
            predictions_.add(value);
            onChanged();
          } else {
            predictionsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder addPredictions(
            int index, com.tencent.angel.serving.apis.common.InstanceProtos.Instance value) {
          if (predictionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensurePredictionsIsMutable();
            predictions_.add(index, value);
            onChanged();
          } else {
            predictionsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder addPredictions(
            com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder builderForValue) {
          if (predictionsBuilder_ == null) {
            ensurePredictionsIsMutable();
            predictions_.add(builderForValue.build());
            onChanged();
          } else {
            predictionsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder addPredictions(
            int index, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder builderForValue) {
          if (predictionsBuilder_ == null) {
            ensurePredictionsIsMutable();
            predictions_.add(index, builderForValue.build());
            onChanged();
          } else {
            predictionsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder addAllPredictions(
            java.lang.Iterable<? extends com.tencent.angel.serving.apis.common.InstanceProtos.Instance> values) {
          if (predictionsBuilder_ == null) {
            ensurePredictionsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, predictions_);
            onChanged();
          } else {
            predictionsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder clearPredictions() {
          if (predictionsBuilder_ == null) {
            predictions_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            predictionsBuilder_.clear();
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public Builder removePredictions(int index) {
          if (predictionsBuilder_ == null) {
            ensurePredictionsIsMutable();
            predictions_.remove(index);
            onChanged();
          } else {
            predictionsBuilder_.remove(index);
          }
          return this;
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder getPredictionsBuilder(
            int index) {
          return getPredictionsFieldBuilder().getBuilder(index);
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder getPredictionsOrBuilder(
            int index) {
          if (predictionsBuilder_ == null) {
            return predictions_.get(index);  } else {
            return predictionsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public java.util.List<? extends com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder> 
             getPredictionsOrBuilderList() {
          if (predictionsBuilder_ != null) {
            return predictionsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(predictions_);
          }
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder addPredictionsBuilder() {
          return getPredictionsFieldBuilder().addBuilder(
              com.tencent.angel.serving.apis.common.InstanceProtos.Instance.getDefaultInstance());
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder addPredictionsBuilder(
            int index) {
          return getPredictionsFieldBuilder().addBuilder(
              index, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.getDefaultInstance());
        }
        /**
         * <code>repeated .angel.serving.Instance predictions = 2;</code>
         */
        public java.util.List<com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder> 
             getPredictionsBuilderList() {
          return getPredictionsFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.tencent.angel.serving.apis.common.InstanceProtos.Instance, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder, com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder> 
            getPredictionsFieldBuilder() {
          if (predictionsBuilder_ == null) {
            predictionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                com.tencent.angel.serving.apis.common.InstanceProtos.Instance, com.tencent.angel.serving.apis.common.InstanceProtos.Instance.Builder, com.tencent.angel.serving.apis.common.InstanceProtos.InstanceOrBuilder>(
                    predictions_,
                    ((bitField0_ & 0x00000002) == 0x00000002),
                    getParentForChildren(),
                    isClean());
            predictions_ = null;
          }
          return predictionsBuilder_;
        }
  
        private java.lang.Object error_ = "";
        /**
         * <code>string error = 3;</code>
         */
        public java.lang.String getError() {
          java.lang.Object ref = error_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            error_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <code>string error = 3;</code>
         */
        public com.google.protobuf.ByteString
            getErrorBytes() {
          java.lang.Object ref = error_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            error_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>string error = 3;</code>
         */
        public Builder setError(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    
          error_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>string error = 3;</code>
         */
        public Builder clearError() {
          
          error_ = getDefaultInstance().getError();
          onChanged();
          return this;
        }
        /**
         * <code>string error = 3;</code>
         */
        public Builder setErrorBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          
          error_ = value;
          onChanged();
          return this;
        }
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFieldsProto3(unknownFields);
        }
  
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }
  
  
        // @@protoc_insertion_point(builder_scope:angel.serving.Response)
      }
  
      // @@protoc_insertion_point(class_scope:angel.serving.Response)
      private static final com.tencent.angel.serving.apis.prediction.ResponseProtos.Response DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.serving.apis.prediction.ResponseProtos.Response();
      }
  
      public static com.tencent.angel.serving.apis.prediction.ResponseProtos.Response getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<Response>
          PARSER = new com.google.protobuf.AbstractParser<Response>() {
        public Response parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Response(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<Response> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<Response> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.serving.apis.prediction.ResponseProtos.Response getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_serving_Response_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_serving_Response_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\036apis/prediction/response.proto\022\rangel." +
        "serving\032\032apis/common/instance.proto\032\027api" +
        "s/common/model.proto\"u\n\010Response\022,\n\nmode" +
        "l_spec\030\001 \001(\0132\030.angel.serving.ModelSpec\022," +
        "\n\013predictions\030\002 \003(\0132\027.angel.serving.Inst" +
        "ance\022\r\n\005error\030\003 \001(\tB=\n)com.tencent.angel" +
        ".serving.apis.predictionB\016ResponseProtos" +
        "P\000b\006proto3"
      };
      com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
          new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
            public com.google.protobuf.ExtensionRegistry assignDescriptors(
                com.google.protobuf.Descriptors.FileDescriptor root) {
              descriptor = root;
              return null;
            }
          };
      com.google.protobuf.Descriptors.FileDescriptor
        .internalBuildGeneratedFileFrom(descriptorData,
          new com.google.protobuf.Descriptors.FileDescriptor[] {
            com.tencent.angel.serving.apis.common.InstanceProtos.getDescriptor(),
            com.tencent.angel.serving.apis.common.ModelSpecProtos.getDescriptor(),
          }, assigner);
      internal_static_angel_serving_Response_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_angel_serving_Response_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_serving_Response_descriptor,
          new java.lang.String[] { "ModelSpec", "Predictions", "Error", });
      com.tencent.angel.serving.apis.common.InstanceProtos.getDescriptor();
      com.tencent.angel.serving.apis.common.ModelSpecProtos.getDescriptor();
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  