Source: proto/spine/system/server/diagnostic_events_pb.js

// source: spine/system/server/diagnostic_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_base_error_pb = require('../../../spine/base/error_pb.js');
goog.object.extend(proto, spine_base_error_pb);
var spine_core_command_pb = require('../../../spine/core/command_pb.js');
goog.object.extend(proto, spine_core_command_pb);
var spine_core_diagnostics_pb = require('../../../spine/core/diagnostics_pb.js');
goog.object.extend(proto, spine_core_diagnostics_pb);
var spine_core_event_pb = require('../../../spine/core/event_pb.js');
goog.object.extend(proto, spine_core_event_pb);
var spine_system_server_entity_type_pb = require('../../../spine/system/server/entity_type_pb.js');
goog.object.extend(proto, spine_system_server_entity_type_pb);
var spine_validate_validation_error_pb = require('../../../spine/validate/validation_error_pb.js');
goog.object.extend(proto, spine_validate_validation_error_pb);
goog.exportSymbol('proto.spine.system.server.AggregateHistoryCorrupted', null, global);
goog.exportSymbol('proto.spine.system.server.CannotDispatchDuplicateCommand', null, global);
goog.exportSymbol('proto.spine.system.server.CannotDispatchDuplicateEvent', null, global);
goog.exportSymbol('proto.spine.system.server.ConstraintViolated', null, global);
goog.exportSymbol('proto.spine.system.server.HandlerFailedUnexpectedly', null, global);
goog.exportSymbol('proto.spine.system.server.RoutingFailed', 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.system.server.ConstraintViolated = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.spine.system.server.ConstraintViolated.repeatedFields_, null);
};
goog.inherits(proto.spine.system.server.ConstraintViolated, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.ConstraintViolated.displayName = 'proto.spine.system.server.ConstraintViolated';
}
/**
 * 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.system.server.CannotDispatchDuplicateCommand = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.CannotDispatchDuplicateCommand, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.CannotDispatchDuplicateCommand.displayName = 'proto.spine.system.server.CannotDispatchDuplicateCommand';
}
/**
 * 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.system.server.CannotDispatchDuplicateEvent = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.CannotDispatchDuplicateEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.CannotDispatchDuplicateEvent.displayName = 'proto.spine.system.server.CannotDispatchDuplicateEvent';
}
/**
 * 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.system.server.HandlerFailedUnexpectedly = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.HandlerFailedUnexpectedly, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.HandlerFailedUnexpectedly.displayName = 'proto.spine.system.server.HandlerFailedUnexpectedly';
}
/**
 * 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.system.server.RoutingFailed = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.RoutingFailed, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.RoutingFailed.displayName = 'proto.spine.system.server.RoutingFailed';
}
/**
 * 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.system.server.AggregateHistoryCorrupted = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.AggregateHistoryCorrupted, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.spine.system.server.AggregateHistoryCorrupted.displayName = 'proto.spine.system.server.AggregateHistoryCorrupted';
}

/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.spine.system.server.ConstraintViolated.repeatedFields_ = [4];



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.system.server.ConstraintViolated.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.ConstraintViolated.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.system.server.ConstraintViolated} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.ConstraintViolated.toObject = function(includeInstance, msg) {
  var f, obj = {
    entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    lastMessage: (f = msg.getLastMessage()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    rootMessage: (f = msg.getRootMessage()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    violationList: jspb.Message.toObjectList(msg.getViolationList(),
    spine_validate_validation_error_pb.ConstraintViolation.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.spine.system.server.ConstraintViolated}
 */
proto.spine.system.server.ConstraintViolated.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.ConstraintViolated;
  return proto.spine.system.server.ConstraintViolated.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.ConstraintViolated} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.ConstraintViolated}
 */
proto.spine.system.server.ConstraintViolated.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setEntity(value);
      break;
    case 2:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setLastMessage(value);
      break;
    case 3:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setRootMessage(value);
      break;
    case 4:
      var value = new spine_validate_validation_error_pb.ConstraintViolation;
      reader.readMessage(value,spine_validate_validation_error_pb.ConstraintViolation.deserializeBinaryFromReader);
      msg.addViolation(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.ConstraintViolated.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.ConstraintViolated.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.system.server.ConstraintViolated} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.ConstraintViolated.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getEntity();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getLastMessage();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getRootMessage();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getViolationList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      4,
      f,
      spine_validate_validation_error_pb.ConstraintViolation.serializeBinaryToWriter
    );
  }
};


