Series_pb.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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. };
  89. if (includeInstance) {
  90. obj.$jspbMessageInstance = msg;
  91. }
  92. return obj;
  93. };
  94. }
  95. /**
  96. * Deserializes binary data (in protobuf wire format).
  97. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  98. * @return {!proto.SeriesMetadata}
  99. */
  100. proto.SeriesMetadata.deserializeBinary = function(bytes) {
  101. var reader = new jspb.BinaryReader(bytes);
  102. var msg = new proto.SeriesMetadata;
  103. return proto.SeriesMetadata.deserializeBinaryFromReader(msg, reader);
  104. };
  105. /**
  106. * Deserializes binary data (in protobuf wire format) from the
  107. * given reader into the given message object.
  108. * @param {!proto.SeriesMetadata} msg The message object to deserialize into.
  109. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  110. * @return {!proto.SeriesMetadata}
  111. */
  112. proto.SeriesMetadata.deserializeBinaryFromReader = function(msg, reader) {
  113. while (reader.nextField()) {
  114. if (reader.isEndGroup()) {
  115. break;
  116. }
  117. var field = reader.getFieldNumber();
  118. switch (field) {
  119. case 1:
  120. var value = /** @type {string} */ (reader.readString());
  121. msg.setTitle(value);
  122. break;
  123. case 2:
  124. var value = /** @type {string} */ (reader.readString());
  125. msg.setDescription(value);
  126. break;
  127. default:
  128. reader.skipField();
  129. break;
  130. }
  131. }
  132. return msg;
  133. };
  134. /**
  135. * Serializes the message to binary data (in protobuf wire format).
  136. * @return {!Uint8Array}
  137. */
  138. proto.SeriesMetadata.prototype.serializeBinary = function() {
  139. var writer = new jspb.BinaryWriter();
  140. proto.SeriesMetadata.serializeBinaryToWriter(this, writer);
  141. return writer.getResultBuffer();
  142. };
  143. /**
  144. * Serializes the given message to binary data (in protobuf wire
  145. * format), writing to the given BinaryWriter.
  146. * @param {!proto.SeriesMetadata} message
  147. * @param {!jspb.BinaryWriter} writer
  148. * @suppress {unusedLocalVariables} f is only used for nested messages
  149. */
  150. proto.SeriesMetadata.serializeBinaryToWriter = function(message, writer) {
  151. var f = undefined;
  152. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  153. if (f != null) {
  154. writer.writeString(
  155. 1,
  156. f
  157. );
  158. }
  159. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  160. if (f != null) {
  161. writer.writeString(
  162. 2,
  163. f
  164. );
  165. }
  166. };
  167. /**
  168. * optional string title = 1;
  169. * @return {string}
  170. */
  171. proto.SeriesMetadata.prototype.getTitle = function() {
  172. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  173. };
  174. /**
  175. * @param {string} value
  176. * @return {!proto.SeriesMetadata} returns this
  177. */
  178. proto.SeriesMetadata.prototype.setTitle = function(value) {
  179. return jspb.Message.setField(this, 1, value);
  180. };
  181. /**
  182. * Clears the field making it undefined.
  183. * @return {!proto.SeriesMetadata} returns this
  184. */
  185. proto.SeriesMetadata.prototype.clearTitle = function() {
  186. return jspb.Message.setField(this, 1, undefined);
  187. };
  188. /**
  189. * Returns whether this field is set.
  190. * @return {boolean}
  191. */
  192. proto.SeriesMetadata.prototype.hasTitle = function() {
  193. return jspb.Message.getField(this, 1) != null;
  194. };
  195. /**
  196. * optional string description = 2;
  197. * @return {string}
  198. */
  199. proto.SeriesMetadata.prototype.getDescription = function() {
  200. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  201. };
  202. /**
  203. * @param {string} value
  204. * @return {!proto.SeriesMetadata} returns this
  205. */
  206. proto.SeriesMetadata.prototype.setDescription = function(value) {
  207. return jspb.Message.setField(this, 2, value);
  208. };
  209. /**
  210. * Clears the field making it undefined.
  211. * @return {!proto.SeriesMetadata} returns this
  212. */
  213. proto.SeriesMetadata.prototype.clearDescription = function() {
  214. return jspb.Message.setField(this, 2, undefined);
  215. };
  216. /**
  217. * Returns whether this field is set.
  218. * @return {boolean}
  219. */
  220. proto.SeriesMetadata.prototype.hasDescription = function() {
  221. return jspb.Message.getField(this, 2) != null;
  222. };
  223. if (jspb.Message.GENERATE_TO_OBJECT) {
  224. /**
  225. * Creates an object representation of this proto.
  226. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  227. * Optional fields that are not set will be set to undefined.
  228. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  229. * For the list of reserved names please see:
  230. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  231. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  232. * JSPB instance for transitional soy proto support:
  233. * http://goto/soy-param-migration
  234. * @return {!Object}
  235. */
  236. proto.SeasonMetadata.prototype.toObject = function(opt_includeInstance) {
  237. return proto.SeasonMetadata.toObject(opt_includeInstance, this);
  238. };
  239. /**
  240. * Static version of the {@see toObject} method.
  241. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  242. * the JSPB instance for transitional soy proto support:
  243. * http://goto/soy-param-migration
  244. * @param {!proto.SeasonMetadata} msg The msg instance to transform.
  245. * @return {!Object}
  246. * @suppress {unusedLocalVariables} f is only used for nested messages
  247. */
  248. proto.SeasonMetadata.toObject = function(includeInstance, msg) {
  249. var f, obj = {
  250. title: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  251. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  252. };
  253. if (includeInstance) {
  254. obj.$jspbMessageInstance = msg;
  255. }
  256. return obj;
  257. };
  258. }
  259. /**
  260. * Deserializes binary data (in protobuf wire format).
  261. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  262. * @return {!proto.SeasonMetadata}
  263. */
  264. proto.SeasonMetadata.deserializeBinary = function(bytes) {
  265. var reader = new jspb.BinaryReader(bytes);
  266. var msg = new proto.SeasonMetadata;
  267. return proto.SeasonMetadata.deserializeBinaryFromReader(msg, reader);
  268. };
  269. /**
  270. * Deserializes binary data (in protobuf wire format) from the
  271. * given reader into the given message object.
  272. * @param {!proto.SeasonMetadata} msg The message object to deserialize into.
  273. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  274. * @return {!proto.SeasonMetadata}
  275. */
  276. proto.SeasonMetadata.deserializeBinaryFromReader = function(msg, reader) {
  277. while (reader.nextField()) {
  278. if (reader.isEndGroup()) {
  279. break;
  280. }
  281. var field = reader.getFieldNumber();
  282. switch (field) {
  283. case 1:
  284. var value = /** @type {string} */ (reader.readString());
  285. msg.setTitle(value);
  286. break;
  287. case 2:
  288. var value = /** @type {string} */ (reader.readString());
  289. msg.setDescription(value);
  290. break;
  291. default:
  292. reader.skipField();
  293. break;
  294. }
  295. }
  296. return msg;
  297. };
  298. /**
  299. * Serializes the message to binary data (in protobuf wire format).
  300. * @return {!Uint8Array}
  301. */
  302. proto.SeasonMetadata.prototype.serializeBinary = function() {
  303. var writer = new jspb.BinaryWriter();
  304. proto.SeasonMetadata.serializeBinaryToWriter(this, writer);
  305. return writer.getResultBuffer();
  306. };
  307. /**
  308. * Serializes the given message to binary data (in protobuf wire
  309. * format), writing to the given BinaryWriter.
  310. * @param {!proto.SeasonMetadata} message
  311. * @param {!jspb.BinaryWriter} writer
  312. * @suppress {unusedLocalVariables} f is only used for nested messages
  313. */
  314. proto.SeasonMetadata.serializeBinaryToWriter = function(message, writer) {
  315. var f = undefined;
  316. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  317. if (f != null) {
  318. writer.writeString(
  319. 1,
  320. f
  321. );
  322. }
  323. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  324. if (f != null) {
  325. writer.writeString(
  326. 2,
  327. f
  328. );
  329. }
  330. };
  331. /**
  332. * optional string title = 1;
  333. * @return {string}
  334. */
  335. proto.SeasonMetadata.prototype.getTitle = function() {
  336. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  337. };
  338. /**
  339. * @param {string} value
  340. * @return {!proto.SeasonMetadata} returns this
  341. */
  342. proto.SeasonMetadata.prototype.setTitle = function(value) {
  343. return jspb.Message.setField(this, 1, value);
  344. };
  345. /**
  346. * Clears the field making it undefined.
  347. * @return {!proto.SeasonMetadata} returns this
  348. */
  349. proto.SeasonMetadata.prototype.clearTitle = function() {
  350. return jspb.Message.setField(this, 1, undefined);
  351. };
  352. /**
  353. * Returns whether this field is set.
  354. * @return {boolean}
  355. */
  356. proto.SeasonMetadata.prototype.hasTitle = function() {
  357. return jspb.Message.getField(this, 1) != null;
  358. };
  359. /**
  360. * optional string description = 2;
  361. * @return {string}
  362. */
  363. proto.SeasonMetadata.prototype.getDescription = function() {
  364. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  365. };
  366. /**
  367. * @param {string} value
  368. * @return {!proto.SeasonMetadata} returns this
  369. */
  370. proto.SeasonMetadata.prototype.setDescription = function(value) {
  371. return jspb.Message.setField(this, 2, value);
  372. };
  373. /**
  374. * Clears the field making it undefined.
  375. * @return {!proto.SeasonMetadata} returns this
  376. */
  377. proto.SeasonMetadata.prototype.clearDescription = function() {
  378. return jspb.Message.setField(this, 2, undefined);
  379. };
  380. /**
  381. * Returns whether this field is set.
  382. * @return {boolean}
  383. */
  384. proto.SeasonMetadata.prototype.hasDescription = function() {
  385. return jspb.Message.getField(this, 2) != null;
  386. };
  387. goog.object.extend(exports, proto);