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

  1. // source: spine/system/server/command_log_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_event_pb = require('../../../spine/core/event_pb.js');
  20. goog.object.extend(proto, spine_core_event_pb);
  21. var spine_system_server_command_log_pb = require('../../../spine/system/server/command_log_pb.js');
  22. goog.object.extend(proto, spine_system_server_command_log_pb);
  23. goog.exportSymbol('proto.spine.system.server.CommandAcknowledged', null, global);
  24. goog.exportSymbol('proto.spine.system.server.CommandDispatched', null, global);
  25. goog.exportSymbol('proto.spine.system.server.CommandErrored', null, global);
  26. goog.exportSymbol('proto.spine.system.server.CommandHandled', null, global);
  27. goog.exportSymbol('proto.spine.system.server.CommandReceived', null, global);
  28. goog.exportSymbol('proto.spine.system.server.CommandRejected', null, global);
  29. goog.exportSymbol('proto.spine.system.server.CommandScheduled', null, global);
  30. goog.exportSymbol('proto.spine.system.server.CommandSplit', null, global);
  31. goog.exportSymbol('proto.spine.system.server.CommandTransformed', null, global);
  32. goog.exportSymbol('proto.spine.system.server.TargetAssignedToCommand', 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.CommandReceived = function(opt_data) {
  44. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  45. };
  46. goog.inherits(proto.spine.system.server.CommandReceived, jspb.Message);
  47. if (goog.DEBUG && !COMPILED) {
  48. /**
  49. * @public
  50. * @override
  51. */
  52. proto.spine.system.server.CommandReceived.displayName = 'proto.spine.system.server.CommandReceived';
  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.CommandAcknowledged = function(opt_data) {
  65. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  66. };
  67. goog.inherits(proto.spine.system.server.CommandAcknowledged, jspb.Message);
  68. if (goog.DEBUG && !COMPILED) {
  69. /**
  70. * @public
  71. * @override
  72. */
  73. proto.spine.system.server.CommandAcknowledged.displayName = 'proto.spine.system.server.CommandAcknowledged';
  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.CommandScheduled = function(opt_data) {
  86. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  87. };
  88. goog.inherits(proto.spine.system.server.CommandScheduled, jspb.Message);
  89. if (goog.DEBUG && !COMPILED) {
  90. /**
  91. * @public
  92. * @override
  93. */
  94. proto.spine.system.server.CommandScheduled.displayName = 'proto.spine.system.server.CommandScheduled';
  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.CommandDispatched = function(opt_data) {
  107. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  108. };
  109. goog.inherits(proto.spine.system.server.CommandDispatched, jspb.Message);
  110. if (goog.DEBUG && !COMPILED) {
  111. /**
  112. * @public
  113. * @override
  114. */
  115. proto.spine.system.server.CommandDispatched.displayName = 'proto.spine.system.server.CommandDispatched';
  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.TargetAssignedToCommand = function(opt_data) {
  128. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  129. };
  130. goog.inherits(proto.spine.system.server.TargetAssignedToCommand, jspb.Message);
  131. if (goog.DEBUG && !COMPILED) {
  132. /**
  133. * @public
  134. * @override
  135. */
  136. proto.spine.system.server.TargetAssignedToCommand.displayName = 'proto.spine.system.server.TargetAssignedToCommand';
  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.CommandHandled = function(opt_data) {
  149. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  150. };
  151. goog.inherits(proto.spine.system.server.CommandHandled, jspb.Message);
  152. if (goog.DEBUG && !COMPILED) {
  153. /**
  154. * @public
  155. * @override
  156. */
  157. proto.spine.system.server.CommandHandled.displayName = 'proto.spine.system.server.CommandHandled';
  158. }
  159. /**
  160. * Generated by JsPbCodeGenerator.
  161. * @param {Array=} opt_data Optional initial data array, typically from a
  162. * server response, or constructed directly in Javascript. The array is used
  163. * in place and becomes part of the constructed object. It is not cloned.
  164. * If no data is provided, the constructed object will be empty, but still
  165. * valid.
  166. * @extends {jspb.Message}
  167. * @constructor
  168. */
  169. proto.spine.system.server.CommandErrored = function(opt_data) {
  170. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  171. };
  172. goog.inherits(proto.spine.system.server.CommandErrored, jspb.Message);
  173. if (goog.DEBUG && !COMPILED) {
  174. /**
  175. * @public
  176. * @override
  177. */
  178. proto.spine.system.server.CommandErrored.displayName = 'proto.spine.system.server.CommandErrored';
  179. }
  180. /**
  181. * Generated by JsPbCodeGenerator.
  182. * @param {Array=} opt_data Optional initial data array, typically from a
  183. * server response, or constructed directly in Javascript. The array is used
  184. * in place and becomes part of the constructed object. It is not cloned.
  185. * If no data is provided, the constructed object will be empty, but still
  186. * valid.
  187. * @extends {jspb.Message}
  188. * @constructor
  189. */
  190. proto.spine.system.server.CommandRejected = function(opt_data) {
  191. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  192. };
  193. goog.inherits(proto.spine.system.server.CommandRejected, jspb.Message);
  194. if (goog.DEBUG && !COMPILED) {
  195. /**
  196. * @public
  197. * @override
  198. */
  199. proto.spine.system.server.CommandRejected.displayName = 'proto.spine.system.server.CommandRejected';
  200. }
  201. /**
  202. * Generated by JsPbCodeGenerator.
  203. * @param {Array=} opt_data Optional initial data array, typically from a
  204. * server response, or constructed directly in Javascript. The array is used
  205. * in place and becomes part of the constructed object. It is not cloned.
  206. * If no data is provided, the constructed object will be empty, but still
  207. * valid.
  208. * @extends {jspb.Message}
  209. * @constructor
  210. */
  211. proto.spine.system.server.CommandTransformed = function(opt_data) {
  212. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  213. };
  214. goog.inherits(proto.spine.system.server.CommandTransformed, jspb.Message);
  215. if (goog.DEBUG && !COMPILED) {
  216. /**
  217. * @public
  218. * @override
  219. */
  220. proto.spine.system.server.CommandTransformed.displayName = 'proto.spine.system.server.CommandTransformed';
  221. }
  222. /**
  223. * Generated by JsPbCodeGenerator.
  224. * @param {Array=} opt_data Optional initial data array, typically from a
  225. * server response, or constructed directly in Javascript. The array is used
  226. * in place and becomes part of the constructed object. It is not cloned.
  227. * If no data is provided, the constructed object will be empty, but still
  228. * valid.
  229. * @extends {jspb.Message}
  230. * @constructor
  231. */
  232. proto.spine.system.server.CommandSplit = function(opt_data) {
  233. jspb.Message.initialize(this, opt_data, 0, -1, proto.spine.system.server.CommandSplit.repeatedFields_, null);
  234. };
  235. goog.inherits(proto.spine.system.server.CommandSplit, jspb.Message);
  236. if (goog.DEBUG && !COMPILED) {
  237. /**
  238. * @public
  239. * @override
  240. */
  241. proto.spine.system.server.CommandSplit.displayName = 'proto.spine.system.server.CommandSplit';
  242. }
  243. if (jspb.Message.GENERATE_TO_OBJECT) {
  244. /**
  245. * Creates an object representation of this proto.
  246. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  247. * Optional fields that are not set will be set to undefined.
  248. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  249. * For the list of reserved names please see:
  250. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  251. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  252. * JSPB instance for transitional soy proto support:
  253. * http://goto/soy-param-migration
  254. * @return {!Object}
  255. */
  256. proto.spine.system.server.CommandReceived.prototype.toObject = function(opt_includeInstance) {
  257. return proto.spine.system.server.CommandReceived.toObject(opt_includeInstance, this);
  258. };
  259. /**
  260. * Static version of the {@see toObject} method.
  261. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  262. * the JSPB instance for transitional soy proto support:
  263. * http://goto/soy-param-migration
  264. * @param {!proto.spine.system.server.CommandReceived} msg The msg instance to transform.
  265. * @return {!Object}
  266. * @suppress {unusedLocalVariables} f is only used for nested messages
  267. */
  268. proto.spine.system.server.CommandReceived.toObject = function(includeInstance, msg) {
  269. var f, obj = {
  270. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  271. payload: (f = msg.getPayload()) && spine_core_command_pb.Command.toObject(includeInstance, f)
  272. };
  273. if (includeInstance) {
  274. obj.$jspbMessageInstance = msg;
  275. }
  276. return obj;
  277. };
  278. }
  279. /**
  280. * Deserializes binary data (in protobuf wire format).
  281. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  282. * @return {!proto.spine.system.server.CommandReceived}
  283. */
  284. proto.spine.system.server.CommandReceived.deserializeBinary = function(bytes) {
  285. var reader = new jspb.BinaryReader(bytes);
  286. var msg = new proto.spine.system.server.CommandReceived;
  287. return proto.spine.system.server.CommandReceived.deserializeBinaryFromReader(msg, reader);
  288. };
  289. /**
  290. * Deserializes binary data (in protobuf wire format) from the
  291. * given reader into the given message object.
  292. * @param {!proto.spine.system.server.CommandReceived} msg The message object to deserialize into.
  293. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  294. * @return {!proto.spine.system.server.CommandReceived}
  295. */
  296. proto.spine.system.server.CommandReceived.deserializeBinaryFromReader = function(msg, reader) {
  297. while (reader.nextField()) {
  298. if (reader.isEndGroup()) {
  299. break;
  300. }
  301. var field = reader.getFieldNumber();
  302. switch (field) {
  303. case 1:
  304. var value = new spine_core_command_pb.CommandId;
  305. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  306. msg.setId(value);
  307. break;
  308. case 2:
  309. var value = new spine_core_command_pb.Command;
  310. reader.readMessage(value,spine_core_command_pb.Command.deserializeBinaryFromReader);
  311. msg.setPayload(value);
  312. break;
  313. default:
  314. reader.skipField();
  315. break;
  316. }
  317. }
  318. return msg;
  319. };
  320. /**
  321. * Serializes the message to binary data (in protobuf wire format).
  322. * @return {!Uint8Array}
  323. */
  324. proto.spine.system.server.CommandReceived.prototype.serializeBinary = function() {
  325. var writer = new jspb.BinaryWriter();
  326. proto.spine.system.server.CommandReceived.serializeBinaryToWriter(this, writer);
  327. return writer.getResultBuffer();
  328. };
  329. /**
  330. * Serializes the given message to binary data (in protobuf wire
  331. * format), writing to the given BinaryWriter.
  332. * @param {!proto.spine.system.server.CommandReceived} message
  333. * @param {!jspb.BinaryWriter} writer
  334. * @suppress {unusedLocalVariables} f is only used for nested messages
  335. */
  336. proto.spine.system.server.CommandReceived.serializeBinaryToWriter = function(message, writer) {
  337. var f = undefined;
  338. f = message.getId();
  339. if (f != null) {
  340. writer.writeMessage(
  341. 1,
  342. f,
  343. spine_core_command_pb.CommandId.serializeBinaryToWriter
  344. );
  345. }
  346. f = message.getPayload();
  347. if (f != null) {
  348. writer.writeMessage(
  349. 2,
  350. f,
  351. spine_core_command_pb.Command.serializeBinaryToWriter
  352. );
  353. }
  354. };
  355. /**
  356. * optional spine.core.CommandId id = 1;
  357. * @return {?proto.spine.core.CommandId}
  358. */
  359. proto.spine.system.server.CommandReceived.prototype.getId = function() {
  360. return /** @type{?proto.spine.core.CommandId} */ (
  361. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  362. };
  363. /**
  364. * @param {?proto.spine.core.CommandId|undefined} value
  365. * @return {!proto.spine.system.server.CommandReceived} returns this
  366. */
  367. proto.spine.system.server.CommandReceived.prototype.setId = function(value) {
  368. return jspb.Message.setWrapperField(this, 1, value);
  369. };
  370. /**
  371. * Clears the message field making it undefined.
  372. * @return {!proto.spine.system.server.CommandReceived} returns this
  373. */
  374. proto.spine.system.server.CommandReceived.prototype.clearId = function() {
  375. return this.setId(undefined);
  376. };
  377. /**
  378. * Returns whether this field is set.
  379. * @return {boolean}
  380. */
  381. proto.spine.system.server.CommandReceived.prototype.hasId = function() {
  382. return jspb.Message.getField(this, 1) != null;
  383. };
  384. /**
  385. * optional spine.core.Command payload = 2;
  386. * @return {?proto.spine.core.Command}
  387. */
  388. proto.spine.system.server.CommandReceived.prototype.getPayload = function() {
  389. return /** @type{?proto.spine.core.Command} */ (
  390. jspb.Message.getWrapperField(this, spine_core_command_pb.Command, 2));
  391. };
  392. /**
  393. * @param {?proto.spine.core.Command|undefined} value
  394. * @return {!proto.spine.system.server.CommandReceived} returns this
  395. */
  396. proto.spine.system.server.CommandReceived.prototype.setPayload = function(value) {
  397. return jspb.Message.setWrapperField(this, 2, value);
  398. };
  399. /**
  400. * Clears the message field making it undefined.
  401. * @return {!proto.spine.system.server.CommandReceived} returns this
  402. */
  403. proto.spine.system.server.CommandReceived.prototype.clearPayload = function() {
  404. return this.setPayload(undefined);
  405. };
  406. /**
  407. * Returns whether this field is set.
  408. * @return {boolean}
  409. */
  410. proto.spine.system.server.CommandReceived.prototype.hasPayload = function() {
  411. return jspb.Message.getField(this, 2) != null;
  412. };
  413. if (jspb.Message.GENERATE_TO_OBJECT) {
  414. /**
  415. * Creates an object representation of this proto.
  416. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  417. * Optional fields that are not set will be set to undefined.
  418. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  419. * For the list of reserved names please see:
  420. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  421. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  422. * JSPB instance for transitional soy proto support:
  423. * http://goto/soy-param-migration
  424. * @return {!Object}
  425. */
  426. proto.spine.system.server.CommandAcknowledged.prototype.toObject = function(opt_includeInstance) {
  427. return proto.spine.system.server.CommandAcknowledged.toObject(opt_includeInstance, this);
  428. };
  429. /**
  430. * Static version of the {@see toObject} method.
  431. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  432. * the JSPB instance for transitional soy proto support:
  433. * http://goto/soy-param-migration
  434. * @param {!proto.spine.system.server.CommandAcknowledged} msg The msg instance to transform.
  435. * @return {!Object}
  436. * @suppress {unusedLocalVariables} f is only used for nested messages
  437. */
  438. proto.spine.system.server.CommandAcknowledged.toObject = function(includeInstance, msg) {
  439. var f, obj = {
  440. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f)
  441. };
  442. if (includeInstance) {
  443. obj.$jspbMessageInstance = msg;
  444. }
  445. return obj;
  446. };
  447. }
  448. /**
  449. * Deserializes binary data (in protobuf wire format).
  450. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  451. * @return {!proto.spine.system.server.CommandAcknowledged}
  452. */
  453. proto.spine.system.server.CommandAcknowledged.deserializeBinary = function(bytes) {
  454. var reader = new jspb.BinaryReader(bytes);
  455. var msg = new proto.spine.system.server.CommandAcknowledged;
  456. return proto.spine.system.server.CommandAcknowledged.deserializeBinaryFromReader(msg, reader);
  457. };
  458. /**
  459. * Deserializes binary data (in protobuf wire format) from the
  460. * given reader into the given message object.
  461. * @param {!proto.spine.system.server.CommandAcknowledged} msg The message object to deserialize into.
  462. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  463. * @return {!proto.spine.system.server.CommandAcknowledged}
  464. */
  465. proto.spine.system.server.CommandAcknowledged.deserializeBinaryFromReader = function(msg, reader) {
  466. while (reader.nextField()) {
  467. if (reader.isEndGroup()) {
  468. break;
  469. }
  470. var field = reader.getFieldNumber();
  471. switch (field) {
  472. case 1:
  473. var value = new spine_core_command_pb.CommandId;
  474. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  475. msg.setId(value);
  476. break;
  477. default:
  478. reader.skipField();
  479. break;
  480. }
  481. }
  482. return msg;
  483. };
  484. /**
  485. * Serializes the message to binary data (in protobuf wire format).
  486. * @return {!Uint8Array}
  487. */
  488. proto.spine.system.server.CommandAcknowledged.prototype.serializeBinary = function() {
  489. var writer = new jspb.BinaryWriter();
  490. proto.spine.system.server.CommandAcknowledged.serializeBinaryToWriter(this, writer);
  491. return writer.getResultBuffer();
  492. };
  493. /**
  494. * Serializes the given message to binary data (in protobuf wire
  495. * format), writing to the given BinaryWriter.
  496. * @param {!proto.spine.system.server.CommandAcknowledged} message
  497. * @param {!jspb.BinaryWriter} writer
  498. * @suppress {unusedLocalVariables} f is only used for nested messages
  499. */
  500. proto.spine.system.server.CommandAcknowledged.serializeBinaryToWriter = function(message, writer) {
  501. var f = undefined;
  502. f = message.getId();
  503. if (f != null) {
  504. writer.writeMessage(
  505. 1,
  506. f,
  507. spine_core_command_pb.CommandId.serializeBinaryToWriter
  508. );
  509. }
  510. };
  511. /**
  512. * optional spine.core.CommandId id = 1;
  513. * @return {?proto.spine.core.CommandId}
  514. */
  515. proto.spine.system.server.CommandAcknowledged.prototype.getId = function() {
  516. return /** @type{?proto.spine.core.CommandId} */ (
  517. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  518. };
  519. /**
  520. * @param {?proto.spine.core.CommandId|undefined} value
  521. * @return {!proto.spine.system.server.CommandAcknowledged} returns this
  522. */
  523. proto.spine.system.server.CommandAcknowledged.prototype.setId = function(value) {
  524. return jspb.Message.setWrapperField(this, 1, value);
  525. };
  526. /**
  527. * Clears the message field making it undefined.
  528. * @return {!proto.spine.system.server.CommandAcknowledged} returns this
  529. */
  530. proto.spine.system.server.CommandAcknowledged.prototype.clearId = function() {
  531. return this.setId(undefined);
  532. };
  533. /**
  534. * Returns whether this field is set.
  535. * @return {boolean}
  536. */
  537. proto.spine.system.server.CommandAcknowledged.prototype.hasId = function() {
  538. return jspb.Message.getField(this, 1) != null;
  539. };
  540. if (jspb.Message.GENERATE_TO_OBJECT) {
  541. /**
  542. * Creates an object representation of this proto.
  543. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  544. * Optional fields that are not set will be set to undefined.
  545. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  546. * For the list of reserved names please see:
  547. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  548. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  549. * JSPB instance for transitional soy proto support:
  550. * http://goto/soy-param-migration
  551. * @return {!Object}
  552. */
  553. proto.spine.system.server.CommandScheduled.prototype.toObject = function(opt_includeInstance) {
  554. return proto.spine.system.server.CommandScheduled.toObject(opt_includeInstance, this);
  555. };
  556. /**
  557. * Static version of the {@see toObject} method.
  558. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  559. * the JSPB instance for transitional soy proto support:
  560. * http://goto/soy-param-migration
  561. * @param {!proto.spine.system.server.CommandScheduled} msg The msg instance to transform.
  562. * @return {!Object}
  563. * @suppress {unusedLocalVariables} f is only used for nested messages
  564. */
  565. proto.spine.system.server.CommandScheduled.toObject = function(includeInstance, msg) {
  566. var f, obj = {
  567. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  568. schedule: (f = msg.getSchedule()) && spine_core_command_pb.CommandContext.Schedule.toObject(includeInstance, f)
  569. };
  570. if (includeInstance) {
  571. obj.$jspbMessageInstance = msg;
  572. }
  573. return obj;
  574. };
  575. }
  576. /**
  577. * Deserializes binary data (in protobuf wire format).
  578. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  579. * @return {!proto.spine.system.server.CommandScheduled}
  580. */
  581. proto.spine.system.server.CommandScheduled.deserializeBinary = function(bytes) {
  582. var reader = new jspb.BinaryReader(bytes);
  583. var msg = new proto.spine.system.server.CommandScheduled;
  584. return proto.spine.system.server.CommandScheduled.deserializeBinaryFromReader(msg, reader);
  585. };
  586. /**
  587. * Deserializes binary data (in protobuf wire format) from the
  588. * given reader into the given message object.
  589. * @param {!proto.spine.system.server.CommandScheduled} msg The message object to deserialize into.
  590. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  591. * @return {!proto.spine.system.server.CommandScheduled}
  592. */
  593. proto.spine.system.server.CommandScheduled.deserializeBinaryFromReader = function(msg, reader) {
  594. while (reader.nextField()) {
  595. if (reader.isEndGroup()) {
  596. break;
  597. }
  598. var field = reader.getFieldNumber();
  599. switch (field) {
  600. case 1:
  601. var value = new spine_core_command_pb.CommandId;
  602. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  603. msg.setId(value);
  604. break;
  605. case 2:
  606. var value = new spine_core_command_pb.CommandContext.Schedule;
  607. reader.readMessage(value,spine_core_command_pb.CommandContext.Schedule.deserializeBinaryFromReader);
  608. msg.setSchedule(value);
  609. break;
  610. default:
  611. reader.skipField();
  612. break;
  613. }
  614. }
  615. return msg;
  616. };
  617. /**
  618. * Serializes the message to binary data (in protobuf wire format).
  619. * @return {!Uint8Array}
  620. */
  621. proto.spine.system.server.CommandScheduled.prototype.serializeBinary = function() {
  622. var writer = new jspb.BinaryWriter();
  623. proto.spine.system.server.CommandScheduled.serializeBinaryToWriter(this, writer);
  624. return writer.getResultBuffer();
  625. };
  626. /**
  627. * Serializes the given message to binary data (in protobuf wire
  628. * format), writing to the given BinaryWriter.
  629. * @param {!proto.spine.system.server.CommandScheduled} message
  630. * @param {!jspb.BinaryWriter} writer
  631. * @suppress {unusedLocalVariables} f is only used for nested messages
  632. */
  633. proto.spine.system.server.CommandScheduled.serializeBinaryToWriter = function(message, writer) {
  634. var f = undefined;
  635. f = message.getId();
  636. if (f != null) {
  637. writer.writeMessage(
  638. 1,
  639. f,
  640. spine_core_command_pb.CommandId.serializeBinaryToWriter
  641. );
  642. }
  643. f = message.getSchedule();
  644. if (f != null) {
  645. writer.writeMessage(
  646. 2,
  647. f,
  648. spine_core_command_pb.CommandContext.Schedule.serializeBinaryToWriter
  649. );
  650. }
  651. };
  652. /**
  653. * optional spine.core.CommandId id = 1;
  654. * @return {?proto.spine.core.CommandId}
  655. */
  656. proto.spine.system.server.CommandScheduled.prototype.getId = function() {
  657. return /** @type{?proto.spine.core.CommandId} */ (
  658. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  659. };
  660. /**
  661. * @param {?proto.spine.core.CommandId|undefined} value
  662. * @return {!proto.spine.system.server.CommandScheduled} returns this
  663. */
  664. proto.spine.system.server.CommandScheduled.prototype.setId = function(value) {
  665. return jspb.Message.setWrapperField(this, 1, value);
  666. };
  667. /**
  668. * Clears the message field making it undefined.
  669. * @return {!proto.spine.system.server.CommandScheduled} returns this
  670. */
  671. proto.spine.system.server.CommandScheduled.prototype.clearId = function() {
  672. return this.setId(undefined);
  673. };
  674. /**
  675. * Returns whether this field is set.
  676. * @return {boolean}
  677. */
  678. proto.spine.system.server.CommandScheduled.prototype.hasId = function() {
  679. return jspb.Message.getField(this, 1) != null;
  680. };
  681. /**
  682. * optional spine.core.CommandContext.Schedule schedule = 2;
  683. * @return {?proto.spine.core.CommandContext.Schedule}
  684. */
  685. proto.spine.system.server.CommandScheduled.prototype.getSchedule = function() {
  686. return /** @type{?proto.spine.core.CommandContext.Schedule} */ (
  687. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandContext.Schedule, 2));
  688. };
  689. /**
  690. * @param {?proto.spine.core.CommandContext.Schedule|undefined} value
  691. * @return {!proto.spine.system.server.CommandScheduled} returns this
  692. */
  693. proto.spine.system.server.CommandScheduled.prototype.setSchedule = function(value) {
  694. return jspb.Message.setWrapperField(this, 2, value);
  695. };
  696. /**
  697. * Clears the message field making it undefined.
  698. * @return {!proto.spine.system.server.CommandScheduled} returns this
  699. */
  700. proto.spine.system.server.CommandScheduled.prototype.clearSchedule = function() {
  701. return this.setSchedule(undefined);
  702. };
  703. /**
  704. * Returns whether this field is set.
  705. * @return {boolean}
  706. */
  707. proto.spine.system.server.CommandScheduled.prototype.hasSchedule = function() {
  708. return jspb.Message.getField(this, 2) != null;
  709. };
  710. if (jspb.Message.GENERATE_TO_OBJECT) {
  711. /**
  712. * Creates an object representation of this proto.
  713. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  714. * Optional fields that are not set will be set to undefined.
  715. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  716. * For the list of reserved names please see:
  717. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  718. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  719. * JSPB instance for transitional soy proto support:
  720. * http://goto/soy-param-migration
  721. * @return {!Object}
  722. */
  723. proto.spine.system.server.CommandDispatched.prototype.toObject = function(opt_includeInstance) {
  724. return proto.spine.system.server.CommandDispatched.toObject(opt_includeInstance, this);
  725. };
  726. /**
  727. * Static version of the {@see toObject} method.
  728. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  729. * the JSPB instance for transitional soy proto support:
  730. * http://goto/soy-param-migration
  731. * @param {!proto.spine.system.server.CommandDispatched} msg The msg instance to transform.
  732. * @return {!Object}
  733. * @suppress {unusedLocalVariables} f is only used for nested messages
  734. */
  735. proto.spine.system.server.CommandDispatched.toObject = function(includeInstance, msg) {
  736. var f, obj = {
  737. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f)
  738. };
  739. if (includeInstance) {
  740. obj.$jspbMessageInstance = msg;
  741. }
  742. return obj;
  743. };
  744. }
  745. /**
  746. * Deserializes binary data (in protobuf wire format).
  747. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  748. * @return {!proto.spine.system.server.CommandDispatched}
  749. */
  750. proto.spine.system.server.CommandDispatched.deserializeBinary = function(bytes) {
  751. var reader = new jspb.BinaryReader(bytes);
  752. var msg = new proto.spine.system.server.CommandDispatched;
  753. return proto.spine.system.server.CommandDispatched.deserializeBinaryFromReader(msg, reader);
  754. };
  755. /**
  756. * Deserializes binary data (in protobuf wire format) from the
  757. * given reader into the given message object.
  758. * @param {!proto.spine.system.server.CommandDispatched} msg The message object to deserialize into.
  759. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  760. * @return {!proto.spine.system.server.CommandDispatched}
  761. */
  762. proto.spine.system.server.CommandDispatched.deserializeBinaryFromReader = function(msg, reader) {
  763. while (reader.nextField()) {
  764. if (reader.isEndGroup()) {
  765. break;
  766. }
  767. var field = reader.getFieldNumber();
  768. switch (field) {
  769. case 1:
  770. var value = new spine_core_command_pb.CommandId;
  771. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  772. msg.setId(value);
  773. break;
  774. default:
  775. reader.skipField();
  776. break;
  777. }
  778. }
  779. return msg;
  780. };
  781. /**
  782. * Serializes the message to binary data (in protobuf wire format).
  783. * @return {!Uint8Array}
  784. */
  785. proto.spine.system.server.CommandDispatched.prototype.serializeBinary = function() {
  786. var writer = new jspb.BinaryWriter();
  787. proto.spine.system.server.CommandDispatched.serializeBinaryToWriter(this, writer);
  788. return writer.getResultBuffer();
  789. };
  790. /**
  791. * Serializes the given message to binary data (in protobuf wire
  792. * format), writing to the given BinaryWriter.
  793. * @param {!proto.spine.system.server.CommandDispatched} message
  794. * @param {!jspb.BinaryWriter} writer
  795. * @suppress {unusedLocalVariables} f is only used for nested messages
  796. */
  797. proto.spine.system.server.CommandDispatched.serializeBinaryToWriter = function(message, writer) {
  798. var f = undefined;
  799. f = message.getId();
  800. if (f != null) {
  801. writer.writeMessage(
  802. 1,
  803. f,
  804. spine_core_command_pb.CommandId.serializeBinaryToWriter
  805. );
  806. }
  807. };
  808. /**
  809. * optional spine.core.CommandId id = 1;
  810. * @return {?proto.spine.core.CommandId}
  811. */
  812. proto.spine.system.server.CommandDispatched.prototype.getId = function() {
  813. return /** @type{?proto.spine.core.CommandId} */ (
  814. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  815. };
  816. /**
  817. * @param {?proto.spine.core.CommandId|undefined} value
  818. * @return {!proto.spine.system.server.CommandDispatched} returns this
  819. */
  820. proto.spine.system.server.CommandDispatched.prototype.setId = function(value) {
  821. return jspb.Message.setWrapperField(this, 1, value);
  822. };
  823. /**
  824. * Clears the message field making it undefined.
  825. * @return {!proto.spine.system.server.CommandDispatched} returns this
  826. */
  827. proto.spine.system.server.CommandDispatched.prototype.clearId = function() {
  828. return this.setId(undefined);
  829. };
  830. /**
  831. * Returns whether this field is set.
  832. * @return {boolean}
  833. */
  834. proto.spine.system.server.CommandDispatched.prototype.hasId = function() {
  835. return jspb.Message.getField(this, 1) != null;
  836. };
  837. if (jspb.Message.GENERATE_TO_OBJECT) {
  838. /**
  839. * Creates an object representation of this proto.
  840. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  841. * Optional fields that are not set will be set to undefined.
  842. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  843. * For the list of reserved names please see:
  844. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  845. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  846. * JSPB instance for transitional soy proto support:
  847. * http://goto/soy-param-migration
  848. * @return {!Object}
  849. */
  850. proto.spine.system.server.TargetAssignedToCommand.prototype.toObject = function(opt_includeInstance) {
  851. return proto.spine.system.server.TargetAssignedToCommand.toObject(opt_includeInstance, this);
  852. };
  853. /**
  854. * Static version of the {@see toObject} method.
  855. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  856. * the JSPB instance for transitional soy proto support:
  857. * http://goto/soy-param-migration
  858. * @param {!proto.spine.system.server.TargetAssignedToCommand} msg The msg instance to transform.
  859. * @return {!Object}
  860. * @suppress {unusedLocalVariables} f is only used for nested messages
  861. */
  862. proto.spine.system.server.TargetAssignedToCommand.toObject = function(includeInstance, msg) {
  863. var f, obj = {
  864. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  865. target: (f = msg.getTarget()) && spine_system_server_command_log_pb.CommandTarget.toObject(includeInstance, f)
  866. };
  867. if (includeInstance) {
  868. obj.$jspbMessageInstance = msg;
  869. }
  870. return obj;
  871. };
  872. }
  873. /**
  874. * Deserializes binary data (in protobuf wire format).
  875. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  876. * @return {!proto.spine.system.server.TargetAssignedToCommand}
  877. */
  878. proto.spine.system.server.TargetAssignedToCommand.deserializeBinary = function(bytes) {
  879. var reader = new jspb.BinaryReader(bytes);
  880. var msg = new proto.spine.system.server.TargetAssignedToCommand;
  881. return proto.spine.system.server.TargetAssignedToCommand.deserializeBinaryFromReader(msg, reader);
  882. };
  883. /**
  884. * Deserializes binary data (in protobuf wire format) from the
  885. * given reader into the given message object.
  886. * @param {!proto.spine.system.server.TargetAssignedToCommand} msg The message object to deserialize into.
  887. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  888. * @return {!proto.spine.system.server.TargetAssignedToCommand}
  889. */
  890. proto.spine.system.server.TargetAssignedToCommand.deserializeBinaryFromReader = function(msg, reader) {
  891. while (reader.nextField()) {
  892. if (reader.isEndGroup()) {
  893. break;
  894. }
  895. var field = reader.getFieldNumber();
  896. switch (field) {
  897. case 1:
  898. var value = new spine_core_command_pb.CommandId;
  899. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  900. msg.setId(value);
  901. break;
  902. case 2:
  903. var value = new spine_system_server_command_log_pb.CommandTarget;
  904. reader.readMessage(value,spine_system_server_command_log_pb.CommandTarget.deserializeBinaryFromReader);
  905. msg.setTarget(value);
  906. break;
  907. default:
  908. reader.skipField();
  909. break;
  910. }
  911. }
  912. return msg;
  913. };
  914. /**
  915. * Serializes the message to binary data (in protobuf wire format).
  916. * @return {!Uint8Array}
  917. */
  918. proto.spine.system.server.TargetAssignedToCommand.prototype.serializeBinary = function() {
  919. var writer = new jspb.BinaryWriter();
  920. proto.spine.system.server.TargetAssignedToCommand.serializeBinaryToWriter(this, writer);
  921. return writer.getResultBuffer();
  922. };
  923. /**
  924. * Serializes the given message to binary data (in protobuf wire
  925. * format), writing to the given BinaryWriter.
  926. * @param {!proto.spine.system.server.TargetAssignedToCommand} message
  927. * @param {!jspb.BinaryWriter} writer
  928. * @suppress {unusedLocalVariables} f is only used for nested messages
  929. */
  930. proto.spine.system.server.TargetAssignedToCommand.serializeBinaryToWriter = function(message, writer) {
  931. var f = undefined;
  932. f = message.getId();
  933. if (f != null) {
  934. writer.writeMessage(
  935. 1,
  936. f,
  937. spine_core_command_pb.CommandId.serializeBinaryToWriter
  938. );
  939. }
  940. f = message.getTarget();
  941. if (f != null) {
  942. writer.writeMessage(
  943. 2,
  944. f,
  945. spine_system_server_command_log_pb.CommandTarget.serializeBinaryToWriter
  946. );
  947. }
  948. };
  949. /**
  950. * optional spine.core.CommandId id = 1;
  951. * @return {?proto.spine.core.CommandId}
  952. */
  953. proto.spine.system.server.TargetAssignedToCommand.prototype.getId = function() {
  954. return /** @type{?proto.spine.core.CommandId} */ (
  955. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  956. };
  957. /**
  958. * @param {?proto.spine.core.CommandId|undefined} value
  959. * @return {!proto.spine.system.server.TargetAssignedToCommand} returns this
  960. */
  961. proto.spine.system.server.TargetAssignedToCommand.prototype.setId = function(value) {
  962. return jspb.Message.setWrapperField(this, 1, value);
  963. };
  964. /**
  965. * Clears the message field making it undefined.
  966. * @return {!proto.spine.system.server.TargetAssignedToCommand} returns this
  967. */
  968. proto.spine.system.server.TargetAssignedToCommand.prototype.clearId = function() {
  969. return this.setId(undefined);
  970. };
  971. /**
  972. * Returns whether this field is set.
  973. * @return {boolean}
  974. */
  975. proto.spine.system.server.TargetAssignedToCommand.prototype.hasId = function() {
  976. return jspb.Message.getField(this, 1) != null;
  977. };
  978. /**
  979. * optional CommandTarget target = 2;
  980. * @return {?proto.spine.system.server.CommandTarget}
  981. */
  982. proto.spine.system.server.TargetAssignedToCommand.prototype.getTarget = function() {
  983. return /** @type{?proto.spine.system.server.CommandTarget} */ (
  984. jspb.Message.getWrapperField(this, spine_system_server_command_log_pb.CommandTarget, 2));
  985. };
  986. /**
  987. * @param {?proto.spine.system.server.CommandTarget|undefined} value
  988. * @return {!proto.spine.system.server.TargetAssignedToCommand} returns this
  989. */
  990. proto.spine.system.server.TargetAssignedToCommand.prototype.setTarget = function(value) {
  991. return jspb.Message.setWrapperField(this, 2, value);
  992. };
  993. /**
  994. * Clears the message field making it undefined.
  995. * @return {!proto.spine.system.server.TargetAssignedToCommand} returns this
  996. */
  997. proto.spine.system.server.TargetAssignedToCommand.prototype.clearTarget = function() {
  998. return this.setTarget(undefined);
  999. };
  1000. /**
  1001. * Returns whether this field is set.
  1002. * @return {boolean}
  1003. */
  1004. proto.spine.system.server.TargetAssignedToCommand.prototype.hasTarget = function() {
  1005. return jspb.Message.getField(this, 2) != null;
  1006. };
  1007. if (jspb.Message.GENERATE_TO_OBJECT) {
  1008. /**
  1009. * Creates an object representation of this proto.
  1010. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1011. * Optional fields that are not set will be set to undefined.
  1012. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1013. * For the list of reserved names please see:
  1014. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1015. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1016. * JSPB instance for transitional soy proto support:
  1017. * http://goto/soy-param-migration
  1018. * @return {!Object}
  1019. */
  1020. proto.spine.system.server.CommandHandled.prototype.toObject = function(opt_includeInstance) {
  1021. return proto.spine.system.server.CommandHandled.toObject(opt_includeInstance, this);
  1022. };
  1023. /**
  1024. * Static version of the {@see toObject} method.
  1025. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1026. * the JSPB instance for transitional soy proto support:
  1027. * http://goto/soy-param-migration
  1028. * @param {!proto.spine.system.server.CommandHandled} msg The msg instance to transform.
  1029. * @return {!Object}
  1030. * @suppress {unusedLocalVariables} f is only used for nested messages
  1031. */
  1032. proto.spine.system.server.CommandHandled.toObject = function(includeInstance, msg) {
  1033. var f, obj = {
  1034. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f)
  1035. };
  1036. if (includeInstance) {
  1037. obj.$jspbMessageInstance = msg;
  1038. }
  1039. return obj;
  1040. };
  1041. }
  1042. /**
  1043. * Deserializes binary data (in protobuf wire format).
  1044. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1045. * @return {!proto.spine.system.server.CommandHandled}
  1046. */
  1047. proto.spine.system.server.CommandHandled.deserializeBinary = function(bytes) {
  1048. var reader = new jspb.BinaryReader(bytes);
  1049. var msg = new proto.spine.system.server.CommandHandled;
  1050. return proto.spine.system.server.CommandHandled.deserializeBinaryFromReader(msg, reader);
  1051. };
  1052. /**
  1053. * Deserializes binary data (in protobuf wire format) from the
  1054. * given reader into the given message object.
  1055. * @param {!proto.spine.system.server.CommandHandled} msg The message object to deserialize into.
  1056. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1057. * @return {!proto.spine.system.server.CommandHandled}
  1058. */
  1059. proto.spine.system.server.CommandHandled.deserializeBinaryFromReader = function(msg, reader) {
  1060. while (reader.nextField()) {
  1061. if (reader.isEndGroup()) {
  1062. break;
  1063. }
  1064. var field = reader.getFieldNumber();
  1065. switch (field) {
  1066. case 1:
  1067. var value = new spine_core_command_pb.CommandId;
  1068. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1069. msg.setId(value);
  1070. break;
  1071. default:
  1072. reader.skipField();
  1073. break;
  1074. }
  1075. }
  1076. return msg;
  1077. };
  1078. /**
  1079. * Serializes the message to binary data (in protobuf wire format).
  1080. * @return {!Uint8Array}
  1081. */
  1082. proto.spine.system.server.CommandHandled.prototype.serializeBinary = function() {
  1083. var writer = new jspb.BinaryWriter();
  1084. proto.spine.system.server.CommandHandled.serializeBinaryToWriter(this, writer);
  1085. return writer.getResultBuffer();
  1086. };
  1087. /**
  1088. * Serializes the given message to binary data (in protobuf wire
  1089. * format), writing to the given BinaryWriter.
  1090. * @param {!proto.spine.system.server.CommandHandled} message
  1091. * @param {!jspb.BinaryWriter} writer
  1092. * @suppress {unusedLocalVariables} f is only used for nested messages
  1093. */
  1094. proto.spine.system.server.CommandHandled.serializeBinaryToWriter = function(message, writer) {
  1095. var f = undefined;
  1096. f = message.getId();
  1097. if (f != null) {
  1098. writer.writeMessage(
  1099. 1,
  1100. f,
  1101. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1102. );
  1103. }
  1104. };
  1105. /**
  1106. * optional spine.core.CommandId id = 1;
  1107. * @return {?proto.spine.core.CommandId}
  1108. */
  1109. proto.spine.system.server.CommandHandled.prototype.getId = function() {
  1110. return /** @type{?proto.spine.core.CommandId} */ (
  1111. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  1112. };
  1113. /**
  1114. * @param {?proto.spine.core.CommandId|undefined} value
  1115. * @return {!proto.spine.system.server.CommandHandled} returns this
  1116. */
  1117. proto.spine.system.server.CommandHandled.prototype.setId = function(value) {
  1118. return jspb.Message.setWrapperField(this, 1, value);
  1119. };
  1120. /**
  1121. * Clears the message field making it undefined.
  1122. * @return {!proto.spine.system.server.CommandHandled} returns this
  1123. */
  1124. proto.spine.system.server.CommandHandled.prototype.clearId = function() {
  1125. return this.setId(undefined);
  1126. };
  1127. /**
  1128. * Returns whether this field is set.
  1129. * @return {boolean}
  1130. */
  1131. proto.spine.system.server.CommandHandled.prototype.hasId = function() {
  1132. return jspb.Message.getField(this, 1) != null;
  1133. };
  1134. if (jspb.Message.GENERATE_TO_OBJECT) {
  1135. /**
  1136. * Creates an object representation of this proto.
  1137. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1138. * Optional fields that are not set will be set to undefined.
  1139. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1140. * For the list of reserved names please see:
  1141. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1142. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1143. * JSPB instance for transitional soy proto support:
  1144. * http://goto/soy-param-migration
  1145. * @return {!Object}
  1146. */
  1147. proto.spine.system.server.CommandErrored.prototype.toObject = function(opt_includeInstance) {
  1148. return proto.spine.system.server.CommandErrored.toObject(opt_includeInstance, this);
  1149. };
  1150. /**
  1151. * Static version of the {@see toObject} method.
  1152. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1153. * the JSPB instance for transitional soy proto support:
  1154. * http://goto/soy-param-migration
  1155. * @param {!proto.spine.system.server.CommandErrored} msg The msg instance to transform.
  1156. * @return {!Object}
  1157. * @suppress {unusedLocalVariables} f is only used for nested messages
  1158. */
  1159. proto.spine.system.server.CommandErrored.toObject = function(includeInstance, msg) {
  1160. var f, obj = {
  1161. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  1162. error: (f = msg.getError()) && spine_base_error_pb.Error.toObject(includeInstance, f)
  1163. };
  1164. if (includeInstance) {
  1165. obj.$jspbMessageInstance = msg;
  1166. }
  1167. return obj;
  1168. };
  1169. }
  1170. /**
  1171. * Deserializes binary data (in protobuf wire format).
  1172. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1173. * @return {!proto.spine.system.server.CommandErrored}
  1174. */
  1175. proto.spine.system.server.CommandErrored.deserializeBinary = function(bytes) {
  1176. var reader = new jspb.BinaryReader(bytes);
  1177. var msg = new proto.spine.system.server.CommandErrored;
  1178. return proto.spine.system.server.CommandErrored.deserializeBinaryFromReader(msg, reader);
  1179. };
  1180. /**
  1181. * Deserializes binary data (in protobuf wire format) from the
  1182. * given reader into the given message object.
  1183. * @param {!proto.spine.system.server.CommandErrored} msg The message object to deserialize into.
  1184. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1185. * @return {!proto.spine.system.server.CommandErrored}
  1186. */
  1187. proto.spine.system.server.CommandErrored.deserializeBinaryFromReader = function(msg, reader) {
  1188. while (reader.nextField()) {
  1189. if (reader.isEndGroup()) {
  1190. break;
  1191. }
  1192. var field = reader.getFieldNumber();
  1193. switch (field) {
  1194. case 1:
  1195. var value = new spine_core_command_pb.CommandId;
  1196. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1197. msg.setId(value);
  1198. break;
  1199. case 2:
  1200. var value = new spine_base_error_pb.Error;
  1201. reader.readMessage(value,spine_base_error_pb.Error.deserializeBinaryFromReader);
  1202. msg.setError(value);
  1203. break;
  1204. default:
  1205. reader.skipField();
  1206. break;
  1207. }
  1208. }
  1209. return msg;
  1210. };
  1211. /**
  1212. * Serializes the message to binary data (in protobuf wire format).
  1213. * @return {!Uint8Array}
  1214. */
  1215. proto.spine.system.server.CommandErrored.prototype.serializeBinary = function() {
  1216. var writer = new jspb.BinaryWriter();
  1217. proto.spine.system.server.CommandErrored.serializeBinaryToWriter(this, writer);
  1218. return writer.getResultBuffer();
  1219. };
  1220. /**
  1221. * Serializes the given message to binary data (in protobuf wire
  1222. * format), writing to the given BinaryWriter.
  1223. * @param {!proto.spine.system.server.CommandErrored} message
  1224. * @param {!jspb.BinaryWriter} writer
  1225. * @suppress {unusedLocalVariables} f is only used for nested messages
  1226. */
  1227. proto.spine.system.server.CommandErrored.serializeBinaryToWriter = function(message, writer) {
  1228. var f = undefined;
  1229. f = message.getId();
  1230. if (f != null) {
  1231. writer.writeMessage(
  1232. 1,
  1233. f,
  1234. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1235. );
  1236. }
  1237. f = message.getError();
  1238. if (f != null) {
  1239. writer.writeMessage(
  1240. 2,
  1241. f,
  1242. spine_base_error_pb.Error.serializeBinaryToWriter
  1243. );
  1244. }
  1245. };
  1246. /**
  1247. * optional spine.core.CommandId id = 1;
  1248. * @return {?proto.spine.core.CommandId}
  1249. */
  1250. proto.spine.system.server.CommandErrored.prototype.getId = function() {
  1251. return /** @type{?proto.spine.core.CommandId} */ (
  1252. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  1253. };
  1254. /**
  1255. * @param {?proto.spine.core.CommandId|undefined} value
  1256. * @return {!proto.spine.system.server.CommandErrored} returns this
  1257. */
  1258. proto.spine.system.server.CommandErrored.prototype.setId = function(value) {
  1259. return jspb.Message.setWrapperField(this, 1, value);
  1260. };
  1261. /**
  1262. * Clears the message field making it undefined.
  1263. * @return {!proto.spine.system.server.CommandErrored} returns this
  1264. */
  1265. proto.spine.system.server.CommandErrored.prototype.clearId = function() {
  1266. return this.setId(undefined);
  1267. };
  1268. /**
  1269. * Returns whether this field is set.
  1270. * @return {boolean}
  1271. */
  1272. proto.spine.system.server.CommandErrored.prototype.hasId = function() {
  1273. return jspb.Message.getField(this, 1) != null;
  1274. };
  1275. /**
  1276. * optional spine.base.Error error = 2;
  1277. * @return {?proto.spine.base.Error}
  1278. */
  1279. proto.spine.system.server.CommandErrored.prototype.getError = function() {
  1280. return /** @type{?proto.spine.base.Error} */ (
  1281. jspb.Message.getWrapperField(this, spine_base_error_pb.Error, 2));
  1282. };
  1283. /**
  1284. * @param {?proto.spine.base.Error|undefined} value
  1285. * @return {!proto.spine.system.server.CommandErrored} returns this
  1286. */
  1287. proto.spine.system.server.CommandErrored.prototype.setError = function(value) {
  1288. return jspb.Message.setWrapperField(this, 2, value);
  1289. };
  1290. /**
  1291. * Clears the message field making it undefined.
  1292. * @return {!proto.spine.system.server.CommandErrored} returns this
  1293. */
  1294. proto.spine.system.server.CommandErrored.prototype.clearError = function() {
  1295. return this.setError(undefined);
  1296. };
  1297. /**
  1298. * Returns whether this field is set.
  1299. * @return {boolean}
  1300. */
  1301. proto.spine.system.server.CommandErrored.prototype.hasError = function() {
  1302. return jspb.Message.getField(this, 2) != null;
  1303. };
  1304. if (jspb.Message.GENERATE_TO_OBJECT) {
  1305. /**
  1306. * Creates an object representation of this proto.
  1307. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1308. * Optional fields that are not set will be set to undefined.
  1309. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1310. * For the list of reserved names please see:
  1311. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1312. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1313. * JSPB instance for transitional soy proto support:
  1314. * http://goto/soy-param-migration
  1315. * @return {!Object}
  1316. */
  1317. proto.spine.system.server.CommandRejected.prototype.toObject = function(opt_includeInstance) {
  1318. return proto.spine.system.server.CommandRejected.toObject(opt_includeInstance, this);
  1319. };
  1320. /**
  1321. * Static version of the {@see toObject} method.
  1322. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1323. * the JSPB instance for transitional soy proto support:
  1324. * http://goto/soy-param-migration
  1325. * @param {!proto.spine.system.server.CommandRejected} msg The msg instance to transform.
  1326. * @return {!Object}
  1327. * @suppress {unusedLocalVariables} f is only used for nested messages
  1328. */
  1329. proto.spine.system.server.CommandRejected.toObject = function(includeInstance, msg) {
  1330. var f, obj = {
  1331. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  1332. rejectionEvent: (f = msg.getRejectionEvent()) && spine_core_event_pb.Event.toObject(includeInstance, f)
  1333. };
  1334. if (includeInstance) {
  1335. obj.$jspbMessageInstance = msg;
  1336. }
  1337. return obj;
  1338. };
  1339. }
  1340. /**
  1341. * Deserializes binary data (in protobuf wire format).
  1342. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1343. * @return {!proto.spine.system.server.CommandRejected}
  1344. */
  1345. proto.spine.system.server.CommandRejected.deserializeBinary = function(bytes) {
  1346. var reader = new jspb.BinaryReader(bytes);
  1347. var msg = new proto.spine.system.server.CommandRejected;
  1348. return proto.spine.system.server.CommandRejected.deserializeBinaryFromReader(msg, reader);
  1349. };
  1350. /**
  1351. * Deserializes binary data (in protobuf wire format) from the
  1352. * given reader into the given message object.
  1353. * @param {!proto.spine.system.server.CommandRejected} msg The message object to deserialize into.
  1354. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1355. * @return {!proto.spine.system.server.CommandRejected}
  1356. */
  1357. proto.spine.system.server.CommandRejected.deserializeBinaryFromReader = function(msg, reader) {
  1358. while (reader.nextField()) {
  1359. if (reader.isEndGroup()) {
  1360. break;
  1361. }
  1362. var field = reader.getFieldNumber();
  1363. switch (field) {
  1364. case 1:
  1365. var value = new spine_core_command_pb.CommandId;
  1366. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1367. msg.setId(value);
  1368. break;
  1369. case 2:
  1370. var value = new spine_core_event_pb.Event;
  1371. reader.readMessage(value,spine_core_event_pb.Event.deserializeBinaryFromReader);
  1372. msg.setRejectionEvent(value);
  1373. break;
  1374. default:
  1375. reader.skipField();
  1376. break;
  1377. }
  1378. }
  1379. return msg;
  1380. };
  1381. /**
  1382. * Serializes the message to binary data (in protobuf wire format).
  1383. * @return {!Uint8Array}
  1384. */
  1385. proto.spine.system.server.CommandRejected.prototype.serializeBinary = function() {
  1386. var writer = new jspb.BinaryWriter();
  1387. proto.spine.system.server.CommandRejected.serializeBinaryToWriter(this, writer);
  1388. return writer.getResultBuffer();
  1389. };
  1390. /**
  1391. * Serializes the given message to binary data (in protobuf wire
  1392. * format), writing to the given BinaryWriter.
  1393. * @param {!proto.spine.system.server.CommandRejected} message
  1394. * @param {!jspb.BinaryWriter} writer
  1395. * @suppress {unusedLocalVariables} f is only used for nested messages
  1396. */
  1397. proto.spine.system.server.CommandRejected.serializeBinaryToWriter = function(message, writer) {
  1398. var f = undefined;
  1399. f = message.getId();
  1400. if (f != null) {
  1401. writer.writeMessage(
  1402. 1,
  1403. f,
  1404. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1405. );
  1406. }
  1407. f = message.getRejectionEvent();
  1408. if (f != null) {
  1409. writer.writeMessage(
  1410. 2,
  1411. f,
  1412. spine_core_event_pb.Event.serializeBinaryToWriter
  1413. );
  1414. }
  1415. };
  1416. /**
  1417. * optional spine.core.CommandId id = 1;
  1418. * @return {?proto.spine.core.CommandId}
  1419. */
  1420. proto.spine.system.server.CommandRejected.prototype.getId = function() {
  1421. return /** @type{?proto.spine.core.CommandId} */ (
  1422. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  1423. };
  1424. /**
  1425. * @param {?proto.spine.core.CommandId|undefined} value
  1426. * @return {!proto.spine.system.server.CommandRejected} returns this
  1427. */
  1428. proto.spine.system.server.CommandRejected.prototype.setId = function(value) {
  1429. return jspb.Message.setWrapperField(this, 1, value);
  1430. };
  1431. /**
  1432. * Clears the message field making it undefined.
  1433. * @return {!proto.spine.system.server.CommandRejected} returns this
  1434. */
  1435. proto.spine.system.server.CommandRejected.prototype.clearId = function() {
  1436. return this.setId(undefined);
  1437. };
  1438. /**
  1439. * Returns whether this field is set.
  1440. * @return {boolean}
  1441. */
  1442. proto.spine.system.server.CommandRejected.prototype.hasId = function() {
  1443. return jspb.Message.getField(this, 1) != null;
  1444. };
  1445. /**
  1446. * optional spine.core.Event rejection_event = 2;
  1447. * @return {?proto.spine.core.Event}
  1448. */
  1449. proto.spine.system.server.CommandRejected.prototype.getRejectionEvent = function() {
  1450. return /** @type{?proto.spine.core.Event} */ (
  1451. jspb.Message.getWrapperField(this, spine_core_event_pb.Event, 2));
  1452. };
  1453. /**
  1454. * @param {?proto.spine.core.Event|undefined} value
  1455. * @return {!proto.spine.system.server.CommandRejected} returns this
  1456. */
  1457. proto.spine.system.server.CommandRejected.prototype.setRejectionEvent = function(value) {
  1458. return jspb.Message.setWrapperField(this, 2, value);
  1459. };
  1460. /**
  1461. * Clears the message field making it undefined.
  1462. * @return {!proto.spine.system.server.CommandRejected} returns this
  1463. */
  1464. proto.spine.system.server.CommandRejected.prototype.clearRejectionEvent = function() {
  1465. return this.setRejectionEvent(undefined);
  1466. };
  1467. /**
  1468. * Returns whether this field is set.
  1469. * @return {boolean}
  1470. */
  1471. proto.spine.system.server.CommandRejected.prototype.hasRejectionEvent = function() {
  1472. return jspb.Message.getField(this, 2) != null;
  1473. };
  1474. if (jspb.Message.GENERATE_TO_OBJECT) {
  1475. /**
  1476. * Creates an object representation of this proto.
  1477. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1478. * Optional fields that are not set will be set to undefined.
  1479. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1480. * For the list of reserved names please see:
  1481. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1482. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1483. * JSPB instance for transitional soy proto support:
  1484. * http://goto/soy-param-migration
  1485. * @return {!Object}
  1486. */
  1487. proto.spine.system.server.CommandTransformed.prototype.toObject = function(opt_includeInstance) {
  1488. return proto.spine.system.server.CommandTransformed.toObject(opt_includeInstance, this);
  1489. };
  1490. /**
  1491. * Static version of the {@see toObject} method.
  1492. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1493. * the JSPB instance for transitional soy proto support:
  1494. * http://goto/soy-param-migration
  1495. * @param {!proto.spine.system.server.CommandTransformed} msg The msg instance to transform.
  1496. * @return {!Object}
  1497. * @suppress {unusedLocalVariables} f is only used for nested messages
  1498. */
  1499. proto.spine.system.server.CommandTransformed.toObject = function(includeInstance, msg) {
  1500. var f, obj = {
  1501. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  1502. produced: (f = msg.getProduced()) && spine_core_command_pb.CommandId.toObject(includeInstance, f)
  1503. };
  1504. if (includeInstance) {
  1505. obj.$jspbMessageInstance = msg;
  1506. }
  1507. return obj;
  1508. };
  1509. }
  1510. /**
  1511. * Deserializes binary data (in protobuf wire format).
  1512. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1513. * @return {!proto.spine.system.server.CommandTransformed}
  1514. */
  1515. proto.spine.system.server.CommandTransformed.deserializeBinary = function(bytes) {
  1516. var reader = new jspb.BinaryReader(bytes);
  1517. var msg = new proto.spine.system.server.CommandTransformed;
  1518. return proto.spine.system.server.CommandTransformed.deserializeBinaryFromReader(msg, reader);
  1519. };
  1520. /**
  1521. * Deserializes binary data (in protobuf wire format) from the
  1522. * given reader into the given message object.
  1523. * @param {!proto.spine.system.server.CommandTransformed} msg The message object to deserialize into.
  1524. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1525. * @return {!proto.spine.system.server.CommandTransformed}
  1526. */
  1527. proto.spine.system.server.CommandTransformed.deserializeBinaryFromReader = function(msg, reader) {
  1528. while (reader.nextField()) {
  1529. if (reader.isEndGroup()) {
  1530. break;
  1531. }
  1532. var field = reader.getFieldNumber();
  1533. switch (field) {
  1534. case 1:
  1535. var value = new spine_core_command_pb.CommandId;
  1536. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1537. msg.setId(value);
  1538. break;
  1539. case 2:
  1540. var value = new spine_core_command_pb.CommandId;
  1541. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1542. msg.setProduced(value);
  1543. break;
  1544. default:
  1545. reader.skipField();
  1546. break;
  1547. }
  1548. }
  1549. return msg;
  1550. };
  1551. /**
  1552. * Serializes the message to binary data (in protobuf wire format).
  1553. * @return {!Uint8Array}
  1554. */
  1555. proto.spine.system.server.CommandTransformed.prototype.serializeBinary = function() {
  1556. var writer = new jspb.BinaryWriter();
  1557. proto.spine.system.server.CommandTransformed.serializeBinaryToWriter(this, writer);
  1558. return writer.getResultBuffer();
  1559. };
  1560. /**
  1561. * Serializes the given message to binary data (in protobuf wire
  1562. * format), writing to the given BinaryWriter.
  1563. * @param {!proto.spine.system.server.CommandTransformed} message
  1564. * @param {!jspb.BinaryWriter} writer
  1565. * @suppress {unusedLocalVariables} f is only used for nested messages
  1566. */
  1567. proto.spine.system.server.CommandTransformed.serializeBinaryToWriter = function(message, writer) {
  1568. var f = undefined;
  1569. f = message.getId();
  1570. if (f != null) {
  1571. writer.writeMessage(
  1572. 1,
  1573. f,
  1574. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1575. );
  1576. }
  1577. f = message.getProduced();
  1578. if (f != null) {
  1579. writer.writeMessage(
  1580. 2,
  1581. f,
  1582. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1583. );
  1584. }
  1585. };
  1586. /**
  1587. * optional spine.core.CommandId id = 1;
  1588. * @return {?proto.spine.core.CommandId}
  1589. */
  1590. proto.spine.system.server.CommandTransformed.prototype.getId = function() {
  1591. return /** @type{?proto.spine.core.CommandId} */ (
  1592. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  1593. };
  1594. /**
  1595. * @param {?proto.spine.core.CommandId|undefined} value
  1596. * @return {!proto.spine.system.server.CommandTransformed} returns this
  1597. */
  1598. proto.spine.system.server.CommandTransformed.prototype.setId = function(value) {
  1599. return jspb.Message.setWrapperField(this, 1, value);
  1600. };
  1601. /**
  1602. * Clears the message field making it undefined.
  1603. * @return {!proto.spine.system.server.CommandTransformed} returns this
  1604. */
  1605. proto.spine.system.server.CommandTransformed.prototype.clearId = function() {
  1606. return this.setId(undefined);
  1607. };
  1608. /**
  1609. * Returns whether this field is set.
  1610. * @return {boolean}
  1611. */
  1612. proto.spine.system.server.CommandTransformed.prototype.hasId = function() {
  1613. return jspb.Message.getField(this, 1) != null;
  1614. };
  1615. /**
  1616. * optional spine.core.CommandId produced = 2;
  1617. * @return {?proto.spine.core.CommandId}
  1618. */
  1619. proto.spine.system.server.CommandTransformed.prototype.getProduced = function() {
  1620. return /** @type{?proto.spine.core.CommandId} */ (
  1621. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 2));
  1622. };
  1623. /**
  1624. * @param {?proto.spine.core.CommandId|undefined} value
  1625. * @return {!proto.spine.system.server.CommandTransformed} returns this
  1626. */
  1627. proto.spine.system.server.CommandTransformed.prototype.setProduced = function(value) {
  1628. return jspb.Message.setWrapperField(this, 2, value);
  1629. };
  1630. /**
  1631. * Clears the message field making it undefined.
  1632. * @return {!proto.spine.system.server.CommandTransformed} returns this
  1633. */
  1634. proto.spine.system.server.CommandTransformed.prototype.clearProduced = function() {
  1635. return this.setProduced(undefined);
  1636. };
  1637. /**
  1638. * Returns whether this field is set.
  1639. * @return {boolean}
  1640. */
  1641. proto.spine.system.server.CommandTransformed.prototype.hasProduced = function() {
  1642. return jspb.Message.getField(this, 2) != null;
  1643. };
  1644. /**
  1645. * List of repeated fields within this message type.
  1646. * @private {!Array<number>}
  1647. * @const
  1648. */
  1649. proto.spine.system.server.CommandSplit.repeatedFields_ = [2];
  1650. if (jspb.Message.GENERATE_TO_OBJECT) {
  1651. /**
  1652. * Creates an object representation of this proto.
  1653. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1654. * Optional fields that are not set will be set to undefined.
  1655. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1656. * For the list of reserved names please see:
  1657. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1658. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1659. * JSPB instance for transitional soy proto support:
  1660. * http://goto/soy-param-migration
  1661. * @return {!Object}
  1662. */
  1663. proto.spine.system.server.CommandSplit.prototype.toObject = function(opt_includeInstance) {
  1664. return proto.spine.system.server.CommandSplit.toObject(opt_includeInstance, this);
  1665. };
  1666. /**
  1667. * Static version of the {@see toObject} method.
  1668. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1669. * the JSPB instance for transitional soy proto support:
  1670. * http://goto/soy-param-migration
  1671. * @param {!proto.spine.system.server.CommandSplit} msg The msg instance to transform.
  1672. * @return {!Object}
  1673. * @suppress {unusedLocalVariables} f is only used for nested messages
  1674. */
  1675. proto.spine.system.server.CommandSplit.toObject = function(includeInstance, msg) {
  1676. var f, obj = {
  1677. id: (f = msg.getId()) && spine_core_command_pb.CommandId.toObject(includeInstance, f),
  1678. producedList: jspb.Message.toObjectList(msg.getProducedList(),
  1679. spine_core_command_pb.CommandId.toObject, includeInstance)
  1680. };
  1681. if (includeInstance) {
  1682. obj.$jspbMessageInstance = msg;
  1683. }
  1684. return obj;
  1685. };
  1686. }
  1687. /**
  1688. * Deserializes binary data (in protobuf wire format).
  1689. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1690. * @return {!proto.spine.system.server.CommandSplit}
  1691. */
  1692. proto.spine.system.server.CommandSplit.deserializeBinary = function(bytes) {
  1693. var reader = new jspb.BinaryReader(bytes);
  1694. var msg = new proto.spine.system.server.CommandSplit;
  1695. return proto.spine.system.server.CommandSplit.deserializeBinaryFromReader(msg, reader);
  1696. };
  1697. /**
  1698. * Deserializes binary data (in protobuf wire format) from the
  1699. * given reader into the given message object.
  1700. * @param {!proto.spine.system.server.CommandSplit} msg The message object to deserialize into.
  1701. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1702. * @return {!proto.spine.system.server.CommandSplit}
  1703. */
  1704. proto.spine.system.server.CommandSplit.deserializeBinaryFromReader = function(msg, reader) {
  1705. while (reader.nextField()) {
  1706. if (reader.isEndGroup()) {
  1707. break;
  1708. }
  1709. var field = reader.getFieldNumber();
  1710. switch (field) {
  1711. case 1:
  1712. var value = new spine_core_command_pb.CommandId;
  1713. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1714. msg.setId(value);
  1715. break;
  1716. case 2:
  1717. var value = new spine_core_command_pb.CommandId;
  1718. reader.readMessage(value,spine_core_command_pb.CommandId.deserializeBinaryFromReader);
  1719. msg.addProduced(value);
  1720. break;
  1721. default:
  1722. reader.skipField();
  1723. break;
  1724. }
  1725. }
  1726. return msg;
  1727. };
  1728. /**
  1729. * Serializes the message to binary data (in protobuf wire format).
  1730. * @return {!Uint8Array}
  1731. */
  1732. proto.spine.system.server.CommandSplit.prototype.serializeBinary = function() {
  1733. var writer = new jspb.BinaryWriter();
  1734. proto.spine.system.server.CommandSplit.serializeBinaryToWriter(this, writer);
  1735. return writer.getResultBuffer();
  1736. };
  1737. /**
  1738. * Serializes the given message to binary data (in protobuf wire
  1739. * format), writing to the given BinaryWriter.
  1740. * @param {!proto.spine.system.server.CommandSplit} message
  1741. * @param {!jspb.BinaryWriter} writer
  1742. * @suppress {unusedLocalVariables} f is only used for nested messages
  1743. */
  1744. proto.spine.system.server.CommandSplit.serializeBinaryToWriter = function(message, writer) {
  1745. var f = undefined;
  1746. f = message.getId();
  1747. if (f != null) {
  1748. writer.writeMessage(
  1749. 1,
  1750. f,
  1751. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1752. );
  1753. }
  1754. f = message.getProducedList();
  1755. if (f.length > 0) {
  1756. writer.writeRepeatedMessage(
  1757. 2,
  1758. f,
  1759. spine_core_command_pb.CommandId.serializeBinaryToWriter
  1760. );
  1761. }
  1762. };
  1763. /**
  1764. * optional spine.core.CommandId id = 1;
  1765. * @return {?proto.spine.core.CommandId}
  1766. */
  1767. proto.spine.system.server.CommandSplit.prototype.getId = function() {
  1768. return /** @type{?proto.spine.core.CommandId} */ (
  1769. jspb.Message.getWrapperField(this, spine_core_command_pb.CommandId, 1));
  1770. };
  1771. /**
  1772. * @param {?proto.spine.core.CommandId|undefined} value
  1773. * @return {!proto.spine.system.server.CommandSplit} returns this
  1774. */
  1775. proto.spine.system.server.CommandSplit.prototype.setId = function(value) {
  1776. return jspb.Message.setWrapperField(this, 1, value);
  1777. };
  1778. /**
  1779. * Clears the message field making it undefined.
  1780. * @return {!proto.spine.system.server.CommandSplit} returns this
  1781. */
  1782. proto.spine.system.server.CommandSplit.prototype.clearId = function() {
  1783. return this.setId(undefined);
  1784. };
  1785. /**
  1786. * Returns whether this field is set.
  1787. * @return {boolean}
  1788. */
  1789. proto.spine.system.server.CommandSplit.prototype.hasId = function() {
  1790. return jspb.Message.getField(this, 1) != null;
  1791. };
  1792. /**
  1793. * repeated spine.core.CommandId produced = 2;
  1794. * @return {!Array<!proto.spine.core.CommandId>}
  1795. */
  1796. proto.spine.system.server.CommandSplit.prototype.getProducedList = function() {
  1797. return /** @type{!Array<!proto.spine.core.CommandId>} */ (
  1798. jspb.Message.getRepeatedWrapperField(this, spine_core_command_pb.CommandId, 2));
  1799. };
  1800. /**
  1801. * @param {!Array<!proto.spine.core.CommandId>} value
  1802. * @return {!proto.spine.system.server.CommandSplit} returns this
  1803. */
  1804. proto.spine.system.server.CommandSplit.prototype.setProducedList = function(value) {
  1805. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  1806. };
  1807. /**
  1808. * @param {!proto.spine.core.CommandId=} opt_value
  1809. * @param {number=} opt_index
  1810. * @return {!proto.spine.core.CommandId}
  1811. */
  1812. proto.spine.system.server.CommandSplit.prototype.addProduced = function(opt_value, opt_index) {
  1813. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.spine.core.CommandId, opt_index);
  1814. };
  1815. /**
  1816. * Clears the list making it empty but non-null.
  1817. * @return {!proto.spine.system.server.CommandSplit} returns this
  1818. */
  1819. proto.spine.system.server.CommandSplit.prototype.clearProducedList = function() {
  1820. return this.setProducedList([]);
  1821. };
  1822. goog.object.extend(exports, proto.spine.system.server);
  1823. // Generated by Spine ProtoJs Plugin
  1824. let ObjectParser = require('../../../../client/parser/object-parser.js').default;
  1825. let TypeParsers = require('../../../../client/parser/type-parsers.js').default;
  1826. proto.spine.system.server.CommandDispatched.Parser = function() {
  1827. ObjectParser.call(this);
  1828. };
  1829. proto.spine.system.server.CommandDispatched.Parser.prototype = Object.create(ObjectParser.prototype);
  1830. proto.spine.system.server.CommandDispatched.Parser.prototype.constructor = proto.spine.system.server.CommandDispatched.Parser;
  1831. proto.spine.system.server.CommandDispatched.Parser.prototype.fromObject = function(obj) {
  1832. if (obj === null) {
  1833. return null;
  1834. }
  1835. let msg = new proto.spine.system.server.CommandDispatched();
  1836. if (obj.id !== undefined) {
  1837. if (obj.id === null) {
  1838. msg.setId(null);
  1839. } else {
  1840. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1841. msg.setId(value);
  1842. }
  1843. }
  1844. return msg;
  1845. };
  1846. proto.spine.system.server.CommandAcknowledged.Parser = function() {
  1847. ObjectParser.call(this);
  1848. };
  1849. proto.spine.system.server.CommandAcknowledged.Parser.prototype = Object.create(ObjectParser.prototype);
  1850. proto.spine.system.server.CommandAcknowledged.Parser.prototype.constructor = proto.spine.system.server.CommandAcknowledged.Parser;
  1851. proto.spine.system.server.CommandAcknowledged.Parser.prototype.fromObject = function(obj) {
  1852. if (obj === null) {
  1853. return null;
  1854. }
  1855. let msg = new proto.spine.system.server.CommandAcknowledged();
  1856. if (obj.id !== undefined) {
  1857. if (obj.id === null) {
  1858. msg.setId(null);
  1859. } else {
  1860. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1861. msg.setId(value);
  1862. }
  1863. }
  1864. return msg;
  1865. };
  1866. proto.spine.system.server.CommandSplit.Parser = function() {
  1867. ObjectParser.call(this);
  1868. };
  1869. proto.spine.system.server.CommandSplit.Parser.prototype = Object.create(ObjectParser.prototype);
  1870. proto.spine.system.server.CommandSplit.Parser.prototype.constructor = proto.spine.system.server.CommandSplit.Parser;
  1871. proto.spine.system.server.CommandSplit.Parser.prototype.fromObject = function(obj) {
  1872. if (obj === null) {
  1873. return null;
  1874. }
  1875. let msg = new proto.spine.system.server.CommandSplit();
  1876. if (obj.id !== undefined) {
  1877. if (obj.id === null) {
  1878. msg.setId(null);
  1879. } else {
  1880. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1881. msg.setId(value);
  1882. }
  1883. }
  1884. if (obj.produced !== undefined && obj.produced !== null) {
  1885. obj.produced.forEach(
  1886. (listItem, index, array) => {
  1887. if (listItem === null) {
  1888. msg.addProduced(null);
  1889. } else {
  1890. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(listItem);
  1891. msg.addProduced(value);
  1892. }
  1893. }
  1894. );
  1895. }
  1896. return msg;
  1897. };
  1898. proto.spine.system.server.CommandScheduled.Parser = function() {
  1899. ObjectParser.call(this);
  1900. };
  1901. proto.spine.system.server.CommandScheduled.Parser.prototype = Object.create(ObjectParser.prototype);
  1902. proto.spine.system.server.CommandScheduled.Parser.prototype.constructor = proto.spine.system.server.CommandScheduled.Parser;
  1903. proto.spine.system.server.CommandScheduled.Parser.prototype.fromObject = function(obj) {
  1904. if (obj === null) {
  1905. return null;
  1906. }
  1907. let msg = new proto.spine.system.server.CommandScheduled();
  1908. if (obj.id !== undefined) {
  1909. if (obj.id === null) {
  1910. msg.setId(null);
  1911. } else {
  1912. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1913. msg.setId(value);
  1914. }
  1915. }
  1916. if (obj.schedule !== undefined) {
  1917. if (obj.schedule === null) {
  1918. msg.setSchedule(null);
  1919. } else {
  1920. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandContext.Schedule').fromObject(obj.schedule);
  1921. msg.setSchedule(value);
  1922. }
  1923. }
  1924. return msg;
  1925. };
  1926. proto.spine.system.server.CommandErrored.Parser = function() {
  1927. ObjectParser.call(this);
  1928. };
  1929. proto.spine.system.server.CommandErrored.Parser.prototype = Object.create(ObjectParser.prototype);
  1930. proto.spine.system.server.CommandErrored.Parser.prototype.constructor = proto.spine.system.server.CommandErrored.Parser;
  1931. proto.spine.system.server.CommandErrored.Parser.prototype.fromObject = function(obj) {
  1932. if (obj === null) {
  1933. return null;
  1934. }
  1935. let msg = new proto.spine.system.server.CommandErrored();
  1936. if (obj.id !== undefined) {
  1937. if (obj.id === null) {
  1938. msg.setId(null);
  1939. } else {
  1940. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1941. msg.setId(value);
  1942. }
  1943. }
  1944. if (obj.error !== undefined) {
  1945. if (obj.error === null) {
  1946. msg.setError(null);
  1947. } else {
  1948. let value = TypeParsers.parserFor('type.spine.io/spine.base.Error').fromObject(obj.error);
  1949. msg.setError(value);
  1950. }
  1951. }
  1952. return msg;
  1953. };
  1954. proto.spine.system.server.CommandRejected.Parser = function() {
  1955. ObjectParser.call(this);
  1956. };
  1957. proto.spine.system.server.CommandRejected.Parser.prototype = Object.create(ObjectParser.prototype);
  1958. proto.spine.system.server.CommandRejected.Parser.prototype.constructor = proto.spine.system.server.CommandRejected.Parser;
  1959. proto.spine.system.server.CommandRejected.Parser.prototype.fromObject = function(obj) {
  1960. if (obj === null) {
  1961. return null;
  1962. }
  1963. let msg = new proto.spine.system.server.CommandRejected();
  1964. if (obj.id !== undefined) {
  1965. if (obj.id === null) {
  1966. msg.setId(null);
  1967. } else {
  1968. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1969. msg.setId(value);
  1970. }
  1971. }
  1972. if (obj.rejectionEvent !== undefined) {
  1973. if (obj.rejectionEvent === null) {
  1974. msg.setRejectionEvent(null);
  1975. } else {
  1976. let value = TypeParsers.parserFor('type.spine.io/spine.core.Event').fromObject(obj.rejectionEvent);
  1977. msg.setRejectionEvent(value);
  1978. }
  1979. }
  1980. return msg;
  1981. };
  1982. proto.spine.system.server.CommandTransformed.Parser = function() {
  1983. ObjectParser.call(this);
  1984. };
  1985. proto.spine.system.server.CommandTransformed.Parser.prototype = Object.create(ObjectParser.prototype);
  1986. proto.spine.system.server.CommandTransformed.Parser.prototype.constructor = proto.spine.system.server.CommandTransformed.Parser;
  1987. proto.spine.system.server.CommandTransformed.Parser.prototype.fromObject = function(obj) {
  1988. if (obj === null) {
  1989. return null;
  1990. }
  1991. let msg = new proto.spine.system.server.CommandTransformed();
  1992. if (obj.id !== undefined) {
  1993. if (obj.id === null) {
  1994. msg.setId(null);
  1995. } else {
  1996. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  1997. msg.setId(value);
  1998. }
  1999. }
  2000. if (obj.produced !== undefined) {
  2001. if (obj.produced === null) {
  2002. msg.setProduced(null);
  2003. } else {
  2004. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.produced);
  2005. msg.setProduced(value);
  2006. }
  2007. }
  2008. return msg;
  2009. };
  2010. proto.spine.system.server.CommandReceived.Parser = function() {
  2011. ObjectParser.call(this);
  2012. };
  2013. proto.spine.system.server.CommandReceived.Parser.prototype = Object.create(ObjectParser.prototype);
  2014. proto.spine.system.server.CommandReceived.Parser.prototype.constructor = proto.spine.system.server.CommandReceived.Parser;
  2015. proto.spine.system.server.CommandReceived.Parser.prototype.fromObject = function(obj) {
  2016. if (obj === null) {
  2017. return null;
  2018. }
  2019. let msg = new proto.spine.system.server.CommandReceived();
  2020. if (obj.id !== undefined) {
  2021. if (obj.id === null) {
  2022. msg.setId(null);
  2023. } else {
  2024. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  2025. msg.setId(value);
  2026. }
  2027. }
  2028. if (obj.payload !== undefined) {
  2029. if (obj.payload === null) {
  2030. msg.setPayload(null);
  2031. } else {
  2032. let value = TypeParsers.parserFor('type.spine.io/spine.core.Command').fromObject(obj.payload);
  2033. msg.setPayload(value);
  2034. }
  2035. }
  2036. return msg;
  2037. };
  2038. proto.spine.system.server.TargetAssignedToCommand.Parser = function() {
  2039. ObjectParser.call(this);
  2040. };
  2041. proto.spine.system.server.TargetAssignedToCommand.Parser.prototype = Object.create(ObjectParser.prototype);
  2042. proto.spine.system.server.TargetAssignedToCommand.Parser.prototype.constructor = proto.spine.system.server.TargetAssignedToCommand.Parser;
  2043. proto.spine.system.server.TargetAssignedToCommand.Parser.prototype.fromObject = function(obj) {
  2044. if (obj === null) {
  2045. return null;
  2046. }
  2047. let msg = new proto.spine.system.server.TargetAssignedToCommand();
  2048. if (obj.id !== undefined) {
  2049. if (obj.id === null) {
  2050. msg.setId(null);
  2051. } else {
  2052. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  2053. msg.setId(value);
  2054. }
  2055. }
  2056. if (obj.target !== undefined) {
  2057. if (obj.target === null) {
  2058. msg.setTarget(null);
  2059. } else {
  2060. let value = TypeParsers.parserFor('type.spine.io/spine.system.server.CommandTarget').fromObject(obj.target);
  2061. msg.setTarget(value);
  2062. }
  2063. }
  2064. return msg;
  2065. };
  2066. proto.spine.system.server.CommandHandled.Parser = function() {
  2067. ObjectParser.call(this);
  2068. };
  2069. proto.spine.system.server.CommandHandled.Parser.prototype = Object.create(ObjectParser.prototype);
  2070. proto.spine.system.server.CommandHandled.Parser.prototype.constructor = proto.spine.system.server.CommandHandled.Parser;
  2071. proto.spine.system.server.CommandHandled.Parser.prototype.fromObject = function(obj) {
  2072. if (obj === null) {
  2073. return null;
  2074. }
  2075. let msg = new proto.spine.system.server.CommandHandled();
  2076. if (obj.id !== undefined) {
  2077. if (obj.id === null) {
  2078. msg.setId(null);
  2079. } else {
  2080. let value = TypeParsers.parserFor('type.spine.io/spine.core.CommandId').fromObject(obj.id);
  2081. msg.setId(value);
  2082. }
  2083. }
  2084. return msg;
  2085. };
  2086. // Generated by Spine ProtoJs Plugin
  2087. proto.spine.system.server.CommandDispatched.typeUrl = function() {
  2088. return 'type.spine.io/spine.system.server.CommandDispatched';
  2089. };
  2090. // Generated by Spine ProtoJs Plugin
  2091. proto.spine.system.server.CommandAcknowledged.typeUrl = function() {
  2092. return 'type.spine.io/spine.system.server.CommandAcknowledged';
  2093. };
  2094. // Generated by Spine ProtoJs Plugin
  2095. proto.spine.system.server.CommandSplit.typeUrl = function() {
  2096. return 'type.spine.io/spine.system.server.CommandSplit';
  2097. };
  2098. // Generated by Spine ProtoJs Plugin
  2099. proto.spine.system.server.CommandScheduled.typeUrl = function() {
  2100. return 'type.spine.io/spine.system.server.CommandScheduled';
  2101. };
  2102. // Generated by Spine ProtoJs Plugin
  2103. proto.spine.system.server.CommandErrored.typeUrl = function() {
  2104. return 'type.spine.io/spine.system.server.CommandErrored';
  2105. };
  2106. // Generated by Spine ProtoJs Plugin
  2107. proto.spine.system.server.CommandRejected.typeUrl = function() {
  2108. return 'type.spine.io/spine.system.server.CommandRejected';
  2109. };
  2110. // Generated by Spine ProtoJs Plugin
  2111. proto.spine.system.server.CommandTransformed.typeUrl = function() {
  2112. return 'type.spine.io/spine.system.server.CommandTransformed';
  2113. };
  2114. // Generated by Spine ProtoJs Plugin
  2115. proto.spine.system.server.CommandReceived.typeUrl = function() {
  2116. return 'type.spine.io/spine.system.server.CommandReceived';
  2117. };
  2118. // Generated by Spine ProtoJs Plugin
  2119. proto.spine.system.server.TargetAssignedToCommand.typeUrl = function() {
  2120. return 'type.spine.io/spine.system.server.TargetAssignedToCommand';
  2121. };
  2122. // Generated by Spine ProtoJs Plugin
  2123. proto.spine.system.server.CommandHandled.typeUrl = function() {
  2124. return 'type.spine.io/spine.system.server.CommandHandled';
  2125. };