text: // source: tensorflow/core/protobuf/trackable_object_graph.proto
  /**
   * @fileoverview
   * @enhanceable
   * @suppress {missingRequire} reports error on implicit type usages.
   * @suppress {messageConventions} JS Compiler reports an error if a variable or
   *     field starts with 'MSG_' and isn't a translatable message.
   * @public
   */
  // GENERATED CODE -- DO NOT EDIT!
  /* eslint-disable */
  // @ts-nocheck
  
  var jspb = require('google-protobuf');
  var goog = jspb;
  var global = Function('return this')();
  
  goog.exportSymbol('proto.tensorflow.TrackableObjectGraph', null, global);
  goog.exportSymbol('proto.tensorflow.TrackableObjectGraph.TrackableObject', null, global);
  goog.exportSymbol('proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference', null, global);
  goog.exportSymbol('proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor', null, global);
  goog.exportSymbol('proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference', null, global);
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.tensorflow.TrackableObjectGraph = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.tensorflow.TrackableObjectGraph.repeatedFields_, null);
  };
  goog.inherits(proto.tensorflow.TrackableObjectGraph, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.tensorflow.TrackableObjectGraph.displayName = 'proto.tensorflow.TrackableObjectGraph';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.tensorflow.TrackableObjectGraph.TrackableObject.repeatedFields_, null);
  };
  goog.inherits(proto.tensorflow.TrackableObjectGraph.TrackableObject, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.tensorflow.TrackableObjectGraph.TrackableObject.displayName = 'proto.tensorflow.TrackableObjectGraph.TrackableObject';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.displayName = 'proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.displayName = 'proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.displayName = 'proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference';
  }
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.tensorflow.TrackableObjectGraph.repeatedFields_ = [1];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.tensorflow.TrackableObjectGraph.prototype.toObject = function(opt_includeInstance) {
    return proto.tensorflow.TrackableObjectGraph.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.tensorflow.TrackableObjectGraph} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.toObject = function(includeInstance, msg) {
    var f, obj = {
      nodesList: jspb.Message.toObjectList(msg.getNodesList(),
      proto.tensorflow.TrackableObjectGraph.TrackableObject.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.tensorflow.TrackableObjectGraph}
   */
  proto.tensorflow.TrackableObjectGraph.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.tensorflow.TrackableObjectGraph;
    return proto.tensorflow.TrackableObjectGraph.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.tensorflow.TrackableObjectGraph} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.tensorflow.TrackableObjectGraph}
   */
  proto.tensorflow.TrackableObjectGraph.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new proto.tensorflow.TrackableObjectGraph.TrackableObject;
        reader.readMessage(value,proto.tensorflow.TrackableObjectGraph.TrackableObject.deserializeBinaryFromReader);
        msg.addNodes(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.tensorflow.TrackableObjectGraph.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.tensorflow.TrackableObjectGraph.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.tensorflow.TrackableObjectGraph} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getNodesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        proto.tensorflow.TrackableObjectGraph.TrackableObject.serializeBinaryToWriter
      );
    }
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.repeatedFields_ = [1,2,3];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.toObject = function(opt_includeInstance) {
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.toObject = function(includeInstance, msg) {
    var f, obj = {
      childrenList: jspb.Message.toObjectList(msg.getChildrenList(),
      proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.toObject, includeInstance),
      attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
      proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.toObject, includeInstance),
      slotVariablesList: jspb.Message.toObjectList(msg.getSlotVariablesList(),
      proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.tensorflow.TrackableObjectGraph.TrackableObject;
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference;
        reader.readMessage(value,proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.deserializeBinaryFromReader);
        msg.addChildren(value);
        break;
      case 2:
        var value = new proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor;
        reader.readMessage(value,proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.deserializeBinaryFromReader);
        msg.addAttributes(value);
        break;
      case 3:
        var value = new proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference;
        reader.readMessage(value,proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.deserializeBinaryFromReader);
        msg.addSlotVariables(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.tensorflow.TrackableObjectGraph.TrackableObject.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getChildrenList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.serializeBinaryToWriter
      );
    }
    f = message.getAttributesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        2,
        f,
        proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.serializeBinaryToWriter
      );
    }
    f = message.getSlotVariablesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        3,
        f,
        proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.serializeBinaryToWriter
      );
    }
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.toObject = function(opt_includeInstance) {
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.toObject = function(includeInstance, msg) {
    var f, obj = {
      nodeId: jspb.Message.getFieldWithDefault(msg, 1, 0),
      localName: jspb.Message.getFieldWithDefault(msg, 2, "")
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference;
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = /** @type {number} */ (reader.readInt32());
        msg.setNodeId(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setLocalName(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getNodeId();
    if (f !== 0) {
      writer.writeInt32(
        1,
        f
      );
    }
    f = message.getLocalName();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
  };
  
  
  /**
   * optional int32 node_id = 1;
   * @return {number}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.getNodeId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.setNodeId = function(value) {
    return jspb.Message.setProto3IntField(this, 1, value);
  };
  
  
  /**
   * optional string local_name = 2;
   * @return {string}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.getLocalName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.setLocalName = function(value) {
    return jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.toObject = function(opt_includeInstance) {
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.toObject = function(includeInstance, msg) {
    var f, obj = {
      name: jspb.Message.getFieldWithDefault(msg, 1, ""),
      fullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
      checkpointKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
      optionalRestore: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor;
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = /** @type {string} */ (reader.readString());
        msg.setName(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setFullName(value);
        break;
      case 3:
        var value = /** @type {string} */ (reader.readString());
        msg.setCheckpointKey(value);
        break;
      case 4:
        var value = /** @type {boolean} */ (reader.readBool());
        msg.setOptionalRestore(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getName();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
    f = message.getFullName();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getCheckpointKey();
    if (f.length > 0) {
      writer.writeString(
        3,
        f
      );
    }
    f = message.getOptionalRestore();
    if (f) {
      writer.writeBool(
        4,
        f
      );
    }
  };
  
  
  /**
   * optional string name = 1;
   * @return {string}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.getName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.setName = function(value) {
    return jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  /**
   * optional string full_name = 2;
   * @return {string}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.getFullName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.setFullName = function(value) {
    return jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional string checkpoint_key = 3;
   * @return {string}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.getCheckpointKey = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.setCheckpointKey = function(value) {
    return jspb.Message.setProto3StringField(this, 3, value);
  };
  
  
  /**
   * optional bool optional_restore = 4;
   * @return {boolean}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.getOptionalRestore = function() {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
  };
  
  
  /**
   * @param {boolean} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.setOptionalRestore = function(value) {
    return jspb.Message.setProto3BooleanField(this, 4, value);
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.toObject = function(opt_includeInstance) {
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.toObject = function(includeInstance, msg) {
    var f, obj = {
      originalVariableNodeId: jspb.Message.getFieldWithDefault(msg, 1, 0),
      slotName: jspb.Message.getFieldWithDefault(msg, 2, ""),
      slotVariableNodeId: jspb.Message.getFieldWithDefault(msg, 3, 0)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference;
    return proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = /** @type {number} */ (reader.readInt32());
        msg.setOriginalVariableNodeId(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setSlotName(value);
        break;
      case 3:
        var value = /** @type {number} */ (reader.readInt32());
        msg.setSlotVariableNodeId(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOriginalVariableNodeId();
    if (f !== 0) {
      writer.writeInt32(
        1,
        f
      );
    }
    f = message.getSlotName();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getSlotVariableNodeId();
    if (f !== 0) {
      writer.writeInt32(
        3,
        f
      );
    }
  };
  
  
  /**
   * optional int32 original_variable_node_id = 1;
   * @return {number}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.getOriginalVariableNodeId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.setOriginalVariableNodeId = function(value) {
    return jspb.Message.setProto3IntField(this, 1, value);
  };
  
  
  /**
   * optional string slot_name = 2;
   * @return {string}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.getSlotName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.setSlotName = function(value) {
    return jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional int32 slot_variable_node_id = 3;
   * @return {number}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.getSlotVariableNodeId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.setSlotVariableNodeId = function(value) {
    return jspb.Message.setProto3IntField(this, 3, value);
  };
  
  
  /**
   * repeated ObjectReference children = 1;
   * @return {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference>}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.getChildrenList = function() {
    return /** @type{!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference, 1));
  };
  
  
  /**
   * @param {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference>} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
  */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.setChildrenList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };
  
  
  /**
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference=} opt_value
   * @param {number=} opt_index
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.addChildren = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.clearChildrenList = function() {
    return this.setChildrenList([]);
  };
  
  
  /**
   * repeated SerializedTensor attributes = 2;
   * @return {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor>}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.getAttributesList = function() {
    return /** @type{!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor, 2));
  };
  
  
  /**
   * @param {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor>} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
  */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.setAttributesList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 2, value);
  };
  
  
  /**
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor=} opt_value
   * @param {number=} opt_index
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.addAttributes = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.clearAttributesList = function() {
    return this.setAttributesList([]);
  };
  
  
  /**
   * repeated SlotVariableReference slot_variables = 3;
   * @return {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference>}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.getSlotVariablesList = function() {
    return /** @type{!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference, 3));
  };
  
  
  /**
   * @param {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference>} value
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
  */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.setSlotVariablesList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 3, value);
  };
  
  
  /**
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference=} opt_value
   * @param {number=} opt_index
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference}
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.addSlotVariables = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject} returns this
   */
  proto.tensorflow.TrackableObjectGraph.TrackableObject.prototype.clearSlotVariablesList = function() {
    return this.setSlotVariablesList([]);
  };
  
  
  /**
   * repeated TrackableObject nodes = 1;
   * @return {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject>}
   */
  proto.tensorflow.TrackableObjectGraph.prototype.getNodesList = function() {
    return /** @type{!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.tensorflow.TrackableObjectGraph.TrackableObject, 1));
  };
  
  
  /**
   * @param {!Array<!proto.tensorflow.TrackableObjectGraph.TrackableObject>} value
   * @return {!proto.tensorflow.TrackableObjectGraph} returns this
  */
  proto.tensorflow.TrackableObjectGraph.prototype.setNodesList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };
  
  
  /**
   * @param {!proto.tensorflow.TrackableObjectGraph.TrackableObject=} opt_value
   * @param {number=} opt_index
   * @return {!proto.tensorflow.TrackableObjectGraph.TrackableObject}
   */
  proto.tensorflow.TrackableObjectGraph.prototype.addNodes = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tensorflow.TrackableObjectGraph.TrackableObject, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.tensorflow.TrackableObjectGraph} returns this
   */
  proto.tensorflow.TrackableObjectGraph.prototype.clearNodesList = function() {
    return this.setNodesList([]);
  };
  
  
  goog.object.extend(exports, proto.tensorflow);
  