Source: proto/spine/change/change_pb.js

  1. // source: spine/change/change.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 google_protobuf_timestamp_pb = require('../../google/protobuf/timestamp_pb.js');
  16. goog.object.extend(proto, google_protobuf_timestamp_pb);
  17. goog.exportSymbol('proto.spine.change.BooleanChange', null, global);
  18. goog.exportSymbol('proto.spine.change.BytesChange', null, global);
  19. goog.exportSymbol('proto.spine.change.DoubleChange', null, global);
  20. goog.exportSymbol('proto.spine.change.Fixed32Change', null, global);
  21. goog.exportSymbol('proto.spine.change.Fixed64Change', null, global);
  22. goog.exportSymbol('proto.spine.change.FloatChange', null, global);
  23. goog.exportSymbol('proto.spine.change.Int32Change', null, global);
  24. goog.exportSymbol('proto.spine.change.Int64Change', null, global);
  25. goog.exportSymbol('proto.spine.change.SInt32Change', null, global);
  26. goog.exportSymbol('proto.spine.change.SInt64Change', null, global);
  27. goog.exportSymbol('proto.spine.change.Sfixed32Change', null, global);
  28. goog.exportSymbol('proto.spine.change.Sfixed64Change', null, global);
  29. goog.exportSymbol('proto.spine.change.StringChange', null, global);
  30. goog.exportSymbol('proto.spine.change.TimestampChange', null, global);
  31. goog.exportSymbol('proto.spine.change.UInt32Change', null, global);
  32. goog.exportSymbol('proto.spine.change.UInt64Change', 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.change.StringChange = function(opt_data) {
  44. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  45. };
  46. goog.inherits(proto.spine.change.StringChange, jspb.Message);
  47. if (goog.DEBUG && !COMPILED) {
  48. /**
  49. * @public
  50. * @override
  51. */
  52. proto.spine.change.StringChange.displayName = 'proto.spine.change.StringChange';
  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.change.TimestampChange = function(opt_data) {
  65. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  66. };
  67. goog.inherits(proto.spine.change.TimestampChange, jspb.Message);
  68. if (goog.DEBUG && !COMPILED) {
  69. /**
  70. * @public
  71. * @override
  72. */
  73. proto.spine.change.TimestampChange.displayName = 'proto.spine.change.TimestampChange';
  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.change.DoubleChange = function(opt_data) {
  86. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  87. };
  88. goog.inherits(proto.spine.change.DoubleChange, jspb.Message);
  89. if (goog.DEBUG && !COMPILED) {
  90. /**
  91. * @public
  92. * @override
  93. */
  94. proto.spine.change.DoubleChange.displayName = 'proto.spine.change.DoubleChange';
  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.change.FloatChange = function(opt_data) {
  107. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  108. };
  109. goog.inherits(proto.spine.change.FloatChange, jspb.Message);
  110. if (goog.DEBUG && !COMPILED) {
  111. /**
  112. * @public
  113. * @override
  114. */
  115. proto.spine.change.FloatChange.displayName = 'proto.spine.change.FloatChange';
  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.change.Int32Change = function(opt_data) {
  128. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  129. };
  130. goog.inherits(proto.spine.change.Int32Change, jspb.Message);
  131. if (goog.DEBUG && !COMPILED) {
  132. /**
  133. * @public
  134. * @override
  135. */
  136. proto.spine.change.Int32Change.displayName = 'proto.spine.change.Int32Change';
  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.change.Int64Change = function(opt_data) {
  149. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  150. };
  151. goog.inherits(proto.spine.change.Int64Change, jspb.Message);
  152. if (goog.DEBUG && !COMPILED) {
  153. /**
  154. * @public
  155. * @override
  156. */
  157. proto.spine.change.Int64Change.displayName = 'proto.spine.change.Int64Change';
  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.change.UInt32Change = function(opt_data) {
  170. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  171. };
  172. goog.inherits(proto.spine.change.UInt32Change, jspb.Message);
  173. if (goog.DEBUG && !COMPILED) {
  174. /**
  175. * @public
  176. * @override
  177. */
  178. proto.spine.change.UInt32Change.displayName = 'proto.spine.change.UInt32Change';
  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.change.UInt64Change = function(opt_data) {
  191. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  192. };
  193. goog.inherits(proto.spine.change.UInt64Change, jspb.Message);
  194. if (goog.DEBUG && !COMPILED) {
  195. /**
  196. * @public
  197. * @override
  198. */
  199. proto.spine.change.UInt64Change.displayName = 'proto.spine.change.UInt64Change';
  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.change.SInt32Change = function(opt_data) {
  212. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  213. };
  214. goog.inherits(proto.spine.change.SInt32Change, jspb.Message);
  215. if (goog.DEBUG && !COMPILED) {
  216. /**
  217. * @public
  218. * @override
  219. */
  220. proto.spine.change.SInt32Change.displayName = 'proto.spine.change.SInt32Change';
  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.change.SInt64Change = function(opt_data) {
  233. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  234. };
  235. goog.inherits(proto.spine.change.SInt64Change, jspb.Message);
  236. if (goog.DEBUG && !COMPILED) {
  237. /**
  238. * @public
  239. * @override
  240. */
  241. proto.spine.change.SInt64Change.displayName = 'proto.spine.change.SInt64Change';
  242. }
  243. /**
  244. * Generated by JsPbCodeGenerator.
  245. * @param {Array=} opt_data Optional initial data array, typically from a
  246. * server response, or constructed directly in Javascript. The array is used
  247. * in place and becomes part of the constructed object. It is not cloned.
  248. * If no data is provided, the constructed object will be empty, but still
  249. * valid.
  250. * @extends {jspb.Message}
  251. * @constructor
  252. */
  253. proto.spine.change.Fixed32Change = function(opt_data) {
  254. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  255. };
  256. goog.inherits(proto.spine.change.Fixed32Change, jspb.Message);
  257. if (goog.DEBUG && !COMPILED) {
  258. /**
  259. * @public
  260. * @override
  261. */
  262. proto.spine.change.Fixed32Change.displayName = 'proto.spine.change.Fixed32Change';
  263. }
  264. /**
  265. * Generated by JsPbCodeGenerator.
  266. * @param {Array=} opt_data Optional initial data array, typically from a
  267. * server response, or constructed directly in Javascript. The array is used
  268. * in place and becomes part of the constructed object. It is not cloned.
  269. * If no data is provided, the constructed object will be empty, but still
  270. * valid.
  271. * @extends {jspb.Message}
  272. * @constructor
  273. */
  274. proto.spine.change.Fixed64Change = function(opt_data) {
  275. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  276. };
  277. goog.inherits(proto.spine.change.Fixed64Change, jspb.Message);
  278. if (goog.DEBUG && !COMPILED) {
  279. /**
  280. * @public
  281. * @override
  282. */
  283. proto.spine.change.Fixed64Change.displayName = 'proto.spine.change.Fixed64Change';
  284. }
  285. /**
  286. * Generated by JsPbCodeGenerator.
  287. * @param {Array=} opt_data Optional initial data array, typically from a
  288. * server response, or constructed directly in Javascript. The array is used
  289. * in place and becomes part of the constructed object. It is not cloned.
  290. * If no data is provided, the constructed object will be empty, but still
  291. * valid.
  292. * @extends {jspb.Message}
  293. * @constructor
  294. */
  295. proto.spine.change.Sfixed32Change = function(opt_data) {
  296. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  297. };
  298. goog.inherits(proto.spine.change.Sfixed32Change, jspb.Message);
  299. if (goog.DEBUG && !COMPILED) {
  300. /**
  301. * @public
  302. * @override
  303. */
  304. proto.spine.change.Sfixed32Change.displayName = 'proto.spine.change.Sfixed32Change';
  305. }
  306. /**
  307. * Generated by JsPbCodeGenerator.
  308. * @param {Array=} opt_data Optional initial data array, typically from a
  309. * server response, or constructed directly in Javascript. The array is used
  310. * in place and becomes part of the constructed object. It is not cloned.
  311. * If no data is provided, the constructed object will be empty, but still
  312. * valid.
  313. * @extends {jspb.Message}
  314. * @constructor
  315. */
  316. proto.spine.change.Sfixed64Change = function(opt_data) {
  317. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  318. };
  319. goog.inherits(proto.spine.change.Sfixed64Change, jspb.Message);
  320. if (goog.DEBUG && !COMPILED) {
  321. /**
  322. * @public
  323. * @override
  324. */
  325. proto.spine.change.Sfixed64Change.displayName = 'proto.spine.change.Sfixed64Change';
  326. }
  327. /**
  328. * Generated by JsPbCodeGenerator.
  329. * @param {Array=} opt_data Optional initial data array, typically from a
  330. * server response, or constructed directly in Javascript. The array is used
  331. * in place and becomes part of the constructed object. It is not cloned.
  332. * If no data is provided, the constructed object will be empty, but still
  333. * valid.
  334. * @extends {jspb.Message}
  335. * @constructor
  336. */
  337. proto.spine.change.BooleanChange = function(opt_data) {
  338. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  339. };
  340. goog.inherits(proto.spine.change.BooleanChange, jspb.Message);
  341. if (goog.DEBUG && !COMPILED) {
  342. /**
  343. * @public
  344. * @override
  345. */
  346. proto.spine.change.BooleanChange.displayName = 'proto.spine.change.BooleanChange';
  347. }
  348. /**
  349. * Generated by JsPbCodeGenerator.
  350. * @param {Array=} opt_data Optional initial data array, typically from a
  351. * server response, or constructed directly in Javascript. The array is used
  352. * in place and becomes part of the constructed object. It is not cloned.
  353. * If no data is provided, the constructed object will be empty, but still
  354. * valid.
  355. * @extends {jspb.Message}
  356. * @constructor
  357. */
  358. proto.spine.change.BytesChange = function(opt_data) {
  359. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  360. };
  361. goog.inherits(proto.spine.change.BytesChange, jspb.Message);
  362. if (goog.DEBUG && !COMPILED) {
  363. /**
  364. * @public
  365. * @override
  366. */
  367. proto.spine.change.BytesChange.displayName = 'proto.spine.change.BytesChange';
  368. }
  369. if (jspb.Message.GENERATE_TO_OBJECT) {
  370. /**
  371. * Creates an object representation of this proto.
  372. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  373. * Optional fields that are not set will be set to undefined.
  374. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  375. * For the list of reserved names please see:
  376. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  377. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  378. * JSPB instance for transitional soy proto support:
  379. * http://goto/soy-param-migration
  380. * @return {!Object}
  381. */
  382. proto.spine.change.StringChange.prototype.toObject = function(opt_includeInstance) {
  383. return proto.spine.change.StringChange.toObject(opt_includeInstance, this);
  384. };
  385. /**
  386. * Static version of the {@see toObject} method.
  387. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  388. * the JSPB instance for transitional soy proto support:
  389. * http://goto/soy-param-migration
  390. * @param {!proto.spine.change.StringChange} msg The msg instance to transform.
  391. * @return {!Object}
  392. * @suppress {unusedLocalVariables} f is only used for nested messages
  393. */
  394. proto.spine.change.StringChange.toObject = function(includeInstance, msg) {
  395. var f, obj = {
  396. previousValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
  397. newValue: jspb.Message.getFieldWithDefault(msg, 2, "")
  398. };
  399. if (includeInstance) {
  400. obj.$jspbMessageInstance = msg;
  401. }
  402. return obj;
  403. };
  404. }
  405. /**
  406. * Deserializes binary data (in protobuf wire format).
  407. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  408. * @return {!proto.spine.change.StringChange}
  409. */
  410. proto.spine.change.StringChange.deserializeBinary = function(bytes) {
  411. var reader = new jspb.BinaryReader(bytes);
  412. var msg = new proto.spine.change.StringChange;
  413. return proto.spine.change.StringChange.deserializeBinaryFromReader(msg, reader);
  414. };
  415. /**
  416. * Deserializes binary data (in protobuf wire format) from the
  417. * given reader into the given message object.
  418. * @param {!proto.spine.change.StringChange} msg The message object to deserialize into.
  419. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  420. * @return {!proto.spine.change.StringChange}
  421. */
  422. proto.spine.change.StringChange.deserializeBinaryFromReader = function(msg, reader) {
  423. while (reader.nextField()) {
  424. if (reader.isEndGroup()) {
  425. break;
  426. }
  427. var field = reader.getFieldNumber();
  428. switch (field) {
  429. case 1:
  430. var value = /** @type {string} */ (reader.readString());
  431. msg.setPreviousValue(value);
  432. break;
  433. case 2:
  434. var value = /** @type {string} */ (reader.readString());
  435. msg.setNewValue(value);
  436. break;
  437. default:
  438. reader.skipField();
  439. break;
  440. }
  441. }
  442. return msg;
  443. };
  444. /**
  445. * Serializes the message to binary data (in protobuf wire format).
  446. * @return {!Uint8Array}
  447. */
  448. proto.spine.change.StringChange.prototype.serializeBinary = function() {
  449. var writer = new jspb.BinaryWriter();
  450. proto.spine.change.StringChange.serializeBinaryToWriter(this, writer);
  451. return writer.getResultBuffer();
  452. };
  453. /**
  454. * Serializes the given message to binary data (in protobuf wire
  455. * format), writing to the given BinaryWriter.
  456. * @param {!proto.spine.change.StringChange} message
  457. * @param {!jspb.BinaryWriter} writer
  458. * @suppress {unusedLocalVariables} f is only used for nested messages
  459. */
  460. proto.spine.change.StringChange.serializeBinaryToWriter = function(message, writer) {
  461. var f = undefined;
  462. f = message.getPreviousValue();
  463. if (f.length > 0) {
  464. writer.writeString(
  465. 1,
  466. f
  467. );
  468. }
  469. f = message.getNewValue();
  470. if (f.length > 0) {
  471. writer.writeString(
  472. 2,
  473. f
  474. );
  475. }
  476. };
  477. /**
  478. * optional string previous_value = 1;
  479. * @return {string}
  480. */
  481. proto.spine.change.StringChange.prototype.getPreviousValue = function() {
  482. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  483. };
  484. /**
  485. * @param {string} value
  486. * @return {!proto.spine.change.StringChange} returns this
  487. */
  488. proto.spine.change.StringChange.prototype.setPreviousValue = function(value) {
  489. return jspb.Message.setProto3StringField(this, 1, value);
  490. };
  491. /**
  492. * optional string new_value = 2;
  493. * @return {string}
  494. */
  495. proto.spine.change.StringChange.prototype.getNewValue = function() {
  496. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  497. };
  498. /**
  499. * @param {string} value
  500. * @return {!proto.spine.change.StringChange} returns this
  501. */
  502. proto.spine.change.StringChange.prototype.setNewValue = function(value) {
  503. return jspb.Message.setProto3StringField(this, 2, value);
  504. };
  505. if (jspb.Message.GENERATE_TO_OBJECT) {
  506. /**
  507. * Creates an object representation of this proto.
  508. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  509. * Optional fields that are not set will be set to undefined.
  510. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  511. * For the list of reserved names please see:
  512. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  513. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  514. * JSPB instance for transitional soy proto support:
  515. * http://goto/soy-param-migration
  516. * @return {!Object}
  517. */
  518. proto.spine.change.TimestampChange.prototype.toObject = function(opt_includeInstance) {
  519. return proto.spine.change.TimestampChange.toObject(opt_includeInstance, this);
  520. };
  521. /**
  522. * Static version of the {@see toObject} method.
  523. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  524. * the JSPB instance for transitional soy proto support:
  525. * http://goto/soy-param-migration
  526. * @param {!proto.spine.change.TimestampChange} msg The msg instance to transform.
  527. * @return {!Object}
  528. * @suppress {unusedLocalVariables} f is only used for nested messages
  529. */
  530. proto.spine.change.TimestampChange.toObject = function(includeInstance, msg) {
  531. var f, obj = {
  532. previousValue: (f = msg.getPreviousValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  533. newValue: (f = msg.getNewValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
  534. };
  535. if (includeInstance) {
  536. obj.$jspbMessageInstance = msg;
  537. }
  538. return obj;
  539. };
  540. }
  541. /**
  542. * Deserializes binary data (in protobuf wire format).
  543. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  544. * @return {!proto.spine.change.TimestampChange}
  545. */
  546. proto.spine.change.TimestampChange.deserializeBinary = function(bytes) {
  547. var reader = new jspb.BinaryReader(bytes);
  548. var msg = new proto.spine.change.TimestampChange;
  549. return proto.spine.change.TimestampChange.deserializeBinaryFromReader(msg, reader);
  550. };
  551. /**
  552. * Deserializes binary data (in protobuf wire format) from the
  553. * given reader into the given message object.
  554. * @param {!proto.spine.change.TimestampChange} msg The message object to deserialize into.
  555. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  556. * @return {!proto.spine.change.TimestampChange}
  557. */
  558. proto.spine.change.TimestampChange.deserializeBinaryFromReader = function(msg, reader) {
  559. while (reader.nextField()) {
  560. if (reader.isEndGroup()) {
  561. break;
  562. }
  563. var field = reader.getFieldNumber();
  564. switch (field) {
  565. case 1:
  566. var value = new google_protobuf_timestamp_pb.Timestamp;
  567. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  568. msg.setPreviousValue(value);
  569. break;
  570. case 2:
  571. var value = new google_protobuf_timestamp_pb.Timestamp;
  572. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  573. msg.setNewValue(value);
  574. break;
  575. default:
  576. reader.skipField();
  577. break;
  578. }
  579. }
  580. return msg;
  581. };
  582. /**
  583. * Serializes the message to binary data (in protobuf wire format).
  584. * @return {!Uint8Array}
  585. */
  586. proto.spine.change.TimestampChange.prototype.serializeBinary = function() {
  587. var writer = new jspb.BinaryWriter();
  588. proto.spine.change.TimestampChange.serializeBinaryToWriter(this, writer);
  589. return writer.getResultBuffer();
  590. };
  591. /**
  592. * Serializes the given message to binary data (in protobuf wire
  593. * format), writing to the given BinaryWriter.
  594. * @param {!proto.spine.change.TimestampChange} message
  595. * @param {!jspb.BinaryWriter} writer
  596. * @suppress {unusedLocalVariables} f is only used for nested messages
  597. */
  598. proto.spine.change.TimestampChange.serializeBinaryToWriter = function(message, writer) {
  599. var f = undefined;
  600. f = message.getPreviousValue();
  601. if (f != null) {
  602. writer.writeMessage(
  603. 1,
  604. f,
  605. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  606. );
  607. }
  608. f = message.getNewValue();
  609. if (f != null) {
  610. writer.writeMessage(
  611. 2,
  612. f,
  613. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  614. );
  615. }
  616. };
  617. /**
  618. * optional google.protobuf.Timestamp previous_value = 1;
  619. * @return {?proto.google.protobuf.Timestamp}
  620. */
  621. proto.spine.change.TimestampChange.prototype.getPreviousValue = function() {
  622. return /** @type{?proto.google.protobuf.Timestamp} */ (
  623. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
  624. };
  625. /**
  626. * @param {?proto.google.protobuf.Timestamp|undefined} value
  627. * @return {!proto.spine.change.TimestampChange} returns this
  628. */
  629. proto.spine.change.TimestampChange.prototype.setPreviousValue = function(value) {
  630. return jspb.Message.setWrapperField(this, 1, value);
  631. };
  632. /**
  633. * Clears the message field making it undefined.
  634. * @return {!proto.spine.change.TimestampChange} returns this
  635. */
  636. proto.spine.change.TimestampChange.prototype.clearPreviousValue = function() {
  637. return this.setPreviousValue(undefined);
  638. };
  639. /**
  640. * Returns whether this field is set.
  641. * @return {boolean}
  642. */
  643. proto.spine.change.TimestampChange.prototype.hasPreviousValue = function() {
  644. return jspb.Message.getField(this, 1) != null;
  645. };
  646. /**
  647. * optional google.protobuf.Timestamp new_value = 2;
  648. * @return {?proto.google.protobuf.Timestamp}
  649. */
  650. proto.spine.change.TimestampChange.prototype.getNewValue = function() {
  651. return /** @type{?proto.google.protobuf.Timestamp} */ (
  652. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
  653. };
  654. /**
  655. * @param {?proto.google.protobuf.Timestamp|undefined} value
  656. * @return {!proto.spine.change.TimestampChange} returns this
  657. */
  658. proto.spine.change.TimestampChange.prototype.setNewValue = function(value) {
  659. return jspb.Message.setWrapperField(this, 2, value);
  660. };
  661. /**
  662. * Clears the message field making it undefined.
  663. * @return {!proto.spine.change.TimestampChange} returns this
  664. */
  665. proto.spine.change.TimestampChange.prototype.clearNewValue = function() {
  666. return this.setNewValue(undefined);
  667. };
  668. /**
  669. * Returns whether this field is set.
  670. * @return {boolean}
  671. */
  672. proto.spine.change.TimestampChange.prototype.hasNewValue = function() {
  673. return jspb.Message.getField(this, 2) != null;
  674. };
  675. if (jspb.Message.GENERATE_TO_OBJECT) {
  676. /**
  677. * Creates an object representation of this proto.
  678. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  679. * Optional fields that are not set will be set to undefined.
  680. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  681. * For the list of reserved names please see:
  682. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  683. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  684. * JSPB instance for transitional soy proto support:
  685. * http://goto/soy-param-migration
  686. * @return {!Object}
  687. */
  688. proto.spine.change.DoubleChange.prototype.toObject = function(opt_includeInstance) {
  689. return proto.spine.change.DoubleChange.toObject(opt_includeInstance, this);
  690. };
  691. /**
  692. * Static version of the {@see toObject} method.
  693. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  694. * the JSPB instance for transitional soy proto support:
  695. * http://goto/soy-param-migration
  696. * @param {!proto.spine.change.DoubleChange} msg The msg instance to transform.
  697. * @return {!Object}
  698. * @suppress {unusedLocalVariables} f is only used for nested messages
  699. */
  700. proto.spine.change.DoubleChange.toObject = function(includeInstance, msg) {
  701. var f, obj = {
  702. previousValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  703. newValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
  704. };
  705. if (includeInstance) {
  706. obj.$jspbMessageInstance = msg;
  707. }
  708. return obj;
  709. };
  710. }
  711. /**
  712. * Deserializes binary data (in protobuf wire format).
  713. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  714. * @return {!proto.spine.change.DoubleChange}
  715. */
  716. proto.spine.change.DoubleChange.deserializeBinary = function(bytes) {
  717. var reader = new jspb.BinaryReader(bytes);
  718. var msg = new proto.spine.change.DoubleChange;
  719. return proto.spine.change.DoubleChange.deserializeBinaryFromReader(msg, reader);
  720. };
  721. /**
  722. * Deserializes binary data (in protobuf wire format) from the
  723. * given reader into the given message object.
  724. * @param {!proto.spine.change.DoubleChange} msg The message object to deserialize into.
  725. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  726. * @return {!proto.spine.change.DoubleChange}
  727. */
  728. proto.spine.change.DoubleChange.deserializeBinaryFromReader = function(msg, reader) {
  729. while (reader.nextField()) {
  730. if (reader.isEndGroup()) {
  731. break;
  732. }
  733. var field = reader.getFieldNumber();
  734. switch (field) {
  735. case 1:
  736. var value = /** @type {number} */ (reader.readDouble());
  737. msg.setPreviousValue(value);
  738. break;
  739. case 2:
  740. var value = /** @type {number} */ (reader.readDouble());
  741. msg.setNewValue(value);
  742. break;
  743. default:
  744. reader.skipField();
  745. break;
  746. }
  747. }
  748. return msg;
  749. };
  750. /**
  751. * Serializes the message to binary data (in protobuf wire format).
  752. * @return {!Uint8Array}
  753. */
  754. proto.spine.change.DoubleChange.prototype.serializeBinary = function() {
  755. var writer = new jspb.BinaryWriter();
  756. proto.spine.change.DoubleChange.serializeBinaryToWriter(this, writer);
  757. return writer.getResultBuffer();
  758. };
  759. /**
  760. * Serializes the given message to binary data (in protobuf wire
  761. * format), writing to the given BinaryWriter.
  762. * @param {!proto.spine.change.DoubleChange} message
  763. * @param {!jspb.BinaryWriter} writer
  764. * @suppress {unusedLocalVariables} f is only used for nested messages
  765. */
  766. proto.spine.change.DoubleChange.serializeBinaryToWriter = function(message, writer) {
  767. var f = undefined;
  768. f = message.getPreviousValue();
  769. if (f !== 0.0) {
  770. writer.writeDouble(
  771. 1,
  772. f
  773. );
  774. }
  775. f = message.getNewValue();
  776. if (f !== 0.0) {
  777. writer.writeDouble(
  778. 2,
  779. f
  780. );
  781. }
  782. };
  783. /**
  784. * optional double previous_value = 1;
  785. * @return {number}
  786. */
  787. proto.spine.change.DoubleChange.prototype.getPreviousValue = function() {
  788. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  789. };
  790. /**
  791. * @param {number} value
  792. * @return {!proto.spine.change.DoubleChange} returns this
  793. */
  794. proto.spine.change.DoubleChange.prototype.setPreviousValue = function(value) {
  795. return jspb.Message.setProto3FloatField(this, 1, value);
  796. };
  797. /**
  798. * optional double new_value = 2;
  799. * @return {number}
  800. */
  801. proto.spine.change.DoubleChange.prototype.getNewValue = function() {
  802. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  803. };
  804. /**
  805. * @param {number} value
  806. * @return {!proto.spine.change.DoubleChange} returns this
  807. */
  808. proto.spine.change.DoubleChange.prototype.setNewValue = function(value) {
  809. return jspb.Message.setProto3FloatField(this, 2, value);
  810. };
  811. if (jspb.Message.GENERATE_TO_OBJECT) {
  812. /**
  813. * Creates an object representation of this proto.
  814. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  815. * Optional fields that are not set will be set to undefined.
  816. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  817. * For the list of reserved names please see:
  818. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  819. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  820. * JSPB instance for transitional soy proto support:
  821. * http://goto/soy-param-migration
  822. * @return {!Object}
  823. */
  824. proto.spine.change.FloatChange.prototype.toObject = function(opt_includeInstance) {
  825. return proto.spine.change.FloatChange.toObject(opt_includeInstance, this);
  826. };
  827. /**
  828. * Static version of the {@see toObject} method.
  829. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  830. * the JSPB instance for transitional soy proto support:
  831. * http://goto/soy-param-migration
  832. * @param {!proto.spine.change.FloatChange} msg The msg instance to transform.
  833. * @return {!Object}
  834. * @suppress {unusedLocalVariables} f is only used for nested messages
  835. */
  836. proto.spine.change.FloatChange.toObject = function(includeInstance, msg) {
  837. var f, obj = {
  838. previousValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  839. newValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
  840. };
  841. if (includeInstance) {
  842. obj.$jspbMessageInstance = msg;
  843. }
  844. return obj;
  845. };
  846. }
  847. /**
  848. * Deserializes binary data (in protobuf wire format).
  849. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  850. * @return {!proto.spine.change.FloatChange}
  851. */
  852. proto.spine.change.FloatChange.deserializeBinary = function(bytes) {
  853. var reader = new jspb.BinaryReader(bytes);
  854. var msg = new proto.spine.change.FloatChange;
  855. return proto.spine.change.FloatChange.deserializeBinaryFromReader(msg, reader);
  856. };
  857. /**
  858. * Deserializes binary data (in protobuf wire format) from the
  859. * given reader into the given message object.
  860. * @param {!proto.spine.change.FloatChange} msg The message object to deserialize into.
  861. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  862. * @return {!proto.spine.change.FloatChange}
  863. */
  864. proto.spine.change.FloatChange.deserializeBinaryFromReader = function(msg, reader) {
  865. while (reader.nextField()) {
  866. if (reader.isEndGroup()) {
  867. break;
  868. }
  869. var field = reader.getFieldNumber();
  870. switch (field) {
  871. case 1:
  872. var value = /** @type {number} */ (reader.readFloat());
  873. msg.setPreviousValue(value);
  874. break;
  875. case 2:
  876. var value = /** @type {number} */ (reader.readFloat());
  877. msg.setNewValue(value);
  878. break;
  879. default:
  880. reader.skipField();
  881. break;
  882. }
  883. }
  884. return msg;
  885. };
  886. /**
  887. * Serializes the message to binary data (in protobuf wire format).
  888. * @return {!Uint8Array}
  889. */
  890. proto.spine.change.FloatChange.prototype.serializeBinary = function() {
  891. var writer = new jspb.BinaryWriter();
  892. proto.spine.change.FloatChange.serializeBinaryToWriter(this, writer);
  893. return writer.getResultBuffer();
  894. };
  895. /**
  896. * Serializes the given message to binary data (in protobuf wire
  897. * format), writing to the given BinaryWriter.
  898. * @param {!proto.spine.change.FloatChange} message
  899. * @param {!jspb.BinaryWriter} writer
  900. * @suppress {unusedLocalVariables} f is only used for nested messages
  901. */
  902. proto.spine.change.FloatChange.serializeBinaryToWriter = function(message, writer) {
  903. var f = undefined;
  904. f = message.getPreviousValue();
  905. if (f !== 0.0) {
  906. writer.writeFloat(
  907. 1,
  908. f
  909. );
  910. }
  911. f = message.getNewValue();
  912. if (f !== 0.0) {
  913. writer.writeFloat(
  914. 2,
  915. f
  916. );
  917. }
  918. };
  919. /**
  920. * optional float previous_value = 1;
  921. * @return {number}
  922. */
  923. proto.spine.change.FloatChange.prototype.getPreviousValue = function() {
  924. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  925. };
  926. /**
  927. * @param {number} value
  928. * @return {!proto.spine.change.FloatChange} returns this
  929. */
  930. proto.spine.change.FloatChange.prototype.setPreviousValue = function(value) {
  931. return jspb.Message.setProto3FloatField(this, 1, value);
  932. };
  933. /**
  934. * optional float new_value = 2;
  935. * @return {number}
  936. */
  937. proto.spine.change.FloatChange.prototype.getNewValue = function() {
  938. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  939. };
  940. /**
  941. * @param {number} value
  942. * @return {!proto.spine.change.FloatChange} returns this
  943. */
  944. proto.spine.change.FloatChange.prototype.setNewValue = function(value) {
  945. return jspb.Message.setProto3FloatField(this, 2, value);
  946. };
  947. if (jspb.Message.GENERATE_TO_OBJECT) {
  948. /**
  949. * Creates an object representation of this proto.
  950. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  951. * Optional fields that are not set will be set to undefined.
  952. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  953. * For the list of reserved names please see:
  954. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  955. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  956. * JSPB instance for transitional soy proto support:
  957. * http://goto/soy-param-migration
  958. * @return {!Object}
  959. */
  960. proto.spine.change.Int32Change.prototype.toObject = function(opt_includeInstance) {
  961. return proto.spine.change.Int32Change.toObject(opt_includeInstance, this);
  962. };
  963. /**
  964. * Static version of the {@see toObject} method.
  965. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  966. * the JSPB instance for transitional soy proto support:
  967. * http://goto/soy-param-migration
  968. * @param {!proto.spine.change.Int32Change} msg The msg instance to transform.
  969. * @return {!Object}
  970. * @suppress {unusedLocalVariables} f is only used for nested messages
  971. */
  972. proto.spine.change.Int32Change.toObject = function(includeInstance, msg) {
  973. var f, obj = {
  974. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  975. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  976. };
  977. if (includeInstance) {
  978. obj.$jspbMessageInstance = msg;
  979. }
  980. return obj;
  981. };
  982. }
  983. /**
  984. * Deserializes binary data (in protobuf wire format).
  985. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  986. * @return {!proto.spine.change.Int32Change}
  987. */
  988. proto.spine.change.Int32Change.deserializeBinary = function(bytes) {
  989. var reader = new jspb.BinaryReader(bytes);
  990. var msg = new proto.spine.change.Int32Change;
  991. return proto.spine.change.Int32Change.deserializeBinaryFromReader(msg, reader);
  992. };
  993. /**
  994. * Deserializes binary data (in protobuf wire format) from the
  995. * given reader into the given message object.
  996. * @param {!proto.spine.change.Int32Change} msg The message object to deserialize into.
  997. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  998. * @return {!proto.spine.change.Int32Change}
  999. */
  1000. proto.spine.change.Int32Change.deserializeBinaryFromReader = function(msg, reader) {
  1001. while (reader.nextField()) {
  1002. if (reader.isEndGroup()) {
  1003. break;
  1004. }
  1005. var field = reader.getFieldNumber();
  1006. switch (field) {
  1007. case 1:
  1008. var value = /** @type {number} */ (reader.readInt32());
  1009. msg.setPreviousValue(value);
  1010. break;
  1011. case 2:
  1012. var value = /** @type {number} */ (reader.readInt32());
  1013. msg.setNewValue(value);
  1014. break;
  1015. default:
  1016. reader.skipField();
  1017. break;
  1018. }
  1019. }
  1020. return msg;
  1021. };
  1022. /**
  1023. * Serializes the message to binary data (in protobuf wire format).
  1024. * @return {!Uint8Array}
  1025. */
  1026. proto.spine.change.Int32Change.prototype.serializeBinary = function() {
  1027. var writer = new jspb.BinaryWriter();
  1028. proto.spine.change.Int32Change.serializeBinaryToWriter(this, writer);
  1029. return writer.getResultBuffer();
  1030. };
  1031. /**
  1032. * Serializes the given message to binary data (in protobuf wire
  1033. * format), writing to the given BinaryWriter.
  1034. * @param {!proto.spine.change.Int32Change} message
  1035. * @param {!jspb.BinaryWriter} writer
  1036. * @suppress {unusedLocalVariables} f is only used for nested messages
  1037. */
  1038. proto.spine.change.Int32Change.serializeBinaryToWriter = function(message, writer) {
  1039. var f = undefined;
  1040. f = message.getPreviousValue();
  1041. if (f !== 0) {
  1042. writer.writeInt32(
  1043. 1,
  1044. f
  1045. );
  1046. }
  1047. f = message.getNewValue();
  1048. if (f !== 0) {
  1049. writer.writeInt32(
  1050. 2,
  1051. f
  1052. );
  1053. }
  1054. };
  1055. /**
  1056. * optional int32 previous_value = 1;
  1057. * @return {number}
  1058. */
  1059. proto.spine.change.Int32Change.prototype.getPreviousValue = function() {
  1060. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1061. };
  1062. /**
  1063. * @param {number} value
  1064. * @return {!proto.spine.change.Int32Change} returns this
  1065. */
  1066. proto.spine.change.Int32Change.prototype.setPreviousValue = function(value) {
  1067. return jspb.Message.setProto3IntField(this, 1, value);
  1068. };
  1069. /**
  1070. * optional int32 new_value = 2;
  1071. * @return {number}
  1072. */
  1073. proto.spine.change.Int32Change.prototype.getNewValue = function() {
  1074. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1075. };
  1076. /**
  1077. * @param {number} value
  1078. * @return {!proto.spine.change.Int32Change} returns this
  1079. */
  1080. proto.spine.change.Int32Change.prototype.setNewValue = function(value) {
  1081. return jspb.Message.setProto3IntField(this, 2, value);
  1082. };
  1083. if (jspb.Message.GENERATE_TO_OBJECT) {
  1084. /**
  1085. * Creates an object representation of this proto.
  1086. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1087. * Optional fields that are not set will be set to undefined.
  1088. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1089. * For the list of reserved names please see:
  1090. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1091. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1092. * JSPB instance for transitional soy proto support:
  1093. * http://goto/soy-param-migration
  1094. * @return {!Object}
  1095. */
  1096. proto.spine.change.Int64Change.prototype.toObject = function(opt_includeInstance) {
  1097. return proto.spine.change.Int64Change.toObject(opt_includeInstance, this);
  1098. };
  1099. /**
  1100. * Static version of the {@see toObject} method.
  1101. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1102. * the JSPB instance for transitional soy proto support:
  1103. * http://goto/soy-param-migration
  1104. * @param {!proto.spine.change.Int64Change} msg The msg instance to transform.
  1105. * @return {!Object}
  1106. * @suppress {unusedLocalVariables} f is only used for nested messages
  1107. */
  1108. proto.spine.change.Int64Change.toObject = function(includeInstance, msg) {
  1109. var f, obj = {
  1110. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1111. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1112. };
  1113. if (includeInstance) {
  1114. obj.$jspbMessageInstance = msg;
  1115. }
  1116. return obj;
  1117. };
  1118. }
  1119. /**
  1120. * Deserializes binary data (in protobuf wire format).
  1121. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1122. * @return {!proto.spine.change.Int64Change}
  1123. */
  1124. proto.spine.change.Int64Change.deserializeBinary = function(bytes) {
  1125. var reader = new jspb.BinaryReader(bytes);
  1126. var msg = new proto.spine.change.Int64Change;
  1127. return proto.spine.change.Int64Change.deserializeBinaryFromReader(msg, reader);
  1128. };
  1129. /**
  1130. * Deserializes binary data (in protobuf wire format) from the
  1131. * given reader into the given message object.
  1132. * @param {!proto.spine.change.Int64Change} msg The message object to deserialize into.
  1133. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1134. * @return {!proto.spine.change.Int64Change}
  1135. */
  1136. proto.spine.change.Int64Change.deserializeBinaryFromReader = function(msg, reader) {
  1137. while (reader.nextField()) {
  1138. if (reader.isEndGroup()) {
  1139. break;
  1140. }
  1141. var field = reader.getFieldNumber();
  1142. switch (field) {
  1143. case 1:
  1144. var value = /** @type {number} */ (reader.readInt64());
  1145. msg.setPreviousValue(value);
  1146. break;
  1147. case 2:
  1148. var value = /** @type {number} */ (reader.readInt64());
  1149. msg.setNewValue(value);
  1150. break;
  1151. default:
  1152. reader.skipField();
  1153. break;
  1154. }
  1155. }
  1156. return msg;
  1157. };
  1158. /**
  1159. * Serializes the message to binary data (in protobuf wire format).
  1160. * @return {!Uint8Array}
  1161. */
  1162. proto.spine.change.Int64Change.prototype.serializeBinary = function() {
  1163. var writer = new jspb.BinaryWriter();
  1164. proto.spine.change.Int64Change.serializeBinaryToWriter(this, writer);
  1165. return writer.getResultBuffer();
  1166. };
  1167. /**
  1168. * Serializes the given message to binary data (in protobuf wire
  1169. * format), writing to the given BinaryWriter.
  1170. * @param {!proto.spine.change.Int64Change} message
  1171. * @param {!jspb.BinaryWriter} writer
  1172. * @suppress {unusedLocalVariables} f is only used for nested messages
  1173. */
  1174. proto.spine.change.Int64Change.serializeBinaryToWriter = function(message, writer) {
  1175. var f = undefined;
  1176. f = message.getPreviousValue();
  1177. if (f !== 0) {
  1178. writer.writeInt64(
  1179. 1,
  1180. f
  1181. );
  1182. }
  1183. f = message.getNewValue();
  1184. if (f !== 0) {
  1185. writer.writeInt64(
  1186. 2,
  1187. f
  1188. );
  1189. }
  1190. };
  1191. /**
  1192. * optional int64 previous_value = 1;
  1193. * @return {number}
  1194. */
  1195. proto.spine.change.Int64Change.prototype.getPreviousValue = function() {
  1196. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1197. };
  1198. /**
  1199. * @param {number} value
  1200. * @return {!proto.spine.change.Int64Change} returns this
  1201. */
  1202. proto.spine.change.Int64Change.prototype.setPreviousValue = function(value) {
  1203. return jspb.Message.setProto3IntField(this, 1, value);
  1204. };
  1205. /**
  1206. * optional int64 new_value = 2;
  1207. * @return {number}
  1208. */
  1209. proto.spine.change.Int64Change.prototype.getNewValue = function() {
  1210. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1211. };
  1212. /**
  1213. * @param {number} value
  1214. * @return {!proto.spine.change.Int64Change} returns this
  1215. */
  1216. proto.spine.change.Int64Change.prototype.setNewValue = function(value) {
  1217. return jspb.Message.setProto3IntField(this, 2, value);
  1218. };
  1219. if (jspb.Message.GENERATE_TO_OBJECT) {
  1220. /**
  1221. * Creates an object representation of this proto.
  1222. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1223. * Optional fields that are not set will be set to undefined.
  1224. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1225. * For the list of reserved names please see:
  1226. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1227. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1228. * JSPB instance for transitional soy proto support:
  1229. * http://goto/soy-param-migration
  1230. * @return {!Object}
  1231. */
  1232. proto.spine.change.UInt32Change.prototype.toObject = function(opt_includeInstance) {
  1233. return proto.spine.change.UInt32Change.toObject(opt_includeInstance, this);
  1234. };
  1235. /**
  1236. * Static version of the {@see toObject} method.
  1237. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1238. * the JSPB instance for transitional soy proto support:
  1239. * http://goto/soy-param-migration
  1240. * @param {!proto.spine.change.UInt32Change} msg The msg instance to transform.
  1241. * @return {!Object}
  1242. * @suppress {unusedLocalVariables} f is only used for nested messages
  1243. */
  1244. proto.spine.change.UInt32Change.toObject = function(includeInstance, msg) {
  1245. var f, obj = {
  1246. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1247. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1248. };
  1249. if (includeInstance) {
  1250. obj.$jspbMessageInstance = msg;
  1251. }
  1252. return obj;
  1253. };
  1254. }
  1255. /**
  1256. * Deserializes binary data (in protobuf wire format).
  1257. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1258. * @return {!proto.spine.change.UInt32Change}
  1259. */
  1260. proto.spine.change.UInt32Change.deserializeBinary = function(bytes) {
  1261. var reader = new jspb.BinaryReader(bytes);
  1262. var msg = new proto.spine.change.UInt32Change;
  1263. return proto.spine.change.UInt32Change.deserializeBinaryFromReader(msg, reader);
  1264. };
  1265. /**
  1266. * Deserializes binary data (in protobuf wire format) from the
  1267. * given reader into the given message object.
  1268. * @param {!proto.spine.change.UInt32Change} msg The message object to deserialize into.
  1269. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1270. * @return {!proto.spine.change.UInt32Change}
  1271. */
  1272. proto.spine.change.UInt32Change.deserializeBinaryFromReader = function(msg, reader) {
  1273. while (reader.nextField()) {
  1274. if (reader.isEndGroup()) {
  1275. break;
  1276. }
  1277. var field = reader.getFieldNumber();
  1278. switch (field) {
  1279. case 1:
  1280. var value = /** @type {number} */ (reader.readUint32());
  1281. msg.setPreviousValue(value);
  1282. break;
  1283. case 2:
  1284. var value = /** @type {number} */ (reader.readUint32());
  1285. msg.setNewValue(value);
  1286. break;
  1287. default:
  1288. reader.skipField();
  1289. break;
  1290. }
  1291. }
  1292. return msg;
  1293. };
  1294. /**
  1295. * Serializes the message to binary data (in protobuf wire format).
  1296. * @return {!Uint8Array}
  1297. */
  1298. proto.spine.change.UInt32Change.prototype.serializeBinary = function() {
  1299. var writer = new jspb.BinaryWriter();
  1300. proto.spine.change.UInt32Change.serializeBinaryToWriter(this, writer);
  1301. return writer.getResultBuffer();
  1302. };
  1303. /**
  1304. * Serializes the given message to binary data (in protobuf wire
  1305. * format), writing to the given BinaryWriter.
  1306. * @param {!proto.spine.change.UInt32Change} message
  1307. * @param {!jspb.BinaryWriter} writer
  1308. * @suppress {unusedLocalVariables} f is only used for nested messages
  1309. */
  1310. proto.spine.change.UInt32Change.serializeBinaryToWriter = function(message, writer) {
  1311. var f = undefined;
  1312. f = message.getPreviousValue();
  1313. if (f !== 0) {
  1314. writer.writeUint32(
  1315. 1,
  1316. f
  1317. );
  1318. }
  1319. f = message.getNewValue();
  1320. if (f !== 0) {
  1321. writer.writeUint32(
  1322. 2,
  1323. f
  1324. );
  1325. }
  1326. };
  1327. /**
  1328. * optional uint32 previous_value = 1;
  1329. * @return {number}
  1330. */
  1331. proto.spine.change.UInt32Change.prototype.getPreviousValue = function() {
  1332. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1333. };
  1334. /**
  1335. * @param {number} value
  1336. * @return {!proto.spine.change.UInt32Change} returns this
  1337. */
  1338. proto.spine.change.UInt32Change.prototype.setPreviousValue = function(value) {
  1339. return jspb.Message.setProto3IntField(this, 1, value);
  1340. };
  1341. /**
  1342. * optional uint32 new_value = 2;
  1343. * @return {number}
  1344. */
  1345. proto.spine.change.UInt32Change.prototype.getNewValue = function() {
  1346. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1347. };
  1348. /**
  1349. * @param {number} value
  1350. * @return {!proto.spine.change.UInt32Change} returns this
  1351. */
  1352. proto.spine.change.UInt32Change.prototype.setNewValue = function(value) {
  1353. return jspb.Message.setProto3IntField(this, 2, value);
  1354. };
  1355. if (jspb.Message.GENERATE_TO_OBJECT) {
  1356. /**
  1357. * Creates an object representation of this proto.
  1358. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1359. * Optional fields that are not set will be set to undefined.
  1360. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1361. * For the list of reserved names please see:
  1362. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1363. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1364. * JSPB instance for transitional soy proto support:
  1365. * http://goto/soy-param-migration
  1366. * @return {!Object}
  1367. */
  1368. proto.spine.change.UInt64Change.prototype.toObject = function(opt_includeInstance) {
  1369. return proto.spine.change.UInt64Change.toObject(opt_includeInstance, this);
  1370. };
  1371. /**
  1372. * Static version of the {@see toObject} method.
  1373. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1374. * the JSPB instance for transitional soy proto support:
  1375. * http://goto/soy-param-migration
  1376. * @param {!proto.spine.change.UInt64Change} msg The msg instance to transform.
  1377. * @return {!Object}
  1378. * @suppress {unusedLocalVariables} f is only used for nested messages
  1379. */
  1380. proto.spine.change.UInt64Change.toObject = function(includeInstance, msg) {
  1381. var f, obj = {
  1382. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1383. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1384. };
  1385. if (includeInstance) {
  1386. obj.$jspbMessageInstance = msg;
  1387. }
  1388. return obj;
  1389. };
  1390. }
  1391. /**
  1392. * Deserializes binary data (in protobuf wire format).
  1393. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1394. * @return {!proto.spine.change.UInt64Change}
  1395. */
  1396. proto.spine.change.UInt64Change.deserializeBinary = function(bytes) {
  1397. var reader = new jspb.BinaryReader(bytes);
  1398. var msg = new proto.spine.change.UInt64Change;
  1399. return proto.spine.change.UInt64Change.deserializeBinaryFromReader(msg, reader);
  1400. };
  1401. /**
  1402. * Deserializes binary data (in protobuf wire format) from the
  1403. * given reader into the given message object.
  1404. * @param {!proto.spine.change.UInt64Change} msg The message object to deserialize into.
  1405. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1406. * @return {!proto.spine.change.UInt64Change}
  1407. */
  1408. proto.spine.change.UInt64Change.deserializeBinaryFromReader = function(msg, reader) {
  1409. while (reader.nextField()) {
  1410. if (reader.isEndGroup()) {
  1411. break;
  1412. }
  1413. var field = reader.getFieldNumber();
  1414. switch (field) {
  1415. case 1:
  1416. var value = /** @type {number} */ (reader.readUint64());
  1417. msg.setPreviousValue(value);
  1418. break;
  1419. case 2:
  1420. var value = /** @type {number} */ (reader.readUint64());
  1421. msg.setNewValue(value);
  1422. break;
  1423. default:
  1424. reader.skipField();
  1425. break;
  1426. }
  1427. }
  1428. return msg;
  1429. };
  1430. /**
  1431. * Serializes the message to binary data (in protobuf wire format).
  1432. * @return {!Uint8Array}
  1433. */
  1434. proto.spine.change.UInt64Change.prototype.serializeBinary = function() {
  1435. var writer = new jspb.BinaryWriter();
  1436. proto.spine.change.UInt64Change.serializeBinaryToWriter(this, writer);
  1437. return writer.getResultBuffer();
  1438. };
  1439. /**
  1440. * Serializes the given message to binary data (in protobuf wire
  1441. * format), writing to the given BinaryWriter.
  1442. * @param {!proto.spine.change.UInt64Change} message
  1443. * @param {!jspb.BinaryWriter} writer
  1444. * @suppress {unusedLocalVariables} f is only used for nested messages
  1445. */
  1446. proto.spine.change.UInt64Change.serializeBinaryToWriter = function(message, writer) {
  1447. var f = undefined;
  1448. f = message.getPreviousValue();
  1449. if (f !== 0) {
  1450. writer.writeUint64(
  1451. 1,
  1452. f
  1453. );
  1454. }
  1455. f = message.getNewValue();
  1456. if (f !== 0) {
  1457. writer.writeUint64(
  1458. 2,
  1459. f
  1460. );
  1461. }
  1462. };
  1463. /**
  1464. * optional uint64 previous_value = 1;
  1465. * @return {number}
  1466. */
  1467. proto.spine.change.UInt64Change.prototype.getPreviousValue = function() {
  1468. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1469. };
  1470. /**
  1471. * @param {number} value
  1472. * @return {!proto.spine.change.UInt64Change} returns this
  1473. */
  1474. proto.spine.change.UInt64Change.prototype.setPreviousValue = function(value) {
  1475. return jspb.Message.setProto3IntField(this, 1, value);
  1476. };
  1477. /**
  1478. * optional uint64 new_value = 2;
  1479. * @return {number}
  1480. */
  1481. proto.spine.change.UInt64Change.prototype.getNewValue = function() {
  1482. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1483. };
  1484. /**
  1485. * @param {number} value
  1486. * @return {!proto.spine.change.UInt64Change} returns this
  1487. */
  1488. proto.spine.change.UInt64Change.prototype.setNewValue = function(value) {
  1489. return jspb.Message.setProto3IntField(this, 2, value);
  1490. };
  1491. if (jspb.Message.GENERATE_TO_OBJECT) {
  1492. /**
  1493. * Creates an object representation of this proto.
  1494. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1495. * Optional fields that are not set will be set to undefined.
  1496. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1497. * For the list of reserved names please see:
  1498. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1499. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1500. * JSPB instance for transitional soy proto support:
  1501. * http://goto/soy-param-migration
  1502. * @return {!Object}
  1503. */
  1504. proto.spine.change.SInt32Change.prototype.toObject = function(opt_includeInstance) {
  1505. return proto.spine.change.SInt32Change.toObject(opt_includeInstance, this);
  1506. };
  1507. /**
  1508. * Static version of the {@see toObject} method.
  1509. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1510. * the JSPB instance for transitional soy proto support:
  1511. * http://goto/soy-param-migration
  1512. * @param {!proto.spine.change.SInt32Change} msg The msg instance to transform.
  1513. * @return {!Object}
  1514. * @suppress {unusedLocalVariables} f is only used for nested messages
  1515. */
  1516. proto.spine.change.SInt32Change.toObject = function(includeInstance, msg) {
  1517. var f, obj = {
  1518. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1519. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1520. };
  1521. if (includeInstance) {
  1522. obj.$jspbMessageInstance = msg;
  1523. }
  1524. return obj;
  1525. };
  1526. }
  1527. /**
  1528. * Deserializes binary data (in protobuf wire format).
  1529. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1530. * @return {!proto.spine.change.SInt32Change}
  1531. */
  1532. proto.spine.change.SInt32Change.deserializeBinary = function(bytes) {
  1533. var reader = new jspb.BinaryReader(bytes);
  1534. var msg = new proto.spine.change.SInt32Change;
  1535. return proto.spine.change.SInt32Change.deserializeBinaryFromReader(msg, reader);
  1536. };
  1537. /**
  1538. * Deserializes binary data (in protobuf wire format) from the
  1539. * given reader into the given message object.
  1540. * @param {!proto.spine.change.SInt32Change} msg The message object to deserialize into.
  1541. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1542. * @return {!proto.spine.change.SInt32Change}
  1543. */
  1544. proto.spine.change.SInt32Change.deserializeBinaryFromReader = function(msg, reader) {
  1545. while (reader.nextField()) {
  1546. if (reader.isEndGroup()) {
  1547. break;
  1548. }
  1549. var field = reader.getFieldNumber();
  1550. switch (field) {
  1551. case 1:
  1552. var value = /** @type {number} */ (reader.readSint32());
  1553. msg.setPreviousValue(value);
  1554. break;
  1555. case 2:
  1556. var value = /** @type {number} */ (reader.readSint32());
  1557. msg.setNewValue(value);
  1558. break;
  1559. default:
  1560. reader.skipField();
  1561. break;
  1562. }
  1563. }
  1564. return msg;
  1565. };
  1566. /**
  1567. * Serializes the message to binary data (in protobuf wire format).
  1568. * @return {!Uint8Array}
  1569. */
  1570. proto.spine.change.SInt32Change.prototype.serializeBinary = function() {
  1571. var writer = new jspb.BinaryWriter();
  1572. proto.spine.change.SInt32Change.serializeBinaryToWriter(this, writer);
  1573. return writer.getResultBuffer();
  1574. };
  1575. /**
  1576. * Serializes the given message to binary data (in protobuf wire
  1577. * format), writing to the given BinaryWriter.
  1578. * @param {!proto.spine.change.SInt32Change} message
  1579. * @param {!jspb.BinaryWriter} writer
  1580. * @suppress {unusedLocalVariables} f is only used for nested messages
  1581. */
  1582. proto.spine.change.SInt32Change.serializeBinaryToWriter = function(message, writer) {
  1583. var f = undefined;
  1584. f = message.getPreviousValue();
  1585. if (f !== 0) {
  1586. writer.writeSint32(
  1587. 1,
  1588. f
  1589. );
  1590. }
  1591. f = message.getNewValue();
  1592. if (f !== 0) {
  1593. writer.writeSint32(
  1594. 2,
  1595. f
  1596. );
  1597. }
  1598. };
  1599. /**
  1600. * optional sint32 previous_value = 1;
  1601. * @return {number}
  1602. */
  1603. proto.spine.change.SInt32Change.prototype.getPreviousValue = function() {
  1604. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1605. };
  1606. /**
  1607. * @param {number} value
  1608. * @return {!proto.spine.change.SInt32Change} returns this
  1609. */
  1610. proto.spine.change.SInt32Change.prototype.setPreviousValue = function(value) {
  1611. return jspb.Message.setProto3IntField(this, 1, value);
  1612. };
  1613. /**
  1614. * optional sint32 new_value = 2;
  1615. * @return {number}
  1616. */
  1617. proto.spine.change.SInt32Change.prototype.getNewValue = function() {
  1618. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1619. };
  1620. /**
  1621. * @param {number} value
  1622. * @return {!proto.spine.change.SInt32Change} returns this
  1623. */
  1624. proto.spine.change.SInt32Change.prototype.setNewValue = function(value) {
  1625. return jspb.Message.setProto3IntField(this, 2, value);
  1626. };
  1627. if (jspb.Message.GENERATE_TO_OBJECT) {
  1628. /**
  1629. * Creates an object representation of this proto.
  1630. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1631. * Optional fields that are not set will be set to undefined.
  1632. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1633. * For the list of reserved names please see:
  1634. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1635. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1636. * JSPB instance for transitional soy proto support:
  1637. * http://goto/soy-param-migration
  1638. * @return {!Object}
  1639. */
  1640. proto.spine.change.SInt64Change.prototype.toObject = function(opt_includeInstance) {
  1641. return proto.spine.change.SInt64Change.toObject(opt_includeInstance, this);
  1642. };
  1643. /**
  1644. * Static version of the {@see toObject} method.
  1645. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1646. * the JSPB instance for transitional soy proto support:
  1647. * http://goto/soy-param-migration
  1648. * @param {!proto.spine.change.SInt64Change} msg The msg instance to transform.
  1649. * @return {!Object}
  1650. * @suppress {unusedLocalVariables} f is only used for nested messages
  1651. */
  1652. proto.spine.change.SInt64Change.toObject = function(includeInstance, msg) {
  1653. var f, obj = {
  1654. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1655. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1656. };
  1657. if (includeInstance) {
  1658. obj.$jspbMessageInstance = msg;
  1659. }
  1660. return obj;
  1661. };
  1662. }
  1663. /**
  1664. * Deserializes binary data (in protobuf wire format).
  1665. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1666. * @return {!proto.spine.change.SInt64Change}
  1667. */
  1668. proto.spine.change.SInt64Change.deserializeBinary = function(bytes) {
  1669. var reader = new jspb.BinaryReader(bytes);
  1670. var msg = new proto.spine.change.SInt64Change;
  1671. return proto.spine.change.SInt64Change.deserializeBinaryFromReader(msg, reader);
  1672. };
  1673. /**
  1674. * Deserializes binary data (in protobuf wire format) from the
  1675. * given reader into the given message object.
  1676. * @param {!proto.spine.change.SInt64Change} msg The message object to deserialize into.
  1677. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1678. * @return {!proto.spine.change.SInt64Change}
  1679. */
  1680. proto.spine.change.SInt64Change.deserializeBinaryFromReader = function(msg, reader) {
  1681. while (reader.nextField()) {
  1682. if (reader.isEndGroup()) {
  1683. break;
  1684. }
  1685. var field = reader.getFieldNumber();
  1686. switch (field) {
  1687. case 1:
  1688. var value = /** @type {number} */ (reader.readSint64());
  1689. msg.setPreviousValue(value);
  1690. break;
  1691. case 2:
  1692. var value = /** @type {number} */ (reader.readSint64());
  1693. msg.setNewValue(value);
  1694. break;
  1695. default:
  1696. reader.skipField();
  1697. break;
  1698. }
  1699. }
  1700. return msg;
  1701. };
  1702. /**
  1703. * Serializes the message to binary data (in protobuf wire format).
  1704. * @return {!Uint8Array}
  1705. */
  1706. proto.spine.change.SInt64Change.prototype.serializeBinary = function() {
  1707. var writer = new jspb.BinaryWriter();
  1708. proto.spine.change.SInt64Change.serializeBinaryToWriter(this, writer);
  1709. return writer.getResultBuffer();
  1710. };
  1711. /**
  1712. * Serializes the given message to binary data (in protobuf wire
  1713. * format), writing to the given BinaryWriter.
  1714. * @param {!proto.spine.change.SInt64Change} message
  1715. * @param {!jspb.BinaryWriter} writer
  1716. * @suppress {unusedLocalVariables} f is only used for nested messages
  1717. */
  1718. proto.spine.change.SInt64Change.serializeBinaryToWriter = function(message, writer) {
  1719. var f = undefined;
  1720. f = message.getPreviousValue();
  1721. if (f !== 0) {
  1722. writer.writeSint64(
  1723. 1,
  1724. f
  1725. );
  1726. }
  1727. f = message.getNewValue();
  1728. if (f !== 0) {
  1729. writer.writeSint64(
  1730. 2,
  1731. f
  1732. );
  1733. }
  1734. };
  1735. /**
  1736. * optional sint64 previous_value = 1;
  1737. * @return {number}
  1738. */
  1739. proto.spine.change.SInt64Change.prototype.getPreviousValue = function() {
  1740. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1741. };
  1742. /**
  1743. * @param {number} value
  1744. * @return {!proto.spine.change.SInt64Change} returns this
  1745. */
  1746. proto.spine.change.SInt64Change.prototype.setPreviousValue = function(value) {
  1747. return jspb.Message.setProto3IntField(this, 1, value);
  1748. };
  1749. /**
  1750. * optional sint64 new_value = 2;
  1751. * @return {number}
  1752. */
  1753. proto.spine.change.SInt64Change.prototype.getNewValue = function() {
  1754. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1755. };
  1756. /**
  1757. * @param {number} value
  1758. * @return {!proto.spine.change.SInt64Change} returns this
  1759. */
  1760. proto.spine.change.SInt64Change.prototype.setNewValue = function(value) {
  1761. return jspb.Message.setProto3IntField(this, 2, value);
  1762. };
  1763. if (jspb.Message.GENERATE_TO_OBJECT) {
  1764. /**
  1765. * Creates an object representation of this proto.
  1766. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1767. * Optional fields that are not set will be set to undefined.
  1768. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1769. * For the list of reserved names please see:
  1770. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1771. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1772. * JSPB instance for transitional soy proto support:
  1773. * http://goto/soy-param-migration
  1774. * @return {!Object}
  1775. */
  1776. proto.spine.change.Fixed32Change.prototype.toObject = function(opt_includeInstance) {
  1777. return proto.spine.change.Fixed32Change.toObject(opt_includeInstance, this);
  1778. };
  1779. /**
  1780. * Static version of the {@see toObject} method.
  1781. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1782. * the JSPB instance for transitional soy proto support:
  1783. * http://goto/soy-param-migration
  1784. * @param {!proto.spine.change.Fixed32Change} msg The msg instance to transform.
  1785. * @return {!Object}
  1786. * @suppress {unusedLocalVariables} f is only used for nested messages
  1787. */
  1788. proto.spine.change.Fixed32Change.toObject = function(includeInstance, msg) {
  1789. var f, obj = {
  1790. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1791. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1792. };
  1793. if (includeInstance) {
  1794. obj.$jspbMessageInstance = msg;
  1795. }
  1796. return obj;
  1797. };
  1798. }
  1799. /**
  1800. * Deserializes binary data (in protobuf wire format).
  1801. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1802. * @return {!proto.spine.change.Fixed32Change}
  1803. */
  1804. proto.spine.change.Fixed32Change.deserializeBinary = function(bytes) {
  1805. var reader = new jspb.BinaryReader(bytes);
  1806. var msg = new proto.spine.change.Fixed32Change;
  1807. return proto.spine.change.Fixed32Change.deserializeBinaryFromReader(msg, reader);
  1808. };
  1809. /**
  1810. * Deserializes binary data (in protobuf wire format) from the
  1811. * given reader into the given message object.
  1812. * @param {!proto.spine.change.Fixed32Change} msg The message object to deserialize into.
  1813. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1814. * @return {!proto.spine.change.Fixed32Change}
  1815. */
  1816. proto.spine.change.Fixed32Change.deserializeBinaryFromReader = function(msg, reader) {
  1817. while (reader.nextField()) {
  1818. if (reader.isEndGroup()) {
  1819. break;
  1820. }
  1821. var field = reader.getFieldNumber();
  1822. switch (field) {
  1823. case 1:
  1824. var value = /** @type {number} */ (reader.readFixed32());
  1825. msg.setPreviousValue(value);
  1826. break;
  1827. case 2:
  1828. var value = /** @type {number} */ (reader.readFixed32());
  1829. msg.setNewValue(value);
  1830. break;
  1831. default:
  1832. reader.skipField();
  1833. break;
  1834. }
  1835. }
  1836. return msg;
  1837. };
  1838. /**
  1839. * Serializes the message to binary data (in protobuf wire format).
  1840. * @return {!Uint8Array}
  1841. */
  1842. proto.spine.change.Fixed32Change.prototype.serializeBinary = function() {
  1843. var writer = new jspb.BinaryWriter();
  1844. proto.spine.change.Fixed32Change.serializeBinaryToWriter(this, writer);
  1845. return writer.getResultBuffer();
  1846. };
  1847. /**
  1848. * Serializes the given message to binary data (in protobuf wire
  1849. * format), writing to the given BinaryWriter.
  1850. * @param {!proto.spine.change.Fixed32Change} message
  1851. * @param {!jspb.BinaryWriter} writer
  1852. * @suppress {unusedLocalVariables} f is only used for nested messages
  1853. */
  1854. proto.spine.change.Fixed32Change.serializeBinaryToWriter = function(message, writer) {
  1855. var f = undefined;
  1856. f = message.getPreviousValue();
  1857. if (f !== 0) {
  1858. writer.writeFixed32(
  1859. 1,
  1860. f
  1861. );
  1862. }
  1863. f = message.getNewValue();
  1864. if (f !== 0) {
  1865. writer.writeFixed32(
  1866. 2,
  1867. f
  1868. );
  1869. }
  1870. };
  1871. /**
  1872. * optional fixed32 previous_value = 1;
  1873. * @return {number}
  1874. */
  1875. proto.spine.change.Fixed32Change.prototype.getPreviousValue = function() {
  1876. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1877. };
  1878. /**
  1879. * @param {number} value
  1880. * @return {!proto.spine.change.Fixed32Change} returns this
  1881. */
  1882. proto.spine.change.Fixed32Change.prototype.setPreviousValue = function(value) {
  1883. return jspb.Message.setProto3IntField(this, 1, value);
  1884. };
  1885. /**
  1886. * optional fixed32 new_value = 2;
  1887. * @return {number}
  1888. */
  1889. proto.spine.change.Fixed32Change.prototype.getNewValue = function() {
  1890. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1891. };
  1892. /**
  1893. * @param {number} value
  1894. * @return {!proto.spine.change.Fixed32Change} returns this
  1895. */
  1896. proto.spine.change.Fixed32Change.prototype.setNewValue = function(value) {
  1897. return jspb.Message.setProto3IntField(this, 2, value);
  1898. };
  1899. if (jspb.Message.GENERATE_TO_OBJECT) {
  1900. /**
  1901. * Creates an object representation of this proto.
  1902. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1903. * Optional fields that are not set will be set to undefined.
  1904. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1905. * For the list of reserved names please see:
  1906. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1907. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1908. * JSPB instance for transitional soy proto support:
  1909. * http://goto/soy-param-migration
  1910. * @return {!Object}
  1911. */
  1912. proto.spine.change.Fixed64Change.prototype.toObject = function(opt_includeInstance) {
  1913. return proto.spine.change.Fixed64Change.toObject(opt_includeInstance, this);
  1914. };
  1915. /**
  1916. * Static version of the {@see toObject} method.
  1917. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1918. * the JSPB instance for transitional soy proto support:
  1919. * http://goto/soy-param-migration
  1920. * @param {!proto.spine.change.Fixed64Change} msg The msg instance to transform.
  1921. * @return {!Object}
  1922. * @suppress {unusedLocalVariables} f is only used for nested messages
  1923. */
  1924. proto.spine.change.Fixed64Change.toObject = function(includeInstance, msg) {
  1925. var f, obj = {
  1926. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1927. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  1928. };
  1929. if (includeInstance) {
  1930. obj.$jspbMessageInstance = msg;
  1931. }
  1932. return obj;
  1933. };
  1934. }
  1935. /**
  1936. * Deserializes binary data (in protobuf wire format).
  1937. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1938. * @return {!proto.spine.change.Fixed64Change}
  1939. */
  1940. proto.spine.change.Fixed64Change.deserializeBinary = function(bytes) {
  1941. var reader = new jspb.BinaryReader(bytes);
  1942. var msg = new proto.spine.change.Fixed64Change;
  1943. return proto.spine.change.Fixed64Change.deserializeBinaryFromReader(msg, reader);
  1944. };
  1945. /**
  1946. * Deserializes binary data (in protobuf wire format) from the
  1947. * given reader into the given message object.
  1948. * @param {!proto.spine.change.Fixed64Change} msg The message object to deserialize into.
  1949. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1950. * @return {!proto.spine.change.Fixed64Change}
  1951. */
  1952. proto.spine.change.Fixed64Change.deserializeBinaryFromReader = function(msg, reader) {
  1953. while (reader.nextField()) {
  1954. if (reader.isEndGroup()) {
  1955. break;
  1956. }
  1957. var field = reader.getFieldNumber();
  1958. switch (field) {
  1959. case 1:
  1960. var value = /** @type {number} */ (reader.readFixed64());
  1961. msg.setPreviousValue(value);
  1962. break;
  1963. case 2:
  1964. var value = /** @type {number} */ (reader.readFixed64());
  1965. msg.setNewValue(value);
  1966. break;
  1967. default:
  1968. reader.skipField();
  1969. break;
  1970. }
  1971. }
  1972. return msg;
  1973. };
  1974. /**
  1975. * Serializes the message to binary data (in protobuf wire format).
  1976. * @return {!Uint8Array}
  1977. */
  1978. proto.spine.change.Fixed64Change.prototype.serializeBinary = function() {
  1979. var writer = new jspb.BinaryWriter();
  1980. proto.spine.change.Fixed64Change.serializeBinaryToWriter(this, writer);
  1981. return writer.getResultBuffer();
  1982. };
  1983. /**
  1984. * Serializes the given message to binary data (in protobuf wire
  1985. * format), writing to the given BinaryWriter.
  1986. * @param {!proto.spine.change.Fixed64Change} message
  1987. * @param {!jspb.BinaryWriter} writer
  1988. * @suppress {unusedLocalVariables} f is only used for nested messages
  1989. */
  1990. proto.spine.change.Fixed64Change.serializeBinaryToWriter = function(message, writer) {
  1991. var f = undefined;
  1992. f = message.getPreviousValue();
  1993. if (f !== 0) {
  1994. writer.writeFixed64(
  1995. 1,
  1996. f
  1997. );
  1998. }
  1999. f = message.getNewValue();
  2000. if (f !== 0) {
  2001. writer.writeFixed64(
  2002. 2,
  2003. f
  2004. );
  2005. }
  2006. };
  2007. /**
  2008. * optional fixed64 previous_value = 1;
  2009. * @return {number}
  2010. */
  2011. proto.spine.change.Fixed64Change.prototype.getPreviousValue = function() {
  2012. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2013. };
  2014. /**
  2015. * @param {number} value
  2016. * @return {!proto.spine.change.Fixed64Change} returns this
  2017. */
  2018. proto.spine.change.Fixed64Change.prototype.setPreviousValue = function(value) {
  2019. return jspb.Message.setProto3IntField(this, 1, value);
  2020. };
  2021. /**
  2022. * optional fixed64 new_value = 2;
  2023. * @return {number}
  2024. */
  2025. proto.spine.change.Fixed64Change.prototype.getNewValue = function() {
  2026. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2027. };
  2028. /**
  2029. * @param {number} value
  2030. * @return {!proto.spine.change.Fixed64Change} returns this
  2031. */
  2032. proto.spine.change.Fixed64Change.prototype.setNewValue = function(value) {
  2033. return jspb.Message.setProto3IntField(this, 2, value);
  2034. };
  2035. if (jspb.Message.GENERATE_TO_OBJECT) {
  2036. /**
  2037. * Creates an object representation of this proto.
  2038. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2039. * Optional fields that are not set will be set to undefined.
  2040. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2041. * For the list of reserved names please see:
  2042. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2043. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2044. * JSPB instance for transitional soy proto support:
  2045. * http://goto/soy-param-migration
  2046. * @return {!Object}
  2047. */
  2048. proto.spine.change.Sfixed32Change.prototype.toObject = function(opt_includeInstance) {
  2049. return proto.spine.change.Sfixed32Change.toObject(opt_includeInstance, this);
  2050. };
  2051. /**
  2052. * Static version of the {@see toObject} method.
  2053. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2054. * the JSPB instance for transitional soy proto support:
  2055. * http://goto/soy-param-migration
  2056. * @param {!proto.spine.change.Sfixed32Change} msg The msg instance to transform.
  2057. * @return {!Object}
  2058. * @suppress {unusedLocalVariables} f is only used for nested messages
  2059. */
  2060. proto.spine.change.Sfixed32Change.toObject = function(includeInstance, msg) {
  2061. var f, obj = {
  2062. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2063. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  2064. };
  2065. if (includeInstance) {
  2066. obj.$jspbMessageInstance = msg;
  2067. }
  2068. return obj;
  2069. };
  2070. }
  2071. /**
  2072. * Deserializes binary data (in protobuf wire format).
  2073. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2074. * @return {!proto.spine.change.Sfixed32Change}
  2075. */
  2076. proto.spine.change.Sfixed32Change.deserializeBinary = function(bytes) {
  2077. var reader = new jspb.BinaryReader(bytes);
  2078. var msg = new proto.spine.change.Sfixed32Change;
  2079. return proto.spine.change.Sfixed32Change.deserializeBinaryFromReader(msg, reader);
  2080. };
  2081. /**
  2082. * Deserializes binary data (in protobuf wire format) from the
  2083. * given reader into the given message object.
  2084. * @param {!proto.spine.change.Sfixed32Change} msg The message object to deserialize into.
  2085. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2086. * @return {!proto.spine.change.Sfixed32Change}
  2087. */
  2088. proto.spine.change.Sfixed32Change.deserializeBinaryFromReader = function(msg, reader) {
  2089. while (reader.nextField()) {
  2090. if (reader.isEndGroup()) {
  2091. break;
  2092. }
  2093. var field = reader.getFieldNumber();
  2094. switch (field) {
  2095. case 1:
  2096. var value = /** @type {number} */ (reader.readSfixed32());
  2097. msg.setPreviousValue(value);
  2098. break;
  2099. case 2:
  2100. var value = /** @type {number} */ (reader.readSfixed32());
  2101. msg.setNewValue(value);
  2102. break;
  2103. default:
  2104. reader.skipField();
  2105. break;
  2106. }
  2107. }
  2108. return msg;
  2109. };
  2110. /**
  2111. * Serializes the message to binary data (in protobuf wire format).
  2112. * @return {!Uint8Array}
  2113. */
  2114. proto.spine.change.Sfixed32Change.prototype.serializeBinary = function() {
  2115. var writer = new jspb.BinaryWriter();
  2116. proto.spine.change.Sfixed32Change.serializeBinaryToWriter(this, writer);
  2117. return writer.getResultBuffer();
  2118. };
  2119. /**
  2120. * Serializes the given message to binary data (in protobuf wire
  2121. * format), writing to the given BinaryWriter.
  2122. * @param {!proto.spine.change.Sfixed32Change} message
  2123. * @param {!jspb.BinaryWriter} writer
  2124. * @suppress {unusedLocalVariables} f is only used for nested messages
  2125. */
  2126. proto.spine.change.Sfixed32Change.serializeBinaryToWriter = function(message, writer) {
  2127. var f = undefined;
  2128. f = message.getPreviousValue();
  2129. if (f !== 0) {
  2130. writer.writeSfixed32(
  2131. 1,
  2132. f
  2133. );
  2134. }
  2135. f = message.getNewValue();
  2136. if (f !== 0) {
  2137. writer.writeSfixed32(
  2138. 2,
  2139. f
  2140. );
  2141. }
  2142. };
  2143. /**
  2144. * optional sfixed32 previous_value = 1;
  2145. * @return {number}
  2146. */
  2147. proto.spine.change.Sfixed32Change.prototype.getPreviousValue = function() {
  2148. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2149. };
  2150. /**
  2151. * @param {number} value
  2152. * @return {!proto.spine.change.Sfixed32Change} returns this
  2153. */
  2154. proto.spine.change.Sfixed32Change.prototype.setPreviousValue = function(value) {
  2155. return jspb.Message.setProto3IntField(this, 1, value);
  2156. };
  2157. /**
  2158. * optional sfixed32 new_value = 2;
  2159. * @return {number}
  2160. */
  2161. proto.spine.change.Sfixed32Change.prototype.getNewValue = function() {
  2162. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2163. };
  2164. /**
  2165. * @param {number} value
  2166. * @return {!proto.spine.change.Sfixed32Change} returns this
  2167. */
  2168. proto.spine.change.Sfixed32Change.prototype.setNewValue = function(value) {
  2169. return jspb.Message.setProto3IntField(this, 2, value);
  2170. };
  2171. if (jspb.Message.GENERATE_TO_OBJECT) {
  2172. /**
  2173. * Creates an object representation of this proto.
  2174. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2175. * Optional fields that are not set will be set to undefined.
  2176. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2177. * For the list of reserved names please see:
  2178. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2179. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2180. * JSPB instance for transitional soy proto support:
  2181. * http://goto/soy-param-migration
  2182. * @return {!Object}
  2183. */
  2184. proto.spine.change.Sfixed64Change.prototype.toObject = function(opt_includeInstance) {
  2185. return proto.spine.change.Sfixed64Change.toObject(opt_includeInstance, this);
  2186. };
  2187. /**
  2188. * Static version of the {@see toObject} method.
  2189. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2190. * the JSPB instance for transitional soy proto support:
  2191. * http://goto/soy-param-migration
  2192. * @param {!proto.spine.change.Sfixed64Change} msg The msg instance to transform.
  2193. * @return {!Object}
  2194. * @suppress {unusedLocalVariables} f is only used for nested messages
  2195. */
  2196. proto.spine.change.Sfixed64Change.toObject = function(includeInstance, msg) {
  2197. var f, obj = {
  2198. previousValue: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2199. newValue: jspb.Message.getFieldWithDefault(msg, 2, 0)
  2200. };
  2201. if (includeInstance) {
  2202. obj.$jspbMessageInstance = msg;
  2203. }
  2204. return obj;
  2205. };
  2206. }
  2207. /**
  2208. * Deserializes binary data (in protobuf wire format).
  2209. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2210. * @return {!proto.spine.change.Sfixed64Change}
  2211. */
  2212. proto.spine.change.Sfixed64Change.deserializeBinary = function(bytes) {
  2213. var reader = new jspb.BinaryReader(bytes);
  2214. var msg = new proto.spine.change.Sfixed64Change;
  2215. return proto.spine.change.Sfixed64Change.deserializeBinaryFromReader(msg, reader);
  2216. };
  2217. /**
  2218. * Deserializes binary data (in protobuf wire format) from the
  2219. * given reader into the given message object.
  2220. * @param {!proto.spine.change.Sfixed64Change} msg The message object to deserialize into.
  2221. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2222. * @return {!proto.spine.change.Sfixed64Change}
  2223. */
  2224. proto.spine.change.Sfixed64Change.deserializeBinaryFromReader = function(msg, reader) {
  2225. while (reader.nextField()) {
  2226. if (reader.isEndGroup()) {
  2227. break;
  2228. }
  2229. var field = reader.getFieldNumber();
  2230. switch (field) {
  2231. case 1:
  2232. var value = /** @type {number} */ (reader.readSfixed64());
  2233. msg.setPreviousValue(value);
  2234. break;
  2235. case 2:
  2236. var value = /** @type {number} */ (reader.readSfixed64());
  2237. msg.setNewValue(value);
  2238. break;
  2239. default:
  2240. reader.skipField();
  2241. break;
  2242. }
  2243. }
  2244. return msg;
  2245. };
  2246. /**
  2247. * Serializes the message to binary data (in protobuf wire format).
  2248. * @return {!Uint8Array}
  2249. */
  2250. proto.spine.change.Sfixed64Change.prototype.serializeBinary = function() {
  2251. var writer = new jspb.BinaryWriter();
  2252. proto.spine.change.Sfixed64Change.serializeBinaryToWriter(this, writer);
  2253. return writer.getResultBuffer();
  2254. };
  2255. /**
  2256. * Serializes the given message to binary data (in protobuf wire
  2257. * format), writing to the given BinaryWriter.
  2258. * @param {!proto.spine.change.Sfixed64Change} message
  2259. * @param {!jspb.BinaryWriter} writer
  2260. * @suppress {unusedLocalVariables} f is only used for nested messages
  2261. */
  2262. proto.spine.change.Sfixed64Change.serializeBinaryToWriter = function(message, writer) {
  2263. var f = undefined;
  2264. f = message.getPreviousValue();
  2265. if (f !== 0) {
  2266. writer.writeSfixed64(
  2267. 1,
  2268. f
  2269. );
  2270. }
  2271. f = message.getNewValue();
  2272. if (f !== 0) {
  2273. writer.writeSfixed64(
  2274. 2,
  2275. f
  2276. );
  2277. }
  2278. };
  2279. /**
  2280. * optional sfixed64 previous_value = 1;
  2281. * @return {number}
  2282. */
  2283. proto.spine.change.Sfixed64Change.prototype.getPreviousValue = function() {
  2284. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2285. };
  2286. /**
  2287. * @param {number} value
  2288. * @return {!proto.spine.change.Sfixed64Change} returns this
  2289. */
  2290. proto.spine.change.Sfixed64Change.prototype.setPreviousValue = function(value) {
  2291. return jspb.Message.setProto3IntField(this, 1, value);
  2292. };
  2293. /**
  2294. * optional sfixed64 new_value = 2;
  2295. * @return {number}
  2296. */
  2297. proto.spine.change.Sfixed64Change.prototype.getNewValue = function() {
  2298. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2299. };
  2300. /**
  2301. * @param {number} value
  2302. * @return {!proto.spine.change.Sfixed64Change} returns this
  2303. */
  2304. proto.spine.change.Sfixed64Change.prototype.setNewValue = function(value) {
  2305. return jspb.Message.setProto3IntField(this, 2, value);
  2306. };
  2307. if (jspb.Message.GENERATE_TO_OBJECT) {
  2308. /**
  2309. * Creates an object representation of this proto.
  2310. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2311. * Optional fields that are not set will be set to undefined.
  2312. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2313. * For the list of reserved names please see:
  2314. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2315. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2316. * JSPB instance for transitional soy proto support:
  2317. * http://goto/soy-param-migration
  2318. * @return {!Object}
  2319. */
  2320. proto.spine.change.BooleanChange.prototype.toObject = function(opt_includeInstance) {
  2321. return proto.spine.change.BooleanChange.toObject(opt_includeInstance, this);
  2322. };
  2323. /**
  2324. * Static version of the {@see toObject} method.
  2325. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2326. * the JSPB instance for transitional soy proto support:
  2327. * http://goto/soy-param-migration
  2328. * @param {!proto.spine.change.BooleanChange} msg The msg instance to transform.
  2329. * @return {!Object}
  2330. * @suppress {unusedLocalVariables} f is only used for nested messages
  2331. */
  2332. proto.spine.change.BooleanChange.toObject = function(includeInstance, msg) {
  2333. var f, obj = {
  2334. previousValue: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  2335. newValue: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
  2336. };
  2337. if (includeInstance) {
  2338. obj.$jspbMessageInstance = msg;
  2339. }
  2340. return obj;
  2341. };
  2342. }
  2343. /**
  2344. * Deserializes binary data (in protobuf wire format).
  2345. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2346. * @return {!proto.spine.change.BooleanChange}
  2347. */
  2348. proto.spine.change.BooleanChange.deserializeBinary = function(bytes) {
  2349. var reader = new jspb.BinaryReader(bytes);
  2350. var msg = new proto.spine.change.BooleanChange;
  2351. return proto.spine.change.BooleanChange.deserializeBinaryFromReader(msg, reader);
  2352. };
  2353. /**
  2354. * Deserializes binary data (in protobuf wire format) from the
  2355. * given reader into the given message object.
  2356. * @param {!proto.spine.change.BooleanChange} msg The message object to deserialize into.
  2357. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2358. * @return {!proto.spine.change.BooleanChange}
  2359. */
  2360. proto.spine.change.BooleanChange.deserializeBinaryFromReader = function(msg, reader) {
  2361. while (reader.nextField()) {
  2362. if (reader.isEndGroup()) {
  2363. break;
  2364. }
  2365. var field = reader.getFieldNumber();
  2366. switch (field) {
  2367. case 1:
  2368. var value = /** @type {boolean} */ (reader.readBool());
  2369. msg.setPreviousValue(value);
  2370. break;
  2371. case 2:
  2372. var value = /** @type {boolean} */ (reader.readBool());
  2373. msg.setNewValue(value);
  2374. break;
  2375. default:
  2376. reader.skipField();
  2377. break;
  2378. }
  2379. }
  2380. return msg;
  2381. };
  2382. /**
  2383. * Serializes the message to binary data (in protobuf wire format).
  2384. * @return {!Uint8Array}
  2385. */
  2386. proto.spine.change.BooleanChange.prototype.serializeBinary = function() {
  2387. var writer = new jspb.BinaryWriter();
  2388. proto.spine.change.BooleanChange.serializeBinaryToWriter(this, writer);
  2389. return writer.getResultBuffer();
  2390. };
  2391. /**
  2392. * Serializes the given message to binary data (in protobuf wire
  2393. * format), writing to the given BinaryWriter.
  2394. * @param {!proto.spine.change.BooleanChange} message
  2395. * @param {!jspb.BinaryWriter} writer
  2396. * @suppress {unusedLocalVariables} f is only used for nested messages
  2397. */
  2398. proto.spine.change.BooleanChange.serializeBinaryToWriter = function(message, writer) {
  2399. var f = undefined;
  2400. f = message.getPreviousValue();
  2401. if (f) {
  2402. writer.writeBool(
  2403. 1,
  2404. f
  2405. );
  2406. }
  2407. f = message.getNewValue();
  2408. if (f) {
  2409. writer.writeBool(
  2410. 2,
  2411. f
  2412. );
  2413. }
  2414. };
  2415. /**
  2416. * optional bool previous_value = 1;
  2417. * @return {boolean}
  2418. */
  2419. proto.spine.change.BooleanChange.prototype.getPreviousValue = function() {
  2420. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  2421. };
  2422. /**
  2423. * @param {boolean} value
  2424. * @return {!proto.spine.change.BooleanChange} returns this
  2425. */
  2426. proto.spine.change.BooleanChange.prototype.setPreviousValue = function(value) {
  2427. return jspb.Message.setProto3BooleanField(this, 1, value);
  2428. };
  2429. /**
  2430. * optional bool new_value = 2;
  2431. * @return {boolean}
  2432. */
  2433. proto.spine.change.BooleanChange.prototype.getNewValue = function() {
  2434. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  2435. };
  2436. /**
  2437. * @param {boolean} value
  2438. * @return {!proto.spine.change.BooleanChange} returns this
  2439. */
  2440. proto.spine.change.BooleanChange.prototype.setNewValue = function(value) {
  2441. return jspb.Message.setProto3BooleanField(this, 2, value);
  2442. };
  2443. if (jspb.Message.GENERATE_TO_OBJECT) {
  2444. /**
  2445. * Creates an object representation of this proto.
  2446. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2447. * Optional fields that are not set will be set to undefined.
  2448. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2449. * For the list of reserved names please see:
  2450. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2451. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2452. * JSPB instance for transitional soy proto support:
  2453. * http://goto/soy-param-migration
  2454. * @return {!Object}
  2455. */
  2456. proto.spine.change.BytesChange.prototype.toObject = function(opt_includeInstance) {
  2457. return proto.spine.change.BytesChange.toObject(opt_includeInstance, this);
  2458. };
  2459. /**
  2460. * Static version of the {@see toObject} method.
  2461. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2462. * the JSPB instance for transitional soy proto support:
  2463. * http://goto/soy-param-migration
  2464. * @param {!proto.spine.change.BytesChange} msg The msg instance to transform.
  2465. * @return {!Object}
  2466. * @suppress {unusedLocalVariables} f is only used for nested messages
  2467. */
  2468. proto.spine.change.BytesChange.toObject = function(includeInstance, msg) {
  2469. var f, obj = {
  2470. previousValue: msg.getPreviousValue_asB64(),
  2471. newValue: msg.getNewValue_asB64()
  2472. };
  2473. if (includeInstance) {
  2474. obj.$jspbMessageInstance = msg;
  2475. }
  2476. return obj;
  2477. };
  2478. }
  2479. /**
  2480. * Deserializes binary data (in protobuf wire format).
  2481. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2482. * @return {!proto.spine.change.BytesChange}
  2483. */
  2484. proto.spine.change.BytesChange.deserializeBinary = function(bytes) {
  2485. var reader = new jspb.BinaryReader(bytes);
  2486. var msg = new proto.spine.change.BytesChange;
  2487. return proto.spine.change.BytesChange.deserializeBinaryFromReader(msg, reader);
  2488. };
  2489. /**
  2490. * Deserializes binary data (in protobuf wire format) from the
  2491. * given reader into the given message object.
  2492. * @param {!proto.spine.change.BytesChange} msg The message object to deserialize into.
  2493. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2494. * @return {!proto.spine.change.BytesChange}
  2495. */
  2496. proto.spine.change.BytesChange.deserializeBinaryFromReader = function(msg, reader) {
  2497. while (reader.nextField()) {
  2498. if (reader.isEndGroup()) {
  2499. break;
  2500. }
  2501. var field = reader.getFieldNumber();
  2502. switch (field) {
  2503. case 1:
  2504. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2505. msg.setPreviousValue(value);
  2506. break;
  2507. case 2:
  2508. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2509. msg.setNewValue(value);
  2510. break;
  2511. default:
  2512. reader.skipField();
  2513. break;
  2514. }
  2515. }
  2516. return msg;
  2517. };
  2518. /**
  2519. * Serializes the message to binary data (in protobuf wire format).
  2520. * @return {!Uint8Array}
  2521. */
  2522. proto.spine.change.BytesChange.prototype.serializeBinary = function() {
  2523. var writer = new jspb.BinaryWriter();
  2524. proto.spine.change.BytesChange.serializeBinaryToWriter(this, writer);
  2525. return writer.getResultBuffer();
  2526. };
  2527. /**
  2528. * Serializes the given message to binary data (in protobuf wire
  2529. * format), writing to the given BinaryWriter.
  2530. * @param {!proto.spine.change.BytesChange} message
  2531. * @param {!jspb.BinaryWriter} writer
  2532. * @suppress {unusedLocalVariables} f is only used for nested messages
  2533. */
  2534. proto.spine.change.BytesChange.serializeBinaryToWriter = function(message, writer) {
  2535. var f = undefined;
  2536. f = message.getPreviousValue_asU8();
  2537. if (f.length > 0) {
  2538. writer.writeBytes(
  2539. 1,
  2540. f
  2541. );
  2542. }
  2543. f = message.getNewValue_asU8();
  2544. if (f.length > 0) {
  2545. writer.writeBytes(
  2546. 2,
  2547. f
  2548. );
  2549. }
  2550. };
  2551. /**
  2552. * optional bytes previous_value = 1;
  2553. * @return {string}
  2554. */
  2555. proto.spine.change.BytesChange.prototype.getPreviousValue = function() {
  2556. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2557. };
  2558. /**
  2559. * optional bytes previous_value = 1;
  2560. * This is a type-conversion wrapper around `getPreviousValue()`
  2561. * @return {string}
  2562. */
  2563. proto.spine.change.BytesChange.prototype.getPreviousValue_asB64 = function() {
  2564. return /** @type {string} */ (jspb.Message.bytesAsB64(
  2565. this.getPreviousValue()));
  2566. };
  2567. /**
  2568. * optional bytes previous_value = 1;
  2569. * Note that Uint8Array is not supported on all browsers.
  2570. * @see http://caniuse.com/Uint8Array
  2571. * This is a type-conversion wrapper around `getPreviousValue()`
  2572. * @return {!Uint8Array}
  2573. */
  2574. proto.spine.change.BytesChange.prototype.getPreviousValue_asU8 = function() {
  2575. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2576. this.getPreviousValue()));
  2577. };
  2578. /**
  2579. * @param {!(string|Uint8Array)} value
  2580. * @return {!proto.spine.change.BytesChange} returns this
  2581. */
  2582. proto.spine.change.BytesChange.prototype.setPreviousValue = function(value) {
  2583. return jspb.Message.setProto3BytesField(this, 1, value);
  2584. };
  2585. /**
  2586. * optional bytes new_value = 2;
  2587. * @return {string}
  2588. */
  2589. proto.spine.change.BytesChange.prototype.getNewValue = function() {
  2590. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2591. };
  2592. /**
  2593. * optional bytes new_value = 2;
  2594. * This is a type-conversion wrapper around `getNewValue()`
  2595. * @return {string}
  2596. */
  2597. proto.spine.change.BytesChange.prototype.getNewValue_asB64 = function() {
  2598. return /** @type {string} */ (jspb.Message.bytesAsB64(
  2599. this.getNewValue()));
  2600. };
  2601. /**
  2602. * optional bytes new_value = 2;
  2603. * Note that Uint8Array is not supported on all browsers.
  2604. * @see http://caniuse.com/Uint8Array
  2605. * This is a type-conversion wrapper around `getNewValue()`
  2606. * @return {!Uint8Array}
  2607. */
  2608. proto.spine.change.BytesChange.prototype.getNewValue_asU8 = function() {
  2609. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2610. this.getNewValue()));
  2611. };
  2612. /**
  2613. * @param {!(string|Uint8Array)} value
  2614. * @return {!proto.spine.change.BytesChange} returns this
  2615. */
  2616. proto.spine.change.BytesChange.prototype.setNewValue = function(value) {
  2617. return jspb.Message.setProto3BytesField(this, 2, value);
  2618. };
  2619. goog.object.extend(exports, proto.spine.change);
  2620. // Generated by Spine ProtoJs Plugin
  2621. let ObjectParser = require('../../../client/parser/object-parser.js').default;
  2622. let TypeParsers = require('../../../client/parser/type-parsers.js').default;
  2623. proto.spine.change.Int64Change.Parser = function() {
  2624. ObjectParser.call(this);
  2625. };
  2626. proto.spine.change.Int64Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2627. proto.spine.change.Int64Change.Parser.prototype.constructor = proto.spine.change.Int64Change.Parser;
  2628. proto.spine.change.Int64Change.Parser.prototype.fromObject = function(obj) {
  2629. if (obj === null) {
  2630. return null;
  2631. }
  2632. let msg = new proto.spine.change.Int64Change();
  2633. if (obj.previousValue !== undefined) {
  2634. if (obj.previousValue !== null) {
  2635. let value = parseInt(obj.previousValue);
  2636. msg.setPreviousValue(value);
  2637. }
  2638. }
  2639. if (obj.newValue !== undefined) {
  2640. if (obj.newValue !== null) {
  2641. let value = parseInt(obj.newValue);
  2642. msg.setNewValue(value);
  2643. }
  2644. }
  2645. return msg;
  2646. };
  2647. proto.spine.change.TimestampChange.Parser = function() {
  2648. ObjectParser.call(this);
  2649. };
  2650. proto.spine.change.TimestampChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2651. proto.spine.change.TimestampChange.Parser.prototype.constructor = proto.spine.change.TimestampChange.Parser;
  2652. proto.spine.change.TimestampChange.Parser.prototype.fromObject = function(obj) {
  2653. if (obj === null) {
  2654. return null;
  2655. }
  2656. let msg = new proto.spine.change.TimestampChange();
  2657. if (obj.previousValue !== undefined) {
  2658. if (obj.previousValue === null) {
  2659. msg.setPreviousValue(null);
  2660. } else {
  2661. let value = TypeParsers.parserFor('type.googleapis.com/google.protobuf.Timestamp').fromObject(obj.previousValue);
  2662. msg.setPreviousValue(value);
  2663. }
  2664. }
  2665. if (obj.newValue !== undefined) {
  2666. if (obj.newValue === null) {
  2667. msg.setNewValue(null);
  2668. } else {
  2669. let value = TypeParsers.parserFor('type.googleapis.com/google.protobuf.Timestamp').fromObject(obj.newValue);
  2670. msg.setNewValue(value);
  2671. }
  2672. }
  2673. return msg;
  2674. };
  2675. proto.spine.change.Fixed32Change.Parser = function() {
  2676. ObjectParser.call(this);
  2677. };
  2678. proto.spine.change.Fixed32Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2679. proto.spine.change.Fixed32Change.Parser.prototype.constructor = proto.spine.change.Fixed32Change.Parser;
  2680. proto.spine.change.Fixed32Change.Parser.prototype.fromObject = function(obj) {
  2681. if (obj === null) {
  2682. return null;
  2683. }
  2684. let msg = new proto.spine.change.Fixed32Change();
  2685. if (obj.previousValue !== undefined) {
  2686. if (obj.previousValue !== null) {
  2687. let value = obj.previousValue;
  2688. msg.setPreviousValue(value);
  2689. }
  2690. }
  2691. if (obj.newValue !== undefined) {
  2692. if (obj.newValue !== null) {
  2693. let value = obj.newValue;
  2694. msg.setNewValue(value);
  2695. }
  2696. }
  2697. return msg;
  2698. };
  2699. proto.spine.change.Sfixed64Change.Parser = function() {
  2700. ObjectParser.call(this);
  2701. };
  2702. proto.spine.change.Sfixed64Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2703. proto.spine.change.Sfixed64Change.Parser.prototype.constructor = proto.spine.change.Sfixed64Change.Parser;
  2704. proto.spine.change.Sfixed64Change.Parser.prototype.fromObject = function(obj) {
  2705. if (obj === null) {
  2706. return null;
  2707. }
  2708. let msg = new proto.spine.change.Sfixed64Change();
  2709. if (obj.previousValue !== undefined) {
  2710. if (obj.previousValue !== null) {
  2711. let value = parseInt(obj.previousValue);
  2712. msg.setPreviousValue(value);
  2713. }
  2714. }
  2715. if (obj.newValue !== undefined) {
  2716. if (obj.newValue !== null) {
  2717. let value = parseInt(obj.newValue);
  2718. msg.setNewValue(value);
  2719. }
  2720. }
  2721. return msg;
  2722. };
  2723. proto.spine.change.FloatChange.Parser = function() {
  2724. ObjectParser.call(this);
  2725. };
  2726. proto.spine.change.FloatChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2727. proto.spine.change.FloatChange.Parser.prototype.constructor = proto.spine.change.FloatChange.Parser;
  2728. proto.spine.change.FloatChange.Parser.prototype.fromObject = function(obj) {
  2729. if (obj === null) {
  2730. return null;
  2731. }
  2732. let msg = new proto.spine.change.FloatChange();
  2733. if (obj.previousValue !== undefined) {
  2734. if (obj.previousValue !== null) {
  2735. let value = parseFloat(obj.previousValue);
  2736. msg.setPreviousValue(value);
  2737. }
  2738. }
  2739. if (obj.newValue !== undefined) {
  2740. if (obj.newValue !== null) {
  2741. let value = parseFloat(obj.newValue);
  2742. msg.setNewValue(value);
  2743. }
  2744. }
  2745. return msg;
  2746. };
  2747. proto.spine.change.UInt32Change.Parser = function() {
  2748. ObjectParser.call(this);
  2749. };
  2750. proto.spine.change.UInt32Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2751. proto.spine.change.UInt32Change.Parser.prototype.constructor = proto.spine.change.UInt32Change.Parser;
  2752. proto.spine.change.UInt32Change.Parser.prototype.fromObject = function(obj) {
  2753. if (obj === null) {
  2754. return null;
  2755. }
  2756. let msg = new proto.spine.change.UInt32Change();
  2757. if (obj.previousValue !== undefined) {
  2758. if (obj.previousValue !== null) {
  2759. let value = obj.previousValue;
  2760. msg.setPreviousValue(value);
  2761. }
  2762. }
  2763. if (obj.newValue !== undefined) {
  2764. if (obj.newValue !== null) {
  2765. let value = obj.newValue;
  2766. msg.setNewValue(value);
  2767. }
  2768. }
  2769. return msg;
  2770. };
  2771. proto.spine.change.SInt32Change.Parser = function() {
  2772. ObjectParser.call(this);
  2773. };
  2774. proto.spine.change.SInt32Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2775. proto.spine.change.SInt32Change.Parser.prototype.constructor = proto.spine.change.SInt32Change.Parser;
  2776. proto.spine.change.SInt32Change.Parser.prototype.fromObject = function(obj) {
  2777. if (obj === null) {
  2778. return null;
  2779. }
  2780. let msg = new proto.spine.change.SInt32Change();
  2781. if (obj.previousValue !== undefined) {
  2782. if (obj.previousValue !== null) {
  2783. let value = obj.previousValue;
  2784. msg.setPreviousValue(value);
  2785. }
  2786. }
  2787. if (obj.newValue !== undefined) {
  2788. if (obj.newValue !== null) {
  2789. let value = obj.newValue;
  2790. msg.setNewValue(value);
  2791. }
  2792. }
  2793. return msg;
  2794. };
  2795. proto.spine.change.Int32Change.Parser = function() {
  2796. ObjectParser.call(this);
  2797. };
  2798. proto.spine.change.Int32Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2799. proto.spine.change.Int32Change.Parser.prototype.constructor = proto.spine.change.Int32Change.Parser;
  2800. proto.spine.change.Int32Change.Parser.prototype.fromObject = function(obj) {
  2801. if (obj === null) {
  2802. return null;
  2803. }
  2804. let msg = new proto.spine.change.Int32Change();
  2805. if (obj.previousValue !== undefined) {
  2806. if (obj.previousValue !== null) {
  2807. let value = obj.previousValue;
  2808. msg.setPreviousValue(value);
  2809. }
  2810. }
  2811. if (obj.newValue !== undefined) {
  2812. if (obj.newValue !== null) {
  2813. let value = obj.newValue;
  2814. msg.setNewValue(value);
  2815. }
  2816. }
  2817. return msg;
  2818. };
  2819. proto.spine.change.StringChange.Parser = function() {
  2820. ObjectParser.call(this);
  2821. };
  2822. proto.spine.change.StringChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2823. proto.spine.change.StringChange.Parser.prototype.constructor = proto.spine.change.StringChange.Parser;
  2824. proto.spine.change.StringChange.Parser.prototype.fromObject = function(obj) {
  2825. if (obj === null) {
  2826. return null;
  2827. }
  2828. let msg = new proto.spine.change.StringChange();
  2829. if (obj.previousValue !== undefined) {
  2830. if (obj.previousValue !== null) {
  2831. let value = obj.previousValue;
  2832. msg.setPreviousValue(value);
  2833. }
  2834. }
  2835. if (obj.newValue !== undefined) {
  2836. if (obj.newValue !== null) {
  2837. let value = obj.newValue;
  2838. msg.setNewValue(value);
  2839. }
  2840. }
  2841. return msg;
  2842. };
  2843. proto.spine.change.Fixed64Change.Parser = function() {
  2844. ObjectParser.call(this);
  2845. };
  2846. proto.spine.change.Fixed64Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2847. proto.spine.change.Fixed64Change.Parser.prototype.constructor = proto.spine.change.Fixed64Change.Parser;
  2848. proto.spine.change.Fixed64Change.Parser.prototype.fromObject = function(obj) {
  2849. if (obj === null) {
  2850. return null;
  2851. }
  2852. let msg = new proto.spine.change.Fixed64Change();
  2853. if (obj.previousValue !== undefined) {
  2854. if (obj.previousValue !== null) {
  2855. let value = parseInt(obj.previousValue);
  2856. msg.setPreviousValue(value);
  2857. }
  2858. }
  2859. if (obj.newValue !== undefined) {
  2860. if (obj.newValue !== null) {
  2861. let value = parseInt(obj.newValue);
  2862. msg.setNewValue(value);
  2863. }
  2864. }
  2865. return msg;
  2866. };
  2867. proto.spine.change.BooleanChange.Parser = function() {
  2868. ObjectParser.call(this);
  2869. };
  2870. proto.spine.change.BooleanChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2871. proto.spine.change.BooleanChange.Parser.prototype.constructor = proto.spine.change.BooleanChange.Parser;
  2872. proto.spine.change.BooleanChange.Parser.prototype.fromObject = function(obj) {
  2873. if (obj === null) {
  2874. return null;
  2875. }
  2876. let msg = new proto.spine.change.BooleanChange();
  2877. if (obj.previousValue !== undefined) {
  2878. if (obj.previousValue !== null) {
  2879. let value = obj.previousValue;
  2880. msg.setPreviousValue(value);
  2881. }
  2882. }
  2883. if (obj.newValue !== undefined) {
  2884. if (obj.newValue !== null) {
  2885. let value = obj.newValue;
  2886. msg.setNewValue(value);
  2887. }
  2888. }
  2889. return msg;
  2890. };
  2891. proto.spine.change.BytesChange.Parser = function() {
  2892. ObjectParser.call(this);
  2893. };
  2894. proto.spine.change.BytesChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2895. proto.spine.change.BytesChange.Parser.prototype.constructor = proto.spine.change.BytesChange.Parser;
  2896. proto.spine.change.BytesChange.Parser.prototype.fromObject = function(obj) {
  2897. if (obj === null) {
  2898. return null;
  2899. }
  2900. let msg = new proto.spine.change.BytesChange();
  2901. if (obj.previousValue !== undefined) {
  2902. if (obj.previousValue !== null) {
  2903. let base64 = require('base64-js');
  2904. let value = base64.toByteArray(obj.previousValue);
  2905. msg.setPreviousValue(value);
  2906. }
  2907. }
  2908. if (obj.newValue !== undefined) {
  2909. if (obj.newValue !== null) {
  2910. let base64 = require('base64-js');
  2911. let value = base64.toByteArray(obj.newValue);
  2912. msg.setNewValue(value);
  2913. }
  2914. }
  2915. return msg;
  2916. };
  2917. proto.spine.change.Sfixed32Change.Parser = function() {
  2918. ObjectParser.call(this);
  2919. };
  2920. proto.spine.change.Sfixed32Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2921. proto.spine.change.Sfixed32Change.Parser.prototype.constructor = proto.spine.change.Sfixed32Change.Parser;
  2922. proto.spine.change.Sfixed32Change.Parser.prototype.fromObject = function(obj) {
  2923. if (obj === null) {
  2924. return null;
  2925. }
  2926. let msg = new proto.spine.change.Sfixed32Change();
  2927. if (obj.previousValue !== undefined) {
  2928. if (obj.previousValue !== null) {
  2929. let value = obj.previousValue;
  2930. msg.setPreviousValue(value);
  2931. }
  2932. }
  2933. if (obj.newValue !== undefined) {
  2934. if (obj.newValue !== null) {
  2935. let value = obj.newValue;
  2936. msg.setNewValue(value);
  2937. }
  2938. }
  2939. return msg;
  2940. };
  2941. proto.spine.change.DoubleChange.Parser = function() {
  2942. ObjectParser.call(this);
  2943. };
  2944. proto.spine.change.DoubleChange.Parser.prototype = Object.create(ObjectParser.prototype);
  2945. proto.spine.change.DoubleChange.Parser.prototype.constructor = proto.spine.change.DoubleChange.Parser;
  2946. proto.spine.change.DoubleChange.Parser.prototype.fromObject = function(obj) {
  2947. if (obj === null) {
  2948. return null;
  2949. }
  2950. let msg = new proto.spine.change.DoubleChange();
  2951. if (obj.previousValue !== undefined) {
  2952. if (obj.previousValue !== null) {
  2953. let value = parseFloat(obj.previousValue);
  2954. msg.setPreviousValue(value);
  2955. }
  2956. }
  2957. if (obj.newValue !== undefined) {
  2958. if (obj.newValue !== null) {
  2959. let value = parseFloat(obj.newValue);
  2960. msg.setNewValue(value);
  2961. }
  2962. }
  2963. return msg;
  2964. };
  2965. proto.spine.change.SInt64Change.Parser = function() {
  2966. ObjectParser.call(this);
  2967. };
  2968. proto.spine.change.SInt64Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2969. proto.spine.change.SInt64Change.Parser.prototype.constructor = proto.spine.change.SInt64Change.Parser;
  2970. proto.spine.change.SInt64Change.Parser.prototype.fromObject = function(obj) {
  2971. if (obj === null) {
  2972. return null;
  2973. }
  2974. let msg = new proto.spine.change.SInt64Change();
  2975. if (obj.previousValue !== undefined) {
  2976. if (obj.previousValue !== null) {
  2977. let value = parseInt(obj.previousValue);
  2978. msg.setPreviousValue(value);
  2979. }
  2980. }
  2981. if (obj.newValue !== undefined) {
  2982. if (obj.newValue !== null) {
  2983. let value = parseInt(obj.newValue);
  2984. msg.setNewValue(value);
  2985. }
  2986. }
  2987. return msg;
  2988. };
  2989. proto.spine.change.UInt64Change.Parser = function() {
  2990. ObjectParser.call(this);
  2991. };
  2992. proto.spine.change.UInt64Change.Parser.prototype = Object.create(ObjectParser.prototype);
  2993. proto.spine.change.UInt64Change.Parser.prototype.constructor = proto.spine.change.UInt64Change.Parser;
  2994. proto.spine.change.UInt64Change.Parser.prototype.fromObject = function(obj) {
  2995. if (obj === null) {
  2996. return null;
  2997. }
  2998. let msg = new proto.spine.change.UInt64Change();
  2999. if (obj.previousValue !== undefined) {
  3000. if (obj.previousValue !== null) {
  3001. let value = parseInt(obj.previousValue);
  3002. msg.setPreviousValue(value);
  3003. }
  3004. }
  3005. if (obj.newValue !== undefined) {
  3006. if (obj.newValue !== null) {
  3007. let value = parseInt(obj.newValue);
  3008. msg.setNewValue(value);
  3009. }
  3010. }
  3011. return msg;
  3012. };
  3013. // Generated by Spine ProtoJs Plugin
  3014. proto.spine.change.Int64Change.typeUrl = function() {
  3015. return 'type.spine.io/spine.change.Int64Change';
  3016. };
  3017. // Generated by Spine ProtoJs Plugin
  3018. proto.spine.change.TimestampChange.typeUrl = function() {
  3019. return 'type.spine.io/spine.change.TimestampChange';
  3020. };
  3021. // Generated by Spine ProtoJs Plugin
  3022. proto.spine.change.Fixed32Change.typeUrl = function() {
  3023. return 'type.spine.io/spine.change.Fixed32Change';
  3024. };
  3025. // Generated by Spine ProtoJs Plugin
  3026. proto.spine.change.Sfixed64Change.typeUrl = function() {
  3027. return 'type.spine.io/spine.change.Sfixed64Change';
  3028. };
  3029. // Generated by Spine ProtoJs Plugin
  3030. proto.spine.change.FloatChange.typeUrl = function() {
  3031. return 'type.spine.io/spine.change.FloatChange';
  3032. };
  3033. // Generated by Spine ProtoJs Plugin
  3034. proto.spine.change.UInt32Change.typeUrl = function() {
  3035. return 'type.spine.io/spine.change.UInt32Change';
  3036. };
  3037. // Generated by Spine ProtoJs Plugin
  3038. proto.spine.change.SInt32Change.typeUrl = function() {
  3039. return 'type.spine.io/spine.change.SInt32Change';
  3040. };
  3041. // Generated by Spine ProtoJs Plugin
  3042. proto.spine.change.Int32Change.typeUrl = function() {
  3043. return 'type.spine.io/spine.change.Int32Change';
  3044. };
  3045. // Generated by Spine ProtoJs Plugin
  3046. proto.spine.change.StringChange.typeUrl = function() {
  3047. return 'type.spine.io/spine.change.StringChange';
  3048. };
  3049. // Generated by Spine ProtoJs Plugin
  3050. proto.spine.change.Fixed64Change.typeUrl = function() {
  3051. return 'type.spine.io/spine.change.Fixed64Change';
  3052. };
  3053. // Generated by Spine ProtoJs Plugin
  3054. proto.spine.change.BooleanChange.typeUrl = function() {
  3055. return 'type.spine.io/spine.change.BooleanChange';
  3056. };
  3057. // Generated by Spine ProtoJs Plugin
  3058. proto.spine.change.BytesChange.typeUrl = function() {
  3059. return 'type.spine.io/spine.change.BytesChange';
  3060. };
  3061. // Generated by Spine ProtoJs Plugin
  3062. proto.spine.change.Sfixed32Change.typeUrl = function() {
  3063. return 'type.spine.io/spine.change.Sfixed32Change';
  3064. };
  3065. // Generated by Spine ProtoJs Plugin
  3066. proto.spine.change.DoubleChange.typeUrl = function() {
  3067. return 'type.spine.io/spine.change.DoubleChange';
  3068. };
  3069. // Generated by Spine ProtoJs Plugin
  3070. proto.spine.change.SInt64Change.typeUrl = function() {
  3071. return 'type.spine.io/spine.change.SInt64Change';
  3072. };
  3073. // Generated by Spine ProtoJs Plugin
  3074. proto.spine.change.UInt64Change.typeUrl = function() {
  3075. return 'type.spine.io/spine.change.UInt64Change';
  3076. };