// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/meta_graph.proto

package org.tensorflow.proto.framework;

/**
 * <pre>
 * CollectionDef should cover most collections.
 * To add a user-defined collection, do one of the following:
 * 1. For simple data types, such as string, int, float:
 *      tf.add_to_collection("your_collection_name", your_simple_value)
 *    strings will be stored as bytes_list.
 * 2. For Protobuf types, there are three ways to add them:
 *    1) tf.add_to_collection("your_collection_name",
 *         your_proto.SerializeToString())
 *       collection_def {
 *         key: "user_defined_bytes_collection"
 *         value {
 *           bytes_list {
 *             value: "queue_name: &#92;"test_queue&#92;"&#92;n"
 *           }
 *         }
 *       }
 *  or
 *    2) tf.add_to_collection("your_collection_name", str(your_proto))
 *       collection_def {
 *         key: "user_defined_string_collection"
 *         value {
 *          bytes_list {
 *             value: "&#92;n&#92;ntest_queue"
 *           }
 *         }
 *       }
 *  or
 *    3) any_buf = any_pb2.Any()
 *       tf.add_to_collection("your_collection_name",
 *         any_buf.Pack(your_proto))
 *       collection_def {
 *         key: "user_defined_any_collection"
 *         value {
 *           any_list {
 *             value {
 *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
 *               value: "&#92;n&#92;ntest_queue"
 *             }
 *           }
 *         }
 *       }
 * 3. For Python objects, implement to_proto() and from_proto(), and register
 *    them in the following manner:
 *    ops.register_proto_function("your_collection_name",
 *                                proto_type,
 *                                to_proto=YourPythonObject.to_proto,
 *                                from_proto=YourPythonObject.from_proto)
 *    These functions will be invoked to serialize and de-serialize the
 *    collection. For example,
 *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
 *                                proto_type=variable_pb2.VariableDef,
 *                                to_proto=Variable.to_proto,
 *                                from_proto=Variable.from_proto)
 * </pre>
 *
 * Protobuf type {@code tensorflow.CollectionDef}
 */
