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

package org.tensorflow.proto.data.model;

/**
 * <pre>
 * Protocol buffer representing the data used by the autotuning modeling
 * framework.
 * </pre>
 *
 * Protobuf type {@code tensorflow.data.model.ModelProto}
 */
public  final class ModelProto extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto)
    ModelProtoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ModelProto.newBuilder() to construct.
  private ModelProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ModelProto() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ModelProto(
      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)) {
              nodes_ = com.google.protobuf.MapField.newMapField(
                  NodesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
            nodes__ = input.readMessage(
                NodesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            nodes_.getMutableMap().put(
                nodes__.getKey(), nodes__.getValue());
            break;
          }
          case 16: {

            output_ = input.readInt64();
            break;
          }
          case 24: {

            idCounter_ = input.readInt64();
            break;
          }
          case 42: {
            org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder subBuilder = null;
            if (optimizationParams_ != null) {
              subBuilder = optimizationParams_.toBuilder();
            }
            optimizationParams_ = input.readMessage(org.tensorflow.proto.data.model.ModelProto.OptimizationParams.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(optimizationParams_);
              optimizationParams_ = subBuilder.buildPartial();
            }

            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.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 1:
        return internalGetNodes();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.data.model.ModelProto.class, org.tensorflow.proto.data.model.ModelProto.Builder.class);
  }

  public interface NodeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Unique node ID.
     * </pre>
     *
     * <code>int64 id = 1;</code>
     */
    long getId();

    /**
     * <pre>
     * Human-readable name of the node.
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    java.lang.String getName();
    /**
     * <pre>
     * Human-readable name of the node.
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     * An indication whether autotuning is enabled for this node.
     * </pre>
     *
     * <code>bool autotune = 3;</code>
     */
    boolean getAutotune();

    /**
     * <pre>
     * The number of bytes stored in this node's buffer.
     * </pre>
     *
     * <code>int64 buffered_bytes = 4;</code>
     */
    long getBufferedBytes();

    /**
     * <pre>
     * The number of elements stored in this node's buffer.
     * </pre>
     *
     * <code>int64 buffered_elements = 5;</code>
     */
    long getBufferedElements();

    /**
     * <pre>
     * The number of bytes consumed by the node.
     * </pre>
     *
     * <code>int64 bytes_consumed = 6;</code>
     */
    long getBytesConsumed();

    /**
     * <pre>
     * The number of bytes produced by the node.
     * </pre>
     *
     * <code>int64 bytes_produced = 7;</code>
     */
    long getBytesProduced();

    /**
     * <pre>
     * The number of elements produced by the node.
     * </pre>
     *
     * <code>int64 num_elements = 8;</code>
     */
    long getNumElements();

    /**
     * <pre>
     * The aggregate processing time spent in this node.
     * </pre>
     *
     * <code>int64 processing_time = 9;</code>
     */
    long getProcessingTime();

    /**
     * <pre>
     * An indication whether this node records metrics about produced and
     * consumed elements.
     * </pre>
     *
     * <code>bool record_metrics = 10;</code>
     */
    boolean getRecordMetrics();

    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter> 
        getParametersList();
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index);
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    int getParametersCount();
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    java.util.List<? extends org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> 
        getParametersOrBuilderList();
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder(
        int index);

    /**
     * <pre>
     * Statistic of inputs processing time history.
     * </pre>
     *
     * <code>double input_processing_time_sum = 12;</code>
     */
    double getInputProcessingTimeSum();

    /**
     * <code>int64 input_processing_time_count = 13;</code>
     */
    long getInputProcessingTimeCount();

    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    java.util.List<java.lang.Long> getInputsList();
    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    int getInputsCount();
    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    long getInputs(int index);

    /**
     * <pre>
     * Class of this node.
     * </pre>
     *
     * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
     */
    int getNodeClassValue();
    /**
     * <pre>
     * Class of this node.
     * </pre>
     *
     * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
     */
    org.tensorflow.proto.data.model.NodeClass getNodeClass();

    /**
     * <pre>
     * Ratio of input to output elements. This is only used by KNOWN_RATIO and
     * ASYNC_KNOWN_RATIO nodes.
     * </pre>
     *
     * <code>double ratio = 16;</code>
     */
    double getRatio();

    /**
     * <pre>
     * Ratio identifies how many parallelism calls are introduced by one
     * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
     * </pre>
     *
     * <code>double memory_ratio = 17;</code>
     */
    double getMemoryRatio();
  }
  /**
   * <pre>
   * General representation of a node in the model.
   * </pre>
   *
   * Protobuf type {@code tensorflow.data.model.ModelProto.Node}
   */
  public  static final class Node extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node)
      NodeOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Node.newBuilder() to construct.
    private Node(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Node() {
      name_ = "";
      parameters_ = java.util.Collections.emptyList();
      inputs_ = emptyLongList();
      nodeClass_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Node(
        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: {

              id_ = input.readInt64();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            case 24: {

              autotune_ = input.readBool();
              break;
            }
            case 32: {

              bufferedBytes_ = input.readInt64();
              break;
            }
            case 40: {

              bufferedElements_ = input.readInt64();
              break;
            }
            case 48: {

              bytesConsumed_ = input.readInt64();
              break;
            }
            case 56: {

              bytesProduced_ = input.readInt64();
              break;
            }
            case 64: {

              numElements_ = input.readInt64();
              break;
            }
            case 72: {

              processingTime_ = input.readInt64();
              break;
            }
            case 80: {

              recordMetrics_ = input.readBool();
              break;
            }
            case 90: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                parameters_ = new java.util.ArrayList<org.tensorflow.proto.data.model.ModelProto.Node.Parameter>();
                mutable_bitField0_ |= 0x00000001;
              }
              parameters_.add(
                  input.readMessage(org.tensorflow.proto.data.model.ModelProto.Node.Parameter.parser(), extensionRegistry));
              break;
            }
            case 97: {

              inputProcessingTimeSum_ = input.readDouble();
              break;
            }
            case 104: {

              inputProcessingTimeCount_ = input.readInt64();
              break;
            }
            case 112: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                inputs_ = newLongList();
                mutable_bitField0_ |= 0x00000002;
              }
              inputs_.addLong(input.readInt64());
              break;
            }
            case 114: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
                inputs_ = newLongList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                inputs_.addLong(input.readInt64());
              }
              input.popLimit(limit);
              break;
            }
            case 120: {
              int rawValue = input.readEnum();

              nodeClass_ = rawValue;
              break;
            }
            case 129: {

              ratio_ = input.readDouble();
              break;
            }
            case 137: {

              memoryRatio_ = input.readDouble();
              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)) {
          parameters_ = java.util.Collections.unmodifiableList(parameters_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          inputs_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.data.model.ModelProto.Node.class, org.tensorflow.proto.data.model.ModelProto.Node.Builder.class);
    }

    public interface ParameterOrBuilder extends
        // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node.Parameter)
        com.google.protobuf.MessageOrBuilder {

      /**
       * <pre>
       * Human-readable name of the parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      java.lang.String getName();
      /**
       * <pre>
       * Human-readable name of the parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      com.google.protobuf.ByteString
          getNameBytes();

      /**
       * <pre>
       * Identifies the model value of the parameter. This can be different from
       * the actual value (e.g. during optimization search).
       * </pre>
       *
       * <code>double value = 2;</code>
       */
      double getValue();

      /**
       * <pre>
       * The actual value of the parameter.
       * </pre>
       *
       * <code>double state_value = 3;</code>
       */
      double getStateValue();

      /**
       * <pre>
       * Minimum value of the parameter.
       * </pre>
       *
       * <code>double min = 4;</code>
       */
      double getMin();

      /**
       * <pre>
       * Maximum value of the parameter.
       * </pre>
       *
       * <code>double max = 5;</code>
       */
      double getMax();

      /**
       * <pre>
       * Identifies whether the parameter should participate in autotuning.
       * </pre>
       *
       * <code>bool tunable = 6;</code>
       */
      boolean getTunable();
    }
    /**
     * <pre>
     * Represents a node parameter.
     * </pre>
     *
     * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter}
     */
    public  static final class Parameter extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node.Parameter)
        ParameterOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Parameter.newBuilder() to construct.
      private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private Parameter() {
        name_ = "";
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Parameter(
          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: {
                java.lang.String s = input.readStringRequireUtf8();

                name_ = s;
                break;
              }
              case 17: {

                value_ = input.readDouble();
                break;
              }
              case 25: {

                stateValue_ = input.readDouble();
                break;
              }
              case 33: {

                min_ = input.readDouble();
                break;
              }
              case 41: {

                max_ = input.readDouble();
                break;
              }
              case 48: {

                tunable_ = input.readBool();
                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.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.data.model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder.class);
      }

      public static final int NAME_FIELD_NUMBER = 1;
      private volatile java.lang.Object name_;
      /**
       * <pre>
       * Human-readable name of the parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        }
      }
      /**
       * <pre>
       * Human-readable name of the parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int VALUE_FIELD_NUMBER = 2;
      private double value_;
      /**
       * <pre>
       * Identifies the model value of the parameter. This can be different from
       * the actual value (e.g. during optimization search).
       * </pre>
       *
       * <code>double value = 2;</code>
       */
      public double getValue() {
        return value_;
      }

      public static final int STATE_VALUE_FIELD_NUMBER = 3;
      private double stateValue_;
      /**
       * <pre>
       * The actual value of the parameter.
       * </pre>
       *
       * <code>double state_value = 3;</code>
       */
      public double getStateValue() {
        return stateValue_;
      }

      public static final int MIN_FIELD_NUMBER = 4;
      private double min_;
      /**
       * <pre>
       * Minimum value of the parameter.
       * </pre>
       *
       * <code>double min = 4;</code>
       */
      public double getMin() {
        return min_;
      }

      public static final int MAX_FIELD_NUMBER = 5;
      private double max_;
      /**
       * <pre>
       * Maximum value of the parameter.
       * </pre>
       *
       * <code>double max = 5;</code>
       */
      public double getMax() {
        return max_;
      }

      public static final int TUNABLE_FIELD_NUMBER = 6;
      private boolean tunable_;
      /**
       * <pre>
       * Identifies whether the parameter should participate in autotuning.
       * </pre>
       *
       * <code>bool tunable = 6;</code>
       */
      public boolean getTunable() {
        return tunable_;
      }

      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 (!getNameBytes().isEmpty()) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
        }
        if (value_ != 0D) {
          output.writeDouble(2, value_);
        }
        if (stateValue_ != 0D) {
          output.writeDouble(3, stateValue_);
        }
        if (min_ != 0D) {
          output.writeDouble(4, min_);
        }
        if (max_ != 0D) {
          output.writeDouble(5, max_);
        }
        if (tunable_ != false) {
          output.writeBool(6, tunable_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!getNameBytes().isEmpty()) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
        }
        if (value_ != 0D) {
          size += com.google.protobuf.CodedOutputStream
            .computeDoubleSize(2, value_);
        }
        if (stateValue_ != 0D) {
          size += com.google.protobuf.CodedOutputStream
            .computeDoubleSize(3, stateValue_);
        }
        if (min_ != 0D) {
          size += com.google.protobuf.CodedOutputStream
            .computeDoubleSize(4, min_);
        }
        if (max_ != 0D) {
          size += com.google.protobuf.CodedOutputStream
            .computeDoubleSize(5, max_);
        }
        if (tunable_ != false) {
          size += com.google.protobuf.CodedOutputStream
            .computeBoolSize(6, tunable_);
        }
        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.data.model.ModelProto.Node.Parameter)) {
          return super.equals(obj);
        }
        org.tensorflow.proto.data.model.ModelProto.Node.Parameter other = (org.tensorflow.proto.data.model.ModelProto.Node.Parameter) obj;

        if (!getName()
            .equals(other.getName())) return false;
        if (java.lang.Double.doubleToLongBits(getValue())
            != java.lang.Double.doubleToLongBits(
                other.getValue())) return false;
        if (java.lang.Double.doubleToLongBits(getStateValue())
            != java.lang.Double.doubleToLongBits(
                other.getStateValue())) return false;
        if (java.lang.Double.doubleToLongBits(getMin())
            != java.lang.Double.doubleToLongBits(
                other.getMin())) return false;
        if (java.lang.Double.doubleToLongBits(getMax())
            != java.lang.Double.doubleToLongBits(
                other.getMax())) return false;
        if (getTunable()
            != other.getTunable()) 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();
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getValue()));
        hash = (37 * hash) + STATE_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getStateValue()));
        hash = (37 * hash) + MIN_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getMin()));
        hash = (37 * hash) + MAX_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getMax()));
        hash = (37 * hash) + TUNABLE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getTunable());
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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.data.model.ModelProto.Node.Parameter parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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.data.model.ModelProto.Node.Parameter parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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.data.model.ModelProto.Node.Parameter parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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.data.model.ModelProto.Node.Parameter parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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.data.model.ModelProto.Node.Parameter 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>
       * Represents a node parameter.
       * </pre>
       *
       * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node.Parameter)
          org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  org.tensorflow.proto.data.model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder.class);
        }

        // Construct using org.tensorflow.proto.data.model.ModelProto.Node.Parameter.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();
          name_ = "";

          value_ = 0D;

          stateValue_ = 0D;

          min_ = 0D;

          max_ = 0D;

          tunable_ = false;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor;
        }

        @java.lang.Override
        public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstanceForType() {
          return org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance();
        }

        @java.lang.Override
        public org.tensorflow.proto.data.model.ModelProto.Node.Parameter build() {
          org.tensorflow.proto.data.model.ModelProto.Node.Parameter result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public org.tensorflow.proto.data.model.ModelProto.Node.Parameter buildPartial() {
          org.tensorflow.proto.data.model.ModelProto.Node.Parameter result = new org.tensorflow.proto.data.model.ModelProto.Node.Parameter(this);
          result.name_ = name_;
          result.value_ = value_;
          result.stateValue_ = stateValue_;
          result.min_ = min_;
          result.max_ = max_;
          result.tunable_ = tunable_;
          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.data.model.ModelProto.Node.Parameter) {
            return mergeFrom((org.tensorflow.proto.data.model.ModelProto.Node.Parameter)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.Node.Parameter other) {
          if (other == org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance()) return this;
          if (!other.getName().isEmpty()) {
            name_ = other.name_;
            onChanged();
          }
          if (other.getValue() != 0D) {
            setValue(other.getValue());
          }
          if (other.getStateValue() != 0D) {
            setStateValue(other.getStateValue());
          }
          if (other.getMin() != 0D) {
            setMin(other.getMin());
          }
          if (other.getMax() != 0D) {
            setMax(other.getMax());
          }
          if (other.getTunable() != false) {
            setTunable(other.getTunable());
          }
          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.data.model.ModelProto.Node.Parameter parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (org.tensorflow.proto.data.model.ModelProto.Node.Parameter) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }

        private java.lang.Object name_ = "";
        /**
         * <pre>
         * Human-readable name of the parameter.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public java.lang.String getName() {
          java.lang.Object ref = name_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            name_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <pre>
         * Human-readable name of the parameter.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public com.google.protobuf.ByteString
            getNameBytes() {
          java.lang.Object ref = name_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            name_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <pre>
         * Human-readable name of the parameter.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder setName(
            java.lang.String value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          name_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Human-readable name of the parameter.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder clearName() {
          
          name_ = getDefaultInstance().getName();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Human-readable name of the parameter.
         * </pre>
         *
         * <code>string name = 1;</code>
         */
        public Builder setNameBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
          
          name_ = value;
          onChanged();
          return this;
        }

        private double value_ ;
        /**
         * <pre>
         * Identifies the model value of the parameter. This can be different from
         * the actual value (e.g. during optimization search).
         * </pre>
         *
         * <code>double value = 2;</code>
         */
        public double getValue() {
          return value_;
        }
        /**
         * <pre>
         * Identifies the model value of the parameter. This can be different from
         * the actual value (e.g. during optimization search).
         * </pre>
         *
         * <code>double value = 2;</code>
         */
        public Builder setValue(double value) {
          
          value_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Identifies the model value of the parameter. This can be different from
         * the actual value (e.g. during optimization search).
         * </pre>
         *
         * <code>double value = 2;</code>
         */
        public Builder clearValue() {
          
          value_ = 0D;
          onChanged();
          return this;
        }

        private double stateValue_ ;
        /**
         * <pre>
         * The actual value of the parameter.
         * </pre>
         *
         * <code>double state_value = 3;</code>
         */
        public double getStateValue() {
          return stateValue_;
        }
        /**
         * <pre>
         * The actual value of the parameter.
         * </pre>
         *
         * <code>double state_value = 3;</code>
         */
        public Builder setStateValue(double value) {
          
          stateValue_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * The actual value of the parameter.
         * </pre>
         *
         * <code>double state_value = 3;</code>
         */
        public Builder clearStateValue() {
          
          stateValue_ = 0D;
          onChanged();
          return this;
        }

        private double min_ ;
        /**
         * <pre>
         * Minimum value of the parameter.
         * </pre>
         *
         * <code>double min = 4;</code>
         */
        public double getMin() {
          return min_;
        }
        /**
         * <pre>
         * Minimum value of the parameter.
         * </pre>
         *
         * <code>double min = 4;</code>
         */
        public Builder setMin(double value) {
          
          min_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Minimum value of the parameter.
         * </pre>
         *
         * <code>double min = 4;</code>
         */
        public Builder clearMin() {
          
          min_ = 0D;
          onChanged();
          return this;
        }

        private double max_ ;
        /**
         * <pre>
         * Maximum value of the parameter.
         * </pre>
         *
         * <code>double max = 5;</code>
         */
        public double getMax() {
          return max_;
        }
        /**
         * <pre>
         * Maximum value of the parameter.
         * </pre>
         *
         * <code>double max = 5;</code>
         */
        public Builder setMax(double value) {
          
          max_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Maximum value of the parameter.
         * </pre>
         *
         * <code>double max = 5;</code>
         */
        public Builder clearMax() {
          
          max_ = 0D;
          onChanged();
          return this;
        }

        private boolean tunable_ ;
        /**
         * <pre>
         * Identifies whether the parameter should participate in autotuning.
         * </pre>
         *
         * <code>bool tunable = 6;</code>
         */
        public boolean getTunable() {
          return tunable_;
        }
        /**
         * <pre>
         * Identifies whether the parameter should participate in autotuning.
         * </pre>
         *
         * <code>bool tunable = 6;</code>
         */
        public Builder setTunable(boolean value) {
          
          tunable_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Identifies whether the parameter should participate in autotuning.
         * </pre>
         *
         * <code>bool tunable = 6;</code>
         */
        public Builder clearTunable() {
          
          tunable_ = false;
          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.data.model.ModelProto.Node.Parameter)
      }

      // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node.Parameter)
      private static final org.tensorflow.proto.data.model.ModelProto.Node.Parameter DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.Node.Parameter();
      }

      public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

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

      @java.lang.Override
      public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * <pre>
     * Unique node ID.
     * </pre>
     *
     * <code>int64 id = 1;</code>
     */
    public long getId() {
      return id_;
    }

    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * <pre>
     * Human-readable name of the node.
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Human-readable name of the node.
     * </pre>
     *
     * <code>string name = 2;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int AUTOTUNE_FIELD_NUMBER = 3;
    private boolean autotune_;
    /**
     * <pre>
     * An indication whether autotuning is enabled for this node.
     * </pre>
     *
     * <code>bool autotune = 3;</code>
     */
    public boolean getAutotune() {
      return autotune_;
    }

    public static final int BUFFERED_BYTES_FIELD_NUMBER = 4;
    private long bufferedBytes_;
    /**
     * <pre>
     * The number of bytes stored in this node's buffer.
     * </pre>
     *
     * <code>int64 buffered_bytes = 4;</code>
     */
    public long getBufferedBytes() {
      return bufferedBytes_;
    }

    public static final int BUFFERED_ELEMENTS_FIELD_NUMBER = 5;
    private long bufferedElements_;
    /**
     * <pre>
     * The number of elements stored in this node's buffer.
     * </pre>
     *
     * <code>int64 buffered_elements = 5;</code>
     */
    public long getBufferedElements() {
      return bufferedElements_;
    }

    public static final int BYTES_CONSUMED_FIELD_NUMBER = 6;
    private long bytesConsumed_;
    /**
     * <pre>
     * The number of bytes consumed by the node.
     * </pre>
     *
     * <code>int64 bytes_consumed = 6;</code>
     */
    public long getBytesConsumed() {
      return bytesConsumed_;
    }

    public static final int BYTES_PRODUCED_FIELD_NUMBER = 7;
    private long bytesProduced_;
    /**
     * <pre>
     * The number of bytes produced by the node.
     * </pre>
     *
     * <code>int64 bytes_produced = 7;</code>
     */
    public long getBytesProduced() {
      return bytesProduced_;
    }

    public static final int NUM_ELEMENTS_FIELD_NUMBER = 8;
    private long numElements_;
    /**
     * <pre>
     * The number of elements produced by the node.
     * </pre>
     *
     * <code>int64 num_elements = 8;</code>
     */
    public long getNumElements() {
      return numElements_;
    }

    public static final int PROCESSING_TIME_FIELD_NUMBER = 9;
    private long processingTime_;
    /**
     * <pre>
     * The aggregate processing time spent in this node.
     * </pre>
     *
     * <code>int64 processing_time = 9;</code>
     */
    public long getProcessingTime() {
      return processingTime_;
    }

    public static final int RECORD_METRICS_FIELD_NUMBER = 10;
    private boolean recordMetrics_;
    /**
     * <pre>
     * An indication whether this node records metrics about produced and
     * consumed elements.
     * </pre>
     *
     * <code>bool record_metrics = 10;</code>
     */
    public boolean getRecordMetrics() {
      return recordMetrics_;
    }

    public static final int PARAMETERS_FIELD_NUMBER = 11;
    private java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter> parameters_;
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    public java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter> getParametersList() {
      return parameters_;
    }
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    public java.util.List<? extends org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> 
        getParametersOrBuilderList() {
      return parameters_;
    }
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    public int getParametersCount() {
      return parameters_.size();
    }
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index) {
      return parameters_.get(index);
    }
    /**
     * <pre>
     * Parameters of this node.
     * </pre>
     *
     * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
     */
    public org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder(
        int index) {
      return parameters_.get(index);
    }

    public static final int INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER = 12;
    private double inputProcessingTimeSum_;
    /**
     * <pre>
     * Statistic of inputs processing time history.
     * </pre>
     *
     * <code>double input_processing_time_sum = 12;</code>
     */
    public double getInputProcessingTimeSum() {
      return inputProcessingTimeSum_;
    }

    public static final int INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER = 13;
    private long inputProcessingTimeCount_;
    /**
     * <code>int64 input_processing_time_count = 13;</code>
     */
    public long getInputProcessingTimeCount() {
      return inputProcessingTimeCount_;
    }

    public static final int INPUTS_FIELD_NUMBER = 14;
    private com.google.protobuf.Internal.LongList inputs_;
    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    public java.util.List<java.lang.Long>
        getInputsList() {
      return inputs_;
    }
    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    public int getInputsCount() {
      return inputs_.size();
    }
    /**
     * <pre>
     * IDs of inputs of this node.
     * </pre>
     *
     * <code>repeated int64 inputs = 14;</code>
     */
    public long getInputs(int index) {
      return inputs_.getLong(index);
    }
    private int inputsMemoizedSerializedSize = -1;

    public static final int NODE_CLASS_FIELD_NUMBER = 15;
    private int nodeClass_;
    /**
     * <pre>
     * Class of this node.
     * </pre>
     *
     * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
     */
    public int getNodeClassValue() {
      return nodeClass_;
    }
    /**
     * <pre>
     * Class of this node.
     * </pre>
     *
     * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
     */
    public org.tensorflow.proto.data.model.NodeClass getNodeClass() {
      @SuppressWarnings("deprecation")
      org.tensorflow.proto.data.model.NodeClass result = org.tensorflow.proto.data.model.NodeClass.valueOf(nodeClass_);
      return result == null ? org.tensorflow.proto.data.model.NodeClass.UNRECOGNIZED : result;
    }

    public static final int RATIO_FIELD_NUMBER = 16;
    private double ratio_;
    /**
     * <pre>
     * Ratio of input to output elements. This is only used by KNOWN_RATIO and
     * ASYNC_KNOWN_RATIO nodes.
     * </pre>
     *
     * <code>double ratio = 16;</code>
     */
    public double getRatio() {
      return ratio_;
    }

    public static final int MEMORY_RATIO_FIELD_NUMBER = 17;
    private double memoryRatio_;
    /**
     * <pre>
     * Ratio identifies how many parallelism calls are introduced by one
     * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
     * </pre>
     *
     * <code>double memory_ratio = 17;</code>
     */
    public double getMemoryRatio() {
      return memoryRatio_;
    }

    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 (id_ != 0L) {
        output.writeInt64(1, id_);
      }
      if (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (autotune_ != false) {
        output.writeBool(3, autotune_);
      }
      if (bufferedBytes_ != 0L) {
        output.writeInt64(4, bufferedBytes_);
      }
      if (bufferedElements_ != 0L) {
        output.writeInt64(5, bufferedElements_);
      }
      if (bytesConsumed_ != 0L) {
        output.writeInt64(6, bytesConsumed_);
      }
      if (bytesProduced_ != 0L) {
        output.writeInt64(7, bytesProduced_);
      }
      if (numElements_ != 0L) {
        output.writeInt64(8, numElements_);
      }
      if (processingTime_ != 0L) {
        output.writeInt64(9, processingTime_);
      }
      if (recordMetrics_ != false) {
        output.writeBool(10, recordMetrics_);
      }
      for (int i = 0; i < parameters_.size(); i++) {
        output.writeMessage(11, parameters_.get(i));
      }
      if (inputProcessingTimeSum_ != 0D) {
        output.writeDouble(12, inputProcessingTimeSum_);
      }
      if (inputProcessingTimeCount_ != 0L) {
        output.writeInt64(13, inputProcessingTimeCount_);
      }
      if (getInputsList().size() > 0) {
        output.writeUInt32NoTag(114);
        output.writeUInt32NoTag(inputsMemoizedSerializedSize);
      }
      for (int i = 0; i < inputs_.size(); i++) {
        output.writeInt64NoTag(inputs_.getLong(i));
      }
      if (nodeClass_ != org.tensorflow.proto.data.model.NodeClass.UNKNOWN.getNumber()) {
        output.writeEnum(15, nodeClass_);
      }
      if (ratio_ != 0D) {
        output.writeDouble(16, ratio_);
      }
      if (memoryRatio_ != 0D) {
        output.writeDouble(17, memoryRatio_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (id_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, id_);
      }
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (autotune_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, autotune_);
      }
      if (bufferedBytes_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, bufferedBytes_);
      }
      if (bufferedElements_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, bufferedElements_);
      }
      if (bytesConsumed_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, bytesConsumed_);
      }
      if (bytesProduced_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, bytesProduced_);
      }
      if (numElements_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(8, numElements_);
      }
      if (processingTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(9, processingTime_);
      }
      if (recordMetrics_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(10, recordMetrics_);
      }
      for (int i = 0; i < parameters_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, parameters_.get(i));
      }
      if (inputProcessingTimeSum_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(12, inputProcessingTimeSum_);
      }
      if (inputProcessingTimeCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(13, inputProcessingTimeCount_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < inputs_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt64SizeNoTag(inputs_.getLong(i));
        }
        size += dataSize;
        if (!getInputsList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        inputsMemoizedSerializedSize = dataSize;
      }
      if (nodeClass_ != org.tensorflow.proto.data.model.NodeClass.UNKNOWN.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(15, nodeClass_);
      }
      if (ratio_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(16, ratio_);
      }
      if (memoryRatio_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(17, memoryRatio_);
      }
      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.data.model.ModelProto.Node)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.data.model.ModelProto.Node other = (org.tensorflow.proto.data.model.ModelProto.Node) obj;

      if (getId()
          != other.getId()) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (getAutotune()
          != other.getAutotune()) return false;
      if (getBufferedBytes()
          != other.getBufferedBytes()) return false;
      if (getBufferedElements()
          != other.getBufferedElements()) return false;
      if (getBytesConsumed()
          != other.getBytesConsumed()) return false;
      if (getBytesProduced()
          != other.getBytesProduced()) return false;
      if (getNumElements()
          != other.getNumElements()) return false;
      if (getProcessingTime()
          != other.getProcessingTime()) return false;
      if (getRecordMetrics()
          != other.getRecordMetrics()) return false;
      if (!getParametersList()
          .equals(other.getParametersList())) return false;
      if (java.lang.Double.doubleToLongBits(getInputProcessingTimeSum())
          != java.lang.Double.doubleToLongBits(
              other.getInputProcessingTimeSum())) return false;
      if (getInputProcessingTimeCount()
          != other.getInputProcessingTimeCount()) return false;
      if (!getInputsList()
          .equals(other.getInputsList())) return false;
      if (nodeClass_ != other.nodeClass_) return false;
      if (java.lang.Double.doubleToLongBits(getRatio())
          != java.lang.Double.doubleToLongBits(
              other.getRatio())) return false;
      if (java.lang.Double.doubleToLongBits(getMemoryRatio())
          != java.lang.Double.doubleToLongBits(
              other.getMemoryRatio())) 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();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getId());
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + AUTOTUNE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getAutotune());
      hash = (37 * hash) + BUFFERED_BYTES_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBufferedBytes());
      hash = (37 * hash) + BUFFERED_ELEMENTS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBufferedElements());
      hash = (37 * hash) + BYTES_CONSUMED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBytesConsumed());
      hash = (37 * hash) + BYTES_PRODUCED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBytesProduced());
      hash = (37 * hash) + NUM_ELEMENTS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNumElements());
      hash = (37 * hash) + PROCESSING_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getProcessingTime());
      hash = (37 * hash) + RECORD_METRICS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getRecordMetrics());
      if (getParametersCount() > 0) {
        hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
        hash = (53 * hash) + getParametersList().hashCode();
      }
      hash = (37 * hash) + INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getInputProcessingTimeSum()));
      hash = (37 * hash) + INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getInputProcessingTimeCount());
      if (getInputsCount() > 0) {
        hash = (37 * hash) + INPUTS_FIELD_NUMBER;
        hash = (53 * hash) + getInputsList().hashCode();
      }
      hash = (37 * hash) + NODE_CLASS_FIELD_NUMBER;
      hash = (53 * hash) + nodeClass_;
      hash = (37 * hash) + RATIO_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getRatio()));
      hash = (37 * hash) + MEMORY_RATIO_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getMemoryRatio()));
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node 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.data.model.ModelProto.Node parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node 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.data.model.ModelProto.Node parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node 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.data.model.ModelProto.Node parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node 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.data.model.ModelProto.Node parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.Node 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.data.model.ModelProto.Node 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>
     * General representation of a node in the model.
     * </pre>
     *
     * Protobuf type {@code tensorflow.data.model.ModelProto.Node}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node)
        org.tensorflow.proto.data.model.ModelProto.NodeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.data.model.ModelProto.Node.class, org.tensorflow.proto.data.model.ModelProto.Node.Builder.class);
      }

      // Construct using org.tensorflow.proto.data.model.ModelProto.Node.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getParametersFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = 0L;

        name_ = "";

        autotune_ = false;

        bufferedBytes_ = 0L;

        bufferedElements_ = 0L;

        bytesConsumed_ = 0L;

        bytesProduced_ = 0L;

        numElements_ = 0L;

        processingTime_ = 0L;

        recordMetrics_ = false;

        if (parametersBuilder_ == null) {
          parameters_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          parametersBuilder_.clear();
        }
        inputProcessingTimeSum_ = 0D;

        inputProcessingTimeCount_ = 0L;

        inputs_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000002);
        nodeClass_ = 0;

        ratio_ = 0D;

        memoryRatio_ = 0D;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstanceForType() {
        return org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance();
      }

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

      @java.lang.Override
      public org.tensorflow.proto.data.model.ModelProto.Node buildPartial() {
        org.tensorflow.proto.data.model.ModelProto.Node result = new org.tensorflow.proto.data.model.ModelProto.Node(this);
        int from_bitField0_ = bitField0_;
        result.id_ = id_;
        result.name_ = name_;
        result.autotune_ = autotune_;
        result.bufferedBytes_ = bufferedBytes_;
        result.bufferedElements_ = bufferedElements_;
        result.bytesConsumed_ = bytesConsumed_;
        result.bytesProduced_ = bytesProduced_;
        result.numElements_ = numElements_;
        result.processingTime_ = processingTime_;
        result.recordMetrics_ = recordMetrics_;
        if (parametersBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            parameters_ = java.util.Collections.unmodifiableList(parameters_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.parameters_ = parameters_;
        } else {
          result.parameters_ = parametersBuilder_.build();
        }
        result.inputProcessingTimeSum_ = inputProcessingTimeSum_;
        result.inputProcessingTimeCount_ = inputProcessingTimeCount_;
        if (((bitField0_ & 0x00000002) != 0)) {
          inputs_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.inputs_ = inputs_;
        result.nodeClass_ = nodeClass_;
        result.ratio_ = ratio_;
        result.memoryRatio_ = memoryRatio_;
        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.data.model.ModelProto.Node) {
          return mergeFrom((org.tensorflow.proto.data.model.ModelProto.Node)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.Node other) {
        if (other == org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance()) return this;
        if (other.getId() != 0L) {
          setId(other.getId());
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (other.getAutotune() != false) {
          setAutotune(other.getAutotune());
        }
        if (other.getBufferedBytes() != 0L) {
          setBufferedBytes(other.getBufferedBytes());
        }
        if (other.getBufferedElements() != 0L) {
          setBufferedElements(other.getBufferedElements());
        }
        if (other.getBytesConsumed() != 0L) {
          setBytesConsumed(other.getBytesConsumed());
        }
        if (other.getBytesProduced() != 0L) {
          setBytesProduced(other.getBytesProduced());
        }
        if (other.getNumElements() != 0L) {
          setNumElements(other.getNumElements());
        }
        if (other.getProcessingTime() != 0L) {
          setProcessingTime(other.getProcessingTime());
        }
        if (other.getRecordMetrics() != false) {
          setRecordMetrics(other.getRecordMetrics());
        }
        if (parametersBuilder_ == null) {
          if (!other.parameters_.isEmpty()) {
            if (parameters_.isEmpty()) {
              parameters_ = other.parameters_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureParametersIsMutable();
              parameters_.addAll(other.parameters_);
            }
            onChanged();
          }
        } else {
          if (!other.parameters_.isEmpty()) {
            if (parametersBuilder_.isEmpty()) {
              parametersBuilder_.dispose();
              parametersBuilder_ = null;
              parameters_ = other.parameters_;
              bitField0_ = (bitField0_ & ~0x00000001);
              parametersBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getParametersFieldBuilder() : null;
            } else {
              parametersBuilder_.addAllMessages(other.parameters_);
            }
          }
        }
        if (other.getInputProcessingTimeSum() != 0D) {
          setInputProcessingTimeSum(other.getInputProcessingTimeSum());
        }
        if (other.getInputProcessingTimeCount() != 0L) {
          setInputProcessingTimeCount(other.getInputProcessingTimeCount());
        }
        if (!other.inputs_.isEmpty()) {
          if (inputs_.isEmpty()) {
            inputs_ = other.inputs_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureInputsIsMutable();
            inputs_.addAll(other.inputs_);
          }
          onChanged();
        }
        if (other.nodeClass_ != 0) {
          setNodeClassValue(other.getNodeClassValue());
        }
        if (other.getRatio() != 0D) {
          setRatio(other.getRatio());
        }
        if (other.getMemoryRatio() != 0D) {
          setMemoryRatio(other.getMemoryRatio());
        }
        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.data.model.ModelProto.Node parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.data.model.ModelProto.Node) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long id_ ;
      /**
       * <pre>
       * Unique node ID.
       * </pre>
       *
       * <code>int64 id = 1;</code>
       */
      public long getId() {
        return id_;
      }
      /**
       * <pre>
       * Unique node ID.
       * </pre>
       *
       * <code>int64 id = 1;</code>
       */
      public Builder setId(long value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Unique node ID.
       * </pre>
       *
       * <code>int64 id = 1;</code>
       */
      public Builder clearId() {
        
        id_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <pre>
       * Human-readable name of the node.
       * </pre>
       *
       * <code>string name = 2;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Human-readable name of the node.
       * </pre>
       *
       * <code>string name = 2;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Human-readable name of the node.
       * </pre>
       *
       * <code>string name = 2;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Human-readable name of the node.
       * </pre>
       *
       * <code>string name = 2;</code>
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Human-readable name of the node.
       * </pre>
       *
       * <code>string name = 2;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private boolean autotune_ ;
      /**
       * <pre>
       * An indication whether autotuning is enabled for this node.
       * </pre>
       *
       * <code>bool autotune = 3;</code>
       */
      public boolean getAutotune() {
        return autotune_;
      }
      /**
       * <pre>
       * An indication whether autotuning is enabled for this node.
       * </pre>
       *
       * <code>bool autotune = 3;</code>
       */
      public Builder setAutotune(boolean value) {
        
        autotune_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * An indication whether autotuning is enabled for this node.
       * </pre>
       *
       * <code>bool autotune = 3;</code>
       */
      public Builder clearAutotune() {
        
        autotune_ = false;
        onChanged();
        return this;
      }

      private long bufferedBytes_ ;
      /**
       * <pre>
       * The number of bytes stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_bytes = 4;</code>
       */
      public long getBufferedBytes() {
        return bufferedBytes_;
      }
      /**
       * <pre>
       * The number of bytes stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_bytes = 4;</code>
       */
      public Builder setBufferedBytes(long value) {
        
        bufferedBytes_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The number of bytes stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_bytes = 4;</code>
       */
      public Builder clearBufferedBytes() {
        
        bufferedBytes_ = 0L;
        onChanged();
        return this;
      }

      private long bufferedElements_ ;
      /**
       * <pre>
       * The number of elements stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_elements = 5;</code>
       */
      public long getBufferedElements() {
        return bufferedElements_;
      }
      /**
       * <pre>
       * The number of elements stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_elements = 5;</code>
       */
      public Builder setBufferedElements(long value) {
        
        bufferedElements_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The number of elements stored in this node's buffer.
       * </pre>
       *
       * <code>int64 buffered_elements = 5;</code>
       */
      public Builder clearBufferedElements() {
        
        bufferedElements_ = 0L;
        onChanged();
        return this;
      }

      private long bytesConsumed_ ;
      /**
       * <pre>
       * The number of bytes consumed by the node.
       * </pre>
       *
       * <code>int64 bytes_consumed = 6;</code>
       */
      public long getBytesConsumed() {
        return bytesConsumed_;
      }
      /**
       * <pre>
       * The number of bytes consumed by the node.
       * </pre>
       *
       * <code>int64 bytes_consumed = 6;</code>
       */
      public Builder setBytesConsumed(long value) {
        
        bytesConsumed_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The number of bytes consumed by the node.
       * </pre>
       *
       * <code>int64 bytes_consumed = 6;</code>
       */
      public Builder clearBytesConsumed() {
        
        bytesConsumed_ = 0L;
        onChanged();
        return this;
      }

      private long bytesProduced_ ;
      /**
       * <pre>
       * The number of bytes produced by the node.
       * </pre>
       *
       * <code>int64 bytes_produced = 7;</code>
       */
      public long getBytesProduced() {
        return bytesProduced_;
      }
      /**
       * <pre>
       * The number of bytes produced by the node.
       * </pre>
       *
       * <code>int64 bytes_produced = 7;</code>
       */
      public Builder setBytesProduced(long value) {
        
        bytesProduced_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The number of bytes produced by the node.
       * </pre>
       *
       * <code>int64 bytes_produced = 7;</code>
       */
      public Builder clearBytesProduced() {
        
        bytesProduced_ = 0L;
        onChanged();
        return this;
      }

      private long numElements_ ;
      /**
       * <pre>
       * The number of elements produced by the node.
       * </pre>
       *
       * <code>int64 num_elements = 8;</code>
       */
      public long getNumElements() {
        return numElements_;
      }
      /**
       * <pre>
       * The number of elements produced by the node.
       * </pre>
       *
       * <code>int64 num_elements = 8;</code>
       */
      public Builder setNumElements(long value) {
        
        numElements_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The number of elements produced by the node.
       * </pre>
       *
       * <code>int64 num_elements = 8;</code>
       */
      public Builder clearNumElements() {
        
        numElements_ = 0L;
        onChanged();
        return this;
      }

      private long processingTime_ ;
      /**
       * <pre>
       * The aggregate processing time spent in this node.
       * </pre>
       *
       * <code>int64 processing_time = 9;</code>
       */
      public long getProcessingTime() {
        return processingTime_;
      }
      /**
       * <pre>
       * The aggregate processing time spent in this node.
       * </pre>
       *
       * <code>int64 processing_time = 9;</code>
       */
      public Builder setProcessingTime(long value) {
        
        processingTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The aggregate processing time spent in this node.
       * </pre>
       *
       * <code>int64 processing_time = 9;</code>
       */
      public Builder clearProcessingTime() {
        
        processingTime_ = 0L;
        onChanged();
        return this;
      }

      private boolean recordMetrics_ ;
      /**
       * <pre>
       * An indication whether this node records metrics about produced and
       * consumed elements.
       * </pre>
       *
       * <code>bool record_metrics = 10;</code>
       */
      public boolean getRecordMetrics() {
        return recordMetrics_;
      }
      /**
       * <pre>
       * An indication whether this node records metrics about produced and
       * consumed elements.
       * </pre>
       *
       * <code>bool record_metrics = 10;</code>
       */
      public Builder setRecordMetrics(boolean value) {
        
        recordMetrics_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * An indication whether this node records metrics about produced and
       * consumed elements.
       * </pre>
       *
       * <code>bool record_metrics = 10;</code>
       */
      public Builder clearRecordMetrics() {
        
        recordMetrics_ = false;
        onChanged();
        return this;
      }

      private java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter> parameters_ =
        java.util.Collections.emptyList();
      private void ensureParametersIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          parameters_ = new java.util.ArrayList<org.tensorflow.proto.data.model.ModelProto.Node.Parameter>(parameters_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> parametersBuilder_;

      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter> getParametersList() {
        if (parametersBuilder_ == null) {
          return java.util.Collections.unmodifiableList(parameters_);
        } else {
          return parametersBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public int getParametersCount() {
        if (parametersBuilder_ == null) {
          return parameters_.size();
        } else {
          return parametersBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index) {
        if (parametersBuilder_ == null) {
          return parameters_.get(index);
        } else {
          return parametersBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder setParameters(
          int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) {
        if (parametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParametersIsMutable();
          parameters_.set(index, value);
          onChanged();
        } else {
          parametersBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder setParameters(
          int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) {
        if (parametersBuilder_ == null) {
          ensureParametersIsMutable();
          parameters_.set(index, builderForValue.build());
          onChanged();
        } else {
          parametersBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder addParameters(org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) {
        if (parametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParametersIsMutable();
          parameters_.add(value);
          onChanged();
        } else {
          parametersBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder addParameters(
          int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) {
        if (parametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParametersIsMutable();
          parameters_.add(index, value);
          onChanged();
        } else {
          parametersBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder addParameters(
          org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) {
        if (parametersBuilder_ == null) {
          ensureParametersIsMutable();
          parameters_.add(builderForValue.build());
          onChanged();
        } else {
          parametersBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder addParameters(
          int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) {
        if (parametersBuilder_ == null) {
          ensureParametersIsMutable();
          parameters_.add(index, builderForValue.build());
          onChanged();
        } else {
          parametersBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder addAllParameters(
          java.lang.Iterable<? extends org.tensorflow.proto.data.model.ModelProto.Node.Parameter> values) {
        if (parametersBuilder_ == null) {
          ensureParametersIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, parameters_);
          onChanged();
        } else {
          parametersBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder clearParameters() {
        if (parametersBuilder_ == null) {
          parameters_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          parametersBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public Builder removeParameters(int index) {
        if (parametersBuilder_ == null) {
          ensureParametersIsMutable();
          parameters_.remove(index);
          onChanged();
        } else {
          parametersBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder getParametersBuilder(
          int index) {
        return getParametersFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder(
          int index) {
        if (parametersBuilder_ == null) {
          return parameters_.get(index);  } else {
          return parametersBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public java.util.List<? extends org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> 
           getParametersOrBuilderList() {
        if (parametersBuilder_ != null) {
          return parametersBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(parameters_);
        }
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder addParametersBuilder() {
        return getParametersFieldBuilder().addBuilder(
            org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance());
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder addParametersBuilder(
          int index) {
        return getParametersFieldBuilder().addBuilder(
            index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance());
      }
      /**
       * <pre>
       * Parameters of this node.
       * </pre>
       *
       * <code>repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;</code>
       */
      public java.util.List<org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder> 
           getParametersBuilderList() {
        return getParametersFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> 
          getParametersFieldBuilder() {
        if (parametersBuilder_ == null) {
          parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder>(
                  parameters_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          parameters_ = null;
        }
        return parametersBuilder_;
      }

      private double inputProcessingTimeSum_ ;
      /**
       * <pre>
       * Statistic of inputs processing time history.
       * </pre>
       *
       * <code>double input_processing_time_sum = 12;</code>
       */
      public double getInputProcessingTimeSum() {
        return inputProcessingTimeSum_;
      }
      /**
       * <pre>
       * Statistic of inputs processing time history.
       * </pre>
       *
       * <code>double input_processing_time_sum = 12;</code>
       */
      public Builder setInputProcessingTimeSum(double value) {
        
        inputProcessingTimeSum_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Statistic of inputs processing time history.
       * </pre>
       *
       * <code>double input_processing_time_sum = 12;</code>
       */
      public Builder clearInputProcessingTimeSum() {
        
        inputProcessingTimeSum_ = 0D;
        onChanged();
        return this;
      }

      private long inputProcessingTimeCount_ ;
      /**
       * <code>int64 input_processing_time_count = 13;</code>
       */
      public long getInputProcessingTimeCount() {
        return inputProcessingTimeCount_;
      }
      /**
       * <code>int64 input_processing_time_count = 13;</code>
       */
      public Builder setInputProcessingTimeCount(long value) {
        
        inputProcessingTimeCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 input_processing_time_count = 13;</code>
       */
      public Builder clearInputProcessingTimeCount() {
        
        inputProcessingTimeCount_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.LongList inputs_ = emptyLongList();
      private void ensureInputsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          inputs_ = mutableCopy(inputs_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public java.util.List<java.lang.Long>
          getInputsList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(inputs_) : inputs_;
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public int getInputsCount() {
        return inputs_.size();
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public long getInputs(int index) {
        return inputs_.getLong(index);
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public Builder setInputs(
          int index, long value) {
        ensureInputsIsMutable();
        inputs_.setLong(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public Builder addInputs(long value) {
        ensureInputsIsMutable();
        inputs_.addLong(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public Builder addAllInputs(
          java.lang.Iterable<? extends java.lang.Long> values) {
        ensureInputsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, inputs_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * IDs of inputs of this node.
       * </pre>
       *
       * <code>repeated int64 inputs = 14;</code>
       */
      public Builder clearInputs() {
        inputs_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private int nodeClass_ = 0;
      /**
       * <pre>
       * Class of this node.
       * </pre>
       *
       * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
       */
      public int getNodeClassValue() {
        return nodeClass_;
      }
      /**
       * <pre>
       * Class of this node.
       * </pre>
       *
       * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
       */
      public Builder setNodeClassValue(int value) {
        nodeClass_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Class of this node.
       * </pre>
       *
       * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
       */
      public org.tensorflow.proto.data.model.NodeClass getNodeClass() {
        @SuppressWarnings("deprecation")
        org.tensorflow.proto.data.model.NodeClass result = org.tensorflow.proto.data.model.NodeClass.valueOf(nodeClass_);
        return result == null ? org.tensorflow.proto.data.model.NodeClass.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * Class of this node.
       * </pre>
       *
       * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
       */
      public Builder setNodeClass(org.tensorflow.proto.data.model.NodeClass value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        nodeClass_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Class of this node.
       * </pre>
       *
       * <code>.tensorflow.data.model.NodeClass node_class = 15;</code>
       */
      public Builder clearNodeClass() {
        
        nodeClass_ = 0;
        onChanged();
        return this;
      }

      private double ratio_ ;
      /**
       * <pre>
       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
       * ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double ratio = 16;</code>
       */
      public double getRatio() {
        return ratio_;
      }
      /**
       * <pre>
       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
       * ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double ratio = 16;</code>
       */
      public Builder setRatio(double value) {
        
        ratio_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
       * ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double ratio = 16;</code>
       */
      public Builder clearRatio() {
        
        ratio_ = 0D;
        onChanged();
        return this;
      }

      private double memoryRatio_ ;
      /**
       * <pre>
       * Ratio identifies how many parallelism calls are introduced by one
       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double memory_ratio = 17;</code>
       */
      public double getMemoryRatio() {
        return memoryRatio_;
      }
      /**
       * <pre>
       * Ratio identifies how many parallelism calls are introduced by one
       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double memory_ratio = 17;</code>
       */
      public Builder setMemoryRatio(double value) {
        
        memoryRatio_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Ratio identifies how many parallelism calls are introduced by one
       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
       * </pre>
       *
       * <code>double memory_ratio = 17;</code>
       */
      public Builder clearMemoryRatio() {
        
        memoryRatio_ = 0D;
        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.data.model.ModelProto.Node)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node)
    private static final org.tensorflow.proto.data.model.ModelProto.Node DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.Node();
    }

    public static org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface OptimizationParamsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.OptimizationParams)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Algorithm used for autotuning optimization.
     * </pre>
     *
     * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
     */
    int getAlgorithmValue();
    /**
     * <pre>
     * Algorithm used for autotuning optimization.
     * </pre>
     *
     * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
     */
    org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm();

    /**
     * <pre>
     * Number of available logical threads.
     * </pre>
     *
     * <code>int64 cpu_budget = 2;</code>
     */
    long getCpuBudget();

    /**
     * <pre>
     * Amount of available memory in bytes.
     * </pre>
     *
     * <code>int64 ram_budget = 3;</code>
     */
    long getRamBudget();

    /**
     * <pre>
     * Time between two consecutive `GetNext` calls to the iterator represented
     * by the output node.
     * </pre>
     *
     * <code>double model_input_time = 4;</code>
     */
    double getModelInputTime();
  }
  /**
   * <pre>
   * Contains parameters of the model autotuning optimization.
   * </pre>
   *
   * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams}
   */
  public  static final class OptimizationParams extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.OptimizationParams)
      OptimizationParamsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use OptimizationParams.newBuilder() to construct.
    private OptimizationParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private OptimizationParams() {
      algorithm_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private OptimizationParams(
        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 8: {
              int rawValue = input.readEnum();

              algorithm_ = rawValue;
              break;
            }
            case 16: {

              cpuBudget_ = input.readInt64();
              break;
            }
            case 24: {

              ramBudget_ = input.readInt64();
              break;
            }
            case 33: {

              modelInputTime_ = input.readDouble();
              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.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.data.model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder.class);
    }

    public static final int ALGORITHM_FIELD_NUMBER = 1;
    private int algorithm_;
    /**
     * <pre>
     * Algorithm used for autotuning optimization.
     * </pre>
     *
     * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
     */
    public int getAlgorithmValue() {
      return algorithm_;
    }
    /**
     * <pre>
     * Algorithm used for autotuning optimization.
     * </pre>
     *
     * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
     */
    public org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm() {
      @SuppressWarnings("deprecation")
      org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf(algorithm_);
      return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result;
    }

    public static final int CPU_BUDGET_FIELD_NUMBER = 2;
    private long cpuBudget_;
    /**
     * <pre>
     * Number of available logical threads.
     * </pre>
     *
     * <code>int64 cpu_budget = 2;</code>
     */
    public long getCpuBudget() {
      return cpuBudget_;
    }

    public static final int RAM_BUDGET_FIELD_NUMBER = 3;
    private long ramBudget_;
    /**
     * <pre>
     * Amount of available memory in bytes.
     * </pre>
     *
     * <code>int64 ram_budget = 3;</code>
     */
    public long getRamBudget() {
      return ramBudget_;
    }

    public static final int MODEL_INPUT_TIME_FIELD_NUMBER = 4;
    private double modelInputTime_;
    /**
     * <pre>
     * Time between two consecutive `GetNext` calls to the iterator represented
     * by the output node.
     * </pre>
     *
     * <code>double model_input_time = 4;</code>
     */
    public double getModelInputTime() {
      return modelInputTime_;
    }

    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 (algorithm_ != org.tensorflow.proto.data.model.AutotuneAlgorithm.HILL_CLIMB.getNumber()) {
        output.writeEnum(1, algorithm_);
      }
      if (cpuBudget_ != 0L) {
        output.writeInt64(2, cpuBudget_);
      }
      if (ramBudget_ != 0L) {
        output.writeInt64(3, ramBudget_);
      }
      if (modelInputTime_ != 0D) {
        output.writeDouble(4, modelInputTime_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (algorithm_ != org.tensorflow.proto.data.model.AutotuneAlgorithm.HILL_CLIMB.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, algorithm_);
      }
      if (cpuBudget_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, cpuBudget_);
      }
      if (ramBudget_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, ramBudget_);
      }
      if (modelInputTime_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(4, modelInputTime_);
      }
      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.data.model.ModelProto.OptimizationParams)) {
        return super.equals(obj);
      }
      org.tensorflow.proto.data.model.ModelProto.OptimizationParams other = (org.tensorflow.proto.data.model.ModelProto.OptimizationParams) obj;

      if (algorithm_ != other.algorithm_) return false;
      if (getCpuBudget()
          != other.getCpuBudget()) return false;
      if (getRamBudget()
          != other.getRamBudget()) return false;
      if (java.lang.Double.doubleToLongBits(getModelInputTime())
          != java.lang.Double.doubleToLongBits(
              other.getModelInputTime())) 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();
      hash = (37 * hash) + ALGORITHM_FIELD_NUMBER;
      hash = (53 * hash) + algorithm_;
      hash = (37 * hash) + CPU_BUDGET_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCpuBudget());
      hash = (37 * hash) + RAM_BUDGET_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getRamBudget());
      hash = (37 * hash) + MODEL_INPUT_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getModelInputTime()));
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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.data.model.ModelProto.OptimizationParams parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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.data.model.ModelProto.OptimizationParams parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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.data.model.ModelProto.OptimizationParams parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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.data.model.ModelProto.OptimizationParams parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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.data.model.ModelProto.OptimizationParams 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>
     * Contains parameters of the model autotuning optimization.
     * </pre>
     *
     * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.OptimizationParams)
        org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tensorflow.proto.data.model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder.class);
      }

      // Construct using org.tensorflow.proto.data.model.ModelProto.OptimizationParams.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();
        algorithm_ = 0;

        cpuBudget_ = 0L;

        ramBudget_ = 0L;

        modelInputTime_ = 0D;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor;
      }

      @java.lang.Override
      public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstanceForType() {
        return org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance();
      }

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

      @java.lang.Override
      public org.tensorflow.proto.data.model.ModelProto.OptimizationParams buildPartial() {
        org.tensorflow.proto.data.model.ModelProto.OptimizationParams result = new org.tensorflow.proto.data.model.ModelProto.OptimizationParams(this);
        result.algorithm_ = algorithm_;
        result.cpuBudget_ = cpuBudget_;
        result.ramBudget_ = ramBudget_;
        result.modelInputTime_ = modelInputTime_;
        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.data.model.ModelProto.OptimizationParams) {
          return mergeFrom((org.tensorflow.proto.data.model.ModelProto.OptimizationParams)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.OptimizationParams other) {
        if (other == org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance()) return this;
        if (other.algorithm_ != 0) {
          setAlgorithmValue(other.getAlgorithmValue());
        }
        if (other.getCpuBudget() != 0L) {
          setCpuBudget(other.getCpuBudget());
        }
        if (other.getRamBudget() != 0L) {
          setRamBudget(other.getRamBudget());
        }
        if (other.getModelInputTime() != 0D) {
          setModelInputTime(other.getModelInputTime());
        }
        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.data.model.ModelProto.OptimizationParams parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tensorflow.proto.data.model.ModelProto.OptimizationParams) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int algorithm_ = 0;
      /**
       * <pre>
       * Algorithm used for autotuning optimization.
       * </pre>
       *
       * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
       */
      public int getAlgorithmValue() {
        return algorithm_;
      }
      /**
       * <pre>
       * Algorithm used for autotuning optimization.
       * </pre>
       *
       * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
       */
      public Builder setAlgorithmValue(int value) {
        algorithm_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Algorithm used for autotuning optimization.
       * </pre>
       *
       * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
       */
      public org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm() {
        @SuppressWarnings("deprecation")
        org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf(algorithm_);
        return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * Algorithm used for autotuning optimization.
       * </pre>
       *
       * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
       */
      public Builder setAlgorithm(org.tensorflow.proto.data.model.AutotuneAlgorithm value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        algorithm_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Algorithm used for autotuning optimization.
       * </pre>
       *
       * <code>.tensorflow.data.model.AutotuneAlgorithm algorithm = 1;</code>
       */
      public Builder clearAlgorithm() {
        
        algorithm_ = 0;
        onChanged();
        return this;
      }

      private long cpuBudget_ ;
      /**
       * <pre>
       * Number of available logical threads.
       * </pre>
       *
       * <code>int64 cpu_budget = 2;</code>
       */
      public long getCpuBudget() {
        return cpuBudget_;
      }
      /**
       * <pre>
       * Number of available logical threads.
       * </pre>
       *
       * <code>int64 cpu_budget = 2;</code>
       */
      public Builder setCpuBudget(long value) {
        
        cpuBudget_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Number of available logical threads.
       * </pre>
       *
       * <code>int64 cpu_budget = 2;</code>
       */
      public Builder clearCpuBudget() {
        
        cpuBudget_ = 0L;
        onChanged();
        return this;
      }

      private long ramBudget_ ;
      /**
       * <pre>
       * Amount of available memory in bytes.
       * </pre>
       *
       * <code>int64 ram_budget = 3;</code>
       */
      public long getRamBudget() {
        return ramBudget_;
      }
      /**
       * <pre>
       * Amount of available memory in bytes.
       * </pre>
       *
       * <code>int64 ram_budget = 3;</code>
       */
      public Builder setRamBudget(long value) {
        
        ramBudget_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Amount of available memory in bytes.
       * </pre>
       *
       * <code>int64 ram_budget = 3;</code>
       */
      public Builder clearRamBudget() {
        
        ramBudget_ = 0L;
        onChanged();
        return this;
      }

      private double modelInputTime_ ;
      /**
       * <pre>
       * Time between two consecutive `GetNext` calls to the iterator represented
       * by the output node.
       * </pre>
       *
       * <code>double model_input_time = 4;</code>
       */
      public double getModelInputTime() {
        return modelInputTime_;
      }
      /**
       * <pre>
       * Time between two consecutive `GetNext` calls to the iterator represented
       * by the output node.
       * </pre>
       *
       * <code>double model_input_time = 4;</code>
       */
      public Builder setModelInputTime(double value) {
        
        modelInputTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Time between two consecutive `GetNext` calls to the iterator represented
       * by the output node.
       * </pre>
       *
       * <code>double model_input_time = 4;</code>
       */
      public Builder clearModelInputTime() {
        
        modelInputTime_ = 0D;
        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.data.model.ModelProto.OptimizationParams)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.OptimizationParams)
    private static final org.tensorflow.proto.data.model.ModelProto.OptimizationParams DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.OptimizationParams();
    }

    public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int NODES_FIELD_NUMBER = 1;
  private static final class NodesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>newDefaultInstance(
                org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.INT64,
                0L,
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> nodes_;
  private com.google.protobuf.MapField<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
  internalGetNodes() {
    if (nodes_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          NodesDefaultEntryHolder.defaultEntry);
    }
    return nodes_;
  }

  public int getNodesCount() {
    return internalGetNodes().getMap().size();
  }
  /**
   * <pre>
   * Map of node IDs to nodes of this model.
   * </pre>
   *
   * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
   */

  public boolean containsNodes(
      long key) {
    
    return internalGetNodes().getMap().containsKey(key);
  }
  /**
   * Use {@link #getNodesMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> getNodes() {
    return getNodesMap();
  }
  /**
   * <pre>
   * Map of node IDs to nodes of this model.
   * </pre>
   *
   * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
   */

  public java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> getNodesMap() {
    return internalGetNodes().getMap();
  }
  /**
   * <pre>
   * Map of node IDs to nodes of this model.
   * </pre>
   *
   * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
   */

  public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrDefault(
      long key,
      org.tensorflow.proto.data.model.ModelProto.Node defaultValue) {
    
    java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> map =
        internalGetNodes().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * Map of node IDs to nodes of this model.
   * </pre>
   *
   * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
   */

  public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrThrow(
      long key) {
    
    java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> map =
        internalGetNodes().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int OUTPUT_FIELD_NUMBER = 2;
  private long output_;
  /**
   * <pre>
   * ID of the output node of this model.
   * </pre>
   *
   * <code>int64 output = 2;</code>
   */
  public long getOutput() {
    return output_;
  }

  public static final int ID_COUNTER_FIELD_NUMBER = 3;
  private long idCounter_;
  /**
   * <pre>
   * Counter for node IDs of this model.
   * </pre>
   *
   * <code>int64 id_counter = 3;</code>
   */
  public long getIdCounter() {
    return idCounter_;
  }

  public static final int OPTIMIZATION_PARAMS_FIELD_NUMBER = 5;
  private org.tensorflow.proto.data.model.ModelProto.OptimizationParams optimizationParams_;
  /**
   * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
   */
  public boolean hasOptimizationParams() {
    return optimizationParams_ != null;
  }
  /**
   * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
   */
  public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getOptimizationParams() {
    return optimizationParams_ == null ? org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_;
  }
  /**
   * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
   */
  public org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() {
    return getOptimizationParams();
  }

  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 {
    com.google.protobuf.GeneratedMessageV3
      .serializeLongMapTo(
        output,
        internalGetNodes(),
        NodesDefaultEntryHolder.defaultEntry,
        1);
    if (output_ != 0L) {
      output.writeInt64(2, output_);
    }
    if (idCounter_ != 0L) {
      output.writeInt64(3, idCounter_);
    }
    if (optimizationParams_ != null) {
      output.writeMessage(5, getOptimizationParams());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (java.util.Map.Entry<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> entry
         : internalGetNodes().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
      nodes__ = NodesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, nodes__);
    }
    if (output_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, output_);
    }
    if (idCounter_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, idCounter_);
    }
    if (optimizationParams_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getOptimizationParams());
    }
    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.data.model.ModelProto)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.data.model.ModelProto other = (org.tensorflow.proto.data.model.ModelProto) obj;

    if (!internalGetNodes().equals(
        other.internalGetNodes())) return false;
    if (getOutput()
        != other.getOutput()) return false;
    if (getIdCounter()
        != other.getIdCounter()) return false;
    if (hasOptimizationParams() != other.hasOptimizationParams()) return false;
    if (hasOptimizationParams()) {
      if (!getOptimizationParams()
          .equals(other.getOptimizationParams())) 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 (!internalGetNodes().getMap().isEmpty()) {
      hash = (37 * hash) + NODES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetNodes().hashCode();
    }
    hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getOutput());
    hash = (37 * hash) + ID_COUNTER_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getIdCounter());
    if (hasOptimizationParams()) {
      hash = (37 * hash) + OPTIMIZATION_PARAMS_FIELD_NUMBER;
      hash = (53 * hash) + getOptimizationParams().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.data.model.ModelProto parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.data.model.ModelProto 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.data.model.ModelProto parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.data.model.ModelProto 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.data.model.ModelProto parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.data.model.ModelProto parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.data.model.ModelProto parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.data.model.ModelProto 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.data.model.ModelProto parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.data.model.ModelProto 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.data.model.ModelProto parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.data.model.ModelProto 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.data.model.ModelProto 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>
   * Protocol buffer representing the data used by the autotuning modeling
   * framework.
   * </pre>
   *
   * Protobuf type {@code tensorflow.data.model.ModelProto}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto)
      org.tensorflow.proto.data.model.ModelProtoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetNodes();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetMutableNodes();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.data.model.ModelProto.class, org.tensorflow.proto.data.model.ModelProto.Builder.class);
    }

    // Construct using org.tensorflow.proto.data.model.ModelProto.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();
      internalGetMutableNodes().clear();
      output_ = 0L;

      idCounter_ = 0L;

      if (optimizationParamsBuilder_ == null) {
        optimizationParams_ = null;
      } else {
        optimizationParams_ = null;
        optimizationParamsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor;
    }

    @java.lang.Override
    public org.tensorflow.proto.data.model.ModelProto getDefaultInstanceForType() {
      return org.tensorflow.proto.data.model.ModelProto.getDefaultInstance();
    }

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

    @java.lang.Override
    public org.tensorflow.proto.data.model.ModelProto buildPartial() {
      org.tensorflow.proto.data.model.ModelProto result = new org.tensorflow.proto.data.model.ModelProto(this);
      int from_bitField0_ = bitField0_;
      result.nodes_ = internalGetNodes();
      result.nodes_.makeImmutable();
      result.output_ = output_;
      result.idCounter_ = idCounter_;
      if (optimizationParamsBuilder_ == null) {
        result.optimizationParams_ = optimizationParams_;
      } else {
        result.optimizationParams_ = optimizationParamsBuilder_.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.data.model.ModelProto) {
        return mergeFrom((org.tensorflow.proto.data.model.ModelProto)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto other) {
      if (other == org.tensorflow.proto.data.model.ModelProto.getDefaultInstance()) return this;
      internalGetMutableNodes().mergeFrom(
          other.internalGetNodes());
      if (other.getOutput() != 0L) {
        setOutput(other.getOutput());
      }
      if (other.getIdCounter() != 0L) {
        setIdCounter(other.getIdCounter());
      }
      if (other.hasOptimizationParams()) {
        mergeOptimizationParams(other.getOptimizationParams());
      }
      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.data.model.ModelProto parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.data.model.ModelProto) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.MapField<
        java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> nodes_;
    private com.google.protobuf.MapField<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
    internalGetNodes() {
      if (nodes_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            NodesDefaultEntryHolder.defaultEntry);
      }
      return nodes_;
    }
    private com.google.protobuf.MapField<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
    internalGetMutableNodes() {
      onChanged();;
      if (nodes_ == null) {
        nodes_ = com.google.protobuf.MapField.newMapField(
            NodesDefaultEntryHolder.defaultEntry);
      }
      if (!nodes_.isMutable()) {
        nodes_ = nodes_.copy();
      }
      return nodes_;
    }

    public int getNodesCount() {
      return internalGetNodes().getMap().size();
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public boolean containsNodes(
        long key) {
      
      return internalGetNodes().getMap().containsKey(key);
    }
    /**
     * Use {@link #getNodesMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> getNodes() {
      return getNodesMap();
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> getNodesMap() {
      return internalGetNodes().getMap();
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrDefault(
        long key,
        org.tensorflow.proto.data.model.ModelProto.Node defaultValue) {
      
      java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> map =
          internalGetNodes().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrThrow(
        long key) {
      
      java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> map =
          internalGetNodes().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearNodes() {
      internalGetMutableNodes().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public Builder removeNodes(
        long key) {
      
      internalGetMutableNodes().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node>
    getMutableNodes() {
      return internalGetMutableNodes().getMutableMap();
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */
    public Builder putNodes(
        long key,
        org.tensorflow.proto.data.model.ModelProto.Node value) {
      
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableNodes().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * Map of node IDs to nodes of this model.
     * </pre>
     *
     * <code>map&lt;int64, .tensorflow.data.model.ModelProto.Node&gt; nodes = 1;</code>
     */

    public Builder putAllNodes(
        java.util.Map<java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> values) {
      internalGetMutableNodes().getMutableMap()
          .putAll(values);
      return this;
    }

    private long output_ ;
    /**
     * <pre>
     * ID of the output node of this model.
     * </pre>
     *
     * <code>int64 output = 2;</code>
     */
    public long getOutput() {
      return output_;
    }
    /**
     * <pre>
     * ID of the output node of this model.
     * </pre>
     *
     * <code>int64 output = 2;</code>
     */
    public Builder setOutput(long value) {
      
      output_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * ID of the output node of this model.
     * </pre>
     *
     * <code>int64 output = 2;</code>
     */
    public Builder clearOutput() {
      
      output_ = 0L;
      onChanged();
      return this;
    }

    private long idCounter_ ;
    /**
     * <pre>
     * Counter for node IDs of this model.
     * </pre>
     *
     * <code>int64 id_counter = 3;</code>
     */
    public long getIdCounter() {
      return idCounter_;
    }
    /**
     * <pre>
     * Counter for node IDs of this model.
     * </pre>
     *
     * <code>int64 id_counter = 3;</code>
     */
    public Builder setIdCounter(long value) {
      
      idCounter_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Counter for node IDs of this model.
     * </pre>
     *
     * <code>int64 id_counter = 3;</code>
     */
    public Builder clearIdCounter() {
      
      idCounter_ = 0L;
      onChanged();
      return this;
    }

    private org.tensorflow.proto.data.model.ModelProto.OptimizationParams optimizationParams_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder> optimizationParamsBuilder_;
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public boolean hasOptimizationParams() {
      return optimizationParamsBuilder_ != null || optimizationParams_ != null;
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getOptimizationParams() {
      if (optimizationParamsBuilder_ == null) {
        return optimizationParams_ == null ? org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_;
      } else {
        return optimizationParamsBuilder_.getMessage();
      }
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public Builder setOptimizationParams(org.tensorflow.proto.data.model.ModelProto.OptimizationParams value) {
      if (optimizationParamsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        optimizationParams_ = value;
        onChanged();
      } else {
        optimizationParamsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public Builder setOptimizationParams(
        org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder builderForValue) {
      if (optimizationParamsBuilder_ == null) {
        optimizationParams_ = builderForValue.build();
        onChanged();
      } else {
        optimizationParamsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public Builder mergeOptimizationParams(org.tensorflow.proto.data.model.ModelProto.OptimizationParams value) {
      if (optimizationParamsBuilder_ == null) {
        if (optimizationParams_ != null) {
          optimizationParams_ =
            org.tensorflow.proto.data.model.ModelProto.OptimizationParams.newBuilder(optimizationParams_).mergeFrom(value).buildPartial();
        } else {
          optimizationParams_ = value;
        }
        onChanged();
      } else {
        optimizationParamsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public Builder clearOptimizationParams() {
      if (optimizationParamsBuilder_ == null) {
        optimizationParams_ = null;
        onChanged();
      } else {
        optimizationParams_ = null;
        optimizationParamsBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder getOptimizationParamsBuilder() {
      
      onChanged();
      return getOptimizationParamsFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    public org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() {
      if (optimizationParamsBuilder_ != null) {
        return optimizationParamsBuilder_.getMessageOrBuilder();
      } else {
        return optimizationParams_ == null ?
            org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_;
      }
    }
    /**
     * <code>.tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder> 
        getOptimizationParamsFieldBuilder() {
      if (optimizationParamsBuilder_ == null) {
        optimizationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder>(
                getOptimizationParams(),
                getParentForChildren(),
                isClean());
        optimizationParams_ = null;
      }
      return optimizationParamsBuilder_;
    }
    @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.data.model.ModelProto)
  }

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

  public static org.tensorflow.proto.data.model.ModelProto getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public org.tensorflow.proto.data.model.ModelProto getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

