transform_pb.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. /* eslint-disable */
  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. goog.exportSymbol('proto.Transform', null, global);
  14. /**
  15. * Generated by JsPbCodeGenerator.
  16. * @param {Array=} opt_data Optional initial data array, typically from a
  17. * server response, or constructed directly in Javascript. The array is used
  18. * in place and becomes part of the constructed object. It is not cloned.
  19. * If no data is provided, the constructed object will be empty, but still
  20. * valid.
  21. * @extends {jspb.Message}
  22. * @constructor
  23. */
  24. proto.Transform = function(opt_data) {
  25. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  26. };
  27. goog.inherits(proto.Transform, jspb.Message);
  28. if (goog.DEBUG && !COMPILED) {
  29. /**
  30. * @public
  31. * @override
  32. */
  33. proto.Transform.displayName = 'proto.Transform';
  34. }
  35. if (jspb.Message.GENERATE_TO_OBJECT) {
  36. /**
  37. * Creates an object representation of this proto.
  38. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  39. * Optional fields that are not set will be set to undefined.
  40. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  41. * For the list of reserved names please see:
  42. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  43. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  44. * JSPB instance for transitional soy proto support:
  45. * http://goto/soy-param-migration
  46. * @return {!Object}
  47. */
  48. proto.Transform.prototype.toObject = function(opt_includeInstance) {
  49. return proto.Transform.toObject(opt_includeInstance, this);
  50. };
  51. /**
  52. * Static version of the {@see toObject} method.
  53. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  54. * the JSPB instance for transitional soy proto support:
  55. * http://goto/soy-param-migration
  56. * @param {!proto.Transform} msg The msg instance to transform.
  57. * @return {!Object}
  58. * @suppress {unusedLocalVariables} f is only used for nested messages
  59. */
  60. proto.Transform.toObject = function(includeInstance, msg) {
  61. var f, obj = {
  62. r11: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  63. r12: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
  64. r13: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
  65. r21: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
  66. r22: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
  67. r23: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
  68. r31: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
  69. r32: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
  70. r33: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
  71. tx: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
  72. ty: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
  73. tz: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
  74. closure: jspb.Message.getFieldWithDefault(msg, 13, 0),
  75. index: jspb.Message.getFieldWithDefault(msg, 14, 0)
  76. };
  77. if (includeInstance) {
  78. obj.$jspbMessageInstance = msg;
  79. }
  80. return obj;
  81. };
  82. }
  83. /**
  84. * Deserializes binary data (in protobuf wire format).
  85. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  86. * @return {!proto.Transform}
  87. */
  88. proto.Transform.deserializeBinary = function(bytes) {
  89. var reader = new jspb.BinaryReader(bytes);
  90. var msg = new proto.Transform;
  91. return proto.Transform.deserializeBinaryFromReader(msg, reader);
  92. };
  93. /**
  94. * Deserializes binary data (in protobuf wire format) from the
  95. * given reader into the given message object.
  96. * @param {!proto.Transform} msg The message object to deserialize into.
  97. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  98. * @return {!proto.Transform}
  99. */
  100. proto.Transform.deserializeBinaryFromReader = function(msg, reader) {
  101. while (reader.nextField()) {
  102. if (reader.isEndGroup()) {
  103. break;
  104. }
  105. var field = reader.getFieldNumber();
  106. switch (field) {
  107. case 1:
  108. var value = /** @type {number} */ (reader.readDouble());
  109. msg.setR11(value);
  110. break;
  111. case 2:
  112. var value = /** @type {number} */ (reader.readDouble());
  113. msg.setR12(value);
  114. break;
  115. case 3:
  116. var value = /** @type {number} */ (reader.readDouble());
  117. msg.setR13(value);
  118. break;
  119. case 4:
  120. var value = /** @type {number} */ (reader.readDouble());
  121. msg.setR21(value);
  122. break;
  123. case 5:
  124. var value = /** @type {number} */ (reader.readDouble());
  125. msg.setR22(value);
  126. break;
  127. case 6:
  128. var value = /** @type {number} */ (reader.readDouble());
  129. msg.setR23(value);
  130. break;
  131. case 7:
  132. var value = /** @type {number} */ (reader.readDouble());
  133. msg.setR31(value);
  134. break;
  135. case 8:
  136. var value = /** @type {number} */ (reader.readDouble());
  137. msg.setR32(value);
  138. break;
  139. case 9:
  140. var value = /** @type {number} */ (reader.readDouble());
  141. msg.setR33(value);
  142. break;
  143. case 10:
  144. var value = /** @type {number} */ (reader.readDouble());
  145. msg.setTx(value);
  146. break;
  147. case 11:
  148. var value = /** @type {number} */ (reader.readDouble());
  149. msg.setTy(value);
  150. break;
  151. case 12:
  152. var value = /** @type {number} */ (reader.readDouble());
  153. msg.setTz(value);
  154. break;
  155. case 13:
  156. var value = /** @type {number} */ (reader.readUint64());
  157. msg.setClosure(value);
  158. break;
  159. case 14:
  160. var value = /** @type {number} */ (reader.readUint64());
  161. msg.setIndex(value);
  162. break;
  163. default:
  164. reader.skipField();
  165. break;
  166. }
  167. }
  168. return msg;
  169. };
  170. /**
  171. * Serializes the message to binary data (in protobuf wire format).
  172. * @return {!Uint8Array}
  173. */
  174. proto.Transform.prototype.serializeBinary = function() {
  175. var writer = new jspb.BinaryWriter();
  176. proto.Transform.serializeBinaryToWriter(this, writer);
  177. return writer.getResultBuffer();
  178. };
  179. /**
  180. * Serializes the given message to binary data (in protobuf wire
  181. * format), writing to the given BinaryWriter.
  182. * @param {!proto.Transform} message
  183. * @param {!jspb.BinaryWriter} writer
  184. * @suppress {unusedLocalVariables} f is only used for nested messages
  185. */
  186. proto.Transform.serializeBinaryToWriter = function(message, writer) {
  187. var f = undefined;
  188. f = message.getR11();
  189. if (f !== 0.0) {
  190. writer.writeDouble(
  191. 1,
  192. f
  193. );
  194. }
  195. f = message.getR12();
  196. if (f !== 0.0) {
  197. writer.writeDouble(
  198. 2,
  199. f
  200. );
  201. }
  202. f = message.getR13();
  203. if (f !== 0.0) {
  204. writer.writeDouble(
  205. 3,
  206. f
  207. );
  208. }
  209. f = message.getR21();
  210. if (f !== 0.0) {
  211. writer.writeDouble(
  212. 4,
  213. f
  214. );
  215. }
  216. f = message.getR22();
  217. if (f !== 0.0) {
  218. writer.writeDouble(
  219. 5,
  220. f
  221. );
  222. }
  223. f = message.getR23();
  224. if (f !== 0.0) {
  225. writer.writeDouble(
  226. 6,
  227. f
  228. );
  229. }
  230. f = message.getR31();
  231. if (f !== 0.0) {
  232. writer.writeDouble(
  233. 7,
  234. f
  235. );
  236. }
  237. f = message.getR32();
  238. if (f !== 0.0) {
  239. writer.writeDouble(
  240. 8,
  241. f
  242. );
  243. }
  244. f = message.getR33();
  245. if (f !== 0.0) {
  246. writer.writeDouble(
  247. 9,
  248. f
  249. );
  250. }
  251. f = message.getTx();
  252. if (f !== 0.0) {
  253. writer.writeDouble(
  254. 10,
  255. f
  256. );
  257. }
  258. f = message.getTy();
  259. if (f !== 0.0) {
  260. writer.writeDouble(
  261. 11,
  262. f
  263. );
  264. }
  265. f = message.getTz();
  266. if (f !== 0.0) {
  267. writer.writeDouble(
  268. 12,
  269. f
  270. );
  271. }
  272. f = message.getClosure();
  273. if (f !== 0) {
  274. writer.writeUint64(
  275. 13,
  276. f
  277. );
  278. }
  279. f = message.getIndex();
  280. if (f !== 0) {
  281. writer.writeUint64(
  282. 14,
  283. f
  284. );
  285. }
  286. };
  287. /**
  288. * optional double r11 = 1;
  289. * @return {number}
  290. */
  291. proto.Transform.prototype.getR11 = function() {
  292. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  293. };
  294. /**
  295. * @param {number} value
  296. * @return {!proto.Transform} returns this
  297. */
  298. proto.Transform.prototype.setR11 = function(value) {
  299. return jspb.Message.setProto3FloatField(this, 1, value);
  300. };
  301. /**
  302. * optional double r12 = 2;
  303. * @return {number}
  304. */
  305. proto.Transform.prototype.getR12 = function() {
  306. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  307. };
  308. /**
  309. * @param {number} value
  310. * @return {!proto.Transform} returns this
  311. */
  312. proto.Transform.prototype.setR12 = function(value) {
  313. return jspb.Message.setProto3FloatField(this, 2, value);
  314. };
  315. /**
  316. * optional double r13 = 3;
  317. * @return {number}
  318. */
  319. proto.Transform.prototype.getR13 = function() {
  320. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
  321. };
  322. /**
  323. * @param {number} value
  324. * @return {!proto.Transform} returns this
  325. */
  326. proto.Transform.prototype.setR13 = function(value) {
  327. return jspb.Message.setProto3FloatField(this, 3, value);
  328. };
  329. /**
  330. * optional double r21 = 4;
  331. * @return {number}
  332. */
  333. proto.Transform.prototype.getR21 = function() {
  334. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
  335. };
  336. /**
  337. * @param {number} value
  338. * @return {!proto.Transform} returns this
  339. */
  340. proto.Transform.prototype.setR21 = function(value) {
  341. return jspb.Message.setProto3FloatField(this, 4, value);
  342. };
  343. /**
  344. * optional double r22 = 5;
  345. * @return {number}
  346. */
  347. proto.Transform.prototype.getR22 = function() {
  348. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
  349. };
  350. /**
  351. * @param {number} value
  352. * @return {!proto.Transform} returns this
  353. */
  354. proto.Transform.prototype.setR22 = function(value) {
  355. return jspb.Message.setProto3FloatField(this, 5, value);
  356. };
  357. /**
  358. * optional double r23 = 6;
  359. * @return {number}
  360. */
  361. proto.Transform.prototype.getR23 = function() {
  362. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
  363. };
  364. /**
  365. * @param {number} value
  366. * @return {!proto.Transform} returns this
  367. */
  368. proto.Transform.prototype.setR23 = function(value) {
  369. return jspb.Message.setProto3FloatField(this, 6, value);
  370. };
  371. /**
  372. * optional double r31 = 7;
  373. * @return {number}
  374. */
  375. proto.Transform.prototype.getR31 = function() {
  376. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
  377. };
  378. /**
  379. * @param {number} value
  380. * @return {!proto.Transform} returns this
  381. */
  382. proto.Transform.prototype.setR31 = function(value) {
  383. return jspb.Message.setProto3FloatField(this, 7, value);
  384. };
  385. /**
  386. * optional double r32 = 8;
  387. * @return {number}
  388. */
  389. proto.Transform.prototype.getR32 = function() {
  390. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
  391. };
  392. /**
  393. * @param {number} value
  394. * @return {!proto.Transform} returns this
  395. */
  396. proto.Transform.prototype.setR32 = function(value) {
  397. return jspb.Message.setProto3FloatField(this, 8, value);
  398. };
  399. /**
  400. * optional double r33 = 9;
  401. * @return {number}
  402. */
  403. proto.Transform.prototype.getR33 = function() {
  404. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
  405. };
  406. /**
  407. * @param {number} value
  408. * @return {!proto.Transform} returns this
  409. */
  410. proto.Transform.prototype.setR33 = function(value) {
  411. return jspb.Message.setProto3FloatField(this, 9, value);
  412. };
  413. /**
  414. * optional double tx = 10;
  415. * @return {number}
  416. */
  417. proto.Transform.prototype.getTx = function() {
  418. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
  419. };
  420. /**
  421. * @param {number} value
  422. * @return {!proto.Transform} returns this
  423. */
  424. proto.Transform.prototype.setTx = function(value) {
  425. return jspb.Message.setProto3FloatField(this, 10, value);
  426. };
  427. /**
  428. * optional double ty = 11;
  429. * @return {number}
  430. */
  431. proto.Transform.prototype.getTy = function() {
  432. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
  433. };
  434. /**
  435. * @param {number} value
  436. * @return {!proto.Transform} returns this
  437. */
  438. proto.Transform.prototype.setTy = function(value) {
  439. return jspb.Message.setProto3FloatField(this, 11, value);
  440. };
  441. /**
  442. * optional double tz = 12;
  443. * @return {number}
  444. */
  445. proto.Transform.prototype.getTz = function() {
  446. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
  447. };
  448. /**
  449. * @param {number} value
  450. * @return {!proto.Transform} returns this
  451. */
  452. proto.Transform.prototype.setTz = function(value) {
  453. return jspb.Message.setProto3FloatField(this, 12, value);
  454. };
  455. /**
  456. * optional uint64 closure = 13;
  457. * @return {number}
  458. */
  459. proto.Transform.prototype.getClosure = function() {
  460. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
  461. };
  462. /**
  463. * @param {number} value
  464. * @return {!proto.Transform} returns this
  465. */
  466. proto.Transform.prototype.setClosure = function(value) {
  467. return jspb.Message.setProto3IntField(this, 13, value);
  468. };
  469. /**
  470. * optional uint64 index = 14;
  471. * @return {number}
  472. */
  473. proto.Transform.prototype.getIndex = function() {
  474. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
  475. };
  476. /**
  477. * @param {number} value
  478. * @return {!proto.Transform} returns this
  479. */
  480. proto.Transform.prototype.setIndex = function(value) {
  481. return jspb.Message.setProto3IntField(this, 14, value);
  482. };
  483. goog.object.extend(exports, proto);