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

  1. // source: spine/system/server/diagnostic_events.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  6. * field starts with 'MSG_' and isn't a translatable message.
  7. * @public
  8. */
  9. // GENERATED CODE -- DO NOT EDIT!
  10. var jspb = require('google-protobuf');
  11. var goog = jspb;
  12. var global = Function('return this')();
  13. var spine_options_pb = require('../../../spine/options_pb.js');
  14. goog.object.extend(proto, spine_options_pb);
  15. var spine_base_error_pb = require('../../../spine/base/error_pb.js');
  16. goog.object.extend(proto, spine_base_error_pb);
  17. var spine_core_command_pb = require('../../../spine/core/command_pb.js');
  18. goog.object.extend(proto, spine_core_command_pb);
  19. var spine_core_diagnostics_pb = require('../../../spine/core/diagnostics_pb.js');
  20. goog.object.extend(proto, spine_core_diagnostics_pb);
  21. var spine_core_event_pb = require('../../../spine/core/event_pb.js');
  22. goog.object.extend(proto, spine_core_event_pb);
  23. var spine_system_server_entity_type_pb = require('../../../spine/system/server/entity_type_pb.js');
  24. goog.object.extend(proto, spine_system_server_entity_type_pb);
  25. var spine_validate_validation_error_pb = require('../../../spine/validate/validation_error_pb.js');
  26. goog.object.extend(proto, spine_validate_validation_error_pb);
  27. goog.exportSymbol('proto.spine.system.server.AggregateHistoryCorrupted', null, global);
  28. goog.exportSymbol('proto.spine.system.server.CannotDispatchDuplicateCommand', null, global);
  29. goog.exportSymbol('proto.spine.system.server.CannotDispatchDuplicateEvent', null, global);
  30. goog.exportSymbol('proto.spine.system.server.ConstraintViolated', null, global);
  31. goog.exportSymbol('proto.spine.system.server.HandlerFailedUnexpectedly', null, global);
  32. goog.exportSymbol('proto.spine.system.server.RoutingFailed', null, global);
  33. /**
  34. * Generated by JsPbCodeGenerator.
  35. * @param {Array=} opt_data Optional initial data array, typically from a
  36. * server response, or constructed directly in Javascript. The array is used
  37. * in place and becomes part of the constructed object. It is not cloned.
  38. * If no data is provided, the constructed object will be empty, but still
  39. * valid.
  40. * @extends {jspb.Message}
  41. * @constructor
  42. */
  43. proto.spine.system.server.ConstraintViolated = function(opt_data) {
  44. jspb.Message.initialize(this, opt_data, 0, -1, proto.spine.system.server.ConstraintViolated.repeatedFields_, null);
  45. };
  46. goog.inherits(proto.spine.system.server.ConstraintViolated, jspb.Message);
  47. if (goog.DEBUG && !COMPILED) {
  48. /**
  49. * @public
  50. * @override
  51. */
  52. proto.spine.system.server.ConstraintViolated.displayName = 'proto.spine.system.server.ConstraintViolated';
  53. }
  54. /**
  55. * Generated by JsPbCodeGenerator.
  56. * @param {Array=} opt_data Optional initial data array, typically from a
  57. * server response, or constructed directly in Javascript. The array is used
  58. * in place and becomes part of the constructed object. It is not cloned.
  59. * If no data is provided, the constructed object will be empty, but still
  60. * valid.
  61. * @extends {jspb.Message}
  62. * @constructor
  63. */
  64. proto.spine.system.server.CannotDispatchDuplicateCommand = function(opt_data) {
  65. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  66. };
  67. goog.inherits(proto.spine.system.server.CannotDispatchDuplicateCommand, jspb.Message);
  68. if (goog.DEBUG && !COMPILED) {
  69. /**
  70. * @public
  71. * @override
  72. */
  73. proto.spine.system.server.CannotDispatchDuplicateCommand.displayName = 'proto.spine.system.server.CannotDispatchDuplicateCommand';
  74. }
  75. /**
  76. * Generated by JsPbCodeGenerator.
  77. * @param {Array=} opt_data Optional initial data array, typically from a
  78. * server response, or constructed directly in Javascript. The array is used
  79. * in place and becomes part of the constructed object. It is not cloned.
  80. * If no data is provided, the constructed object will be empty, but still
  81. * valid.
  82. * @extends {jspb.Message}
  83. * @constructor
  84. */
  85. proto.spine.system.server.CannotDispatchDuplicateEvent = function(opt_data) {
  86. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  87. };
  88. goog.inherits(proto.spine.system.server.CannotDispatchDuplicateEvent, jspb.Message);
  89. if (goog.DEBUG && !COMPILED) {
  90. /**
  91. * @public
  92. * @override
  93. */
  94. proto.spine.system.server.CannotDispatchDuplicateEvent.displayName = 'proto.spine.system.server.CannotDispatchDuplicateEvent';
  95. }
  96. /**
  97. * Generated by JsPbCodeGenerator.
  98. * @param {Array=} opt_data Optional initial data array, typically from a
  99. * server response, or constructed directly in Javascript. The array is used
  100. * in place and becomes part of the constructed object. It is not cloned.
  101. * If no data is provided, the constructed object will be empty, but still
  102. * valid.
  103. * @extends {jspb.Message}
  104. * @constructor
  105. */
  106. proto.spine.system.server.HandlerFailedUnexpectedly = function(opt_data) {
  107. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  108. };
  109. goog.inherits(proto.spine.system.server.HandlerFailedUnexpectedly, jspb.Message);
  110. if (goog.DEBUG && !COMPILED) {
  111. /**
  112. * @public
  113. * @override
  114. */
  115. proto.spine.system.server.HandlerFailedUnexpectedly.displayName = 'proto.spine.system.server.HandlerFailedUnexpectedly';
  116. }
  117. /**
  118. * Generated by JsPbCodeGenerator.
  119. * @param {Array=} opt_data Optional initial data array, typically from a
  120. * server response, or constructed directly in Javascript. The array is used
  121. * in place and becomes part of the constructed object. It is not cloned.
  122. * If no data is provided, the constructed object will be empty, but still
  123. * valid.
  124. * @extends {jspb.Message}
  125. * @constructor
  126. */
  127. proto.spine.system.server.RoutingFailed = function(opt_data) {
  128. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  129. };
  130. goog.inherits(proto.spine.system.server.RoutingFailed, jspb.Message);
  131. if (goog.DEBUG && !COMPILED) {
  132. /**
  133. * @public
  134. * @override
  135. */
  136. proto.spine.system.server.RoutingFailed.displayName = 'proto.spine.system.server.RoutingFailed';
  137. }
  138. /**
  139. * Generated by JsPbCodeGenerator.
  140. * @param {Array=} opt_data Optional initial data array, typically from a
  141. * server response, or constructed directly in Javascript. The array is used
  142. * in place and becomes part of the constructed object. It is not cloned.
  143. * If no data is provided, the constructed object will be empty, but still
  144. * valid.
  145. * @extends {jspb.Message}
  146. * @constructor
  147. */
  148. proto.spine.system.server.AggregateHistoryCorrupted = function(opt_data) {
  149. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  150. };
  151. goog.inherits(proto.spine.system.server.AggregateHistoryCorrupted, jspb.Message);
  152. if (goog.DEBUG && !COMPILED) {
  153. /**
  154. * @public
  155. * @override
  156. */
  157. proto.spine.system.server.AggregateHistoryCorrupted.displayName = 'proto.spine.system.server.AggregateHistoryCorrupted';
  158. }
  159. /**
  160. * List of repeated fields within this message type.
  161. * @private {!Array<number>}
  162. * @const
  163. */
  164. proto.spine.system.server.ConstraintViolated.repeatedFields_ = [4];
  165. if (jspb.Message.GENERATE_TO_OBJECT) {
  166. /**
  167. * Creates an object representation of this proto.
  168. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  169. * Optional fields that are not set will be set to undefined.
  170. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  171. * For the list of reserved names please see:
  172. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  173. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  174. * JSPB instance for transitional soy proto support:
  175. * http://goto/soy-param-migration
  176. * @return {!Object}
  177. */
  178. proto.spine.system.server.ConstraintViolated.prototype.toObject = function(opt_includeInstance) {
  179. return proto.spine.system.server.ConstraintViolated.toObject(opt_includeInstance, this);
  180. };
  181. /**
  182. * Static version of the {@see toObject} method.
  183. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  184. * the JSPB instance for transitional soy proto support:
  185. * http://goto/soy-param-migration
  186. * @param {!proto.spine.system.server.ConstraintViolated} msg The msg instance to transform.
  187. * @return {!Object}
  188. * @suppress {unusedLocalVariables} f is only used for nested messages
  189. */
  190. proto.spine.system.server.ConstraintViolated.toObject = function(includeInstance, msg) {
  191. var f, obj = {
  192. entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  193. lastMessage: (f = msg.getLastMessage()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  194. rootMessage: (f = msg.getRootMessage()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  195. violationList: jspb.Message.toObjectList(msg.getViolationList(),
  196. spine_validate_validation_error_pb.ConstraintViolation.toObject, includeInstance)
  197. };
  198. if (includeInstance) {
  199. obj.$jspbMessageInstance = msg;
  200. }
  201. return obj;
  202. };
  203. }
  204. /**
  205. * Deserializes binary data (in protobuf wire format).
  206. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  207. * @return {!proto.spine.system.server.ConstraintViolated}
  208. */
  209. proto.spine.system.server.ConstraintViolated.deserializeBinary = function(bytes) {
  210. var reader = new jspb.BinaryReader(bytes);
  211. var msg = new proto.spine.system.server.ConstraintViolated;
  212. return proto.spine.system.server.ConstraintViolated.deserializeBinaryFromReader(msg, reader);
  213. };
  214. /**
  215. * Deserializes binary data (in protobuf wire format) from the
  216. * given reader into the given message object.
  217. * @param {!proto.spine.system.server.ConstraintViolated} msg The message object to deserialize into.
  218. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  219. * @return {!proto.spine.system.server.ConstraintViolated}
  220. */
  221. proto.spine.system.server.ConstraintViolated.deserializeBinaryFromReader = function(msg, reader) {
  222. while (reader.nextField()) {
  223. if (reader.isEndGroup()) {
  224. break;
  225. }
  226. var field = reader.getFieldNumber();
  227. switch (field) {
  228. case 1:
  229. var value = new spine_core_diagnostics_pb.MessageId;
  230. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  231. msg.setEntity(value);
  232. break;
  233. case 2:
  234. var value = new spine_core_diagnostics_pb.MessageId;
  235. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  236. msg.setLastMessage(value);
  237. break;
  238. case 3:
  239. var value = new spine_core_diagnostics_pb.MessageId;
  240. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  241. msg.setRootMessage(value);
  242. break;
  243. case 4:
  244. var value = new spine_validate_validation_error_pb.ConstraintViolation;
  245. reader.readMessage(value,spine_validate_validation_error_pb.ConstraintViolation.deserializeBinaryFromReader);
  246. msg.addViolation(value);
  247. break;
  248. default:
  249. reader.skipField();
  250. break;
  251. }
  252. }
  253. return msg;
  254. };
  255. /**
  256. * Serializes the message to binary data (in protobuf wire format).
  257. * @return {!Uint8Array}
  258. */
  259. proto.spine.system.server.ConstraintViolated.prototype.serializeBinary = function() {
  260. var writer = new jspb.BinaryWriter();
  261. proto.spine.system.server.ConstraintViolated.serializeBinaryToWriter(this, writer);
  262. return writer.getResultBuffer();
  263. };
  264. /**
  265. * Serializes the given message to binary data (in protobuf wire
  266. * format), writing to the given BinaryWriter.
  267. * @param {!proto.spine.system.server.ConstraintViolated} message
  268. * @param {!jspb.BinaryWriter} writer
  269. * @suppress {unusedLocalVariables} f is only used for nested messages
  270. */
  271. proto.spine.system.server.ConstraintViolated.serializeBinaryToWriter = function(message, writer) {
  272. var f = undefined;
  273. f = message.getEntity();
  274. if (f != null) {
  275. writer.writeMessage(
  276. 1,
  277. f,
  278. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  279. );
  280. }
  281. f = message.getLastMessage();
  282. if (f != null) {
  283. writer.writeMessage(
  284. 2,
  285. f,
  286. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  287. );
  288. }
  289. f = message.getRootMessage();
  290. if (f != null) {
  291. writer.writeMessage(
  292. 3,
  293. f,
  294. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  295. );
  296. }
  297. f = message.getViolationList();
  298. if (f.length > 0) {
  299. writer.writeRepeatedMessage(
  300. 4,
  301. f,
  302. spine_validate_validation_error_pb.ConstraintViolation.serializeBinaryToWriter
  303. );
  304. }
  305. };
  306. /**
  307. * optional spine.core.MessageId entity = 1;
  308. * @return {?proto.spine.core.MessageId}
  309. */
  310. proto.spine.system.server.ConstraintViolated.prototype.getEntity = function() {
  311. return /** @type{?proto.spine.core.MessageId} */ (
  312. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  313. };
  314. /**
  315. * @param {?proto.spine.core.MessageId|undefined} value
  316. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  317. */
  318. proto.spine.system.server.ConstraintViolated.prototype.setEntity = function(value) {
  319. return jspb.Message.setWrapperField(this, 1, value);
  320. };
  321. /**
  322. * Clears the message field making it undefined.
  323. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  324. */
  325. proto.spine.system.server.ConstraintViolated.prototype.clearEntity = function() {
  326. return this.setEntity(undefined);
  327. };
  328. /**
  329. * Returns whether this field is set.
  330. * @return {boolean}
  331. */
  332. proto.spine.system.server.ConstraintViolated.prototype.hasEntity = function() {
  333. return jspb.Message.getField(this, 1) != null;
  334. };
  335. /**
  336. * optional spine.core.MessageId last_message = 2;
  337. * @return {?proto.spine.core.MessageId}
  338. */
  339. proto.spine.system.server.ConstraintViolated.prototype.getLastMessage = function() {
  340. return /** @type{?proto.spine.core.MessageId} */ (
  341. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 2));
  342. };
  343. /**
  344. * @param {?proto.spine.core.MessageId|undefined} value
  345. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  346. */
  347. proto.spine.system.server.ConstraintViolated.prototype.setLastMessage = function(value) {
  348. return jspb.Message.setWrapperField(this, 2, value);
  349. };
  350. /**
  351. * Clears the message field making it undefined.
  352. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  353. */
  354. proto.spine.system.server.ConstraintViolated.prototype.clearLastMessage = function() {
  355. return this.setLastMessage(undefined);
  356. };
  357. /**
  358. * Returns whether this field is set.
  359. * @return {boolean}
  360. */
  361. proto.spine.system.server.ConstraintViolated.prototype.hasLastMessage = function() {
  362. return jspb.Message.getField(this, 2) != null;
  363. };
  364. /**
  365. * optional spine.core.MessageId root_message = 3;
  366. * @return {?proto.spine.core.MessageId}
  367. */
  368. proto.spine.system.server.ConstraintViolated.prototype.getRootMessage = function() {
  369. return /** @type{?proto.spine.core.MessageId} */ (
  370. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
  371. };
  372. /**
  373. * @param {?proto.spine.core.MessageId|undefined} value
  374. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  375. */
  376. proto.spine.system.server.ConstraintViolated.prototype.setRootMessage = function(value) {
  377. return jspb.Message.setWrapperField(this, 3, value);
  378. };
  379. /**
  380. * Clears the message field making it undefined.
  381. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  382. */
  383. proto.spine.system.server.ConstraintViolated.prototype.clearRootMessage = function() {
  384. return this.setRootMessage(undefined);
  385. };
  386. /**
  387. * Returns whether this field is set.
  388. * @return {boolean}
  389. */
  390. proto.spine.system.server.ConstraintViolated.prototype.hasRootMessage = function() {
  391. return jspb.Message.getField(this, 3) != null;
  392. };
  393. /**
  394. * repeated spine.validate.ConstraintViolation violation = 4;
  395. * @return {!Array<!proto.spine.validate.ConstraintViolation>}
  396. */
  397. proto.spine.system.server.ConstraintViolated.prototype.getViolationList = function() {
  398. return /** @type{!Array<!proto.spine.validate.ConstraintViolation>} */ (
  399. jspb.Message.getRepeatedWrapperField(this, spine_validate_validation_error_pb.ConstraintViolation, 4));
  400. };
  401. /**
  402. * @param {!Array<!proto.spine.validate.ConstraintViolation>} value
  403. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  404. */
  405. proto.spine.system.server.ConstraintViolated.prototype.setViolationList = function(value) {
  406. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  407. };
  408. /**
  409. * @param {!proto.spine.validate.ConstraintViolation=} opt_value
  410. * @param {number=} opt_index
  411. * @return {!proto.spine.validate.ConstraintViolation}
  412. */
  413. proto.spine.system.server.ConstraintViolated.prototype.addViolation = function(opt_value, opt_index) {
  414. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.spine.validate.ConstraintViolation, opt_index);
  415. };
  416. /**
  417. * Clears the list making it empty but non-null.
  418. * @return {!proto.spine.system.server.ConstraintViolated} returns this
  419. */
  420. proto.spine.system.server.ConstraintViolated.prototype.clearViolationList = function() {
  421. return this.setViolationList([]);
  422. };
  423. if (jspb.Message.GENERATE_TO_OBJECT) {
  424. /**
  425. * Creates an object representation of this proto.
  426. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  427. * Optional fields that are not set will be set to undefined.
  428. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  429. * For the list of reserved names please see:
  430. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  431. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  432. * JSPB instance for transitional soy proto support:
  433. * http://goto/soy-param-migration
  434. * @return {!Object}
  435. */
  436. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.toObject = function(opt_includeInstance) {
  437. return proto.spine.system.server.CannotDispatchDuplicateCommand.toObject(opt_includeInstance, this);
  438. };
  439. /**
  440. * Static version of the {@see toObject} method.
  441. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  442. * the JSPB instance for transitional soy proto support:
  443. * http://goto/soy-param-migration
  444. * @param {!proto.spine.system.server.CannotDispatchDuplicateCommand} msg The msg instance to transform.
  445. * @return {!Object}
  446. * @suppress {unusedLocalVariables} f is only used for nested messages
  447. */
  448. proto.spine.system.server.CannotDispatchDuplicateCommand.toObject = function(includeInstance, msg) {
  449. var f, obj = {
  450. entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  451. command: (f = msg.getCommand()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  452. duplicateCommand: (f = msg.getDuplicateCommand()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f)
  453. };
  454. if (includeInstance) {
  455. obj.$jspbMessageInstance = msg;
  456. }
  457. return obj;
  458. };
  459. }
  460. /**
  461. * Deserializes binary data (in protobuf wire format).
  462. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  463. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand}
  464. */
  465. proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinary = function(bytes) {
  466. var reader = new jspb.BinaryReader(bytes);
  467. var msg = new proto.spine.system.server.CannotDispatchDuplicateCommand;
  468. return proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinaryFromReader(msg, reader);
  469. };
  470. /**
  471. * Deserializes binary data (in protobuf wire format) from the
  472. * given reader into the given message object.
  473. * @param {!proto.spine.system.server.CannotDispatchDuplicateCommand} msg The message object to deserialize into.
  474. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  475. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand}
  476. */
  477. proto.spine.system.server.CannotDispatchDuplicateCommand.deserializeBinaryFromReader = function(msg, reader) {
  478. while (reader.nextField()) {
  479. if (reader.isEndGroup()) {
  480. break;
  481. }
  482. var field = reader.getFieldNumber();
  483. switch (field) {
  484. case 1:
  485. var value = new spine_core_diagnostics_pb.MessageId;
  486. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  487. msg.setEntity(value);
  488. break;
  489. case 2:
  490. var value = new spine_core_command_pb.CommandId;
  491. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  492. msg.setCommand(value);
  493. break;
  494. case 3:
  495. var value = new spine_core_diagnostics_pb.MessageId;
  496. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  497. msg.setDuplicateCommand(value);
  498. break;
  499. default:
  500. reader.skipField();
  501. break;
  502. }
  503. }
  504. return msg;
  505. };
  506. /**
  507. * Serializes the message to binary data (in protobuf wire format).
  508. * @return {!Uint8Array}
  509. */
  510. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.serializeBinary = function() {
  511. var writer = new jspb.BinaryWriter();
  512. proto.spine.system.server.CannotDispatchDuplicateCommand.serializeBinaryToWriter(this, writer);
  513. return writer.getResultBuffer();
  514. };
  515. /**
  516. * Serializes the given message to binary data (in protobuf wire
  517. * format), writing to the given BinaryWriter.
  518. * @param {!proto.spine.system.server.CannotDispatchDuplicateCommand} message
  519. * @param {!jspb.BinaryWriter} writer
  520. * @suppress {unusedLocalVariables} f is only used for nested messages
  521. */
  522. proto.spine.system.server.CannotDispatchDuplicateCommand.serializeBinaryToWriter = function(message, writer) {
  523. var f = undefined;
  524. f = message.getEntity();
  525. if (f != null) {
  526. writer.writeMessage(
  527. 1,
  528. f,
  529. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  530. );
  531. }
  532. f = message.getCommand();
  533. if (f != null) {
  534. writer.writeMessage(
  535. 2,
  536. f,
  537. spine_core_command_pb.CommandId.serializeBinaryToWriter
  538. );
  539. }
  540. f = message.getDuplicateCommand();
  541. if (f != null) {
  542. writer.writeMessage(
  543. 3,
  544. f,
  545. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  546. );
  547. }
  548. };
  549. /**
  550. * optional spine.core.MessageId entity = 1;
  551. * @return {?proto.spine.core.MessageId}
  552. */
  553. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getEntity = function() {
  554. return /** @type{?proto.spine.core.MessageId} */ (
  555. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  556. };
  557. /**
  558. * @param {?proto.spine.core.MessageId|undefined} value
  559. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  560. */
  561. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setEntity = function(value) {
  562. return jspb.Message.setWrapperField(this, 1, value);
  563. };
  564. /**
  565. * Clears the message field making it undefined.
  566. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  567. */
  568. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearEntity = function() {
  569. return this.setEntity(undefined);
  570. };
  571. /**
  572. * Returns whether this field is set.
  573. * @return {boolean}
  574. */
  575. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.hasEntity = function() {
  576. return jspb.Message.getField(this, 1) != null;
  577. };
  578. /**
  579. * optional spine.core.CommandId command = 2;
  580. * @return {?proto.spine.core.CommandId}
  581. */
  582. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getCommand = function() {
  583. return /** @type{?proto.spine.core.CommandId} */ (
  584. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 2));
  585. };
  586. /**
  587. * @param {?proto.spine.core.CommandId|undefined} value
  588. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  589. */
  590. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setCommand = function(value) {
  591. return jspb.Message.setWrapperField(this, 2, value);
  592. };
  593. /**
  594. * Clears the message field making it undefined.
  595. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  596. */
  597. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearCommand = function() {
  598. return this.setCommand(undefined);
  599. };
  600. /**
  601. * Returns whether this field is set.
  602. * @return {boolean}
  603. */
  604. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.hasCommand = function() {
  605. return jspb.Message.getField(this, 2) != null;
  606. };
  607. /**
  608. * optional spine.core.MessageId duplicate_command = 3;
  609. * @return {?proto.spine.core.MessageId}
  610. */
  611. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.getDuplicateCommand = function() {
  612. return /** @type{?proto.spine.core.MessageId} */ (
  613. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
  614. };
  615. /**
  616. * @param {?proto.spine.core.MessageId|undefined} value
  617. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  618. */
  619. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.setDuplicateCommand = function(value) {
  620. return jspb.Message.setWrapperField(this, 3, value);
  621. };
  622. /**
  623. * Clears the message field making it undefined.
  624. * @return {!proto.spine.system.server.CannotDispatchDuplicateCommand} returns this
  625. */
  626. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.clearDuplicateCommand = function() {
  627. return this.setDuplicateCommand(undefined);
  628. };
  629. /**
  630. * Returns whether this field is set.
  631. * @return {boolean}
  632. */
  633. proto.spine.system.server.CannotDispatchDuplicateCommand.prototype.hasDuplicateCommand = function() {
  634. return jspb.Message.getField(this, 3) != null;
  635. };
  636. if (jspb.Message.GENERATE_TO_OBJECT) {
  637. /**
  638. * Creates an object representation of this proto.
  639. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  640. * Optional fields that are not set will be set to undefined.
  641. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  642. * For the list of reserved names please see:
  643. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  644. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  645. * JSPB instance for transitional soy proto support:
  646. * http://goto/soy-param-migration
  647. * @return {!Object}
  648. */
  649. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.toObject = function(opt_includeInstance) {
  650. return proto.spine.system.server.CannotDispatchDuplicateEvent.toObject(opt_includeInstance, this);
  651. };
  652. /**
  653. * Static version of the {@see toObject} method.
  654. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  655. * the JSPB instance for transitional soy proto support:
  656. * http://goto/soy-param-migration
  657. * @param {!proto.spine.system.server.CannotDispatchDuplicateEvent} msg The msg instance to transform.
  658. * @return {!Object}
  659. * @suppress {unusedLocalVariables} f is only used for nested messages
  660. */
  661. proto.spine.system.server.CannotDispatchDuplicateEvent.toObject = function(includeInstance, msg) {
  662. var f, obj = {
  663. entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  664. event: (f = msg.getEvent()) && spine_core_event_pb.EventId.toObject(includeInstance, f),
  665. duplicateEvent: (f = msg.getDuplicateEvent()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f)
  666. };
  667. if (includeInstance) {
  668. obj.$jspbMessageInstance = msg;
  669. }
  670. return obj;
  671. };
  672. }
  673. /**
  674. * Deserializes binary data (in protobuf wire format).
  675. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  676. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent}
  677. */
  678. proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinary = function(bytes) {
  679. var reader = new jspb.BinaryReader(bytes);
  680. var msg = new proto.spine.system.server.CannotDispatchDuplicateEvent;
  681. return proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinaryFromReader(msg, reader);
  682. };
  683. /**
  684. * Deserializes binary data (in protobuf wire format) from the
  685. * given reader into the given message object.
  686. * @param {!proto.spine.system.server.CannotDispatchDuplicateEvent} msg The message object to deserialize into.
  687. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  688. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent}
  689. */
  690. proto.spine.system.server.CannotDispatchDuplicateEvent.deserializeBinaryFromReader = function(msg, reader) {
  691. while (reader.nextField()) {
  692. if (reader.isEndGroup()) {
  693. break;
  694. }
  695. var field = reader.getFieldNumber();
  696. switch (field) {
  697. case 1:
  698. var value = new spine_core_diagnostics_pb.MessageId;
  699. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  700. msg.setEntity(value);
  701. break;
  702. case 2:
  703. var value = new spine_core_event_pb.EventId;
  704. reader.readMessage(value,spine_core_event_pb.EventId.deserializeBinaryFromReader);
  705. msg.setEvent(value);
  706. break;
  707. case 3:
  708. var value = new spine_core_diagnostics_pb.MessageId;
  709. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  710. msg.setDuplicateEvent(value);
  711. break;
  712. default:
  713. reader.skipField();
  714. break;
  715. }
  716. }
  717. return msg;
  718. };
  719. /**
  720. * Serializes the message to binary data (in protobuf wire format).
  721. * @return {!Uint8Array}
  722. */
  723. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.serializeBinary = function() {
  724. var writer = new jspb.BinaryWriter();
  725. proto.spine.system.server.CannotDispatchDuplicateEvent.serializeBinaryToWriter(this, writer);
  726. return writer.getResultBuffer();
  727. };
  728. /**
  729. * Serializes the given message to binary data (in protobuf wire
  730. * format), writing to the given BinaryWriter.
  731. * @param {!proto.spine.system.server.CannotDispatchDuplicateEvent} message
  732. * @param {!jspb.BinaryWriter} writer
  733. * @suppress {unusedLocalVariables} f is only used for nested messages
  734. */
  735. proto.spine.system.server.CannotDispatchDuplicateEvent.serializeBinaryToWriter = function(message, writer) {
  736. var f = undefined;
  737. f = message.getEntity();
  738. if (f != null) {
  739. writer.writeMessage(
  740. 1,
  741. f,
  742. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  743. );
  744. }
  745. f = message.getEvent();
  746. if (f != null) {
  747. writer.writeMessage(
  748. 2,
  749. f,
  750. spine_core_event_pb.EventId.serializeBinaryToWriter
  751. );
  752. }
  753. f = message.getDuplicateEvent();
  754. if (f != null) {
  755. writer.writeMessage(
  756. 3,
  757. f,
  758. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  759. );
  760. }
  761. };
  762. /**
  763. * optional spine.core.MessageId entity = 1;
  764. * @return {?proto.spine.core.MessageId}
  765. */
  766. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getEntity = function() {
  767. return /** @type{?proto.spine.core.MessageId} */ (
  768. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  769. };
  770. /**
  771. * @param {?proto.spine.core.MessageId|undefined} value
  772. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  773. */
  774. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setEntity = function(value) {
  775. return jspb.Message.setWrapperField(this, 1, value);
  776. };
  777. /**
  778. * Clears the message field making it undefined.
  779. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  780. */
  781. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearEntity = function() {
  782. return this.setEntity(undefined);
  783. };
  784. /**
  785. * Returns whether this field is set.
  786. * @return {boolean}
  787. */
  788. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.hasEntity = function() {
  789. return jspb.Message.getField(this, 1) != null;
  790. };
  791. /**
  792. * optional spine.core.EventId event = 2;
  793. * @return {?proto.spine.core.EventId}
  794. */
  795. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getEvent = function() {
  796. return /** @type{?proto.spine.core.EventId} */ (
  797. jspb.Message.getWrapperField(this, spine_core_event_pb.EventId, 2));
  798. };
  799. /**
  800. * @param {?proto.spine.core.EventId|undefined} value
  801. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  802. */
  803. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setEvent = function(value) {
  804. return jspb.Message.setWrapperField(this, 2, value);
  805. };
  806. /**
  807. * Clears the message field making it undefined.
  808. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  809. */
  810. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearEvent = function() {
  811. return this.setEvent(undefined);
  812. };
  813. /**
  814. * Returns whether this field is set.
  815. * @return {boolean}
  816. */
  817. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.hasEvent = function() {
  818. return jspb.Message.getField(this, 2) != null;
  819. };
  820. /**
  821. * optional spine.core.MessageId duplicate_event = 3;
  822. * @return {?proto.spine.core.MessageId}
  823. */
  824. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.getDuplicateEvent = function() {
  825. return /** @type{?proto.spine.core.MessageId} */ (
  826. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
  827. };
  828. /**
  829. * @param {?proto.spine.core.MessageId|undefined} value
  830. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  831. */
  832. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.setDuplicateEvent = function(value) {
  833. return jspb.Message.setWrapperField(this, 3, value);
  834. };
  835. /**
  836. * Clears the message field making it undefined.
  837. * @return {!proto.spine.system.server.CannotDispatchDuplicateEvent} returns this
  838. */
  839. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.clearDuplicateEvent = function() {
  840. return this.setDuplicateEvent(undefined);
  841. };
  842. /**
  843. * Returns whether this field is set.
  844. * @return {boolean}
  845. */
  846. proto.spine.system.server.CannotDispatchDuplicateEvent.prototype.hasDuplicateEvent = function() {
  847. return jspb.Message.getField(this, 3) != null;
  848. };
  849. if (jspb.Message.GENERATE_TO_OBJECT) {
  850. /**
  851. * Creates an object representation of this proto.
  852. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  853. * Optional fields that are not set will be set to undefined.
  854. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  855. * For the list of reserved names please see:
  856. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  857. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  858. * JSPB instance for transitional soy proto support:
  859. * http://goto/soy-param-migration
  860. * @return {!Object}
  861. */
  862. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.toObject = function(opt_includeInstance) {
  863. return proto.spine.system.server.HandlerFailedUnexpectedly.toObject(opt_includeInstance, this);
  864. };
  865. /**
  866. * Static version of the {@see toObject} method.
  867. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  868. * the JSPB instance for transitional soy proto support:
  869. * http://goto/soy-param-migration
  870. * @param {!proto.spine.system.server.HandlerFailedUnexpectedly} msg The msg instance to transform.
  871. * @return {!Object}
  872. * @suppress {unusedLocalVariables} f is only used for nested messages
  873. */
  874. proto.spine.system.server.HandlerFailedUnexpectedly.toObject = function(includeInstance, msg) {
  875. var f, obj = {
  876. entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  877. handledSignal: (f = msg.getHandledSignal()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  878. error: (f = msg.getError()) && spine_base_error_pb.Error.toObject(includeInstance, f)
  879. };
  880. if (includeInstance) {
  881. obj.$jspbMessageInstance = msg;
  882. }
  883. return obj;
  884. };
  885. }
  886. /**
  887. * Deserializes binary data (in protobuf wire format).
  888. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  889. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly}
  890. */
  891. proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinary = function(bytes) {
  892. var reader = new jspb.BinaryReader(bytes);
  893. var msg = new proto.spine.system.server.HandlerFailedUnexpectedly;
  894. return proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinaryFromReader(msg, reader);
  895. };
  896. /**
  897. * Deserializes binary data (in protobuf wire format) from the
  898. * given reader into the given message object.
  899. * @param {!proto.spine.system.server.HandlerFailedUnexpectedly} msg The message object to deserialize into.
  900. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  901. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly}
  902. */
  903. proto.spine.system.server.HandlerFailedUnexpectedly.deserializeBinaryFromReader = function(msg, reader) {
  904. while (reader.nextField()) {
  905. if (reader.isEndGroup()) {
  906. break;
  907. }
  908. var field = reader.getFieldNumber();
  909. switch (field) {
  910. case 1:
  911. var value = new spine_core_diagnostics_pb.MessageId;
  912. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  913. msg.setEntity(value);
  914. break;
  915. case 2:
  916. var value = new spine_core_diagnostics_pb.MessageId;
  917. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  918. msg.setHandledSignal(value);
  919. break;
  920. case 3:
  921. var value = new spine_base_error_pb.Error;
  922. reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
  923. msg.setError(value);
  924. break;
  925. default:
  926. reader.skipField();
  927. break;
  928. }
  929. }
  930. return msg;
  931. };
  932. /**
  933. * Serializes the message to binary data (in protobuf wire format).
  934. * @return {!Uint8Array}
  935. */
  936. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.serializeBinary = function() {
  937. var writer = new jspb.BinaryWriter();
  938. proto.spine.system.server.HandlerFailedUnexpectedly.serializeBinaryToWriter(this, writer);
  939. return writer.getResultBuffer();
  940. };
  941. /**
  942. * Serializes the given message to binary data (in protobuf wire
  943. * format), writing to the given BinaryWriter.
  944. * @param {!proto.spine.system.server.HandlerFailedUnexpectedly} message
  945. * @param {!jspb.BinaryWriter} writer
  946. * @suppress {unusedLocalVariables} f is only used for nested messages
  947. */
  948. proto.spine.system.server.HandlerFailedUnexpectedly.serializeBinaryToWriter = function(message, writer) {
  949. var f = undefined;
  950. f = message.getEntity();
  951. if (f != null) {
  952. writer.writeMessage(
  953. 1,
  954. f,
  955. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  956. );
  957. }
  958. f = message.getHandledSignal();
  959. if (f != null) {
  960. writer.writeMessage(
  961. 2,
  962. f,
  963. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  964. );
  965. }
  966. f = message.getError();
  967. if (f != null) {
  968. writer.writeMessage(
  969. 3,
  970. f,
  971. spine_base_error_pb.Error.serializeBinaryToWriter
  972. );
  973. }
  974. };
  975. /**
  976. * optional spine.core.MessageId entity = 1;
  977. * @return {?proto.spine.core.MessageId}
  978. */
  979. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getEntity = function() {
  980. return /** @type{?proto.spine.core.MessageId} */ (
  981. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  982. };
  983. /**
  984. * @param {?proto.spine.core.MessageId|undefined} value
  985. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  986. */
  987. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setEntity = function(value) {
  988. return jspb.Message.setWrapperField(this, 1, value);
  989. };
  990. /**
  991. * Clears the message field making it undefined.
  992. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  993. */
  994. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearEntity = function() {
  995. return this.setEntity(undefined);
  996. };
  997. /**
  998. * Returns whether this field is set.
  999. * @return {boolean}
  1000. */
  1001. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.hasEntity = function() {
  1002. return jspb.Message.getField(this, 1) != null;
  1003. };
  1004. /**
  1005. * optional spine.core.MessageId handled_signal = 2;
  1006. * @return {?proto.spine.core.MessageId}
  1007. */
  1008. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getHandledSignal = function() {
  1009. return /** @type{?proto.spine.core.MessageId} */ (
  1010. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 2));
  1011. };
  1012. /**
  1013. * @param {?proto.spine.core.MessageId|undefined} value
  1014. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  1015. */
  1016. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setHandledSignal = function(value) {
  1017. return jspb.Message.setWrapperField(this, 2, value);
  1018. };
  1019. /**
  1020. * Clears the message field making it undefined.
  1021. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  1022. */
  1023. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearHandledSignal = function() {
  1024. return this.setHandledSignal(undefined);
  1025. };
  1026. /**
  1027. * Returns whether this field is set.
  1028. * @return {boolean}
  1029. */
  1030. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.hasHandledSignal = function() {
  1031. return jspb.Message.getField(this, 2) != null;
  1032. };
  1033. /**
  1034. * optional spine.base.Error error = 3;
  1035. * @return {?proto.spine.base.Error}
  1036. */
  1037. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.getError = function() {
  1038. return /** @type{?proto.spine.base.Error} */ (
  1039. jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 3));
  1040. };
  1041. /**
  1042. * @param {?proto.spine.base.Error|undefined} value
  1043. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  1044. */
  1045. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.setError = function(value) {
  1046. return jspb.Message.setWrapperField(this, 3, value);
  1047. };
  1048. /**
  1049. * Clears the message field making it undefined.
  1050. * @return {!proto.spine.system.server.HandlerFailedUnexpectedly} returns this
  1051. */
  1052. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.clearError = function() {
  1053. return this.setError(undefined);
  1054. };
  1055. /**
  1056. * Returns whether this field is set.
  1057. * @return {boolean}
  1058. */
  1059. proto.spine.system.server.HandlerFailedUnexpectedly.prototype.hasError = function() {
  1060. return jspb.Message.getField(this, 3) != null;
  1061. };
  1062. if (jspb.Message.GENERATE_TO_OBJECT) {
  1063. /**
  1064. * Creates an object representation of this proto.
  1065. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1066. * Optional fields that are not set will be set to undefined.
  1067. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1068. * For the list of reserved names please see:
  1069. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1070. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1071. * JSPB instance for transitional soy proto support:
  1072. * http://goto/soy-param-migration
  1073. * @return {!Object}
  1074. */
  1075. proto.spine.system.server.RoutingFailed.prototype.toObject = function(opt_includeInstance) {
  1076. return proto.spine.system.server.RoutingFailed.toObject(opt_includeInstance, this);
  1077. };
  1078. /**
  1079. * Static version of the {@see toObject} method.
  1080. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1081. * the JSPB instance for transitional soy proto support:
  1082. * http://goto/soy-param-migration
  1083. * @param {!proto.spine.system.server.RoutingFailed} msg The msg instance to transform.
  1084. * @return {!Object}
  1085. * @suppress {unusedLocalVariables} f is only used for nested messages
  1086. */
  1087. proto.spine.system.server.RoutingFailed.toObject = function(includeInstance, msg) {
  1088. var f, obj = {
  1089. handledSignal: (f = msg.getHandledSignal()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  1090. entityType: (f = msg.getEntityType()) && spine_system_server_entity_type_pb.EntityTypeName.toObject(includeInstance, f),
  1091. error: (f = msg.getError()) && spine_base_error_pb.Error.toObject(includeInstance, f)
  1092. };
  1093. if (includeInstance) {
  1094. obj.$jspbMessageInstance = msg;
  1095. }
  1096. return obj;
  1097. };
  1098. }
  1099. /**
  1100. * Deserializes binary data (in protobuf wire format).
  1101. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1102. * @return {!proto.spine.system.server.RoutingFailed}
  1103. */
  1104. proto.spine.system.server.RoutingFailed.deserializeBinary = function(bytes) {
  1105. var reader = new jspb.BinaryReader(bytes);
  1106. var msg = new proto.spine.system.server.RoutingFailed;
  1107. return proto.spine.system.server.RoutingFailed.deserializeBinaryFromReader(msg, reader);
  1108. };
  1109. /**
  1110. * Deserializes binary data (in protobuf wire format) from the
  1111. * given reader into the given message object.
  1112. * @param {!proto.spine.system.server.RoutingFailed} msg The message object to deserialize into.
  1113. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1114. * @return {!proto.spine.system.server.RoutingFailed}
  1115. */
  1116. proto.spine.system.server.RoutingFailed.deserializeBinaryFromReader = function(msg, reader) {
  1117. while (reader.nextField()) {
  1118. if (reader.isEndGroup()) {
  1119. break;
  1120. }
  1121. var field = reader.getFieldNumber();
  1122. switch (field) {
  1123. case 1:
  1124. var value = new spine_core_diagnostics_pb.MessageId;
  1125. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  1126. msg.setHandledSignal(value);
  1127. break;
  1128. case 2:
  1129. var value = new spine_system_server_entity_type_pb.EntityTypeName;
  1130. reader.readMessage(value,spine_system_server_entity_type_pb.EntityTypeName.deserializeBinaryFromReader);
  1131. msg.setEntityType(value);
  1132. break;
  1133. case 3:
  1134. var value = new spine_base_error_pb.Error;
  1135. reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
  1136. msg.setError(value);
  1137. break;
  1138. default:
  1139. reader.skipField();
  1140. break;
  1141. }
  1142. }
  1143. return msg;
  1144. };
  1145. /**
  1146. * Serializes the message to binary data (in protobuf wire format).
  1147. * @return {!Uint8Array}
  1148. */
  1149. proto.spine.system.server.RoutingFailed.prototype.serializeBinary = function() {
  1150. var writer = new jspb.BinaryWriter();
  1151. proto.spine.system.server.RoutingFailed.serializeBinaryToWriter(this, writer);
  1152. return writer.getResultBuffer();
  1153. };
  1154. /**
  1155. * Serializes the given message to binary data (in protobuf wire
  1156. * format), writing to the given BinaryWriter.
  1157. * @param {!proto.spine.system.server.RoutingFailed} message
  1158. * @param {!jspb.BinaryWriter} writer
  1159. * @suppress {unusedLocalVariables} f is only used for nested messages
  1160. */
  1161. proto.spine.system.server.RoutingFailed.serializeBinaryToWriter = function(message, writer) {
  1162. var f = undefined;
  1163. f = message.getHandledSignal();
  1164. if (f != null) {
  1165. writer.writeMessage(
  1166. 1,
  1167. f,
  1168. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  1169. );
  1170. }
  1171. f = message.getEntityType();
  1172. if (f != null) {
  1173. writer.writeMessage(
  1174. 2,
  1175. f,
  1176. spine_system_server_entity_type_pb.EntityTypeName.serializeBinaryToWriter
  1177. );
  1178. }
  1179. f = message.getError();
  1180. if (f != null) {
  1181. writer.writeMessage(
  1182. 3,
  1183. f,
  1184. spine_base_error_pb.Error.serializeBinaryToWriter
  1185. );
  1186. }
  1187. };
  1188. /**
  1189. * optional spine.core.MessageId handled_signal = 1;
  1190. * @return {?proto.spine.core.MessageId}
  1191. */
  1192. proto.spine.system.server.RoutingFailed.prototype.getHandledSignal = function() {
  1193. return /** @type{?proto.spine.core.MessageId} */ (
  1194. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  1195. };
  1196. /**
  1197. * @param {?proto.spine.core.MessageId|undefined} value
  1198. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1199. */
  1200. proto.spine.system.server.RoutingFailed.prototype.setHandledSignal = function(value) {
  1201. return jspb.Message.setWrapperField(this, 1, value);
  1202. };
  1203. /**
  1204. * Clears the message field making it undefined.
  1205. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1206. */
  1207. proto.spine.system.server.RoutingFailed.prototype.clearHandledSignal = function() {
  1208. return this.setHandledSignal(undefined);
  1209. };
  1210. /**
  1211. * Returns whether this field is set.
  1212. * @return {boolean}
  1213. */
  1214. proto.spine.system.server.RoutingFailed.prototype.hasHandledSignal = function() {
  1215. return jspb.Message.getField(this, 1) != null;
  1216. };
  1217. /**
  1218. * optional EntityTypeName entity_type = 2;
  1219. * @return {?proto.spine.system.server.EntityTypeName}
  1220. */
  1221. proto.spine.system.server.RoutingFailed.prototype.getEntityType = function() {
  1222. return /** @type{?proto.spine.system.server.EntityTypeName} */ (
  1223. jspb.Message.getWrapperField(this, spine_system_server_entity_type_pb.EntityTypeName, 2));
  1224. };
  1225. /**
  1226. * @param {?proto.spine.system.server.EntityTypeName|undefined} value
  1227. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1228. */
  1229. proto.spine.system.server.RoutingFailed.prototype.setEntityType = function(value) {
  1230. return jspb.Message.setWrapperField(this, 2, value);
  1231. };
  1232. /**
  1233. * Clears the message field making it undefined.
  1234. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1235. */
  1236. proto.spine.system.server.RoutingFailed.prototype.clearEntityType = function() {
  1237. return this.setEntityType(undefined);
  1238. };
  1239. /**
  1240. * Returns whether this field is set.
  1241. * @return {boolean}
  1242. */
  1243. proto.spine.system.server.RoutingFailed.prototype.hasEntityType = function() {
  1244. return jspb.Message.getField(this, 2) != null;
  1245. };
  1246. /**
  1247. * optional spine.base.Error error = 3;
  1248. * @return {?proto.spine.base.Error}
  1249. */
  1250. proto.spine.system.server.RoutingFailed.prototype.getError = function() {
  1251. return /** @type{?proto.spine.base.Error} */ (
  1252. jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 3));
  1253. };
  1254. /**
  1255. * @param {?proto.spine.base.Error|undefined} value
  1256. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1257. */
  1258. proto.spine.system.server.RoutingFailed.prototype.setError = function(value) {
  1259. return jspb.Message.setWrapperField(this, 3, value);
  1260. };
  1261. /**
  1262. * Clears the message field making it undefined.
  1263. * @return {!proto.spine.system.server.RoutingFailed} returns this
  1264. */
  1265. proto.spine.system.server.RoutingFailed.prototype.clearError = function() {
  1266. return this.setError(undefined);
  1267. };
  1268. /**
  1269. * Returns whether this field is set.
  1270. * @return {boolean}
  1271. */
  1272. proto.spine.system.server.RoutingFailed.prototype.hasError = function() {
  1273. return jspb.Message.getField(this, 3) != null;
  1274. };
  1275. if (jspb.Message.GENERATE_TO_OBJECT) {
  1276. /**
  1277. * Creates an object representation of this proto.
  1278. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1279. * Optional fields that are not set will be set to undefined.
  1280. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1281. * For the list of reserved names please see:
  1282. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1283. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1284. * JSPB instance for transitional soy proto support:
  1285. * http://goto/soy-param-migration
  1286. * @return {!Object}
  1287. */
  1288. proto.spine.system.server.AggregateHistoryCorrupted.prototype.toObject = function(opt_includeInstance) {
  1289. return proto.spine.system.server.AggregateHistoryCorrupted.toObject(opt_includeInstance, this);
  1290. };
  1291. /**
  1292. * Static version of the {@see toObject} method.
  1293. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1294. * the JSPB instance for transitional soy proto support:
  1295. * http://goto/soy-param-migration
  1296. * @param {!proto.spine.system.server.AggregateHistoryCorrupted} msg The msg instance to transform.
  1297. * @return {!Object}
  1298. * @suppress {unusedLocalVariables} f is only used for nested messages
  1299. */
  1300. proto.spine.system.server.AggregateHistoryCorrupted.toObject = function(includeInstance, msg) {
  1301. var f, obj = {
  1302. entity: (f = msg.getEntity()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  1303. entityType: (f = msg.getEntityType()) && spine_system_server_entity_type_pb.EntityTypeName.toObject(includeInstance, f),
  1304. lastSuccessfulEvent: (f = msg.getLastSuccessfulEvent()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  1305. erroneousEvent: (f = msg.getErroneousEvent()) && spine_core_diagnostics_pb.MessageId.toObject(includeInstance, f),
  1306. error: (f = msg.getError()) && spine_base_error_pb.Error.toObject(includeInstance, f),
  1307. interruptedEvents: jspb.Message.getFieldWithDefault(msg, 6, 0)
  1308. };
  1309. if (includeInstance) {
  1310. obj.$jspbMessageInstance = msg;
  1311. }
  1312. return obj;
  1313. };
  1314. }
  1315. /**
  1316. * Deserializes binary data (in protobuf wire format).
  1317. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1318. * @return {!proto.spine.system.server.AggregateHistoryCorrupted}
  1319. */
  1320. proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinary = function(bytes) {
  1321. var reader = new jspb.BinaryReader(bytes);
  1322. var msg = new proto.spine.system.server.AggregateHistoryCorrupted;
  1323. return proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinaryFromReader(msg, reader);
  1324. };
  1325. /**
  1326. * Deserializes binary data (in protobuf wire format) from the
  1327. * given reader into the given message object.
  1328. * @param {!proto.spine.system.server.AggregateHistoryCorrupted} msg The message object to deserialize into.
  1329. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1330. * @return {!proto.spine.system.server.AggregateHistoryCorrupted}
  1331. */
  1332. proto.spine.system.server.AggregateHistoryCorrupted.deserializeBinaryFromReader = function(msg, reader) {
  1333. while (reader.nextField()) {
  1334. if (reader.isEndGroup()) {
  1335. break;
  1336. }
  1337. var field = reader.getFieldNumber();
  1338. switch (field) {
  1339. case 1:
  1340. var value = new spine_core_diagnostics_pb.MessageId;
  1341. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  1342. msg.setEntity(value);
  1343. break;
  1344. case 2:
  1345. var value = new spine_system_server_entity_type_pb.EntityTypeName;
  1346. reader.readMessage(value,spine_system_server_entity_type_pb.EntityTypeName.deserializeBinaryFromReader);
  1347. msg.setEntityType(value);
  1348. break;
  1349. case 3:
  1350. var value = new spine_core_diagnostics_pb.MessageId;
  1351. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  1352. msg.setLastSuccessfulEvent(value);
  1353. break;
  1354. case 4:
  1355. var value = new spine_core_diagnostics_pb.MessageId;
  1356. reader.readMessage(value,spine_core_diagnostics_pb.MessageId.deserializeBinaryFromReader);
  1357. msg.setErroneousEvent(value);
  1358. break;
  1359. case 5:
  1360. var value = new spine_base_error_pb.Error;
  1361. reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
  1362. msg.setError(value);
  1363. break;
  1364. case 6:
  1365. var value = /** @type {number} */ (reader.readUint32());
  1366. msg.setInterruptedEvents(value);
  1367. break;
  1368. default:
  1369. reader.skipField();
  1370. break;
  1371. }
  1372. }
  1373. return msg;
  1374. };
  1375. /**
  1376. * Serializes the message to binary data (in protobuf wire format).
  1377. * @return {!Uint8Array}
  1378. */
  1379. proto.spine.system.server.AggregateHistoryCorrupted.prototype.serializeBinary = function() {
  1380. var writer = new jspb.BinaryWriter();
  1381. proto.spine.system.server.AggregateHistoryCorrupted.serializeBinaryToWriter(this, writer);
  1382. return writer.getResultBuffer();
  1383. };
  1384. /**
  1385. * Serializes the given message to binary data (in protobuf wire
  1386. * format), writing to the given BinaryWriter.
  1387. * @param {!proto.spine.system.server.AggregateHistoryCorrupted} message
  1388. * @param {!jspb.BinaryWriter} writer
  1389. * @suppress {unusedLocalVariables} f is only used for nested messages
  1390. */
  1391. proto.spine.system.server.AggregateHistoryCorrupted.serializeBinaryToWriter = function(message, writer) {
  1392. var f = undefined;
  1393. f = message.getEntity();
  1394. if (f != null) {
  1395. writer.writeMessage(
  1396. 1,
  1397. f,
  1398. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  1399. );
  1400. }
  1401. f = message.getEntityType();
  1402. if (f != null) {
  1403. writer.writeMessage(
  1404. 2,
  1405. f,
  1406. spine_system_server_entity_type_pb.EntityTypeName.serializeBinaryToWriter
  1407. );
  1408. }
  1409. f = message.getLastSuccessfulEvent();
  1410. if (f != null) {
  1411. writer.writeMessage(
  1412. 3,
  1413. f,
  1414. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  1415. );
  1416. }
  1417. f = message.getErroneousEvent();
  1418. if (f != null) {
  1419. writer.writeMessage(
  1420. 4,
  1421. f,
  1422. spine_core_diagnostics_pb.MessageId.serializeBinaryToWriter
  1423. );
  1424. }
  1425. f = message.getError();
  1426. if (f != null) {
  1427. writer.writeMessage(
  1428. 5,
  1429. f,
  1430. spine_base_error_pb.Error.serializeBinaryToWriter
  1431. );
  1432. }
  1433. f = message.getInterruptedEvents();
  1434. if (f !== 0) {
  1435. writer.writeUint32(
  1436. 6,
  1437. f
  1438. );
  1439. }
  1440. };
  1441. /**
  1442. * optional spine.core.MessageId entity = 1;
  1443. * @return {?proto.spine.core.MessageId}
  1444. */
  1445. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getEntity = function() {
  1446. return /** @type{?proto.spine.core.MessageId} */ (
  1447. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 1));
  1448. };
  1449. /**
  1450. * @param {?proto.spine.core.MessageId|undefined} value
  1451. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1452. */
  1453. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setEntity = function(value) {
  1454. return jspb.Message.setWrapperField(this, 1, value);
  1455. };
  1456. /**
  1457. * Clears the message field making it undefined.
  1458. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1459. */
  1460. proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearEntity = function() {
  1461. return this.setEntity(undefined);
  1462. };
  1463. /**
  1464. * Returns whether this field is set.
  1465. * @return {boolean}
  1466. */
  1467. proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasEntity = function() {
  1468. return jspb.Message.getField(this, 1) != null;
  1469. };
  1470. /**
  1471. * optional EntityTypeName entity_type = 2;
  1472. * @return {?proto.spine.system.server.EntityTypeName}
  1473. */
  1474. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getEntityType = function() {
  1475. return /** @type{?proto.spine.system.server.EntityTypeName} */ (
  1476. jspb.Message.getWrapperField(this, spine_system_server_entity_type_pb.EntityTypeName, 2));
  1477. };
  1478. /**
  1479. * @param {?proto.spine.system.server.EntityTypeName|undefined} value
  1480. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1481. */
  1482. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setEntityType = function(value) {
  1483. return jspb.Message.setWrapperField(this, 2, value);
  1484. };
  1485. /**
  1486. * Clears the message field making it undefined.
  1487. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1488. */
  1489. proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearEntityType = function() {
  1490. return this.setEntityType(undefined);
  1491. };
  1492. /**
  1493. * Returns whether this field is set.
  1494. * @return {boolean}
  1495. */
  1496. proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasEntityType = function() {
  1497. return jspb.Message.getField(this, 2) != null;
  1498. };
  1499. /**
  1500. * optional spine.core.MessageId last_successful_event = 3;
  1501. * @return {?proto.spine.core.MessageId}
  1502. */
  1503. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getLastSuccessfulEvent = function() {
  1504. return /** @type{?proto.spine.core.MessageId} */ (
  1505. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 3));
  1506. };
  1507. /**
  1508. * @param {?proto.spine.core.MessageId|undefined} value
  1509. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1510. */
  1511. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setLastSuccessfulEvent = function(value) {
  1512. return jspb.Message.setWrapperField(this, 3, value);
  1513. };
  1514. /**
  1515. * Clears the message field making it undefined.
  1516. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1517. */
  1518. proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearLastSuccessfulEvent = function() {
  1519. return this.setLastSuccessfulEvent(undefined);
  1520. };
  1521. /**
  1522. * Returns whether this field is set.
  1523. * @return {boolean}
  1524. */
  1525. proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasLastSuccessfulEvent = function() {
  1526. return jspb.Message.getField(this, 3) != null;
  1527. };
  1528. /**
  1529. * optional spine.core.MessageId erroneous_event = 4;
  1530. * @return {?proto.spine.core.MessageId}
  1531. */
  1532. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getErroneousEvent = function() {
  1533. return /** @type{?proto.spine.core.MessageId} */ (
  1534. jspb.Message.getWrapperField(this, spine_core_diagnostics_pb.MessageId, 4));
  1535. };
  1536. /**
  1537. * @param {?proto.spine.core.MessageId|undefined} value
  1538. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1539. */
  1540. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setErroneousEvent = function(value) {
  1541. return jspb.Message.setWrapperField(this, 4, value);
  1542. };
  1543. /**
  1544. * Clears the message field making it undefined.
  1545. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1546. */
  1547. proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearErroneousEvent = function() {
  1548. return this.setErroneousEvent(undefined);
  1549. };
  1550. /**
  1551. * Returns whether this field is set.
  1552. * @return {boolean}
  1553. */
  1554. proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasErroneousEvent = function() {
  1555. return jspb.Message.getField(this, 4) != null;
  1556. };
  1557. /**
  1558. * optional spine.base.Error error = 5;
  1559. * @return {?proto.spine.base.Error}
  1560. */
  1561. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getError = function() {
  1562. return /** @type{?proto.spine.base.Error} */ (
  1563. jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 5));
  1564. };
  1565. /**
  1566. * @param {?proto.spine.base.Error|undefined} value
  1567. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1568. */
  1569. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setError = function(value) {
  1570. return jspb.Message.setWrapperField(this, 5, value);
  1571. };
  1572. /**
  1573. * Clears the message field making it undefined.
  1574. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1575. */
  1576. proto.spine.system.server.AggregateHistoryCorrupted.prototype.clearError = function() {
  1577. return this.setError(undefined);
  1578. };
  1579. /**
  1580. * Returns whether this field is set.
  1581. * @return {boolean}
  1582. */
  1583. proto.spine.system.server.AggregateHistoryCorrupted.prototype.hasError = function() {
  1584. return jspb.Message.getField(this, 5) != null;
  1585. };
  1586. /**
  1587. * optional uint32 interrupted_events = 6;
  1588. * @return {number}
  1589. */
  1590. proto.spine.system.server.AggregateHistoryCorrupted.prototype.getInterruptedEvents = function() {
  1591. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  1592. };
  1593. /**
  1594. * @param {number} value
  1595. * @return {!proto.spine.system.server.AggregateHistoryCorrupted} returns this
  1596. */
  1597. proto.spine.system.server.AggregateHistoryCorrupted.prototype.setInterruptedEvents = function(value) {
  1598. return jspb.Message.setProto3IntField(this, 6, value);
  1599. };
  1600. goog.object.extend(exports, proto.spine.system.server);
  1601. // Generated by Spine ProtoJs Plugin
  1602. let ObjectParser = require('../../../../client/parser/object-parser.js').default;
  1603. let TypeParsers = require('../../../../client/parser/type-parsers.js').default;
  1604. proto.spine.system.server.HandlerFailedUnexpectedly.Parser = function() {
  1605. ObjectParser.call(this);
  1606. };
  1607. proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype = Object.create(ObjectParser.prototype);
  1608. proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype.constructor = proto.spine.system.server.HandlerFailedUnexpectedly.Parser;
  1609. proto.spine.system.server.HandlerFailedUnexpectedly.Parser.prototype.fromObject = function(obj) {
  1610. if (obj === null) {
  1611. return null;
  1612. }
  1613. let msg = new proto.spine.system.server.HandlerFailedUnexpectedly();
  1614. if (obj.entity !== undefined) {
  1615. if (obj.entity === null) {
  1616. msg.setEntity(null);
  1617. } else {
  1618. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
  1619. msg.setEntity(value);
  1620. }
  1621. }
  1622. if (obj.handledSignal !== undefined) {
  1623. if (obj.handledSignal === null) {
  1624. msg.setHandledSignal(null);
  1625. } else {
  1626. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.handledSignal);
  1627. msg.setHandledSignal(value);
  1628. }
  1629. }
  1630. if (obj.error !== undefined) {
  1631. if (obj.error === null) {
  1632. msg.setError(null);
  1633. } else {
  1634. let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
  1635. msg.setError(value);
  1636. }
  1637. }
  1638. return msg;
  1639. };
  1640. proto.spine.system.server.AggregateHistoryCorrupted.Parser = function() {
  1641. ObjectParser.call(this);
  1642. };
  1643. proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype = Object.create(ObjectParser.prototype);
  1644. proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype.constructor = proto.spine.system.server.AggregateHistoryCorrupted.Parser;
  1645. proto.spine.system.server.AggregateHistoryCorrupted.Parser.prototype.fromObject = function(obj) {
  1646. if (obj === null) {
  1647. return null;
  1648. }
  1649. let msg = new proto.spine.system.server.AggregateHistoryCorrupted();
  1650. if (obj.entity !== undefined) {
  1651. if (obj.entity === null) {
  1652. msg.setEntity(null);
  1653. } else {
  1654. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
  1655. msg.setEntity(value);
  1656. }
  1657. }
  1658. if (obj.entityType !== undefined) {
  1659. if (obj.entityType === null) {
  1660. msg.setEntityType(null);
  1661. } else {
  1662. let value = TypeParsers.parserFor('type.spine.io/spine.system.server.EntityTypeName').fromObject(obj.entityType);
  1663. msg.setEntityType(value);
  1664. }
  1665. }
  1666. if (obj.lastSuccessfulEvent !== undefined) {
  1667. if (obj.lastSuccessfulEvent === null) {
  1668. msg.setLastSuccessfulEvent(null);
  1669. } else {
  1670. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.lastSuccessfulEvent);
  1671. msg.setLastSuccessfulEvent(value);
  1672. }
  1673. }
  1674. if (obj.erroneousEvent !== undefined) {
  1675. if (obj.erroneousEvent === null) {
  1676. msg.setErroneousEvent(null);
  1677. } else {
  1678. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.erroneousEvent);
  1679. msg.setErroneousEvent(value);
  1680. }
  1681. }
  1682. if (obj.error !== undefined) {
  1683. if (obj.error === null) {
  1684. msg.setError(null);
  1685. } else {
  1686. let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
  1687. msg.setError(value);
  1688. }
  1689. }
  1690. if (obj.interruptedEvents !== undefined) {
  1691. if (obj.interruptedEvents !== null) {
  1692. let value = obj.interruptedEvents;
  1693. msg.setInterruptedEvents(value);
  1694. }
  1695. }
  1696. return msg;
  1697. };
  1698. proto.spine.system.server.CannotDispatchDuplicateEvent.Parser = function() {
  1699. ObjectParser.call(this);
  1700. };
  1701. proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype = Object.create(ObjectParser.prototype);
  1702. proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype.constructor = proto.spine.system.server.CannotDispatchDuplicateEvent.Parser;
  1703. proto.spine.system.server.CannotDispatchDuplicateEvent.Parser.prototype.fromObject = function(obj) {
  1704. if (obj === null) {
  1705. return null;
  1706. }
  1707. let msg = new proto.spine.system.server.CannotDispatchDuplicateEvent();
  1708. if (obj.entity !== undefined) {
  1709. if (obj.entity === null) {
  1710. msg.setEntity(null);
  1711. } else {
  1712. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
  1713. msg.setEntity(value);
  1714. }
  1715. }
  1716. if (obj.event !== undefined) {
  1717. if (obj.event === null) {
  1718. msg.setEvent(null);
  1719. } else {
  1720. let value = TypeParsers.parserFor('type.spine.io/spine.core.EventId').fromObject(obj.event);
  1721. msg.setEvent(value);
  1722. }
  1723. }
  1724. if (obj.duplicateEvent !== undefined) {
  1725. if (obj.duplicateEvent === null) {
  1726. msg.setDuplicateEvent(null);
  1727. } else {
  1728. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.duplicateEvent);
  1729. msg.setDuplicateEvent(value);
  1730. }
  1731. }
  1732. return msg;
  1733. };
  1734. proto.spine.system.server.CannotDispatchDuplicateCommand.Parser = function() {
  1735. ObjectParser.call(this);
  1736. };
  1737. proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype = Object.create(ObjectParser.prototype);
  1738. proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype.constructor = proto.spine.system.server.CannotDispatchDuplicateCommand.Parser;
  1739. proto.spine.system.server.CannotDispatchDuplicateCommand.Parser.prototype.fromObject = function(obj) {
  1740. if (obj === null) {
  1741. return null;
  1742. }
  1743. let msg = new proto.spine.system.server.CannotDispatchDuplicateCommand();
  1744. if (obj.entity !== undefined) {
  1745. if (obj.entity === null) {
  1746. msg.setEntity(null);
  1747. } else {
  1748. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
  1749. msg.setEntity(value);
  1750. }
  1751. }
  1752. if (obj.command !== undefined) {
  1753. if (obj.command === null) {
  1754. msg.setCommand(null);
  1755. } else {
  1756. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.command);
  1757. msg.setCommand(value);
  1758. }
  1759. }
  1760. if (obj.duplicateCommand !== undefined) {
  1761. if (obj.duplicateCommand === null) {
  1762. msg.setDuplicateCommand(null);
  1763. } else {
  1764. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.duplicateCommand);
  1765. msg.setDuplicateCommand(value);
  1766. }
  1767. }
  1768. return msg;
  1769. };
  1770. proto.spine.system.server.ConstraintViolated.Parser = function() {
  1771. ObjectParser.call(this);
  1772. };
  1773. proto.spine.system.server.ConstraintViolated.Parser.prototype = Object.create(ObjectParser.prototype);
  1774. proto.spine.system.server.ConstraintViolated.Parser.prototype.constructor = proto.spine.system.server.ConstraintViolated.Parser;
  1775. proto.spine.system.server.ConstraintViolated.Parser.prototype.fromObject = function(obj) {
  1776. if (obj === null) {
  1777. return null;
  1778. }
  1779. let msg = new proto.spine.system.server.ConstraintViolated();
  1780. if (obj.entity !== undefined) {
  1781. if (obj.entity === null) {
  1782. msg.setEntity(null);
  1783. } else {
  1784. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.entity);
  1785. msg.setEntity(value);
  1786. }
  1787. }
  1788. if (obj.lastMessage !== undefined) {
  1789. if (obj.lastMessage === null) {
  1790. msg.setLastMessage(null);
  1791. } else {
  1792. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.lastMessage);
  1793. msg.setLastMessage(value);
  1794. }
  1795. }
  1796. if (obj.rootMessage !== undefined) {
  1797. if (obj.rootMessage === null) {
  1798. msg.setRootMessage(null);
  1799. } else {
  1800. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.rootMessage);
  1801. msg.setRootMessage(value);
  1802. }
  1803. }
  1804. if (obj.violation !== undefined && obj.violation !== null) {
  1805. obj.violation.forEach(
  1806. (listItem, index, array) => {
  1807. if (listItem === null) {
  1808. msg.addViolation(null);
  1809. } else {
  1810. let value = TypeParsers.parserFor('type.spine.io/spine.validate.ConstraintViolation').fromObject(listItem);
  1811. msg.addViolation(value);
  1812. }
  1813. }
  1814. );
  1815. }
  1816. return msg;
  1817. };
  1818. proto.spine.system.server.RoutingFailed.Parser = function() {
  1819. ObjectParser.call(this);
  1820. };
  1821. proto.spine.system.server.RoutingFailed.Parser.prototype = Object.create(ObjectParser.prototype);
  1822. proto.spine.system.server.RoutingFailed.Parser.prototype.constructor = proto.spine.system.server.RoutingFailed.Parser;
  1823. proto.spine.system.server.RoutingFailed.Parser.prototype.fromObject = function(obj) {
  1824. if (obj === null) {
  1825. return null;
  1826. }
  1827. let msg = new proto.spine.system.server.RoutingFailed();
  1828. if (obj.handledSignal !== undefined) {
  1829. if (obj.handledSignal === null) {
  1830. msg.setHandledSignal(null);
  1831. } else {
  1832. let value = TypeParsers.parserFor('type.spine.io/spine.core.MessageId').fromObject(obj.handledSignal);
  1833. msg.setHandledSignal(value);
  1834. }
  1835. }
  1836. if (obj.entityType !== undefined) {
  1837. if (obj.entityType === null) {
  1838. msg.setEntityType(null);
  1839. } else {
  1840. let value = TypeParsers.parserFor('type.spine.io/spine.system.server.EntityTypeName').fromObject(obj.entityType);
  1841. msg.setEntityType(value);
  1842. }
  1843. }
  1844. if (obj.error !== undefined) {
  1845. if (obj.error === null) {
  1846. msg.setError(null);
  1847. } else {
  1848. let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
  1849. msg.setError(value);
  1850. }
  1851. }
  1852. return msg;
  1853. };
  1854. // Generated by Spine ProtoJs Plugin
  1855. proto.spine.system.server.HandlerFailedUnexpectedly.typeUrl = function() {
  1856. return 'type.spine.io/spine.system.server.HandlerFailedUnexpectedly';
  1857. };
  1858. // Generated by Spine ProtoJs Plugin
  1859. proto.spine.system.server.AggregateHistoryCorrupted.typeUrl = function() {
  1860. return 'type.spine.io/spine.system.server.AggregateHistoryCorrupted';
  1861. };
  1862. // Generated by Spine ProtoJs Plugin
  1863. proto.spine.system.server.CannotDispatchDuplicateEvent.typeUrl = function() {
  1864. return 'type.spine.io/spine.system.server.CannotDispatchDuplicateEvent';
  1865. };
  1866. // Generated by Spine ProtoJs Plugin
  1867. proto.spine.system.server.CannotDispatchDuplicateCommand.typeUrl = function() {
  1868. return 'type.spine.io/spine.system.server.CannotDispatchDuplicateCommand';
  1869. };
  1870. // Generated by Spine ProtoJs Plugin
  1871. proto.spine.system.server.ConstraintViolated.typeUrl = function() {
  1872. return 'type.spine.io/spine.system.server.ConstraintViolated';
  1873. };
  1874. // Generated by Spine ProtoJs Plugin
  1875. proto.spine.system.server.RoutingFailed.typeUrl = function() {
  1876. return 'type.spine.io/spine.system.server.RoutingFailed';
  1877. };