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/common/model.proto
  
  package com.tencent.angel.serving.apis.common;
  
  public final class ModelSpecProtos {
    private ModelSpecProtos() {}
    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 ModelSpecOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.serving.ModelSpec)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <pre>
       * Required servable name.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      java.lang.String getName();
      /**
       * <pre>
       * Required servable name.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      com.google.protobuf.ByteString
          getNameBytes();
  
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      boolean hasVersion();
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      com.google.protobuf.Int64Value getVersion();
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      com.google.protobuf.Int64ValueOrBuilder getVersionOrBuilder();
  
      /**
       * <pre>
       * Use the version associated with the given label.
       * EXPERIMENTAL. DO NOT USE AT THIS TIME.
       * </pre>
       *
       * <code>string version_label = 4;</code>
       */
      java.lang.String getVersionLabel();
      /**
       * <pre>
       * Use the version associated with the given label.
       * EXPERIMENTAL. DO NOT USE AT THIS TIME.
       * </pre>
       *
       * <code>string version_label = 4;</code>
       */
      com.google.protobuf.ByteString
          getVersionLabelBytes();
  
      /**
       * <pre>
       * A named signature to evaluate. If unspecified, the default signature will be used.
       * </pre>
       *
       * <code>string signature_name = 3;</code>
       */
      java.lang.String getSignatureName();
      /**
       * <pre>
       * A named signature to evaluate. If unspecified, the default signature will be used.
       * </pre>
       *
       * <code>string signature_name = 3;</code>
       */
      com.google.protobuf.ByteString
          getSignatureNameBytes();
  
      public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.VersionChoiceCase getVersionChoiceCase();
    }
    /**
     * <pre>
     * Metadata for an inference request such as the model name and version.
     * </pre>
     *
     * Protobuf type {@code angel.serving.ModelSpec}
     */
    public  static final class ModelSpec extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.serving.ModelSpec)
        ModelSpecOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use ModelSpec.newBuilder() to construct.
      private ModelSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private ModelSpec() {
        name_ = "";
        signatureName_ = "";
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private ModelSpec(
          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: {
                java.lang.String s = input.readStringRequireUtf8();
  
                name_ = s;
                break;
              }
              case 18: {
                com.google.protobuf.Int64Value.Builder subBuilder = null;
                if (versionChoiceCase_ == 2) {
                  subBuilder = ((com.google.protobuf.Int64Value) versionChoice_).toBuilder();
                }
                versionChoice_ =
                    input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.google.protobuf.Int64Value) versionChoice_);
                  versionChoice_ = subBuilder.buildPartial();
                }
                versionChoiceCase_ = 2;
                break;
              }
              case 26: {
                java.lang.String s = input.readStringRequireUtf8();
  
                signatureName_ = s;
                break;
              }
              case 34: {
                java.lang.String s = input.readStringRequireUtf8();
                versionChoiceCase_ = 4;
                versionChoice_ = 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 {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.serving.apis.common.ModelSpecProtos.internal_static_angel_serving_ModelSpec_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.serving.apis.common.ModelSpecProtos.internal_static_angel_serving_ModelSpec_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.class, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder.class);
      }
  
      private int versionChoiceCase_ = 0;
      private java.lang.Object versionChoice_;
      public enum VersionChoiceCase
          implements com.google.protobuf.Internal.EnumLite {
        VERSION(2),
        VERSION_LABEL(4),
        VERSIONCHOICE_NOT_SET(0);
        private final int value;
        private VersionChoiceCase(int value) {
          this.value = value;
        }
        /**
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static VersionChoiceCase valueOf(int value) {
          return forNumber(value);
        }
  
        public static VersionChoiceCase forNumber(int value) {
          switch (value) {
            case 2: return VERSION;
            case 4: return VERSION_LABEL;
            case 0: return VERSIONCHOICE_NOT_SET;
            default: return null;
          }
        }
        public int getNumber() {
          return this.value;
        }
      };
  
      public VersionChoiceCase
      getVersionChoiceCase() {
        return VersionChoiceCase.forNumber(
            versionChoiceCase_);
      }
  
      public static final int NAME_FIELD_NUMBER = 1;
      private volatile java.lang.Object name_;
      /**
       * <pre>
       * Required servable name.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        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();
          name_ = s;
          return s;
        }
      }
      /**
       * <pre>
       * Required servable name.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int VERSION_FIELD_NUMBER = 2;
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      public boolean hasVersion() {
        return versionChoiceCase_ == 2;
      }
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      public com.google.protobuf.Int64Value getVersion() {
        if (versionChoiceCase_ == 2) {
           return (com.google.protobuf.Int64Value) versionChoice_;
        }
        return com.google.protobuf.Int64Value.getDefaultInstance();
      }
      /**
       * <pre>
       * Use this specific version number.
       * </pre>
       *
       * <code>.google.protobuf.Int64Value version = 2;</code>
       */
      public com.google.protobuf.Int64ValueOrBuilder getVersionOrBuilder() {
        if (versionChoiceCase_ == 2) {
           return (com.google.protobuf.Int64Value) versionChoice_;
        }
        return com.google.protobuf.Int64Value.getDefaultInstance();
      }
  
      public static final int VERSION_LABEL_FIELD_NUMBER = 4;
      /**
       * <pre>
       * Use the version associated with the given label.
       * EXPERIMENTAL. DO NOT USE AT THIS TIME.
       * </pre>
       *
       * <code>string version_label = 4;</code>
       */
      public java.lang.String getVersionLabel() {
        java.lang.Object ref = "";
        if (versionChoiceCase_ == 4) {
          ref = versionChoice_;
        }
        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();
          if (versionChoiceCase_ == 4) {
            versionChoice_ = s;
          }
          return s;
        }
      }
      /**
       * <pre>
       * Use the version associated with the given label.
       * EXPERIMENTAL. DO NOT USE AT THIS TIME.
       * </pre>
       *
       * <code>string version_label = 4;</code>
       */
      public com.google.protobuf.ByteString
          getVersionLabelBytes() {
        java.lang.Object ref = "";
        if (versionChoiceCase_ == 4) {
          ref = versionChoice_;
        }
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          if (versionChoiceCase_ == 4) {
            versionChoice_ = b;
          }
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int SIGNATURE_NAME_FIELD_NUMBER = 3;
      private volatile java.lang.Object signatureName_;
      /**
       * <pre>
       * A named signature to evaluate. If unspecified, the default signature will be used.
       * </pre>
       *
       * <code>string signature_name = 3;</code>
       */
      public java.lang.String getSignatureName() {
        java.lang.Object ref = signatureName_;
        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();
          signatureName_ = s;
          return s;
        }
      }
      /**
       * <pre>
       * A named signature to evaluate. If unspecified, the default signature will be used.
       * </pre>
       *
       * <code>string signature_name = 3;</code>
       */
      public com.google.protobuf.ByteString
          getSignatureNameBytes() {
        java.lang.Object ref = signatureName_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          signatureName_ = 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 (!getNameBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
        }
        if (versionChoiceCase_ == 2) {
          output.writeMessage(2, (com.google.protobuf.Int64Value) versionChoice_);
        }
        if (!getSignatureNameBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signatureName_);
        }
        if (versionChoiceCase_ == 4) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 4, versionChoice_);
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (!getNameBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
        }
        if (versionChoiceCase_ == 2) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, (com.google.protobuf.Int64Value) versionChoice_);
        }
        if (!getSignatureNameBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signatureName_);
        }
        if (versionChoiceCase_ == 4) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, versionChoice_);
        }
        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.common.ModelSpecProtos.ModelSpec)) {
          return super.equals(obj);
        }
        com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec other = (com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec) obj;
  
        boolean result = true;
        result = result && getName()
            .equals(other.getName());
        result = result && getSignatureName()
            .equals(other.getSignatureName());
        result = result && getVersionChoiceCase().equals(
            other.getVersionChoiceCase());
        if (!result) return false;
        switch (versionChoiceCase_) {
          case 2:
            result = result && getVersion()
                .equals(other.getVersion());
            break;
          case 4:
            result = result && getVersionLabel()
                .equals(other.getVersionLabel());
            break;
          case 0:
          default:
        }
        result = result && unknownFields.equals(other.unknownFields);
        return result;
      }
  
      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
        hash = (37 * hash) + SIGNATURE_NAME_FIELD_NUMBER;
        hash = (53 * hash) + getSignatureName().hashCode();
        switch (versionChoiceCase_) {
          case 2:
            hash = (37 * hash) + VERSION_FIELD_NUMBER;
            hash = (53 * hash) + getVersion().hashCode();
            break;
          case 4:
            hash = (37 * hash) + VERSION_LABEL_FIELD_NUMBER;
            hash = (53 * hash) + getVersionLabel().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec 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.common.ModelSpecProtos.ModelSpec 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;
      }
      /**
       * <pre>
       * Metadata for an inference request such as the model name and version.
       * </pre>
       *
       * Protobuf type {@code angel.serving.ModelSpec}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.serving.ModelSpec)
          com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpecOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.serving.apis.common.ModelSpecProtos.internal_static_angel_serving_ModelSpec_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.serving.apis.common.ModelSpecProtos.internal_static_angel_serving_ModelSpec_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.class, com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.Builder.class);
        }
  
        // Construct using com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
  
        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        public Builder clear() {
          super.clear();
          name_ = "";
  
          signatureName_ = "";
  
          versionChoiceCase_ = 0;
          versionChoice_ = null;
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.serving.apis.common.ModelSpecProtos.internal_static_angel_serving_ModelSpec_descriptor;
        }
  
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getDefaultInstanceForType() {
          return com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.getDefaultInstance();
        }
  
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec build() {
          com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec buildPartial() {
          com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec result = new com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec(this);
          result.name_ = name_;
          if (versionChoiceCase_ == 2) {
            if (versionBuilder_ == null) {
              result.versionChoice_ = versionChoice_;
            } else {
              result.versionChoice_ = versionBuilder_.build();
            }
          }
          if (versionChoiceCase_ == 4) {
            result.versionChoice_ = versionChoice_;
          }
          result.signatureName_ = signatureName_;
          result.versionChoiceCase_ = versionChoiceCase_;
          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.common.ModelSpecProtos.ModelSpec) {
            return mergeFrom((com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec other) {
          if (other == com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec.getDefaultInstance()) return this;
          if (!other.getName().isEmpty()) {
            name_ = other.name_;
            onChanged();
          }
          if (!other.getSignatureName().isEmpty()) {
            signatureName_ = other.signatureName_;
            onChanged();
          }
          switch (other.getVersionChoiceCase()) {
            case VERSION: {
              mergeVersion(other.getVersion());
              break;
            }
            case VERSION_LABEL: {
              versionChoiceCase_ = 4;
              versionChoice_ = other.versionChoice_;
              onChanged();
              break;
            }
            case VERSIONCHOICE_NOT_SET: {
              break;
            }
          }
          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.common.ModelSpecProtos.ModelSpec parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int versionChoiceCase_ = 0;
        private java.lang.Object versionChoice_;
        public VersionChoiceCase
            getVersionChoiceCase() {
          return VersionChoiceCase.forNumber(
              versionChoiceCase_);
        }
  
        public Builder clearVersionChoice() {
          versionChoiceCase_ = 0;
          versionChoice_ = null;
          onChanged();
          return this;
        }
  
  
        private java.lang.Object name_ = "";
        /**
         * <pre>
         * Required servable name.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public java.lang.String getName() {
          java.lang.Object ref = name_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            name_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * Required servable name.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public com.google.protobuf.ByteString
            getNameBytes() {
          java.lang.Object ref = name_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            name_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * Required servable name.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder setName(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    
          name_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Required servable name.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder clearName() {
          
          name_ = getDefaultInstance().getName();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Required servable name.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder setNameBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          
          name_ = value;
          onChanged();
          return this;
        }
  
        private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> versionBuilder_;
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public boolean hasVersion() {
          return versionChoiceCase_ == 2;
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public com.google.protobuf.Int64Value getVersion() {
          if (versionBuilder_ == null) {
            if (versionChoiceCase_ == 2) {
              return (com.google.protobuf.Int64Value) versionChoice_;
            }
            return com.google.protobuf.Int64Value.getDefaultInstance();
          } else {
            if (versionChoiceCase_ == 2) {
              return versionBuilder_.getMessage();
            }
            return com.google.protobuf.Int64Value.getDefaultInstance();
          }
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public Builder setVersion(com.google.protobuf.Int64Value value) {
          if (versionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            versionChoice_ = value;
            onChanged();
          } else {
            versionBuilder_.setMessage(value);
          }
          versionChoiceCase_ = 2;
          return this;
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public Builder setVersion(
            com.google.protobuf.Int64Value.Builder builderForValue) {
          if (versionBuilder_ == null) {
            versionChoice_ = builderForValue.build();
            onChanged();
          } else {
            versionBuilder_.setMessage(builderForValue.build());
          }
          versionChoiceCase_ = 2;
          return this;
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public Builder mergeVersion(com.google.protobuf.Int64Value value) {
          if (versionBuilder_ == null) {
            if (versionChoiceCase_ == 2 &&
                versionChoice_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
              versionChoice_ = com.google.protobuf.Int64Value.newBuilder((com.google.protobuf.Int64Value) versionChoice_)
                  .mergeFrom(value).buildPartial();
            } else {
              versionChoice_ = value;
            }
            onChanged();
          } else {
            if (versionChoiceCase_ == 2) {
              versionBuilder_.mergeFrom(value);
            }
            versionBuilder_.setMessage(value);
          }
          versionChoiceCase_ = 2;
          return this;
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public Builder clearVersion() {
          if (versionBuilder_ == null) {
            if (versionChoiceCase_ == 2) {
              versionChoiceCase_ = 0;
              versionChoice_ = null;
              onChanged();
            }
          } else {
            if (versionChoiceCase_ == 2) {
              versionChoiceCase_ = 0;
              versionChoice_ = null;
            }
            versionBuilder_.clear();
          }
          return this;
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public com.google.protobuf.Int64Value.Builder getVersionBuilder() {
          return getVersionFieldBuilder().getBuilder();
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        public com.google.protobuf.Int64ValueOrBuilder getVersionOrBuilder() {
          if ((versionChoiceCase_ == 2) && (versionBuilder_ != null)) {
            return versionBuilder_.getMessageOrBuilder();
          } else {
            if (versionChoiceCase_ == 2) {
              return (com.google.protobuf.Int64Value) versionChoice_;
            }
            return com.google.protobuf.Int64Value.getDefaultInstance();
          }
        }
        /**
         * <pre>
         * Use this specific version number.
         * </pre>
         *
         * <code>.google.protobuf.Int64Value version = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
            getVersionFieldBuilder() {
          if (versionBuilder_ == null) {
            if (!(versionChoiceCase_ == 2)) {
              versionChoice_ = com.google.protobuf.Int64Value.getDefaultInstance();
            }
            versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
                    (com.google.protobuf.Int64Value) versionChoice_,
                    getParentForChildren(),
                    isClean());
            versionChoice_ = null;
          }
          versionChoiceCase_ = 2;
          onChanged();;
          return versionBuilder_;
        }
  
        /**
         * <pre>
         * Use the version associated with the given label.
         * EXPERIMENTAL. DO NOT USE AT THIS TIME.
         * </pre>
         *
         * <code>string version_label = 4;</code>
         */
        public java.lang.String getVersionLabel() {
          java.lang.Object ref = "";
          if (versionChoiceCase_ == 4) {
            ref = versionChoice_;
          }
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            if (versionChoiceCase_ == 4) {
              versionChoice_ = s;
            }
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * Use the version associated with the given label.
         * EXPERIMENTAL. DO NOT USE AT THIS TIME.
         * </pre>
         *
         * <code>string version_label = 4;</code>
         */
        public com.google.protobuf.ByteString
            getVersionLabelBytes() {
          java.lang.Object ref = "";
          if (versionChoiceCase_ == 4) {
            ref = versionChoice_;
          }
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            if (versionChoiceCase_ == 4) {
              versionChoice_ = b;
            }
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * Use the version associated with the given label.
         * EXPERIMENTAL. DO NOT USE AT THIS TIME.
         * </pre>
         *
         * <code>string version_label = 4;</code>
         */
        public Builder setVersionLabel(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    versionChoiceCase_ = 4;
          versionChoice_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Use the version associated with the given label.
         * EXPERIMENTAL. DO NOT USE AT THIS TIME.
         * </pre>
         *
         * <code>string version_label = 4;</code>
         */
        public Builder clearVersionLabel() {
          if (versionChoiceCase_ == 4) {
            versionChoiceCase_ = 0;
            versionChoice_ = null;
            onChanged();
          }
          return this;
        }
        /**
         * <pre>
         * Use the version associated with the given label.
         * EXPERIMENTAL. DO NOT USE AT THIS TIME.
         * </pre>
         *
         * <code>string version_label = 4;</code>
         */
        public Builder setVersionLabelBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          versionChoiceCase_ = 4;
          versionChoice_ = value;
          onChanged();
          return this;
        }
  
        private java.lang.Object signatureName_ = "";
        /**
         * <pre>
         * A named signature to evaluate. If unspecified, the default signature will be used.
         * </pre>
         *
         * <code>string signature_name = 3;</code>
         */
        public java.lang.String getSignatureName() {
          java.lang.Object ref = signatureName_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            signatureName_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * A named signature to evaluate. If unspecified, the default signature will be used.
         * </pre>
         *
         * <code>string signature_name = 3;</code>
         */
        public com.google.protobuf.ByteString
            getSignatureNameBytes() {
          java.lang.Object ref = signatureName_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            signatureName_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * A named signature to evaluate. If unspecified, the default signature will be used.
         * </pre>
         *
         * <code>string signature_name = 3;</code>
         */
        public Builder setSignatureName(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    
          signatureName_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * A named signature to evaluate. If unspecified, the default signature will be used.
         * </pre>
         *
         * <code>string signature_name = 3;</code>
         */
        public Builder clearSignatureName() {
          
          signatureName_ = getDefaultInstance().getSignatureName();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * A named signature to evaluate. If unspecified, the default signature will be used.
         * </pre>
         *
         * <code>string signature_name = 3;</code>
         */
        public Builder setSignatureNameBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          
          signatureName_ = 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.ModelSpec)
      }
  
      // @@protoc_insertion_point(class_scope:angel.serving.ModelSpec)
      private static final com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec();
      }
  
      public static com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<ModelSpec>
          PARSER = new com.google.protobuf.AbstractParser<ModelSpec>() {
        public ModelSpec parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ModelSpec(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<ModelSpec> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<ModelSpec> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.serving.apis.common.ModelSpecProtos.ModelSpec getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_serving_ModelSpec_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_serving_ModelSpec_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\027apis/common/model.proto\022\rangel.serving" +
        "\032\036google/protobuf/wrappers.proto\"\214\001\n\tMod" +
        "elSpec\022\014\n\004name\030\001 \001(\t\022.\n\007version\030\002 \001(\0132\033." +
        "google.protobuf.Int64ValueH\000\022\027\n\rversion_" +
        "label\030\004 \001(\tH\000\022\026\n\016signature_name\030\003 \001(\tB\020\n" +
        "\016version_choiceB:\n%com.tencent.angel.ser" +
        "ving.apis.commonB\017ModelSpecProtosP\000b\006pro" +
        "to3"
      };
      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.google.protobuf.WrappersProto.getDescriptor(),
          }, assigner);
      internal_static_angel_serving_ModelSpec_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_angel_serving_ModelSpec_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_serving_ModelSpec_descriptor,
          new java.lang.String[] { "Name", "Version", "VersionLabel", "SignatureName", "VersionChoice", });
      com.google.protobuf.WrappersProto.getDescriptor();
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  