WorkingGroups_pb.js 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  1. // source: proto/WorkingGroups.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {missingRequire} reports error on implicit type usages.
  6. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  7. * field starts with 'MSG_' and isn't a translatable message.
  8. * @public
  9. */
  10. // GENERATED CODE -- DO NOT EDIT!
  11. /* eslint-disable */
  12. // @ts-nocheck
  13. var jspb = require('google-protobuf');
  14. var goog = jspb;
  15. var global = Function('return this')();
  16. goog.exportSymbol('proto.ApplicationMetadata', null, global);
  17. goog.exportSymbol('proto.OpeningMetadata', null, global);
  18. goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion', null, global);
  19. goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion.InputType', null, global);
  20. goog.exportSymbol('proto.WorkingGroupStatusMetadata', null, global);
  21. /**
  22. * Generated by JsPbCodeGenerator.
  23. * @param {Array=} opt_data Optional initial data array, typically from a
  24. * server response, or constructed directly in Javascript. The array is used
  25. * in place and becomes part of the constructed object. It is not cloned.
  26. * If no data is provided, the constructed object will be empty, but still
  27. * valid.
  28. * @extends {jspb.Message}
  29. * @constructor
  30. */
  31. proto.OpeningMetadata = function(opt_data) {
  32. jspb.Message.initialize(this, opt_data, 0, -1, proto.OpeningMetadata.repeatedFields_, null);
  33. };
  34. goog.inherits(proto.OpeningMetadata, jspb.Message);
  35. if (goog.DEBUG && !COMPILED) {
  36. /**
  37. * @public
  38. * @override
  39. */
  40. proto.OpeningMetadata.displayName = 'proto.OpeningMetadata';
  41. }
  42. /**
  43. * Generated by JsPbCodeGenerator.
  44. * @param {Array=} opt_data Optional initial data array, typically from a
  45. * server response, or constructed directly in Javascript. The array is used
  46. * in place and becomes part of the constructed object. It is not cloned.
  47. * If no data is provided, the constructed object will be empty, but still
  48. * valid.
  49. * @extends {jspb.Message}
  50. * @constructor
  51. */
  52. proto.OpeningMetadata.ApplicationFormQuestion = function(opt_data) {
  53. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  54. };
  55. goog.inherits(proto.OpeningMetadata.ApplicationFormQuestion, jspb.Message);
  56. if (goog.DEBUG && !COMPILED) {
  57. /**
  58. * @public
  59. * @override
  60. */
  61. proto.OpeningMetadata.ApplicationFormQuestion.displayName = 'proto.OpeningMetadata.ApplicationFormQuestion';
  62. }
  63. /**
  64. * Generated by JsPbCodeGenerator.
  65. * @param {Array=} opt_data Optional initial data array, typically from a
  66. * server response, or constructed directly in Javascript. The array is used
  67. * in place and becomes part of the constructed object. It is not cloned.
  68. * If no data is provided, the constructed object will be empty, but still
  69. * valid.
  70. * @extends {jspb.Message}
  71. * @constructor
  72. */
  73. proto.ApplicationMetadata = function(opt_data) {
  74. jspb.Message.initialize(this, opt_data, 0, -1, proto.ApplicationMetadata.repeatedFields_, null);
  75. };
  76. goog.inherits(proto.ApplicationMetadata, jspb.Message);
  77. if (goog.DEBUG && !COMPILED) {
  78. /**
  79. * @public
  80. * @override
  81. */
  82. proto.ApplicationMetadata.displayName = 'proto.ApplicationMetadata';
  83. }
  84. /**
  85. * Generated by JsPbCodeGenerator.
  86. * @param {Array=} opt_data Optional initial data array, typically from a
  87. * server response, or constructed directly in Javascript. The array is used
  88. * in place and becomes part of the constructed object. It is not cloned.
  89. * If no data is provided, the constructed object will be empty, but still
  90. * valid.
  91. * @extends {jspb.Message}
  92. * @constructor
  93. */
  94. proto.WorkingGroupStatusMetadata = function(opt_data) {
  95. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  96. };
  97. goog.inherits(proto.WorkingGroupStatusMetadata, jspb.Message);
  98. if (goog.DEBUG && !COMPILED) {
  99. /**
  100. * @public
  101. * @override
  102. */
  103. proto.WorkingGroupStatusMetadata.displayName = 'proto.WorkingGroupStatusMetadata';
  104. }
  105. /**
  106. * List of repeated fields within this message type.
  107. * @private {!Array<number>}
  108. * @const
  109. */
  110. proto.OpeningMetadata.repeatedFields_ = [6];
  111. if (jspb.Message.GENERATE_TO_OBJECT) {
  112. /**
  113. * Creates an object representation of this proto.
  114. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  115. * Optional fields that are not set will be set to undefined.
  116. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  117. * For the list of reserved names please see:
  118. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  119. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  120. * JSPB instance for transitional soy proto support:
  121. * http://goto/soy-param-migration
  122. * @return {!Object}
  123. */
  124. proto.OpeningMetadata.prototype.toObject = function(opt_includeInstance) {
  125. return proto.OpeningMetadata.toObject(opt_includeInstance, this);
  126. };
  127. /**
  128. * Static version of the {@see toObject} method.
  129. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  130. * the JSPB instance for transitional soy proto support:
  131. * http://goto/soy-param-migration
  132. * @param {!proto.OpeningMetadata} msg The msg instance to transform.
  133. * @return {!Object}
  134. * @suppress {unusedLocalVariables} f is only used for nested messages
  135. */
  136. proto.OpeningMetadata.toObject = function(includeInstance, msg) {
  137. var f, obj = {
  138. shortDescription: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  139. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  140. hiringLimit: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  141. expectedDuration: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  142. applicationDetails: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
  143. applicationFormQuestionsList: jspb.Message.toObjectList(msg.getApplicationFormQuestionsList(),
  144. proto.OpeningMetadata.ApplicationFormQuestion.toObject, includeInstance)
  145. };
  146. if (includeInstance) {
  147. obj.$jspbMessageInstance = msg;
  148. }
  149. return obj;
  150. };
  151. }
  152. /**
  153. * Deserializes binary data (in protobuf wire format).
  154. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  155. * @return {!proto.OpeningMetadata}
  156. */
  157. proto.OpeningMetadata.deserializeBinary = function(bytes) {
  158. var reader = new jspb.BinaryReader(bytes);
  159. var msg = new proto.OpeningMetadata;
  160. return proto.OpeningMetadata.deserializeBinaryFromReader(msg, reader);
  161. };
  162. /**
  163. * Deserializes binary data (in protobuf wire format) from the
  164. * given reader into the given message object.
  165. * @param {!proto.OpeningMetadata} msg The message object to deserialize into.
  166. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  167. * @return {!proto.OpeningMetadata}
  168. */
  169. proto.OpeningMetadata.deserializeBinaryFromReader = function(msg, reader) {
  170. while (reader.nextField()) {
  171. if (reader.isEndGroup()) {
  172. break;
  173. }
  174. var field = reader.getFieldNumber();
  175. switch (field) {
  176. case 1:
  177. var value = /** @type {string} */ (reader.readString());
  178. msg.setShortDescription(value);
  179. break;
  180. case 2:
  181. var value = /** @type {string} */ (reader.readString());
  182. msg.setDescription(value);
  183. break;
  184. case 3:
  185. var value = /** @type {number} */ (reader.readUint32());
  186. msg.setHiringLimit(value);
  187. break;
  188. case 4:
  189. var value = /** @type {number} */ (reader.readUint32());
  190. msg.setExpectedDuration(value);
  191. break;
  192. case 5:
  193. var value = /** @type {string} */ (reader.readString());
  194. msg.setApplicationDetails(value);
  195. break;
  196. case 6:
  197. var value = new proto.OpeningMetadata.ApplicationFormQuestion;
  198. reader.readMessage(value,proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader);
  199. msg.addApplicationFormQuestions(value);
  200. break;
  201. default:
  202. reader.skipField();
  203. break;
  204. }
  205. }
  206. return msg;
  207. };
  208. /**
  209. * Serializes the message to binary data (in protobuf wire format).
  210. * @return {!Uint8Array}
  211. */
  212. proto.OpeningMetadata.prototype.serializeBinary = function() {
  213. var writer = new jspb.BinaryWriter();
  214. proto.OpeningMetadata.serializeBinaryToWriter(this, writer);
  215. return writer.getResultBuffer();
  216. };
  217. /**
  218. * Serializes the given message to binary data (in protobuf wire
  219. * format), writing to the given BinaryWriter.
  220. * @param {!proto.OpeningMetadata} message
  221. * @param {!jspb.BinaryWriter} writer
  222. * @suppress {unusedLocalVariables} f is only used for nested messages
  223. */
  224. proto.OpeningMetadata.serializeBinaryToWriter = function(message, writer) {
  225. var f = undefined;
  226. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  227. if (f != null) {
  228. writer.writeString(
  229. 1,
  230. f
  231. );
  232. }
  233. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  234. if (f != null) {
  235. writer.writeString(
  236. 2,
  237. f
  238. );
  239. }
  240. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  241. if (f != null) {
  242. writer.writeUint32(
  243. 3,
  244. f
  245. );
  246. }
  247. f = /** @type {number} */ (jspb.Message.getField(message, 4));
  248. if (f != null) {
  249. writer.writeUint32(
  250. 4,
  251. f
  252. );
  253. }
  254. f = /** @type {string} */ (jspb.Message.getField(message, 5));
  255. if (f != null) {
  256. writer.writeString(
  257. 5,
  258. f
  259. );
  260. }
  261. f = message.getApplicationFormQuestionsList();
  262. if (f.length > 0) {
  263. writer.writeRepeatedMessage(
  264. 6,
  265. f,
  266. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter
  267. );
  268. }
  269. };
  270. if (jspb.Message.GENERATE_TO_OBJECT) {
  271. /**
  272. * Creates an object representation of this proto.
  273. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  274. * Optional fields that are not set will be set to undefined.
  275. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  276. * For the list of reserved names please see:
  277. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  278. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  279. * JSPB instance for transitional soy proto support:
  280. * http://goto/soy-param-migration
  281. * @return {!Object}
  282. */
  283. proto.OpeningMetadata.ApplicationFormQuestion.prototype.toObject = function(opt_includeInstance) {
  284. return proto.OpeningMetadata.ApplicationFormQuestion.toObject(opt_includeInstance, this);
  285. };
  286. /**
  287. * Static version of the {@see toObject} method.
  288. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  289. * the JSPB instance for transitional soy proto support:
  290. * http://goto/soy-param-migration
  291. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The msg instance to transform.
  292. * @return {!Object}
  293. * @suppress {unusedLocalVariables} f is only used for nested messages
  294. */
  295. proto.OpeningMetadata.ApplicationFormQuestion.toObject = function(includeInstance, msg) {
  296. var f, obj = {
  297. question: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  298. type: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  299. };
  300. if (includeInstance) {
  301. obj.$jspbMessageInstance = msg;
  302. }
  303. return obj;
  304. };
  305. }
  306. /**
  307. * Deserializes binary data (in protobuf wire format).
  308. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  309. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  310. */
  311. proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinary = function(bytes) {
  312. var reader = new jspb.BinaryReader(bytes);
  313. var msg = new proto.OpeningMetadata.ApplicationFormQuestion;
  314. return proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader(msg, reader);
  315. };
  316. /**
  317. * Deserializes binary data (in protobuf wire format) from the
  318. * given reader into the given message object.
  319. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The message object to deserialize into.
  320. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  321. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  322. */
  323. proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader = function(msg, reader) {
  324. while (reader.nextField()) {
  325. if (reader.isEndGroup()) {
  326. break;
  327. }
  328. var field = reader.getFieldNumber();
  329. switch (field) {
  330. case 1:
  331. var value = /** @type {string} */ (reader.readString());
  332. msg.setQuestion(value);
  333. break;
  334. case 2:
  335. var value = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (reader.readEnum());
  336. msg.setType(value);
  337. break;
  338. default:
  339. reader.skipField();
  340. break;
  341. }
  342. }
  343. return msg;
  344. };
  345. /**
  346. * Serializes the message to binary data (in protobuf wire format).
  347. * @return {!Uint8Array}
  348. */
  349. proto.OpeningMetadata.ApplicationFormQuestion.prototype.serializeBinary = function() {
  350. var writer = new jspb.BinaryWriter();
  351. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter(this, writer);
  352. return writer.getResultBuffer();
  353. };
  354. /**
  355. * Serializes the given message to binary data (in protobuf wire
  356. * format), writing to the given BinaryWriter.
  357. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} message
  358. * @param {!jspb.BinaryWriter} writer
  359. * @suppress {unusedLocalVariables} f is only used for nested messages
  360. */
  361. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter = function(message, writer) {
  362. var f = undefined;
  363. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  364. if (f != null) {
  365. writer.writeString(
  366. 1,
  367. f
  368. );
  369. }
  370. f = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getField(message, 2));
  371. if (f != null) {
  372. writer.writeEnum(
  373. 2,
  374. f
  375. );
  376. }
  377. };
  378. /**
  379. * @enum {number}
  380. */
  381. proto.OpeningMetadata.ApplicationFormQuestion.InputType = {
  382. TEXT: 1,
  383. TEXTAREA: 2
  384. };
  385. /**
  386. * required string question = 1;
  387. * @return {string}
  388. */
  389. proto.OpeningMetadata.ApplicationFormQuestion.prototype.getQuestion = function() {
  390. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  391. };
  392. /**
  393. * @param {string} value
  394. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  395. */
  396. proto.OpeningMetadata.ApplicationFormQuestion.prototype.setQuestion = function(value) {
  397. return jspb.Message.setField(this, 1, value);
  398. };
  399. /**
  400. * Clears the field making it undefined.
  401. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  402. */
  403. proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearQuestion = function() {
  404. return jspb.Message.setField(this, 1, undefined);
  405. };
  406. /**
  407. * Returns whether this field is set.
  408. * @return {boolean}
  409. */
  410. proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasQuestion = function() {
  411. return jspb.Message.getField(this, 1) != null;
  412. };
  413. /**
  414. * required InputType type = 2;
  415. * @return {!proto.OpeningMetadata.ApplicationFormQuestion.InputType}
  416. */
  417. proto.OpeningMetadata.ApplicationFormQuestion.prototype.getType = function() {
  418. return /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getFieldWithDefault(this, 2, 1));
  419. };
  420. /**
  421. * @param {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} value
  422. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  423. */
  424. proto.OpeningMetadata.ApplicationFormQuestion.prototype.setType = function(value) {
  425. return jspb.Message.setField(this, 2, value);
  426. };
  427. /**
  428. * Clears the field making it undefined.
  429. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  430. */
  431. proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearType = function() {
  432. return jspb.Message.setField(this, 2, undefined);
  433. };
  434. /**
  435. * Returns whether this field is set.
  436. * @return {boolean}
  437. */
  438. proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasType = function() {
  439. return jspb.Message.getField(this, 2) != null;
  440. };
  441. /**
  442. * required string short_description = 1;
  443. * @return {string}
  444. */
  445. proto.OpeningMetadata.prototype.getShortDescription = function() {
  446. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  447. };
  448. /**
  449. * @param {string} value
  450. * @return {!proto.OpeningMetadata} returns this
  451. */
  452. proto.OpeningMetadata.prototype.setShortDescription = function(value) {
  453. return jspb.Message.setField(this, 1, value);
  454. };
  455. /**
  456. * Clears the field making it undefined.
  457. * @return {!proto.OpeningMetadata} returns this
  458. */
  459. proto.OpeningMetadata.prototype.clearShortDescription = function() {
  460. return jspb.Message.setField(this, 1, undefined);
  461. };
  462. /**
  463. * Returns whether this field is set.
  464. * @return {boolean}
  465. */
  466. proto.OpeningMetadata.prototype.hasShortDescription = function() {
  467. return jspb.Message.getField(this, 1) != null;
  468. };
  469. /**
  470. * required string description = 2;
  471. * @return {string}
  472. */
  473. proto.OpeningMetadata.prototype.getDescription = function() {
  474. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  475. };
  476. /**
  477. * @param {string} value
  478. * @return {!proto.OpeningMetadata} returns this
  479. */
  480. proto.OpeningMetadata.prototype.setDescription = function(value) {
  481. return jspb.Message.setField(this, 2, value);
  482. };
  483. /**
  484. * Clears the field making it undefined.
  485. * @return {!proto.OpeningMetadata} returns this
  486. */
  487. proto.OpeningMetadata.prototype.clearDescription = function() {
  488. return jspb.Message.setField(this, 2, undefined);
  489. };
  490. /**
  491. * Returns whether this field is set.
  492. * @return {boolean}
  493. */
  494. proto.OpeningMetadata.prototype.hasDescription = function() {
  495. return jspb.Message.getField(this, 2) != null;
  496. };
  497. /**
  498. * required uint32 hiring_limit = 3;
  499. * @return {number}
  500. */
  501. proto.OpeningMetadata.prototype.getHiringLimit = function() {
  502. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  503. };
  504. /**
  505. * @param {number} value
  506. * @return {!proto.OpeningMetadata} returns this
  507. */
  508. proto.OpeningMetadata.prototype.setHiringLimit = function(value) {
  509. return jspb.Message.setField(this, 3, value);
  510. };
  511. /**
  512. * Clears the field making it undefined.
  513. * @return {!proto.OpeningMetadata} returns this
  514. */
  515. proto.OpeningMetadata.prototype.clearHiringLimit = function() {
  516. return jspb.Message.setField(this, 3, undefined);
  517. };
  518. /**
  519. * Returns whether this field is set.
  520. * @return {boolean}
  521. */
  522. proto.OpeningMetadata.prototype.hasHiringLimit = function() {
  523. return jspb.Message.getField(this, 3) != null;
  524. };
  525. /**
  526. * required uint32 expected_duration = 4;
  527. * @return {number}
  528. */
  529. proto.OpeningMetadata.prototype.getExpectedDuration = function() {
  530. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  531. };
  532. /**
  533. * @param {number} value
  534. * @return {!proto.OpeningMetadata} returns this
  535. */
  536. proto.OpeningMetadata.prototype.setExpectedDuration = function(value) {
  537. return jspb.Message.setField(this, 4, value);
  538. };
  539. /**
  540. * Clears the field making it undefined.
  541. * @return {!proto.OpeningMetadata} returns this
  542. */
  543. proto.OpeningMetadata.prototype.clearExpectedDuration = function() {
  544. return jspb.Message.setField(this, 4, undefined);
  545. };
  546. /**
  547. * Returns whether this field is set.
  548. * @return {boolean}
  549. */
  550. proto.OpeningMetadata.prototype.hasExpectedDuration = function() {
  551. return jspb.Message.getField(this, 4) != null;
  552. };
  553. /**
  554. * required string application_details = 5;
  555. * @return {string}
  556. */
  557. proto.OpeningMetadata.prototype.getApplicationDetails = function() {
  558. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  559. };
  560. /**
  561. * @param {string} value
  562. * @return {!proto.OpeningMetadata} returns this
  563. */
  564. proto.OpeningMetadata.prototype.setApplicationDetails = function(value) {
  565. return jspb.Message.setField(this, 5, value);
  566. };
  567. /**
  568. * Clears the field making it undefined.
  569. * @return {!proto.OpeningMetadata} returns this
  570. */
  571. proto.OpeningMetadata.prototype.clearApplicationDetails = function() {
  572. return jspb.Message.setField(this, 5, undefined);
  573. };
  574. /**
  575. * Returns whether this field is set.
  576. * @return {boolean}
  577. */
  578. proto.OpeningMetadata.prototype.hasApplicationDetails = function() {
  579. return jspb.Message.getField(this, 5) != null;
  580. };
  581. /**
  582. * repeated ApplicationFormQuestion application_form_questions = 6;
  583. * @return {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>}
  584. */
  585. proto.OpeningMetadata.prototype.getApplicationFormQuestionsList = function() {
  586. return /** @type{!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} */ (
  587. jspb.Message.getRepeatedWrapperField(this, proto.OpeningMetadata.ApplicationFormQuestion, 6));
  588. };
  589. /**
  590. * @param {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} value
  591. * @return {!proto.OpeningMetadata} returns this
  592. */
  593. proto.OpeningMetadata.prototype.setApplicationFormQuestionsList = function(value) {
  594. return jspb.Message.setRepeatedWrapperField(this, 6, value);
  595. };
  596. /**
  597. * @param {!proto.OpeningMetadata.ApplicationFormQuestion=} opt_value
  598. * @param {number=} opt_index
  599. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  600. */
  601. proto.OpeningMetadata.prototype.addApplicationFormQuestions = function(opt_value, opt_index) {
  602. return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.OpeningMetadata.ApplicationFormQuestion, opt_index);
  603. };
  604. /**
  605. * Clears the list making it empty but non-null.
  606. * @return {!proto.OpeningMetadata} returns this
  607. */
  608. proto.OpeningMetadata.prototype.clearApplicationFormQuestionsList = function() {
  609. return this.setApplicationFormQuestionsList([]);
  610. };
  611. /**
  612. * List of repeated fields within this message type.
  613. * @private {!Array<number>}
  614. * @const
  615. */
  616. proto.ApplicationMetadata.repeatedFields_ = [1];
  617. if (jspb.Message.GENERATE_TO_OBJECT) {
  618. /**
  619. * Creates an object representation of this proto.
  620. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  621. * Optional fields that are not set will be set to undefined.
  622. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  623. * For the list of reserved names please see:
  624. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  625. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  626. * JSPB instance for transitional soy proto support:
  627. * http://goto/soy-param-migration
  628. * @return {!Object}
  629. */
  630. proto.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) {
  631. return proto.ApplicationMetadata.toObject(opt_includeInstance, this);
  632. };
  633. /**
  634. * Static version of the {@see toObject} method.
  635. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  636. * the JSPB instance for transitional soy proto support:
  637. * http://goto/soy-param-migration
  638. * @param {!proto.ApplicationMetadata} msg The msg instance to transform.
  639. * @return {!Object}
  640. * @suppress {unusedLocalVariables} f is only used for nested messages
  641. */
  642. proto.ApplicationMetadata.toObject = function(includeInstance, msg) {
  643. var f, obj = {
  644. answersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
  645. };
  646. if (includeInstance) {
  647. obj.$jspbMessageInstance = msg;
  648. }
  649. return obj;
  650. };
  651. }
  652. /**
  653. * Deserializes binary data (in protobuf wire format).
  654. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  655. * @return {!proto.ApplicationMetadata}
  656. */
  657. proto.ApplicationMetadata.deserializeBinary = function(bytes) {
  658. var reader = new jspb.BinaryReader(bytes);
  659. var msg = new proto.ApplicationMetadata;
  660. return proto.ApplicationMetadata.deserializeBinaryFromReader(msg, reader);
  661. };
  662. /**
  663. * Deserializes binary data (in protobuf wire format) from the
  664. * given reader into the given message object.
  665. * @param {!proto.ApplicationMetadata} msg The message object to deserialize into.
  666. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  667. * @return {!proto.ApplicationMetadata}
  668. */
  669. proto.ApplicationMetadata.deserializeBinaryFromReader = function(msg, reader) {
  670. while (reader.nextField()) {
  671. if (reader.isEndGroup()) {
  672. break;
  673. }
  674. var field = reader.getFieldNumber();
  675. switch (field) {
  676. case 1:
  677. var value = /** @type {string} */ (reader.readString());
  678. msg.addAnswers(value);
  679. break;
  680. default:
  681. reader.skipField();
  682. break;
  683. }
  684. }
  685. return msg;
  686. };
  687. /**
  688. * Serializes the message to binary data (in protobuf wire format).
  689. * @return {!Uint8Array}
  690. */
  691. proto.ApplicationMetadata.prototype.serializeBinary = function() {
  692. var writer = new jspb.BinaryWriter();
  693. proto.ApplicationMetadata.serializeBinaryToWriter(this, writer);
  694. return writer.getResultBuffer();
  695. };
  696. /**
  697. * Serializes the given message to binary data (in protobuf wire
  698. * format), writing to the given BinaryWriter.
  699. * @param {!proto.ApplicationMetadata} message
  700. * @param {!jspb.BinaryWriter} writer
  701. * @suppress {unusedLocalVariables} f is only used for nested messages
  702. */
  703. proto.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) {
  704. var f = undefined;
  705. f = message.getAnswersList();
  706. if (f.length > 0) {
  707. writer.writeRepeatedString(
  708. 1,
  709. f
  710. );
  711. }
  712. };
  713. /**
  714. * repeated string answers = 1;
  715. * @return {!Array<string>}
  716. */
  717. proto.ApplicationMetadata.prototype.getAnswersList = function() {
  718. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
  719. };
  720. /**
  721. * @param {!Array<string>} value
  722. * @return {!proto.ApplicationMetadata} returns this
  723. */
  724. proto.ApplicationMetadata.prototype.setAnswersList = function(value) {
  725. return jspb.Message.setField(this, 1, value || []);
  726. };
  727. /**
  728. * @param {string} value
  729. * @param {number=} opt_index
  730. * @return {!proto.ApplicationMetadata} returns this
  731. */
  732. proto.ApplicationMetadata.prototype.addAnswers = function(value, opt_index) {
  733. return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  734. };
  735. /**
  736. * Clears the list making it empty but non-null.
  737. * @return {!proto.ApplicationMetadata} returns this
  738. */
  739. proto.ApplicationMetadata.prototype.clearAnswersList = function() {
  740. return this.setAnswersList([]);
  741. };
  742. if (jspb.Message.GENERATE_TO_OBJECT) {
  743. /**
  744. * Creates an object representation of this proto.
  745. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  746. * Optional fields that are not set will be set to undefined.
  747. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  748. * For the list of reserved names please see:
  749. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  750. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  751. * JSPB instance for transitional soy proto support:
  752. * http://goto/soy-param-migration
  753. * @return {!Object}
  754. */
  755. proto.WorkingGroupStatusMetadata.prototype.toObject = function(opt_includeInstance) {
  756. return proto.WorkingGroupStatusMetadata.toObject(opt_includeInstance, this);
  757. };
  758. /**
  759. * Static version of the {@see toObject} method.
  760. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  761. * the JSPB instance for transitional soy proto support:
  762. * http://goto/soy-param-migration
  763. * @param {!proto.WorkingGroupStatusMetadata} msg The msg instance to transform.
  764. * @return {!Object}
  765. * @suppress {unusedLocalVariables} f is only used for nested messages
  766. */
  767. proto.WorkingGroupStatusMetadata.toObject = function(includeInstance, msg) {
  768. var f, obj = {
  769. description: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  770. about: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  771. status: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  772. statusMessage: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
  773. };
  774. if (includeInstance) {
  775. obj.$jspbMessageInstance = msg;
  776. }
  777. return obj;
  778. };
  779. }
  780. /**
  781. * Deserializes binary data (in protobuf wire format).
  782. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  783. * @return {!proto.WorkingGroupStatusMetadata}
  784. */
  785. proto.WorkingGroupStatusMetadata.deserializeBinary = function(bytes) {
  786. var reader = new jspb.BinaryReader(bytes);
  787. var msg = new proto.WorkingGroupStatusMetadata;
  788. return proto.WorkingGroupStatusMetadata.deserializeBinaryFromReader(msg, reader);
  789. };
  790. /**
  791. * Deserializes binary data (in protobuf wire format) from the
  792. * given reader into the given message object.
  793. * @param {!proto.WorkingGroupStatusMetadata} msg The message object to deserialize into.
  794. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  795. * @return {!proto.WorkingGroupStatusMetadata}
  796. */
  797. proto.WorkingGroupStatusMetadata.deserializeBinaryFromReader = function(msg, reader) {
  798. while (reader.nextField()) {
  799. if (reader.isEndGroup()) {
  800. break;
  801. }
  802. var field = reader.getFieldNumber();
  803. switch (field) {
  804. case 1:
  805. var value = /** @type {string} */ (reader.readString());
  806. msg.setDescription(value);
  807. break;
  808. case 2:
  809. var value = /** @type {string} */ (reader.readString());
  810. msg.setAbout(value);
  811. break;
  812. case 3:
  813. var value = /** @type {string} */ (reader.readString());
  814. msg.setStatus(value);
  815. break;
  816. case 4:
  817. var value = /** @type {string} */ (reader.readString());
  818. msg.setStatusMessage(value);
  819. break;
  820. default:
  821. reader.skipField();
  822. break;
  823. }
  824. }
  825. return msg;
  826. };
  827. /**
  828. * Serializes the message to binary data (in protobuf wire format).
  829. * @return {!Uint8Array}
  830. */
  831. proto.WorkingGroupStatusMetadata.prototype.serializeBinary = function() {
  832. var writer = new jspb.BinaryWriter();
  833. proto.WorkingGroupStatusMetadata.serializeBinaryToWriter(this, writer);
  834. return writer.getResultBuffer();
  835. };
  836. /**
  837. * Serializes the given message to binary data (in protobuf wire
  838. * format), writing to the given BinaryWriter.
  839. * @param {!proto.WorkingGroupStatusMetadata} message
  840. * @param {!jspb.BinaryWriter} writer
  841. * @suppress {unusedLocalVariables} f is only used for nested messages
  842. */
  843. proto.WorkingGroupStatusMetadata.serializeBinaryToWriter = function(message, writer) {
  844. var f = undefined;
  845. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  846. if (f != null) {
  847. writer.writeString(
  848. 1,
  849. f
  850. );
  851. }
  852. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  853. if (f != null) {
  854. writer.writeString(
  855. 2,
  856. f
  857. );
  858. }
  859. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  860. if (f != null) {
  861. writer.writeString(
  862. 3,
  863. f
  864. );
  865. }
  866. f = /** @type {string} */ (jspb.Message.getField(message, 4));
  867. if (f != null) {
  868. writer.writeString(
  869. 4,
  870. f
  871. );
  872. }
  873. };
  874. /**
  875. * optional string description = 1;
  876. * @return {string}
  877. */
  878. proto.WorkingGroupStatusMetadata.prototype.getDescription = function() {
  879. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  880. };
  881. /**
  882. * @param {string} value
  883. * @return {!proto.WorkingGroupStatusMetadata} returns this
  884. */
  885. proto.WorkingGroupStatusMetadata.prototype.setDescription = function(value) {
  886. return jspb.Message.setField(this, 1, value);
  887. };
  888. /**
  889. * Clears the field making it undefined.
  890. * @return {!proto.WorkingGroupStatusMetadata} returns this
  891. */
  892. proto.WorkingGroupStatusMetadata.prototype.clearDescription = function() {
  893. return jspb.Message.setField(this, 1, undefined);
  894. };
  895. /**
  896. * Returns whether this field is set.
  897. * @return {boolean}
  898. */
  899. proto.WorkingGroupStatusMetadata.prototype.hasDescription = function() {
  900. return jspb.Message.getField(this, 1) != null;
  901. };
  902. /**
  903. * optional string about = 2;
  904. * @return {string}
  905. */
  906. proto.WorkingGroupStatusMetadata.prototype.getAbout = function() {
  907. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  908. };
  909. /**
  910. * @param {string} value
  911. * @return {!proto.WorkingGroupStatusMetadata} returns this
  912. */
  913. proto.WorkingGroupStatusMetadata.prototype.setAbout = function(value) {
  914. return jspb.Message.setField(this, 2, value);
  915. };
  916. /**
  917. * Clears the field making it undefined.
  918. * @return {!proto.WorkingGroupStatusMetadata} returns this
  919. */
  920. proto.WorkingGroupStatusMetadata.prototype.clearAbout = function() {
  921. return jspb.Message.setField(this, 2, undefined);
  922. };
  923. /**
  924. * Returns whether this field is set.
  925. * @return {boolean}
  926. */
  927. proto.WorkingGroupStatusMetadata.prototype.hasAbout = function() {
  928. return jspb.Message.getField(this, 2) != null;
  929. };
  930. /**
  931. * optional string status = 3;
  932. * @return {string}
  933. */
  934. proto.WorkingGroupStatusMetadata.prototype.getStatus = function() {
  935. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  936. };
  937. /**
  938. * @param {string} value
  939. * @return {!proto.WorkingGroupStatusMetadata} returns this
  940. */
  941. proto.WorkingGroupStatusMetadata.prototype.setStatus = function(value) {
  942. return jspb.Message.setField(this, 3, value);
  943. };
  944. /**
  945. * Clears the field making it undefined.
  946. * @return {!proto.WorkingGroupStatusMetadata} returns this
  947. */
  948. proto.WorkingGroupStatusMetadata.prototype.clearStatus = function() {
  949. return jspb.Message.setField(this, 3, undefined);
  950. };
  951. /**
  952. * Returns whether this field is set.
  953. * @return {boolean}
  954. */
  955. proto.WorkingGroupStatusMetadata.prototype.hasStatus = function() {
  956. return jspb.Message.getField(this, 3) != null;
  957. };
  958. /**
  959. * optional string status_message = 4;
  960. * @return {string}
  961. */
  962. proto.WorkingGroupStatusMetadata.prototype.getStatusMessage = function() {
  963. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  964. };
  965. /**
  966. * @param {string} value
  967. * @return {!proto.WorkingGroupStatusMetadata} returns this
  968. */
  969. proto.WorkingGroupStatusMetadata.prototype.setStatusMessage = function(value) {
  970. return jspb.Message.setField(this, 4, value);
  971. };
  972. /**
  973. * Clears the field making it undefined.
  974. * @return {!proto.WorkingGroupStatusMetadata} returns this
  975. */
  976. proto.WorkingGroupStatusMetadata.prototype.clearStatusMessage = function() {
  977. return jspb.Message.setField(this, 4, undefined);
  978. };
  979. /**
  980. * Returns whether this field is set.
  981. * @return {boolean}
  982. */
  983. proto.WorkingGroupStatusMetadata.prototype.hasStatusMessage = function() {
  984. return jspb.Message.getField(this, 4) != null;
  985. };
  986. goog.object.extend(exports, proto);