123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295 |
- // source: proto/WorkingGroups.proto
- /**
- * @fileoverview
- * @enhanceable
- * @suppress {missingRequire} reports error on implicit type usages.
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
- // GENERATED CODE -- DO NOT EDIT!
- /* eslint-disable */
- // @ts-nocheck
- var jspb = require('google-protobuf');
- var goog = jspb;
- var global = Function('return this')();
- goog.exportSymbol('proto.AddUpcomingOpening', null, global);
- goog.exportSymbol('proto.ApplicationMetadata', null, global);
- goog.exportSymbol('proto.OpeningMetadata', null, global);
- goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion', null, global);
- goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion.InputType', null, global);
- goog.exportSymbol('proto.RemoveUpcomingOpening', null, global);
- goog.exportSymbol('proto.SetGroupMetadata', null, global);
- goog.exportSymbol('proto.UpcomingOpeningMetadata', null, global);
- goog.exportSymbol('proto.WorkingGroupMetadata', null, global);
- goog.exportSymbol('proto.WorkingGroupMetadataAction', null, global);
- goog.exportSymbol('proto.WorkingGroupMetadataAction.ActionCase', null, global);
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.OpeningMetadata = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, proto.OpeningMetadata.repeatedFields_, null);
- };
- goog.inherits(proto.OpeningMetadata, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.OpeningMetadata.displayName = 'proto.OpeningMetadata';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.OpeningMetadata.ApplicationFormQuestion = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.OpeningMetadata.ApplicationFormQuestion, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.OpeningMetadata.ApplicationFormQuestion.displayName = 'proto.OpeningMetadata.ApplicationFormQuestion';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.UpcomingOpeningMetadata = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.UpcomingOpeningMetadata, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.UpcomingOpeningMetadata.displayName = 'proto.UpcomingOpeningMetadata';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.ApplicationMetadata = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ApplicationMetadata.repeatedFields_, null);
- };
- goog.inherits(proto.ApplicationMetadata, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.ApplicationMetadata.displayName = 'proto.ApplicationMetadata';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.WorkingGroupMetadata = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.WorkingGroupMetadata, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.WorkingGroupMetadata.displayName = 'proto.WorkingGroupMetadata';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.SetGroupMetadata = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.SetGroupMetadata, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.SetGroupMetadata.displayName = 'proto.SetGroupMetadata';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.AddUpcomingOpening = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.AddUpcomingOpening, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.AddUpcomingOpening.displayName = 'proto.AddUpcomingOpening';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.RemoveUpcomingOpening = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.RemoveUpcomingOpening, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.RemoveUpcomingOpening.displayName = 'proto.RemoveUpcomingOpening';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.WorkingGroupMetadataAction = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.WorkingGroupMetadataAction.oneofGroups_);
- };
- goog.inherits(proto.WorkingGroupMetadataAction, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.WorkingGroupMetadataAction.displayName = 'proto.WorkingGroupMetadataAction';
- }
- /**
- * List of repeated fields within this message type.
- * @private {!Array<number>}
- * @const
- */
- proto.OpeningMetadata.repeatedFields_ = [6];
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.OpeningMetadata.prototype.toObject = function(opt_includeInstance) {
- return proto.OpeningMetadata.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.OpeningMetadata} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.OpeningMetadata.toObject = function(includeInstance, msg) {
- var f, obj = {
- shortDescription: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- hiringLimit: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- expectedEndingTimestamp: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
- applicationDetails: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- applicationFormQuestionsList: jspb.Message.toObjectList(msg.getApplicationFormQuestionsList(),
- proto.OpeningMetadata.ApplicationFormQuestion.toObject, includeInstance)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.OpeningMetadata}
- */
- proto.OpeningMetadata.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.OpeningMetadata;
- return proto.OpeningMetadata.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.OpeningMetadata} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.OpeningMetadata}
- */
- proto.OpeningMetadata.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setShortDescription(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setDescription(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setHiringLimit(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setExpectedEndingTimestamp(value);
- break;
- case 5:
- var value = /** @type {string} */ (reader.readString());
- msg.setApplicationDetails(value);
- break;
- case 6:
- var value = new proto.OpeningMetadata.ApplicationFormQuestion;
- reader.readMessage(value,proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader);
- msg.addApplicationFormQuestions(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.OpeningMetadata.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.OpeningMetadata.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.OpeningMetadata} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.OpeningMetadata.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeUint32(
- 3,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeUint64(
- 4,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeString(
- 5,
- f
- );
- }
- f = message.getApplicationFormQuestionsList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 6,
- f,
- proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter
- );
- }
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.toObject = function(opt_includeInstance) {
- return proto.OpeningMetadata.ApplicationFormQuestion.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.OpeningMetadata.ApplicationFormQuestion.toObject = function(includeInstance, msg) {
- var f, obj = {
- question: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- type: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.OpeningMetadata.ApplicationFormQuestion;
- return proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setQuestion(value);
- break;
- case 2:
- var value = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (reader.readEnum());
- msg.setType(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.OpeningMetadata.ApplicationFormQuestion} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeEnum(
- 2,
- f
- );
- }
- };
- /**
- * @enum {number}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.InputType = {
- TEXT: 1,
- TEXTAREA: 2
- };
- /**
- * required string question = 1;
- * @return {string}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.getQuestion = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.setQuestion = function(value) {
- return jspb.Message.setField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearQuestion = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasQuestion = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * required InputType type = 2;
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion.InputType}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.getType = function() {
- return /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getFieldWithDefault(this, 2, 1));
- };
- /**
- * @param {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} value
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.setType = function(value) {
- return jspb.Message.setField(this, 2, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearType = function() {
- return jspb.Message.setField(this, 2, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasType = function() {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * required string short_description = 1;
- * @return {string}
- */
- proto.OpeningMetadata.prototype.getShortDescription = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setShortDescription = function(value) {
- return jspb.Message.setField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearShortDescription = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.prototype.hasShortDescription = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * required string description = 2;
- * @return {string}
- */
- proto.OpeningMetadata.prototype.getDescription = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setDescription = function(value) {
- return jspb.Message.setField(this, 2, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearDescription = function() {
- return jspb.Message.setField(this, 2, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.prototype.hasDescription = function() {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * optional uint32 hiring_limit = 3;
- * @return {number}
- */
- proto.OpeningMetadata.prototype.getHiringLimit = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
- };
- /**
- * @param {number} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setHiringLimit = function(value) {
- return jspb.Message.setField(this, 3, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearHiringLimit = function() {
- return jspb.Message.setField(this, 3, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.prototype.hasHiringLimit = function() {
- return jspb.Message.getField(this, 3) != null;
- };
- /**
- * optional uint64 expected_ending_timestamp = 4;
- * @return {number}
- */
- proto.OpeningMetadata.prototype.getExpectedEndingTimestamp = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
- };
- /**
- * @param {number} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setExpectedEndingTimestamp = function(value) {
- return jspb.Message.setField(this, 4, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearExpectedEndingTimestamp = function() {
- return jspb.Message.setField(this, 4, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.prototype.hasExpectedEndingTimestamp = function() {
- return jspb.Message.getField(this, 4) != null;
- };
- /**
- * required string application_details = 5;
- * @return {string}
- */
- proto.OpeningMetadata.prototype.getApplicationDetails = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setApplicationDetails = function(value) {
- return jspb.Message.setField(this, 5, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearApplicationDetails = function() {
- return jspb.Message.setField(this, 5, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.OpeningMetadata.prototype.hasApplicationDetails = function() {
- return jspb.Message.getField(this, 5) != null;
- };
- /**
- * repeated ApplicationFormQuestion application_form_questions = 6;
- * @return {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>}
- */
- proto.OpeningMetadata.prototype.getApplicationFormQuestionsList = function() {
- return /** @type{!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.OpeningMetadata.ApplicationFormQuestion, 6));
- };
- /**
- * @param {!Array<!proto.OpeningMetadata.ApplicationFormQuestion>} value
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.setApplicationFormQuestionsList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 6, value);
- };
- /**
- * @param {!proto.OpeningMetadata.ApplicationFormQuestion=} opt_value
- * @param {number=} opt_index
- * @return {!proto.OpeningMetadata.ApplicationFormQuestion}
- */
- proto.OpeningMetadata.prototype.addApplicationFormQuestions = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.OpeningMetadata.ApplicationFormQuestion, opt_index);
- };
- /**
- * Clears the list making it empty but non-null.
- * @return {!proto.OpeningMetadata} returns this
- */
- proto.OpeningMetadata.prototype.clearApplicationFormQuestionsList = function() {
- return this.setApplicationFormQuestionsList([]);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.UpcomingOpeningMetadata.prototype.toObject = function(opt_includeInstance) {
- return proto.UpcomingOpeningMetadata.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.UpcomingOpeningMetadata} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.UpcomingOpeningMetadata.toObject = function(includeInstance, msg) {
- var f, obj = {
- expectedStart: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- rewardPerBlock: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- minApplicationStake: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- metadata: (f = msg.getMetadata()) && proto.OpeningMetadata.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.UpcomingOpeningMetadata}
- */
- proto.UpcomingOpeningMetadata.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.UpcomingOpeningMetadata;
- return proto.UpcomingOpeningMetadata.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.UpcomingOpeningMetadata} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.UpcomingOpeningMetadata}
- */
- proto.UpcomingOpeningMetadata.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setExpectedStart(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setRewardPerBlock(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setMinApplicationStake(value);
- break;
- case 4:
- var value = new proto.OpeningMetadata;
- reader.readMessage(value,proto.OpeningMetadata.deserializeBinaryFromReader);
- msg.setMetadata(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.UpcomingOpeningMetadata.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.UpcomingOpeningMetadata.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.UpcomingOpeningMetadata} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.UpcomingOpeningMetadata.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeUint64(
- 1,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeUint64(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeUint64(
- 3,
- f
- );
- }
- f = message.getMetadata();
- if (f != null) {
- writer.writeMessage(
- 4,
- f,
- proto.OpeningMetadata.serializeBinaryToWriter
- );
- }
- };
- /**
- * required uint64 expected_start = 1;
- * @return {number}
- */
- proto.UpcomingOpeningMetadata.prototype.getExpectedStart = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
- };
- /**
- * @param {number} value
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.setExpectedStart = function(value) {
- return jspb.Message.setField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.clearExpectedStart = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.UpcomingOpeningMetadata.prototype.hasExpectedStart = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * required uint64 reward_per_block = 2;
- * @return {number}
- */
- proto.UpcomingOpeningMetadata.prototype.getRewardPerBlock = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
- };
- /**
- * @param {number} value
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.setRewardPerBlock = function(value) {
- return jspb.Message.setField(this, 2, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.clearRewardPerBlock = function() {
- return jspb.Message.setField(this, 2, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.UpcomingOpeningMetadata.prototype.hasRewardPerBlock = function() {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * required uint64 min_application_stake = 3;
- * @return {number}
- */
- proto.UpcomingOpeningMetadata.prototype.getMinApplicationStake = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
- };
- /**
- * @param {number} value
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.setMinApplicationStake = function(value) {
- return jspb.Message.setField(this, 3, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.clearMinApplicationStake = function() {
- return jspb.Message.setField(this, 3, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.UpcomingOpeningMetadata.prototype.hasMinApplicationStake = function() {
- return jspb.Message.getField(this, 3) != null;
- };
- /**
- * required OpeningMetadata metadata = 4;
- * @return {!proto.OpeningMetadata}
- */
- proto.UpcomingOpeningMetadata.prototype.getMetadata = function() {
- return /** @type{!proto.OpeningMetadata} */ (
- jspb.Message.getWrapperField(this, proto.OpeningMetadata, 4, 1));
- };
- /**
- * @param {!proto.OpeningMetadata} value
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.setMetadata = function(value) {
- return jspb.Message.setWrapperField(this, 4, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.UpcomingOpeningMetadata} returns this
- */
- proto.UpcomingOpeningMetadata.prototype.clearMetadata = function() {
- return jspb.Message.setField(this, 4, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.UpcomingOpeningMetadata.prototype.hasMetadata = function() {
- return jspb.Message.getField(this, 4) != null;
- };
- /**
- * List of repeated fields within this message type.
- * @private {!Array<number>}
- * @const
- */
- proto.ApplicationMetadata.repeatedFields_ = [1];
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) {
- return proto.ApplicationMetadata.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.ApplicationMetadata} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.ApplicationMetadata.toObject = function(includeInstance, msg) {
- var f, obj = {
- answersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.ApplicationMetadata}
- */
- proto.ApplicationMetadata.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.ApplicationMetadata;
- return proto.ApplicationMetadata.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.ApplicationMetadata} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.ApplicationMetadata}
- */
- proto.ApplicationMetadata.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.addAnswers(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.ApplicationMetadata.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.ApplicationMetadata.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.ApplicationMetadata} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getAnswersList();
- if (f.length > 0) {
- writer.writeRepeatedString(
- 1,
- f
- );
- }
- };
- /**
- * repeated string answers = 1;
- * @return {!Array<string>}
- */
- proto.ApplicationMetadata.prototype.getAnswersList = function() {
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
- };
- /**
- * @param {!Array<string>} value
- * @return {!proto.ApplicationMetadata} returns this
- */
- proto.ApplicationMetadata.prototype.setAnswersList = function(value) {
- return jspb.Message.setField(this, 1, value || []);
- };
- /**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.ApplicationMetadata} returns this
- */
- proto.ApplicationMetadata.prototype.addAnswers = function(value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
- };
- /**
- * Clears the list making it empty but non-null.
- * @return {!proto.ApplicationMetadata} returns this
- */
- proto.ApplicationMetadata.prototype.clearAnswersList = function() {
- return this.setAnswersList([]);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.WorkingGroupMetadata.prototype.toObject = function(opt_includeInstance) {
- return proto.WorkingGroupMetadata.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.WorkingGroupMetadata} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.WorkingGroupMetadata.toObject = function(includeInstance, msg) {
- var f, obj = {
- description: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- about: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- status: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- statusMessage: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.WorkingGroupMetadata}
- */
- proto.WorkingGroupMetadata.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.WorkingGroupMetadata;
- return proto.WorkingGroupMetadata.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.WorkingGroupMetadata} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.WorkingGroupMetadata}
- */
- proto.WorkingGroupMetadata.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setDescription(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setAbout(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setStatus(value);
- break;
- case 4:
- var value = /** @type {string} */ (reader.readString());
- msg.setStatusMessage(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.WorkingGroupMetadata.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.WorkingGroupMetadata.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.WorkingGroupMetadata} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.WorkingGroupMetadata.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeString(
- 3,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeString(
- 4,
- f
- );
- }
- };
- /**
- * optional string description = 1;
- * @return {string}
- */
- proto.WorkingGroupMetadata.prototype.getDescription = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.setDescription = function(value) {
- return jspb.Message.setField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.clearDescription = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadata.prototype.hasDescription = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * optional string about = 2;
- * @return {string}
- */
- proto.WorkingGroupMetadata.prototype.getAbout = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.setAbout = function(value) {
- return jspb.Message.setField(this, 2, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.clearAbout = function() {
- return jspb.Message.setField(this, 2, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadata.prototype.hasAbout = function() {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * optional string status = 3;
- * @return {string}
- */
- proto.WorkingGroupMetadata.prototype.getStatus = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.setStatus = function(value) {
- return jspb.Message.setField(this, 3, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.clearStatus = function() {
- return jspb.Message.setField(this, 3, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadata.prototype.hasStatus = function() {
- return jspb.Message.getField(this, 3) != null;
- };
- /**
- * optional string status_message = 4;
- * @return {string}
- */
- proto.WorkingGroupMetadata.prototype.getStatusMessage = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.setStatusMessage = function(value) {
- return jspb.Message.setField(this, 4, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.WorkingGroupMetadata} returns this
- */
- proto.WorkingGroupMetadata.prototype.clearStatusMessage = function() {
- return jspb.Message.setField(this, 4, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadata.prototype.hasStatusMessage = function() {
- return jspb.Message.getField(this, 4) != null;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.SetGroupMetadata.prototype.toObject = function(opt_includeInstance) {
- return proto.SetGroupMetadata.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.SetGroupMetadata} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.SetGroupMetadata.toObject = function(includeInstance, msg) {
- var f, obj = {
- newMetadata: (f = msg.getNewMetadata()) && proto.WorkingGroupMetadata.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.SetGroupMetadata}
- */
- proto.SetGroupMetadata.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.SetGroupMetadata;
- return proto.SetGroupMetadata.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.SetGroupMetadata} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.SetGroupMetadata}
- */
- proto.SetGroupMetadata.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.WorkingGroupMetadata;
- reader.readMessage(value,proto.WorkingGroupMetadata.deserializeBinaryFromReader);
- msg.setNewMetadata(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.SetGroupMetadata.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.SetGroupMetadata.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.SetGroupMetadata} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.SetGroupMetadata.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getNewMetadata();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.WorkingGroupMetadata.serializeBinaryToWriter
- );
- }
- };
- /**
- * required WorkingGroupMetadata new_metadata = 1;
- * @return {!proto.WorkingGroupMetadata}
- */
- proto.SetGroupMetadata.prototype.getNewMetadata = function() {
- return /** @type{!proto.WorkingGroupMetadata} */ (
- jspb.Message.getWrapperField(this, proto.WorkingGroupMetadata, 1, 1));
- };
- /**
- * @param {!proto.WorkingGroupMetadata} value
- * @return {!proto.SetGroupMetadata} returns this
- */
- proto.SetGroupMetadata.prototype.setNewMetadata = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.SetGroupMetadata} returns this
- */
- proto.SetGroupMetadata.prototype.clearNewMetadata = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.SetGroupMetadata.prototype.hasNewMetadata = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.AddUpcomingOpening.prototype.toObject = function(opt_includeInstance) {
- return proto.AddUpcomingOpening.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.AddUpcomingOpening} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.AddUpcomingOpening.toObject = function(includeInstance, msg) {
- var f, obj = {
- metadata: (f = msg.getMetadata()) && proto.UpcomingOpeningMetadata.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.AddUpcomingOpening}
- */
- proto.AddUpcomingOpening.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.AddUpcomingOpening;
- return proto.AddUpcomingOpening.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.AddUpcomingOpening} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.AddUpcomingOpening}
- */
- proto.AddUpcomingOpening.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.UpcomingOpeningMetadata;
- reader.readMessage(value,proto.UpcomingOpeningMetadata.deserializeBinaryFromReader);
- msg.setMetadata(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.AddUpcomingOpening.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.AddUpcomingOpening.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.AddUpcomingOpening} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.AddUpcomingOpening.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getMetadata();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.UpcomingOpeningMetadata.serializeBinaryToWriter
- );
- }
- };
- /**
- * required UpcomingOpeningMetadata metadata = 1;
- * @return {!proto.UpcomingOpeningMetadata}
- */
- proto.AddUpcomingOpening.prototype.getMetadata = function() {
- return /** @type{!proto.UpcomingOpeningMetadata} */ (
- jspb.Message.getWrapperField(this, proto.UpcomingOpeningMetadata, 1, 1));
- };
- /**
- * @param {!proto.UpcomingOpeningMetadata} value
- * @return {!proto.AddUpcomingOpening} returns this
- */
- proto.AddUpcomingOpening.prototype.setMetadata = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.AddUpcomingOpening} returns this
- */
- proto.AddUpcomingOpening.prototype.clearMetadata = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.AddUpcomingOpening.prototype.hasMetadata = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.RemoveUpcomingOpening.prototype.toObject = function(opt_includeInstance) {
- return proto.RemoveUpcomingOpening.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.RemoveUpcomingOpening} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.RemoveUpcomingOpening.toObject = function(includeInstance, msg) {
- var f, obj = {
- id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.RemoveUpcomingOpening}
- */
- proto.RemoveUpcomingOpening.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.RemoveUpcomingOpening;
- return proto.RemoveUpcomingOpening.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.RemoveUpcomingOpening} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.RemoveUpcomingOpening}
- */
- proto.RemoveUpcomingOpening.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setId(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.RemoveUpcomingOpening.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.RemoveUpcomingOpening.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.RemoveUpcomingOpening} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.RemoveUpcomingOpening.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- };
- /**
- * required string id = 1;
- * @return {string}
- */
- proto.RemoveUpcomingOpening.prototype.getId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
- };
- /**
- * @param {string} value
- * @return {!proto.RemoveUpcomingOpening} returns this
- */
- proto.RemoveUpcomingOpening.prototype.setId = function(value) {
- return jspb.Message.setField(this, 1, value);
- };
- /**
- * Clears the field making it undefined.
- * @return {!proto.RemoveUpcomingOpening} returns this
- */
- proto.RemoveUpcomingOpening.prototype.clearId = function() {
- return jspb.Message.setField(this, 1, undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.RemoveUpcomingOpening.prototype.hasId = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * Oneof group definitions for this message. Each group defines the field
- * numbers belonging to that group. When of these fields' value is set, all
- * other fields in the group are cleared. During deserialization, if multiple
- * fields are encountered for a group, only the last value seen will be kept.
- * @private {!Array<!Array<number>>}
- * @const
- */
- proto.WorkingGroupMetadataAction.oneofGroups_ = [[1,2,3]];
- /**
- * @enum {number}
- */
- proto.WorkingGroupMetadataAction.ActionCase = {
- ACTION_NOT_SET: 0,
- SET_GROUP_METADATA: 1,
- ADD_UPCOMING_OPENING: 2,
- REMOVE_UPCOMING_OPENING: 3
- };
- /**
- * @return {proto.WorkingGroupMetadataAction.ActionCase}
- */
- proto.WorkingGroupMetadataAction.prototype.getActionCase = function() {
- return /** @type {proto.WorkingGroupMetadataAction.ActionCase} */(jspb.Message.computeOneofCase(this, proto.WorkingGroupMetadataAction.oneofGroups_[0]));
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.WorkingGroupMetadataAction.prototype.toObject = function(opt_includeInstance) {
- return proto.WorkingGroupMetadataAction.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.WorkingGroupMetadataAction} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.WorkingGroupMetadataAction.toObject = function(includeInstance, msg) {
- var f, obj = {
- setGroupMetadata: (f = msg.getSetGroupMetadata()) && proto.SetGroupMetadata.toObject(includeInstance, f),
- addUpcomingOpening: (f = msg.getAddUpcomingOpening()) && proto.AddUpcomingOpening.toObject(includeInstance, f),
- removeUpcomingOpening: (f = msg.getRemoveUpcomingOpening()) && proto.RemoveUpcomingOpening.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.WorkingGroupMetadataAction}
- */
- proto.WorkingGroupMetadataAction.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.WorkingGroupMetadataAction;
- return proto.WorkingGroupMetadataAction.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.WorkingGroupMetadataAction} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.WorkingGroupMetadataAction}
- */
- proto.WorkingGroupMetadataAction.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.SetGroupMetadata;
- reader.readMessage(value,proto.SetGroupMetadata.deserializeBinaryFromReader);
- msg.setSetGroupMetadata(value);
- break;
- case 2:
- var value = new proto.AddUpcomingOpening;
- reader.readMessage(value,proto.AddUpcomingOpening.deserializeBinaryFromReader);
- msg.setAddUpcomingOpening(value);
- break;
- case 3:
- var value = new proto.RemoveUpcomingOpening;
- reader.readMessage(value,proto.RemoveUpcomingOpening.deserializeBinaryFromReader);
- msg.setRemoveUpcomingOpening(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.WorkingGroupMetadataAction.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.WorkingGroupMetadataAction.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.WorkingGroupMetadataAction} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.WorkingGroupMetadataAction.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getSetGroupMetadata();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.SetGroupMetadata.serializeBinaryToWriter
- );
- }
- f = message.getAddUpcomingOpening();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.AddUpcomingOpening.serializeBinaryToWriter
- );
- }
- f = message.getRemoveUpcomingOpening();
- if (f != null) {
- writer.writeMessage(
- 3,
- f,
- proto.RemoveUpcomingOpening.serializeBinaryToWriter
- );
- }
- };
- /**
- * optional SetGroupMetadata set_group_metadata = 1;
- * @return {?proto.SetGroupMetadata}
- */
- proto.WorkingGroupMetadataAction.prototype.getSetGroupMetadata = function() {
- return /** @type{?proto.SetGroupMetadata} */ (
- jspb.Message.getWrapperField(this, proto.SetGroupMetadata, 1));
- };
- /**
- * @param {?proto.SetGroupMetadata|undefined} value
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.setSetGroupMetadata = function(value) {
- return jspb.Message.setOneofWrapperField(this, 1, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.clearSetGroupMetadata = function() {
- return this.setSetGroupMetadata(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadataAction.prototype.hasSetGroupMetadata = function() {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * optional AddUpcomingOpening add_upcoming_opening = 2;
- * @return {?proto.AddUpcomingOpening}
- */
- proto.WorkingGroupMetadataAction.prototype.getAddUpcomingOpening = function() {
- return /** @type{?proto.AddUpcomingOpening} */ (
- jspb.Message.getWrapperField(this, proto.AddUpcomingOpening, 2));
- };
- /**
- * @param {?proto.AddUpcomingOpening|undefined} value
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.setAddUpcomingOpening = function(value) {
- return jspb.Message.setOneofWrapperField(this, 2, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.clearAddUpcomingOpening = function() {
- return this.setAddUpcomingOpening(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadataAction.prototype.hasAddUpcomingOpening = function() {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * optional RemoveUpcomingOpening remove_upcoming_opening = 3;
- * @return {?proto.RemoveUpcomingOpening}
- */
- proto.WorkingGroupMetadataAction.prototype.getRemoveUpcomingOpening = function() {
- return /** @type{?proto.RemoveUpcomingOpening} */ (
- jspb.Message.getWrapperField(this, proto.RemoveUpcomingOpening, 3));
- };
- /**
- * @param {?proto.RemoveUpcomingOpening|undefined} value
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.setRemoveUpcomingOpening = function(value) {
- return jspb.Message.setOneofWrapperField(this, 3, proto.WorkingGroupMetadataAction.oneofGroups_[0], value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.WorkingGroupMetadataAction} returns this
- */
- proto.WorkingGroupMetadataAction.prototype.clearRemoveUpcomingOpening = function() {
- return this.setRemoveUpcomingOpening(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.WorkingGroupMetadataAction.prototype.hasRemoveUpcomingOpening = function() {
- return jspb.Message.getField(this, 3) != null;
- };
- goog.object.extend(exports, proto);
|