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: config/model_server_config.proto
  
  package com.tencent.angel.config;
  
  public final class ModelServerConfigProtos {
    private ModelServerConfigProtos() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistryLite registry) {
    }
  
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
      registerAllExtensions(
          (com.google.protobuf.ExtensionRegistryLite) registry);
    }
    /**
     * <pre>
     * The type of model.
     * TODO(b/31336131): DEPRECATED.
     * </pre>
     *
     * Protobuf enum {@code angel.ModelType}
     */
    public enum ModelType
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>MODEL_TYPE_UNSPECIFIED = 0 [deprecated = true];</code>
       */
      @java.lang.Deprecated
      MODEL_TYPE_UNSPECIFIED(0),
      /**
       * <code>TENSORFLOW = 1 [deprecated = true];</code>
       */
      @java.lang.Deprecated
      TENSORFLOW(1),
      /**
       * <code>OTHER = 2 [deprecated = true];</code>
       */
      @java.lang.Deprecated
      OTHER(2),
      UNRECOGNIZED(-1),
      ;
  
      /**
       * <code>MODEL_TYPE_UNSPECIFIED = 0 [deprecated = true];</code>
       */
      public static final int MODEL_TYPE_UNSPECIFIED_VALUE = 0;
      /**
       * <code>TENSORFLOW = 1 [deprecated = true];</code>
       */
      public static final int TENSORFLOW_VALUE = 1;
      /**
       * <code>OTHER = 2 [deprecated = true];</code>
       */
      public static final int OTHER_VALUE = 2;
  
  
      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }
  
      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ModelType valueOf(int value) {
        return forNumber(value);
      }
  
      public static ModelType forNumber(int value) {
        switch (value) {
          case 0: return MODEL_TYPE_UNSPECIFIED;
          case 1: return TENSORFLOW;
          case 2: return OTHER;
          default: return null;
        }
      }
  
      public static com.google.protobuf.Internal.EnumLiteMap<ModelType>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          ModelType> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<ModelType>() {
              public ModelType findValueByNumber(int number) {
                return ModelType.forNumber(number);
              }
            };
  
      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return com.tencent.angel.config.ModelServerConfigProtos.getDescriptor().getEnumTypes().get(0);
      }
  
      private static final ModelType[] VALUES = values();
  
      public static ModelType valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }
  
      private final int value;
  
      private ModelType(int value) {
        this.value = value;
      }
  
      // @@protoc_insertion_point(enum_scope:angel.ModelType)
    }
  
    public interface ModelConfigOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.ModelConfig)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <pre>
       * Name of the model.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      java.lang.String getName();
      /**
       * <pre>
       * Name of the model.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      com.google.protobuf.ByteString
          getNameBytes();
  
      /**
       * <pre>
       * Base path to the model, excluding the version directory.
       * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
       * base path is /foo/bar/my_model.
       * (This can be changed once a model is in serving, *if* the underlying data
       * remains the same. Otherwise there are no guarantees about whether the old
       * or new data will be used for model versions currently loaded.)
       * </pre>
       *
       * <code>string base_path = 2;</code>
       */
      java.lang.String getBasePath();
      /**
       * <pre>
       * Base path to the model, excluding the version directory.
       * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
       * base path is /foo/bar/my_model.
       * (This can be changed once a model is in serving, *if* the underlying data
       * remains the same. Otherwise there are no guarantees about whether the old
       * or new data will be used for model versions currently loaded.)
       * </pre>
       *
       * <code>string base_path = 2;</code>
       */
      com.google.protobuf.ByteString
          getBasePathBytes();
  
      /**
       * <pre>
       * Type of model.
       * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
       * </pre>
       *
       * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated int getModelTypeValue();
      /**
       * <pre>
       * Type of model.
       * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
       * </pre>
       *
       * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated com.tencent.angel.config.ModelServerConfigProtos.ModelType getModelType();
  
      /**
       * <pre>
       * Type of model (e.g. "tensorflow").
       * (This cannot be changed once a model is in serving.)
       * </pre>
       *
       * <code>string model_platform = 4;</code>
       */
      java.lang.String getModelPlatform();
      /**
       * <pre>
       * Type of model (e.g. "tensorflow").
       * (This cannot be changed once a model is in serving.)
       * </pre>
       *
       * <code>string model_platform = 4;</code>
       */
      com.google.protobuf.ByteString
          getModelPlatformBytes();
  
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      boolean hasModelVersionPolicy();
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy getModelVersionPolicy();
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder getModelVersionPolicyOrBuilder();
  
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
      int getVersionLabelsCount();
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
      boolean containsVersionLabels(
          java.lang.String key);
      /**
       * Use {@link #getVersionLabelsMap()} instead.
       */
      @java.lang.Deprecated
      java.util.Map<java.lang.String, java.lang.Long>
      getVersionLabels();
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
      java.util.Map<java.lang.String, java.lang.Long>
      getVersionLabelsMap();
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      long getVersionLabelsOrDefault(
          java.lang.String key,
          long defaultValue);
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      long getVersionLabelsOrThrow(
          java.lang.String key);
  
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      boolean hasLoggingConfig();
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      com.tencent.angel.config.SamplingConfigProtos.LoggingConfig getLoggingConfig();
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder getLoggingConfigOrBuilder();
    }
    /**
     * <pre>
     * Common configuration for loading a model being served.
     * </pre>
     *
     * Protobuf type {@code angel.ModelConfig}
     */
    public  static final class ModelConfig extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.ModelConfig)
        ModelConfigOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use ModelConfig.newBuilder() to construct.
      private ModelConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private ModelConfig() {
        name_ = "";
        basePath_ = "";
        modelType_ = 0;
        modelPlatform_ = "";
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private ModelConfig(
          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: {
                java.lang.String s = input.readStringRequireUtf8();
  
                basePath_ = s;
                break;
              }
              case 24: {
                int rawValue = input.readEnum();
  
                modelType_ = rawValue;
                break;
              }
              case 34: {
                java.lang.String s = input.readStringRequireUtf8();
  
                modelPlatform_ = s;
                break;
              }
              case 50: {
                com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder subBuilder = null;
                if (loggingConfig_ != null) {
                  subBuilder = loggingConfig_.toBuilder();
                }
                loggingConfig_ = input.readMessage(com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(loggingConfig_);
                  loggingConfig_ = subBuilder.buildPartial();
                }
  
                break;
              }
              case 58: {
                com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder subBuilder = null;
                if (modelVersionPolicy_ != null) {
                  subBuilder = modelVersionPolicy_.toBuilder();
                }
                modelVersionPolicy_ = input.readMessage(com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(modelVersionPolicy_);
                  modelVersionPolicy_ = subBuilder.buildPartial();
                }
  
                break;
              }
              case 66: {
                if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                  versionLabels_ = com.google.protobuf.MapField.newMapField(
                      VersionLabelsDefaultEntryHolder.defaultEntry);
                  mutable_bitField0_ |= 0x00000020;
                }
                com.google.protobuf.MapEntry<java.lang.String, java.lang.Long>
                versionLabels__ = input.readMessage(
                    VersionLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                versionLabels_.getMutableMap().put(
                    versionLabels__.getKey(), versionLabels__.getValue());
                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.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_descriptor;
      }
  
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 8:
            return internalGetVersionLabels();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.class, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder.class);
      }
  
      private int bitField0_;
      public static final int NAME_FIELD_NUMBER = 1;
      private volatile java.lang.Object name_;
      /**
       * <pre>
       * Name of the model.
       * </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>
       * Name of the model.
       * </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 BASE_PATH_FIELD_NUMBER = 2;
      private volatile java.lang.Object basePath_;
      /**
       * <pre>
       * Base path to the model, excluding the version directory.
       * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
       * base path is /foo/bar/my_model.
       * (This can be changed once a model is in serving, *if* the underlying data
       * remains the same. Otherwise there are no guarantees about whether the old
       * or new data will be used for model versions currently loaded.)
       * </pre>
       *
       * <code>string base_path = 2;</code>
       */
      public java.lang.String getBasePath() {
        java.lang.Object ref = basePath_;
        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();
          basePath_ = s;
          return s;
        }
      }
      /**
       * <pre>
       * Base path to the model, excluding the version directory.
       * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
       * base path is /foo/bar/my_model.
       * (This can be changed once a model is in serving, *if* the underlying data
       * remains the same. Otherwise there are no guarantees about whether the old
       * or new data will be used for model versions currently loaded.)
       * </pre>
       *
       * <code>string base_path = 2;</code>
       */
      public com.google.protobuf.ByteString
          getBasePathBytes() {
        java.lang.Object ref = basePath_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          basePath_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int MODEL_TYPE_FIELD_NUMBER = 3;
      private int modelType_;
      /**
       * <pre>
       * Type of model.
       * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
       * </pre>
       *
       * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated public int getModelTypeValue() {
        return modelType_;
      }
      /**
       * <pre>
       * Type of model.
       * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
       * </pre>
       *
       * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
       */
      @java.lang.Deprecated public com.tencent.angel.config.ModelServerConfigProtos.ModelType getModelType() {
        com.tencent.angel.config.ModelServerConfigProtos.ModelType result = com.tencent.angel.config.ModelServerConfigProtos.ModelType.valueOf(modelType_);
        return result == null ? com.tencent.angel.config.ModelServerConfigProtos.ModelType.UNRECOGNIZED : result;
      }
  
      public static final int MODEL_PLATFORM_FIELD_NUMBER = 4;
      private volatile java.lang.Object modelPlatform_;
      /**
       * <pre>
       * Type of model (e.g. "tensorflow").
       * (This cannot be changed once a model is in serving.)
       * </pre>
       *
       * <code>string model_platform = 4;</code>
       */
      public java.lang.String getModelPlatform() {
        java.lang.Object ref = modelPlatform_;
        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();
          modelPlatform_ = s;
          return s;
        }
      }
      /**
       * <pre>
       * Type of model (e.g. "tensorflow").
       * (This cannot be changed once a model is in serving.)
       * </pre>
       *
       * <code>string model_platform = 4;</code>
       */
      public com.google.protobuf.ByteString
          getModelPlatformBytes() {
        java.lang.Object ref = modelPlatform_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          modelPlatform_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int MODEL_VERSION_POLICY_FIELD_NUMBER = 7;
      private com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy modelVersionPolicy_;
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      public boolean hasModelVersionPolicy() {
        return modelVersionPolicy_ != null;
      }
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      public com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy getModelVersionPolicy() {
        return modelVersionPolicy_ == null ? com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.getDefaultInstance() : modelVersionPolicy_;
      }
      /**
       * <pre>
       * Version policy for the model indicating which version(s) of the model to
       * load and make available for serving simultaneously.
       * The default option is to serve only the latest version of the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
       */
      public com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder getModelVersionPolicyOrBuilder() {
        return getModelVersionPolicy();
      }
  
      public static final int VERSION_LABELS_FIELD_NUMBER = 8;
      private static final class VersionLabelsDefaultEntryHolder {
        static final com.google.protobuf.MapEntry<
            java.lang.String, java.lang.Long> defaultEntry =
                com.google.protobuf.MapEntry
                .<java.lang.String, java.lang.Long>newDefaultInstance(
                    com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_VersionLabelsEntry_descriptor, 
                    com.google.protobuf.WireFormat.FieldType.STRING,
                    "",
                    com.google.protobuf.WireFormat.FieldType.INT64,
                    0L);
      }
      private com.google.protobuf.MapField<
          java.lang.String, java.lang.Long> versionLabels_;
      private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
      internalGetVersionLabels() {
        if (versionLabels_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              VersionLabelsDefaultEntryHolder.defaultEntry);
        }
        return versionLabels_;
      }
  
      public int getVersionLabelsCount() {
        return internalGetVersionLabels().getMap().size();
      }
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      public boolean containsVersionLabels(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        return internalGetVersionLabels().getMap().containsKey(key);
      }
      /**
       * Use {@link #getVersionLabelsMap()} instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.Long> getVersionLabels() {
        return getVersionLabelsMap();
      }
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      public java.util.Map<java.lang.String, java.lang.Long> getVersionLabelsMap() {
        return internalGetVersionLabels().getMap();
      }
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      public long getVersionLabelsOrDefault(
          java.lang.String key,
          long defaultValue) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.Long> map =
            internalGetVersionLabels().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * String labels to associate with versions of the model, allowing inference
       * queries to refer to versions by label instead of number. Multiple labels
       * can map to the same version, but not vice-versa.
       * An envisioned use-case for these labels is canarying tentative versions.
       * For example, one can assign labels "stable" and "canary" to two specific
       * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
       * to version 1. Once version 1 passes canary, one can shift the "stable"
       * label to refer to version 1 (at that point both labels map to the same
       * version -- version 1 -- which is fine). Later once version 2 is ready to
       * canary one can move the "canary" label to version 2. And so on.
       * </pre>
       *
       * <code>map&lt;string, int64&gt; version_labels = 8;</code>
       */
  
      public long getVersionLabelsOrThrow(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.Long> map =
            internalGetVersionLabels().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
  
      public static final int LOGGING_CONFIG_FIELD_NUMBER = 6;
      private com.tencent.angel.config.SamplingConfigProtos.LoggingConfig loggingConfig_;
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      public boolean hasLoggingConfig() {
        return loggingConfig_ != null;
      }
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      public com.tencent.angel.config.SamplingConfigProtos.LoggingConfig getLoggingConfig() {
        return loggingConfig_ == null ? com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.getDefaultInstance() : loggingConfig_;
      }
      /**
       * <pre>
       * Configures logging requests and responses, to the model.
       * (This can be changed once a model is in serving.)
       * </pre>
       *
       * <code>.angel.LoggingConfig logging_config = 6;</code>
       */
      public com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
        return getLoggingConfig();
      }
  
      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 (!getBasePathBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, basePath_);
        }
        if (modelType_ != com.tencent.angel.config.ModelServerConfigProtos.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
          output.writeEnum(3, modelType_);
        }
        if (!getModelPlatformBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelPlatform_);
        }
        if (loggingConfig_ != null) {
          output.writeMessage(6, getLoggingConfig());
        }
        if (modelVersionPolicy_ != null) {
          output.writeMessage(7, getModelVersionPolicy());
        }
        com.google.protobuf.GeneratedMessageV3
          .serializeStringMapTo(
            output,
            internalGetVersionLabels(),
            VersionLabelsDefaultEntryHolder.defaultEntry,
            8);
        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 (!getBasePathBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, basePath_);
        }
        if (modelType_ != com.tencent.angel.config.ModelServerConfigProtos.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(3, modelType_);
        }
        if (!getModelPlatformBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelPlatform_);
        }
        if (loggingConfig_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(6, getLoggingConfig());
        }
        if (modelVersionPolicy_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(7, getModelVersionPolicy());
        }
        for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry
             : internalGetVersionLabels().getMap().entrySet()) {
          com.google.protobuf.MapEntry<java.lang.String, java.lang.Long>
          versionLabels__ = VersionLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
          size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(8, versionLabels__);
        }
        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.config.ModelServerConfigProtos.ModelConfig)) {
          return super.equals(obj);
        }
        com.tencent.angel.config.ModelServerConfigProtos.ModelConfig other = (com.tencent.angel.config.ModelServerConfigProtos.ModelConfig) obj;
  
        boolean result = true;
        result = result && getName()
            .equals(other.getName());
        result = result && getBasePath()
            .equals(other.getBasePath());
        result = result && modelType_ == other.modelType_;
        result = result && getModelPlatform()
            .equals(other.getModelPlatform());
        result = result && (hasModelVersionPolicy() == other.hasModelVersionPolicy());
        if (hasModelVersionPolicy()) {
          result = result && getModelVersionPolicy()
              .equals(other.getModelVersionPolicy());
        }
        result = result && internalGetVersionLabels().equals(
            other.internalGetVersionLabels());
        result = result && (hasLoggingConfig() == other.hasLoggingConfig());
        if (hasLoggingConfig()) {
          result = result && getLoggingConfig()
              .equals(other.getLoggingConfig());
        }
        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) + BASE_PATH_FIELD_NUMBER;
        hash = (53 * hash) + getBasePath().hashCode();
        hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + modelType_;
        hash = (37 * hash) + MODEL_PLATFORM_FIELD_NUMBER;
        hash = (53 * hash) + getModelPlatform().hashCode();
        if (hasModelVersionPolicy()) {
          hash = (37 * hash) + MODEL_VERSION_POLICY_FIELD_NUMBER;
          hash = (53 * hash) + getModelVersionPolicy().hashCode();
        }
        if (!internalGetVersionLabels().getMap().isEmpty()) {
          hash = (37 * hash) + VERSION_LABELS_FIELD_NUMBER;
          hash = (53 * hash) + internalGetVersionLabels().hashCode();
        }
        if (hasLoggingConfig()) {
          hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER;
          hash = (53 * hash) + getLoggingConfig().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig 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.config.ModelServerConfigProtos.ModelConfig parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig 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.config.ModelServerConfigProtos.ModelConfig parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig 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.config.ModelServerConfigProtos.ModelConfig parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig 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.config.ModelServerConfigProtos.ModelConfig parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig 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.config.ModelServerConfigProtos.ModelConfig 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>
       * Common configuration for loading a model being served.
       * </pre>
       *
       * Protobuf type {@code angel.ModelConfig}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.ModelConfig)
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_descriptor;
        }
  
        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMapField(
            int number) {
          switch (number) {
            case 8:
              return internalGetVersionLabels();
            default:
              throw new RuntimeException(
                  "Invalid map field number: " + number);
          }
        }
        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMutableMapField(
            int number) {
          switch (number) {
            case 8:
              return internalGetMutableVersionLabels();
            default:
              throw new RuntimeException(
                  "Invalid map field number: " + number);
          }
        }
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.class, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder.class);
        }
  
        // Construct using com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.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_ = "";
  
          basePath_ = "";
  
          modelType_ = 0;
  
          modelPlatform_ = "";
  
          if (modelVersionPolicyBuilder_ == null) {
            modelVersionPolicy_ = null;
          } else {
            modelVersionPolicy_ = null;
            modelVersionPolicyBuilder_ = null;
          }
          internalGetMutableVersionLabels().clear();
          if (loggingConfigBuilder_ == null) {
            loggingConfig_ = null;
          } else {
            loggingConfig_ = null;
            loggingConfigBuilder_ = null;
          }
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfig_descriptor;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getDefaultInstanceForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.getDefaultInstance();
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig build() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfig result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig buildPartial() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfig result = new com.tencent.angel.config.ModelServerConfigProtos.ModelConfig(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          result.name_ = name_;
          result.basePath_ = basePath_;
          result.modelType_ = modelType_;
          result.modelPlatform_ = modelPlatform_;
          if (modelVersionPolicyBuilder_ == null) {
            result.modelVersionPolicy_ = modelVersionPolicy_;
          } else {
            result.modelVersionPolicy_ = modelVersionPolicyBuilder_.build();
          }
          result.versionLabels_ = internalGetVersionLabels();
          result.versionLabels_.makeImmutable();
          if (loggingConfigBuilder_ == null) {
            result.loggingConfig_ = loggingConfig_;
          } else {
            result.loggingConfig_ = loggingConfigBuilder_.build();
          }
          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.config.ModelServerConfigProtos.ModelConfig) {
            return mergeFrom((com.tencent.angel.config.ModelServerConfigProtos.ModelConfig)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.config.ModelServerConfigProtos.ModelConfig other) {
          if (other == com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.getDefaultInstance()) return this;
          if (!other.getName().isEmpty()) {
            name_ = other.name_;
            onChanged();
          }
          if (!other.getBasePath().isEmpty()) {
            basePath_ = other.basePath_;
            onChanged();
          }
          if (other.modelType_ != 0) {
            setModelTypeValue(other.getModelTypeValue());
          }
          if (!other.getModelPlatform().isEmpty()) {
            modelPlatform_ = other.modelPlatform_;
            onChanged();
          }
          if (other.hasModelVersionPolicy()) {
            mergeModelVersionPolicy(other.getModelVersionPolicy());
          }
          internalGetMutableVersionLabels().mergeFrom(
              other.internalGetVersionLabels());
          if (other.hasLoggingConfig()) {
            mergeLoggingConfig(other.getLoggingConfig());
          }
          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.config.ModelServerConfigProtos.ModelConfig parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.config.ModelServerConfigProtos.ModelConfig) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        private java.lang.Object name_ = "";
        /**
         * <pre>
         * Name of the model.
         * </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>
         * Name of the model.
         * </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>
         * Name of the model.
         * </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>
         * Name of the model.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder clearName() {
          
          name_ = getDefaultInstance().getName();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Name of the model.
         * </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 java.lang.Object basePath_ = "";
        /**
         * <pre>
         * Base path to the model, excluding the version directory.
         * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
         * base path is /foo/bar/my_model.
         * (This can be changed once a model is in serving, *if* the underlying data
         * remains the same. Otherwise there are no guarantees about whether the old
         * or new data will be used for model versions currently loaded.)
         * </pre>
         *
         * <code>string base_path = 2;</code>
         */
        public java.lang.String getBasePath() {
          java.lang.Object ref = basePath_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            basePath_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * Base path to the model, excluding the version directory.
         * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
         * base path is /foo/bar/my_model.
         * (This can be changed once a model is in serving, *if* the underlying data
         * remains the same. Otherwise there are no guarantees about whether the old
         * or new data will be used for model versions currently loaded.)
         * </pre>
         *
         * <code>string base_path = 2;</code>
         */
        public com.google.protobuf.ByteString
            getBasePathBytes() {
          java.lang.Object ref = basePath_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            basePath_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * Base path to the model, excluding the version directory.
         * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
         * base path is /foo/bar/my_model.
         * (This can be changed once a model is in serving, *if* the underlying data
         * remains the same. Otherwise there are no guarantees about whether the old
         * or new data will be used for model versions currently loaded.)
         * </pre>
         *
         * <code>string base_path = 2;</code>
         */
        public Builder setBasePath(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    
          basePath_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Base path to the model, excluding the version directory.
         * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
         * base path is /foo/bar/my_model.
         * (This can be changed once a model is in serving, *if* the underlying data
         * remains the same. Otherwise there are no guarantees about whether the old
         * or new data will be used for model versions currently loaded.)
         * </pre>
         *
         * <code>string base_path = 2;</code>
         */
        public Builder clearBasePath() {
          
          basePath_ = getDefaultInstance().getBasePath();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Base path to the model, excluding the version directory.
         * E.g&gt; for a model at /foo/bar/my_model/123, where 123 is the version, the
         * base path is /foo/bar/my_model.
         * (This can be changed once a model is in serving, *if* the underlying data
         * remains the same. Otherwise there are no guarantees about whether the old
         * or new data will be used for model versions currently loaded.)
         * </pre>
         *
         * <code>string base_path = 2;</code>
         */
        public Builder setBasePathBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          
          basePath_ = value;
          onChanged();
          return this;
        }
  
        private int modelType_ = 0;
        /**
         * <pre>
         * Type of model.
         * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
         * </pre>
         *
         * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
         */
        @java.lang.Deprecated public int getModelTypeValue() {
          return modelType_;
        }
        /**
         * <pre>
         * Type of model.
         * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
         * </pre>
         *
         * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
         */
        @java.lang.Deprecated public Builder setModelTypeValue(int value) {
          modelType_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Type of model.
         * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
         * </pre>
         *
         * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
         */
        @java.lang.Deprecated public com.tencent.angel.config.ModelServerConfigProtos.ModelType getModelType() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelType result = com.tencent.angel.config.ModelServerConfigProtos.ModelType.valueOf(modelType_);
          return result == null ? com.tencent.angel.config.ModelServerConfigProtos.ModelType.UNRECOGNIZED : result;
        }
        /**
         * <pre>
         * Type of model.
         * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
         * </pre>
         *
         * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
         */
        @java.lang.Deprecated public Builder setModelType(com.tencent.angel.config.ModelServerConfigProtos.ModelType value) {
          if (value == null) {
            throw new NullPointerException();
          }
          
          modelType_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Type of model.
         * TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
         * </pre>
         *
         * <code>.angel.ModelType model_type = 3 [deprecated = true];</code>
         */
        @java.lang.Deprecated public Builder clearModelType() {
          
          modelType_ = 0;
          onChanged();
          return this;
        }
  
        private java.lang.Object modelPlatform_ = "";
        /**
         * <pre>
         * Type of model (e.g. "tensorflow").
         * (This cannot be changed once a model is in serving.)
         * </pre>
         *
         * <code>string model_platform = 4;</code>
         */
        public java.lang.String getModelPlatform() {
          java.lang.Object ref = modelPlatform_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            modelPlatform_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * Type of model (e.g. "tensorflow").
         * (This cannot be changed once a model is in serving.)
         * </pre>
         *
         * <code>string model_platform = 4;</code>
         */
        public com.google.protobuf.ByteString
            getModelPlatformBytes() {
          java.lang.Object ref = modelPlatform_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            modelPlatform_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * Type of model (e.g. "tensorflow").
         * (This cannot be changed once a model is in serving.)
         * </pre>
         *
         * <code>string model_platform = 4;</code>
         */
        public Builder setModelPlatform(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
    
          modelPlatform_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Type of model (e.g. "tensorflow").
         * (This cannot be changed once a model is in serving.)
         * </pre>
         *
         * <code>string model_platform = 4;</code>
         */
        public Builder clearModelPlatform() {
          
          modelPlatform_ = getDefaultInstance().getModelPlatform();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Type of model (e.g. "tensorflow").
         * (This cannot be changed once a model is in serving.)
         * </pre>
         *
         * <code>string model_platform = 4;</code>
         */
        public Builder setModelPlatformBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
    checkByteStringIsUtf8(value);
          
          modelPlatform_ = value;
          onChanged();
          return this;
        }
  
        private com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy modelVersionPolicy_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder> modelVersionPolicyBuilder_;
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public boolean hasModelVersionPolicy() {
          return modelVersionPolicyBuilder_ != null || modelVersionPolicy_ != null;
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy getModelVersionPolicy() {
          if (modelVersionPolicyBuilder_ == null) {
            return modelVersionPolicy_ == null ? com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.getDefaultInstance() : modelVersionPolicy_;
          } else {
            return modelVersionPolicyBuilder_.getMessage();
          }
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public Builder setModelVersionPolicy(com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy value) {
          if (modelVersionPolicyBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            modelVersionPolicy_ = value;
            onChanged();
          } else {
            modelVersionPolicyBuilder_.setMessage(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public Builder setModelVersionPolicy(
            com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder builderForValue) {
          if (modelVersionPolicyBuilder_ == null) {
            modelVersionPolicy_ = builderForValue.build();
            onChanged();
          } else {
            modelVersionPolicyBuilder_.setMessage(builderForValue.build());
          }
  
          return this;
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public Builder mergeModelVersionPolicy(com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy value) {
          if (modelVersionPolicyBuilder_ == null) {
            if (modelVersionPolicy_ != null) {
              modelVersionPolicy_ =
                com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.newBuilder(modelVersionPolicy_).mergeFrom(value).buildPartial();
            } else {
              modelVersionPolicy_ = value;
            }
            onChanged();
          } else {
            modelVersionPolicyBuilder_.mergeFrom(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public Builder clearModelVersionPolicy() {
          if (modelVersionPolicyBuilder_ == null) {
            modelVersionPolicy_ = null;
            onChanged();
          } else {
            modelVersionPolicy_ = null;
            modelVersionPolicyBuilder_ = null;
          }
  
          return this;
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder getModelVersionPolicyBuilder() {
          
          onChanged();
          return getModelVersionPolicyFieldBuilder().getBuilder();
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        public com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder getModelVersionPolicyOrBuilder() {
          if (modelVersionPolicyBuilder_ != null) {
            return modelVersionPolicyBuilder_.getMessageOrBuilder();
          } else {
            return modelVersionPolicy_ == null ?
                com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.getDefaultInstance() : modelVersionPolicy_;
          }
        }
        /**
         * <pre>
         * Version policy for the model indicating which version(s) of the model to
         * load and make available for serving simultaneously.
         * The default option is to serve only the latest version of the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder> 
            getModelVersionPolicyFieldBuilder() {
          if (modelVersionPolicyBuilder_ == null) {
            modelVersionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder, com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder>(
                    getModelVersionPolicy(),
                    getParentForChildren(),
                    isClean());
            modelVersionPolicy_ = null;
          }
          return modelVersionPolicyBuilder_;
        }
  
        private com.google.protobuf.MapField<
            java.lang.String, java.lang.Long> versionLabels_;
        private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
        internalGetVersionLabels() {
          if (versionLabels_ == null) {
            return com.google.protobuf.MapField.emptyMapField(
                VersionLabelsDefaultEntryHolder.defaultEntry);
          }
          return versionLabels_;
        }
        private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
        internalGetMutableVersionLabels() {
          onChanged();;
          if (versionLabels_ == null) {
            versionLabels_ = com.google.protobuf.MapField.newMapField(
                VersionLabelsDefaultEntryHolder.defaultEntry);
          }
          if (!versionLabels_.isMutable()) {
            versionLabels_ = versionLabels_.copy();
          }
          return versionLabels_;
        }
  
        public int getVersionLabelsCount() {
          return internalGetVersionLabels().getMap().size();
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public boolean containsVersionLabels(
            java.lang.String key) {
          if (key == null) { throw new java.lang.NullPointerException(); }
          return internalGetVersionLabels().getMap().containsKey(key);
        }
        /**
         * Use {@link #getVersionLabelsMap()} instead.
         */
        @java.lang.Deprecated
        public java.util.Map<java.lang.String, java.lang.Long> getVersionLabels() {
          return getVersionLabelsMap();
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public java.util.Map<java.lang.String, java.lang.Long> getVersionLabelsMap() {
          return internalGetVersionLabels().getMap();
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public long getVersionLabelsOrDefault(
            java.lang.String key,
            long defaultValue) {
          if (key == null) { throw new java.lang.NullPointerException(); }
          java.util.Map<java.lang.String, java.lang.Long> map =
              internalGetVersionLabels().getMap();
          return map.containsKey(key) ? map.get(key) : defaultValue;
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public long getVersionLabelsOrThrow(
            java.lang.String key) {
          if (key == null) { throw new java.lang.NullPointerException(); }
          java.util.Map<java.lang.String, java.lang.Long> map =
              internalGetVersionLabels().getMap();
          if (!map.containsKey(key)) {
            throw new java.lang.IllegalArgumentException();
          }
          return map.get(key);
        }
  
        public Builder clearVersionLabels() {
          internalGetMutableVersionLabels().getMutableMap()
              .clear();
          return this;
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public Builder removeVersionLabels(
            java.lang.String key) {
          if (key == null) { throw new java.lang.NullPointerException(); }
          internalGetMutableVersionLabels().getMutableMap()
              .remove(key);
          return this;
        }
        /**
         * Use alternate mutation accessors instead.
         */
        @java.lang.Deprecated
        public java.util.Map<java.lang.String, java.lang.Long>
        getMutableVersionLabels() {
          return internalGetMutableVersionLabels().getMutableMap();
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
        public Builder putVersionLabels(
            java.lang.String key,
            long value) {
          if (key == null) { throw new java.lang.NullPointerException(); }
          
          internalGetMutableVersionLabels().getMutableMap()
              .put(key, value);
          return this;
        }
        /**
         * <pre>
         * String labels to associate with versions of the model, allowing inference
         * queries to refer to versions by label instead of number. Multiple labels
         * can map to the same version, but not vice-versa.
         * An envisioned use-case for these labels is canarying tentative versions.
         * For example, one can assign labels "stable" and "canary" to two specific
         * versions. Perhaps initially "stable" is assigned to version 0 and "canary"
         * to version 1. Once version 1 passes canary, one can shift the "stable"
         * label to refer to version 1 (at that point both labels map to the same
         * version -- version 1 -- which is fine). Later once version 2 is ready to
         * canary one can move the "canary" label to version 2. And so on.
         * </pre>
         *
         * <code>map&lt;string, int64&gt; version_labels = 8;</code>
         */
  
        public Builder putAllVersionLabels(
            java.util.Map<java.lang.String, java.lang.Long> values) {
          internalGetMutableVersionLabels().getMutableMap()
              .putAll(values);
          return this;
        }
  
        private com.tencent.angel.config.SamplingConfigProtos.LoggingConfig loggingConfig_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.SamplingConfigProtos.LoggingConfig, com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder, com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder> loggingConfigBuilder_;
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public boolean hasLoggingConfig() {
          return loggingConfigBuilder_ != null || loggingConfig_ != null;
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public com.tencent.angel.config.SamplingConfigProtos.LoggingConfig getLoggingConfig() {
          if (loggingConfigBuilder_ == null) {
            return loggingConfig_ == null ? com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.getDefaultInstance() : loggingConfig_;
          } else {
            return loggingConfigBuilder_.getMessage();
          }
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public Builder setLoggingConfig(com.tencent.angel.config.SamplingConfigProtos.LoggingConfig value) {
          if (loggingConfigBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            loggingConfig_ = value;
            onChanged();
          } else {
            loggingConfigBuilder_.setMessage(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public Builder setLoggingConfig(
            com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder builderForValue) {
          if (loggingConfigBuilder_ == null) {
            loggingConfig_ = builderForValue.build();
            onChanged();
          } else {
            loggingConfigBuilder_.setMessage(builderForValue.build());
          }
  
          return this;
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public Builder mergeLoggingConfig(com.tencent.angel.config.SamplingConfigProtos.LoggingConfig value) {
          if (loggingConfigBuilder_ == null) {
            if (loggingConfig_ != null) {
              loggingConfig_ =
                com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial();
            } else {
              loggingConfig_ = value;
            }
            onChanged();
          } else {
            loggingConfigBuilder_.mergeFrom(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public Builder clearLoggingConfig() {
          if (loggingConfigBuilder_ == null) {
            loggingConfig_ = null;
            onChanged();
          } else {
            loggingConfig_ = null;
            loggingConfigBuilder_ = null;
          }
  
          return this;
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder getLoggingConfigBuilder() {
          
          onChanged();
          return getLoggingConfigFieldBuilder().getBuilder();
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        public com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
          if (loggingConfigBuilder_ != null) {
            return loggingConfigBuilder_.getMessageOrBuilder();
          } else {
            return loggingConfig_ == null ?
                com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.getDefaultInstance() : loggingConfig_;
          }
        }
        /**
         * <pre>
         * Configures logging requests and responses, to the model.
         * (This can be changed once a model is in serving.)
         * </pre>
         *
         * <code>.angel.LoggingConfig logging_config = 6;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.SamplingConfigProtos.LoggingConfig, com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder, com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder> 
            getLoggingConfigFieldBuilder() {
          if (loggingConfigBuilder_ == null) {
            loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.config.SamplingConfigProtos.LoggingConfig, com.tencent.angel.config.SamplingConfigProtos.LoggingConfig.Builder, com.tencent.angel.config.SamplingConfigProtos.LoggingConfigOrBuilder>(
                    getLoggingConfig(),
                    getParentForChildren(),
                    isClean());
            loggingConfig_ = null;
          }
          return loggingConfigBuilder_;
        }
        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.ModelConfig)
      }
  
      // @@protoc_insertion_point(class_scope:angel.ModelConfig)
      private static final com.tencent.angel.config.ModelServerConfigProtos.ModelConfig DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.config.ModelServerConfigProtos.ModelConfig();
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<ModelConfig>
          PARSER = new com.google.protobuf.AbstractParser<ModelConfig>() {
        public ModelConfig parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ModelConfig(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<ModelConfig> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<ModelConfig> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    public interface ModelConfigListOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.ModelConfigList)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> 
          getConfigList();
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getConfig(int index);
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      int getConfigCount();
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      java.util.List<? extends com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder> 
          getConfigOrBuilderList();
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder getConfigOrBuilder(
          int index);
    }
    /**
     * <pre>
     * Static list of models to be loaded for serving.
     * </pre>
     *
     * Protobuf type {@code angel.ModelConfigList}
     */
    public  static final class ModelConfigList extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.ModelConfigList)
        ModelConfigListOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use ModelConfigList.newBuilder() to construct.
      private ModelConfigList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private ModelConfigList() {
        config_ = java.util.Collections.emptyList();
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private ModelConfigList(
          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: {
                if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                  config_ = new java.util.ArrayList<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig>();
                  mutable_bitField0_ |= 0x00000001;
                }
                config_.add(
                    input.readMessage(com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.parser(), extensionRegistry));
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
            config_ = java.util.Collections.unmodifiableList(config_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfigList_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfigList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.class, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder.class);
      }
  
      public static final int CONFIG_FIELD_NUMBER = 1;
      private java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> config_;
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      public java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> getConfigList() {
        return config_;
      }
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      public java.util.List<? extends com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder> 
          getConfigOrBuilderList() {
        return config_;
      }
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      public int getConfigCount() {
        return config_.size();
      }
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getConfig(int index) {
        return config_.get(index);
      }
      /**
       * <code>repeated .angel.ModelConfig config = 1;</code>
       */
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder getConfigOrBuilder(
          int index) {
        return config_.get(index);
      }
  
      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 {
        for (int i = 0; i < config_.size(); i++) {
          output.writeMessage(1, config_.get(i));
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        for (int i = 0; i < config_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, config_.get(i));
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }
  
      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList)) {
          return super.equals(obj);
        }
        com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList other = (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) obj;
  
        boolean result = true;
        result = result && getConfigList()
            .equals(other.getConfigList());
        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 (getConfigCount() > 0) {
          hash = (37 * hash) + CONFIG_FIELD_NUMBER;
          hash = (53 * hash) + getConfigList().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList 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.config.ModelServerConfigProtos.ModelConfigList parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList 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.config.ModelServerConfigProtos.ModelConfigList parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList 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.config.ModelServerConfigProtos.ModelConfigList parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList 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.config.ModelServerConfigProtos.ModelConfigList parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList 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.config.ModelServerConfigProtos.ModelConfigList 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>
       * Static list of models to be loaded for serving.
       * </pre>
       *
       * Protobuf type {@code angel.ModelConfigList}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.ModelConfigList)
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfigList_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfigList_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.class, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder.class);
        }
  
        // Construct using com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
  
        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
            getConfigFieldBuilder();
          }
        }
        public Builder clear() {
          super.clear();
          if (configBuilder_ == null) {
            config_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            configBuilder_.clear();
          }
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelConfigList_descriptor;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getDefaultInstanceForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList build() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList buildPartial() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList result = new com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList(this);
          int from_bitField0_ = bitField0_;
          if (configBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
              config_ = java.util.Collections.unmodifiableList(config_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.config_ = config_;
          } else {
            result.config_ = configBuilder_.build();
          }
          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.config.ModelServerConfigProtos.ModelConfigList) {
            return mergeFrom((com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList other) {
          if (other == com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance()) return this;
          if (configBuilder_ == null) {
            if (!other.config_.isEmpty()) {
              if (config_.isEmpty()) {
                config_ = other.config_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureConfigIsMutable();
                config_.addAll(other.config_);
              }
              onChanged();
            }
          } else {
            if (!other.config_.isEmpty()) {
              if (configBuilder_.isEmpty()) {
                configBuilder_.dispose();
                configBuilder_ = null;
                config_ = other.config_;
                bitField0_ = (bitField0_ & ~0x00000001);
                configBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getConfigFieldBuilder() : null;
              } else {
                configBuilder_.addAllMessages(other.config_);
              }
            }
          }
          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.config.ModelServerConfigProtos.ModelConfigList parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        private java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> config_ =
          java.util.Collections.emptyList();
        private void ensureConfigIsMutable() {
          if (!((bitField0_ & 0x00000001) == 0x00000001)) {
            config_ = new java.util.ArrayList<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig>(config_);
            bitField0_ |= 0x00000001;
           }
        }
  
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfig, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder> configBuilder_;
  
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> getConfigList() {
          if (configBuilder_ == null) {
            return java.util.Collections.unmodifiableList(config_);
          } else {
            return configBuilder_.getMessageList();
          }
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public int getConfigCount() {
          if (configBuilder_ == null) {
            return config_.size();
          } else {
            return configBuilder_.getCount();
          }
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig getConfig(int index) {
          if (configBuilder_ == null) {
            return config_.get(index);
          } else {
            return configBuilder_.getMessage(index);
          }
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder setConfig(
            int index, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig value) {
          if (configBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureConfigIsMutable();
            config_.set(index, value);
            onChanged();
          } else {
            configBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder setConfig(
            int index, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder builderForValue) {
          if (configBuilder_ == null) {
            ensureConfigIsMutable();
            config_.set(index, builderForValue.build());
            onChanged();
          } else {
            configBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder addConfig(com.tencent.angel.config.ModelServerConfigProtos.ModelConfig value) {
          if (configBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureConfigIsMutable();
            config_.add(value);
            onChanged();
          } else {
            configBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder addConfig(
            int index, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig value) {
          if (configBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureConfigIsMutable();
            config_.add(index, value);
            onChanged();
          } else {
            configBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder addConfig(
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder builderForValue) {
          if (configBuilder_ == null) {
            ensureConfigIsMutable();
            config_.add(builderForValue.build());
            onChanged();
          } else {
            configBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder addConfig(
            int index, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder builderForValue) {
          if (configBuilder_ == null) {
            ensureConfigIsMutable();
            config_.add(index, builderForValue.build());
            onChanged();
          } else {
            configBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder addAllConfig(
            java.lang.Iterable<? extends com.tencent.angel.config.ModelServerConfigProtos.ModelConfig> values) {
          if (configBuilder_ == null) {
            ensureConfigIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, config_);
            onChanged();
          } else {
            configBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder clearConfig() {
          if (configBuilder_ == null) {
            config_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            configBuilder_.clear();
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public Builder removeConfig(int index) {
          if (configBuilder_ == null) {
            ensureConfigIsMutable();
            config_.remove(index);
            onChanged();
          } else {
            configBuilder_.remove(index);
          }
          return this;
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder getConfigBuilder(
            int index) {
          return getConfigFieldBuilder().getBuilder(index);
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder getConfigOrBuilder(
            int index) {
          if (configBuilder_ == null) {
            return config_.get(index);  } else {
            return configBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public java.util.List<? extends com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder> 
             getConfigOrBuilderList() {
          if (configBuilder_ != null) {
            return configBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(config_);
          }
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder addConfigBuilder() {
          return getConfigFieldBuilder().addBuilder(
              com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.getDefaultInstance());
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder addConfigBuilder(
            int index) {
          return getConfigFieldBuilder().addBuilder(
              index, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.getDefaultInstance());
        }
        /**
         * <code>repeated .angel.ModelConfig config = 1;</code>
         */
        public java.util.List<com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder> 
             getConfigBuilderList() {
          return getConfigFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfig, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder> 
            getConfigFieldBuilder() {
          if (configBuilder_ == null) {
            configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                com.tencent.angel.config.ModelServerConfigProtos.ModelConfig, com.tencent.angel.config.ModelServerConfigProtos.ModelConfig.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigOrBuilder>(
                    config_,
                    ((bitField0_ & 0x00000001) == 0x00000001),
                    getParentForChildren(),
                    isClean());
            config_ = null;
          }
          return configBuilder_;
        }
        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.ModelConfigList)
      }
  
      // @@protoc_insertion_point(class_scope:angel.ModelConfigList)
      private static final com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList();
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<ModelConfigList>
          PARSER = new com.google.protobuf.AbstractParser<ModelConfigList>() {
        public ModelConfigList parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ModelConfigList(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<ModelConfigList> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<ModelConfigList> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    public interface ModelServerConfigOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.ModelServerConfig)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      boolean hasModelConfigList();
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getModelConfigList();
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder getModelConfigListOrBuilder();
  
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      boolean hasCustomModelConfig();
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      com.google.protobuf.Any getCustomModelConfig();
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      com.google.protobuf.AnyOrBuilder getCustomModelConfigOrBuilder();
  
      public com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.ConfigCase getConfigCase();
    }
    /**
     * <pre>
     * ModelServer config.
     * </pre>
     *
     * Protobuf type {@code angel.ModelServerConfig}
     */
    public  static final class ModelServerConfig extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.ModelServerConfig)
        ModelServerConfigOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use ModelServerConfig.newBuilder() to construct.
      private ModelServerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private ModelServerConfig() {
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private ModelServerConfig(
          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.config.ModelServerConfigProtos.ModelConfigList.Builder subBuilder = null;
                if (configCase_ == 1) {
                  subBuilder = ((com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_).toBuilder();
                }
                config_ =
                    input.readMessage(com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_);
                  config_ = subBuilder.buildPartial();
                }
                configCase_ = 1;
                break;
              }
              case 18: {
                com.google.protobuf.Any.Builder subBuilder = null;
                if (configCase_ == 2) {
                  subBuilder = ((com.google.protobuf.Any) config_).toBuilder();
                }
                config_ =
                    input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.google.protobuf.Any) config_);
                  config_ = subBuilder.buildPartial();
                }
                configCase_ = 2;
                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.config.ModelServerConfigProtos.internal_static_angel_ModelServerConfig_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelServerConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.class, com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.Builder.class);
      }
  
      private int configCase_ = 0;
      private java.lang.Object config_;
      public enum ConfigCase
          implements com.google.protobuf.Internal.EnumLite {
        MODEL_CONFIG_LIST(1),
        CUSTOM_MODEL_CONFIG(2),
        CONFIG_NOT_SET(0);
        private final int value;
        private ConfigCase(int value) {
          this.value = value;
        }
        /**
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static ConfigCase valueOf(int value) {
          return forNumber(value);
        }
  
        public static ConfigCase forNumber(int value) {
          switch (value) {
            case 1: return MODEL_CONFIG_LIST;
            case 2: return CUSTOM_MODEL_CONFIG;
            case 0: return CONFIG_NOT_SET;
            default: return null;
          }
        }
        public int getNumber() {
          return this.value;
        }
      };
  
      public ConfigCase
      getConfigCase() {
        return ConfigCase.forNumber(
            configCase_);
      }
  
      public static final int MODEL_CONFIG_LIST_FIELD_NUMBER = 1;
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      public boolean hasModelConfigList() {
        return configCase_ == 1;
      }
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getModelConfigList() {
        if (configCase_ == 1) {
           return (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_;
        }
        return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
      }
      /**
       * <code>.angel.ModelConfigList model_config_list = 1;</code>
       */
      public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder getModelConfigListOrBuilder() {
        if (configCase_ == 1) {
           return (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_;
        }
        return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
      }
  
      public static final int CUSTOM_MODEL_CONFIG_FIELD_NUMBER = 2;
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      public boolean hasCustomModelConfig() {
        return configCase_ == 2;
      }
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      public com.google.protobuf.Any getCustomModelConfig() {
        if (configCase_ == 2) {
           return (com.google.protobuf.Any) config_;
        }
        return com.google.protobuf.Any.getDefaultInstance();
      }
      /**
       * <code>.google.protobuf.Any custom_model_config = 2;</code>
       */
      public com.google.protobuf.AnyOrBuilder getCustomModelConfigOrBuilder() {
        if (configCase_ == 2) {
           return (com.google.protobuf.Any) config_;
        }
        return com.google.protobuf.Any.getDefaultInstance();
      }
  
      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 (configCase_ == 1) {
          output.writeMessage(1, (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_);
        }
        if (configCase_ == 2) {
          output.writeMessage(2, (com.google.protobuf.Any) config_);
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (configCase_ == 1) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_);
        }
        if (configCase_ == 2) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, (com.google.protobuf.Any) config_);
        }
        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.config.ModelServerConfigProtos.ModelServerConfig)) {
          return super.equals(obj);
        }
        com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig other = (com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig) obj;
  
        boolean result = true;
        result = result && getConfigCase().equals(
            other.getConfigCase());
        if (!result) return false;
        switch (configCase_) {
          case 1:
            result = result && getModelConfigList()
                .equals(other.getModelConfigList());
            break;
          case 2:
            result = result && getCustomModelConfig()
                .equals(other.getCustomModelConfig());
            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();
        switch (configCase_) {
          case 1:
            hash = (37 * hash) + MODEL_CONFIG_LIST_FIELD_NUMBER;
            hash = (53 * hash) + getModelConfigList().hashCode();
            break;
          case 2:
            hash = (37 * hash) + CUSTOM_MODEL_CONFIG_FIELD_NUMBER;
            hash = (53 * hash) + getCustomModelConfig().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig 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.config.ModelServerConfigProtos.ModelServerConfig parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig 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.config.ModelServerConfigProtos.ModelServerConfig parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig 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.config.ModelServerConfigProtos.ModelServerConfig parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig 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.config.ModelServerConfigProtos.ModelServerConfig parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig 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.config.ModelServerConfigProtos.ModelServerConfig 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>
       * ModelServer config.
       * </pre>
       *
       * Protobuf type {@code angel.ModelServerConfig}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.ModelServerConfig)
          com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfigOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelServerConfig_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelServerConfig_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.class, com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.Builder.class);
        }
  
        // Construct using com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.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();
          configCase_ = 0;
          config_ = null;
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.internal_static_angel_ModelServerConfig_descriptor;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig getDefaultInstanceForType() {
          return com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.getDefaultInstance();
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig build() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig buildPartial() {
          com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig result = new com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig(this);
          if (configCase_ == 1) {
            if (modelConfigListBuilder_ == null) {
              result.config_ = config_;
            } else {
              result.config_ = modelConfigListBuilder_.build();
            }
          }
          if (configCase_ == 2) {
            if (customModelConfigBuilder_ == null) {
              result.config_ = config_;
            } else {
              result.config_ = customModelConfigBuilder_.build();
            }
          }
          result.configCase_ = configCase_;
          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.config.ModelServerConfigProtos.ModelServerConfig) {
            return mergeFrom((com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig other) {
          if (other == com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig.getDefaultInstance()) return this;
          switch (other.getConfigCase()) {
            case MODEL_CONFIG_LIST: {
              mergeModelConfigList(other.getModelConfigList());
              break;
            }
            case CUSTOM_MODEL_CONFIG: {
              mergeCustomModelConfig(other.getCustomModelConfig());
              break;
            }
            case CONFIG_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.config.ModelServerConfigProtos.ModelServerConfig parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int configCase_ = 0;
        private java.lang.Object config_;
        public ConfigCase
            getConfigCase() {
          return ConfigCase.forNumber(
              configCase_);
        }
  
        public Builder clearConfig() {
          configCase_ = 0;
          config_ = null;
          onChanged();
          return this;
        }
  
  
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder> modelConfigListBuilder_;
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public boolean hasModelConfigList() {
          return configCase_ == 1;
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList getModelConfigList() {
          if (modelConfigListBuilder_ == null) {
            if (configCase_ == 1) {
              return (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_;
            }
            return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
          } else {
            if (configCase_ == 1) {
              return modelConfigListBuilder_.getMessage();
            }
            return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
          }
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public Builder setModelConfigList(com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList value) {
          if (modelConfigListBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            config_ = value;
            onChanged();
          } else {
            modelConfigListBuilder_.setMessage(value);
          }
          configCase_ = 1;
          return this;
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public Builder setModelConfigList(
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder builderForValue) {
          if (modelConfigListBuilder_ == null) {
            config_ = builderForValue.build();
            onChanged();
          } else {
            modelConfigListBuilder_.setMessage(builderForValue.build());
          }
          configCase_ = 1;
          return this;
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public Builder mergeModelConfigList(com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList value) {
          if (modelConfigListBuilder_ == null) {
            if (configCase_ == 1 &&
                config_ != com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance()) {
              config_ = com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.newBuilder((com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_)
                  .mergeFrom(value).buildPartial();
            } else {
              config_ = value;
            }
            onChanged();
          } else {
            if (configCase_ == 1) {
              modelConfigListBuilder_.mergeFrom(value);
            }
            modelConfigListBuilder_.setMessage(value);
          }
          configCase_ = 1;
          return this;
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public Builder clearModelConfigList() {
          if (modelConfigListBuilder_ == null) {
            if (configCase_ == 1) {
              configCase_ = 0;
              config_ = null;
              onChanged();
            }
          } else {
            if (configCase_ == 1) {
              configCase_ = 0;
              config_ = null;
            }
            modelConfigListBuilder_.clear();
          }
          return this;
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder getModelConfigListBuilder() {
          return getModelConfigListFieldBuilder().getBuilder();
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        public com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder getModelConfigListOrBuilder() {
          if ((configCase_ == 1) && (modelConfigListBuilder_ != null)) {
            return modelConfigListBuilder_.getMessageOrBuilder();
          } else {
            if (configCase_ == 1) {
              return (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_;
            }
            return com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
          }
        }
        /**
         * <code>.angel.ModelConfigList model_config_list = 1;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder> 
            getModelConfigListFieldBuilder() {
          if (modelConfigListBuilder_ == null) {
            if (!(configCase_ == 1)) {
              config_ = com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.getDefaultInstance();
            }
            modelConfigListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList.Builder, com.tencent.angel.config.ModelServerConfigProtos.ModelConfigListOrBuilder>(
                    (com.tencent.angel.config.ModelServerConfigProtos.ModelConfigList) config_,
                    getParentForChildren(),
                    isClean());
            config_ = null;
          }
          configCase_ = 1;
          onChanged();;
          return modelConfigListBuilder_;
        }
  
        private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> customModelConfigBuilder_;
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public boolean hasCustomModelConfig() {
          return configCase_ == 2;
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public com.google.protobuf.Any getCustomModelConfig() {
          if (customModelConfigBuilder_ == null) {
            if (configCase_ == 2) {
              return (com.google.protobuf.Any) config_;
            }
            return com.google.protobuf.Any.getDefaultInstance();
          } else {
            if (configCase_ == 2) {
              return customModelConfigBuilder_.getMessage();
            }
            return com.google.protobuf.Any.getDefaultInstance();
          }
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public Builder setCustomModelConfig(com.google.protobuf.Any value) {
          if (customModelConfigBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            config_ = value;
            onChanged();
          } else {
            customModelConfigBuilder_.setMessage(value);
          }
          configCase_ = 2;
          return this;
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public Builder setCustomModelConfig(
            com.google.protobuf.Any.Builder builderForValue) {
          if (customModelConfigBuilder_ == null) {
            config_ = builderForValue.build();
            onChanged();
          } else {
            customModelConfigBuilder_.setMessage(builderForValue.build());
          }
          configCase_ = 2;
          return this;
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public Builder mergeCustomModelConfig(com.google.protobuf.Any value) {
          if (customModelConfigBuilder_ == null) {
            if (configCase_ == 2 &&
                config_ != com.google.protobuf.Any.getDefaultInstance()) {
              config_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) config_)
                  .mergeFrom(value).buildPartial();
            } else {
              config_ = value;
            }
            onChanged();
          } else {
            if (configCase_ == 2) {
              customModelConfigBuilder_.mergeFrom(value);
            }
            customModelConfigBuilder_.setMessage(value);
          }
          configCase_ = 2;
          return this;
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public Builder clearCustomModelConfig() {
          if (customModelConfigBuilder_ == null) {
            if (configCase_ == 2) {
              configCase_ = 0;
              config_ = null;
              onChanged();
            }
          } else {
            if (configCase_ == 2) {
              configCase_ = 0;
              config_ = null;
            }
            customModelConfigBuilder_.clear();
          }
          return this;
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public com.google.protobuf.Any.Builder getCustomModelConfigBuilder() {
          return getCustomModelConfigFieldBuilder().getBuilder();
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        public com.google.protobuf.AnyOrBuilder getCustomModelConfigOrBuilder() {
          if ((configCase_ == 2) && (customModelConfigBuilder_ != null)) {
            return customModelConfigBuilder_.getMessageOrBuilder();
          } else {
            if (configCase_ == 2) {
              return (com.google.protobuf.Any) config_;
            }
            return com.google.protobuf.Any.getDefaultInstance();
          }
        }
        /**
         * <code>.google.protobuf.Any custom_model_config = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
            getCustomModelConfigFieldBuilder() {
          if (customModelConfigBuilder_ == null) {
            if (!(configCase_ == 2)) {
              config_ = com.google.protobuf.Any.getDefaultInstance();
            }
            customModelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                    (com.google.protobuf.Any) config_,
                    getParentForChildren(),
                    isClean());
            config_ = null;
          }
          configCase_ = 2;
          onChanged();;
          return customModelConfigBuilder_;
        }
        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.ModelServerConfig)
      }
  
      // @@protoc_insertion_point(class_scope:angel.ModelServerConfig)
      private static final com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig();
      }
  
      public static com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<ModelServerConfig>
          PARSER = new com.google.protobuf.AbstractParser<ModelServerConfig>() {
        public ModelServerConfig parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ModelServerConfig(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<ModelServerConfig> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<ModelServerConfig> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.config.ModelServerConfigProtos.ModelServerConfig getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_ModelConfig_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_ModelConfig_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_ModelConfig_VersionLabelsEntry_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_ModelConfig_VersionLabelsEntry_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_ModelConfigList_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_ModelConfigList_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_ModelServerConfig_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_ModelServerConfig_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 config/model_server_config.proto\022\005ange" +
        "l\032\031google/protobuf/any.proto\032\033config/log" +
        "ging_config.proto\032,config/file_system_st" +
        "orage_path_source.proto\"\367\002\n\013ModelConfig\022" +
        "\014\n\004name\030\001 \001(\t\022\021\n\tbase_path\030\002 \001(\t\022(\n\nmode" +
        "l_type\030\003 \001(\0162\020.angel.ModelTypeB\002\030\001\022\026\n\016mo" +
        "del_platform\030\004 \001(\t\022\\\n\024model_version_poli" +
        "cy\030\007 \001(\0132>.angel.FileSystemStoragePathSo" +
        "urceConfig.ServableVersionPolicy\022=\n\016vers" +
        "ion_labels\030\010 \003(\0132%.angel.ModelConfig.Ver" +
        "sionLabelsEntry\022,\n\016logging_config\030\006 \001(\0132" +
        "\024.angel.LoggingConfig\0324\n\022VersionLabelsEn" +
        "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001J\004\010\005\020" +
        "\006\"5\n\017ModelConfigList\022\"\n\006config\030\001 \003(\0132\022.a" +
        "ngel.ModelConfig\"\207\001\n\021ModelServerConfig\0223" +
        "\n\021model_config_list\030\001 \001(\0132\026.angel.ModelC" +
        "onfigListH\000\0223\n\023custom_model_config\030\002 \001(\013" +
        "2\024.google.protobuf.AnyH\000B\010\n\006config*N\n\tMo" +
        "delType\022\036\n\026MODEL_TYPE_UNSPECIFIED\020\000\032\002\010\001\022" +
        "\022\n\nTENSORFLOW\020\001\032\002\010\001\022\r\n\005OTHER\020\002\032\002\010\001B5\n\030co" +
        "m.tencent.angel.configB\027ModelServerConfi" +
        "gProtosP\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.google.protobuf.AnyProto.getDescriptor(),
            com.tencent.angel.config.SamplingConfigProtos.getDescriptor(),
            com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.getDescriptor(),
          }, assigner);
      internal_static_angel_ModelConfig_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_angel_ModelConfig_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_ModelConfig_descriptor,
          new java.lang.String[] { "Name", "BasePath", "ModelType", "ModelPlatform", "ModelVersionPolicy", "VersionLabels", "LoggingConfig", });
      internal_static_angel_ModelConfig_VersionLabelsEntry_descriptor =
        internal_static_angel_ModelConfig_descriptor.getNestedTypes().get(0);
      internal_static_angel_ModelConfig_VersionLabelsEntry_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_ModelConfig_VersionLabelsEntry_descriptor,
          new java.lang.String[] { "Key", "Value", });
      internal_static_angel_ModelConfigList_descriptor =
        getDescriptor().getMessageTypes().get(1);
      internal_static_angel_ModelConfigList_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_ModelConfigList_descriptor,
          new java.lang.String[] { "Config", });
      internal_static_angel_ModelServerConfig_descriptor =
        getDescriptor().getMessageTypes().get(2);
      internal_static_angel_ModelServerConfig_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_ModelServerConfig_descriptor,
          new java.lang.String[] { "ModelConfigList", "CustomModelConfig", "Config", });
      com.google.protobuf.AnyProto.getDescriptor();
      com.tencent.angel.config.SamplingConfigProtos.getDescriptor();
      com.tencent.angel.config.FileSystemStoragePathSourceConfigProtos.getDescriptor();
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  