Source: proto/spine/server/catchup/catch_up_events_pb.js

// source: spine/server/catchup/catch_up_events.proto
/**
 * @fileoverview
 * @enhanceable
 * @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!

var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();

var spine_options_pb = require('../../../spine/options_pb.js');
goog.object.extend(proto, spine_options_pb);
var spine_time_options_pb = require('../../../spine/time_options_pb.js');
goog.object.extend(proto, spine_time_options_pb);
var spine_server_catchup_catch_up_pb = require('../../../spine/server/catchup/catch_up_pb.js');
goog.object.extend(proto, spine_server_catchup_catch_up_pb);
goog.exportSymbol('proto.spine.server.catchup.CatchUpCompleted', null, global);
goog.exportSymbol('proto.spine.server.catchup.CatchUpRequested', null, global);
goog.exportSymbol('proto.spine.server.catchup.CatchUpStarted', null, global);
goog.exportSymbol('proto.spine.server.catchup.HistoryEventsRecalled', null, global);
goog.exportSymbol('proto.spine.server.catchup.HistoryFullyRecalled', null, global);
goog.exportSymbol('proto.spine.server.catchup.LiveEventsPickedUp', 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.spine.server.catchup.CatchUpRequested = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.CatchUpRequested, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.CatchUpRequested.displayName = 'proto.spine.server.catchup.CatchUpRequested';
}
/**
 * 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.spine.server.catchup.CatchUpStarted = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.CatchUpStarted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.CatchUpStarted.displayName = 'proto.spine.server.catchup.CatchUpStarted';
}
/**
 * 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.spine.server.catchup.HistoryEventsRecalled = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.HistoryEventsRecalled, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.HistoryEventsRecalled.displayName = 'proto.spine.server.catchup.HistoryEventsRecalled';
}
/**
 * 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.spine.server.catchup.HistoryFullyRecalled = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.HistoryFullyRecalled, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.HistoryFullyRecalled.displayName = 'proto.spine.server.catchup.HistoryFullyRecalled';
}
/**
 * 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.spine.server.catchup.LiveEventsPickedUp = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.LiveEventsPickedUp, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.LiveEventsPickedUp.displayName = 'proto.spine.server.catchup.LiveEventsPickedUp';
}
/**
 * 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.spine.server.catchup.CatchUpCompleted = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.server.catchup.CatchUpCompleted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.server.catchup.CatchUpCompleted.displayName = 'proto.spine.server.catchup.CatchUpCompleted';
}



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.spine.server.catchup.CatchUpRequested.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.CatchUpRequested.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.spine.server.catchup.CatchUpRequested} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpRequested.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f),
    request: (f = msg.getRequest()) && spine_server_catchup_catch_up_pb.CatchUp.Request.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.CatchUpRequested}
 */
proto.spine.server.catchup.CatchUpRequested.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.CatchUpRequested;
  return proto.spine.server.catchup.CatchUpRequested.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.CatchUpRequested} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.CatchUpRequested}
 */
proto.spine.server.catchup.CatchUpRequested.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    case 2:
      var value = new spine_server_catchup_catch_up_pb.CatchUp.Request;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUp.Request.deserializeBinaryFromReader);
      msg.setRequest(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.CatchUpRequested.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.CatchUpRequested.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.CatchUpRequested} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpRequested.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
  f = message.getRequest();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_server_catchup_catch_up_pb.CatchUp.Request.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.CatchUpRequested.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
*/
proto.spine.server.catchup.CatchUpRequested.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
 */
proto.spine.server.catchup.CatchUpRequested.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.CatchUpRequested.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional CatchUp.Request request = 2;
 * @return {?proto.spine.server.catchup.CatchUp.Request}
 */
