Video_pb.js 37 KB

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