Video_pb.js 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474
  1. // source: proto/Video.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.License', null, global);
  16. goog.exportSymbol('proto.MediaType', null, global);
  17. goog.exportSymbol('proto.PublishedBeforeJoystream', null, global);
  18. goog.exportSymbol('proto.VideoMetadata', null, global);
  19. /**
  20. * Generated by JsPbCodeGenerator.
  21. * @param {Array=} opt_data Optional initial data array, typically from a
  22. * server response, or constructed directly in Javascript. The array is used
  23. * in place and becomes part of the constructed object. It is not cloned.
  24. * If no data is provided, the constructed object will be empty, but still
  25. * valid.
  26. * @extends {jspb.Message}
  27. * @constructor
  28. */
  29. proto.PublishedBeforeJoystream = function(opt_data) {
  30. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  31. };
  32. goog.inherits(proto.PublishedBeforeJoystream, jspb.Message);
  33. if (goog.DEBUG && !COMPILED) {
  34. /**
  35. * @public
  36. * @override
  37. */
  38. proto.PublishedBeforeJoystream.displayName = 'proto.PublishedBeforeJoystream';
  39. }
  40. /**
  41. * Generated by JsPbCodeGenerator.
  42. * @param {Array=} opt_data Optional initial data array, typically from a
  43. * server response, or constructed directly in Javascript. The array is used
  44. * in place and becomes part of the constructed object. It is not cloned.
  45. * If no data is provided, the constructed object will be empty, but still
  46. * valid.
  47. * @extends {jspb.Message}
  48. * @constructor
  49. */
  50. proto.License = function(opt_data) {
  51. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  52. };
  53. goog.inherits(proto.License, jspb.Message);
  54. if (goog.DEBUG && !COMPILED) {
  55. /**
  56. * @public
  57. * @override
  58. */
  59. proto.License.displayName = 'proto.License';
  60. }
  61. /**
  62. * Generated by JsPbCodeGenerator.
  63. * @param {Array=} opt_data Optional initial data array, typically from a
  64. * server response, or constructed directly in Javascript. The array is used
  65. * in place and becomes part of the constructed object. It is not cloned.
  66. * If no data is provided, the constructed object will be empty, but still
  67. * valid.
  68. * @extends {jspb.Message}
  69. * @constructor
  70. */
  71. proto.MediaType = function(opt_data) {
  72. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  73. };
  74. goog.inherits(proto.MediaType, jspb.Message);
  75. if (goog.DEBUG && !COMPILED) {
  76. /**
  77. * @public
  78. * @override
  79. */
  80. proto.MediaType.displayName = 'proto.MediaType';
  81. }
  82. /**
  83. * Generated by JsPbCodeGenerator.
  84. * @param {Array=} opt_data Optional initial data array, typically from a
  85. * server response, or constructed directly in Javascript. The array is used
  86. * in place and becomes part of the constructed object. It is not cloned.
  87. * If no data is provided, the constructed object will be empty, but still
  88. * valid.
  89. * @extends {jspb.Message}
  90. * @constructor
  91. */
  92. proto.VideoMetadata = function(opt_data) {
  93. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  94. };
  95. goog.inherits(proto.VideoMetadata, jspb.Message);
  96. if (goog.DEBUG && !COMPILED) {
  97. /**
  98. * @public
  99. * @override
  100. */
  101. proto.VideoMetadata.displayName = 'proto.VideoMetadata';
  102. }
  103. if (jspb.Message.GENERATE_TO_OBJECT) {
  104. /**
  105. * Creates an object representation of this proto.
  106. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  107. * Optional fields that are not set will be set to undefined.
  108. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  109. * For the list of reserved names please see:
  110. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  111. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  112. * JSPB instance for transitional soy proto support:
  113. * http://goto/soy-param-migration
  114. * @return {!Object}
  115. */
  116. proto.PublishedBeforeJoystream.prototype.toObject = function(opt_includeInstance) {
  117. return proto.PublishedBeforeJoystream.toObject(opt_includeInstance, this);
  118. };
  119. /**
  120. * Static version of the {@see toObject} method.
  121. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  122. * the JSPB instance for transitional soy proto support:
  123. * http://goto/soy-param-migration
  124. * @param {!proto.PublishedBeforeJoystream} msg The msg instance to transform.
  125. * @return {!Object}
  126. * @suppress {unusedLocalVariables} f is only used for nested messages
  127. */
  128. proto.PublishedBeforeJoystream.toObject = function(includeInstance, msg) {
  129. var f, obj = {
  130. isPublished: (f = jspb.Message.getBooleanField(msg, 1)) == null ? undefined : f,
  131. timestamp: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  132. };
  133. if (includeInstance) {
  134. obj.$jspbMessageInstance = msg;
  135. }
  136. return obj;
  137. };
  138. }
  139. /**
  140. * Deserializes binary data (in protobuf wire format).
  141. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  142. * @return {!proto.PublishedBeforeJoystream}
  143. */
  144. proto.PublishedBeforeJoystream.deserializeBinary = function(bytes) {
  145. var reader = new jspb.BinaryReader(bytes);
  146. var msg = new proto.PublishedBeforeJoystream;
  147. return proto.PublishedBeforeJoystream.deserializeBinaryFromReader(msg, reader);
  148. };
  149. /**
  150. * Deserializes binary data (in protobuf wire format) from the
  151. * given reader into the given message object.
  152. * @param {!proto.PublishedBeforeJoystream} msg The message object to deserialize into.
  153. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  154. * @return {!proto.PublishedBeforeJoystream}
  155. */
  156. proto.PublishedBeforeJoystream.deserializeBinaryFromReader = function(msg, reader) {
  157. while (reader.nextField()) {
  158. if (reader.isEndGroup()) {
  159. break;
  160. }
  161. var field = reader.getFieldNumber();
  162. switch (field) {
  163. case 1:
  164. var value = /** @type {boolean} */ (reader.readBool());
  165. msg.setIsPublished(value);
  166. break;
  167. case 2:
  168. var value = /** @type {number} */ (reader.readUint32());
  169. msg.setTimestamp(value);
  170. break;
  171. default:
  172. reader.skipField();
  173. break;
  174. }
  175. }
  176. return msg;
  177. };
  178. /**
  179. * Serializes the message to binary data (in protobuf wire format).
  180. * @return {!Uint8Array}
  181. */
  182. proto.PublishedBeforeJoystream.prototype.serializeBinary = function() {
  183. var writer = new jspb.BinaryWriter();
  184. proto.PublishedBeforeJoystream.serializeBinaryToWriter(this, writer);
  185. return writer.getResultBuffer();
  186. };
  187. /**
  188. * Serializes the given message to binary data (in protobuf wire
  189. * format), writing to the given BinaryWriter.
  190. * @param {!proto.PublishedBeforeJoystream} message
  191. * @param {!jspb.BinaryWriter} writer
  192. * @suppress {unusedLocalVariables} f is only used for nested messages
  193. */
  194. proto.PublishedBeforeJoystream.serializeBinaryToWriter = function(message, writer) {
  195. var f = undefined;
  196. f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
  197. if (f != null) {
  198. writer.writeBool(
  199. 1,
  200. f
  201. );
  202. }
  203. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  204. if (f != null) {
  205. writer.writeUint32(
  206. 2,
  207. f
  208. );
  209. }
  210. };
  211. /**
  212. * optional bool is_published = 1;
  213. * @return {boolean}
  214. */
  215. proto.PublishedBeforeJoystream.prototype.getIsPublished = function() {
  216. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  217. };
  218. /**
  219. * @param {boolean} value
  220. * @return {!proto.PublishedBeforeJoystream} returns this
  221. */
  222. proto.PublishedBeforeJoystream.prototype.setIsPublished = function(value) {
  223. return jspb.Message.setField(this, 1, value);
  224. };
  225. /**
  226. * Clears the field making it undefined.
  227. * @return {!proto.PublishedBeforeJoystream} returns this
  228. */
  229. proto.PublishedBeforeJoystream.prototype.clearIsPublished = function() {
  230. return jspb.Message.setField(this, 1, undefined);
  231. };
  232. /**
  233. * Returns whether this field is set.
  234. * @return {boolean}
  235. */
  236. proto.PublishedBeforeJoystream.prototype.hasIsPublished = function() {
  237. return jspb.Message.getField(this, 1) != null;
  238. };
  239. /**
  240. * optional uint32 timestamp = 2;
  241. * @return {number}
  242. */
  243. proto.PublishedBeforeJoystream.prototype.getTimestamp = function() {
  244. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  245. };
  246. /**
  247. * @param {number} value
  248. * @return {!proto.PublishedBeforeJoystream} returns this
  249. */
  250. proto.PublishedBeforeJoystream.prototype.setTimestamp = function(value) {
  251. return jspb.Message.setField(this, 2, value);
  252. };
  253. /**
  254. * Clears the field making it undefined.
  255. * @return {!proto.PublishedBeforeJoystream} returns this
  256. */
  257. proto.PublishedBeforeJoystream.prototype.clearTimestamp = function() {
  258. return jspb.Message.setField(this, 2, undefined);
  259. };
  260. /**
  261. * Returns whether this field is set.
  262. * @return {boolean}
  263. */
  264. proto.PublishedBeforeJoystream.prototype.hasTimestamp = function() {
  265. return jspb.Message.getField(this, 2) != null;
  266. };
  267. if (jspb.Message.GENERATE_TO_OBJECT) {
  268. /**
  269. * Creates an object representation of this proto.
  270. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  271. * Optional fields that are not set will be set to undefined.
  272. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  273. * For the list of reserved names please see:
  274. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  275. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  276. * JSPB instance for transitional soy proto support:
  277. * http://goto/soy-param-migration
  278. * @return {!Object}
  279. */
  280. proto.License.prototype.toObject = function(opt_includeInstance) {
  281. return proto.License.toObject(opt_includeInstance, this);
  282. };
  283. /**
  284. * Static version of the {@see toObject} method.
  285. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  286. * the JSPB instance for transitional soy proto support:
  287. * http://goto/soy-param-migration
  288. * @param {!proto.License} msg The msg instance to transform.
  289. * @return {!Object}
  290. * @suppress {unusedLocalVariables} f is only used for nested messages
  291. */
  292. proto.License.toObject = function(includeInstance, msg) {
  293. var f, obj = {
  294. code: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  295. attribution: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  296. customText: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
  297. };
  298. if (includeInstance) {
  299. obj.$jspbMessageInstance = msg;
  300. }
  301. return obj;
  302. };
  303. }
  304. /**
  305. * Deserializes binary data (in protobuf wire format).
  306. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  307. * @return {!proto.License}
  308. */
  309. proto.License.deserializeBinary = function(bytes) {
  310. var reader = new jspb.BinaryReader(bytes);
  311. var msg = new proto.License;
  312. return proto.License.deserializeBinaryFromReader(msg, reader);
  313. };
  314. /**
  315. * Deserializes binary data (in protobuf wire format) from the
  316. * given reader into the given message object.
  317. * @param {!proto.License} msg The message object to deserialize into.
  318. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  319. * @return {!proto.License}
  320. */
  321. proto.License.deserializeBinaryFromReader = function(msg, reader) {
  322. while (reader.nextField()) {
  323. if (reader.isEndGroup()) {
  324. break;
  325. }
  326. var field = reader.getFieldNumber();
  327. switch (field) {
  328. case 1:
  329. var value = /** @type {number} */ (reader.readInt32());
  330. msg.setCode(value);
  331. break;
  332. case 2:
  333. var value = /** @type {string} */ (reader.readString());
  334. msg.setAttribution(value);
  335. break;
  336. case 3:
  337. var value = /** @type {string} */ (reader.readString());
  338. msg.setCustomText(value);
  339. break;
  340. default:
  341. reader.skipField();
  342. break;
  343. }
  344. }
  345. return msg;
  346. };
  347. /**
  348. * Serializes the message to binary data (in protobuf wire format).
  349. * @return {!Uint8Array}
  350. */
  351. proto.License.prototype.serializeBinary = function() {
  352. var writer = new jspb.BinaryWriter();
  353. proto.License.serializeBinaryToWriter(this, writer);
  354. return writer.getResultBuffer();
  355. };
  356. /**
  357. * Serializes the given message to binary data (in protobuf wire
  358. * format), writing to the given BinaryWriter.
  359. * @param {!proto.License} message
  360. * @param {!jspb.BinaryWriter} writer
  361. * @suppress {unusedLocalVariables} f is only used for nested messages
  362. */
  363. proto.License.serializeBinaryToWriter = function(message, writer) {
  364. var f = undefined;
  365. f = /** @type {number} */ (jspb.Message.getField(message, 1));
  366. if (f != null) {
  367. writer.writeInt32(
  368. 1,
  369. f
  370. );
  371. }
  372. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  373. if (f != null) {
  374. writer.writeString(
  375. 2,
  376. f
  377. );
  378. }
  379. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  380. if (f != null) {
  381. writer.writeString(
  382. 3,
  383. f
  384. );
  385. }
  386. };
  387. /**
  388. * optional int32 code = 1;
  389. * @return {number}
  390. */
  391. proto.License.prototype.getCode = function() {
  392. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  393. };
  394. /**
  395. * @param {number} value
  396. * @return {!proto.License} returns this
  397. */
  398. proto.License.prototype.setCode = function(value) {
  399. return jspb.Message.setField(this, 1, value);
  400. };
  401. /**
  402. * Clears the field making it undefined.
  403. * @return {!proto.License} returns this
  404. */
  405. proto.License.prototype.clearCode = function() {
  406. return jspb.Message.setField(this, 1, undefined);
  407. };
  408. /**
  409. * Returns whether this field is set.
  410. * @return {boolean}
  411. */
  412. proto.License.prototype.hasCode = function() {
  413. return jspb.Message.getField(this, 1) != null;
  414. };
  415. /**
  416. * optional string attribution = 2;
  417. * @return {string}
  418. */
  419. proto.License.prototype.getAttribution = function() {
  420. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  421. };
  422. /**
  423. * @param {string} value
  424. * @return {!proto.License} returns this
  425. */
  426. proto.License.prototype.setAttribution = function(value) {
  427. return jspb.Message.setField(this, 2, value);
  428. };
  429. /**
  430. * Clears the field making it undefined.
  431. * @return {!proto.License} returns this
  432. */
  433. proto.License.prototype.clearAttribution = function() {
  434. return jspb.Message.setField(this, 2, undefined);
  435. };
  436. /**
  437. * Returns whether this field is set.
  438. * @return {boolean}
  439. */
  440. proto.License.prototype.hasAttribution = function() {
  441. return jspb.Message.getField(this, 2) != null;
  442. };
  443. /**
  444. * optional string custom_text = 3;
  445. * @return {string}
  446. */
  447. proto.License.prototype.getCustomText = function() {
  448. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  449. };
  450. /**
  451. * @param {string} value
  452. * @return {!proto.License} returns this
  453. */
  454. proto.License.prototype.setCustomText = function(value) {
  455. return jspb.Message.setField(this, 3, value);
  456. };
  457. /**
  458. * Clears the field making it undefined.
  459. * @return {!proto.License} returns this
  460. */
  461. proto.License.prototype.clearCustomText = function() {
  462. return jspb.Message.setField(this, 3, undefined);
  463. };
  464. /**
  465. * Returns whether this field is set.
  466. * @return {boolean}
  467. */
  468. proto.License.prototype.hasCustomText = function() {
  469. return jspb.Message.getField(this, 3) != null;
  470. };
  471. if (jspb.Message.GENERATE_TO_OBJECT) {
  472. /**
  473. * Creates an object representation of this proto.
  474. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  475. * Optional fields that are not set will be set to undefined.
  476. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  477. * For the list of reserved names please see:
  478. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  479. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  480. * JSPB instance for transitional soy proto support:
  481. * http://goto/soy-param-migration
  482. * @return {!Object}
  483. */
  484. proto.MediaType.prototype.toObject = function(opt_includeInstance) {
  485. return proto.MediaType.toObject(opt_includeInstance, this);
  486. };
  487. /**
  488. * Static version of the {@see toObject} method.
  489. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  490. * the JSPB instance for transitional soy proto support:
  491. * http://goto/soy-param-migration
  492. * @param {!proto.MediaType} msg The msg instance to transform.
  493. * @return {!Object}
  494. * @suppress {unusedLocalVariables} f is only used for nested messages
  495. */
  496. proto.MediaType.toObject = function(includeInstance, msg) {
  497. var f, obj = {
  498. codecName: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  499. container: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  500. mimeMediaType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
  501. };
  502. if (includeInstance) {
  503. obj.$jspbMessageInstance = msg;
  504. }
  505. return obj;
  506. };
  507. }
  508. /**
  509. * Deserializes binary data (in protobuf wire format).
  510. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  511. * @return {!proto.MediaType}
  512. */
  513. proto.MediaType.deserializeBinary = function(bytes) {
  514. var reader = new jspb.BinaryReader(bytes);
  515. var msg = new proto.MediaType;
  516. return proto.MediaType.deserializeBinaryFromReader(msg, reader);
  517. };
  518. /**
  519. * Deserializes binary data (in protobuf wire format) from the
  520. * given reader into the given message object.
  521. * @param {!proto.MediaType} msg The message object to deserialize into.
  522. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  523. * @return {!proto.MediaType}
  524. */
  525. proto.MediaType.deserializeBinaryFromReader = function(msg, reader) {
  526. while (reader.nextField()) {
  527. if (reader.isEndGroup()) {
  528. break;
  529. }
  530. var field = reader.getFieldNumber();
  531. switch (field) {
  532. case 1:
  533. var value = /** @type {string} */ (reader.readString());
  534. msg.setCodecName(value);
  535. break;
  536. case 2:
  537. var value = /** @type {string} */ (reader.readString());
  538. msg.setContainer(value);
  539. break;
  540. case 3:
  541. var value = /** @type {string} */ (reader.readString());
  542. msg.setMimeMediaType(value);
  543. break;
  544. default:
  545. reader.skipField();
  546. break;
  547. }
  548. }
  549. return msg;
  550. };
  551. /**
  552. * Serializes the message to binary data (in protobuf wire format).
  553. * @return {!Uint8Array}
  554. */
  555. proto.MediaType.prototype.serializeBinary = function() {
  556. var writer = new jspb.BinaryWriter();
  557. proto.MediaType.serializeBinaryToWriter(this, writer);
  558. return writer.getResultBuffer();
  559. };
  560. /**
  561. * Serializes the given message to binary data (in protobuf wire
  562. * format), writing to the given BinaryWriter.
  563. * @param {!proto.MediaType} message
  564. * @param {!jspb.BinaryWriter} writer
  565. * @suppress {unusedLocalVariables} f is only used for nested messages
  566. */
  567. proto.MediaType.serializeBinaryToWriter = function(message, writer) {
  568. var f = undefined;
  569. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  570. if (f != null) {
  571. writer.writeString(
  572. 1,
  573. f
  574. );
  575. }
  576. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  577. if (f != null) {
  578. writer.writeString(
  579. 2,
  580. f
  581. );
  582. }
  583. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  584. if (f != null) {
  585. writer.writeString(
  586. 3,
  587. f
  588. );
  589. }
  590. };
  591. /**
  592. * optional string codec_name = 1;
  593. * @return {string}
  594. */
  595. proto.MediaType.prototype.getCodecName = function() {
  596. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  597. };
  598. /**
  599. * @param {string} value
  600. * @return {!proto.MediaType} returns this
  601. */
  602. proto.MediaType.prototype.setCodecName = function(value) {
  603. return jspb.Message.setField(this, 1, value);
  604. };
  605. /**
  606. * Clears the field making it undefined.
  607. * @return {!proto.MediaType} returns this
  608. */
  609. proto.MediaType.prototype.clearCodecName = function() {
  610. return jspb.Message.setField(this, 1, undefined);
  611. };
  612. /**
  613. * Returns whether this field is set.
  614. * @return {boolean}
  615. */
  616. proto.MediaType.prototype.hasCodecName = function() {
  617. return jspb.Message.getField(this, 1) != null;
  618. };
  619. /**
  620. * optional string container = 2;
  621. * @return {string}
  622. */
  623. proto.MediaType.prototype.getContainer = function() {
  624. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  625. };
  626. /**
  627. * @param {string} value
  628. * @return {!proto.MediaType} returns this
  629. */
  630. proto.MediaType.prototype.setContainer = function(value) {
  631. return jspb.Message.setField(this, 2, value);
  632. };
  633. /**
  634. * Clears the field making it undefined.
  635. * @return {!proto.MediaType} returns this
  636. */
  637. proto.MediaType.prototype.clearContainer = function() {
  638. return jspb.Message.setField(this, 2, undefined);
  639. };
  640. /**
  641. * Returns whether this field is set.
  642. * @return {boolean}
  643. */
  644. proto.MediaType.prototype.hasContainer = function() {
  645. return jspb.Message.getField(this, 2) != null;
  646. };
  647. /**
  648. * optional string mime_media_type = 3;
  649. * @return {string}
  650. */
  651. proto.MediaType.prototype.getMimeMediaType = function() {
  652. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  653. };
  654. /**
  655. * @param {string} value
  656. * @return {!proto.MediaType} returns this
  657. */
  658. proto.MediaType.prototype.setMimeMediaType = function(value) {
  659. return jspb.Message.setField(this, 3, value);
  660. };
  661. /**
  662. * Clears the field making it undefined.
  663. * @return {!proto.MediaType} returns this
  664. */
  665. proto.MediaType.prototype.clearMimeMediaType = function() {
  666. return jspb.Message.setField(this, 3, undefined);
  667. };
  668. /**
  669. * Returns whether this field is set.
  670. * @return {boolean}
  671. */
  672. proto.MediaType.prototype.hasMimeMediaType = function() {
  673. return jspb.Message.getField(this, 3) != 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.VideoMetadata.prototype.toObject = function(opt_includeInstance) {
  689. return proto.VideoMetadata.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.VideoMetadata} msg The msg instance to transform.
  697. * @return {!Object}
  698. * @suppress {unusedLocalVariables} f is only used for nested messages
  699. */
  700. proto.VideoMetadata.toObject = function(includeInstance, msg) {
  701. var f, obj = {
  702. title: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  703. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  704. duration: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  705. mediaPixelHeight: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  706. mediaPixelWidth: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
  707. mediaType: (f = msg.getMediaType()) && proto.MediaType.toObject(includeInstance, f),
  708. language: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
  709. license: (f = msg.getLicense()) && proto.License.toObject(includeInstance, f),
  710. publishedBeforeJoystream: (f = msg.getPublishedBeforeJoystream()) && proto.PublishedBeforeJoystream.toObject(includeInstance, f),
  711. hasMarketing: (f = jspb.Message.getBooleanField(msg, 10)) == null ? undefined : f,
  712. isPublic: (f = jspb.Message.getBooleanField(msg, 11)) == null ? undefined : f,
  713. isExplicit: (f = jspb.Message.getBooleanField(msg, 12)) == null ? undefined : f
  714. };
  715. if (includeInstance) {
  716. obj.$jspbMessageInstance = msg;
  717. }
  718. return obj;
  719. };
  720. }
  721. /**
  722. * Deserializes binary data (in protobuf wire format).
  723. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  724. * @return {!proto.VideoMetadata}
  725. */
  726. proto.VideoMetadata.deserializeBinary = function(bytes) {
  727. var reader = new jspb.BinaryReader(bytes);
  728. var msg = new proto.VideoMetadata;
  729. return proto.VideoMetadata.deserializeBinaryFromReader(msg, reader);
  730. };
  731. /**
  732. * Deserializes binary data (in protobuf wire format) from the
  733. * given reader into the given message object.
  734. * @param {!proto.VideoMetadata} msg The message object to deserialize into.
  735. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  736. * @return {!proto.VideoMetadata}
  737. */
  738. proto.VideoMetadata.deserializeBinaryFromReader = function(msg, reader) {
  739. while (reader.nextField()) {
  740. if (reader.isEndGroup()) {
  741. break;
  742. }
  743. var field = reader.getFieldNumber();
  744. switch (field) {
  745. case 1:
  746. var value = /** @type {string} */ (reader.readString());
  747. msg.setTitle(value);
  748. break;
  749. case 2:
  750. var value = /** @type {string} */ (reader.readString());
  751. msg.setDescription(value);
  752. break;
  753. case 3:
  754. var value = /** @type {number} */ (reader.readInt32());
  755. msg.setDuration(value);
  756. break;
  757. case 4:
  758. var value = /** @type {number} */ (reader.readInt32());
  759. msg.setMediaPixelHeight(value);
  760. break;
  761. case 5:
  762. var value = /** @type {number} */ (reader.readInt32());
  763. msg.setMediaPixelWidth(value);
  764. break;
  765. case 6:
  766. var value = new proto.MediaType;
  767. reader.readMessage(value,proto.MediaType.deserializeBinaryFromReader);
  768. msg.setMediaType(value);
  769. break;
  770. case 7:
  771. var value = /** @type {string} */ (reader.readString());
  772. msg.setLanguage(value);
  773. break;
  774. case 8:
  775. var value = new proto.License;
  776. reader.readMessage(value,proto.License.deserializeBinaryFromReader);
  777. msg.setLicense(value);
  778. break;
  779. case 9:
  780. var value = new proto.PublishedBeforeJoystream;
  781. reader.readMessage(value,proto.PublishedBeforeJoystream.deserializeBinaryFromReader);
  782. msg.setPublishedBeforeJoystream(value);
  783. break;
  784. case 10:
  785. var value = /** @type {boolean} */ (reader.readBool());
  786. msg.setHasMarketing(value);
  787. break;
  788. case 11:
  789. var value = /** @type {boolean} */ (reader.readBool());
  790. msg.setIsPublic(value);
  791. break;
  792. case 12:
  793. var value = /** @type {boolean} */ (reader.readBool());
  794. msg.setIsExplicit(value);
  795. break;
  796. default:
  797. reader.skipField();
  798. break;
  799. }
  800. }
  801. return msg;
  802. };
  803. /**
  804. * Serializes the message to binary data (in protobuf wire format).
  805. * @return {!Uint8Array}
  806. */
  807. proto.VideoMetadata.prototype.serializeBinary = function() {
  808. var writer = new jspb.BinaryWriter();
  809. proto.VideoMetadata.serializeBinaryToWriter(this, writer);
  810. return writer.getResultBuffer();
  811. };
  812. /**
  813. * Serializes the given message to binary data (in protobuf wire
  814. * format), writing to the given BinaryWriter.
  815. * @param {!proto.VideoMetadata} message
  816. * @param {!jspb.BinaryWriter} writer
  817. * @suppress {unusedLocalVariables} f is only used for nested messages
  818. */
  819. proto.VideoMetadata.serializeBinaryToWriter = function(message, writer) {
  820. var f = undefined;
  821. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  822. if (f != null) {
  823. writer.writeString(
  824. 1,
  825. f
  826. );
  827. }
  828. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  829. if (f != null) {
  830. writer.writeString(
  831. 2,
  832. f
  833. );
  834. }
  835. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  836. if (f != null) {
  837. writer.writeInt32(
  838. 3,
  839. f
  840. );
  841. }
  842. f = /** @type {number} */ (jspb.Message.getField(message, 4));
  843. if (f != null) {
  844. writer.writeInt32(
  845. 4,
  846. f
  847. );
  848. }
  849. f = /** @type {number} */ (jspb.Message.getField(message, 5));
  850. if (f != null) {
  851. writer.writeInt32(
  852. 5,
  853. f
  854. );
  855. }
  856. f = message.getMediaType();
  857. if (f != null) {
  858. writer.writeMessage(
  859. 6,
  860. f,
  861. proto.MediaType.serializeBinaryToWriter
  862. );
  863. }
  864. f = /** @type {string} */ (jspb.Message.getField(message, 7));
  865. if (f != null) {
  866. writer.writeString(
  867. 7,
  868. f
  869. );
  870. }
  871. f = message.getLicense();
  872. if (f != null) {
  873. writer.writeMessage(
  874. 8,
  875. f,
  876. proto.License.serializeBinaryToWriter
  877. );
  878. }
  879. f = message.getPublishedBeforeJoystream();
  880. if (f != null) {
  881. writer.writeMessage(
  882. 9,
  883. f,
  884. proto.PublishedBeforeJoystream.serializeBinaryToWriter
  885. );
  886. }
  887. f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
  888. if (f != null) {
  889. writer.writeBool(
  890. 10,
  891. f
  892. );
  893. }
  894. f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
  895. if (f != null) {
  896. writer.writeBool(
  897. 11,
  898. f
  899. );
  900. }
  901. f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
  902. if (f != null) {
  903. writer.writeBool(
  904. 12,
  905. f
  906. );
  907. }
  908. };
  909. /**
  910. * optional string title = 1;
  911. * @return {string}
  912. */
  913. proto.VideoMetadata.prototype.getTitle = function() {
  914. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  915. };
  916. /**
  917. * @param {string} value
  918. * @return {!proto.VideoMetadata} returns this
  919. */
  920. proto.VideoMetadata.prototype.setTitle = function(value) {
  921. return jspb.Message.setField(this, 1, value);
  922. };
  923. /**
  924. * Clears the field making it undefined.
  925. * @return {!proto.VideoMetadata} returns this
  926. */
  927. proto.VideoMetadata.prototype.clearTitle = function() {
  928. return jspb.Message.setField(this, 1, undefined);
  929. };
  930. /**
  931. * Returns whether this field is set.
  932. * @return {boolean}
  933. */
  934. proto.VideoMetadata.prototype.hasTitle = function() {
  935. return jspb.Message.getField(this, 1) != null;
  936. };
  937. /**
  938. * optional string description = 2;
  939. * @return {string}
  940. */
  941. proto.VideoMetadata.prototype.getDescription = function() {
  942. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  943. };
  944. /**
  945. * @param {string} value
  946. * @return {!proto.VideoMetadata} returns this
  947. */
  948. proto.VideoMetadata.prototype.setDescription = function(value) {
  949. return jspb.Message.setField(this, 2, value);
  950. };
  951. /**
  952. * Clears the field making it undefined.
  953. * @return {!proto.VideoMetadata} returns this
  954. */
  955. proto.VideoMetadata.prototype.clearDescription = function() {
  956. return jspb.Message.setField(this, 2, undefined);
  957. };
  958. /**
  959. * Returns whether this field is set.
  960. * @return {boolean}
  961. */
  962. proto.VideoMetadata.prototype.hasDescription = function() {
  963. return jspb.Message.getField(this, 2) != null;
  964. };
  965. /**
  966. * optional int32 duration = 3;
  967. * @return {number}
  968. */
  969. proto.VideoMetadata.prototype.getDuration = function() {
  970. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  971. };
  972. /**
  973. * @param {number} value
  974. * @return {!proto.VideoMetadata} returns this
  975. */
  976. proto.VideoMetadata.prototype.setDuration = function(value) {
  977. return jspb.Message.setField(this, 3, value);
  978. };
  979. /**
  980. * Clears the field making it undefined.
  981. * @return {!proto.VideoMetadata} returns this
  982. */
  983. proto.VideoMetadata.prototype.clearDuration = function() {
  984. return jspb.Message.setField(this, 3, undefined);
  985. };
  986. /**
  987. * Returns whether this field is set.
  988. * @return {boolean}
  989. */
  990. proto.VideoMetadata.prototype.hasDuration = function() {
  991. return jspb.Message.getField(this, 3) != null;
  992. };
  993. /**
  994. * optional int32 media_pixel_height = 4;
  995. * @return {number}
  996. */
  997. proto.VideoMetadata.prototype.getMediaPixelHeight = function() {
  998. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  999. };
  1000. /**
  1001. * @param {number} value
  1002. * @return {!proto.VideoMetadata} returns this
  1003. */
  1004. proto.VideoMetadata.prototype.setMediaPixelHeight = function(value) {
  1005. return jspb.Message.setField(this, 4, value);
  1006. };
  1007. /**
  1008. * Clears the field making it undefined.
  1009. * @return {!proto.VideoMetadata} returns this
  1010. */
  1011. proto.VideoMetadata.prototype.clearMediaPixelHeight = function() {
  1012. return jspb.Message.setField(this, 4, undefined);
  1013. };
  1014. /**
  1015. * Returns whether this field is set.
  1016. * @return {boolean}
  1017. */
  1018. proto.VideoMetadata.prototype.hasMediaPixelHeight = function() {
  1019. return jspb.Message.getField(this, 4) != null;
  1020. };
  1021. /**
  1022. * optional int32 media_pixel_width = 5;
  1023. * @return {number}
  1024. */
  1025. proto.VideoMetadata.prototype.getMediaPixelWidth = function() {
  1026. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  1027. };
  1028. /**
  1029. * @param {number} value
  1030. * @return {!proto.VideoMetadata} returns this
  1031. */
  1032. proto.VideoMetadata.prototype.setMediaPixelWidth = function(value) {
  1033. return jspb.Message.setField(this, 5, value);
  1034. };
  1035. /**
  1036. * Clears the field making it undefined.
  1037. * @return {!proto.VideoMetadata} returns this
  1038. */
  1039. proto.VideoMetadata.prototype.clearMediaPixelWidth = function() {
  1040. return jspb.Message.setField(this, 5, undefined);
  1041. };
  1042. /**
  1043. * Returns whether this field is set.
  1044. * @return {boolean}
  1045. */
  1046. proto.VideoMetadata.prototype.hasMediaPixelWidth = function() {
  1047. return jspb.Message.getField(this, 5) != null;
  1048. };
  1049. /**
  1050. * optional MediaType media_type = 6;
  1051. * @return {?proto.MediaType}
  1052. */
  1053. proto.VideoMetadata.prototype.getMediaType = function() {
  1054. return /** @type{?proto.MediaType} */ (
  1055. jspb.Message.getWrapperField(this, proto.MediaType, 6));
  1056. };
  1057. /**
  1058. * @param {?proto.MediaType|undefined} value
  1059. * @return {!proto.VideoMetadata} returns this
  1060. */
  1061. proto.VideoMetadata.prototype.setMediaType = function(value) {
  1062. return jspb.Message.setWrapperField(this, 6, value);
  1063. };
  1064. /**
  1065. * Clears the message field making it undefined.
  1066. * @return {!proto.VideoMetadata} returns this
  1067. */
  1068. proto.VideoMetadata.prototype.clearMediaType = function() {
  1069. return this.setMediaType(undefined);
  1070. };
  1071. /**
  1072. * Returns whether this field is set.
  1073. * @return {boolean}
  1074. */
  1075. proto.VideoMetadata.prototype.hasMediaType = function() {
  1076. return jspb.Message.getField(this, 6) != null;
  1077. };
  1078. /**
  1079. * optional string language = 7;
  1080. * @return {string}
  1081. */
  1082. proto.VideoMetadata.prototype.getLanguage = function() {
  1083. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  1084. };
  1085. /**
  1086. * @param {string} value
  1087. * @return {!proto.VideoMetadata} returns this
  1088. */
  1089. proto.VideoMetadata.prototype.setLanguage = function(value) {
  1090. return jspb.Message.setField(this, 7, value);
  1091. };
  1092. /**
  1093. * Clears the field making it undefined.
  1094. * @return {!proto.VideoMetadata} returns this
  1095. */
  1096. proto.VideoMetadata.prototype.clearLanguage = function() {
  1097. return jspb.Message.setField(this, 7, undefined);
  1098. };
  1099. /**
  1100. * Returns whether this field is set.
  1101. * @return {boolean}
  1102. */
  1103. proto.VideoMetadata.prototype.hasLanguage = function() {
  1104. return jspb.Message.getField(this, 7) != null;
  1105. };
  1106. /**
  1107. * optional License license = 8;
  1108. * @return {?proto.License}
  1109. */
  1110. proto.VideoMetadata.prototype.getLicense = function() {
  1111. return /** @type{?proto.License} */ (
  1112. jspb.Message.getWrapperField(this, proto.License, 8));
  1113. };
  1114. /**
  1115. * @param {?proto.License|undefined} value
  1116. * @return {!proto.VideoMetadata} returns this
  1117. */
  1118. proto.VideoMetadata.prototype.setLicense = function(value) {
  1119. return jspb.Message.setWrapperField(this, 8, value);
  1120. };
  1121. /**
  1122. * Clears the message field making it undefined.
  1123. * @return {!proto.VideoMetadata} returns this
  1124. */
  1125. proto.VideoMetadata.prototype.clearLicense = function() {
  1126. return this.setLicense(undefined);
  1127. };
  1128. /**
  1129. * Returns whether this field is set.
  1130. * @return {boolean}
  1131. */
  1132. proto.VideoMetadata.prototype.hasLicense = function() {
  1133. return jspb.Message.getField(this, 8) != null;
  1134. };
  1135. /**
  1136. * optional PublishedBeforeJoystream published_before_joystream = 9;
  1137. * @return {?proto.PublishedBeforeJoystream}
  1138. */
  1139. proto.VideoMetadata.prototype.getPublishedBeforeJoystream = function() {
  1140. return /** @type{?proto.PublishedBeforeJoystream} */ (
  1141. jspb.Message.getWrapperField(this, proto.PublishedBeforeJoystream, 9));
  1142. };
  1143. /**
  1144. * @param {?proto.PublishedBeforeJoystream|undefined} value
  1145. * @return {!proto.VideoMetadata} returns this
  1146. */
  1147. proto.VideoMetadata.prototype.setPublishedBeforeJoystream = function(value) {
  1148. return jspb.Message.setWrapperField(this, 9, value);
  1149. };
  1150. /**
  1151. * Clears the message field making it undefined.
  1152. * @return {!proto.VideoMetadata} returns this
  1153. */
  1154. proto.VideoMetadata.prototype.clearPublishedBeforeJoystream = function() {
  1155. return this.setPublishedBeforeJoystream(undefined);
  1156. };
  1157. /**
  1158. * Returns whether this field is set.
  1159. * @return {boolean}
  1160. */
  1161. proto.VideoMetadata.prototype.hasPublishedBeforeJoystream = function() {
  1162. return jspb.Message.getField(this, 9) != null;
  1163. };
  1164. /**
  1165. * optional bool has_marketing = 10;
  1166. * @return {boolean}
  1167. */
  1168. proto.VideoMetadata.prototype.getHasMarketing = function() {
  1169. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
  1170. };
  1171. /**
  1172. * @param {boolean} value
  1173. * @return {!proto.VideoMetadata} returns this
  1174. */
  1175. proto.VideoMetadata.prototype.setHasMarketing = function(value) {
  1176. return jspb.Message.setField(this, 10, value);
  1177. };
  1178. /**
  1179. * Clears the field making it undefined.
  1180. * @return {!proto.VideoMetadata} returns this
  1181. */
  1182. proto.VideoMetadata.prototype.clearHasMarketing = function() {
  1183. return jspb.Message.setField(this, 10, undefined);
  1184. };
  1185. /**
  1186. * Returns whether this field is set.
  1187. * @return {boolean}
  1188. */
  1189. proto.VideoMetadata.prototype.hasHasMarketing = function() {
  1190. return jspb.Message.getField(this, 10) != null;
  1191. };
  1192. /**
  1193. * optional bool is_public = 11;
  1194. * @return {boolean}
  1195. */
  1196. proto.VideoMetadata.prototype.getIsPublic = function() {
  1197. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
  1198. };
  1199. /**
  1200. * @param {boolean} value
  1201. * @return {!proto.VideoMetadata} returns this
  1202. */
  1203. proto.VideoMetadata.prototype.setIsPublic = function(value) {
  1204. return jspb.Message.setField(this, 11, value);
  1205. };
  1206. /**
  1207. * Clears the field making it undefined.
  1208. * @return {!proto.VideoMetadata} returns this
  1209. */
  1210. proto.VideoMetadata.prototype.clearIsPublic = function() {
  1211. return jspb.Message.setField(this, 11, undefined);
  1212. };
  1213. /**
  1214. * Returns whether this field is set.
  1215. * @return {boolean}
  1216. */
  1217. proto.VideoMetadata.prototype.hasIsPublic = function() {
  1218. return jspb.Message.getField(this, 11) != null;
  1219. };
  1220. /**
  1221. * optional bool is_explicit = 12;
  1222. * @return {boolean}
  1223. */
  1224. proto.VideoMetadata.prototype.getIsExplicit = function() {
  1225. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
  1226. };
  1227. /**
  1228. * @param {boolean} value
  1229. * @return {!proto.VideoMetadata} returns this
  1230. */
  1231. proto.VideoMetadata.prototype.setIsExplicit = function(value) {
  1232. return jspb.Message.setField(this, 12, value);
  1233. };
  1234. /**
  1235. * Clears the field making it undefined.
  1236. * @return {!proto.VideoMetadata} returns this
  1237. */
  1238. proto.VideoMetadata.prototype.clearIsExplicit = function() {
  1239. return jspb.Message.setField(this, 12, undefined);
  1240. };
  1241. /**
  1242. * Returns whether this field is set.
  1243. * @return {boolean}
  1244. */
  1245. proto.VideoMetadata.prototype.hasIsExplicit = function() {
  1246. return jspb.Message.getField(this, 12) != null;
  1247. };
  1248. goog.object.extend(exports, proto);