public  final class CollectionDef extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef)
    CollectionDefOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CollectionDef.newBuilder() to construct.
  private CollectionDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CollectionDef() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CollectionDef(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            org.tensorflow.proto.framework.CollectionDef.NodeList.Builder subBuilder = null;
            if (kindCase_ == 1) {
              subBuilder = ((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_).toBuilder();
            }
            kind_ =
                input.readMessage(org.tensorflow.proto.framework.CollectionDef.NodeList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_);
              kind_ = subBuilder.buildPartial();
            }
            kindCase_ = 1;
            break;
          }
          case 18: {
            org.tensorflow.proto.framework.CollectionDef.BytesList.Builder subBuilder = null;
            if (kindCase_ == 2) {
              subBuilder = ((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_).toBuilder();
            }
            kind_ =
                input.readMessage(org.tensorflow.proto.framework.CollectionDef.BytesList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_);
              kind_ = subBuilder.buildPartial();
            }
            kindCase_ = 2;
            break;
          }
          case 26: {
            org.tensorflow.proto.framework.CollectionDef.Int64List.Builder subBuilder = null;
            if (kindCase_ == 3) {
              subBuilder = ((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_).toBuilder();
            }
            kind_ =
                input.readMessage(org.tensorflow.proto.framework.CollectionDef.Int64List.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_);
              kind_ = subBuilder.buildPartial();
            }
            kindCase_ = 3;
            break;
          }
          case 34: {
            org.tensorflow.proto.framework.CollectionDef.FloatList.Builder subBuilder = null;
            if (kindCase_ == 4) {
              subBuilder = ((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_).toBuilder();
            }
            kind_ =
                input.readMessage(org.tensorflow.proto.framework.CollectionDef.FloatList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_);
              kind_ = subBuilder.buildPartial();
            }
            kindCase_ = 4;
            break;
          }
          case 42: {
            org.tensorflow.proto.framework.CollectionDef.AnyList.Builder subBuilder = null;
            if (kindCase_ == 5) {
              subBuilder = ((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_).toBuilder();
            }
            kind_ =
                input.readMessage(org.tensorflow.proto.framework.CollectionDef.AnyList.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_);
              kind_ = subBuilder.buildPartial();
            }
            kindCase_ = 5;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.framework.CollectionDef.class, org.tensorflow.proto.framework.CollectionDef.Builder.class);
  }

  public interface NodeListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.NodeList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated string value = 1;</code>
     */
    java.util.List<java.lang.String>
        getValueList();
    /**
     * <code>repeated string value = 1;</code>
     */
    int getValueCount();
    /**
     * <code>repeated string value = 1;</code>
     */
    java.lang.String getValue(int index);
    /**
     * <code>repeated string value = 1;</code>
     */
    com.google.protobuf.ByteString
        getValueBytes(int index);
  }
  /**
   * <pre>
   * NodeList is used for collecting nodes in graph. For example
   * collection_def {
   *   key: "summaries"
   *   value {
   *     node_list {
   *       value: "input_producer/ScalarSummary:0"
   *       value: "shuffle_batch/ScalarSummary:0"
   *       value: "ImageSummary:0"
   *     }
   *   }
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef.NodeList}
   */
  public  static final class NodeList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.NodeList)
      NodeListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use NodeList.newBuilder() to construct.
    private NodeList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private NodeList() {
      value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private NodeList(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                value_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              value_.add(s);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          value_ = value_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.NodeList.class, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private com.google.protobuf.LazyStringList value_;
    /**
     * <code>repeated string value = 1;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getValueList() {
      return value_;
    }
    /**
     * <code>repeated string value = 1;</code>
     */
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated string value = 1;</code>
     */
    public java.lang.String getValue(int index) {
      return value_.get(index);
    }
    /**
     * <code>repeated string value = 1;</code>
     */
    public com.google.protobuf.ByteString
        getValueBytes(int index) {
      return value_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < value_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < value_.size(); i++) {
          dataSize += computeStringSizeNoTag(value_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getValueList().size();
      }
      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 org.tensorflow.proto.framework.CollectionDef.NodeList)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.CollectionDef.NodeList other = (org.tensorflow.proto.framework.CollectionDef.NodeList) obj;

      if (!getValueList()
          .equals(other.getValueList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValueCount() > 0) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValueList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList 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 org.tensorflow.proto.framework.CollectionDef.NodeList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList 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 org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef.NodeList prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * NodeList is used for collecting nodes in graph. For example
     * collection_def {
     *   key: "summaries"
     *   value {
     *     node_list {
     *       value: "input_producer/ScalarSummary:0"
     *       value: "shuffle_batch/ScalarSummary:0"
     *       value: "ImageSummary:0"
     *     }
     *   }
     * </pre>
     *
     * Protobuf type {@code tensorflow.CollectionDef.NodeList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.NodeList)
        org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.CollectionDef.NodeList.class, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.CollectionDef.NodeList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstanceForType() {
        return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.NodeList build() {
        org.tensorflow.proto.framework.CollectionDef.NodeList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.NodeList buildPartial() {
        org.tensorflow.proto.framework.CollectionDef.NodeList result = new org.tensorflow.proto.framework.CollectionDef.NodeList(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          value_ = value_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tensorflow.proto.framework.CollectionDef.NodeList) {
          return mergeFrom((org.tensorflow.proto.framework.CollectionDef.NodeList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.NodeList other) {
        if (other == org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance()) return this;
        if (!other.value_.isEmpty()) {
          if (value_.isEmpty()) {
            value_ = other.value_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureValueIsMutable();
            value_.addAll(other.value_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.tensorflow.proto.framework.CollectionDef.NodeList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.CollectionDef.NodeList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureValueIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          value_ = new com.google.protobuf.LazyStringArrayList(value_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public com.google.protobuf.ProtocolStringList
          getValueList() {
        return value_.getUnmodifiableView();
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public int getValueCount() {
        return value_.size();
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public java.lang.String getValue(int index) {
        return value_.get(index);
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public com.google.protobuf.ByteString
          getValueBytes(int index) {
        return value_.getByteString(index);
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public Builder setValue(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueIsMutable();
        value_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public Builder addValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueIsMutable();
        value_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public Builder addAllValue(
          java.lang.Iterable<java.lang.String> values) {
        ensureValueIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, value_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public Builder clearValue() {
        value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string value = 1;</code>
       */
      public Builder addValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureValueIsMutable();
        value_.add(value);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.NodeList)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.NodeList)
    private static final org.tensorflow.proto.framework.CollectionDef.NodeList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.NodeList();
    }

    public static org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BytesListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.BytesList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated bytes value = 1;</code>
     */
    java.util.List<com.google.protobuf.ByteString> getValueList();
    /**
     * <code>repeated bytes value = 1;</code>
     */
    int getValueCount();
    /**
     * <code>repeated bytes value = 1;</code>
     */
    com.google.protobuf.ByteString getValue(int index);
  }
  /**
   * <pre>
   * BytesList is used for collecting strings and serialized protobufs. For
   * example:
   * collection_def {
   *   key: "trainable_variables"
   *   value {
   *     bytes_list {
   *       value: "&#92;n&#92;017conv1/weights:0&#92;022&#92;024conv1/weights/Assign
   *              &#92;032&#92;024conv1/weights/read:0"
   *       value: "&#92;n&#92;016conv1/biases:0&#92;022&#92;023conv1/biases/Assign&#92;032
   *              &#92;023conv1/biases/read:0"
   *     }
   *   }
   * }
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef.BytesList}
   */
  public  static final class BytesList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.BytesList)
      BytesListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BytesList.newBuilder() to construct.
    private BytesList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BytesList() {
      value_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BytesList(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                value_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
                mutable_bitField0_ |= 0x00000001;
              }
              value_.add(input.readBytes());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          value_ = java.util.Collections.unmodifiableList(value_); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.BytesList.class, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private java.util.List<com.google.protobuf.ByteString> value_;
    /**
     * <code>repeated bytes value = 1;</code>
     */
    public java.util.List<com.google.protobuf.ByteString>
        getValueList() {
      return value_;
    }
    /**
     * <code>repeated bytes value = 1;</code>
     */
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated bytes value = 1;</code>
     */
    public com.google.protobuf.ByteString getValue(int index) {
      return value_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < value_.size(); i++) {
        output.writeBytes(1, value_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < value_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(value_.get(i));
        }
        size += dataSize;
        size += 1 * getValueList().size();
      }
      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 org.tensorflow.proto.framework.CollectionDef.BytesList)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.CollectionDef.BytesList other = (org.tensorflow.proto.framework.CollectionDef.BytesList) obj;

      if (!getValueList()
          .equals(other.getValueList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValueCount() > 0) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValueList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList 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 org.tensorflow.proto.framework.CollectionDef.BytesList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList 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 org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef.BytesList prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * BytesList is used for collecting strings and serialized protobufs. For
     * example:
     * collection_def {
     *   key: "trainable_variables"
     *   value {
     *     bytes_list {
     *       value: "&#92;n&#92;017conv1/weights:0&#92;022&#92;024conv1/weights/Assign
     *              &#92;032&#92;024conv1/weights/read:0"
     *       value: "&#92;n&#92;016conv1/biases:0&#92;022&#92;023conv1/biases/Assign&#92;032
     *              &#92;023conv1/biases/read:0"
     *     }
     *   }
     * }
     * </pre>
     *
     * Protobuf type {@code tensorflow.CollectionDef.BytesList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.BytesList)
        org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.CollectionDef.BytesList.class, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.CollectionDef.BytesList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstanceForType() {
        return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.BytesList build() {
        org.tensorflow.proto.framework.CollectionDef.BytesList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.BytesList buildPartial() {
        org.tensorflow.proto.framework.CollectionDef.BytesList result = new org.tensorflow.proto.framework.CollectionDef.BytesList(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          value_ = java.util.Collections.unmodifiableList(value_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tensorflow.proto.framework.CollectionDef.BytesList) {
          return mergeFrom((org.tensorflow.proto.framework.CollectionDef.BytesList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.BytesList other) {
        if (other == org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance()) return this;
        if (!other.value_.isEmpty()) {
          if (value_.isEmpty()) {
            value_ = other.value_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureValueIsMutable();
            value_.addAll(other.value_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.tensorflow.proto.framework.CollectionDef.BytesList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.CollectionDef.BytesList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.google.protobuf.ByteString> value_ = java.util.Collections.emptyList();
      private void ensureValueIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          value_ = new java.util.ArrayList<com.google.protobuf.ByteString>(value_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public java.util.List<com.google.protobuf.ByteString>
          getValueList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(value_) : value_;
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public int getValueCount() {
        return value_.size();
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public com.google.protobuf.ByteString getValue(int index) {
        return value_.get(index);
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public Builder setValue(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueIsMutable();
        value_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public Builder addValue(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueIsMutable();
        value_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public Builder addAllValue(
          java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
        ensureValueIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, value_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value = 1;</code>
       */
      public Builder clearValue() {
        value_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.BytesList)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.BytesList)
    private static final org.tensorflow.proto.framework.CollectionDef.BytesList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.BytesList();
    }

    public static org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface Int64ListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.Int64List)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    java.util.List<java.lang.Long> getValueList();
    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    int getValueCount();
    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    long getValue(int index);
  }
  /**
   * <pre>
   * Int64List is used for collecting int, int64 and long values.
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef.Int64List}
   */
  public  static final class Int64List extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.Int64List)
      Int64ListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Int64List.newBuilder() to construct.
    private Int64List(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Int64List() {
      value_ = emptyLongList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Int64List(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                value_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              value_.addLong(input.readInt64());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                value_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                value_.addLong(input.readInt64());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          value_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.Int64List.class, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.LongList value_;
    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    public java.util.List<java.lang.Long>
        getValueList() {
      return value_;
    }
    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated int64 value = 1 [packed = true];</code>
     */
    public long getValue(int index) {
      return value_.getLong(index);
    }
    private int valueMemoizedSerializedSize = -1;

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (getValueList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(valueMemoizedSerializedSize);
      }
      for (int i = 0; i < value_.size(); i++) {
        output.writeInt64NoTag(value_.getLong(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < value_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt64SizeNoTag(value_.getLong(i));
        }
        size += dataSize;
        if (!getValueList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        valueMemoizedSerializedSize = 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 org.tensorflow.proto.framework.CollectionDef.Int64List)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.CollectionDef.Int64List other = (org.tensorflow.proto.framework.CollectionDef.Int64List) obj;

      if (!getValueList()
          .equals(other.getValueList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValueCount() > 0) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValueList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List 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 org.tensorflow.proto.framework.CollectionDef.Int64List parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List 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 org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef.Int64List prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Int64List is used for collecting int, int64 and long values.
     * </pre>
     *
     * Protobuf type {@code tensorflow.CollectionDef.Int64List}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.Int64List)
        org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.CollectionDef.Int64List.class, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.CollectionDef.Int64List.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        value_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstanceForType() {
        return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.Int64List build() {
        org.tensorflow.proto.framework.CollectionDef.Int64List result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.Int64List buildPartial() {
        org.tensorflow.proto.framework.CollectionDef.Int64List result = new org.tensorflow.proto.framework.CollectionDef.Int64List(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          value_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tensorflow.proto.framework.CollectionDef.Int64List) {
          return mergeFrom((org.tensorflow.proto.framework.CollectionDef.Int64List)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.Int64List other) {
        if (other == org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance()) return this;
        if (!other.value_.isEmpty()) {
          if (value_.isEmpty()) {
            value_ = other.value_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureValueIsMutable();
            value_.addAll(other.value_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.tensorflow.proto.framework.CollectionDef.Int64List parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.CollectionDef.Int64List) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.LongList value_ = emptyLongList();
      private void ensureValueIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          value_ = mutableCopy(value_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public java.util.List<java.lang.Long>
          getValueList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(value_) : value_;
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public int getValueCount() {
        return value_.size();
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public long getValue(int index) {
        return value_.getLong(index);
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public Builder setValue(
          int index, long value) {
        ensureValueIsMutable();
        value_.setLong(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public Builder addValue(long value) {
        ensureValueIsMutable();
        value_.addLong(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public Builder addAllValue(
          java.lang.Iterable<? extends java.lang.Long> values) {
        ensureValueIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, value_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int64 value = 1 [packed = true];</code>
       */
      public Builder clearValue() {
        value_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.Int64List)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.Int64List)
    private static final org.tensorflow.proto.framework.CollectionDef.Int64List DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.Int64List();
    }

    public static org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface FloatListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.FloatList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    java.util.List<java.lang.Float> getValueList();
    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    int getValueCount();
    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    float getValue(int index);
  }
  /**
   * <pre>
   * FloatList is used for collecting float values.
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef.FloatList}
   */
  public  static final class FloatList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.FloatList)
      FloatListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FloatList.newBuilder() to construct.
    private FloatList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FloatList() {
      value_ = emptyFloatList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FloatList(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 13: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                value_ = newFloatList();
                mutable_bitField0_ |= 0x00000001;
              }
              value_.addFloat(input.readFloat());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                value_ = newFloatList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                value_.addFloat(input.readFloat());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          value_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.FloatList.class, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.FloatList value_;
    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    public java.util.List<java.lang.Float>
        getValueList() {
      return value_;
    }
    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated float value = 1 [packed = true];</code>
     */
    public float getValue(int index) {
      return value_.getFloat(index);
    }
    private int valueMemoizedSerializedSize = -1;

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (getValueList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(valueMemoizedSerializedSize);
      }
      for (int i = 0; i < value_.size(); i++) {
        output.writeFloatNoTag(value_.getFloat(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        dataSize = 4 * getValueList().size();
        size += dataSize;
        if (!getValueList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        valueMemoizedSerializedSize = 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 org.tensorflow.proto.framework.CollectionDef.FloatList)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.CollectionDef.FloatList other = (org.tensorflow.proto.framework.CollectionDef.FloatList) obj;

      if (!getValueList()
          .equals(other.getValueList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValueCount() > 0) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValueList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList 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 org.tensorflow.proto.framework.CollectionDef.FloatList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList 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 org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef.FloatList prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * FloatList is used for collecting float values.
     * </pre>
     *
     * Protobuf type {@code tensorflow.CollectionDef.FloatList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.FloatList)
        org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.CollectionDef.FloatList.class, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.CollectionDef.FloatList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        value_ = emptyFloatList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstanceForType() {
        return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.FloatList build() {
        org.tensorflow.proto.framework.CollectionDef.FloatList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.FloatList buildPartial() {
        org.tensorflow.proto.framework.CollectionDef.FloatList result = new org.tensorflow.proto.framework.CollectionDef.FloatList(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          value_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tensorflow.proto.framework.CollectionDef.FloatList) {
          return mergeFrom((org.tensorflow.proto.framework.CollectionDef.FloatList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.FloatList other) {
        if (other == org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance()) return this;
        if (!other.value_.isEmpty()) {
          if (value_.isEmpty()) {
            value_ = other.value_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureValueIsMutable();
            value_.addAll(other.value_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.tensorflow.proto.framework.CollectionDef.FloatList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.CollectionDef.FloatList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.FloatList value_ = emptyFloatList();
      private void ensureValueIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          value_ = mutableCopy(value_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public java.util.List<java.lang.Float>
          getValueList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(value_) : value_;
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public int getValueCount() {
        return value_.size();
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public float getValue(int index) {
        return value_.getFloat(index);
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public Builder setValue(
          int index, float value) {
        ensureValueIsMutable();
        value_.setFloat(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public Builder addValue(float value) {
        ensureValueIsMutable();
        value_.addFloat(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public Builder addAllValue(
          java.lang.Iterable<? extends java.lang.Float> values) {
        ensureValueIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, value_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float value = 1 [packed = true];</code>
       */
      public Builder clearValue() {
        value_ = emptyFloatList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.FloatList)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.FloatList)
    private static final org.tensorflow.proto.framework.CollectionDef.FloatList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.FloatList();
    }

    public static org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface AnyListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.AnyList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    java.util.List<com.google.protobuf.Any> 
        getValueList();
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    com.google.protobuf.Any getValue(int index);
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    int getValueCount();
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    java.util.List<? extends com.google.protobuf.AnyOrBuilder> 
        getValueOrBuilderList();
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    com.google.protobuf.AnyOrBuilder getValueOrBuilder(
        int index);
  }
  /**
   * <pre>
   * AnyList is used for collecting Any protos.
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef.AnyList}
   */
  public  static final class AnyList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.AnyList)
      AnyListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AnyList.newBuilder() to construct.
    private AnyList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private AnyList() {
      value_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private AnyList(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                value_ = new java.util.ArrayList<com.google.protobuf.Any>();
                mutable_bitField0_ |= 0x00000001;
              }
              value_.add(
                  input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          value_ = java.util.Collections.unmodifiableList(value_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.AnyList.class, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private java.util.List<com.google.protobuf.Any> value_;
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    public java.util.List<com.google.protobuf.Any> getValueList() {
      return value_;
    }
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    public java.util.List<? extends com.google.protobuf.AnyOrBuilder> 
        getValueOrBuilderList() {
      return value_;
    }
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    public com.google.protobuf.Any getValue(int index) {
      return value_.get(index);
    }
    /**
     * <code>repeated .google.protobuf.Any value = 1;</code>
     */
    public com.google.protobuf.AnyOrBuilder getValueOrBuilder(
        int index) {
      return value_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < value_.size(); i++) {
        output.writeMessage(1, value_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < value_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, value_.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 org.tensorflow.proto.framework.CollectionDef.AnyList)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.framework.CollectionDef.AnyList other = (org.tensorflow.proto.framework.CollectionDef.AnyList) obj;

      if (!getValueList()
          .equals(other.getValueList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValueCount() > 0) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValueList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList 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 org.tensorflow.proto.framework.CollectionDef.AnyList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList 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 org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef.AnyList prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * AnyList is used for collecting Any protos.
     * </pre>
     *
     * Protobuf type {@code tensorflow.CollectionDef.AnyList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.AnyList)
        org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.framework.CollectionDef.AnyList.class, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder.class);
      }

      // Construct using org.tensorflow.proto.framework.CollectionDef.AnyList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstanceForType() {
        return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.AnyList build() {
        org.tensorflow.proto.framework.CollectionDef.AnyList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.tensorflow.proto.framework.CollectionDef.AnyList buildPartial() {
        org.tensorflow.proto.framework.CollectionDef.AnyList result = new org.tensorflow.proto.framework.CollectionDef.AnyList(this);
        int from_bitField0_ = bitField0_;
        if (valueBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            value_ = java.util.Collections.unmodifiableList(value_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.value_ = value_;
        } else {
          result.value_ = valueBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tensorflow.proto.framework.CollectionDef.AnyList) {
          return mergeFrom((org.tensorflow.proto.framework.CollectionDef.AnyList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.AnyList other) {
        if (other == org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance()) return this;
        if (valueBuilder_ == null) {
          if (!other.value_.isEmpty()) {
            if (value_.isEmpty()) {
              value_ = other.value_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureValueIsMutable();
              value_.addAll(other.value_);
            }
            onChanged();
          }
        } else {
          if (!other.value_.isEmpty()) {
            if (valueBuilder_.isEmpty()) {
              valueBuilder_.dispose();
              valueBuilder_ = null;
              value_ = other.value_;
              bitField0_ = (bitField0_ & ~0x00000001);
              valueBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getValueFieldBuilder() : null;
            } else {
              valueBuilder_.addAllMessages(other.value_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.tensorflow.proto.framework.CollectionDef.AnyList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.framework.CollectionDef.AnyList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.google.protobuf.Any> value_ =
        java.util.Collections.emptyList();
      private void ensureValueIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          value_ = new java.util.ArrayList<com.google.protobuf.Any>(value_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_;

      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public java.util.List<com.google.protobuf.Any> getValueList() {
        if (valueBuilder_ == null) {
          return java.util.Collections.unmodifiableList(value_);
        } else {
          return valueBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public int getValueCount() {
        if (valueBuilder_ == null) {
          return value_.size();
        } else {
          return valueBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public com.google.protobuf.Any getValue(int index) {
        if (valueBuilder_ == null) {
          return value_.get(index);
        } else {
          return valueBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder setValue(
          int index, com.google.protobuf.Any value) {
        if (valueBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureValueIsMutable();
          value_.set(index, value);
          onChanged();
        } else {
          valueBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder setValue(
          int index, com.google.protobuf.Any.Builder builderForValue) {
        if (valueBuilder_ == null) {
          ensureValueIsMutable();
          value_.set(index, builderForValue.build());
          onChanged();
        } else {
          valueBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder addValue(com.google.protobuf.Any value) {
        if (valueBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureValueIsMutable();
          value_.add(value);
          onChanged();
        } else {
          valueBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder addValue(
          int index, com.google.protobuf.Any value) {
        if (valueBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureValueIsMutable();
          value_.add(index, value);
          onChanged();
        } else {
          valueBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder addValue(
          com.google.protobuf.Any.Builder builderForValue) {
        if (valueBuilder_ == null) {
          ensureValueIsMutable();
          value_.add(builderForValue.build());
          onChanged();
        } else {
          valueBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder addValue(
          int index, com.google.protobuf.Any.Builder builderForValue) {
        if (valueBuilder_ == null) {
          ensureValueIsMutable();
          value_.add(index, builderForValue.build());
          onChanged();
        } else {
          valueBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder addAllValue(
          java.lang.Iterable<? extends com.google.protobuf.Any> values) {
        if (valueBuilder_ == null) {
          ensureValueIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, value_);
          onChanged();
        } else {
          valueBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder clearValue() {
        if (valueBuilder_ == null) {
          value_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          valueBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public Builder removeValue(int index) {
        if (valueBuilder_ == null) {
          ensureValueIsMutable();
          value_.remove(index);
          onChanged();
        } else {
          valueBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public com.google.protobuf.Any.Builder getValueBuilder(
          int index) {
        return getValueFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public com.google.protobuf.AnyOrBuilder getValueOrBuilder(
          int index) {
        if (valueBuilder_ == null) {
          return value_.get(index);  } else {
          return valueBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public java.util.List<? extends com.google.protobuf.AnyOrBuilder> 
           getValueOrBuilderList() {
        if (valueBuilder_ != null) {
          return valueBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(value_);
        }
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public com.google.protobuf.Any.Builder addValueBuilder() {
        return getValueFieldBuilder().addBuilder(
            com.google.protobuf.Any.getDefaultInstance());
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public com.google.protobuf.Any.Builder addValueBuilder(
          int index) {
        return getValueFieldBuilder().addBuilder(
            index, com.google.protobuf.Any.getDefaultInstance());
      }
      /**
       * <code>repeated .google.protobuf.Any value = 1;</code>
       */
      public java.util.List<com.google.protobuf.Any.Builder> 
           getValueBuilderList() {
        return getValueFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
          getValueFieldBuilder() {
        if (valueBuilder_ == null) {
          valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                  value_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          value_ = null;
        }
        return valueBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.AnyList)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.AnyList)
    private static final org.tensorflow.proto.framework.CollectionDef.AnyList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.AnyList();
    }

    public static org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int kindCase_ = 0;
  private java.lang.Object kind_;
  public enum KindCase
      implements com.google.protobuf.Internal.EnumLite {
    NODE_LIST(1),
    BYTES_LIST(2),
    INT64_LIST(3),
    FLOAT_LIST(4),
    ANY_LIST(5),
    KIND_NOT_SET(0);
    private final int value;
    private KindCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static KindCase valueOf(int value) {
      return forNumber(value);
    }

    public static KindCase forNumber(int value) {
      switch (value) {
        case 1: return NODE_LIST;
        case 2: return BYTES_LIST;
        case 3: return INT64_LIST;
        case 4: return FLOAT_LIST;
        case 5: return ANY_LIST;
        case 0: return KIND_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public KindCase
  getKindCase() {
    return KindCase.forNumber(
        kindCase_);
  }

  public static final int NODE_LIST_FIELD_NUMBER = 1;
  /**
   * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
   */
  public boolean hasNodeList() {
    return kindCase_ == 1;
  }
  /**
   * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.NodeList getNodeList() {
    if (kindCase_ == 1) {
       return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() {
    if (kindCase_ == 1) {
       return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
  }

  public static final int BYTES_LIST_FIELD_NUMBER = 2;
  /**
   * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
   */
  public boolean hasBytesList() {
    return kindCase_ == 2;
  }
  /**
   * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.BytesList getBytesList() {
    if (kindCase_ == 2) {
       return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() {
    if (kindCase_ == 2) {
       return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
  }

  public static final int INT64_LIST_FIELD_NUMBER = 3;
  /**
   * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
   */
  public boolean hasInt64List() {
    return kindCase_ == 3;
  }
  /**
   * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.Int64List getInt64List() {
    if (kindCase_ == 3) {
       return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() {
    if (kindCase_ == 3) {
       return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
  }

  public static final int FLOAT_LIST_FIELD_NUMBER = 4;
  /**
   * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
   */
  public boolean hasFloatList() {
    return kindCase_ == 4;
  }
  /**
   * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.FloatList getFloatList() {
    if (kindCase_ == 4) {
       return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() {
    if (kindCase_ == 4) {
       return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
  }

  public static final int ANY_LIST_FIELD_NUMBER = 5;
  /**
   * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
   */
  public boolean hasAnyList() {
    return kindCase_ == 5;
  }
  /**
   * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.AnyList getAnyList() {
    if (kindCase_ == 5) {
       return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
   */
  public org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() {
    if (kindCase_ == 5) {
       return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_;
    }
    return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (kindCase_ == 1) {
      output.writeMessage(1, (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_);
    }
    if (kindCase_ == 2) {
      output.writeMessage(2, (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_);
    }
    if (kindCase_ == 3) {
      output.writeMessage(3, (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_);
    }
    if (kindCase_ == 4) {
      output.writeMessage(4, (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_);
    }
    if (kindCase_ == 5) {
      output.writeMessage(5, (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (kindCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_);
    }
    if (kindCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_);
    }
    if (kindCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_);
    }
    if (kindCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_);
    }
    if (kindCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_);
    }
    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 org.tensorflow.proto.framework.CollectionDef)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.framework.CollectionDef other = (org.tensorflow.proto.framework.CollectionDef) obj;

    if (!getKindCase().equals(other.getKindCase())) return false;
    switch (kindCase_) {
      case 1:
        if (!getNodeList()
            .equals(other.getNodeList())) return false;
        break;
      case 2:
        if (!getBytesList()
            .equals(other.getBytesList())) return false;
        break;
      case 3:
        if (!getInt64List()
            .equals(other.getInt64List())) return false;
        break;
      case 4:
        if (!getFloatList()
            .equals(other.getFloatList())) return false;
        break;
      case 5:
        if (!getAnyList()
            .equals(other.getAnyList())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (kindCase_) {
      case 1:
        hash = (37 * hash) + NODE_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getNodeList().hashCode();
        break;
      case 2:
        hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getBytesList().hashCode();
        break;
      case 3:
        hash = (37 * hash) + INT64_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getInt64List().hashCode();
        break;
      case 4:
        hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getFloatList().hashCode();
        break;
      case 5:
        hash = (37 * hash) + ANY_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getAnyList().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.CollectionDef 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 org.tensorflow.proto.framework.CollectionDef parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.CollectionDef 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 org.tensorflow.proto.framework.CollectionDef parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.CollectionDef parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.tensorflow.proto.framework.CollectionDef prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * CollectionDef should cover most collections.
   * To add a user-defined collection, do one of the following:
   * 1. For simple data types, such as string, int, float:
   *      tf.add_to_collection("your_collection_name", your_simple_value)
   *    strings will be stored as bytes_list.
   * 2. For Protobuf types, there are three ways to add them:
   *    1) tf.add_to_collection("your_collection_name",
   *         your_proto.SerializeToString())
   *       collection_def {
   *         key: "user_defined_bytes_collection"
   *         value {
   *           bytes_list {
   *             value: "queue_name: &#92;"test_queue&#92;"&#92;n"
   *           }
   *         }
   *       }
   *  or
   *    2) tf.add_to_collection("your_collection_name", str(your_proto))
   *       collection_def {
   *         key: "user_defined_string_collection"
   *         value {
   *          bytes_list {
   *             value: "&#92;n&#92;ntest_queue"
   *           }
   *         }
   *       }
   *  or
   *    3) any_buf = any_pb2.Any()
   *       tf.add_to_collection("your_collection_name",
   *         any_buf.Pack(your_proto))
   *       collection_def {
   *         key: "user_defined_any_collection"
   *         value {
   *           any_list {
   *             value {
   *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
   *               value: "&#92;n&#92;ntest_queue"
   *             }
   *           }
   *         }
   *       }
   * 3. For Python objects, implement to_proto() and from_proto(), and register
   *    them in the following manner:
   *    ops.register_proto_function("your_collection_name",
   *                                proto_type,
   *                                to_proto=YourPythonObject.to_proto,
   *                                from_proto=YourPythonObject.from_proto)
   *    These functions will be invoked to serialize and de-serialize the
   *    collection. For example,
   *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
   *                                proto_type=variable_pb2.VariableDef,
   *                                to_proto=Variable.to_proto,
   *                                from_proto=Variable.from_proto)
   * </pre>
   *
   * Protobuf type {@code tensorflow.CollectionDef}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef)
      org.tensorflow.proto.framework.CollectionDefOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.CollectionDef.class, org.tensorflow.proto.framework.CollectionDef.Builder.class);
    }

    // Construct using org.tensorflow.proto.framework.CollectionDef.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      kindCase_ = 0;
      kind_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef getDefaultInstanceForType() {
      return org.tensorflow.proto.framework.CollectionDef.getDefaultInstance();
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef build() {
      org.tensorflow.proto.framework.CollectionDef result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.CollectionDef buildPartial() {
      org.tensorflow.proto.framework.CollectionDef result = new org.tensorflow.proto.framework.CollectionDef(this);
      if (kindCase_ == 1) {
        if (nodeListBuilder_ == null) {
          result.kind_ = kind_;
        } else {
          result.kind_ = nodeListBuilder_.build();
        }
      }
      if (kindCase_ == 2) {
        if (bytesListBuilder_ == null) {
          result.kind_ = kind_;
        } else {
          result.kind_ = bytesListBuilder_.build();
        }
      }
      if (kindCase_ == 3) {
        if (int64ListBuilder_ == null) {
          result.kind_ = kind_;
        } else {
          result.kind_ = int64ListBuilder_.build();
        }
      }
      if (kindCase_ == 4) {
        if (floatListBuilder_ == null) {
          result.kind_ = kind_;
        } else {
          result.kind_ = floatListBuilder_.build();
        }
      }
      if (kindCase_ == 5) {
        if (anyListBuilder_ == null) {
          result.kind_ = kind_;
        } else {
          result.kind_ = anyListBuilder_.build();
        }
      }
      result.kindCase_ = kindCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.tensorflow.proto.framework.CollectionDef) {
        return mergeFrom((org.tensorflow.proto.framework.CollectionDef)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef other) {
      if (other == org.tensorflow.proto.framework.CollectionDef.getDefaultInstance()) return this;
      switch (other.getKindCase()) {
        case NODE_LIST: {
          mergeNodeList(other.getNodeList());
          break;
        }
        case BYTES_LIST: {
          mergeBytesList(other.getBytesList());
          break;
        }
        case INT64_LIST: {
          mergeInt64List(other.getInt64List());
          break;
        }
        case FLOAT_LIST: {
          mergeFloatList(other.getFloatList());
          break;
        }
        case ANY_LIST: {
          mergeAnyList(other.getAnyList());
          break;
        }
        case KIND_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      org.tensorflow.proto.framework.CollectionDef parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.framework.CollectionDef) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int kindCase_ = 0;
    private java.lang.Object kind_;
    public KindCase
        getKindCase() {
      return KindCase.forNumber(
          kindCase_);
    }

    public Builder clearKind() {
      kindCase_ = 0;
      kind_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder> nodeListBuilder_;
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public boolean hasNodeList() {
      return kindCase_ == 1;
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.NodeList getNodeList() {
      if (nodeListBuilder_ == null) {
        if (kindCase_ == 1) {
          return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
      } else {
        if (kindCase_ == 1) {
          return nodeListBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public Builder setNodeList(org.tensorflow.proto.framework.CollectionDef.NodeList value) {
      if (nodeListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kind_ = value;
        onChanged();
      } else {
        nodeListBuilder_.setMessage(value);
      }
      kindCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public Builder setNodeList(
        org.tensorflow.proto.framework.CollectionDef.NodeList.Builder builderForValue) {
      if (nodeListBuilder_ == null) {
        kind_ = builderForValue.build();
        onChanged();
      } else {
        nodeListBuilder_.setMessage(builderForValue.build());
      }
      kindCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public Builder mergeNodeList(org.tensorflow.proto.framework.CollectionDef.NodeList value) {
      if (nodeListBuilder_ == null) {
        if (kindCase_ == 1 &&
            kind_ != org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance()) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.NodeList.newBuilder((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_)
              .mergeFrom(value).buildPartial();
        } else {
          kind_ = value;
        }
        onChanged();
      } else {
        if (kindCase_ == 1) {
          nodeListBuilder_.mergeFrom(value);
        }
        nodeListBuilder_.setMessage(value);
      }
      kindCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public Builder clearNodeList() {
      if (nodeListBuilder_ == null) {
        if (kindCase_ == 1) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
      } else {
        if (kindCase_ == 1) {
          kindCase_ = 0;
          kind_ = null;
        }
        nodeListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.NodeList.Builder getNodeListBuilder() {
      return getNodeListFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() {
      if ((kindCase_ == 1) && (nodeListBuilder_ != null)) {
        return nodeListBuilder_.getMessageOrBuilder();
      } else {
        if (kindCase_ == 1) {
          return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.NodeList node_list = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder> 
        getNodeListFieldBuilder() {
      if (nodeListBuilder_ == null) {
        if (!(kindCase_ == 1)) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance();
        }
        nodeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder>(
                (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_,
                getParentForChildren(),
                isClean());
        kind_ = null;
      }
      kindCase_ = 1;
      onChanged();;
      return nodeListBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder> bytesListBuilder_;
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public boolean hasBytesList() {
      return kindCase_ == 2;
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.BytesList getBytesList() {
      if (bytesListBuilder_ == null) {
        if (kindCase_ == 2) {
          return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
      } else {
        if (kindCase_ == 2) {
          return bytesListBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public Builder setBytesList(org.tensorflow.proto.framework.CollectionDef.BytesList value) {
      if (bytesListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kind_ = value;
        onChanged();
      } else {
        bytesListBuilder_.setMessage(value);
      }
      kindCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public Builder setBytesList(
        org.tensorflow.proto.framework.CollectionDef.BytesList.Builder builderForValue) {
      if (bytesListBuilder_ == null) {
        kind_ = builderForValue.build();
        onChanged();
      } else {
        bytesListBuilder_.setMessage(builderForValue.build());
      }
      kindCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public Builder mergeBytesList(org.tensorflow.proto.framework.CollectionDef.BytesList value) {
      if (bytesListBuilder_ == null) {
        if (kindCase_ == 2 &&
            kind_ != org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance()) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.BytesList.newBuilder((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_)
              .mergeFrom(value).buildPartial();
        } else {
          kind_ = value;
        }
        onChanged();
      } else {
        if (kindCase_ == 2) {
          bytesListBuilder_.mergeFrom(value);
        }
        bytesListBuilder_.setMessage(value);
      }
      kindCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public Builder clearBytesList() {
      if (bytesListBuilder_ == null) {
        if (kindCase_ == 2) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
      } else {
        if (kindCase_ == 2) {
          kindCase_ = 0;
          kind_ = null;
        }
        bytesListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.BytesList.Builder getBytesListBuilder() {
      return getBytesListFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() {
      if ((kindCase_ == 2) && (bytesListBuilder_ != null)) {
        return bytesListBuilder_.getMessageOrBuilder();
      } else {
        if (kindCase_ == 2) {
          return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.BytesList bytes_list = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder> 
        getBytesListFieldBuilder() {
      if (bytesListBuilder_ == null) {
        if (!(kindCase_ == 2)) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance();
        }
        bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder>(
                (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_,
                getParentForChildren(),
                isClean());
        kind_ = null;
      }
      kindCase_ = 2;
      onChanged();;
      return bytesListBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder> int64ListBuilder_;
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public boolean hasInt64List() {
      return kindCase_ == 3;
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.Int64List getInt64List() {
      if (int64ListBuilder_ == null) {
        if (kindCase_ == 3) {
          return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
      } else {
        if (kindCase_ == 3) {
          return int64ListBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public Builder setInt64List(org.tensorflow.proto.framework.CollectionDef.Int64List value) {
      if (int64ListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kind_ = value;
        onChanged();
      } else {
        int64ListBuilder_.setMessage(value);
      }
      kindCase_ = 3;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public Builder setInt64List(
        org.tensorflow.proto.framework.CollectionDef.Int64List.Builder builderForValue) {
      if (int64ListBuilder_ == null) {
        kind_ = builderForValue.build();
        onChanged();
      } else {
        int64ListBuilder_.setMessage(builderForValue.build());
      }
      kindCase_ = 3;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public Builder mergeInt64List(org.tensorflow.proto.framework.CollectionDef.Int64List value) {
      if (int64ListBuilder_ == null) {
        if (kindCase_ == 3 &&
            kind_ != org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance()) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.Int64List.newBuilder((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_)
              .mergeFrom(value).buildPartial();
        } else {
          kind_ = value;
        }
        onChanged();
      } else {
        if (kindCase_ == 3) {
          int64ListBuilder_.mergeFrom(value);
        }
        int64ListBuilder_.setMessage(value);
      }
      kindCase_ = 3;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public Builder clearInt64List() {
      if (int64ListBuilder_ == null) {
        if (kindCase_ == 3) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
      } else {
        if (kindCase_ == 3) {
          kindCase_ = 0;
          kind_ = null;
        }
        int64ListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.Int64List.Builder getInt64ListBuilder() {
      return getInt64ListFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() {
      if ((kindCase_ == 3) && (int64ListBuilder_ != null)) {
        return int64ListBuilder_.getMessageOrBuilder();
      } else {
        if (kindCase_ == 3) {
          return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.Int64List int64_list = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder> 
        getInt64ListFieldBuilder() {
      if (int64ListBuilder_ == null) {
        if (!(kindCase_ == 3)) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance();
        }
        int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder>(
                (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_,
                getParentForChildren(),
                isClean());
        kind_ = null;
      }
      kindCase_ = 3;
      onChanged();;
      return int64ListBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder> floatListBuilder_;
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public boolean hasFloatList() {
      return kindCase_ == 4;
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.FloatList getFloatList() {
      if (floatListBuilder_ == null) {
        if (kindCase_ == 4) {
          return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
      } else {
        if (kindCase_ == 4) {
          return floatListBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public Builder setFloatList(org.tensorflow.proto.framework.CollectionDef.FloatList value) {
      if (floatListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kind_ = value;
        onChanged();
      } else {
        floatListBuilder_.setMessage(value);
      }
      kindCase_ = 4;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public Builder setFloatList(
        org.tensorflow.proto.framework.CollectionDef.FloatList.Builder builderForValue) {
      if (floatListBuilder_ == null) {
        kind_ = builderForValue.build();
        onChanged();
      } else {
        floatListBuilder_.setMessage(builderForValue.build());
      }
      kindCase_ = 4;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public Builder mergeFloatList(org.tensorflow.proto.framework.CollectionDef.FloatList value) {
      if (floatListBuilder_ == null) {
        if (kindCase_ == 4 &&
            kind_ != org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance()) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.FloatList.newBuilder((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_)
              .mergeFrom(value).buildPartial();
        } else {
          kind_ = value;
        }
        onChanged();
      } else {
        if (kindCase_ == 4) {
          floatListBuilder_.mergeFrom(value);
        }
        floatListBuilder_.setMessage(value);
      }
      kindCase_ = 4;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public Builder clearFloatList() {
      if (floatListBuilder_ == null) {
        if (kindCase_ == 4) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
      } else {
        if (kindCase_ == 4) {
          kindCase_ = 0;
          kind_ = null;
        }
        floatListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.FloatList.Builder getFloatListBuilder() {
      return getFloatListFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() {
      if ((kindCase_ == 4) && (floatListBuilder_ != null)) {
        return floatListBuilder_.getMessageOrBuilder();
      } else {
        if (kindCase_ == 4) {
          return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.FloatList float_list = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder> 
        getFloatListFieldBuilder() {
      if (floatListBuilder_ == null) {
        if (!(kindCase_ == 4)) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance();
        }
        floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder>(
                (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_,
                getParentForChildren(),
                isClean());
        kind_ = null;
      }
      kindCase_ = 4;
      onChanged();;
      return floatListBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder> anyListBuilder_;
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public boolean hasAnyList() {
      return kindCase_ == 5;
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.AnyList getAnyList() {
      if (anyListBuilder_ == null) {
        if (kindCase_ == 5) {
          return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
      } else {
        if (kindCase_ == 5) {
          return anyListBuilder_.getMessage();
        }
        return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public Builder setAnyList(org.tensorflow.proto.framework.CollectionDef.AnyList value) {
      if (anyListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kind_ = value;
        onChanged();
      } else {
        anyListBuilder_.setMessage(value);
      }
      kindCase_ = 5;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public Builder setAnyList(
        org.tensorflow.proto.framework.CollectionDef.AnyList.Builder builderForValue) {
      if (anyListBuilder_ == null) {
        kind_ = builderForValue.build();
        onChanged();
      } else {
        anyListBuilder_.setMessage(builderForValue.build());
      }
      kindCase_ = 5;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public Builder mergeAnyList(org.tensorflow.proto.framework.CollectionDef.AnyList value) {
      if (anyListBuilder_ == null) {
        if (kindCase_ == 5 &&
            kind_ != org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance()) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.AnyList.newBuilder((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_)
              .mergeFrom(value).buildPartial();
        } else {
          kind_ = value;
        }
        onChanged();
      } else {
        if (kindCase_ == 5) {
          anyListBuilder_.mergeFrom(value);
        }
        anyListBuilder_.setMessage(value);
      }
      kindCase_ = 5;
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public Builder clearAnyList() {
      if (anyListBuilder_ == null) {
        if (kindCase_ == 5) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
      } else {
        if (kindCase_ == 5) {
          kindCase_ = 0;
          kind_ = null;
        }
        anyListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.AnyList.Builder getAnyListBuilder() {
      return getAnyListFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    public org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() {
      if ((kindCase_ == 5) && (anyListBuilder_ != null)) {
        return anyListBuilder_.getMessageOrBuilder();
      } else {
        if (kindCase_ == 5) {
          return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_;
        }
        return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.CollectionDef.AnyList any_list = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder> 
        getAnyListFieldBuilder() {
      if (anyListBuilder_ == null) {
        if (!(kindCase_ == 5)) {
          kind_ = org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance();
        }
        anyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder>(
                (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_,
                getParentForChildren(),
                isClean());
        kind_ = null;
      }
      kindCase_ = 5;
      onChanged();;
      return anyListBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef)
  }

  // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef)
  private static final org.tensorflow.proto.framework.CollectionDef DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef();
  }

  public static org.tensorflow.proto.framework.CollectionDef getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public org.tensorflow.proto.framework.CollectionDef getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