/**
 * optional spine.core.MessageId entity = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.ConstraintViolated.prototype.getEntity = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
*/
proto.spine.system.server.ConstraintViolated.prototype.setEntity = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
 */
proto.spine.system.server.ConstraintViolated.prototype.clearEntity = function() {
  return this.setEntity(undefined);
};


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


/**
 * optional spine.core.MessageId last_message = 2;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.ConstraintViolated.prototype.getLastMessage = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 2));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
*/
proto.spine.system.server.ConstraintViolated.prototype.setLastMessage = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
 */
proto.spine.system.server.ConstraintViolated.prototype.clearLastMessage = function() {
  return this.setLastMessage(undefined);
};


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


/**
 * optional spine.core.MessageId root_message = 3;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.ConstraintViolated.prototype.getRootMessage = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
*/
proto.spine.system.server.ConstraintViolated.prototype.setRootMessage = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
 */
proto.spine.system.server.ConstraintViolated.prototype.clearRootMessage = function() {
  return this.setRootMessage(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.ConstraintViolated.prototype.hasRootMessage = function() {
  return jspb.Message.getField(this, 3) != null;
};


/**
 * repeated spine.validate.ConstraintViolation violation = 4;
 * @return {!Array<!proto.spine.validate.ConstraintViolation>}
 */
proto.spine.system.server.ConstraintViolated.prototype.getViolationList = function() {
  return /** @type{!Array<!proto.spine.validate.ConstraintViolation>} */ (
    jspb.Message.getRepeatedWrapperField(this, spine_validate_validation_error_pb.ConstraintViolation, 4));
};


/**
 * @param {!Array<!proto.spine.validate.ConstraintViolation>} value
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
*/
proto.spine.system.server.ConstraintViolated.prototype.setViolationList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 4, value);
};


/**
 * @param {!proto.spine.validate.ConstraintViolation=} opt_value
 * @param {number=} opt_index
 * @return {!proto.spine.validate.ConstraintViolation}
 */
proto.spine.system.server.ConstraintViolated.prototype.addViolation = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.spine.validate.ConstraintViolation, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.spine.system.server.ConstraintViolated} returns this
 */
proto.spine.system.server.ConstraintViolated.prototype.clearViolationList = function() {
  return this.setViolationList([]);
};





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.system.server.CannotDispatchDuplicateCommand.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.CannotDispatchDuplicateCommand.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.system.server.CannotDispatchDuplicateCommand} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.toObject = function(includeInstance, msg) {
  var f, obj = {
    entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    command: (f = msg.getCommand()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
    duplicateCommand: (f = msg.getDuplicateCommand()) && spine_core_diagnostics_pb.MessageId.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.system.server.CannotDispatchDuplicateCommand}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.CannotDispatchDuplicateCommand;
  return proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.CannotDispatchDuplicateCommand} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setEntity(value);
      break;
    case 2:
      var value = new spine_core_command_pb.CommandId;
      reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
      msg.setCommand(value);
      break;
    case 3:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setDuplicateCommand(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.CannotDispatchDuplicateCommand.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.system.server.CannotDispatchDuplicateCommand} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getEntity();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getCommand();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_core_command_pb.CommandId.serializeBinaryToWriter
    );
  }
  f = message.getDuplicateCommand();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
};


/**
 * optional spine.core.MessageId entity = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getEntity = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setEntity = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearEntity = function() {
  return this.setEntity(undefined);
};


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


/**
 * optional spine.core.CommandId command = 2;
 * @return {?proto.spine.core.CommandId}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getCommand = function() {
  return /** @type{?proto.spine.core.CommandId} */ (
    jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 2));
};


