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: core/graph/versions.proto
  
  package com.tencent.angel.core.graph;
  
  public final class VersionsProtos {
    private VersionsProtos() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistryLite registry) {
    }
  
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
      registerAllExtensions(
          (com.google.protobuf.ExtensionRegistryLite) registry);
    }
    public interface VersionDefOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.VersionDef)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <pre>
       * The version of the code that produced this data.
       * </pre>
       *
       * <code>int32 producer = 1;</code>
       */
      int getProducer();
  
      /**
       * <pre>
       * Any consumer below this version is not allowed to consume this data.
       * </pre>
       *
       * <code>int32 min_consumer = 2;</code>
       */
      int getMinConsumer();
  
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      java.util.List<java.lang.Integer> getBadConsumersList();
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      int getBadConsumersCount();
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      int getBadConsumers(int index);
    }
    /**
     * <pre>
     * Version information for a piece of serialized data
     * There are different types of versions for each type of data
     * (GraphDef, etc.), but they all have the same common shape
     * described here.
     * Each consumer has "consumer" and "min_producer" versions (specified
     * elsewhere).  A consumer is allowed to consume this data if
     *   producer &gt;= min_producer
     *   consumer &gt;= min_consumer
     *   consumer not in bad_consumers
     * </pre>
     *
     * Protobuf type {@code angel.VersionDef}
     */
    public  static final class VersionDef extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.VersionDef)
        VersionDefOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use VersionDef.newBuilder() to construct.
      private VersionDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private VersionDef() {
        producer_ = 0;
        minConsumer_ = 0;
        badConsumers_ = java.util.Collections.emptyList();
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private VersionDef(
          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 8: {
  
                producer_ = input.readInt32();
                break;
              }
              case 16: {
  
                minConsumer_ = input.readInt32();
                break;
              }
              case 24: {
                if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                  badConsumers_ = new java.util.ArrayList<java.lang.Integer>();
                  mutable_bitField0_ |= 0x00000004;
                }
                badConsumers_.add(input.readInt32());
                break;
              }
              case 26: {
                int length = input.readRawVarint32();
                int limit = input.pushLimit(length);
                if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
                  badConsumers_ = new java.util.ArrayList<java.lang.Integer>();
                  mutable_bitField0_ |= 0x00000004;
                }
                while (input.getBytesUntilLimit() > 0) {
                  badConsumers_.add(input.readInt32());
                }
                input.popLimit(limit);
                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_ & 0x00000004) == 0x00000004)) {
            badConsumers_ = java.util.Collections.unmodifiableList(badConsumers_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.core.graph.VersionsProtos.internal_static_angel_VersionDef_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.core.graph.VersionsProtos.internal_static_angel_VersionDef_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.core.graph.VersionsProtos.VersionDef.class, com.tencent.angel.core.graph.VersionsProtos.VersionDef.Builder.class);
      }
  
      private int bitField0_;
      public static final int PRODUCER_FIELD_NUMBER = 1;
      private int producer_;
      /**
       * <pre>
       * The version of the code that produced this data.
       * </pre>
       *
       * <code>int32 producer = 1;</code>
       */
      public int getProducer() {
        return producer_;
      }
  
      public static final int MIN_CONSUMER_FIELD_NUMBER = 2;
      private int minConsumer_;
      /**
       * <pre>
       * Any consumer below this version is not allowed to consume this data.
       * </pre>
       *
       * <code>int32 min_consumer = 2;</code>
       */
      public int getMinConsumer() {
        return minConsumer_;
      }
  
      public static final int BAD_CONSUMERS_FIELD_NUMBER = 3;
      private java.util.List<java.lang.Integer> badConsumers_;
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      public java.util.List<java.lang.Integer>
          getBadConsumersList() {
        return badConsumers_;
      }
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      public int getBadConsumersCount() {
        return badConsumers_.size();
      }
      /**
       * <pre>
       * Specific consumer versions which are disallowed (e.g. due to bugs).
       * </pre>
       *
       * <code>repeated int32 bad_consumers = 3;</code>
       */
      public int getBadConsumers(int index) {
        return badConsumers_.get(index);
      }
      private int badConsumersMemoizedSerializedSize = -1;
  
      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 {
        getSerializedSize();
        if (producer_ != 0) {
          output.writeInt32(1, producer_);
        }
        if (minConsumer_ != 0) {
          output.writeInt32(2, minConsumer_);
        }
        if (getBadConsumersList().size() > 0) {
          output.writeUInt32NoTag(26);
          output.writeUInt32NoTag(badConsumersMemoizedSerializedSize);
        }
        for (int i = 0; i < badConsumers_.size(); i++) {
          output.writeInt32NoTag(badConsumers_.get(i));
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (producer_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt32Size(1, producer_);
        }
        if (minConsumer_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt32Size(2, minConsumer_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < badConsumers_.size(); i++) {
            dataSize += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(badConsumers_.get(i));
          }
          size += dataSize;
          if (!getBadConsumersList().isEmpty()) {
            size += 1;
            size += com.google.protobuf.CodedOutputStream
                .computeInt32SizeNoTag(dataSize);
          }
          badConsumersMemoizedSerializedSize = dataSize;
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }
  
      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.tencent.angel.core.graph.VersionsProtos.VersionDef)) {
          return super.equals(obj);
        }
        com.tencent.angel.core.graph.VersionsProtos.VersionDef other = (com.tencent.angel.core.graph.VersionsProtos.VersionDef) obj;
  
        boolean result = true;
        result = result && (getProducer()
            == other.getProducer());
        result = result && (getMinConsumer()
            == other.getMinConsumer());
        result = result && getBadConsumersList()
            .equals(other.getBadConsumersList());
        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) + PRODUCER_FIELD_NUMBER;
        hash = (53 * hash) + getProducer();
        hash = (37 * hash) + MIN_CONSUMER_FIELD_NUMBER;
        hash = (53 * hash) + getMinConsumer();
        if (getBadConsumersCount() > 0) {
          hash = (37 * hash) + BAD_CONSUMERS_FIELD_NUMBER;
          hash = (53 * hash) + getBadConsumersList().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef 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.core.graph.VersionsProtos.VersionDef parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef 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.core.graph.VersionsProtos.VersionDef parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef 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.core.graph.VersionsProtos.VersionDef parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef 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.core.graph.VersionsProtos.VersionDef parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef 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.core.graph.VersionsProtos.VersionDef 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>
       * Version information for a piece of serialized data
       * There are different types of versions for each type of data
       * (GraphDef, etc.), but they all have the same common shape
       * described here.
       * Each consumer has "consumer" and "min_producer" versions (specified
       * elsewhere).  A consumer is allowed to consume this data if
       *   producer &gt;= min_producer
       *   consumer &gt;= min_consumer
       *   consumer not in bad_consumers
       * </pre>
       *
       * Protobuf type {@code angel.VersionDef}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.VersionDef)
          com.tencent.angel.core.graph.VersionsProtos.VersionDefOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.core.graph.VersionsProtos.internal_static_angel_VersionDef_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.core.graph.VersionsProtos.internal_static_angel_VersionDef_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.core.graph.VersionsProtos.VersionDef.class, com.tencent.angel.core.graph.VersionsProtos.VersionDef.Builder.class);
        }
  
        // Construct using com.tencent.angel.core.graph.VersionsProtos.VersionDef.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();
          producer_ = 0;
  
          minConsumer_ = 0;
  
          badConsumers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.core.graph.VersionsProtos.internal_static_angel_VersionDef_descriptor;
        }
  
        public com.tencent.angel.core.graph.VersionsProtos.VersionDef getDefaultInstanceForType() {
          return com.tencent.angel.core.graph.VersionsProtos.VersionDef.getDefaultInstance();
        }
  
        public com.tencent.angel.core.graph.VersionsProtos.VersionDef build() {
          com.tencent.angel.core.graph.VersionsProtos.VersionDef result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.core.graph.VersionsProtos.VersionDef buildPartial() {
          com.tencent.angel.core.graph.VersionsProtos.VersionDef result = new com.tencent.angel.core.graph.VersionsProtos.VersionDef(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          result.producer_ = producer_;
          result.minConsumer_ = minConsumer_;
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            badConsumers_ = java.util.Collections.unmodifiableList(badConsumers_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.badConsumers_ = badConsumers_;
          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.core.graph.VersionsProtos.VersionDef) {
            return mergeFrom((com.tencent.angel.core.graph.VersionsProtos.VersionDef)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.core.graph.VersionsProtos.VersionDef other) {
          if (other == com.tencent.angel.core.graph.VersionsProtos.VersionDef.getDefaultInstance()) return this;
          if (other.getProducer() != 0) {
            setProducer(other.getProducer());
          }
          if (other.getMinConsumer() != 0) {
            setMinConsumer(other.getMinConsumer());
          }
          if (!other.badConsumers_.isEmpty()) {
            if (badConsumers_.isEmpty()) {
              badConsumers_ = other.badConsumers_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureBadConsumersIsMutable();
              badConsumers_.addAll(other.badConsumers_);
            }
            onChanged();
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }
  
        public final boolean isInitialized() {
          return true;
        }
  
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.tencent.angel.core.graph.VersionsProtos.VersionDef parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.core.graph.VersionsProtos.VersionDef) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        private int producer_ ;
        /**
         * <pre>
         * The version of the code that produced this data.
         * </pre>
         *
         * <code>int32 producer = 1;</code>
         */
        public int getProducer() {
          return producer_;
        }
        /**
         * <pre>
         * The version of the code that produced this data.
         * </pre>
         *
         * <code>int32 producer = 1;</code>
         */
        public Builder setProducer(int value) {
          
          producer_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * The version of the code that produced this data.
         * </pre>
         *
         * <code>int32 producer = 1;</code>
         */
        public Builder clearProducer() {
          
          producer_ = 0;
          onChanged();
          return this;
        }
  
        private int minConsumer_ ;
        /**
         * <pre>
         * Any consumer below this version is not allowed to consume this data.
         * </pre>
         *
         * <code>int32 min_consumer = 2;</code>
         */
        public int getMinConsumer() {
          return minConsumer_;
        }
        /**
         * <pre>
         * Any consumer below this version is not allowed to consume this data.
         * </pre>
         *
         * <code>int32 min_consumer = 2;</code>
         */
        public Builder setMinConsumer(int value) {
          
          minConsumer_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Any consumer below this version is not allowed to consume this data.
         * </pre>
         *
         * <code>int32 min_consumer = 2;</code>
         */
        public Builder clearMinConsumer() {
          
          minConsumer_ = 0;
          onChanged();
          return this;
        }
  
        private java.util.List<java.lang.Integer> badConsumers_ = java.util.Collections.emptyList();
        private void ensureBadConsumersIsMutable() {
          if (!((bitField0_ & 0x00000004) == 0x00000004)) {
            badConsumers_ = new java.util.ArrayList<java.lang.Integer>(badConsumers_);
            bitField0_ |= 0x00000004;
           }
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public java.util.List<java.lang.Integer>
            getBadConsumersList() {
          return java.util.Collections.unmodifiableList(badConsumers_);
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public int getBadConsumersCount() {
          return badConsumers_.size();
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public int getBadConsumers(int index) {
          return badConsumers_.get(index);
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public Builder setBadConsumers(
            int index, int value) {
          ensureBadConsumersIsMutable();
          badConsumers_.set(index, value);
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public Builder addBadConsumers(int value) {
          ensureBadConsumersIsMutable();
          badConsumers_.add(value);
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public Builder addAllBadConsumers(
            java.lang.Iterable<? extends java.lang.Integer> values) {
          ensureBadConsumersIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, badConsumers_);
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Specific consumer versions which are disallowed (e.g. due to bugs).
         * </pre>
         *
         * <code>repeated int32 bad_consumers = 3;</code>
         */
        public Builder clearBadConsumers() {
          badConsumers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFieldsProto3(unknownFields);
        }
  
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }
  
  
        // @@protoc_insertion_point(builder_scope:angel.VersionDef)
      }
  
      // @@protoc_insertion_point(class_scope:angel.VersionDef)
      private static final com.tencent.angel.core.graph.VersionsProtos.VersionDef DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.core.graph.VersionsProtos.VersionDef();
      }
  
      public static com.tencent.angel.core.graph.VersionsProtos.VersionDef getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<VersionDef>
          PARSER = new com.google.protobuf.AbstractParser<VersionDef>() {
        public VersionDef parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new VersionDef(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<VersionDef> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<VersionDef> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.core.graph.VersionsProtos.VersionDef getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_VersionDef_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_VersionDef_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\031core/graph/versions.proto\022\005angel\"K\n\nVe" +
        "rsionDef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consum" +
        "er\030\002 \001(\005\022\025\n\rbad_consumers\030\003 \003(\005B0\n\034com.t" +
        "encent.angel.core.graphB\016VersionsProtosP" +
        "\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[] {
          }, assigner);
      internal_static_angel_VersionDef_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_angel_VersionDef_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_VersionDef_descriptor,
          new java.lang.String[] { "Producer", "MinConsumer", "BadConsumers", });
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  