proto.spine.server.catchup.CatchUpRequested.prototype.getRequest = function() {
  return /** @type{?proto.spine.server.catchup.CatchUp.Request} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUp.Request, 2));
};


/**
 * @param {?proto.spine.server.catchup.CatchUp.Request|undefined} value
 * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
*/
proto.spine.server.catchup.CatchUpRequested.prototype.setRequest = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
 */
proto.spine.server.catchup.CatchUpRequested.prototype.clearRequest = function() {
  return this.setRequest(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.CatchUpRequested.prototype.hasRequest = function() {
  return jspb.Message.getField(this, 2) != null;
};





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.spine.server.catchup.CatchUpStarted.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.CatchUpStarted.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.spine.server.catchup.CatchUpStarted} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpStarted.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.CatchUpStarted}
 */
proto.spine.server.catchup.CatchUpStarted.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.CatchUpStarted;
  return proto.spine.server.catchup.CatchUpStarted.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.CatchUpStarted} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.CatchUpStarted}
 */
proto.spine.server.catchup.CatchUpStarted.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.CatchUpStarted.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.CatchUpStarted.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.CatchUpStarted} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpStarted.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.CatchUpStarted.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.CatchUpStarted} returns this
*/
proto.spine.server.catchup.CatchUpStarted.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.CatchUpStarted} returns this
 */
proto.spine.server.catchup.CatchUpStarted.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.CatchUpStarted.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};





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.spine.server.catchup.HistoryEventsRecalled.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.HistoryEventsRecalled.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.spine.server.catchup.HistoryEventsRecalled} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.HistoryEventsRecalled.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.HistoryEventsRecalled}
 */
proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.HistoryEventsRecalled;
  return proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.HistoryEventsRecalled} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.HistoryEventsRecalled}
 */
proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.HistoryEventsRecalled.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.HistoryEventsRecalled.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.HistoryEventsRecalled} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.HistoryEventsRecalled.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.HistoryEventsRecalled.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.HistoryEventsRecalled} returns this
*/
proto.spine.server.catchup.HistoryEventsRecalled.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.HistoryEventsRecalled} returns this
 */
proto.spine.server.catchup.HistoryEventsRecalled.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.HistoryEventsRecalled.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};





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.spine.server.catchup.HistoryFullyRecalled.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.HistoryFullyRecalled.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.spine.server.catchup.HistoryFullyRecalled} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.HistoryFullyRecalled.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.HistoryFullyRecalled}
 */
proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.HistoryFullyRecalled;
  return proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.HistoryFullyRecalled} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.HistoryFullyRecalled}
 */
proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.HistoryFullyRecalled.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.HistoryFullyRecalled.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.HistoryFullyRecalled} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.HistoryFullyRecalled.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.HistoryFullyRecalled.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.HistoryFullyRecalled} returns this
*/
proto.spine.server.catchup.HistoryFullyRecalled.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.HistoryFullyRecalled} returns this
 */
proto.spine.server.catchup.HistoryFullyRecalled.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.HistoryFullyRecalled.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};





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.spine.server.catchup.LiveEventsPickedUp.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.LiveEventsPickedUp.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.spine.server.catchup.LiveEventsPickedUp} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.LiveEventsPickedUp.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.LiveEventsPickedUp}
 */
proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.LiveEventsPickedUp;
  return proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.LiveEventsPickedUp} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.LiveEventsPickedUp}
 */
proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.LiveEventsPickedUp.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.LiveEventsPickedUp.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.LiveEventsPickedUp} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.LiveEventsPickedUp.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.LiveEventsPickedUp.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.LiveEventsPickedUp} returns this
*/
proto.spine.server.catchup.LiveEventsPickedUp.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.LiveEventsPickedUp} returns this
 */
proto.spine.server.catchup.LiveEventsPickedUp.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.LiveEventsPickedUp.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};





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.spine.server.catchup.CatchUpCompleted.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.server.catchup.CatchUpCompleted.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.spine.server.catchup.CatchUpCompleted} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpCompleted.toObject = function(includeInstance, msg) {
  var f, obj = {
    id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.spine.server.catchup.CatchUpCompleted}
 */
proto.spine.server.catchup.CatchUpCompleted.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.server.catchup.CatchUpCompleted;
  return proto.spine.server.catchup.CatchUpCompleted.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.server.catchup.CatchUpCompleted} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.server.catchup.CatchUpCompleted}
 */