/**
 * @param {?proto.spine.core.CommandId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setCommand = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearCommand = function() {
  return this.setCommand(undefined);
};


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


/**
 * optional spine.core.MessageId duplicate_command = 3;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getDuplicateCommand = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setDuplicateCommand = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearDuplicateCommand = function() {
  return this.setDuplicateCommand(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.hasDuplicateCommand = function() {
  return jspb.Message.getField(this, 3) != 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.system.server.CannotDispatchDuplicateEvent.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.CannotDispatchDuplicateEvent.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.system.server.CannotDispatchDuplicateEvent} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.toObject = function(includeInstance, msg) {
  var f, obj = {
    entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    event: (f = msg.getEvent()) && spine_core_event_pb.EventId.toObject(includeInstance, f),
    duplicateEvent: (f = msg.getDuplicateEvent()) && spine_core_diagnostics_pb.MessageId.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.system.server.CannotDispatchDuplicateEvent}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.CannotDispatchDuplicateEvent;
  return proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.CannotDispatchDuplicateEvent} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setEntity(value);
      break;
    case 2:
      var value = new spine_core_event_pb.EventId;
      reader.readMessage(value,spine_core_event_pb.EventId.deserializeBinaryFromReader);
      msg.setEvent(value);
      break;
    case 3:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setDuplicateEvent(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.CannotDispatchDuplicateEvent.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.system.server.CannotDispatchDuplicateEvent} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getEntity();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getEvent();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_core_event_pb.EventId.serializeBinaryToWriter
    );
  }
  f = message.getDuplicateEvent();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
};


/**
 * optional spine.core.MessageId entity = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getEntity = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setEntity = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearEntity = function() {
  return this.setEntity(undefined);
};


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


/**
 * optional spine.core.EventId event = 2;
 * @return {?proto.spine.core.EventId}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getEvent = function() {
  return /** @type{?proto.spine.core.EventId} */ (
    jspb.Message.getWrapperField(this, spine_core_event_pb.EventId, 2));
};


/**
 * @param {?proto.spine.core.EventId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setEvent = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearEvent = function() {
  return this.setEvent(undefined);
};


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


/**
 * optional spine.core.MessageId duplicate_event = 3;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getDuplicateEvent = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
*/
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setDuplicateEvent = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearDuplicateEvent = function() {
  return this.setDuplicateEvent(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.hasDuplicateEvent = function() {
  return jspb.Message.getField(this, 3) != 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.system.server.HandlerFailedUnexpectedly.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.HandlerFailedUnexpectedly.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.system.server.HandlerFailedUnexpectedly} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.HandlerFailedUnexpectedly.toObject = function(includeInstance, msg) {
  var f, obj = {
    entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    handledSignal: (f = msg.getHandledSignal()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    error: (f = msg.getError()) && spine_base_error_pb.Error.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.system.server.HandlerFailedUnexpectedly}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.HandlerFailedUnexpectedly;
  return proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.HandlerFailedUnexpectedly} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setEntity(value);
      break;
    case 2:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setHandledSignal(value);
      break;
    case 3:
      var value = new spine_base_error_pb.Error;
      reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
      msg.setError(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.HandlerFailedUnexpectedly.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.system.server.HandlerFailedUnexpectedly} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.HandlerFailedUnexpectedly.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getEntity();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getHandledSignal();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getError();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_base_error_pb.Error.serializeBinaryToWriter
    );
  }
};


/**
 * optional spine.core.MessageId entity = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getEntity = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
*/
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setEntity = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearEntity = function() {
  return this.setEntity(undefined);
};


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


/**
 * optional spine.core.MessageId handled_signal = 2;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getHandledSignal = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 2));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
*/
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setHandledSignal = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearHandledSignal = function() {
  return this.setHandledSignal(undefined);
};


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


/**
 * optional spine.base.Error error = 3;
 * @return {?proto.spine.base.Error}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getError = function() {
  return /** @type{?proto.spine.base.Error} */ (
    jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 3));
};


/**
 * @param {?proto.spine.base.Error|undefined} value
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
*/
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setError = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearError = function() {
  return this.setError(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.HandlerFailedUnexpectedly.prototype.hasError = function() {
  return jspb.Message.getField(this, 3) != 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.system.server.RoutingFailed.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.RoutingFailed.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.system.server.RoutingFailed} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.RoutingFailed.toObject = function(includeInstance, msg) {
  var f, obj = {
    handledSignal: (f = msg.getHandledSignal()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    entityType: (f = msg.getEntityType()) && spine_system_server_entity_type_pb.EntityTypeName.toObject(includeInstance, f),
    error: (f = msg.getError()) && spine_base_error_pb.Error.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.system.server.RoutingFailed}
 */
proto.spine.system.server.RoutingFailed.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.RoutingFailed;
  return proto.spine.system.server.RoutingFailed.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.RoutingFailed} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.RoutingFailed}
 */
proto.spine.system.server.RoutingFailed.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setHandledSignal(value);
      break;
    case 2:
      var value = new spine_system_server_entity_type_pb.EntityTypeName;
      reader.readMessage(value,spine_system_server_entity_type_pb.EntityTypeName.deserializeBinaryFromReader);
      msg.setEntityType(value);
      break;
    case 3:
      var value = new spine_base_error_pb.Error;
      reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
      msg.setError(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.RoutingFailed.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.RoutingFailed.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.system.server.RoutingFailed} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.RoutingFailed.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getHandledSignal();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getEntityType();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_system_server_entity_type_pb.EntityTypeName.serializeBinaryToWriter
    );
  }
  f = message.getError();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_base_error_pb.Error.serializeBinaryToWriter
    );
  }
};


