Series_pb.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. // source: proto/Series.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {missingRequire} reports error on implicit type usages.
  6. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  7. * field starts with 'MSG_' and isn't a translatable message.
  8. * @public
  9. */
  10. // GENERATED CODE -- DO NOT EDIT!
  11. /* eslint-disable */
  12. // @ts-nocheck
  13. var jspb = require('google-protobuf');
  14. var goog = jspb;
  15. var global = Function('return this')();
  16. goog.exportSymbol('proto.SeasonMetadata', null, global);
  17. goog.exportSymbol('proto.SeriesMetadata', null, global);
  18. /**
  19. * Generated by JsPbCodeGenerator.
  20. * @param {Array=} opt_data Optional initial data array, typically from a
  21. * server response, or constructed directly in Javascript. The array is used
  22. * in place and becomes part of the constructed object. It is not cloned.
  23. * If no data is provided, the constructed object will be empty, but still
  24. * valid.
  25. * @extends {jspb.Message}
  26. * @constructor
  27. */
  28. proto.SeriesMetadata = function(opt_data) {
  29. jspb.Message.initialize(this, opt_data, 0, -1, proto.SeriesMetadata.repeatedFields_, null);
  30. };
  31. goog.inherits(proto.SeriesMetadata, jspb.Message);
  32. if (goog.DEBUG && !COMPILED) {
  33. /**
  34. * @public
  35. * @override
  36. */
  37. proto.SeriesMetadata.displayName = 'proto.SeriesMetadata';
  38. }
  39. /**
  40. * Generated by JsPbCodeGenerator.
  41. * @param {Array=} opt_data Optional initial data array, typically from a
  42. * server response, or constructed directly in Javascript. The array is used
  43. * in place and becomes part of the constructed object. It is not cloned.
  44. * If no data is provided, the constructed object will be empty, but still
  45. * valid.
  46. * @extends {jspb.Message}
  47. * @constructor
  48. */
  49. proto.SeasonMetadata = function(opt_data) {
  50. jspb.Message.initialize(this, opt_data, 0, -1, proto.SeasonMetadata.repeatedFields_, null);
  51. };
  52. goog.inherits(proto.SeasonMetadata, jspb.Message);
  53. if (goog.DEBUG && !COMPILED) {
  54. /**
  55. * @public
  56. * @override
  57. */
  58. proto.SeasonMetadata.displayName = 'proto.SeasonMetadata';
  59. }
  60. /**
  61. * List of repeated fields within this message type.
  62. * @private {!Array<number>}
  63. * @const
  64. */
  65. proto.SeriesMetadata.repeatedFields_ = [4];
  66. if (jspb.Message.GENERATE_TO_OBJECT) {
  67. /**
  68. * Creates an object representation of this proto.
  69. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  70. * Optional fields that are not set will be set to undefined.
  71. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  72. * For the list of reserved names please see:
  73. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  74. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  75. * JSPB instance for transitional soy proto support:
  76. * http://goto/soy-param-migration
  77. * @return {!Object}
  78. */
  79. proto.SeriesMetadata.prototype.toObject = function(opt_includeInstance) {
  80. return proto.SeriesMetadata.toObject(opt_includeInstance, this);
  81. };
  82. /**
  83. * Static version of the {@see toObject} method.
  84. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  85. * the JSPB instance for transitional soy proto support:
  86. * http://goto/soy-param-migration
  87. * @param {!proto.SeriesMetadata} msg The msg instance to transform.
  88. * @return {!Object}
  89. * @suppress {unusedLocalVariables} f is only used for nested messages
  90. */
  91. proto.SeriesMetadata.toObject = function(includeInstance, msg) {
  92. var f, obj = {
  93. title: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  94. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  95. coverPhoto: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  96. personsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
  97. };
  98. if (includeInstance) {
  99. obj.$jspbMessageInstance = msg;
  100. }
  101. return obj;
  102. };
  103. }
  104. /**
  105. * Deserializes binary data (in protobuf wire format).
  106. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  107. * @return {!proto.SeriesMetadata}
  108. */
  109. proto.SeriesMetadata.deserializeBinary = function(bytes) {
  110. var reader = new jspb.BinaryReader(bytes);
  111. var msg = new proto.SeriesMetadata;
  112. return proto.SeriesMetadata.deserializeBinaryFromReader(msg, reader);
  113. };
  114. /**
  115. * Deserializes binary data (in protobuf wire format) from the
  116. * given reader into the given message object.
  117. * @param {!proto.SeriesMetadata} msg The message object to deserialize into.
  118. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  119. * @return {!proto.SeriesMetadata}
  120. */
  121. proto.SeriesMetadata.deserializeBinaryFromReader = function(msg, reader) {
  122. while (reader.nextField()) {
  123. if (reader.isEndGroup()) {
  124. break;
  125. }
  126. var field = reader.getFieldNumber();
  127. switch (field) {
  128. case 1:
  129. var value = /** @type {string} */ (reader.readString());
  130. msg.setTitle(value);
  131. break;
  132. case 2:
  133. var value = /** @type {string} */ (reader.readString());
  134. msg.setDescription(value);
  135. break;
  136. case 3:
  137. var value = /** @type {number} */ (reader.readUint32());
  138. msg.setCoverPhoto(value);
  139. break;
  140. case 4:
  141. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
  142. for (var i = 0; i < values.length; i++) {
  143. msg.addPersons(values[i]);
  144. }
  145. break;
  146. default:
  147. reader.skipField();
  148. break;
  149. }
  150. }
  151. return msg;
  152. };
  153. /**
  154. * Serializes the message to binary data (in protobuf wire format).
  155. * @return {!Uint8Array}
  156. */
  157. proto.SeriesMetadata.prototype.serializeBinary = function() {
  158. var writer = new jspb.BinaryWriter();
  159. proto.SeriesMetadata.serializeBinaryToWriter(this, writer);
  160. return writer.getResultBuffer();
  161. };
  162. /**
  163. * Serializes the given message to binary data (in protobuf wire
  164. * format), writing to the given BinaryWriter.
  165. * @param {!proto.SeriesMetadata} message
  166. * @param {!jspb.BinaryWriter} writer
  167. * @suppress {unusedLocalVariables} f is only used for nested messages
  168. */
  169. proto.SeriesMetadata.serializeBinaryToWriter = function(message, writer) {
  170. var f = undefined;
  171. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  172. if (f != null) {
  173. writer.writeString(
  174. 1,
  175. f
  176. );
  177. }
  178. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  179. if (f != null) {
  180. writer.writeString(
  181. 2,
  182. f
  183. );
  184. }
  185. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  186. if (f != null) {
  187. writer.writeUint32(
  188. 3,
  189. f
  190. );
  191. }
  192. f = message.getPersonsList();
  193. if (f.length > 0) {
  194. writer.writePackedUint64(
  195. 4,
  196. f
  197. );
  198. }
  199. };
  200. /**
  201. * optional string title = 1;
  202. * @return {string}
  203. */
  204. proto.SeriesMetadata.prototype.getTitle = function() {
  205. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  206. };
  207. /**
  208. * @param {string} value
  209. * @return {!proto.SeriesMetadata} returns this
  210. */
  211. proto.SeriesMetadata.prototype.setTitle = function(value) {
  212. return jspb.Message.setField(this, 1, value);
  213. };
  214. /**
  215. * Clears the field making it undefined.
  216. * @return {!proto.SeriesMetadata} returns this
  217. */
  218. proto.SeriesMetadata.prototype.clearTitle = function() {
  219. return jspb.Message.setField(this, 1, undefined);
  220. };
  221. /**
  222. * Returns whether this field is set.
  223. * @return {boolean}
  224. */
  225. proto.SeriesMetadata.prototype.hasTitle = function() {
  226. return jspb.Message.getField(this, 1) != null;
  227. };
  228. /**
  229. * optional string description = 2;
  230. * @return {string}
  231. */
  232. proto.SeriesMetadata.prototype.getDescription = function() {
  233. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  234. };
  235. /**
  236. * @param {string} value
  237. * @return {!proto.SeriesMetadata} returns this
  238. */
  239. proto.SeriesMetadata.prototype.setDescription = function(value) {
  240. return jspb.Message.setField(this, 2, value);
  241. };
  242. /**
  243. * Clears the field making it undefined.
  244. * @return {!proto.SeriesMetadata} returns this
  245. */
  246. proto.SeriesMetadata.prototype.clearDescription = function() {
  247. return jspb.Message.setField(this, 2, undefined);
  248. };
  249. /**
  250. * Returns whether this field is set.
  251. * @return {boolean}
  252. */
  253. proto.SeriesMetadata.prototype.hasDescription = function() {
  254. return jspb.Message.getField(this, 2) != null;
  255. };
  256. /**
  257. * optional uint32 cover_photo = 3;
  258. * @return {number}
  259. */
  260. proto.SeriesMetadata.prototype.getCoverPhoto = function() {
  261. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  262. };
  263. /**
  264. * @param {number} value
  265. * @return {!proto.SeriesMetadata} returns this
  266. */
  267. proto.SeriesMetadata.prototype.setCoverPhoto = function(value) {
  268. return jspb.Message.setField(this, 3, value);
  269. };
  270. /**
  271. * Clears the field making it undefined.
  272. * @return {!proto.SeriesMetadata} returns this
  273. */
  274. proto.SeriesMetadata.prototype.clearCoverPhoto = function() {
  275. return jspb.Message.setField(this, 3, undefined);
  276. };
  277. /**
  278. * Returns whether this field is set.
  279. * @return {boolean}
  280. */
  281. proto.SeriesMetadata.prototype.hasCoverPhoto = function() {
  282. return jspb.Message.getField(this, 3) != null;
  283. };
  284. /**
  285. * repeated uint64 persons = 4;
  286. * @return {!Array<number>}
  287. */
  288. proto.SeriesMetadata.prototype.getPersonsList = function() {
  289. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
  290. };
  291. /**
  292. * @param {!Array<number>} value
  293. * @return {!proto.SeriesMetadata} returns this
  294. */
  295. proto.SeriesMetadata.prototype.setPersonsList = function(value) {
  296. return jspb.Message.setField(this, 4, value || []);
  297. };
  298. /**
  299. * @param {number} value
  300. * @param {number=} opt_index
  301. * @return {!proto.SeriesMetadata} returns this
  302. */
  303. proto.SeriesMetadata.prototype.addPersons = function(value, opt_index) {
  304. return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
  305. };
  306. /**
  307. * Clears the list making it empty but non-null.
  308. * @return {!proto.SeriesMetadata} returns this
  309. */
  310. proto.SeriesMetadata.prototype.clearPersonsList = function() {
  311. return this.setPersonsList([]);
  312. };
  313. /**
  314. * List of repeated fields within this message type.
  315. * @private {!Array<number>}
  316. * @const
  317. */
  318. proto.SeasonMetadata.repeatedFields_ = [4];
  319. if (jspb.Message.GENERATE_TO_OBJECT) {
  320. /**
  321. * Creates an object representation of this proto.
  322. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  323. * Optional fields that are not set will be set to undefined.
  324. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  325. * For the list of reserved names please see:
  326. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  327. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  328. * JSPB instance for transitional soy proto support:
  329. * http://goto/soy-param-migration
  330. * @return {!Object}
  331. */
  332. proto.SeasonMetadata.prototype.toObject = function(opt_includeInstance) {
  333. return proto.SeasonMetadata.toObject(opt_includeInstance, this);
  334. };
  335. /**
  336. * Static version of the {@see toObject} method.
  337. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  338. * the JSPB instance for transitional soy proto support:
  339. * http://goto/soy-param-migration
  340. * @param {!proto.SeasonMetadata} msg The msg instance to transform.
  341. * @return {!Object}
  342. * @suppress {unusedLocalVariables} f is only used for nested messages
  343. */
  344. proto.SeasonMetadata.toObject = function(includeInstance, msg) {
  345. var f, obj = {
  346. title: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  347. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  348. coverPhoto: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  349. personsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
  350. };
  351. if (includeInstance) {
  352. obj.$jspbMessageInstance = msg;
  353. }
  354. return obj;
  355. };
  356. }
  357. /**
  358. * Deserializes binary data (in protobuf wire format).
  359. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  360. * @return {!proto.SeasonMetadata}
  361. */
  362. proto.SeasonMetadata.deserializeBinary = function(bytes) {
  363. var reader = new jspb.BinaryReader(bytes);
  364. var msg = new proto.SeasonMetadata;
  365. return proto.SeasonMetadata.deserializeBinaryFromReader(msg, reader);
  366. };
  367. /**
  368. * Deserializes binary data (in protobuf wire format) from the
  369. * given reader into the given message object.
  370. * @param {!proto.SeasonMetadata} msg The message object to deserialize into.
  371. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  372. * @return {!proto.SeasonMetadata}
  373. */
  374. proto.SeasonMetadata.deserializeBinaryFromReader = function(msg, reader) {
  375. while (reader.nextField()) {
  376. if (reader.isEndGroup()) {
  377. break;
  378. }
  379. var field = reader.getFieldNumber();
  380. switch (field) {
  381. case 1:
  382. var value = /** @type {string} */ (reader.readString());
  383. msg.setTitle(value);
  384. break;
  385. case 2:
  386. var value = /** @type {string} */ (reader.readString());
  387. msg.setDescription(value);
  388. break;
  389. case 3:
  390. var value = /** @type {number} */ (reader.readUint32());
  391. msg.setCoverPhoto(value);
  392. break;
  393. case 4:
  394. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
  395. for (var i = 0; i < values.length; i++) {
  396. msg.addPersons(values[i]);
  397. }
  398. break;
  399. default:
  400. reader.skipField();
  401. break;
  402. }
  403. }
  404. return msg;
  405. };
  406. /**
  407. * Serializes the message to binary data (in protobuf wire format).
  408. * @return {!Uint8Array}
  409. */
  410. proto.SeasonMetadata.prototype.serializeBinary = function() {
  411. var writer = new jspb.BinaryWriter();
  412. proto.SeasonMetadata.serializeBinaryToWriter(this, writer);
  413. return writer.getResultBuffer();
  414. };
  415. /**
  416. * Serializes the given message to binary data (in protobuf wire
  417. * format), writing to the given BinaryWriter.
  418. * @param {!proto.SeasonMetadata} message
  419. * @param {!jspb.BinaryWriter} writer
  420. * @suppress {unusedLocalVariables} f is only used for nested messages
  421. */
  422. proto.SeasonMetadata.serializeBinaryToWriter = function(message, writer) {
  423. var f = undefined;
  424. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  425. if (f != null) {
  426. writer.writeString(
  427. 1,
  428. f
  429. );
  430. }
  431. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  432. if (f != null) {
  433. writer.writeString(
  434. 2,
  435. f
  436. );
  437. }
  438. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  439. if (f != null) {
  440. writer.writeUint32(
  441. 3,
  442. f
  443. );
  444. }
  445. f = message.getPersonsList();
  446. if (f.length > 0) {
  447. writer.writePackedUint64(
  448. 4,
  449. f
  450. );
  451. }
  452. };
  453. /**
  454. * optional string title = 1;
  455. * @return {string}
  456. */
  457. proto.SeasonMetadata.prototype.getTitle = function() {
  458. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  459. };
  460. /**
  461. * @param {string} value
  462. * @return {!proto.SeasonMetadata} returns this
  463. */
  464. proto.SeasonMetadata.prototype.setTitle = function(value) {
  465. return jspb.Message.setField(this, 1, value);
  466. };
  467. /**
  468. * Clears the field making it undefined.
  469. * @return {!proto.SeasonMetadata} returns this
  470. */
  471. proto.SeasonMetadata.prototype.clearTitle = function() {
  472. return jspb.Message.setField(this, 1, undefined);
  473. };
  474. /**
  475. * Returns whether this field is set.
  476. * @return {boolean}
  477. */
  478. proto.SeasonMetadata.prototype.hasTitle = function() {
  479. return jspb.Message.getField(this, 1) != null;
  480. };
  481. /**
  482. * optional string description = 2;
  483. * @return {string}
  484. */
  485. proto.SeasonMetadata.prototype.getDescription = function() {
  486. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  487. };
  488. /**
  489. * @param {string} value
  490. * @return {!proto.SeasonMetadata} returns this
  491. */
  492. proto.SeasonMetadata.prototype.setDescription = function(value) {
  493. return jspb.Message.setField(this, 2, value);
  494. };
  495. /**
  496. * Clears the field making it undefined.
  497. * @return {!proto.SeasonMetadata} returns this
  498. */
  499. proto.SeasonMetadata.prototype.clearDescription = function() {
  500. return jspb.Message.setField(this, 2, undefined);
  501. };
  502. /**
  503. * Returns whether this field is set.
  504. * @return {boolean}
  505. */
  506. proto.SeasonMetadata.prototype.hasDescription = function() {
  507. return jspb.Message.getField(this, 2) != null;
  508. };
  509. /**
  510. * optional uint32 cover_photo = 3;
  511. * @return {number}
  512. */
  513. proto.SeasonMetadata.prototype.getCoverPhoto = function() {
  514. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  515. };
  516. /**
  517. * @param {number} value
  518. * @return {!proto.SeasonMetadata} returns this
  519. */
  520. proto.SeasonMetadata.prototype.setCoverPhoto = function(value) {
  521. return jspb.Message.setField(this, 3, value);
  522. };
  523. /**
  524. * Clears the field making it undefined.
  525. * @return {!proto.SeasonMetadata} returns this
  526. */
  527. proto.SeasonMetadata.prototype.clearCoverPhoto = function() {
  528. return jspb.Message.setField(this, 3, undefined);
  529. };
  530. /**
  531. * Returns whether this field is set.
  532. * @return {boolean}
  533. */
  534. proto.SeasonMetadata.prototype.hasCoverPhoto = function() {
  535. return jspb.Message.getField(this, 3) != null;
  536. };
  537. /**
  538. * repeated uint64 persons = 4;
  539. * @return {!Array<number>}
  540. */
  541. proto.SeasonMetadata.prototype.getPersonsList = function() {
  542. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
  543. };
  544. /**
  545. * @param {!Array<number>} value
  546. * @return {!proto.SeasonMetadata} returns this
  547. */
  548. proto.SeasonMetadata.prototype.setPersonsList = function(value) {
  549. return jspb.Message.setField(this, 4, value || []);
  550. };
  551. /**
  552. * @param {number} value
  553. * @param {number=} opt_index
  554. * @return {!proto.SeasonMetadata} returns this
  555. */
  556. proto.SeasonMetadata.prototype.addPersons = function(value, opt_index) {
  557. return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
  558. };
  559. /**
  560. * Clears the list making it empty but non-null.
  561. * @return {!proto.SeasonMetadata} returns this
  562. */
  563. proto.SeasonMetadata.prototype.clearPersonsList = function() {
  564. return this.setPersonsList([]);
  565. };
  566. goog.object.extend(exports, proto);