proto.spine.server.catchup.CatchUpCompleted.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_server_catchup_catch_up_pb.CatchUpId;
      reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
      msg.setId(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.server.catchup.CatchUpCompleted.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.server.catchup.CatchUpCompleted.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.spine.server.catchup.CatchUpCompleted} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.server.catchup.CatchUpCompleted.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getId();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
    );
  }
};


/**
 * optional CatchUpId id = 1;
 * @return {?proto.spine.server.catchup.CatchUpId}
 */
proto.spine.server.catchup.CatchUpCompleted.prototype.getId = function() {
  return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
    jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
};


/**
 * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
 * @return {!proto.spine.server.catchup.CatchUpCompleted} returns this
*/
proto.spine.server.catchup.CatchUpCompleted.prototype.setId = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.server.catchup.CatchUpCompleted} returns this
 */
proto.spine.server.catchup.CatchUpCompleted.prototype.clearId = function() {
  return this.setId(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.server.catchup.CatchUpCompleted.prototype.hasId = function() {
  return jspb.Message.getField(this, 1) != null;
};


goog.object.extend(exports, proto.spine.server.catchup);

// Generated by Spine ProtoJs Plugin

let ObjectParser = require('../../../../client/parser/object-parser.js').default;
let TypeParsers = require('../../../../client/parser/type-parsers.js').default;

proto.spine.server.catchup.LiveEventsPickedUp.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype.constructor = proto.spine.server.catchup.LiveEventsPickedUp.Parser;
proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.LiveEventsPickedUp();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  return msg;
};

proto.spine.server.catchup.CatchUpStarted.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.CatchUpStarted.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.CatchUpStarted.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpStarted.Parser;
proto.spine.server.catchup.CatchUpStarted.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.CatchUpStarted();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  return msg;
};

proto.spine.server.catchup.HistoryEventsRecalled.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype.constructor = proto.spine.server.catchup.HistoryEventsRecalled.Parser;
proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.HistoryEventsRecalled();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  return msg;
};

proto.spine.server.catchup.CatchUpCompleted.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.CatchUpCompleted.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.CatchUpCompleted.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpCompleted.Parser;
proto.spine.server.catchup.CatchUpCompleted.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.CatchUpCompleted();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  return msg;
};

proto.spine.server.catchup.CatchUpRequested.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.CatchUpRequested.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.CatchUpRequested.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpRequested.Parser;
proto.spine.server.catchup.CatchUpRequested.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.CatchUpRequested();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  
  if (obj.request !== undefined) {
    if (obj.request === null) {
      msg.setRequest(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUp.Request').fromObject(obj.request);
      msg.setRequest(value);
    }
  }
  return msg;
};

proto.spine.server.catchup.HistoryFullyRecalled.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype.constructor = proto.spine.server.catchup.HistoryFullyRecalled.Parser;
proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.server.catchup.HistoryFullyRecalled();
  
  if (obj.id !== undefined) {
    if (obj.id === null) {
      msg.setId(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
      msg.setId(value);
    }
  }
  return msg;
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.LiveEventsPickedUp.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.LiveEventsPickedUp';
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.CatchUpStarted.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.CatchUpStarted';
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.HistoryEventsRecalled.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.HistoryEventsRecalled';
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.CatchUpCompleted.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.CatchUpCompleted';
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.CatchUpRequested.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.CatchUpRequested';
};

// Generated by Spine ProtoJs Plugin
proto.spine.server.catchup.HistoryFullyRecalled.typeUrl = function() {
  return 'type.spine.io/spine.server.catchup.HistoryFullyRecalled';
};