/**
 * optional spine.core.MessageId handled_signal = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.RoutingFailed.prototype.getHandledSignal = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.RoutingFailed} returns this
*/
proto.spine.system.server.RoutingFailed.prototype.setHandledSignal = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.RoutingFailed} returns this
 */
proto.spine.system.server.RoutingFailed.prototype.clearHandledSignal = function() {
  return this.setHandledSignal(undefined);
};


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


/**
 * optional EntityTypeName entity_type = 2;
 * @return {?proto.spine.system.server.EntityTypeName}
 */
proto.spine.system.server.RoutingFailed.prototype.getEntityType = function() {
  return /** @type{?proto.spine.system.server.EntityTypeName} */ (
    jspb.Message.getWrapperField(this, spine_system_server_entity_type_pb.EntityTypeName, 2));
};


/**
 * @param {?proto.spine.system.server.EntityTypeName|undefined} value
 * @return {!proto.spine.system.server.RoutingFailed} returns this
*/
proto.spine.system.server.RoutingFailed.prototype.setEntityType = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.RoutingFailed} returns this
 */
proto.spine.system.server.RoutingFailed.prototype.clearEntityType = function() {
  return this.setEntityType(undefined);
};


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


/**
 * optional spine.base.Error error = 3;
 * @return {?proto.spine.base.Error}
 */
proto.spine.system.server.RoutingFailed.prototype.getError = function() {
  return /** @type{?proto.spine.base.Error} */ (
    jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 3));
};


/**
 * @param {?proto.spine.base.Error|undefined} value
 * @return {!proto.spine.system.server.RoutingFailed} returns this
*/
proto.spine.system.server.RoutingFailed.prototype.setError = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.RoutingFailed} returns this
 */
proto.spine.system.server.RoutingFailed.prototype.clearError = function() {
  return this.setError(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.RoutingFailed.prototype.hasError = function() {
  return jspb.Message.getField(this, 3) != 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.system.server.AggregateHistoryCorrupted.prototype.toObject = function(opt_includeInstance) {
  return proto.spine.system.server.AggregateHistoryCorrupted.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.system.server.AggregateHistoryCorrupted} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.AggregateHistoryCorrupted.toObject = function(includeInstance, msg) {
  var f, obj = {
    entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    entityType: (f = msg.getEntityType()) && spine_system_server_entity_type_pb.EntityTypeName.toObject(includeInstance, f),
    lastSuccessfulEvent: (f = msg.getLastSuccessfulEvent()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    erroneousEvent: (f = msg.getErroneousEvent()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
    error: (f = msg.getError()) && spine_base_error_pb.Error.toObject(includeInstance, f),
    interruptedEvents: jspb.Message.getFieldWithDefault(msg, 6, 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.spine.system.server.AggregateHistoryCorrupted}
 */
proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.spine.system.server.AggregateHistoryCorrupted;
  return proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.spine.system.server.AggregateHistoryCorrupted} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted}
 */
proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setEntity(value);
      break;
    case 2:
      var value = new spine_system_server_entity_type_pb.EntityTypeName;
      reader.readMessage(value,spine_system_server_entity_type_pb.EntityTypeName.deserializeBinaryFromReader);
      msg.setEntityType(value);
      break;
    case 3:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setLastSuccessfulEvent(value);
      break;
    case 4:
      var value = new spine_core_diagnostics_pb.MessageId;
      reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
      msg.setErroneousEvent(value);
      break;
    case 5:
      var value = new spine_base_error_pb.Error;
      reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
      msg.setError(value);
      break;
    case 6:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setInterruptedEvents(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.spine.system.server.AggregateHistoryCorrupted.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.system.server.AggregateHistoryCorrupted} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.spine.system.server.AggregateHistoryCorrupted.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getEntity();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getEntityType();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      spine_system_server_entity_type_pb.EntityTypeName.serializeBinaryToWriter
    );
  }
  f = message.getLastSuccessfulEvent();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getErroneousEvent();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
    );
  }
  f = message.getError();
  if (f != null) {
    writer.writeMessage(
      5,
      f,
      spine_base_error_pb.Error.serializeBinaryToWriter
    );
  }
  f = message.getInterruptedEvents();
  if (f !== 0) {
    writer.writeUint32(
      6,
      f
    );
  }
};


