WorkingGroups_pb.js 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295
  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.AddUpcomingOpening', null, global);
  17. goog.exportSymbol('proto.ApplicationMetadata', null, global);
  18. goog.exportSymbol('proto.OpeningMetadata', null, global);
  19. goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion', null, global);
  20. goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion.InputType', null, global);
  21. goog.exportSymbol('proto.RemoveUpcomingOpening', null, global);
  22. goog.exportSymbol('proto.SetGroupMetadata', null, global);
  23. goog.exportSymbol('proto.UpcomingOpeningMetadata', null, global);
  24. goog.exportSymbol('proto.WorkingGroupMetadata', null, global);
  25. goog.exportSymbol('proto.WorkingGroupMetadataAction', null, global);
  26. goog.exportSymbol('proto.WorkingGroupMetadataAction.ActionCase', null, global);
  27. /**
  28. * Generated by JsPbCodeGenerator.
  29. * @param {Array=} opt_data Optional initial data array, typically from a
  30. * server response, or constructed directly in Javascript. The array is used
  31. * in place and becomes part of the constructed object. It is not cloned.
  32. * If no data is provided, the constructed object will be empty, but still
  33. * valid.
  34. * @extends {jspb.Message}
  35. * @constructor
  36. */
  37. proto.OpeningMetadata = function(opt_data) {
  38. jspb.Message.initialize(this, opt_data, 0, -1, proto.OpeningMetadata.repeatedFields_, null);
  39. };
  40. goog.inherits(proto.OpeningMetadata, jspb.Message);
  41. if (goog.DEBUG && !COMPILED) {
  42. /**
  43. * @public
  44. * @override
  45. */
  46. proto.OpeningMetadata.displayName = 'proto.OpeningMetadata';
  47. }
  48. /**
  49. * Generated by JsPbCodeGenerator.
  50. * @param {Array=} opt_data Optional initial data array, typically from a
  51. * server response, or constructed directly in Javascript. The array is used
  52. * in place and becomes part of the constructed object. It is not cloned.
  53. * If no data is provided, the constructed object will be empty, but still
  54. * valid.
  55. * @extends {jspb.Message}
  56. * @constructor
  57. */
  58. proto.OpeningMetadata.ApplicationFormQuestion = function(opt_data) {
  59. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  60. };
  61. goog.inherits(proto.OpeningMetadata.ApplicationFormQuestion, jspb.Message);
  62. if (goog.DEBUG && !COMPILED) {
  63. /**
  64. * @public
  65. * @override
  66. */
  67. proto.OpeningMetadata.ApplicationFormQuestion.displayName = 'proto.OpeningMetadata.ApplicationFormQuestion';
  68. }
  69. /**
  70. * Generated by JsPbCodeGenerator.
  71. * @param {Array=} opt_data Optional initial data array, typically from a
  72. * server response, or constructed directly in Javascript. The array is used
  73. * in place and becomes part of the constructed object. It is not cloned.
  74. * If no data is provided, the constructed object will be empty, but still
  75. * valid.
  76. * @extends {jspb.Message}
  77. * @constructor
  78. */
  79. proto.UpcomingOpeningMetadata = function(opt_data) {
  80. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  81. };
  82. goog.inherits(proto.UpcomingOpeningMetadata, jspb.Message);
  83. if (goog.DEBUG && !COMPILED) {
  84. /**
  85. * @public
  86. * @override
  87. */
  88. proto.UpcomingOpeningMetadata.displayName = 'proto.UpcomingOpeningMetadata';
  89. }
  90. /**
  91. * Generated by JsPbCodeGenerator.
  92. * @param {Array=} opt_data Optional initial data array, typically from a
  93. * server response, or constructed directly in Javascript. The array is used
  94. * in place and becomes part of the constructed object. It is not cloned.
  95. * If no data is provided, the constructed object will be empty, but still
  96. * valid.
  97. * @extends {jspb.Message}
  98. * @constructor
  99. */
  100. proto.ApplicationMetadata = function(opt_data) {
  101. jspb.Message.initialize(this, opt_data, 0, -1, proto.ApplicationMetadata.repeatedFields_, null);
  102. };
  103. goog.inherits(proto.ApplicationMetadata, jspb.Message);
  104. if (goog.DEBUG && !COMPILED) {
  105. /**
  106. * @public
  107. * @override
  108. */
  109. proto.ApplicationMetadata.displayName = 'proto.ApplicationMetadata';
  110. }
  111. /**
  112. * Generated by JsPbCodeGenerator.
  113. * @param {Array=} opt_data Optional initial data array, typically from a
  114. * server response, or constructed directly in Javascript. The array is used
  115. * in place and becomes part of the constructed object. It is not cloned.
  116. * If no data is provided, the constructed object will be empty, but still
  117. * valid.
  118. * @extends {jspb.Message}
  119. * @constructor
  120. */
  121. proto.WorkingGroupMetadata = function(opt_data) {
  122. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  123. };
  124. goog.inherits(proto.WorkingGroupMetadata, jspb.Message);
  125. if (goog.DEBUG && !COMPILED) {
  126. /**
  127. * @public
  128. * @override
  129. */
  130. proto.WorkingGroupMetadata.displayName = 'proto.WorkingGroupMetadata';
  131. }
  132. /**
  133. * Generated by JsPbCodeGenerator.
  134. * @param {Array=} opt_data Optional initial data array, typically from a
  135. * server response, or constructed directly in Javascript. The array is used
  136. * in place and becomes part of the constructed object. It is not cloned.
  137. * If no data is provided, the constructed object will be empty, but still
  138. * valid.
  139. * @extends {jspb.Message}
  140. * @constructor
  141. */
  142. proto.SetGroupMetadata = function(opt_data) {
  143. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  144. };
  145. goog.inherits(proto.SetGroupMetadata, jspb.Message);
  146. if (goog.DEBUG && !COMPILED) {
  147. /**
  148. * @public
  149. * @override
  150. */
  151. proto.SetGroupMetadata.displayName = 'proto.SetGroupMetadata';
  152. }
  153. /**
  154. * Generated by JsPbCodeGenerator.
  155. * @param {Array=} opt_data Optional initial data array, typically from a
  156. * server response, or constructed directly in Javascript. The array is used
  157. * in place and becomes part of the constructed object. It is not cloned.
  158. * If no data is provided, the constructed object will be empty, but still
  159. * valid.
  160. * @extends {jspb.Message}
  161. * @constructor
  162. */
  163. proto.AddUpcomingOpening = function(opt_data) {
  164. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  165. };
  166. goog.inherits(proto.AddUpcomingOpening, jspb.Message);
  167. if (goog.DEBUG && !COMPILED) {
  168. /**
  169. * @public
  170. * @override
  171. */
  172. proto.AddUpcomingOpening.displayName = 'proto.AddUpcomingOpening';
  173. }
  174. /**
  175. * Generated by JsPbCodeGenerator.
  176. * @param {Array=} opt_data Optional initial data array, typically from a
  177. * server response, or constructed directly in Javascript. The array is used
  178. * in place and becomes part of the constructed object. It is not cloned.
  179. * If no data is provided, the constructed object will be empty, but still
  180. * valid.
  181. * @extends {jspb.Message}
  182. * @constructor
  183. */
  184. proto.RemoveUpcomingOpening = function(opt_data) {
  185. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  186. };
  187. goog.inherits(proto.RemoveUpcomingOpening, jspb.Message);
  188. if (goog.DEBUG && !COMPILED) {
  189. /**
  190. * @public
  191. * @override
  192. */
  193. proto.RemoveUpcomingOpening.displayName = 'proto.RemoveUpcomingOpening';
  194. }
  195. /**
  196. * Generated by JsPbCodeGenerator.
  197. * @param {Array=} opt_data Optional initial data array, typically from a
  198. * server response, or constructed directly in Javascript. The array is used
  199. * in place and becomes part of the constructed object. It is not cloned.
  200. * If no data is provided, the constructed object will be empty, but still
  201. * valid.
  202. * @extends {jspb.Message}
  203. * @constructor
  204. */
  205. proto.WorkingGroupMetadataAction = function(opt_data) {
  206. jspb.Message.initialize(this, opt_data, 0, -1, null, proto.WorkingGroupMetadataAction.oneofGroups_);
  207. };
  208. goog.inherits(proto.WorkingGroupMetadataAction, jspb.Message);
  209. if (goog.DEBUG && !COMPILED) {
  210. /**
  211. * @public
  212. * @override
  213. */
  214. proto.WorkingGroupMetadataAction.displayName = 'proto.WorkingGroupMetadataAction';
  215. }
  216. /**
  217. * List of repeated fields within this message type.
  218. * @private {!Array<number>}
  219. * @const
  220. */
  221. proto.OpeningMetadata.repeatedFields_ = [6];
  222. if (jspb.Message.GENERATE_TO_OBJECT) {
  223. /**
  224. * Creates an object representation of this proto.
  225. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  226. * Optional fields that are not set will be set to undefined.
  227. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  228. * For the list of reserved names please see:
  229. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  230. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  231. * JSPB instance for transitional soy proto support:
  232. * http://goto/soy-param-migration
  233. * @return {!Object}
  234. */
  235. proto.OpeningMetadata.prototype.toObject = function(opt_includeInstance) {
  236. return proto.OpeningMetadata.toObject(opt_includeInstance, this);
  237. };
  238. /**
  239. * Static version of the {@see toObject} method.
  240. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  241. * the JSPB instance for transitional soy proto support:
  242. * http://goto/soy-param-migration
  243. * @param {!proto.OpeningMetadata} msg The msg instance to transform.
  244. * @return {!Object}
  245. * @suppress {unusedLocalVariables} f is only used for nested messages
  246. */
  247. proto.OpeningMetadata.toObject = function(includeInstance, msg) {
  248. var f, obj = {
  249. shortDescription: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  250. description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  251. hiringLimit: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  252. expectedEndingTimestamp: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  253. applicationDetails: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
  254. applicationFormQuestionsList: jspb.Message.toObjectList(msg.getApplicationFormQuestionsList(),
  255. proto.OpeningMetadata.ApplicationFormQuestion.toObject, includeInstance)
  256. };
  257. if (includeInstance) {
  258. obj.$jspbMessageInstance = msg;
  259. }
  260. return obj;
  261. };
  262. }
  263. /**
  264. * Deserializes binary data (in protobuf wire format).
  265. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  266. * @return {!proto.OpeningMetadata}
  267. */
  268. proto.OpeningMetadata.deserializeBinary = function(bytes) {
  269. var reader = new jspb.BinaryReader(bytes);
  270. var msg = new proto.OpeningMetadata;
  271. return proto.OpeningMetadata.deserializeBinaryFromReader(msg, reader);
  272. };
  273. /**
  274. * Deserializes binary data (in protobuf wire format) from the
  275. * given reader into the given message object.
  276. * @param {!proto.OpeningMetadata} msg The message object to deserialize into.
  277. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  278. * @return {!proto.OpeningMetadata}
  279. */
  280. proto.OpeningMetadata.deserializeBinaryFromReader = function(msg, reader) {
  281. while (reader.nextField()) {
  282. if (reader.isEndGroup()) {
  283. break;
  284. }
  285. var field = reader.getFieldNumber();
  286. switch (field) {
  287. case 1:
  288. var value = /** @type {string} */ (reader.readString());
  289. msg.setShortDescription(value);
  290. break;
  291. case 2:
  292. var value = /** @type {string} */ (reader.readString());
  293. msg.setDescription(value);
  294. break;
  295. case 3:
  296. var value = /** @type {number} */ (reader.readUint32());
  297. msg.setHiringLimit(value);
  298. break;
  299. case 4:
  300. var value = /** @type {number} */ (reader.readUint64());
  301. msg.setExpectedEndingTimestamp(value);
  302. break;
  303. case 5:
  304. var value = /** @type {string} */ (reader.readString());
  305. msg.setApplicationDetails(value);
  306. break;
  307. case 6:
  308. var value = new proto.OpeningMetadata.ApplicationFormQuestion;
  309. reader.readMessage(value,proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader);
  310. msg.addApplicationFormQuestions(value);
  311. break;
  312. default:
  313. reader.skipField();
  314. break;
  315. }
  316. }
  317. return msg;
  318. };
  319. /**
  320. * Serializes the message to binary data (in protobuf wire format).
  321. * @return {!Uint8Array}
  322. */
  323. proto.OpeningMetadata.prototype.serializeBinary = function() {
  324. var writer = new jspb.BinaryWriter();
  325. proto.OpeningMetadata.serializeBinaryToWriter(this, writer);
  326. return writer.getResultBuffer();
  327. };
  328. /**
  329. * Serializes the given message to binary data (in protobuf wire
  330. * format), writing to the given BinaryWriter.
  331. * @param {!proto.OpeningMetadata} message
  332. * @param {!jspb.BinaryWriter} writer
  333. * @suppress {unusedLocalVariables} f is only used for nested messages
  334. */
  335. proto.OpeningMetadata.serializeBinaryToWriter = function(message, writer) {
  336. var f = undefined;
  337. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  338. if (f != null) {
  339. writer.writeString(
  340. 1,
  341. f
  342. );
  343. }
  344. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  345. if (f != null) {
  346. writer.writeString(
  347. 2,
  348. f
  349. );
  350. }
  351. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  352. if (f != null) {
  353. writer.writeUint32(
  354. 3,
  355. f
  356. );
  357. }
  358. f = /** @type {number} */ (jspb.Message.getField(message, 4));
  359. if (f != null) {
  360. writer.writeUint64(
  361. 4,
  362. f
  363. );
  364. }
  365. f = /** @type {string} */ (jspb.Message.getField(message, 5));
  366. if (f != null) {
  367. writer.writeString(
  368. 5,
  369. f
  370. );
  371. }
  372. f = message.getApplicationFormQuestionsList();
  373. if (f.length > 0) {
  374. writer.writeRepeatedMessage(
  375. 6,
  376. f,
  377. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter
  378. );
  379. }
  380. };
  381. if (jspb.Message.GENERATE_TO_OBJECT) {
  382. /**
  383. * Creates an object representation of this proto.
  384. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  385. * Optional fields that are not set will be set to undefined.
  386. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  387. * For the list of reserved names please see:
  388. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  389. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  390. * JSPB instance for transitional soy proto support:
  391. * http://goto/soy-param-migration
  392. * @return {!Object}
  393. */
  394. proto.OpeningMetadata.ApplicationFormQuestion.prototype.toObject = function(opt_includeInstance) {
  395. return proto.OpeningMetadata.ApplicationFormQuestion.toObject(opt_includeInstance, this);
  396. };
  397. /**
  398. * Static version of the {@see toObject} method.
  399. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  400. * the JSPB instance for transitional soy proto support:
  401. * http://goto/soy-param-migration
  402. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The msg instance to transform.
  403. * @return {!Object}
  404. * @suppress {unusedLocalVariables} f is only used for nested messages
  405. */
  406. proto.OpeningMetadata.ApplicationFormQuestion.toObject = function(includeInstance, msg) {
  407. var f, obj = {
  408. question: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  409. type: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  410. };
  411. if (includeInstance) {
  412. obj.$jspbMessageInstance = msg;
  413. }
  414. return obj;
  415. };
  416. }
  417. /**
  418. * Deserializes binary data (in protobuf wire format).
  419. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  420. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  421. */
  422. proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinary = function(bytes) {
  423. var reader = new jspb.BinaryReader(bytes);
  424. var msg = new proto.OpeningMetadata.ApplicationFormQuestion;
  425. return proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader(msg, reader);
  426. };
  427. /**
  428. * Deserializes binary data (in protobuf wire format) from the
  429. * given reader into the given message object.
  430. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The message object to deserialize into.
  431. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  432. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  433. */
  434. proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader = function(msg, reader) {
  435. while (reader.nextField()) {
  436. if (reader.isEndGroup()) {
  437. break;
  438. }
  439. var field = reader.getFieldNumber();
  440. switch (field) {
  441. case 1:
  442. var value = /** @type {string} */ (reader.readString());
  443. msg.setQuestion(value);
  444. break;
  445. case 2:
  446. var value = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (reader.readEnum());
  447. msg.setType(value);
  448. break;
  449. default:
  450. reader.skipField();
  451. break;
  452. }
  453. }
  454. return msg;
  455. };
  456. /**
  457. * Serializes the message to binary data (in protobuf wire format).
  458. * @return {!Uint8Array}
  459. */
  460. proto.OpeningMetadata.ApplicationFormQuestion.prototype.serializeBinary = function() {
  461. var writer = new jspb.BinaryWriter();
  462. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter(this, writer);
  463. return writer.getResultBuffer();
  464. };
  465. /**
  466. * Serializes the given message to binary data (in protobuf wire
  467. * format), writing to the given BinaryWriter.
  468. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} message
  469. * @param {!jspb.BinaryWriter} writer
  470. * @suppress {unusedLocalVariables} f is only used for nested messages
  471. */
  472. proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter = function(message, writer) {
  473. var f = undefined;
  474. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  475. if (f != null) {
  476. writer.writeString(
  477. 1,
  478. f
  479. );
  480. }
  481. f = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getField(message, 2));
  482. if (f != null) {
  483. writer.writeEnum(
  484. 2,
  485. f
  486. );
  487. }
  488. };
  489. /**
  490. * @enum {number}
  491. */
  492. proto.OpeningMetadata.ApplicationFormQuestion.InputType = {
  493. TEXT: 1,
  494. TEXTAREA: 2
  495. };
  496. /**
  497. * required string question = 1;
  498. * @return {string}
  499. */
  500. proto.OpeningMetadata.ApplicationFormQuestion.prototype.getQuestion = function() {
  501. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  502. };
  503. /**
  504. * @param {string} value
  505. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  506. */
  507. proto.OpeningMetadata.ApplicationFormQuestion.prototype.setQuestion = function(value) {
  508. return jspb.Message.setField(this, 1, value);
  509. };
  510. /**
  511. * Clears the field making it undefined.
  512. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  513. */
  514. proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearQuestion = function() {
  515. return jspb.Message.setField(this, 1, undefined);
  516. };
  517. /**
  518. * Returns whether this field is set.
  519. * @return {boolean}
  520. */
  521. proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasQuestion = function() {
  522. return jspb.Message.getField(this, 1) != null;
  523. };
  524. /**
  525. * required InputType type = 2;
  526. * @return {!proto.OpeningMetadata.ApplicationFormQuestion.InputType}
  527. */
  528. proto.OpeningMetadata.ApplicationFormQuestion.prototype.getType = function() {
  529. return /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getFieldWithDefault(this, 2, 1));
  530. };
  531. /**
  532. * @param {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} value
  533. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  534. */
  535. proto.OpeningMetadata.ApplicationFormQuestion.prototype.setType = function(value) {
  536. return jspb.Message.setField(this, 2, value);
  537. };
  538. /**
  539. * Clears the field making it undefined.
  540. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
  541. */
  542. proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearType = function() {
  543. return jspb.Message.setField(this, 2, undefined);
  544. };
  545. /**
  546. * Returns whether this field is set.
  547. * @return {boolean}
  548. */
  549. proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasType = function() {
  550. return jspb.Message.getField(this, 2) != null;
  551. };
  552. /**
  553. * required string short_description = 1;
  554. * @return {string}
  555. */
  556. proto.OpeningMetadata.prototype.getShortDescription = function() {
  557. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  558. };
  559. /**
  560. * @param {string} value
  561. * @return {!proto.OpeningMetadata} returns this
  562. */
  563. proto.OpeningMetadata.prototype.setShortDescription = function(value) {
  564. return jspb.Message.setField(this, 1, value);
  565. };
  566. /**
  567. * Clears the field making it undefined.
  568. * @return {!proto.OpeningMetadata} returns this
  569. */
  570. proto.OpeningMetadata.prototype.clearShortDescription = function() {
  571. return jspb.Message.setField(this, 1, undefined);
  572. };
  573. /**
  574. * Returns whether this field is set.
  575. * @return {boolean}
  576. */
  577. proto.OpeningMetadata.prototype.hasShortDescription = function() {
  578. return jspb.Message.getField(this, 1) != null;
  579. };
  580. /**
  581. * required string description = 2;
  582. * @return {string}
  583. */
  584. proto.OpeningMetadata.prototype.getDescription = function() {
  585. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  586. };
  587. /**
  588. * @param {string} value
  589. * @return {!proto.OpeningMetadata} returns this
  590. */
  591. proto.OpeningMetadata.prototype.setDescription = function(value) {
  592. return jspb.Message.setField(this, 2, value);
  593. };
  594. /**
  595. * Clears the field making it undefined.
  596. * @return {!proto.OpeningMetadata} returns this
  597. */
  598. proto.OpeningMetadata.prototype.clearDescription = function() {
  599. return jspb.Message.setField(this, 2, undefined);
  600. };
  601. /**
  602. * Returns whether this field is set.
  603. * @return {boolean}
  604. */
  605. proto.OpeningMetadata.prototype.hasDescription = function() {
  606. return jspb.Message.getField(this, 2) != null;
  607. };
  608. /**
  609. * optional uint32 hiring_limit = 3;
  610. * @return {number}
  611. */
  612. proto.OpeningMetadata.prototype.getHiringLimit = function() {
  613. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  614. };
  615. /**
  616. * @param {number} value
  617. * @return {!proto.OpeningMetadata} returns this
  618. */
  619. proto.OpeningMetadata.prototype.setHiringLimit = function(value) {
  620. return jspb.Message.setField(this, 3, value);
  621. };
  622. /**
  623. * Clears the field making it undefined.
  624. * @return {!proto.OpeningMetadata} returns this
  625. */
  626. proto.OpeningMetadata.prototype.clearHiringLimit = function() {
  627. return jspb.Message.setField(this, 3, undefined);
  628. };
  629. /**
  630. * Returns whether this field is set.
  631. * @return {boolean}
  632. */
  633. proto.OpeningMetadata.prototype.hasHiringLimit = function() {
  634. return jspb.Message.getField(this, 3) != null;
  635. };
  636. /**
  637. * optional uint64 expected_ending_timestamp = 4;
  638. * @return {number}
  639. */
  640. proto.OpeningMetadata.prototype.getExpectedEndingTimestamp = function() {
  641. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  642. };
  643. /**
  644. * @param {number} value
  645. * @return {!proto.OpeningMetadata} returns this
  646. */
  647. proto.OpeningMetadata.prototype.setExpectedEndingTimestamp = function(value) {
  648. return jspb.Message.setField(this, 4, value);
  649. };
  650. /**
  651. * Clears the field making it undefined.
  652. * @return {!proto.OpeningMetadata} returns this
  653. */
  654. proto.OpeningMetadata.prototype.clearExpectedEndingTimestamp = function() {
  655. return jspb.Message.setField(this, 4, undefined);
  656. };
  657. /**
  658. * Returns whether this field is set.
  659. * @return {boolean}
  660. */
  661. proto.OpeningMetadata.prototype.hasExpectedEndingTimestamp = function() {
  662. return jspb.Message.getField(this, 4) != null;
  663. };
  664. /**
  665. * required string application_details = 5;
  666. * @return {string}
  667. */
  668. proto.OpeningMetadata.prototype.getApplicationDetails = function() {
  669. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  670. };
  671. /**
  672. * @param {string} value
  673. * @return {!proto.OpeningMetadata} returns this
  674. */
  675. proto.OpeningMetadata.prototype.setApplicationDetails = function(value) {
  676. return jspb.Message.setField(this, 5, value);
  677. };
  678. /**
  679. * Clears the field making it undefined.
  680. * @return {!proto.OpeningMetadata} returns this
  681. */
  682. proto.OpeningMetadata.prototype.clearApplicationDetails = function() {
  683. return jspb.Message.setField(this, 5, undefined);
  684. };
  685. /**
  686. * Returns whether this field is set.
  687. * @return {boolean}
  688. */
  689. proto.OpeningMetadata.prototype.hasApplicationDetails = function() {
  690. return jspb.Message.getField(this, 5) != null;
  691. };
  692. /**
  693. * repeated ApplicationFormQuestion application_form_questions = 6;
  694. * @return {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>}
  695. */
  696. proto.OpeningMetadata.prototype.getApplicationFormQuestionsList = function() {
  697. return /** @type{!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} */ (
  698. jspb.Message.getRepeatedWrapperField(this, proto.OpeningMetadata.ApplicationFormQuestion, 6));
  699. };
  700. /**
  701. * @param {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} value
  702. * @return {!proto.OpeningMetadata} returns this
  703. */
  704. proto.OpeningMetadata.prototype.setApplicationFormQuestionsList = function(value) {
  705. return jspb.Message.setRepeatedWrapperField(this, 6, value);
  706. };
  707. /**
  708. * @param {!proto.OpeningMetadata.ApplicationFormQuestion=} opt_value
  709. * @param {number=} opt_index
  710. * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
  711. */
  712. proto.OpeningMetadata.prototype.addApplicationFormQuestions = function(opt_value, opt_index) {
  713. return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.OpeningMetadata.ApplicationFormQuestion, opt_index);
  714. };
  715. /**
  716. * Clears the list making it empty but non-null.
  717. * @return {!proto.OpeningMetadata} returns this
  718. */
  719. proto.OpeningMetadata.prototype.clearApplicationFormQuestionsList = function() {
  720. return this.setApplicationFormQuestionsList([]);
  721. };
  722. if (jspb.Message.GENERATE_TO_OBJECT) {
  723. /**
  724. * Creates an object representation of this proto.
  725. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  726. * Optional fields that are not set will be set to undefined.
  727. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  728. * For the list of reserved names please see:
  729. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  730. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  731. * JSPB instance for transitional soy proto support:
  732. * http://goto/soy-param-migration
  733. * @return {!Object}
  734. */
  735. proto.UpcomingOpeningMetadata.prototype.toObject = function(opt_includeInstance) {
  736. return proto.UpcomingOpeningMetadata.toObject(opt_includeInstance, this);
  737. };
  738. /**
  739. * Static version of the {@see toObject} method.
  740. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  741. * the JSPB instance for transitional soy proto support:
  742. * http://goto/soy-param-migration
  743. * @param {!proto.UpcomingOpeningMetadata} msg The msg instance to transform.
  744. * @return {!Object}
  745. * @suppress {unusedLocalVariables} f is only used for nested messages
  746. */
  747. proto.UpcomingOpeningMetadata.toObject = function(includeInstance, msg) {
  748. var f, obj = {
  749. expectedStart: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  750. rewardPerBlock: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  751. minApplicationStake: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  752. metadata: (f = msg.getMetadata()) && proto.OpeningMetadata.toObject(includeInstance, f)
  753. };
  754. if (includeInstance) {
  755. obj.$jspbMessageInstance = msg;
  756. }
  757. return obj;
  758. };
  759. }
  760. /**
  761. * Deserializes binary data (in protobuf wire format).
  762. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  763. * @return {!proto.UpcomingOpeningMetadata}
  764. */
  765. proto.UpcomingOpeningMetadata.deserializeBinary = function(bytes) {
  766. var reader = new jspb.BinaryReader(bytes);
  767. var msg = new proto.UpcomingOpeningMetadata;
  768. return proto.UpcomingOpeningMetadata.deserializeBinaryFromReader(msg, reader);
  769. };
  770. /**
  771. * Deserializes binary data (in protobuf wire format) from the
  772. * given reader into the given message object.
  773. * @param {!proto.UpcomingOpeningMetadata} msg The message object to deserialize into.
  774. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  775. * @return {!proto.UpcomingOpeningMetadata}
  776. */
  777. proto.UpcomingOpeningMetadata.deserializeBinaryFromReader = function(msg, reader) {
  778. while (reader.nextField()) {
  779. if (reader.isEndGroup()) {
  780. break;
  781. }
  782. var field = reader.getFieldNumber();
  783. switch (field) {
  784. case 1:
  785. var value = /** @type {number} */ (reader.readUint64());
  786. msg.setExpectedStart(value);
  787. break;
  788. case 2:
  789. var value = /** @type {number} */ (reader.readUint64());
  790. msg.setRewardPerBlock(value);
  791. break;
  792. case 3:
  793. var value = /** @type {number} */ (reader.readUint64());
  794. msg.setMinApplicationStake(value);
  795. break;
  796. case 4:
  797. var value = new proto.OpeningMetadata;
  798. reader.readMessage(value,proto.OpeningMetadata.deserializeBinaryFromReader);
  799. msg.setMetadata(value);
  800. break;
  801. default:
  802. reader.skipField();
  803. break;
  804. }
  805. }
  806. return msg;
  807. };
  808. /**
  809. * Serializes the message to binary data (in protobuf wire format).
  810. * @return {!Uint8Array}
  811. */
  812. proto.UpcomingOpeningMetadata.prototype.serializeBinary = function() {
  813. var writer = new jspb.BinaryWriter();
  814. proto.UpcomingOpeningMetadata.serializeBinaryToWriter(this, writer);
  815. return writer.getResultBuffer();
  816. };
  817. /**
  818. * Serializes the given message to binary data (in protobuf wire
  819. * format), writing to the given BinaryWriter.
  820. * @param {!proto.UpcomingOpeningMetadata} message
  821. * @param {!jspb.BinaryWriter} writer
  822. * @suppress {unusedLocalVariables} f is only used for nested messages
  823. */
  824. proto.UpcomingOpeningMetadata.serializeBinaryToWriter = function(message, writer) {
  825. var f = undefined;
  826. f = /** @type {number} */ (jspb.Message.getField(message, 1));
  827. if (f != null) {
  828. writer.writeUint64(
  829. 1,
  830. f
  831. );
  832. }
  833. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  834. if (f != null) {
  835. writer.writeUint64(
  836. 2,
  837. f
  838. );
  839. }
  840. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  841. if (f != null) {
  842. writer.writeUint64(
  843. 3,
  844. f
  845. );
  846. }
  847. f = message.getMetadata();
  848. if (f != null) {
  849. writer.writeMessage(
  850. 4,
  851. f,
  852. proto.OpeningMetadata.serializeBinaryToWriter
  853. );
  854. }
  855. };
  856. /**
  857. * required uint64 expected_start = 1;
  858. * @return {number}
  859. */
  860. proto.UpcomingOpeningMetadata.prototype.getExpectedStart = function() {
  861. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  862. };
  863. /**
  864. * @param {number} value
  865. * @return {!proto.UpcomingOpeningMetadata} returns this
  866. */
  867. proto.UpcomingOpeningMetadata.prototype.setExpectedStart = function(value) {
  868. return jspb.Message.setField(this, 1, value);
  869. };
  870. /**
  871. * Clears the field making it undefined.
  872. * @return {!proto.UpcomingOpeningMetadata} returns this
  873. */
  874. proto.UpcomingOpeningMetadata.prototype.clearExpectedStart = function() {
  875. return jspb.Message.setField(this, 1, undefined);
  876. };
  877. /**
  878. * Returns whether this field is set.
  879. * @return {boolean}
  880. */
  881. proto.UpcomingOpeningMetadata.prototype.hasExpectedStart = function() {
  882. return jspb.Message.getField(this, 1) != null;
  883. };
  884. /**
  885. * required uint64 reward_per_block = 2;
  886. * @return {number}
  887. */
  888. proto.UpcomingOpeningMetadata.prototype.getRewardPerBlock = function() {
  889. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  890. };
  891. /**
  892. * @param {number} value
  893. * @return {!proto.UpcomingOpeningMetadata} returns this
  894. */
  895. proto.UpcomingOpeningMetadata.prototype.setRewardPerBlock = function(value) {
  896. return jspb.Message.setField(this, 2, value);
  897. };
  898. /**
  899. * Clears the field making it undefined.
  900. * @return {!proto.UpcomingOpeningMetadata} returns this
  901. */
  902. proto.UpcomingOpeningMetadata.prototype.clearRewardPerBlock = function() {
  903. return jspb.Message.setField(this, 2, undefined);
  904. };
  905. /**
  906. * Returns whether this field is set.
  907. * @return {boolean}
  908. */
  909. proto.UpcomingOpeningMetadata.prototype.hasRewardPerBlock = function() {
  910. return jspb.Message.getField(this, 2) != null;
  911. };
  912. /**
  913. * required uint64 min_application_stake = 3;
  914. * @return {number}
  915. */
  916. proto.UpcomingOpeningMetadata.prototype.getMinApplicationStake = function() {
  917. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  918. };
  919. /**
  920. * @param {number} value
  921. * @return {!proto.UpcomingOpeningMetadata} returns this
  922. */
  923. proto.UpcomingOpeningMetadata.prototype.setMinApplicationStake = function(value) {
  924. return jspb.Message.setField(this, 3, value);
  925. };
  926. /**
  927. * Clears the field making it undefined.
  928. * @return {!proto.UpcomingOpeningMetadata} returns this
  929. */
  930. proto.UpcomingOpeningMetadata.prototype.clearMinApplicationStake = function() {
  931. return jspb.Message.setField(this, 3, undefined);
  932. };
  933. /**
  934. * Returns whether this field is set.
  935. * @return {boolean}
  936. */
  937. proto.UpcomingOpeningMetadata.prototype.hasMinApplicationStake = function() {
  938. return jspb.Message.getField(this, 3) != null;
  939. };
  940. /**
  941. * required OpeningMetadata metadata = 4;
  942. * @return {!proto.OpeningMetadata}
  943. */
  944. proto.UpcomingOpeningMetadata.prototype.getMetadata = function() {
  945. return /** @type{!proto.OpeningMetadata} */ (
  946. jspb.Message.getWrapperField(this, proto.OpeningMetadata, 4, 1));
  947. };
  948. /**
  949. * @param {!proto.OpeningMetadata} value
  950. * @return {!proto.UpcomingOpeningMetadata} returns this
  951. */
  952. proto.UpcomingOpeningMetadata.prototype.setMetadata = function(value) {
  953. return jspb.Message.setWrapperField(this, 4, value);
  954. };
  955. /**
  956. * Clears the field making it undefined.
  957. * @return {!proto.UpcomingOpeningMetadata} returns this
  958. */
  959. proto.UpcomingOpeningMetadata.prototype.clearMetadata = function() {
  960. return jspb.Message.setField(this, 4, undefined);
  961. };
  962. /**
  963. * Returns whether this field is set.
  964. * @return {boolean}
  965. */
  966. proto.UpcomingOpeningMetadata.prototype.hasMetadata = function() {
  967. return jspb.Message.getField(this, 4) != null;
  968. };
  969. /**
  970. * List of repeated fields within this message type.
  971. * @private {!Array<number>}
  972. * @const
  973. */
  974. proto.ApplicationMetadata.repeatedFields_ = [1];
  975. if (jspb.Message.GENERATE_TO_OBJECT) {
  976. /**
  977. * Creates an object representation of this proto.
  978. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  979. * Optional fields that are not set will be set to undefined.
  980. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  981. * For the list of reserved names please see:
  982. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  983. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  984. * JSPB instance for transitional soy proto support:
  985. * http://goto/soy-param-migration
  986. * @return {!Object}
  987. */
  988. proto.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) {
  989. return proto.ApplicationMetadata.toObject(opt_includeInstance, this);
  990. };
  991. /**
  992. * Static version of the {@see toObject} method.
  993. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  994. * the JSPB instance for transitional soy proto support:
  995. * http://goto/soy-param-migration
  996. * @param {!proto.ApplicationMetadata} msg The msg instance to transform.
  997. * @return {!Object}
  998. * @suppress {unusedLocalVariables} f is only used for nested messages
  999. */
  1000. proto.ApplicationMetadata.toObject = function(includeInstance, msg) {
  1001. var f, obj = {
  1002. answersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
  1003. };
  1004. if (includeInstance) {
  1005. obj.$jspbMessageInstance = msg;
  1006. }
  1007. return obj;
  1008. };
  1009. }
  1010. /**
  1011. * Deserializes binary data (in protobuf wire format).
  1012. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1013. * @return {!proto.ApplicationMetadata}
  1014. */
  1015. proto.ApplicationMetadata.deserializeBinary = function(bytes) {
  1016. var reader = new jspb.BinaryReader(bytes);
  1017. var msg = new proto.ApplicationMetadata;
  1018. return proto.ApplicationMetadata.deserializeBinaryFromReader(msg, reader);
  1019. };
  1020. /**
  1021. * Deserializes binary data (in protobuf wire format) from the
  1022. * given reader into the given message object.
  1023. * @param {!proto.ApplicationMetadata} msg The message object to deserialize into.
  1024. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1025. * @return {!proto.ApplicationMetadata}
  1026. */
  1027. proto.ApplicationMetadata.deserializeBinaryFromReader = function(msg, reader) {
  1028. while (reader.nextField()) {
  1029. if (reader.isEndGroup()) {
  1030. break;
  1031. }
  1032. var field = reader.getFieldNumber();
  1033. switch (field) {
  1034. case 1:
  1035. var value = /** @type {string} */ (reader.readString());
  1036. msg.addAnswers(value);
  1037. break;
  1038. default:
  1039. reader.skipField();
  1040. break;
  1041. }
  1042. }
  1043. return msg;
  1044. };
  1045. /**
  1046. * Serializes the message to binary data (in protobuf wire format).
  1047. * @return {!Uint8Array}
  1048. */
  1049. proto.ApplicationMetadata.prototype.serializeBinary = function() {
  1050. var writer = new jspb.BinaryWriter();
  1051. proto.ApplicationMetadata.serializeBinaryToWriter(this, writer);
  1052. return writer.getResultBuffer();
  1053. };
  1054. /**
  1055. * Serializes the given message to binary data (in protobuf wire
  1056. * format), writing to the given BinaryWriter.
  1057. * @param {!proto.ApplicationMetadata} message
  1058. * @param {!jspb.BinaryWriter} writer
  1059. * @suppress {unusedLocalVariables} f is only used for nested messages
  1060. */
  1061. proto.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) {
  1062. var f = undefined;
  1063. f = message.getAnswersList();
  1064. if (f.length > 0) {
  1065. writer.writeRepeatedString(
  1066. 1,
  1067. f
  1068. );
  1069. }
  1070. };
  1071. /**
  1072. * repeated string answers = 1;
  1073. * @return {!Array<string>}
  1074. */
  1075. proto.ApplicationMetadata.prototype.getAnswersList = function() {
  1076. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
  1077. };
  1078. /**
  1079. * @param {!Array<string>} value
  1080. * @return {!proto.ApplicationMetadata} returns this
  1081. */
  1082. proto.ApplicationMetadata.prototype.setAnswersList = function(value) {
  1083. return jspb.Message.setField(this, 1, value || []);
  1084. };
  1085. /**
  1086. * @param {string} value
  1087. * @param {number=} opt_index
  1088. * @return {!proto.ApplicationMetadata} returns this
  1089. */
  1090. proto.ApplicationMetadata.prototype.addAnswers = function(value, opt_index) {
  1091. return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  1092. };
  1093. /**
  1094. * Clears the list making it empty but non-null.
  1095. * @return {!proto.ApplicationMetadata} returns this
  1096. */
  1097. proto.ApplicationMetadata.prototype.clearAnswersList = function() {
  1098. return this.setAnswersList([]);
  1099. };
  1100. if (jspb.Message.GENERATE_TO_OBJECT) {
  1101. /**
  1102. * Creates an object representation of this proto.
  1103. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1104. * Optional fields that are not set will be set to undefined.
  1105. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1106. * For the list of reserved names please see:
  1107. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1108. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1109. * JSPB instance for transitional soy proto support:
  1110. * http://goto/soy-param-migration
  1111. * @return {!Object}
  1112. */
  1113. proto.WorkingGroupMetadata.prototype.toObject = function(opt_includeInstance) {
  1114. return proto.WorkingGroupMetadata.toObject(opt_includeInstance, this);
  1115. };
  1116. /**
  1117. * Static version of the {@see toObject} method.
  1118. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1119. * the JSPB instance for transitional soy proto support:
  1120. * http://goto/soy-param-migration
  1121. * @param {!proto.WorkingGroupMetadata} msg The msg instance to transform.
  1122. * @return {!Object}
  1123. * @suppress {unusedLocalVariables} f is only used for nested messages
  1124. */
  1125. proto.WorkingGroupMetadata.toObject = function(includeInstance, msg) {
  1126. var f, obj = {
  1127. description: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  1128. about: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  1129. status: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  1130. statusMessage: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
  1131. };
  1132. if (includeInstance) {
  1133. obj.$jspbMessageInstance = msg;
  1134. }
  1135. return obj;
  1136. };
  1137. }
  1138. /**
  1139. * Deserializes binary data (in protobuf wire format).
  1140. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1141. * @return {!proto.WorkingGroupMetadata}
  1142. */
  1143. proto.WorkingGroupMetadata.deserializeBinary = function(bytes) {
  1144. var reader = new jspb.BinaryReader(bytes);
  1145. var msg = new proto.WorkingGroupMetadata;
  1146. return proto.WorkingGroupMetadata.deserializeBinaryFromReader(msg, reader);
  1147. };
  1148. /**
  1149. * Deserializes binary data (in protobuf wire format) from the
  1150. * given reader into the given message object.
  1151. * @param {!proto.WorkingGroupMetadata} msg The message object to deserialize into.
  1152. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1153. * @return {!proto.WorkingGroupMetadata}
  1154. */
  1155. proto.WorkingGroupMetadata.deserializeBinaryFromReader = function(msg, reader) {
  1156. while (reader.nextField()) {
  1157. if (reader.isEndGroup()) {
  1158. break;
  1159. }
  1160. var field = reader.getFieldNumber();
  1161. switch (field) {
  1162. case 1:
  1163. var value = /** @type {string} */ (reader.readString());
  1164. msg.setDescription(value);
  1165. break;
  1166. case 2:
  1167. var value = /** @type {string} */ (reader.readString());
  1168. msg.setAbout(value);
  1169. break;
  1170. case 3:
  1171. var value = /** @type {string} */ (reader.readString());
  1172. msg.setStatus(value);
  1173. break;
  1174. case 4:
  1175. var value = /** @type {string} */ (reader.readString());
  1176. msg.setStatusMessage(value);
  1177. break;
  1178. default:
  1179. reader.skipField();
  1180. break;
  1181. }
  1182. }
  1183. return msg;
  1184. };
  1185. /**
  1186. * Serializes the message to binary data (in protobuf wire format).
  1187. * @return {!Uint8Array}
  1188. */
  1189. proto.WorkingGroupMetadata.prototype.serializeBinary = function() {
  1190. var writer = new jspb.BinaryWriter();
  1191. proto.WorkingGroupMetadata.serializeBinaryToWriter(this, writer);
  1192. return writer.getResultBuffer();
  1193. };
  1194. /**
  1195. * Serializes the given message to binary data (in protobuf wire
  1196. * format), writing to the given BinaryWriter.
  1197. * @param {!proto.WorkingGroupMetadata} message
  1198. * @param {!jspb.BinaryWriter} writer
  1199. * @suppress {unusedLocalVariables} f is only used for nested messages
  1200. */
  1201. proto.WorkingGroupMetadata.serializeBinaryToWriter = function(message, writer) {
  1202. var f = undefined;
  1203. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  1204. if (f != null) {
  1205. writer.writeString(
  1206. 1,
  1207. f
  1208. );
  1209. }
  1210. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  1211. if (f != null) {
  1212. writer.writeString(
  1213. 2,
  1214. f
  1215. );
  1216. }
  1217. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  1218. if (f != null) {
  1219. writer.writeString(
  1220. 3,
  1221. f
  1222. );
  1223. }
  1224. f = /** @type {string} */ (jspb.Message.getField(message, 4));
  1225. if (f != null) {
  1226. writer.writeString(
  1227. 4,
  1228. f
  1229. );
  1230. }
  1231. };
  1232. /**
  1233. * optional string description = 1;
  1234. * @return {string}
  1235. */
  1236. proto.WorkingGroupMetadata.prototype.getDescription = function() {
  1237. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1238. };
  1239. /**
  1240. * @param {string} value
  1241. * @return {!proto.WorkingGroupMetadata} returns this
  1242. */
  1243. proto.WorkingGroupMetadata.prototype.setDescription = function(value) {
  1244. return jspb.Message.setField(this, 1, value);
  1245. };
  1246. /**
  1247. * Clears the field making it undefined.
  1248. * @return {!proto.WorkingGroupMetadata} returns this
  1249. */
  1250. proto.WorkingGroupMetadata.prototype.clearDescription = function() {
  1251. return jspb.Message.setField(this, 1, undefined);
  1252. };
  1253. /**
  1254. * Returns whether this field is set.
  1255. * @return {boolean}
  1256. */
  1257. proto.WorkingGroupMetadata.prototype.hasDescription = function() {
  1258. return jspb.Message.getField(this, 1) != null;
  1259. };
  1260. /**
  1261. * optional string about = 2;
  1262. * @return {string}
  1263. */
  1264. proto.WorkingGroupMetadata.prototype.getAbout = function() {
  1265. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1266. };
  1267. /**
  1268. * @param {string} value
  1269. * @return {!proto.WorkingGroupMetadata} returns this
  1270. */
  1271. proto.WorkingGroupMetadata.prototype.setAbout = function(value) {
  1272. return jspb.Message.setField(this, 2, value);
  1273. };
  1274. /**
  1275. * Clears the field making it undefined.
  1276. * @return {!proto.WorkingGroupMetadata} returns this
  1277. */
  1278. proto.WorkingGroupMetadata.prototype.clearAbout = function() {
  1279. return jspb.Message.setField(this, 2, undefined);
  1280. };
  1281. /**
  1282. * Returns whether this field is set.
  1283. * @return {boolean}
  1284. */
  1285. proto.WorkingGroupMetadata.prototype.hasAbout = function() {
  1286. return jspb.Message.getField(this, 2) != null;
  1287. };
  1288. /**
  1289. * optional string status = 3;
  1290. * @return {string}
  1291. */
  1292. proto.WorkingGroupMetadata.prototype.getStatus = function() {
  1293. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  1294. };
  1295. /**
  1296. * @param {string} value
  1297. * @return {!proto.WorkingGroupMetadata} returns this
  1298. */
  1299. proto.WorkingGroupMetadata.prototype.setStatus = function(value) {
  1300. return jspb.Message.setField(this, 3, value);
  1301. };
  1302. /**
  1303. * Clears the field making it undefined.
  1304. * @return {!proto.WorkingGroupMetadata} returns this
  1305. */
  1306. proto.WorkingGroupMetadata.prototype.clearStatus = function() {
  1307. return jspb.Message.setField(this, 3, undefined);
  1308. };
  1309. /**
  1310. * Returns whether this field is set.
  1311. * @return {boolean}
  1312. */
  1313. proto.WorkingGroupMetadata.prototype.hasStatus = function() {
  1314. return jspb.Message.getField(this, 3) != null;
  1315. };
  1316. /**
  1317. * optional string status_message = 4;
  1318. * @return {string}
  1319. */
  1320. proto.WorkingGroupMetadata.prototype.getStatusMessage = function() {
  1321. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  1322. };
  1323. /**
  1324. * @param {string} value
  1325. * @return {!proto.WorkingGroupMetadata} returns this
  1326. */
  1327. proto.WorkingGroupMetadata.prototype.setStatusMessage = function(value) {
  1328. return jspb.Message.setField(this, 4, value);
  1329. };
  1330. /**
  1331. * Clears the field making it undefined.
  1332. * @return {!proto.WorkingGroupMetadata} returns this
  1333. */
  1334. proto.WorkingGroupMetadata.prototype.clearStatusMessage = function() {
  1335. return jspb.Message.setField(this, 4, undefined);
  1336. };
  1337. /**
  1338. * Returns whether this field is set.
  1339. * @return {boolean}
  1340. */
  1341. proto.WorkingGroupMetadata.prototype.hasStatusMessage = function() {
  1342. return jspb.Message.getField(this, 4) != null;
  1343. };
  1344. if (jspb.Message.GENERATE_TO_OBJECT) {
  1345. /**
  1346. * Creates an object representation of this proto.
  1347. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1348. * Optional fields that are not set will be set to undefined.
  1349. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1350. * For the list of reserved names please see:
  1351. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1352. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1353. * JSPB instance for transitional soy proto support:
  1354. * http://goto/soy-param-migration
  1355. * @return {!Object}
  1356. */
  1357. proto.SetGroupMetadata.prototype.toObject = function(opt_includeInstance) {
  1358. return proto.SetGroupMetadata.toObject(opt_includeInstance, this);
  1359. };
  1360. /**
  1361. * Static version of the {@see toObject} method.
  1362. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1363. * the JSPB instance for transitional soy proto support:
  1364. * http://goto/soy-param-migration
  1365. * @param {!proto.SetGroupMetadata} msg The msg instance to transform.
  1366. * @return {!Object}
  1367. * @suppress {unusedLocalVariables} f is only used for nested messages
  1368. */
  1369. proto.SetGroupMetadata.toObject = function(includeInstance, msg) {
  1370. var f, obj = {
  1371. newMetadata: (f = msg.getNewMetadata()) && proto.WorkingGroupMetadata.toObject(includeInstance, f)
  1372. };
  1373. if (includeInstance) {
  1374. obj.$jspbMessageInstance = msg;
  1375. }
  1376. return obj;
  1377. };
  1378. }
  1379. /**
  1380. * Deserializes binary data (in protobuf wire format).
  1381. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1382. * @return {!proto.SetGroupMetadata}
  1383. */
  1384. proto.SetGroupMetadata.deserializeBinary = function(bytes) {
  1385. var reader = new jspb.BinaryReader(bytes);
  1386. var msg = new proto.SetGroupMetadata;
  1387. return proto.SetGroupMetadata.deserializeBinaryFromReader(msg, reader);
  1388. };
  1389. /**
  1390. * Deserializes binary data (in protobuf wire format) from the
  1391. * given reader into the given message object.
  1392. * @param {!proto.SetGroupMetadata} msg The message object to deserialize into.
  1393. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1394. * @return {!proto.SetGroupMetadata}
  1395. */
  1396. proto.SetGroupMetadata.deserializeBinaryFromReader = function(msg, reader) {
  1397. while (reader.nextField()) {
  1398. if (reader.isEndGroup()) {
  1399. break;
  1400. }
  1401. var field = reader.getFieldNumber();
  1402. switch (field) {
  1403. case 1:
  1404. var value = new proto.WorkingGroupMetadata;
  1405. reader.readMessage(value,proto.WorkingGroupMetadata.deserializeBinaryFromReader);
  1406. msg.setNewMetadata(value);
  1407. break;
  1408. default:
  1409. reader.skipField();
  1410. break;
  1411. }
  1412. }
  1413. return msg;
  1414. };
  1415. /**
  1416. * Serializes the message to binary data (in protobuf wire format).
  1417. * @return {!Uint8Array}
  1418. */
  1419. proto.SetGroupMetadata.prototype.serializeBinary = function() {
  1420. var writer = new jspb.BinaryWriter();
  1421. proto.SetGroupMetadata.serializeBinaryToWriter(this, writer);
  1422. return writer.getResultBuffer();
  1423. };
  1424. /**
  1425. * Serializes the given message to binary data (in protobuf wire
  1426. * format), writing to the given BinaryWriter.
  1427. * @param {!proto.SetGroupMetadata} message
  1428. * @param {!jspb.BinaryWriter} writer
  1429. * @suppress {unusedLocalVariables} f is only used for nested messages
  1430. */
  1431. proto.SetGroupMetadata.serializeBinaryToWriter = function(message, writer) {
  1432. var f = undefined;
  1433. f = message.getNewMetadata();
  1434. if (f != null) {
  1435. writer.writeMessage(
  1436. 1,
  1437. f,
  1438. proto.WorkingGroupMetadata.serializeBinaryToWriter
  1439. );
  1440. }
  1441. };
  1442. /**
  1443. * required WorkingGroupMetadata new_metadata = 1;
  1444. * @return {!proto.WorkingGroupMetadata}
  1445. */
  1446. proto.SetGroupMetadata.prototype.getNewMetadata = function() {
  1447. return /** @type{!proto.WorkingGroupMetadata} */ (
  1448. jspb.Message.getWrapperField(this, proto.WorkingGroupMetadata, 1, 1));
  1449. };
  1450. /**
  1451. * @param {!proto.WorkingGroupMetadata} value
  1452. * @return {!proto.SetGroupMetadata} returns this
  1453. */
  1454. proto.SetGroupMetadata.prototype.setNewMetadata = function(value) {
  1455. return jspb.Message.setWrapperField(this, 1, value);
  1456. };
  1457. /**
  1458. * Clears the field making it undefined.
  1459. * @return {!proto.SetGroupMetadata} returns this
  1460. */
  1461. proto.SetGroupMetadata.prototype.clearNewMetadata = function() {
  1462. return jspb.Message.setField(this, 1, undefined);
  1463. };
  1464. /**
  1465. * Returns whether this field is set.
  1466. * @return {boolean}
  1467. */
  1468. proto.SetGroupMetadata.prototype.hasNewMetadata = function() {
  1469. return jspb.Message.getField(this, 1) != null;
  1470. };
  1471. if (jspb.Message.GENERATE_TO_OBJECT) {
  1472. /**
  1473. * Creates an object representation of this proto.
  1474. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1475. * Optional fields that are not set will be set to undefined.
  1476. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1477. * For the list of reserved names please see:
  1478. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1479. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1480. * JSPB instance for transitional soy proto support:
  1481. * http://goto/soy-param-migration
  1482. * @return {!Object}
  1483. */
  1484. proto.AddUpcomingOpening.prototype.toObject = function(opt_includeInstance) {
  1485. return proto.AddUpcomingOpening.toObject(opt_includeInstance, this);
  1486. };
  1487. /**
  1488. * Static version of the {@see toObject} method.
  1489. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1490. * the JSPB instance for transitional soy proto support:
  1491. * http://goto/soy-param-migration
  1492. * @param {!proto.AddUpcomingOpening} msg The msg instance to transform.
  1493. * @return {!Object}
  1494. * @suppress {unusedLocalVariables} f is only used for nested messages
  1495. */
  1496. proto.AddUpcomingOpening.toObject = function(includeInstance, msg) {
  1497. var f, obj = {
  1498. metadata: (f = msg.getMetadata()) && proto.UpcomingOpeningMetadata.toObject(includeInstance, f)
  1499. };
  1500. if (includeInstance) {
  1501. obj.$jspbMessageInstance = msg;
  1502. }
  1503. return obj;
  1504. };
  1505. }
  1506. /**
  1507. * Deserializes binary data (in protobuf wire format).
  1508. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1509. * @return {!proto.AddUpcomingOpening}
  1510. */
  1511. proto.AddUpcomingOpening.deserializeBinary = function(bytes) {
  1512. var reader = new jspb.BinaryReader(bytes);
  1513. var msg = new proto.AddUpcomingOpening;
  1514. return proto.AddUpcomingOpening.deserializeBinaryFromReader(msg, reader);
  1515. };
  1516. /**
  1517. * Deserializes binary data (in protobuf wire format) from the
  1518. * given reader into the given message object.
  1519. * @param {!proto.AddUpcomingOpening} msg The message object to deserialize into.
  1520. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1521. * @return {!proto.AddUpcomingOpening}
  1522. */
  1523. proto.AddUpcomingOpening.deserializeBinaryFromReader = function(msg, reader) {
  1524. while (reader.nextField()) {
  1525. if (reader.isEndGroup()) {
  1526. break;
  1527. }
  1528. var field = reader.getFieldNumber();
  1529. switch (field) {
  1530. case 1:
  1531. var value = new proto.UpcomingOpeningMetadata;
  1532. reader.readMessage(value,proto.UpcomingOpeningMetadata.deserializeBinaryFromReader);
  1533. msg.setMetadata(value);
  1534. break;
  1535. default:
  1536. reader.skipField();
  1537. break;
  1538. }
  1539. }
  1540. return msg;
  1541. };
  1542. /**
  1543. * Serializes the message to binary data (in protobuf wire format).
  1544. * @return {!Uint8Array}
  1545. */
  1546. proto.AddUpcomingOpening.prototype.serializeBinary = function() {
  1547. var writer = new jspb.BinaryWriter();
  1548. proto.AddUpcomingOpening.serializeBinaryToWriter(this, writer);
  1549. return writer.getResultBuffer();
  1550. };
  1551. /**
  1552. * Serializes the given message to binary data (in protobuf wire
  1553. * format), writing to the given BinaryWriter.
  1554. * @param {!proto.AddUpcomingOpening} message
  1555. * @param {!jspb.BinaryWriter} writer
  1556. * @suppress {unusedLocalVariables} f is only used for nested messages
  1557. */
  1558. proto.AddUpcomingOpening.serializeBinaryToWriter = function(message, writer) {
  1559. var f = undefined;
  1560. f = message.getMetadata();
  1561. if (f != null) {
  1562. writer.writeMessage(
  1563. 1,
  1564. f,
  1565. proto.UpcomingOpeningMetadata.serializeBinaryToWriter
  1566. );
  1567. }
  1568. };
  1569. /**
  1570. * required UpcomingOpeningMetadata metadata = 1;
  1571. * @return {!proto.UpcomingOpeningMetadata}
  1572. */
  1573. proto.AddUpcomingOpening.prototype.getMetadata = function() {
  1574. return /** @type{!proto.UpcomingOpeningMetadata} */ (
  1575. jspb.Message.getWrapperField(this, proto.UpcomingOpeningMetadata, 1, 1));
  1576. };
  1577. /**
  1578. * @param {!proto.UpcomingOpeningMetadata} value
  1579. * @return {!proto.AddUpcomingOpening} returns this
  1580. */
  1581. proto.AddUpcomingOpening.prototype.setMetadata = function(value) {
  1582. return jspb.Message.setWrapperField(this, 1, value);
  1583. };
  1584. /**
  1585. * Clears the field making it undefined.
  1586. * @return {!proto.AddUpcomingOpening} returns this
  1587. */
  1588. proto.AddUpcomingOpening.prototype.clearMetadata = function() {
  1589. return jspb.Message.setField(this, 1, undefined);
  1590. };
  1591. /**
  1592. * Returns whether this field is set.
  1593. * @return {boolean}
  1594. */
  1595. proto.AddUpcomingOpening.prototype.hasMetadata = function() {
  1596. return jspb.Message.getField(this, 1) != null;
  1597. };
  1598. if (jspb.Message.GENERATE_TO_OBJECT) {
  1599. /**
  1600. * Creates an object representation of this proto.
  1601. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1602. * Optional fields that are not set will be set to undefined.
  1603. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1604. * For the list of reserved names please see:
  1605. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1606. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1607. * JSPB instance for transitional soy proto support:
  1608. * http://goto/soy-param-migration
  1609. * @return {!Object}
  1610. */
  1611. proto.RemoveUpcomingOpening.prototype.toObject = function(opt_includeInstance) {
  1612. return proto.RemoveUpcomingOpening.toObject(opt_includeInstance, this);
  1613. };
  1614. /**
  1615. * Static version of the {@see toObject} method.
  1616. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1617. * the JSPB instance for transitional soy proto support:
  1618. * http://goto/soy-param-migration
  1619. * @param {!proto.RemoveUpcomingOpening} msg The msg instance to transform.
  1620. * @return {!Object}
  1621. * @suppress {unusedLocalVariables} f is only used for nested messages
  1622. */
  1623. proto.RemoveUpcomingOpening.toObject = function(includeInstance, msg) {
  1624. var f, obj = {
  1625. id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
  1626. };
  1627. if (includeInstance) {
  1628. obj.$jspbMessageInstance = msg;
  1629. }
  1630. return obj;
  1631. };
  1632. }
  1633. /**
  1634. * Deserializes binary data (in protobuf wire format).
  1635. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1636. * @return {!proto.RemoveUpcomingOpening}
  1637. */
  1638. proto.RemoveUpcomingOpening.deserializeBinary = function(bytes) {
  1639. var reader = new jspb.BinaryReader(bytes);
  1640. var msg = new proto.RemoveUpcomingOpening;
  1641. return proto.RemoveUpcomingOpening.deserializeBinaryFromReader(msg, reader);
  1642. };
  1643. /**
  1644. * Deserializes binary data (in protobuf wire format) from the
  1645. * given reader into the given message object.
  1646. * @param {!proto.RemoveUpcomingOpening} msg The message object to deserialize into.
  1647. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1648. * @return {!proto.RemoveUpcomingOpening}
  1649. */
  1650. proto.RemoveUpcomingOpening.deserializeBinaryFromReader = function(msg, reader) {
  1651. while (reader.nextField()) {
  1652. if (reader.isEndGroup()) {
  1653. break;
  1654. }
  1655. var field = reader.getFieldNumber();
  1656. switch (field) {
  1657. case 1:
  1658. var value = /** @type {string} */ (reader.readString());
  1659. msg.setId(value);
  1660. break;
  1661. default:
  1662. reader.skipField();
  1663. break;
  1664. }
  1665. }
  1666. return msg;
  1667. };
  1668. /**
  1669. * Serializes the message to binary data (in protobuf wire format).
  1670. * @return {!Uint8Array}
  1671. */
  1672. proto.RemoveUpcomingOpening.prototype.serializeBinary = function() {
  1673. var writer = new jspb.BinaryWriter();
  1674. proto.RemoveUpcomingOpening.serializeBinaryToWriter(this, writer);
  1675. return writer.getResultBuffer();
  1676. };
  1677. /**
  1678. * Serializes the given message to binary data (in protobuf wire
  1679. * format), writing to the given BinaryWriter.
  1680. * @param {!proto.RemoveUpcomingOpening} message
  1681. * @param {!jspb.BinaryWriter} writer
  1682. * @suppress {unusedLocalVariables} f is only used for nested messages
  1683. */
  1684. proto.RemoveUpcomingOpening.serializeBinaryToWriter = function(message, writer) {
  1685. var f = undefined;
  1686. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  1687. if (f != null) {
  1688. writer.writeString(
  1689. 1,
  1690. f
  1691. );
  1692. }
  1693. };
  1694. /**
  1695. * required string id = 1;
  1696. * @return {string}
  1697. */
  1698. proto.RemoveUpcomingOpening.prototype.getId = function() {
  1699. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1700. };
  1701. /**
  1702. * @param {string} value
  1703. * @return {!proto.RemoveUpcomingOpening} returns this
  1704. */
  1705. proto.RemoveUpcomingOpening.prototype.setId = function(value) {
  1706. return jspb.Message.setField(this, 1, value);
  1707. };
  1708. /**
  1709. * Clears the field making it undefined.
  1710. * @return {!proto.RemoveUpcomingOpening} returns this
  1711. */
  1712. proto.RemoveUpcomingOpening.prototype.clearId = function() {
  1713. return jspb.Message.setField(this, 1, undefined);
  1714. };
  1715. /**
  1716. * Returns whether this field is set.
  1717. * @return {boolean}
  1718. */
  1719. proto.RemoveUpcomingOpening.prototype.hasId = function() {
  1720. return jspb.Message.getField(this, 1) != null;
  1721. };
  1722. /**
  1723. * Oneof group definitions for this message. Each group defines the field
  1724. * numbers belonging to that group. When of these fields' value is set, all
  1725. * other fields in the group are cleared. During deserialization, if multiple
  1726. * fields are encountered for a group, only the last value seen will be kept.
  1727. * @private {!Array<!Array<number>>}
  1728. * @const
  1729. */
  1730. proto.WorkingGroupMetadataAction.oneofGroups_ = [[1,2,3]];
  1731. /**
  1732. * @enum {number}
  1733. */
  1734. proto.WorkingGroupMetadataAction.ActionCase = {
  1735. ACTION_NOT_SET: 0,
  1736. SET_GROUP_METADATA: 1,
  1737. ADD_UPCOMING_OPENING: 2,
  1738. REMOVE_UPCOMING_OPENING: 3
  1739. };
  1740. /**
  1741. * @return {proto.WorkingGroupMetadataAction.ActionCase}
  1742. */
  1743. proto.WorkingGroupMetadataAction.prototype.getActionCase = function() {
  1744. return /** @type {proto.WorkingGroupMetadataAction.ActionCase} */(jspb.Message.computeOneofCase(this, proto.WorkingGroupMetadataAction.oneofGroups_[0]));
  1745. };
  1746. if (jspb.Message.GENERATE_TO_OBJECT) {
  1747. /**
  1748. * Creates an object representation of this proto.
  1749. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1750. * Optional fields that are not set will be set to undefined.
  1751. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1752. * For the list of reserved names please see:
  1753. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1754. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1755. * JSPB instance for transitional soy proto support:
  1756. * http://goto/soy-param-migration
  1757. * @return {!Object}
  1758. */
  1759. proto.WorkingGroupMetadataAction.prototype.toObject = function(opt_includeInstance) {
  1760. return proto.WorkingGroupMetadataAction.toObject(opt_includeInstance, this);
  1761. };
  1762. /**
  1763. * Static version of the {@see toObject} method.
  1764. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1765. * the JSPB instance for transitional soy proto support:
  1766. * http://goto/soy-param-migration
  1767. * @param {!proto.WorkingGroupMetadataAction} msg The msg instance to transform.
  1768. * @return {!Object}
  1769. * @suppress {unusedLocalVariables} f is only used for nested messages
  1770. */
  1771. proto.WorkingGroupMetadataAction.toObject = function(includeInstance, msg) {
  1772. var f, obj = {
  1773. setGroupMetadata: (f = msg.getSetGroupMetadata()) && proto.SetGroupMetadata.toObject(includeInstance, f),
  1774. addUpcomingOpening: (f = msg.getAddUpcomingOpening()) && proto.AddUpcomingOpening.toObject(includeInstance, f),
  1775. removeUpcomingOpening: (f = msg.getRemoveUpcomingOpening()) && proto.RemoveUpcomingOpening.toObject(includeInstance, f)
  1776. };
  1777. if (includeInstance) {
  1778. obj.$jspbMessageInstance = msg;
  1779. }
  1780. return obj;
  1781. };
  1782. }
  1783. /**
  1784. * Deserializes binary data (in protobuf wire format).
  1785. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1786. * @return {!proto.WorkingGroupMetadataAction}
  1787. */
  1788. proto.WorkingGroupMetadataAction.deserializeBinary = function(bytes) {
  1789. var reader = new jspb.BinaryReader(bytes);
  1790. var msg = new proto.WorkingGroupMetadataAction;
  1791. return proto.WorkingGroupMetadataAction.deserializeBinaryFromReader(msg, reader);
  1792. };
  1793. /**
  1794. * Deserializes binary data (in protobuf wire format) from the
  1795. * given reader into the given message object.
  1796. * @param {!proto.WorkingGroupMetadataAction} msg The message object to deserialize into.
  1797. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1798. * @return {!proto.WorkingGroupMetadataAction}
  1799. */
  1800. proto.WorkingGroupMetadataAction.deserializeBinaryFromReader = function(msg, reader) {
  1801. while (reader.nextField()) {
  1802. if (reader.isEndGroup()) {
  1803. break;
  1804. }
  1805. var field = reader.getFieldNumber();
  1806. switch (field) {
  1807. case 1:
  1808. var value = new proto.SetGroupMetadata;
  1809. reader.readMessage(value,proto.SetGroupMetadata.deserializeBinaryFromReader);
  1810. msg.setSetGroupMetadata(value);
  1811. break;
  1812. case 2:
  1813. var value = new proto.AddUpcomingOpening;
  1814. reader.readMessage(value,proto.AddUpcomingOpening.deserializeBinaryFromReader);
  1815. msg.setAddUpcomingOpening(value);
  1816. break;
  1817. case 3:
  1818. var value = new proto.RemoveUpcomingOpening;
  1819. reader.readMessage(value,proto.RemoveUpcomingOpening.deserializeBinaryFromReader);
  1820. msg.setRemoveUpcomingOpening(value);
  1821. break;
  1822. default:
  1823. reader.skipField();
  1824. break;
  1825. }
  1826. }
  1827. return msg;
  1828. };
  1829. /**
  1830. * Serializes the message to binary data (in protobuf wire format).
  1831. * @return {!Uint8Array}
  1832. */
  1833. proto.WorkingGroupMetadataAction.prototype.serializeBinary = function() {
  1834. var writer = new jspb.BinaryWriter();
  1835. proto.WorkingGroupMetadataAction.serializeBinaryToWriter(this, writer);
  1836. return writer.getResultBuffer();
  1837. };
  1838. /**
  1839. * Serializes the given message to binary data (in protobuf wire
  1840. * format), writing to the given BinaryWriter.
  1841. * @param {!proto.WorkingGroupMetadataAction} message
  1842. * @param {!jspb.BinaryWriter} writer
  1843. * @suppress {unusedLocalVariables} f is only used for nested messages
  1844. */
  1845. proto.WorkingGroupMetadataAction.serializeBinaryToWriter = function(message, writer) {
  1846. var f = undefined;
  1847. f = message.getSetGroupMetadata();
  1848. if (f != null) {
  1849. writer.writeMessage(
  1850. 1,
  1851. f,
  1852. proto.SetGroupMetadata.serializeBinaryToWriter
  1853. );
  1854. }
  1855. f = message.getAddUpcomingOpening();
  1856. if (f != null) {
  1857. writer.writeMessage(
  1858. 2,
  1859. f,
  1860. proto.AddUpcomingOpening.serializeBinaryToWriter
  1861. );
  1862. }
  1863. f = message.getRemoveUpcomingOpening();
  1864. if (f != null) {
  1865. writer.writeMessage(
  1866. 3,
  1867. f,
  1868. proto.RemoveUpcomingOpening.serializeBinaryToWriter
  1869. );
  1870. }
  1871. };
  1872. /**
  1873. * optional SetGroupMetadata set_group_metadata = 1;
  1874. * @return {?proto.SetGroupMetadata}
  1875. */
  1876. proto.WorkingGroupMetadataAction.prototype.getSetGroupMetadata = function() {
  1877. return /** @type{?proto.SetGroupMetadata} */ (
  1878. jspb.Message.getWrapperField(this, proto.SetGroupMetadata, 1));
  1879. };
  1880. /**
  1881. * @param {?proto.SetGroupMetadata|undefined} value
  1882. * @return {!proto.WorkingGroupMetadataAction} returns this
  1883. */
  1884. proto.WorkingGroupMetadataAction.prototype.setSetGroupMetadata = function(value) {
  1885. return jspb.Message.setOneofWrapperField(this, 1, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
  1886. };
  1887. /**
  1888. * Clears the message field making it undefined.
  1889. * @return {!proto.WorkingGroupMetadataAction} returns this
  1890. */
  1891. proto.WorkingGroupMetadataAction.prototype.clearSetGroupMetadata = function() {
  1892. return this.setSetGroupMetadata(undefined);
  1893. };
  1894. /**
  1895. * Returns whether this field is set.
  1896. * @return {boolean}
  1897. */
  1898. proto.WorkingGroupMetadataAction.prototype.hasSetGroupMetadata = function() {
  1899. return jspb.Message.getField(this, 1) != null;
  1900. };
  1901. /**
  1902. * optional AddUpcomingOpening add_upcoming_opening = 2;
  1903. * @return {?proto.AddUpcomingOpening}
  1904. */
  1905. proto.WorkingGroupMetadataAction.prototype.getAddUpcomingOpening = function() {
  1906. return /** @type{?proto.AddUpcomingOpening} */ (
  1907. jspb.Message.getWrapperField(this, proto.AddUpcomingOpening, 2));
  1908. };
  1909. /**
  1910. * @param {?proto.AddUpcomingOpening|undefined} value
  1911. * @return {!proto.WorkingGroupMetadataAction} returns this
  1912. */
  1913. proto.WorkingGroupMetadataAction.prototype.setAddUpcomingOpening = function(value) {
  1914. return jspb.Message.setOneofWrapperField(this, 2, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
  1915. };
  1916. /**
  1917. * Clears the message field making it undefined.
  1918. * @return {!proto.WorkingGroupMetadataAction} returns this
  1919. */
  1920. proto.WorkingGroupMetadataAction.prototype.clearAddUpcomingOpening = function() {
  1921. return this.setAddUpcomingOpening(undefined);
  1922. };
  1923. /**
  1924. * Returns whether this field is set.
  1925. * @return {boolean}
  1926. */
  1927. proto.WorkingGroupMetadataAction.prototype.hasAddUpcomingOpening = function() {
  1928. return jspb.Message.getField(this, 2) != null;
  1929. };
  1930. /**
  1931. * optional RemoveUpcomingOpening remove_upcoming_opening = 3;
  1932. * @return {?proto.RemoveUpcomingOpening}
  1933. */
  1934. proto.WorkingGroupMetadataAction.prototype.getRemoveUpcomingOpening = function() {
  1935. return /** @type{?proto.RemoveUpcomingOpening} */ (
  1936. jspb.Message.getWrapperField(this, proto.RemoveUpcomingOpening, 3));
  1937. };
  1938. /**
  1939. * @param {?proto.RemoveUpcomingOpening|undefined} value
  1940. * @return {!proto.WorkingGroupMetadataAction} returns this
  1941. */
  1942. proto.WorkingGroupMetadataAction.prototype.setRemoveUpcomingOpening = function(value) {
  1943. return jspb.Message.setOneofWrapperField(this, 3, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
  1944. };
  1945. /**
  1946. * Clears the message field making it undefined.
  1947. * @return {!proto.WorkingGroupMetadataAction} returns this
  1948. */
  1949. proto.WorkingGroupMetadataAction.prototype.clearRemoveUpcomingOpening = function() {
  1950. return this.setRemoveUpcomingOpening(undefined);
  1951. };
  1952. /**
  1953. * Returns whether this field is set.
  1954. * @return {boolean}
  1955. */
  1956. proto.WorkingGroupMetadataAction.prototype.hasRemoveUpcomingOpening = function() {
  1957. return jspb.Message.getField(this, 3) != null;
  1958. };
  1959. goog.object.extend(exports, proto);