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

  1. // source: spine/server/catchup/catch_up_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_time_options_pb = require('../../../spine/time_options_pb.js');
  16. goog.object.extend(proto, spine_time_options_pb);
  17. var spine_server_catchup_catch_up_pb = require('../../../spine/server/catchup/catch_up_pb.js');
  18. goog.object.extend(proto, spine_server_catchup_catch_up_pb);
  19. goog.exportSymbol('proto.spine.server.catchup.CatchUpCompleted', null, global);
  20. goog.exportSymbol('proto.spine.server.catchup.CatchUpRequested', null, global);
  21. goog.exportSymbol('proto.spine.server.catchup.CatchUpStarted', null, global);
  22. goog.exportSymbol('proto.spine.server.catchup.HistoryEventsRecalled', null, global);
  23. goog.exportSymbol('proto.spine.server.catchup.HistoryFullyRecalled', null, global);
  24. goog.exportSymbol('proto.spine.server.catchup.LiveEventsPickedUp', null, global);
  25. /**
  26. * Generated by JsPbCodeGenerator.
  27. * @param {Array=} opt_data Optional initial data array, typically from a
  28. * server response, or constructed directly in Javascript. The array is used
  29. * in place and becomes part of the constructed object. It is not cloned.
  30. * If no data is provided, the constructed object will be empty, but still
  31. * valid.
  32. * @extends {jspb.Message}
  33. * @constructor
  34. */
  35. proto.spine.server.catchup.CatchUpRequested = function(opt_data) {
  36. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  37. };
  38. goog.inherits(proto.spine.server.catchup.CatchUpRequested, jspb.Message);
  39. if (goog.DEBUG && !COMPILED) {
  40. /**
  41. * @public
  42. * @override
  43. */
  44. proto.spine.server.catchup.CatchUpRequested.displayName = 'proto.spine.server.catchup.CatchUpRequested';
  45. }
  46. /**
  47. * Generated by JsPbCodeGenerator.
  48. * @param {Array=} opt_data Optional initial data array, typically from a
  49. * server response, or constructed directly in Javascript. The array is used
  50. * in place and becomes part of the constructed object. It is not cloned.
  51. * If no data is provided, the constructed object will be empty, but still
  52. * valid.
  53. * @extends {jspb.Message}
  54. * @constructor
  55. */
  56. proto.spine.server.catchup.CatchUpStarted = function(opt_data) {
  57. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  58. };
  59. goog.inherits(proto.spine.server.catchup.CatchUpStarted, jspb.Message);
  60. if (goog.DEBUG && !COMPILED) {
  61. /**
  62. * @public
  63. * @override
  64. */
  65. proto.spine.server.catchup.CatchUpStarted.displayName = 'proto.spine.server.catchup.CatchUpStarted';
  66. }
  67. /**
  68. * Generated by JsPbCodeGenerator.
  69. * @param {Array=} opt_data Optional initial data array, typically from a
  70. * server response, or constructed directly in Javascript. The array is used
  71. * in place and becomes part of the constructed object. It is not cloned.
  72. * If no data is provided, the constructed object will be empty, but still
  73. * valid.
  74. * @extends {jspb.Message}
  75. * @constructor
  76. */
  77. proto.spine.server.catchup.HistoryEventsRecalled = function(opt_data) {
  78. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  79. };
  80. goog.inherits(proto.spine.server.catchup.HistoryEventsRecalled, jspb.Message);
  81. if (goog.DEBUG && !COMPILED) {
  82. /**
  83. * @public
  84. * @override
  85. */
  86. proto.spine.server.catchup.HistoryEventsRecalled.displayName = 'proto.spine.server.catchup.HistoryEventsRecalled';
  87. }
  88. /**
  89. * Generated by JsPbCodeGenerator.
  90. * @param {Array=} opt_data Optional initial data array, typically from a
  91. * server response, or constructed directly in Javascript. The array is used
  92. * in place and becomes part of the constructed object. It is not cloned.
  93. * If no data is provided, the constructed object will be empty, but still
  94. * valid.
  95. * @extends {jspb.Message}
  96. * @constructor
  97. */
  98. proto.spine.server.catchup.HistoryFullyRecalled = function(opt_data) {
  99. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  100. };
  101. goog.inherits(proto.spine.server.catchup.HistoryFullyRecalled, jspb.Message);
  102. if (goog.DEBUG && !COMPILED) {
  103. /**
  104. * @public
  105. * @override
  106. */
  107. proto.spine.server.catchup.HistoryFullyRecalled.displayName = 'proto.spine.server.catchup.HistoryFullyRecalled';
  108. }
  109. /**
  110. * Generated by JsPbCodeGenerator.
  111. * @param {Array=} opt_data Optional initial data array, typically from a
  112. * server response, or constructed directly in Javascript. The array is used
  113. * in place and becomes part of the constructed object. It is not cloned.
  114. * If no data is provided, the constructed object will be empty, but still
  115. * valid.
  116. * @extends {jspb.Message}
  117. * @constructor
  118. */
  119. proto.spine.server.catchup.LiveEventsPickedUp = function(opt_data) {
  120. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  121. };
  122. goog.inherits(proto.spine.server.catchup.LiveEventsPickedUp, jspb.Message);
  123. if (goog.DEBUG && !COMPILED) {
  124. /**
  125. * @public
  126. * @override
  127. */
  128. proto.spine.server.catchup.LiveEventsPickedUp.displayName = 'proto.spine.server.catchup.LiveEventsPickedUp';
  129. }
  130. /**
  131. * Generated by JsPbCodeGenerator.
  132. * @param {Array=} opt_data Optional initial data array, typically from a
  133. * server response, or constructed directly in Javascript. The array is used
  134. * in place and becomes part of the constructed object. It is not cloned.
  135. * If no data is provided, the constructed object will be empty, but still
  136. * valid.
  137. * @extends {jspb.Message}
  138. * @constructor
  139. */
  140. proto.spine.server.catchup.CatchUpCompleted = function(opt_data) {
  141. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  142. };
  143. goog.inherits(proto.spine.server.catchup.CatchUpCompleted, jspb.Message);
  144. if (goog.DEBUG && !COMPILED) {
  145. /**
  146. * @public
  147. * @override
  148. */
  149. proto.spine.server.catchup.CatchUpCompleted.displayName = 'proto.spine.server.catchup.CatchUpCompleted';
  150. }
  151. if (jspb.Message.GENERATE_TO_OBJECT) {
  152. /**
  153. * Creates an object representation of this proto.
  154. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  155. * Optional fields that are not set will be set to undefined.
  156. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  157. * For the list of reserved names please see:
  158. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  159. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  160. * JSPB instance for transitional soy proto support:
  161. * http://goto/soy-param-migration
  162. * @return {!Object}
  163. */
  164. proto.spine.server.catchup.CatchUpRequested.prototype.toObject = function(opt_includeInstance) {
  165. return proto.spine.server.catchup.CatchUpRequested.toObject(opt_includeInstance, this);
  166. };
  167. /**
  168. * Static version of the {@see toObject} method.
  169. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  170. * the JSPB instance for transitional soy proto support:
  171. * http://goto/soy-param-migration
  172. * @param {!proto.spine.server.catchup.CatchUpRequested} msg The msg instance to transform.
  173. * @return {!Object}
  174. * @suppress {unusedLocalVariables} f is only used for nested messages
  175. */
  176. proto.spine.server.catchup.CatchUpRequested.toObject = function(includeInstance, msg) {
  177. var f, obj = {
  178. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f),
  179. request: (f = msg.getRequest()) && spine_server_catchup_catch_up_pb.CatchUp.Request.toObject(includeInstance, f)
  180. };
  181. if (includeInstance) {
  182. obj.$jspbMessageInstance = msg;
  183. }
  184. return obj;
  185. };
  186. }
  187. /**
  188. * Deserializes binary data (in protobuf wire format).
  189. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  190. * @return {!proto.spine.server.catchup.CatchUpRequested}
  191. */
  192. proto.spine.server.catchup.CatchUpRequested.deserializeBinary = function(bytes) {
  193. var reader = new jspb.BinaryReader(bytes);
  194. var msg = new proto.spine.server.catchup.CatchUpRequested;
  195. return proto.spine.server.catchup.CatchUpRequested.deserializeBinaryFromReader(msg, reader);
  196. };
  197. /**
  198. * Deserializes binary data (in protobuf wire format) from the
  199. * given reader into the given message object.
  200. * @param {!proto.spine.server.catchup.CatchUpRequested} msg The message object to deserialize into.
  201. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  202. * @return {!proto.spine.server.catchup.CatchUpRequested}
  203. */
  204. proto.spine.server.catchup.CatchUpRequested.deserializeBinaryFromReader = function(msg, reader) {
  205. while (reader.nextField()) {
  206. if (reader.isEndGroup()) {
  207. break;
  208. }
  209. var field = reader.getFieldNumber();
  210. switch (field) {
  211. case 1:
  212. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  213. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  214. msg.setId(value);
  215. break;
  216. case 2:
  217. var value = new spine_server_catchup_catch_up_pb.CatchUp.Request;
  218. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUp.Request.deserializeBinaryFromReader);
  219. msg.setRequest(value);
  220. break;
  221. default:
  222. reader.skipField();
  223. break;
  224. }
  225. }
  226. return msg;
  227. };
  228. /**
  229. * Serializes the message to binary data (in protobuf wire format).
  230. * @return {!Uint8Array}
  231. */
  232. proto.spine.server.catchup.CatchUpRequested.prototype.serializeBinary = function() {
  233. var writer = new jspb.BinaryWriter();
  234. proto.spine.server.catchup.CatchUpRequested.serializeBinaryToWriter(this, writer);
  235. return writer.getResultBuffer();
  236. };
  237. /**
  238. * Serializes the given message to binary data (in protobuf wire
  239. * format), writing to the given BinaryWriter.
  240. * @param {!proto.spine.server.catchup.CatchUpRequested} message
  241. * @param {!jspb.BinaryWriter} writer
  242. * @suppress {unusedLocalVariables} f is only used for nested messages
  243. */
  244. proto.spine.server.catchup.CatchUpRequested.serializeBinaryToWriter = function(message, writer) {
  245. var f = undefined;
  246. f = message.getId();
  247. if (f != null) {
  248. writer.writeMessage(
  249. 1,
  250. f,
  251. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  252. );
  253. }
  254. f = message.getRequest();
  255. if (f != null) {
  256. writer.writeMessage(
  257. 2,
  258. f,
  259. spine_server_catchup_catch_up_pb.CatchUp.Request.serializeBinaryToWriter
  260. );
  261. }
  262. };
  263. /**
  264. * optional CatchUpId id = 1;
  265. * @return {?proto.spine.server.catchup.CatchUpId}
  266. */
  267. proto.spine.server.catchup.CatchUpRequested.prototype.getId = function() {
  268. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  269. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  270. };
  271. /**
  272. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  273. * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
  274. */
  275. proto.spine.server.catchup.CatchUpRequested.prototype.setId = function(value) {
  276. return jspb.Message.setWrapperField(this, 1, value);
  277. };
  278. /**
  279. * Clears the message field making it undefined.
  280. * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
  281. */
  282. proto.spine.server.catchup.CatchUpRequested.prototype.clearId = function() {
  283. return this.setId(undefined);
  284. };
  285. /**
  286. * Returns whether this field is set.
  287. * @return {boolean}
  288. */
  289. proto.spine.server.catchup.CatchUpRequested.prototype.hasId = function() {
  290. return jspb.Message.getField(this, 1) != null;
  291. };
  292. /**
  293. * optional CatchUp.Request request = 2;
  294. * @return {?proto.spine.server.catchup.CatchUp.Request}
  295. */
  296. proto.spine.server.catchup.CatchUpRequested.prototype.getRequest = function() {
  297. return /** @type{?proto.spine.server.catchup.CatchUp.Request} */ (
  298. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUp.Request, 2));
  299. };
  300. /**
  301. * @param {?proto.spine.server.catchup.CatchUp.Request|undefined} value
  302. * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
  303. */
  304. proto.spine.server.catchup.CatchUpRequested.prototype.setRequest = function(value) {
  305. return jspb.Message.setWrapperField(this, 2, value);
  306. };
  307. /**
  308. * Clears the message field making it undefined.
  309. * @return {!proto.spine.server.catchup.CatchUpRequested} returns this
  310. */
  311. proto.spine.server.catchup.CatchUpRequested.prototype.clearRequest = function() {
  312. return this.setRequest(undefined);
  313. };
  314. /**
  315. * Returns whether this field is set.
  316. * @return {boolean}
  317. */
  318. proto.spine.server.catchup.CatchUpRequested.prototype.hasRequest = function() {
  319. return jspb.Message.getField(this, 2) != null;
  320. };
  321. if (jspb.Message.GENERATE_TO_OBJECT) {
  322. /**
  323. * Creates an object representation of this proto.
  324. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  325. * Optional fields that are not set will be set to undefined.
  326. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  327. * For the list of reserved names please see:
  328. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  329. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  330. * JSPB instance for transitional soy proto support:
  331. * http://goto/soy-param-migration
  332. * @return {!Object}
  333. */
  334. proto.spine.server.catchup.CatchUpStarted.prototype.toObject = function(opt_includeInstance) {
  335. return proto.spine.server.catchup.CatchUpStarted.toObject(opt_includeInstance, this);
  336. };
  337. /**
  338. * Static version of the {@see toObject} method.
  339. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  340. * the JSPB instance for transitional soy proto support:
  341. * http://goto/soy-param-migration
  342. * @param {!proto.spine.server.catchup.CatchUpStarted} msg The msg instance to transform.
  343. * @return {!Object}
  344. * @suppress {unusedLocalVariables} f is only used for nested messages
  345. */
  346. proto.spine.server.catchup.CatchUpStarted.toObject = function(includeInstance, msg) {
  347. var f, obj = {
  348. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  349. };
  350. if (includeInstance) {
  351. obj.$jspbMessageInstance = msg;
  352. }
  353. return obj;
  354. };
  355. }
  356. /**
  357. * Deserializes binary data (in protobuf wire format).
  358. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  359. * @return {!proto.spine.server.catchup.CatchUpStarted}
  360. */
  361. proto.spine.server.catchup.CatchUpStarted.deserializeBinary = function(bytes) {
  362. var reader = new jspb.BinaryReader(bytes);
  363. var msg = new proto.spine.server.catchup.CatchUpStarted;
  364. return proto.spine.server.catchup.CatchUpStarted.deserializeBinaryFromReader(msg, reader);
  365. };
  366. /**
  367. * Deserializes binary data (in protobuf wire format) from the
  368. * given reader into the given message object.
  369. * @param {!proto.spine.server.catchup.CatchUpStarted} msg The message object to deserialize into.
  370. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  371. * @return {!proto.spine.server.catchup.CatchUpStarted}
  372. */
  373. proto.spine.server.catchup.CatchUpStarted.deserializeBinaryFromReader = function(msg, reader) {
  374. while (reader.nextField()) {
  375. if (reader.isEndGroup()) {
  376. break;
  377. }
  378. var field = reader.getFieldNumber();
  379. switch (field) {
  380. case 1:
  381. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  382. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  383. msg.setId(value);
  384. break;
  385. default:
  386. reader.skipField();
  387. break;
  388. }
  389. }
  390. return msg;
  391. };
  392. /**
  393. * Serializes the message to binary data (in protobuf wire format).
  394. * @return {!Uint8Array}
  395. */
  396. proto.spine.server.catchup.CatchUpStarted.prototype.serializeBinary = function() {
  397. var writer = new jspb.BinaryWriter();
  398. proto.spine.server.catchup.CatchUpStarted.serializeBinaryToWriter(this, writer);
  399. return writer.getResultBuffer();
  400. };
  401. /**
  402. * Serializes the given message to binary data (in protobuf wire
  403. * format), writing to the given BinaryWriter.
  404. * @param {!proto.spine.server.catchup.CatchUpStarted} message
  405. * @param {!jspb.BinaryWriter} writer
  406. * @suppress {unusedLocalVariables} f is only used for nested messages
  407. */
  408. proto.spine.server.catchup.CatchUpStarted.serializeBinaryToWriter = function(message, writer) {
  409. var f = undefined;
  410. f = message.getId();
  411. if (f != null) {
  412. writer.writeMessage(
  413. 1,
  414. f,
  415. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  416. );
  417. }
  418. };
  419. /**
  420. * optional CatchUpId id = 1;
  421. * @return {?proto.spine.server.catchup.CatchUpId}
  422. */
  423. proto.spine.server.catchup.CatchUpStarted.prototype.getId = function() {
  424. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  425. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  426. };
  427. /**
  428. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  429. * @return {!proto.spine.server.catchup.CatchUpStarted} returns this
  430. */
  431. proto.spine.server.catchup.CatchUpStarted.prototype.setId = function(value) {
  432. return jspb.Message.setWrapperField(this, 1, value);
  433. };
  434. /**
  435. * Clears the message field making it undefined.
  436. * @return {!proto.spine.server.catchup.CatchUpStarted} returns this
  437. */
  438. proto.spine.server.catchup.CatchUpStarted.prototype.clearId = function() {
  439. return this.setId(undefined);
  440. };
  441. /**
  442. * Returns whether this field is set.
  443. * @return {boolean}
  444. */
  445. proto.spine.server.catchup.CatchUpStarted.prototype.hasId = function() {
  446. return jspb.Message.getField(this, 1) != null;
  447. };
  448. if (jspb.Message.GENERATE_TO_OBJECT) {
  449. /**
  450. * Creates an object representation of this proto.
  451. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  452. * Optional fields that are not set will be set to undefined.
  453. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  454. * For the list of reserved names please see:
  455. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  456. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  457. * JSPB instance for transitional soy proto support:
  458. * http://goto/soy-param-migration
  459. * @return {!Object}
  460. */
  461. proto.spine.server.catchup.HistoryEventsRecalled.prototype.toObject = function(opt_includeInstance) {
  462. return proto.spine.server.catchup.HistoryEventsRecalled.toObject(opt_includeInstance, this);
  463. };
  464. /**
  465. * Static version of the {@see toObject} method.
  466. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  467. * the JSPB instance for transitional soy proto support:
  468. * http://goto/soy-param-migration
  469. * @param {!proto.spine.server.catchup.HistoryEventsRecalled} msg The msg instance to transform.
  470. * @return {!Object}
  471. * @suppress {unusedLocalVariables} f is only used for nested messages
  472. */
  473. proto.spine.server.catchup.HistoryEventsRecalled.toObject = function(includeInstance, msg) {
  474. var f, obj = {
  475. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  476. };
  477. if (includeInstance) {
  478. obj.$jspbMessageInstance = msg;
  479. }
  480. return obj;
  481. };
  482. }
  483. /**
  484. * Deserializes binary data (in protobuf wire format).
  485. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  486. * @return {!proto.spine.server.catchup.HistoryEventsRecalled}
  487. */
  488. proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinary = function(bytes) {
  489. var reader = new jspb.BinaryReader(bytes);
  490. var msg = new proto.spine.server.catchup.HistoryEventsRecalled;
  491. return proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinaryFromReader(msg, reader);
  492. };
  493. /**
  494. * Deserializes binary data (in protobuf wire format) from the
  495. * given reader into the given message object.
  496. * @param {!proto.spine.server.catchup.HistoryEventsRecalled} msg The message object to deserialize into.
  497. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  498. * @return {!proto.spine.server.catchup.HistoryEventsRecalled}
  499. */
  500. proto.spine.server.catchup.HistoryEventsRecalled.deserializeBinaryFromReader = function(msg, reader) {
  501. while (reader.nextField()) {
  502. if (reader.isEndGroup()) {
  503. break;
  504. }
  505. var field = reader.getFieldNumber();
  506. switch (field) {
  507. case 1:
  508. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  509. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  510. msg.setId(value);
  511. break;
  512. default:
  513. reader.skipField();
  514. break;
  515. }
  516. }
  517. return msg;
  518. };
  519. /**
  520. * Serializes the message to binary data (in protobuf wire format).
  521. * @return {!Uint8Array}
  522. */
  523. proto.spine.server.catchup.HistoryEventsRecalled.prototype.serializeBinary = function() {
  524. var writer = new jspb.BinaryWriter();
  525. proto.spine.server.catchup.HistoryEventsRecalled.serializeBinaryToWriter(this, writer);
  526. return writer.getResultBuffer();
  527. };
  528. /**
  529. * Serializes the given message to binary data (in protobuf wire
  530. * format), writing to the given BinaryWriter.
  531. * @param {!proto.spine.server.catchup.HistoryEventsRecalled} message
  532. * @param {!jspb.BinaryWriter} writer
  533. * @suppress {unusedLocalVariables} f is only used for nested messages
  534. */
  535. proto.spine.server.catchup.HistoryEventsRecalled.serializeBinaryToWriter = function(message, writer) {
  536. var f = undefined;
  537. f = message.getId();
  538. if (f != null) {
  539. writer.writeMessage(
  540. 1,
  541. f,
  542. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  543. );
  544. }
  545. };
  546. /**
  547. * optional CatchUpId id = 1;
  548. * @return {?proto.spine.server.catchup.CatchUpId}
  549. */
  550. proto.spine.server.catchup.HistoryEventsRecalled.prototype.getId = function() {
  551. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  552. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  553. };
  554. /**
  555. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  556. * @return {!proto.spine.server.catchup.HistoryEventsRecalled} returns this
  557. */
  558. proto.spine.server.catchup.HistoryEventsRecalled.prototype.setId = function(value) {
  559. return jspb.Message.setWrapperField(this, 1, value);
  560. };
  561. /**
  562. * Clears the message field making it undefined.
  563. * @return {!proto.spine.server.catchup.HistoryEventsRecalled} returns this
  564. */
  565. proto.spine.server.catchup.HistoryEventsRecalled.prototype.clearId = function() {
  566. return this.setId(undefined);
  567. };
  568. /**
  569. * Returns whether this field is set.
  570. * @return {boolean}
  571. */
  572. proto.spine.server.catchup.HistoryEventsRecalled.prototype.hasId = function() {
  573. return jspb.Message.getField(this, 1) != null;
  574. };
  575. if (jspb.Message.GENERATE_TO_OBJECT) {
  576. /**
  577. * Creates an object representation of this proto.
  578. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  579. * Optional fields that are not set will be set to undefined.
  580. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  581. * For the list of reserved names please see:
  582. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  583. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  584. * JSPB instance for transitional soy proto support:
  585. * http://goto/soy-param-migration
  586. * @return {!Object}
  587. */
  588. proto.spine.server.catchup.HistoryFullyRecalled.prototype.toObject = function(opt_includeInstance) {
  589. return proto.spine.server.catchup.HistoryFullyRecalled.toObject(opt_includeInstance, this);
  590. };
  591. /**
  592. * Static version of the {@see toObject} method.
  593. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  594. * the JSPB instance for transitional soy proto support:
  595. * http://goto/soy-param-migration
  596. * @param {!proto.spine.server.catchup.HistoryFullyRecalled} msg The msg instance to transform.
  597. * @return {!Object}
  598. * @suppress {unusedLocalVariables} f is only used for nested messages
  599. */
  600. proto.spine.server.catchup.HistoryFullyRecalled.toObject = function(includeInstance, msg) {
  601. var f, obj = {
  602. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  603. };
  604. if (includeInstance) {
  605. obj.$jspbMessageInstance = msg;
  606. }
  607. return obj;
  608. };
  609. }
  610. /**
  611. * Deserializes binary data (in protobuf wire format).
  612. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  613. * @return {!proto.spine.server.catchup.HistoryFullyRecalled}
  614. */
  615. proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinary = function(bytes) {
  616. var reader = new jspb.BinaryReader(bytes);
  617. var msg = new proto.spine.server.catchup.HistoryFullyRecalled;
  618. return proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinaryFromReader(msg, reader);
  619. };
  620. /**
  621. * Deserializes binary data (in protobuf wire format) from the
  622. * given reader into the given message object.
  623. * @param {!proto.spine.server.catchup.HistoryFullyRecalled} msg The message object to deserialize into.
  624. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  625. * @return {!proto.spine.server.catchup.HistoryFullyRecalled}
  626. */
  627. proto.spine.server.catchup.HistoryFullyRecalled.deserializeBinaryFromReader = function(msg, reader) {
  628. while (reader.nextField()) {
  629. if (reader.isEndGroup()) {
  630. break;
  631. }
  632. var field = reader.getFieldNumber();
  633. switch (field) {
  634. case 1:
  635. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  636. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  637. msg.setId(value);
  638. break;
  639. default:
  640. reader.skipField();
  641. break;
  642. }
  643. }
  644. return msg;
  645. };
  646. /**
  647. * Serializes the message to binary data (in protobuf wire format).
  648. * @return {!Uint8Array}
  649. */
  650. proto.spine.server.catchup.HistoryFullyRecalled.prototype.serializeBinary = function() {
  651. var writer = new jspb.BinaryWriter();
  652. proto.spine.server.catchup.HistoryFullyRecalled.serializeBinaryToWriter(this, writer);
  653. return writer.getResultBuffer();
  654. };
  655. /**
  656. * Serializes the given message to binary data (in protobuf wire
  657. * format), writing to the given BinaryWriter.
  658. * @param {!proto.spine.server.catchup.HistoryFullyRecalled} message
  659. * @param {!jspb.BinaryWriter} writer
  660. * @suppress {unusedLocalVariables} f is only used for nested messages
  661. */
  662. proto.spine.server.catchup.HistoryFullyRecalled.serializeBinaryToWriter = function(message, writer) {
  663. var f = undefined;
  664. f = message.getId();
  665. if (f != null) {
  666. writer.writeMessage(
  667. 1,
  668. f,
  669. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  670. );
  671. }
  672. };
  673. /**
  674. * optional CatchUpId id = 1;
  675. * @return {?proto.spine.server.catchup.CatchUpId}
  676. */
  677. proto.spine.server.catchup.HistoryFullyRecalled.prototype.getId = function() {
  678. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  679. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  680. };
  681. /**
  682. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  683. * @return {!proto.spine.server.catchup.HistoryFullyRecalled} returns this
  684. */
  685. proto.spine.server.catchup.HistoryFullyRecalled.prototype.setId = function(value) {
  686. return jspb.Message.setWrapperField(this, 1, value);
  687. };
  688. /**
  689. * Clears the message field making it undefined.
  690. * @return {!proto.spine.server.catchup.HistoryFullyRecalled} returns this
  691. */
  692. proto.spine.server.catchup.HistoryFullyRecalled.prototype.clearId = function() {
  693. return this.setId(undefined);
  694. };
  695. /**
  696. * Returns whether this field is set.
  697. * @return {boolean}
  698. */
  699. proto.spine.server.catchup.HistoryFullyRecalled.prototype.hasId = function() {
  700. return jspb.Message.getField(this, 1) != null;
  701. };
  702. if (jspb.Message.GENERATE_TO_OBJECT) {
  703. /**
  704. * Creates an object representation of this proto.
  705. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  706. * Optional fields that are not set will be set to undefined.
  707. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  708. * For the list of reserved names please see:
  709. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  710. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  711. * JSPB instance for transitional soy proto support:
  712. * http://goto/soy-param-migration
  713. * @return {!Object}
  714. */
  715. proto.spine.server.catchup.LiveEventsPickedUp.prototype.toObject = function(opt_includeInstance) {
  716. return proto.spine.server.catchup.LiveEventsPickedUp.toObject(opt_includeInstance, this);
  717. };
  718. /**
  719. * Static version of the {@see toObject} method.
  720. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  721. * the JSPB instance for transitional soy proto support:
  722. * http://goto/soy-param-migration
  723. * @param {!proto.spine.server.catchup.LiveEventsPickedUp} msg The msg instance to transform.
  724. * @return {!Object}
  725. * @suppress {unusedLocalVariables} f is only used for nested messages
  726. */
  727. proto.spine.server.catchup.LiveEventsPickedUp.toObject = function(includeInstance, msg) {
  728. var f, obj = {
  729. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  730. };
  731. if (includeInstance) {
  732. obj.$jspbMessageInstance = msg;
  733. }
  734. return obj;
  735. };
  736. }
  737. /**
  738. * Deserializes binary data (in protobuf wire format).
  739. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  740. * @return {!proto.spine.server.catchup.LiveEventsPickedUp}
  741. */
  742. proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinary = function(bytes) {
  743. var reader = new jspb.BinaryReader(bytes);
  744. var msg = new proto.spine.server.catchup.LiveEventsPickedUp;
  745. return proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinaryFromReader(msg, reader);
  746. };
  747. /**
  748. * Deserializes binary data (in protobuf wire format) from the
  749. * given reader into the given message object.
  750. * @param {!proto.spine.server.catchup.LiveEventsPickedUp} msg The message object to deserialize into.
  751. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  752. * @return {!proto.spine.server.catchup.LiveEventsPickedUp}
  753. */
  754. proto.spine.server.catchup.LiveEventsPickedUp.deserializeBinaryFromReader = function(msg, reader) {
  755. while (reader.nextField()) {
  756. if (reader.isEndGroup()) {
  757. break;
  758. }
  759. var field = reader.getFieldNumber();
  760. switch (field) {
  761. case 1:
  762. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  763. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  764. msg.setId(value);
  765. break;
  766. default:
  767. reader.skipField();
  768. break;
  769. }
  770. }
  771. return msg;
  772. };
  773. /**
  774. * Serializes the message to binary data (in protobuf wire format).
  775. * @return {!Uint8Array}
  776. */
  777. proto.spine.server.catchup.LiveEventsPickedUp.prototype.serializeBinary = function() {
  778. var writer = new jspb.BinaryWriter();
  779. proto.spine.server.catchup.LiveEventsPickedUp.serializeBinaryToWriter(this, writer);
  780. return writer.getResultBuffer();
  781. };
  782. /**
  783. * Serializes the given message to binary data (in protobuf wire
  784. * format), writing to the given BinaryWriter.
  785. * @param {!proto.spine.server.catchup.LiveEventsPickedUp} message
  786. * @param {!jspb.BinaryWriter} writer
  787. * @suppress {unusedLocalVariables} f is only used for nested messages
  788. */
  789. proto.spine.server.catchup.LiveEventsPickedUp.serializeBinaryToWriter = function(message, writer) {
  790. var f = undefined;
  791. f = message.getId();
  792. if (f != null) {
  793. writer.writeMessage(
  794. 1,
  795. f,
  796. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  797. );
  798. }
  799. };
  800. /**
  801. * optional CatchUpId id = 1;
  802. * @return {?proto.spine.server.catchup.CatchUpId}
  803. */
  804. proto.spine.server.catchup.LiveEventsPickedUp.prototype.getId = function() {
  805. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  806. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  807. };
  808. /**
  809. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  810. * @return {!proto.spine.server.catchup.LiveEventsPickedUp} returns this
  811. */
  812. proto.spine.server.catchup.LiveEventsPickedUp.prototype.setId = function(value) {
  813. return jspb.Message.setWrapperField(this, 1, value);
  814. };
  815. /**
  816. * Clears the message field making it undefined.
  817. * @return {!proto.spine.server.catchup.LiveEventsPickedUp} returns this
  818. */
  819. proto.spine.server.catchup.LiveEventsPickedUp.prototype.clearId = function() {
  820. return this.setId(undefined);
  821. };
  822. /**
  823. * Returns whether this field is set.
  824. * @return {boolean}
  825. */
  826. proto.spine.server.catchup.LiveEventsPickedUp.prototype.hasId = function() {
  827. return jspb.Message.getField(this, 1) != null;
  828. };
  829. if (jspb.Message.GENERATE_TO_OBJECT) {
  830. /**
  831. * Creates an object representation of this proto.
  832. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  833. * Optional fields that are not set will be set to undefined.
  834. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  835. * For the list of reserved names please see:
  836. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  837. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  838. * JSPB instance for transitional soy proto support:
  839. * http://goto/soy-param-migration
  840. * @return {!Object}
  841. */
  842. proto.spine.server.catchup.CatchUpCompleted.prototype.toObject = function(opt_includeInstance) {
  843. return proto.spine.server.catchup.CatchUpCompleted.toObject(opt_includeInstance, this);
  844. };
  845. /**
  846. * Static version of the {@see toObject} method.
  847. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  848. * the JSPB instance for transitional soy proto support:
  849. * http://goto/soy-param-migration
  850. * @param {!proto.spine.server.catchup.CatchUpCompleted} msg The msg instance to transform.
  851. * @return {!Object}
  852. * @suppress {unusedLocalVariables} f is only used for nested messages
  853. */
  854. proto.spine.server.catchup.CatchUpCompleted.toObject = function(includeInstance, msg) {
  855. var f, obj = {
  856. id: (f = msg.getId()) && spine_server_catchup_catch_up_pb.CatchUpId.toObject(includeInstance, f)
  857. };
  858. if (includeInstance) {
  859. obj.$jspbMessageInstance = msg;
  860. }
  861. return obj;
  862. };
  863. }
  864. /**
  865. * Deserializes binary data (in protobuf wire format).
  866. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  867. * @return {!proto.spine.server.catchup.CatchUpCompleted}
  868. */
  869. proto.spine.server.catchup.CatchUpCompleted.deserializeBinary = function(bytes) {
  870. var reader = new jspb.BinaryReader(bytes);
  871. var msg = new proto.spine.server.catchup.CatchUpCompleted;
  872. return proto.spine.server.catchup.CatchUpCompleted.deserializeBinaryFromReader(msg, reader);
  873. };
  874. /**
  875. * Deserializes binary data (in protobuf wire format) from the
  876. * given reader into the given message object.
  877. * @param {!proto.spine.server.catchup.CatchUpCompleted} msg The message object to deserialize into.
  878. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  879. * @return {!proto.spine.server.catchup.CatchUpCompleted}
  880. */
  881. proto.spine.server.catchup.CatchUpCompleted.deserializeBinaryFromReader = function(msg, reader) {
  882. while (reader.nextField()) {
  883. if (reader.isEndGroup()) {
  884. break;
  885. }
  886. var field = reader.getFieldNumber();
  887. switch (field) {
  888. case 1:
  889. var value = new spine_server_catchup_catch_up_pb.CatchUpId;
  890. reader.readMessage(value,spine_server_catchup_catch_up_pb.CatchUpId.deserializeBinaryFromReader);
  891. msg.setId(value);
  892. break;
  893. default:
  894. reader.skipField();
  895. break;
  896. }
  897. }
  898. return msg;
  899. };
  900. /**
  901. * Serializes the message to binary data (in protobuf wire format).
  902. * @return {!Uint8Array}
  903. */
  904. proto.spine.server.catchup.CatchUpCompleted.prototype.serializeBinary = function() {
  905. var writer = new jspb.BinaryWriter();
  906. proto.spine.server.catchup.CatchUpCompleted.serializeBinaryToWriter(this, writer);
  907. return writer.getResultBuffer();
  908. };
  909. /**
  910. * Serializes the given message to binary data (in protobuf wire
  911. * format), writing to the given BinaryWriter.
  912. * @param {!proto.spine.server.catchup.CatchUpCompleted} message
  913. * @param {!jspb.BinaryWriter} writer
  914. * @suppress {unusedLocalVariables} f is only used for nested messages
  915. */
  916. proto.spine.server.catchup.CatchUpCompleted.serializeBinaryToWriter = function(message, writer) {
  917. var f = undefined;
  918. f = message.getId();
  919. if (f != null) {
  920. writer.writeMessage(
  921. 1,
  922. f,
  923. spine_server_catchup_catch_up_pb.CatchUpId.serializeBinaryToWriter
  924. );
  925. }
  926. };
  927. /**
  928. * optional CatchUpId id = 1;
  929. * @return {?proto.spine.server.catchup.CatchUpId}
  930. */
  931. proto.spine.server.catchup.CatchUpCompleted.prototype.getId = function() {
  932. return /** @type{?proto.spine.server.catchup.CatchUpId} */ (
  933. jspb.Message.getWrapperField(this, spine_server_catchup_catch_up_pb.CatchUpId, 1));
  934. };
  935. /**
  936. * @param {?proto.spine.server.catchup.CatchUpId|undefined} value
  937. * @return {!proto.spine.server.catchup.CatchUpCompleted} returns this
  938. */
  939. proto.spine.server.catchup.CatchUpCompleted.prototype.setId = function(value) {
  940. return jspb.Message.setWrapperField(this, 1, value);
  941. };
  942. /**
  943. * Clears the message field making it undefined.
  944. * @return {!proto.spine.server.catchup.CatchUpCompleted} returns this
  945. */
  946. proto.spine.server.catchup.CatchUpCompleted.prototype.clearId = function() {
  947. return this.setId(undefined);
  948. };
  949. /**
  950. * Returns whether this field is set.
  951. * @return {boolean}
  952. */
  953. proto.spine.server.catchup.CatchUpCompleted.prototype.hasId = function() {
  954. return jspb.Message.getField(this, 1) != null;
  955. };
  956. goog.object.extend(exports, proto.spine.server.catchup);
  957. // Generated by Spine ProtoJs Plugin
  958. let ObjectParser = require('../../../../client/parser/object-parser.js').default;
  959. let TypeParsers = require('../../../../client/parser/type-parsers.js').default;
  960. proto.spine.server.catchup.LiveEventsPickedUp.Parser = function() {
  961. ObjectParser.call(this);
  962. };
  963. proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype = Object.create(ObjectParser.prototype);
  964. proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype.constructor = proto.spine.server.catchup.LiveEventsPickedUp.Parser;
  965. proto.spine.server.catchup.LiveEventsPickedUp.Parser.prototype.fromObject = function(obj) {
  966. if (obj === null) {
  967. return null;
  968. }
  969. let msg = new proto.spine.server.catchup.LiveEventsPickedUp();
  970. if (obj.id !== undefined) {
  971. if (obj.id === null) {
  972. msg.setId(null);
  973. } else {
  974. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  975. msg.setId(value);
  976. }
  977. }
  978. return msg;
  979. };
  980. proto.spine.server.catchup.CatchUpStarted.Parser = function() {
  981. ObjectParser.call(this);
  982. };
  983. proto.spine.server.catchup.CatchUpStarted.Parser.prototype = Object.create(ObjectParser.prototype);
  984. proto.spine.server.catchup.CatchUpStarted.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpStarted.Parser;
  985. proto.spine.server.catchup.CatchUpStarted.Parser.prototype.fromObject = function(obj) {
  986. if (obj === null) {
  987. return null;
  988. }
  989. let msg = new proto.spine.server.catchup.CatchUpStarted();
  990. if (obj.id !== undefined) {
  991. if (obj.id === null) {
  992. msg.setId(null);
  993. } else {
  994. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  995. msg.setId(value);
  996. }
  997. }
  998. return msg;
  999. };
  1000. proto.spine.server.catchup.HistoryEventsRecalled.Parser = function() {
  1001. ObjectParser.call(this);
  1002. };
  1003. proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype = Object.create(ObjectParser.prototype);
  1004. proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype.constructor = proto.spine.server.catchup.HistoryEventsRecalled.Parser;
  1005. proto.spine.server.catchup.HistoryEventsRecalled.Parser.prototype.fromObject = function(obj) {
  1006. if (obj === null) {
  1007. return null;
  1008. }
  1009. let msg = new proto.spine.server.catchup.HistoryEventsRecalled();
  1010. if (obj.id !== undefined) {
  1011. if (obj.id === null) {
  1012. msg.setId(null);
  1013. } else {
  1014. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  1015. msg.setId(value);
  1016. }
  1017. }
  1018. return msg;
  1019. };
  1020. proto.spine.server.catchup.CatchUpCompleted.Parser = function() {
  1021. ObjectParser.call(this);
  1022. };
  1023. proto.spine.server.catchup.CatchUpCompleted.Parser.prototype = Object.create(ObjectParser.prototype);
  1024. proto.spine.server.catchup.CatchUpCompleted.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpCompleted.Parser;
  1025. proto.spine.server.catchup.CatchUpCompleted.Parser.prototype.fromObject = function(obj) {
  1026. if (obj === null) {
  1027. return null;
  1028. }
  1029. let msg = new proto.spine.server.catchup.CatchUpCompleted();
  1030. if (obj.id !== undefined) {
  1031. if (obj.id === null) {
  1032. msg.setId(null);
  1033. } else {
  1034. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  1035. msg.setId(value);
  1036. }
  1037. }
  1038. return msg;
  1039. };
  1040. proto.spine.server.catchup.CatchUpRequested.Parser = function() {
  1041. ObjectParser.call(this);
  1042. };
  1043. proto.spine.server.catchup.CatchUpRequested.Parser.prototype = Object.create(ObjectParser.prototype);
  1044. proto.spine.server.catchup.CatchUpRequested.Parser.prototype.constructor = proto.spine.server.catchup.CatchUpRequested.Parser;
  1045. proto.spine.server.catchup.CatchUpRequested.Parser.prototype.fromObject = function(obj) {
  1046. if (obj === null) {
  1047. return null;
  1048. }
  1049. let msg = new proto.spine.server.catchup.CatchUpRequested();
  1050. if (obj.id !== undefined) {
  1051. if (obj.id === null) {
  1052. msg.setId(null);
  1053. } else {
  1054. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  1055. msg.setId(value);
  1056. }
  1057. }
  1058. if (obj.request !== undefined) {
  1059. if (obj.request === null) {
  1060. msg.setRequest(null);
  1061. } else {
  1062. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUp.Request').fromObject(obj.request);
  1063. msg.setRequest(value);
  1064. }
  1065. }
  1066. return msg;
  1067. };
  1068. proto.spine.server.catchup.HistoryFullyRecalled.Parser = function() {
  1069. ObjectParser.call(this);
  1070. };
  1071. proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype = Object.create(ObjectParser.prototype);
  1072. proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype.constructor = proto.spine.server.catchup.HistoryFullyRecalled.Parser;
  1073. proto.spine.server.catchup.HistoryFullyRecalled.Parser.prototype.fromObject = function(obj) {
  1074. if (obj === null) {
  1075. return null;
  1076. }
  1077. let msg = new proto.spine.server.catchup.HistoryFullyRecalled();
  1078. if (obj.id !== undefined) {
  1079. if (obj.id === null) {
  1080. msg.setId(null);
  1081. } else {
  1082. let value = TypeParsers.parserFor('type.spine.io/spine.server.catchup.CatchUpId').fromObject(obj.id);
  1083. msg.setId(value);
  1084. }
  1085. }
  1086. return msg;
  1087. };
  1088. // Generated by Spine ProtoJs Plugin
  1089. proto.spine.server.catchup.LiveEventsPickedUp.typeUrl = function() {
  1090. return 'type.spine.io/spine.server.catchup.LiveEventsPickedUp';
  1091. };
  1092. // Generated by Spine ProtoJs Plugin
  1093. proto.spine.server.catchup.CatchUpStarted.typeUrl = function() {
  1094. return 'type.spine.io/spine.server.catchup.CatchUpStarted';
  1095. };
  1096. // Generated by Spine ProtoJs Plugin
  1097. proto.spine.server.catchup.HistoryEventsRecalled.typeUrl = function() {
  1098. return 'type.spine.io/spine.server.catchup.HistoryEventsRecalled';
  1099. };
  1100. // Generated by Spine ProtoJs Plugin
  1101. proto.spine.server.catchup.CatchUpCompleted.typeUrl = function() {
  1102. return 'type.spine.io/spine.server.catchup.CatchUpCompleted';
  1103. };
  1104. // Generated by Spine ProtoJs Plugin
  1105. proto.spine.server.catchup.CatchUpRequested.typeUrl = function() {
  1106. return 'type.spine.io/spine.server.catchup.CatchUpRequested';
  1107. };
  1108. // Generated by Spine ProtoJs Plugin
  1109. proto.spine.server.catchup.HistoryFullyRecalled.typeUrl = function() {
  1110. return 'type.spine.io/spine.server.catchup.HistoryFullyRecalled';
  1111. };