/**
 * optional spine.core.MessageId entity = 1;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getEntity = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
*/
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setEntity = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearEntity = function() {
  return this.setEntity(undefined);
};


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


/**
 * optional EntityTypeName entity_type = 2;
 * @return {?proto.spine.system.server.EntityTypeName}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getEntityType = function() {
  return /** @type{?proto.spine.system.server.EntityTypeName} */ (
    jspb.Message.getWrapperField(this, spine_system_server_entity_type_pb.EntityTypeName, 2));
};


/**
 * @param {?proto.spine.system.server.EntityTypeName|undefined} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
*/
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setEntityType = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearEntityType = function() {
  return this.setEntityType(undefined);
};


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


/**
 * optional spine.core.MessageId last_successful_event = 3;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getLastSuccessfulEvent = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
*/
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setLastSuccessfulEvent = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearLastSuccessfulEvent = function() {
  return this.setLastSuccessfulEvent(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasLastSuccessfulEvent = function() {
  return jspb.Message.getField(this, 3) != null;
};


/**
 * optional spine.core.MessageId erroneous_event = 4;
 * @return {?proto.spine.core.MessageId}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getErroneousEvent = function() {
  return /** @type{?proto.spine.core.MessageId} */ (
    jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 4));
};


/**
 * @param {?proto.spine.core.MessageId|undefined} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
*/
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setErroneousEvent = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearErroneousEvent = function() {
  return this.setErroneousEvent(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasErroneousEvent = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional spine.base.Error error = 5;
 * @return {?proto.spine.base.Error}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getError = function() {
  return /** @type{?proto.spine.base.Error} */ (
    jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 5));
};


/**
 * @param {?proto.spine.base.Error|undefined} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
*/
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setError = function(value) {
  return jspb.Message.setWrapperField(this, 5, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearError = function() {
  return this.setError(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasError = function() {
  return jspb.Message.getField(this, 5) != null;
};


/**
 * optional uint32 interrupted_events = 6;
 * @return {number}
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.getInterruptedEvents = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};


/**
 * @param {number} value
 * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
 */
proto.spine.system.server.AggregateHistoryCorrupted.prototype.setInterruptedEvents = function(value) {
  return jspb.Message.setProto3IntField(this, 6, value);
};


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

// 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.system.server.HandlerFailedUnexpectedly.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype.constructor = proto.spine.system.server.HandlerFailedUnexpectedly.Parser;
proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.HandlerFailedUnexpectedly();
  
  if (obj.entity !== undefined) {
    if (obj.entity === null) {
      msg.setEntity(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
      msg.setEntity(value);
    }
  }
  
  if (obj.handledSignal !== undefined) {
    if (obj.handledSignal === null) {
      msg.setHandledSignal(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.handledSignal);
      msg.setHandledSignal(value);
    }
  }
  
  if (obj.error !== undefined) {
    if (obj.error === null) {
      msg.setError(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
      msg.setError(value);
    }
  }
  return msg;
};

proto.spine.system.server.AggregateHistoryCorrupted.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype.constructor = proto.spine.system.server.AggregateHistoryCorrupted.Parser;
proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.AggregateHistoryCorrupted();
  
  if (obj.entity !== undefined) {
    if (obj.entity === null) {
      msg.setEntity(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
      msg.setEntity(value);
    }
  }
  
  if (obj.entityType !== undefined) {
    if (obj.entityType === null) {
      msg.setEntityType(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.system.server.EntityTypeName').fromObject(obj.entityType);
      msg.setEntityType(value);
    }
  }
  
  if (obj.lastSuccessfulEvent !== undefined) {
    if (obj.lastSuccessfulEvent === null) {
      msg.setLastSuccessfulEvent(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.lastSuccessfulEvent);
      msg.setLastSuccessfulEvent(value);
    }
  }
  
  if (obj.erroneousEvent !== undefined) {
    if (obj.erroneousEvent === null) {
      msg.setErroneousEvent(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.erroneousEvent);
      msg.setErroneousEvent(value);
    }
  }
  
  if (obj.error !== undefined) {
    if (obj.error === null) {
      msg.setError(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
      msg.setError(value);
    }
  }
  
  if (obj.interruptedEvents !== undefined) {
    if (obj.interruptedEvents !== null) {
      let value = obj.interruptedEvents;
      msg.setInterruptedEvents(value);
    }
  }
  return msg;
};

proto.spine.system.server.CannotDispatchDuplicateEvent.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype.constructor = proto.spine.system.server.CannotDispatchDuplicateEvent.Parser;
proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.CannotDispatchDuplicateEvent();
  
  if (obj.entity !== undefined) {
    if (obj.entity === null) {
      msg.setEntity(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
      msg.setEntity(value);
    }
  }
  
  if (obj.event !== undefined) {
    if (obj.event === null) {
      msg.setEvent(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.EventId').fromObject(obj.event);
      msg.setEvent(value);
    }
  }
  
  if (obj.duplicateEvent !== undefined) {
    if (obj.duplicateEvent === null) {
      msg.setDuplicateEvent(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.duplicateEvent);
      msg.setDuplicateEvent(value);
    }
  }
  return msg;
};

proto.spine.system.server.CannotDispatchDuplicateCommand.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype.constructor = proto.spine.system.server.CannotDispatchDuplicateCommand.Parser;
proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.CannotDispatchDuplicateCommand();
  
  if (obj.entity !== undefined) {
    if (obj.entity === null) {
      msg.setEntity(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
      msg.setEntity(value);
    }
  }
  
  if (obj.command !== undefined) {
    if (obj.command === null) {
      msg.setCommand(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.command);
      msg.setCommand(value);
    }
  }
  
  if (obj.duplicateCommand !== undefined) {
    if (obj.duplicateCommand === null) {
      msg.setDuplicateCommand(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.duplicateCommand);
      msg.setDuplicateCommand(value);
    }
  }
  return msg;
};

proto.spine.system.server.ConstraintViolated.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.ConstraintViolated.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.ConstraintViolated.Parser.prototype.constructor = proto.spine.system.server.ConstraintViolated.Parser;
proto.spine.system.server.ConstraintViolated.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.ConstraintViolated();
  
  if (obj.entity !== undefined) {
    if (obj.entity === null) {
      msg.setEntity(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
      msg.setEntity(value);
    }
  }
  
  if (obj.lastMessage !== undefined) {
    if (obj.lastMessage === null) {
      msg.setLastMessage(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.lastMessage);
      msg.setLastMessage(value);
    }
  }
  
  if (obj.rootMessage !== undefined) {
    if (obj.rootMessage === null) {
      msg.setRootMessage(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.rootMessage);
      msg.setRootMessage(value);
    }
  }
  
  if (obj.violation !== undefined && obj.violation !== null) {
    obj.violation.forEach(
      (listItem, index, array) => {
        if (listItem === null) {
          msg.addViolation(null);
        } else {
          let value = TypeParsers.parserFor('type.spine.io/spine.validate.ConstraintViolation').fromObject(listItem);
          msg.addViolation(value);
        }
      }
    );
  }
  return msg;
};

proto.spine.system.server.RoutingFailed.Parser = function() {
  ObjectParser.call(this);
};
proto.spine.system.server.RoutingFailed.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.RoutingFailed.Parser.prototype.constructor = proto.spine.system.server.RoutingFailed.Parser;
proto.spine.system.server.RoutingFailed.Parser.prototype.fromObject = function(obj) {
  if (obj === null) {
    return null;
  }
  
  let msg = new proto.spine.system.server.RoutingFailed();
  
  if (obj.handledSignal !== undefined) {
    if (obj.handledSignal === null) {
      msg.setHandledSignal(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.handledSignal);
      msg.setHandledSignal(value);
    }
  }
  
  if (obj.entityType !== undefined) {
    if (obj.entityType === null) {
      msg.setEntityType(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.system.server.EntityTypeName').fromObject(obj.entityType);
      msg.setEntityType(value);
    }
  }
  
  if (obj.error !== undefined) {
    if (obj.error === null) {
      msg.setError(null);
    } else {
      let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
      msg.setError(value);
    }
  }
  return msg;
};

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

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

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

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

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

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