Series_pb.js 14 KB

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