descriptor_pb.js 309 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124
  1. // source: google/protobuf/descriptor.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 =
  16. (typeof globalThis !== 'undefined' && globalThis) ||
  17. (typeof window !== 'undefined' && window) ||
  18. (typeof global !== 'undefined' && global) ||
  19. (typeof self !== 'undefined' && self) ||
  20. (function () { return this; }).call(null) ||
  21. Function('return this')();
  22. goog.exportSymbol('proto.google.protobuf.DescriptorProto', null, global);
  23. goog.exportSymbol('proto.google.protobuf.DescriptorProto.ExtensionRange', null, global);
  24. goog.exportSymbol('proto.google.protobuf.DescriptorProto.ReservedRange', null, global);
  25. goog.exportSymbol('proto.google.protobuf.EnumDescriptorProto', null, global);
  26. goog.exportSymbol('proto.google.protobuf.EnumDescriptorProto.EnumReservedRange', null, global);
  27. goog.exportSymbol('proto.google.protobuf.EnumOptions', null, global);
  28. goog.exportSymbol('proto.google.protobuf.EnumValueDescriptorProto', null, global);
  29. goog.exportSymbol('proto.google.protobuf.EnumValueOptions', null, global);
  30. goog.exportSymbol('proto.google.protobuf.ExtensionRangeOptions', null, global);
  31. goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto', null, global);
  32. goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Label', null, global);
  33. goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Type', null, global);
  34. goog.exportSymbol('proto.google.protobuf.FieldOptions', null, global);
  35. goog.exportSymbol('proto.google.protobuf.FieldOptions.CType', null, global);
  36. goog.exportSymbol('proto.google.protobuf.FieldOptions.JSType', null, global);
  37. goog.exportSymbol('proto.google.protobuf.FileDescriptorProto', null, global);
  38. goog.exportSymbol('proto.google.protobuf.FileDescriptorSet', null, global);
  39. goog.exportSymbol('proto.google.protobuf.FileOptions', null, global);
  40. goog.exportSymbol('proto.google.protobuf.FileOptions.OptimizeMode', null, global);
  41. goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo', null, global);
  42. goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo.Annotation', null, global);
  43. goog.exportSymbol('proto.google.protobuf.MessageOptions', null, global);
  44. goog.exportSymbol('proto.google.protobuf.MethodDescriptorProto', null, global);
  45. goog.exportSymbol('proto.google.protobuf.MethodOptions', null, global);
  46. goog.exportSymbol('proto.google.protobuf.MethodOptions.IdempotencyLevel', null, global);
  47. goog.exportSymbol('proto.google.protobuf.OneofDescriptorProto', null, global);
  48. goog.exportSymbol('proto.google.protobuf.OneofOptions', null, global);
  49. goog.exportSymbol('proto.google.protobuf.ServiceDescriptorProto', null, global);
  50. goog.exportSymbol('proto.google.protobuf.ServiceOptions', null, global);
  51. goog.exportSymbol('proto.google.protobuf.SourceCodeInfo', null, global);
  52. goog.exportSymbol('proto.google.protobuf.SourceCodeInfo.Location', null, global);
  53. goog.exportSymbol('proto.google.protobuf.UninterpretedOption', null, global);
  54. goog.exportSymbol('proto.google.protobuf.UninterpretedOption.NamePart', null, global);
  55. /**
  56. * Generated by JsPbCodeGenerator.
  57. * @param {Array=} opt_data Optional initial data array, typically from a
  58. * server response, or constructed directly in Javascript. The array is used
  59. * in place and becomes part of the constructed object. It is not cloned.
  60. * If no data is provided, the constructed object will be empty, but still
  61. * valid.
  62. * @extends {jspb.Message}
  63. * @constructor
  64. */
  65. proto.google.protobuf.FileDescriptorSet = function(opt_data) {
  66. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorSet.repeatedFields_, null);
  67. };
  68. goog.inherits(proto.google.protobuf.FileDescriptorSet, jspb.Message);
  69. if (goog.DEBUG && !COMPILED) {
  70. /**
  71. * @public
  72. * @override
  73. */
  74. proto.google.protobuf.FileDescriptorSet.displayName = 'proto.google.protobuf.FileDescriptorSet';
  75. }
  76. /**
  77. * Generated by JsPbCodeGenerator.
  78. * @param {Array=} opt_data Optional initial data array, typically from a
  79. * server response, or constructed directly in Javascript. The array is used
  80. * in place and becomes part of the constructed object. It is not cloned.
  81. * If no data is provided, the constructed object will be empty, but still
  82. * valid.
  83. * @extends {jspb.Message}
  84. * @constructor
  85. */
  86. proto.google.protobuf.FileDescriptorProto = function(opt_data) {
  87. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorProto.repeatedFields_, null);
  88. };
  89. goog.inherits(proto.google.protobuf.FileDescriptorProto, jspb.Message);
  90. if (goog.DEBUG && !COMPILED) {
  91. /**
  92. * @public
  93. * @override
  94. */
  95. proto.google.protobuf.FileDescriptorProto.displayName = 'proto.google.protobuf.FileDescriptorProto';
  96. }
  97. /**
  98. * Generated by JsPbCodeGenerator.
  99. * @param {Array=} opt_data Optional initial data array, typically from a
  100. * server response, or constructed directly in Javascript. The array is used
  101. * in place and becomes part of the constructed object. It is not cloned.
  102. * If no data is provided, the constructed object will be empty, but still
  103. * valid.
  104. * @extends {jspb.Message}
  105. * @constructor
  106. */
  107. proto.google.protobuf.DescriptorProto = function(opt_data) {
  108. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.DescriptorProto.repeatedFields_, null);
  109. };
  110. goog.inherits(proto.google.protobuf.DescriptorProto, jspb.Message);
  111. if (goog.DEBUG && !COMPILED) {
  112. /**
  113. * @public
  114. * @override
  115. */
  116. proto.google.protobuf.DescriptorProto.displayName = 'proto.google.protobuf.DescriptorProto';
  117. }
  118. /**
  119. * Generated by JsPbCodeGenerator.
  120. * @param {Array=} opt_data Optional initial data array, typically from a
  121. * server response, or constructed directly in Javascript. The array is used
  122. * in place and becomes part of the constructed object. It is not cloned.
  123. * If no data is provided, the constructed object will be empty, but still
  124. * valid.
  125. * @extends {jspb.Message}
  126. * @constructor
  127. */
  128. proto.google.protobuf.DescriptorProto.ExtensionRange = function(opt_data) {
  129. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  130. };
  131. goog.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange, jspb.Message);
  132. if (goog.DEBUG && !COMPILED) {
  133. /**
  134. * @public
  135. * @override
  136. */
  137. proto.google.protobuf.DescriptorProto.ExtensionRange.displayName = 'proto.google.protobuf.DescriptorProto.ExtensionRange';
  138. }
  139. /**
  140. * Generated by JsPbCodeGenerator.
  141. * @param {Array=} opt_data Optional initial data array, typically from a
  142. * server response, or constructed directly in Javascript. The array is used
  143. * in place and becomes part of the constructed object. It is not cloned.
  144. * If no data is provided, the constructed object will be empty, but still
  145. * valid.
  146. * @extends {jspb.Message}
  147. * @constructor
  148. */
  149. proto.google.protobuf.DescriptorProto.ReservedRange = function(opt_data) {
  150. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  151. };
  152. goog.inherits(proto.google.protobuf.DescriptorProto.ReservedRange, jspb.Message);
  153. if (goog.DEBUG && !COMPILED) {
  154. /**
  155. * @public
  156. * @override
  157. */
  158. proto.google.protobuf.DescriptorProto.ReservedRange.displayName = 'proto.google.protobuf.DescriptorProto.ReservedRange';
  159. }
  160. /**
  161. * Generated by JsPbCodeGenerator.
  162. * @param {Array=} opt_data Optional initial data array, typically from a
  163. * server response, or constructed directly in Javascript. The array is used
  164. * in place and becomes part of the constructed object. It is not cloned.
  165. * If no data is provided, the constructed object will be empty, but still
  166. * valid.
  167. * @extends {jspb.Message}
  168. * @constructor
  169. */
  170. proto.google.protobuf.ExtensionRangeOptions = function(opt_data) {
  171. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ExtensionRangeOptions.repeatedFields_, null);
  172. };
  173. goog.inherits(proto.google.protobuf.ExtensionRangeOptions, jspb.Message);
  174. if (goog.DEBUG && !COMPILED) {
  175. /**
  176. * @public
  177. * @override
  178. */
  179. proto.google.protobuf.ExtensionRangeOptions.displayName = 'proto.google.protobuf.ExtensionRangeOptions';
  180. }
  181. /**
  182. * The extensions registered with this message class. This is a map of
  183. * extension field number to fieldInfo object.
  184. *
  185. * For example:
  186. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  187. *
  188. * fieldName contains the JsCompiler renamed field name property so that it
  189. * works in OPTIMIZED mode.
  190. *
  191. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  192. */
  193. proto.google.protobuf.ExtensionRangeOptions.extensions = {};
  194. /**
  195. * The extensions registered with this message class. This is a map of
  196. * extension field number to fieldInfo object.
  197. *
  198. * For example:
  199. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  200. *
  201. * fieldName contains the JsCompiler renamed field name property so that it
  202. * works in OPTIMIZED mode.
  203. *
  204. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  205. */
  206. proto.google.protobuf.ExtensionRangeOptions.extensionsBinary = {};
  207. /**
  208. * Generated by JsPbCodeGenerator.
  209. * @param {Array=} opt_data Optional initial data array, typically from a
  210. * server response, or constructed directly in Javascript. The array is used
  211. * in place and becomes part of the constructed object. It is not cloned.
  212. * If no data is provided, the constructed object will be empty, but still
  213. * valid.
  214. * @extends {jspb.Message}
  215. * @constructor
  216. */
  217. proto.google.protobuf.FieldDescriptorProto = function(opt_data) {
  218. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  219. };
  220. goog.inherits(proto.google.protobuf.FieldDescriptorProto, jspb.Message);
  221. if (goog.DEBUG && !COMPILED) {
  222. /**
  223. * @public
  224. * @override
  225. */
  226. proto.google.protobuf.FieldDescriptorProto.displayName = 'proto.google.protobuf.FieldDescriptorProto';
  227. }
  228. /**
  229. * Generated by JsPbCodeGenerator.
  230. * @param {Array=} opt_data Optional initial data array, typically from a
  231. * server response, or constructed directly in Javascript. The array is used
  232. * in place and becomes part of the constructed object. It is not cloned.
  233. * If no data is provided, the constructed object will be empty, but still
  234. * valid.
  235. * @extends {jspb.Message}
  236. * @constructor
  237. */
  238. proto.google.protobuf.OneofDescriptorProto = function(opt_data) {
  239. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  240. };
  241. goog.inherits(proto.google.protobuf.OneofDescriptorProto, jspb.Message);
  242. if (goog.DEBUG && !COMPILED) {
  243. /**
  244. * @public
  245. * @override
  246. */
  247. proto.google.protobuf.OneofDescriptorProto.displayName = 'proto.google.protobuf.OneofDescriptorProto';
  248. }
  249. /**
  250. * Generated by JsPbCodeGenerator.
  251. * @param {Array=} opt_data Optional initial data array, typically from a
  252. * server response, or constructed directly in Javascript. The array is used
  253. * in place and becomes part of the constructed object. It is not cloned.
  254. * If no data is provided, the constructed object will be empty, but still
  255. * valid.
  256. * @extends {jspb.Message}
  257. * @constructor
  258. */
  259. proto.google.protobuf.EnumDescriptorProto = function(opt_data) {
  260. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.EnumDescriptorProto.repeatedFields_, null);
  261. };
  262. goog.inherits(proto.google.protobuf.EnumDescriptorProto, jspb.Message);
  263. if (goog.DEBUG && !COMPILED) {
  264. /**
  265. * @public
  266. * @override
  267. */
  268. proto.google.protobuf.EnumDescriptorProto.displayName = 'proto.google.protobuf.EnumDescriptorProto';
  269. }
  270. /**
  271. * Generated by JsPbCodeGenerator.
  272. * @param {Array=} opt_data Optional initial data array, typically from a
  273. * server response, or constructed directly in Javascript. The array is used
  274. * in place and becomes part of the constructed object. It is not cloned.
  275. * If no data is provided, the constructed object will be empty, but still
  276. * valid.
  277. * @extends {jspb.Message}
  278. * @constructor
  279. */
  280. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange = function(opt_data) {
  281. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  282. };
  283. goog.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, jspb.Message);
  284. if (goog.DEBUG && !COMPILED) {
  285. /**
  286. * @public
  287. * @override
  288. */
  289. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName = 'proto.google.protobuf.EnumDescriptorProto.EnumReservedRange';
  290. }
  291. /**
  292. * Generated by JsPbCodeGenerator.
  293. * @param {Array=} opt_data Optional initial data array, typically from a
  294. * server response, or constructed directly in Javascript. The array is used
  295. * in place and becomes part of the constructed object. It is not cloned.
  296. * If no data is provided, the constructed object will be empty, but still
  297. * valid.
  298. * @extends {jspb.Message}
  299. * @constructor
  300. */
  301. proto.google.protobuf.EnumValueDescriptorProto = function(opt_data) {
  302. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  303. };
  304. goog.inherits(proto.google.protobuf.EnumValueDescriptorProto, jspb.Message);
  305. if (goog.DEBUG && !COMPILED) {
  306. /**
  307. * @public
  308. * @override
  309. */
  310. proto.google.protobuf.EnumValueDescriptorProto.displayName = 'proto.google.protobuf.EnumValueDescriptorProto';
  311. }
  312. /**
  313. * Generated by JsPbCodeGenerator.
  314. * @param {Array=} opt_data Optional initial data array, typically from a
  315. * server response, or constructed directly in Javascript. The array is used
  316. * in place and becomes part of the constructed object. It is not cloned.
  317. * If no data is provided, the constructed object will be empty, but still
  318. * valid.
  319. * @extends {jspb.Message}
  320. * @constructor
  321. */
  322. proto.google.protobuf.ServiceDescriptorProto = function(opt_data) {
  323. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.ServiceDescriptorProto.repeatedFields_, null);
  324. };
  325. goog.inherits(proto.google.protobuf.ServiceDescriptorProto, jspb.Message);
  326. if (goog.DEBUG && !COMPILED) {
  327. /**
  328. * @public
  329. * @override
  330. */
  331. proto.google.protobuf.ServiceDescriptorProto.displayName = 'proto.google.protobuf.ServiceDescriptorProto';
  332. }
  333. /**
  334. * Generated by JsPbCodeGenerator.
  335. * @param {Array=} opt_data Optional initial data array, typically from a
  336. * server response, or constructed directly in Javascript. The array is used
  337. * in place and becomes part of the constructed object. It is not cloned.
  338. * If no data is provided, the constructed object will be empty, but still
  339. * valid.
  340. * @extends {jspb.Message}
  341. * @constructor
  342. */
  343. proto.google.protobuf.MethodDescriptorProto = function(opt_data) {
  344. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  345. };
  346. goog.inherits(proto.google.protobuf.MethodDescriptorProto, jspb.Message);
  347. if (goog.DEBUG && !COMPILED) {
  348. /**
  349. * @public
  350. * @override
  351. */
  352. proto.google.protobuf.MethodDescriptorProto.displayName = 'proto.google.protobuf.MethodDescriptorProto';
  353. }
  354. /**
  355. * Generated by JsPbCodeGenerator.
  356. * @param {Array=} opt_data Optional initial data array, typically from a
  357. * server response, or constructed directly in Javascript. The array is used
  358. * in place and becomes part of the constructed object. It is not cloned.
  359. * If no data is provided, the constructed object will be empty, but still
  360. * valid.
  361. * @extends {jspb.Message}
  362. * @constructor
  363. */
  364. proto.google.protobuf.FileOptions = function(opt_data) {
  365. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FileOptions.repeatedFields_, null);
  366. };
  367. goog.inherits(proto.google.protobuf.FileOptions, jspb.Message);
  368. if (goog.DEBUG && !COMPILED) {
  369. /**
  370. * @public
  371. * @override
  372. */
  373. proto.google.protobuf.FileOptions.displayName = 'proto.google.protobuf.FileOptions';
  374. }
  375. /**
  376. * The extensions registered with this message class. This is a map of
  377. * extension field number to fieldInfo object.
  378. *
  379. * For example:
  380. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  381. *
  382. * fieldName contains the JsCompiler renamed field name property so that it
  383. * works in OPTIMIZED mode.
  384. *
  385. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  386. */
  387. proto.google.protobuf.FileOptions.extensions = {};
  388. /**
  389. * The extensions registered with this message class. This is a map of
  390. * extension field number to fieldInfo object.
  391. *
  392. * For example:
  393. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  394. *
  395. * fieldName contains the JsCompiler renamed field name property so that it
  396. * works in OPTIMIZED mode.
  397. *
  398. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  399. */
  400. proto.google.protobuf.FileOptions.extensionsBinary = {};
  401. /**
  402. * Generated by JsPbCodeGenerator.
  403. * @param {Array=} opt_data Optional initial data array, typically from a
  404. * server response, or constructed directly in Javascript. The array is used
  405. * in place and becomes part of the constructed object. It is not cloned.
  406. * If no data is provided, the constructed object will be empty, but still
  407. * valid.
  408. * @extends {jspb.Message}
  409. * @constructor
  410. */
  411. proto.google.protobuf.MessageOptions = function(opt_data) {
  412. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MessageOptions.repeatedFields_, null);
  413. };
  414. goog.inherits(proto.google.protobuf.MessageOptions, jspb.Message);
  415. if (goog.DEBUG && !COMPILED) {
  416. /**
  417. * @public
  418. * @override
  419. */
  420. proto.google.protobuf.MessageOptions.displayName = 'proto.google.protobuf.MessageOptions';
  421. }
  422. /**
  423. * The extensions registered with this message class. This is a map of
  424. * extension field number to fieldInfo object.
  425. *
  426. * For example:
  427. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  428. *
  429. * fieldName contains the JsCompiler renamed field name property so that it
  430. * works in OPTIMIZED mode.
  431. *
  432. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  433. */
  434. proto.google.protobuf.MessageOptions.extensions = {};
  435. /**
  436. * The extensions registered with this message class. This is a map of
  437. * extension field number to fieldInfo object.
  438. *
  439. * For example:
  440. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  441. *
  442. * fieldName contains the JsCompiler renamed field name property so that it
  443. * works in OPTIMIZED mode.
  444. *
  445. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  446. */
  447. proto.google.protobuf.MessageOptions.extensionsBinary = {};
  448. /**
  449. * Generated by JsPbCodeGenerator.
  450. * @param {Array=} opt_data Optional initial data array, typically from a
  451. * server response, or constructed directly in Javascript. The array is used
  452. * in place and becomes part of the constructed object. It is not cloned.
  453. * If no data is provided, the constructed object will be empty, but still
  454. * valid.
  455. * @extends {jspb.Message}
  456. * @constructor
  457. */
  458. proto.google.protobuf.FieldOptions = function(opt_data) {
  459. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FieldOptions.repeatedFields_, null);
  460. };
  461. goog.inherits(proto.google.protobuf.FieldOptions, jspb.Message);
  462. if (goog.DEBUG && !COMPILED) {
  463. /**
  464. * @public
  465. * @override
  466. */
  467. proto.google.protobuf.FieldOptions.displayName = 'proto.google.protobuf.FieldOptions';
  468. }
  469. /**
  470. * The extensions registered with this message class. This is a map of
  471. * extension field number to fieldInfo object.
  472. *
  473. * For example:
  474. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  475. *
  476. * fieldName contains the JsCompiler renamed field name property so that it
  477. * works in OPTIMIZED mode.
  478. *
  479. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  480. */
  481. proto.google.protobuf.FieldOptions.extensions = {};
  482. /**
  483. * The extensions registered with this message class. This is a map of
  484. * extension field number to fieldInfo object.
  485. *
  486. * For example:
  487. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  488. *
  489. * fieldName contains the JsCompiler renamed field name property so that it
  490. * works in OPTIMIZED mode.
  491. *
  492. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  493. */
  494. proto.google.protobuf.FieldOptions.extensionsBinary = {};
  495. /**
  496. * Generated by JsPbCodeGenerator.
  497. * @param {Array=} opt_data Optional initial data array, typically from a
  498. * server response, or constructed directly in Javascript. The array is used
  499. * in place and becomes part of the constructed object. It is not cloned.
  500. * If no data is provided, the constructed object will be empty, but still
  501. * valid.
  502. * @extends {jspb.Message}
  503. * @constructor
  504. */
  505. proto.google.protobuf.OneofOptions = function(opt_data) {
  506. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.OneofOptions.repeatedFields_, null);
  507. };
  508. goog.inherits(proto.google.protobuf.OneofOptions, jspb.Message);
  509. if (goog.DEBUG && !COMPILED) {
  510. /**
  511. * @public
  512. * @override
  513. */
  514. proto.google.protobuf.OneofOptions.displayName = 'proto.google.protobuf.OneofOptions';
  515. }
  516. /**
  517. * The extensions registered with this message class. This is a map of
  518. * extension field number to fieldInfo object.
  519. *
  520. * For example:
  521. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  522. *
  523. * fieldName contains the JsCompiler renamed field name property so that it
  524. * works in OPTIMIZED mode.
  525. *
  526. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  527. */
  528. proto.google.protobuf.OneofOptions.extensions = {};
  529. /**
  530. * The extensions registered with this message class. This is a map of
  531. * extension field number to fieldInfo object.
  532. *
  533. * For example:
  534. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  535. *
  536. * fieldName contains the JsCompiler renamed field name property so that it
  537. * works in OPTIMIZED mode.
  538. *
  539. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  540. */
  541. proto.google.protobuf.OneofOptions.extensionsBinary = {};
  542. /**
  543. * Generated by JsPbCodeGenerator.
  544. * @param {Array=} opt_data Optional initial data array, typically from a
  545. * server response, or constructed directly in Javascript. The array is used
  546. * in place and becomes part of the constructed object. It is not cloned.
  547. * If no data is provided, the constructed object will be empty, but still
  548. * valid.
  549. * @extends {jspb.Message}
  550. * @constructor
  551. */
  552. proto.google.protobuf.EnumOptions = function(opt_data) {
  553. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumOptions.repeatedFields_, null);
  554. };
  555. goog.inherits(proto.google.protobuf.EnumOptions, jspb.Message);
  556. if (goog.DEBUG && !COMPILED) {
  557. /**
  558. * @public
  559. * @override
  560. */
  561. proto.google.protobuf.EnumOptions.displayName = 'proto.google.protobuf.EnumOptions';
  562. }
  563. /**
  564. * The extensions registered with this message class. This is a map of
  565. * extension field number to fieldInfo object.
  566. *
  567. * For example:
  568. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  569. *
  570. * fieldName contains the JsCompiler renamed field name property so that it
  571. * works in OPTIMIZED mode.
  572. *
  573. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  574. */
  575. proto.google.protobuf.EnumOptions.extensions = {};
  576. /**
  577. * The extensions registered with this message class. This is a map of
  578. * extension field number to fieldInfo object.
  579. *
  580. * For example:
  581. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  582. *
  583. * fieldName contains the JsCompiler renamed field name property so that it
  584. * works in OPTIMIZED mode.
  585. *
  586. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  587. */
  588. proto.google.protobuf.EnumOptions.extensionsBinary = {};
  589. /**
  590. * Generated by JsPbCodeGenerator.
  591. * @param {Array=} opt_data Optional initial data array, typically from a
  592. * server response, or constructed directly in Javascript. The array is used
  593. * in place and becomes part of the constructed object. It is not cloned.
  594. * If no data is provided, the constructed object will be empty, but still
  595. * valid.
  596. * @extends {jspb.Message}
  597. * @constructor
  598. */
  599. proto.google.protobuf.EnumValueOptions = function(opt_data) {
  600. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumValueOptions.repeatedFields_, null);
  601. };
  602. goog.inherits(proto.google.protobuf.EnumValueOptions, jspb.Message);
  603. if (goog.DEBUG && !COMPILED) {
  604. /**
  605. * @public
  606. * @override
  607. */
  608. proto.google.protobuf.EnumValueOptions.displayName = 'proto.google.protobuf.EnumValueOptions';
  609. }
  610. /**
  611. * The extensions registered with this message class. This is a map of
  612. * extension field number to fieldInfo object.
  613. *
  614. * For example:
  615. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  616. *
  617. * fieldName contains the JsCompiler renamed field name property so that it
  618. * works in OPTIMIZED mode.
  619. *
  620. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  621. */
  622. proto.google.protobuf.EnumValueOptions.extensions = {};
  623. /**
  624. * The extensions registered with this message class. This is a map of
  625. * extension field number to fieldInfo object.
  626. *
  627. * For example:
  628. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  629. *
  630. * fieldName contains the JsCompiler renamed field name property so that it
  631. * works in OPTIMIZED mode.
  632. *
  633. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  634. */
  635. proto.google.protobuf.EnumValueOptions.extensionsBinary = {};
  636. /**
  637. * Generated by JsPbCodeGenerator.
  638. * @param {Array=} opt_data Optional initial data array, typically from a
  639. * server response, or constructed directly in Javascript. The array is used
  640. * in place and becomes part of the constructed object. It is not cloned.
  641. * If no data is provided, the constructed object will be empty, but still
  642. * valid.
  643. * @extends {jspb.Message}
  644. * @constructor
  645. */
  646. proto.google.protobuf.ServiceOptions = function(opt_data) {
  647. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ServiceOptions.repeatedFields_, null);
  648. };
  649. goog.inherits(proto.google.protobuf.ServiceOptions, jspb.Message);
  650. if (goog.DEBUG && !COMPILED) {
  651. /**
  652. * @public
  653. * @override
  654. */
  655. proto.google.protobuf.ServiceOptions.displayName = 'proto.google.protobuf.ServiceOptions';
  656. }
  657. /**
  658. * The extensions registered with this message class. This is a map of
  659. * extension field number to fieldInfo object.
  660. *
  661. * For example:
  662. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  663. *
  664. * fieldName contains the JsCompiler renamed field name property so that it
  665. * works in OPTIMIZED mode.
  666. *
  667. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  668. */
  669. proto.google.protobuf.ServiceOptions.extensions = {};
  670. /**
  671. * The extensions registered with this message class. This is a map of
  672. * extension field number to fieldInfo object.
  673. *
  674. * For example:
  675. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  676. *
  677. * fieldName contains the JsCompiler renamed field name property so that it
  678. * works in OPTIMIZED mode.
  679. *
  680. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  681. */
  682. proto.google.protobuf.ServiceOptions.extensionsBinary = {};
  683. /**
  684. * Generated by JsPbCodeGenerator.
  685. * @param {Array=} opt_data Optional initial data array, typically from a
  686. * server response, or constructed directly in Javascript. The array is used
  687. * in place and becomes part of the constructed object. It is not cloned.
  688. * If no data is provided, the constructed object will be empty, but still
  689. * valid.
  690. * @extends {jspb.Message}
  691. * @constructor
  692. */
  693. proto.google.protobuf.MethodOptions = function(opt_data) {
  694. jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MethodOptions.repeatedFields_, null);
  695. };
  696. goog.inherits(proto.google.protobuf.MethodOptions, jspb.Message);
  697. if (goog.DEBUG && !COMPILED) {
  698. /**
  699. * @public
  700. * @override
  701. */
  702. proto.google.protobuf.MethodOptions.displayName = 'proto.google.protobuf.MethodOptions';
  703. }
  704. /**
  705. * The extensions registered with this message class. This is a map of
  706. * extension field number to fieldInfo object.
  707. *
  708. * For example:
  709. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  710. *
  711. * fieldName contains the JsCompiler renamed field name property so that it
  712. * works in OPTIMIZED mode.
  713. *
  714. * @type {!Object<number, jspb.ExtensionFieldInfo>}
  715. */
  716. proto.google.protobuf.MethodOptions.extensions = {};
  717. /**
  718. * The extensions registered with this message class. This is a map of
  719. * extension field number to fieldInfo object.
  720. *
  721. * For example:
  722. * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
  723. *
  724. * fieldName contains the JsCompiler renamed field name property so that it
  725. * works in OPTIMIZED mode.
  726. *
  727. * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
  728. */
  729. proto.google.protobuf.MethodOptions.extensionsBinary = {};
  730. /**
  731. * Generated by JsPbCodeGenerator.
  732. * @param {Array=} opt_data Optional initial data array, typically from a
  733. * server response, or constructed directly in Javascript. The array is used
  734. * in place and becomes part of the constructed object. It is not cloned.
  735. * If no data is provided, the constructed object will be empty, but still
  736. * valid.
  737. * @extends {jspb.Message}
  738. * @constructor
  739. */
  740. proto.google.protobuf.UninterpretedOption = function(opt_data) {
  741. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.UninterpretedOption.repeatedFields_, null);
  742. };
  743. goog.inherits(proto.google.protobuf.UninterpretedOption, jspb.Message);
  744. if (goog.DEBUG && !COMPILED) {
  745. /**
  746. * @public
  747. * @override
  748. */
  749. proto.google.protobuf.UninterpretedOption.displayName = 'proto.google.protobuf.UninterpretedOption';
  750. }
  751. /**
  752. * Generated by JsPbCodeGenerator.
  753. * @param {Array=} opt_data Optional initial data array, typically from a
  754. * server response, or constructed directly in Javascript. The array is used
  755. * in place and becomes part of the constructed object. It is not cloned.
  756. * If no data is provided, the constructed object will be empty, but still
  757. * valid.
  758. * @extends {jspb.Message}
  759. * @constructor
  760. */
  761. proto.google.protobuf.UninterpretedOption.NamePart = function(opt_data) {
  762. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  763. };
  764. goog.inherits(proto.google.protobuf.UninterpretedOption.NamePart, jspb.Message);
  765. if (goog.DEBUG && !COMPILED) {
  766. /**
  767. * @public
  768. * @override
  769. */
  770. proto.google.protobuf.UninterpretedOption.NamePart.displayName = 'proto.google.protobuf.UninterpretedOption.NamePart';
  771. }
  772. /**
  773. * Generated by JsPbCodeGenerator.
  774. * @param {Array=} opt_data Optional initial data array, typically from a
  775. * server response, or constructed directly in Javascript. The array is used
  776. * in place and becomes part of the constructed object. It is not cloned.
  777. * If no data is provided, the constructed object will be empty, but still
  778. * valid.
  779. * @extends {jspb.Message}
  780. * @constructor
  781. */
  782. proto.google.protobuf.SourceCodeInfo = function(opt_data) {
  783. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.repeatedFields_, null);
  784. };
  785. goog.inherits(proto.google.protobuf.SourceCodeInfo, jspb.Message);
  786. if (goog.DEBUG && !COMPILED) {
  787. /**
  788. * @public
  789. * @override
  790. */
  791. proto.google.protobuf.SourceCodeInfo.displayName = 'proto.google.protobuf.SourceCodeInfo';
  792. }
  793. /**
  794. * Generated by JsPbCodeGenerator.
  795. * @param {Array=} opt_data Optional initial data array, typically from a
  796. * server response, or constructed directly in Javascript. The array is used
  797. * in place and becomes part of the constructed object. It is not cloned.
  798. * If no data is provided, the constructed object will be empty, but still
  799. * valid.
  800. * @extends {jspb.Message}
  801. * @constructor
  802. */
  803. proto.google.protobuf.SourceCodeInfo.Location = function(opt_data) {
  804. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_, null);
  805. };
  806. goog.inherits(proto.google.protobuf.SourceCodeInfo.Location, jspb.Message);
  807. if (goog.DEBUG && !COMPILED) {
  808. /**
  809. * @public
  810. * @override
  811. */
  812. proto.google.protobuf.SourceCodeInfo.Location.displayName = 'proto.google.protobuf.SourceCodeInfo.Location';
  813. }
  814. /**
  815. * Generated by JsPbCodeGenerator.
  816. * @param {Array=} opt_data Optional initial data array, typically from a
  817. * server response, or constructed directly in Javascript. The array is used
  818. * in place and becomes part of the constructed object. It is not cloned.
  819. * If no data is provided, the constructed object will be empty, but still
  820. * valid.
  821. * @extends {jspb.Message}
  822. * @constructor
  823. */
  824. proto.google.protobuf.GeneratedCodeInfo = function(opt_data) {
  825. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.repeatedFields_, null);
  826. };
  827. goog.inherits(proto.google.protobuf.GeneratedCodeInfo, jspb.Message);
  828. if (goog.DEBUG && !COMPILED) {
  829. /**
  830. * @public
  831. * @override
  832. */
  833. proto.google.protobuf.GeneratedCodeInfo.displayName = 'proto.google.protobuf.GeneratedCodeInfo';
  834. }
  835. /**
  836. * Generated by JsPbCodeGenerator.
  837. * @param {Array=} opt_data Optional initial data array, typically from a
  838. * server response, or constructed directly in Javascript. The array is used
  839. * in place and becomes part of the constructed object. It is not cloned.
  840. * If no data is provided, the constructed object will be empty, but still
  841. * valid.
  842. * @extends {jspb.Message}
  843. * @constructor
  844. */
  845. proto.google.protobuf.GeneratedCodeInfo.Annotation = function(opt_data) {
  846. jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_, null);
  847. };
  848. goog.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation, jspb.Message);
  849. if (goog.DEBUG && !COMPILED) {
  850. /**
  851. * @public
  852. * @override
  853. */
  854. proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName = 'proto.google.protobuf.GeneratedCodeInfo.Annotation';
  855. }
  856. /**
  857. * List of repeated fields within this message type.
  858. * @private {!Array<number>}
  859. * @const
  860. */
  861. proto.google.protobuf.FileDescriptorSet.repeatedFields_ = [1];
  862. if (jspb.Message.GENERATE_TO_OBJECT) {
  863. /**
  864. * Creates an object representation of this proto.
  865. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  866. * Optional fields that are not set will be set to undefined.
  867. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  868. * For the list of reserved names please see:
  869. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  870. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  871. * JSPB instance for transitional soy proto support:
  872. * http://goto/soy-param-migration
  873. * @return {!Object}
  874. */
  875. proto.google.protobuf.FileDescriptorSet.prototype.toObject = function(opt_includeInstance) {
  876. return proto.google.protobuf.FileDescriptorSet.toObject(opt_includeInstance, this);
  877. };
  878. /**
  879. * Static version of the {@see toObject} method.
  880. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  881. * the JSPB instance for transitional soy proto support:
  882. * http://goto/soy-param-migration
  883. * @param {!proto.google.protobuf.FileDescriptorSet} msg The msg instance to transform.
  884. * @return {!Object}
  885. * @suppress {unusedLocalVariables} f is only used for nested messages
  886. */
  887. proto.google.protobuf.FileDescriptorSet.toObject = function(includeInstance, msg) {
  888. var f, obj = {
  889. fileList: jspb.Message.toObjectList(msg.getFileList(),
  890. proto.google.protobuf.FileDescriptorProto.toObject, includeInstance)
  891. };
  892. if (includeInstance) {
  893. obj.$jspbMessageInstance = msg;
  894. }
  895. return obj;
  896. };
  897. }
  898. /**
  899. * Deserializes binary data (in protobuf wire format).
  900. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  901. * @return {!proto.google.protobuf.FileDescriptorSet}
  902. */
  903. proto.google.protobuf.FileDescriptorSet.deserializeBinary = function(bytes) {
  904. var reader = new jspb.BinaryReader(bytes);
  905. var msg = new proto.google.protobuf.FileDescriptorSet;
  906. return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(msg, reader);
  907. };
  908. /**
  909. * Deserializes binary data (in protobuf wire format) from the
  910. * given reader into the given message object.
  911. * @param {!proto.google.protobuf.FileDescriptorSet} msg The message object to deserialize into.
  912. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  913. * @return {!proto.google.protobuf.FileDescriptorSet}
  914. */
  915. proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader = function(msg, reader) {
  916. while (reader.nextField()) {
  917. if (reader.isEndGroup()) {
  918. break;
  919. }
  920. var field = reader.getFieldNumber();
  921. switch (field) {
  922. case 1:
  923. var value = new proto.google.protobuf.FileDescriptorProto;
  924. reader.readMessage(value,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader);
  925. msg.addFile(value);
  926. break;
  927. default:
  928. reader.skipField();
  929. break;
  930. }
  931. }
  932. return msg;
  933. };
  934. /**
  935. * Serializes the message to binary data (in protobuf wire format).
  936. * @return {!Uint8Array}
  937. */
  938. proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary = function() {
  939. var writer = new jspb.BinaryWriter();
  940. proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this, writer);
  941. return writer.getResultBuffer();
  942. };
  943. /**
  944. * Serializes the given message to binary data (in protobuf wire
  945. * format), writing to the given BinaryWriter.
  946. * @param {!proto.google.protobuf.FileDescriptorSet} message
  947. * @param {!jspb.BinaryWriter} writer
  948. * @suppress {unusedLocalVariables} f is only used for nested messages
  949. */
  950. proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter = function(message, writer) {
  951. var f = undefined;
  952. f = message.getFileList();
  953. if (f.length > 0) {
  954. writer.writeRepeatedMessage(
  955. 1,
  956. f,
  957. proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter
  958. );
  959. }
  960. };
  961. /**
  962. * repeated FileDescriptorProto file = 1;
  963. * @return {!Array<!proto.google.protobuf.FileDescriptorProto>}
  964. */
  965. proto.google.protobuf.FileDescriptorSet.prototype.getFileList = function() {
  966. return /** @type{!Array<!proto.google.protobuf.FileDescriptorProto>} */ (
  967. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FileDescriptorProto, 1));
  968. };
  969. /**
  970. * @param {!Array<!proto.google.protobuf.FileDescriptorProto>} value
  971. * @return {!proto.google.protobuf.FileDescriptorSet} returns this
  972. */
  973. proto.google.protobuf.FileDescriptorSet.prototype.setFileList = function(value) {
  974. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  975. };
  976. /**
  977. * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value
  978. * @param {number=} opt_index
  979. * @return {!proto.google.protobuf.FileDescriptorProto}
  980. */
  981. proto.google.protobuf.FileDescriptorSet.prototype.addFile = function(opt_value, opt_index) {
  982. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index);
  983. };
  984. /**
  985. * Clears the list making it empty but non-null.
  986. * @return {!proto.google.protobuf.FileDescriptorSet} returns this
  987. */
  988. proto.google.protobuf.FileDescriptorSet.prototype.clearFileList = function() {
  989. return this.setFileList([]);
  990. };
  991. /**
  992. * List of repeated fields within this message type.
  993. * @private {!Array<number>}
  994. * @const
  995. */
  996. proto.google.protobuf.FileDescriptorProto.repeatedFields_ = [3,10,11,4,5,6,7];
  997. if (jspb.Message.GENERATE_TO_OBJECT) {
  998. /**
  999. * Creates an object representation of this proto.
  1000. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1001. * Optional fields that are not set will be set to undefined.
  1002. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1003. * For the list of reserved names please see:
  1004. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1005. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1006. * JSPB instance for transitional soy proto support:
  1007. * http://goto/soy-param-migration
  1008. * @return {!Object}
  1009. */
  1010. proto.google.protobuf.FileDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  1011. return proto.google.protobuf.FileDescriptorProto.toObject(opt_includeInstance, this);
  1012. };
  1013. /**
  1014. * Static version of the {@see toObject} method.
  1015. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1016. * the JSPB instance for transitional soy proto support:
  1017. * http://goto/soy-param-migration
  1018. * @param {!proto.google.protobuf.FileDescriptorProto} msg The msg instance to transform.
  1019. * @return {!Object}
  1020. * @suppress {unusedLocalVariables} f is only used for nested messages
  1021. */
  1022. proto.google.protobuf.FileDescriptorProto.toObject = function(includeInstance, msg) {
  1023. var f, obj = {
  1024. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  1025. pb_package: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  1026. dependencyList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
  1027. publicDependencyList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
  1028. weakDependencyList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
  1029. messageTypeList: jspb.Message.toObjectList(msg.getMessageTypeList(),
  1030. proto.google.protobuf.DescriptorProto.toObject, includeInstance),
  1031. enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(),
  1032. proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance),
  1033. serviceList: jspb.Message.toObjectList(msg.getServiceList(),
  1034. proto.google.protobuf.ServiceDescriptorProto.toObject, includeInstance),
  1035. extensionList: jspb.Message.toObjectList(msg.getExtensionList(),
  1036. proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
  1037. options: (f = msg.getOptions()) && proto.google.protobuf.FileOptions.toObject(includeInstance, f),
  1038. sourceCodeInfo: (f = msg.getSourceCodeInfo()) && proto.google.protobuf.SourceCodeInfo.toObject(includeInstance, f),
  1039. syntax: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f
  1040. };
  1041. if (includeInstance) {
  1042. obj.$jspbMessageInstance = msg;
  1043. }
  1044. return obj;
  1045. };
  1046. }
  1047. /**
  1048. * Deserializes binary data (in protobuf wire format).
  1049. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1050. * @return {!proto.google.protobuf.FileDescriptorProto}
  1051. */
  1052. proto.google.protobuf.FileDescriptorProto.deserializeBinary = function(bytes) {
  1053. var reader = new jspb.BinaryReader(bytes);
  1054. var msg = new proto.google.protobuf.FileDescriptorProto;
  1055. return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(msg, reader);
  1056. };
  1057. /**
  1058. * Deserializes binary data (in protobuf wire format) from the
  1059. * given reader into the given message object.
  1060. * @param {!proto.google.protobuf.FileDescriptorProto} msg The message object to deserialize into.
  1061. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1062. * @return {!proto.google.protobuf.FileDescriptorProto}
  1063. */
  1064. proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  1065. while (reader.nextField()) {
  1066. if (reader.isEndGroup()) {
  1067. break;
  1068. }
  1069. var field = reader.getFieldNumber();
  1070. switch (field) {
  1071. case 1:
  1072. var value = /** @type {string} */ (reader.readString());
  1073. msg.setName(value);
  1074. break;
  1075. case 2:
  1076. var value = /** @type {string} */ (reader.readString());
  1077. msg.setPackage(value);
  1078. break;
  1079. case 3:
  1080. var value = /** @type {string} */ (reader.readString());
  1081. msg.addDependency(value);
  1082. break;
  1083. case 10:
  1084. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  1085. for (var i = 0; i < values.length; i++) {
  1086. msg.addPublicDependency(values[i]);
  1087. }
  1088. break;
  1089. case 11:
  1090. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  1091. for (var i = 0; i < values.length; i++) {
  1092. msg.addWeakDependency(values[i]);
  1093. }
  1094. break;
  1095. case 4:
  1096. var value = new proto.google.protobuf.DescriptorProto;
  1097. reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader);
  1098. msg.addMessageType(value);
  1099. break;
  1100. case 5:
  1101. var value = new proto.google.protobuf.EnumDescriptorProto;
  1102. reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader);
  1103. msg.addEnumType(value);
  1104. break;
  1105. case 6:
  1106. var value = new proto.google.protobuf.ServiceDescriptorProto;
  1107. reader.readMessage(value,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader);
  1108. msg.addService(value);
  1109. break;
  1110. case 7:
  1111. var value = new proto.google.protobuf.FieldDescriptorProto;
  1112. reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
  1113. msg.addExtension$(value);
  1114. break;
  1115. case 8:
  1116. var value = new proto.google.protobuf.FileOptions;
  1117. reader.readMessage(value,proto.google.protobuf.FileOptions.deserializeBinaryFromReader);
  1118. msg.setOptions(value);
  1119. break;
  1120. case 9:
  1121. var value = new proto.google.protobuf.SourceCodeInfo;
  1122. reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader);
  1123. msg.setSourceCodeInfo(value);
  1124. break;
  1125. case 12:
  1126. var value = /** @type {string} */ (reader.readString());
  1127. msg.setSyntax(value);
  1128. break;
  1129. default:
  1130. reader.skipField();
  1131. break;
  1132. }
  1133. }
  1134. return msg;
  1135. };
  1136. /**
  1137. * Serializes the message to binary data (in protobuf wire format).
  1138. * @return {!Uint8Array}
  1139. */
  1140. proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary = function() {
  1141. var writer = new jspb.BinaryWriter();
  1142. proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this, writer);
  1143. return writer.getResultBuffer();
  1144. };
  1145. /**
  1146. * Serializes the given message to binary data (in protobuf wire
  1147. * format), writing to the given BinaryWriter.
  1148. * @param {!proto.google.protobuf.FileDescriptorProto} message
  1149. * @param {!jspb.BinaryWriter} writer
  1150. * @suppress {unusedLocalVariables} f is only used for nested messages
  1151. */
  1152. proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  1153. var f = undefined;
  1154. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  1155. if (f != null) {
  1156. writer.writeString(
  1157. 1,
  1158. f
  1159. );
  1160. }
  1161. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  1162. if (f != null) {
  1163. writer.writeString(
  1164. 2,
  1165. f
  1166. );
  1167. }
  1168. f = message.getDependencyList();
  1169. if (f.length > 0) {
  1170. writer.writeRepeatedString(
  1171. 3,
  1172. f
  1173. );
  1174. }
  1175. f = message.getPublicDependencyList();
  1176. if (f.length > 0) {
  1177. writer.writeRepeatedInt32(
  1178. 10,
  1179. f
  1180. );
  1181. }
  1182. f = message.getWeakDependencyList();
  1183. if (f.length > 0) {
  1184. writer.writeRepeatedInt32(
  1185. 11,
  1186. f
  1187. );
  1188. }
  1189. f = message.getMessageTypeList();
  1190. if (f.length > 0) {
  1191. writer.writeRepeatedMessage(
  1192. 4,
  1193. f,
  1194. proto.google.protobuf.DescriptorProto.serializeBinaryToWriter
  1195. );
  1196. }
  1197. f = message.getEnumTypeList();
  1198. if (f.length > 0) {
  1199. writer.writeRepeatedMessage(
  1200. 5,
  1201. f,
  1202. proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter
  1203. );
  1204. }
  1205. f = message.getServiceList();
  1206. if (f.length > 0) {
  1207. writer.writeRepeatedMessage(
  1208. 6,
  1209. f,
  1210. proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter
  1211. );
  1212. }
  1213. f = message.getExtensionList();
  1214. if (f.length > 0) {
  1215. writer.writeRepeatedMessage(
  1216. 7,
  1217. f,
  1218. proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
  1219. );
  1220. }
  1221. f = message.getOptions();
  1222. if (f != null) {
  1223. writer.writeMessage(
  1224. 8,
  1225. f,
  1226. proto.google.protobuf.FileOptions.serializeBinaryToWriter
  1227. );
  1228. }
  1229. f = message.getSourceCodeInfo();
  1230. if (f != null) {
  1231. writer.writeMessage(
  1232. 9,
  1233. f,
  1234. proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter
  1235. );
  1236. }
  1237. f = /** @type {string} */ (jspb.Message.getField(message, 12));
  1238. if (f != null) {
  1239. writer.writeString(
  1240. 12,
  1241. f
  1242. );
  1243. }
  1244. };
  1245. /**
  1246. * optional string name = 1;
  1247. * @return {string}
  1248. */
  1249. proto.google.protobuf.FileDescriptorProto.prototype.getName = function() {
  1250. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1251. };
  1252. /**
  1253. * @param {string} value
  1254. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1255. */
  1256. proto.google.protobuf.FileDescriptorProto.prototype.setName = function(value) {
  1257. return jspb.Message.setField(this, 1, value);
  1258. };
  1259. /**
  1260. * Clears the field making it undefined.
  1261. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1262. */
  1263. proto.google.protobuf.FileDescriptorProto.prototype.clearName = function() {
  1264. return jspb.Message.setField(this, 1, undefined);
  1265. };
  1266. /**
  1267. * Returns whether this field is set.
  1268. * @return {boolean}
  1269. */
  1270. proto.google.protobuf.FileDescriptorProto.prototype.hasName = function() {
  1271. return jspb.Message.getField(this, 1) != null;
  1272. };
  1273. /**
  1274. * optional string package = 2;
  1275. * @return {string}
  1276. */
  1277. proto.google.protobuf.FileDescriptorProto.prototype.getPackage = function() {
  1278. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1279. };
  1280. /**
  1281. * @param {string} value
  1282. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1283. */
  1284. proto.google.protobuf.FileDescriptorProto.prototype.setPackage = function(value) {
  1285. return jspb.Message.setField(this, 2, value);
  1286. };
  1287. /**
  1288. * Clears the field making it undefined.
  1289. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1290. */
  1291. proto.google.protobuf.FileDescriptorProto.prototype.clearPackage = function() {
  1292. return jspb.Message.setField(this, 2, undefined);
  1293. };
  1294. /**
  1295. * Returns whether this field is set.
  1296. * @return {boolean}
  1297. */
  1298. proto.google.protobuf.FileDescriptorProto.prototype.hasPackage = function() {
  1299. return jspb.Message.getField(this, 2) != null;
  1300. };
  1301. /**
  1302. * repeated string dependency = 3;
  1303. * @return {!Array<string>}
  1304. */
  1305. proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList = function() {
  1306. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
  1307. };
  1308. /**
  1309. * @param {!Array<string>} value
  1310. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1311. */
  1312. proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList = function(value) {
  1313. return jspb.Message.setField(this, 3, value || []);
  1314. };
  1315. /**
  1316. * @param {string} value
  1317. * @param {number=} opt_index
  1318. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1319. */
  1320. proto.google.protobuf.FileDescriptorProto.prototype.addDependency = function(value, opt_index) {
  1321. return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
  1322. };
  1323. /**
  1324. * Clears the list making it empty but non-null.
  1325. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1326. */
  1327. proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList = function() {
  1328. return this.setDependencyList([]);
  1329. };
  1330. /**
  1331. * repeated int32 public_dependency = 10;
  1332. * @return {!Array<number>}
  1333. */
  1334. proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList = function() {
  1335. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 10));
  1336. };
  1337. /**
  1338. * @param {!Array<number>} value
  1339. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1340. */
  1341. proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList = function(value) {
  1342. return jspb.Message.setField(this, 10, value || []);
  1343. };
  1344. /**
  1345. * @param {number} value
  1346. * @param {number=} opt_index
  1347. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1348. */
  1349. proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency = function(value, opt_index) {
  1350. return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
  1351. };
  1352. /**
  1353. * Clears the list making it empty but non-null.
  1354. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1355. */
  1356. proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList = function() {
  1357. return this.setPublicDependencyList([]);
  1358. };
  1359. /**
  1360. * repeated int32 weak_dependency = 11;
  1361. * @return {!Array<number>}
  1362. */
  1363. proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList = function() {
  1364. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 11));
  1365. };
  1366. /**
  1367. * @param {!Array<number>} value
  1368. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1369. */
  1370. proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList = function(value) {
  1371. return jspb.Message.setField(this, 11, value || []);
  1372. };
  1373. /**
  1374. * @param {number} value
  1375. * @param {number=} opt_index
  1376. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1377. */
  1378. proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency = function(value, opt_index) {
  1379. return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
  1380. };
  1381. /**
  1382. * Clears the list making it empty but non-null.
  1383. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1384. */
  1385. proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList = function() {
  1386. return this.setWeakDependencyList([]);
  1387. };
  1388. /**
  1389. * repeated DescriptorProto message_type = 4;
  1390. * @return {!Array<!proto.google.protobuf.DescriptorProto>}
  1391. */
  1392. proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList = function() {
  1393. return /** @type{!Array<!proto.google.protobuf.DescriptorProto>} */ (
  1394. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 4));
  1395. };
  1396. /**
  1397. * @param {!Array<!proto.google.protobuf.DescriptorProto>} value
  1398. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1399. */
  1400. proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList = function(value) {
  1401. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  1402. };
  1403. /**
  1404. * @param {!proto.google.protobuf.DescriptorProto=} opt_value
  1405. * @param {number=} opt_index
  1406. * @return {!proto.google.protobuf.DescriptorProto}
  1407. */
  1408. proto.google.protobuf.FileDescriptorProto.prototype.addMessageType = function(opt_value, opt_index) {
  1409. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.DescriptorProto, opt_index);
  1410. };
  1411. /**
  1412. * Clears the list making it empty but non-null.
  1413. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1414. */
  1415. proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList = function() {
  1416. return this.setMessageTypeList([]);
  1417. };
  1418. /**
  1419. * repeated EnumDescriptorProto enum_type = 5;
  1420. * @return {!Array<!proto.google.protobuf.EnumDescriptorProto>}
  1421. */
  1422. proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList = function() {
  1423. return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto>} */ (
  1424. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 5));
  1425. };
  1426. /**
  1427. * @param {!Array<!proto.google.protobuf.EnumDescriptorProto>} value
  1428. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1429. */
  1430. proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList = function(value) {
  1431. return jspb.Message.setRepeatedWrapperField(this, 5, value);
  1432. };
  1433. /**
  1434. * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value
  1435. * @param {number=} opt_index
  1436. * @return {!proto.google.protobuf.EnumDescriptorProto}
  1437. */
  1438. proto.google.protobuf.FileDescriptorProto.prototype.addEnumType = function(opt_value, opt_index) {
  1439. return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index);
  1440. };
  1441. /**
  1442. * Clears the list making it empty but non-null.
  1443. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1444. */
  1445. proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList = function() {
  1446. return this.setEnumTypeList([]);
  1447. };
  1448. /**
  1449. * repeated ServiceDescriptorProto service = 6;
  1450. * @return {!Array<!proto.google.protobuf.ServiceDescriptorProto>}
  1451. */
  1452. proto.google.protobuf.FileDescriptorProto.prototype.getServiceList = function() {
  1453. return /** @type{!Array<!proto.google.protobuf.ServiceDescriptorProto>} */ (
  1454. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.ServiceDescriptorProto, 6));
  1455. };
  1456. /**
  1457. * @param {!Array<!proto.google.protobuf.ServiceDescriptorProto>} value
  1458. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1459. */
  1460. proto.google.protobuf.FileDescriptorProto.prototype.setServiceList = function(value) {
  1461. return jspb.Message.setRepeatedWrapperField(this, 6, value);
  1462. };
  1463. /**
  1464. * @param {!proto.google.protobuf.ServiceDescriptorProto=} opt_value
  1465. * @param {number=} opt_index
  1466. * @return {!proto.google.protobuf.ServiceDescriptorProto}
  1467. */
  1468. proto.google.protobuf.FileDescriptorProto.prototype.addService = function(opt_value, opt_index) {
  1469. return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.ServiceDescriptorProto, opt_index);
  1470. };
  1471. /**
  1472. * Clears the list making it empty but non-null.
  1473. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1474. */
  1475. proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList = function() {
  1476. return this.setServiceList([]);
  1477. };
  1478. /**
  1479. * repeated FieldDescriptorProto extension = 7;
  1480. * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>}
  1481. */
  1482. proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList = function() {
  1483. return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ (
  1484. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 7));
  1485. };
  1486. /**
  1487. * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value
  1488. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1489. */
  1490. proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList = function(value) {
  1491. return jspb.Message.setRepeatedWrapperField(this, 7, value);
  1492. };
  1493. /**
  1494. * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value
  1495. * @param {number=} opt_index
  1496. * @return {!proto.google.protobuf.FieldDescriptorProto}
  1497. */
  1498. proto.google.protobuf.FileDescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) {
  1499. return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index);
  1500. };
  1501. /**
  1502. * Clears the list making it empty but non-null.
  1503. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1504. */
  1505. proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList = function() {
  1506. return this.setExtensionList([]);
  1507. };
  1508. /**
  1509. * optional FileOptions options = 8;
  1510. * @return {?proto.google.protobuf.FileOptions}
  1511. */
  1512. proto.google.protobuf.FileDescriptorProto.prototype.getOptions = function() {
  1513. return /** @type{?proto.google.protobuf.FileOptions} */ (
  1514. jspb.Message.getWrapperField(this, proto.google.protobuf.FileOptions, 8));
  1515. };
  1516. /**
  1517. * @param {?proto.google.protobuf.FileOptions|undefined} value
  1518. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1519. */
  1520. proto.google.protobuf.FileDescriptorProto.prototype.setOptions = function(value) {
  1521. return jspb.Message.setWrapperField(this, 8, value);
  1522. };
  1523. /**
  1524. * Clears the message field making it undefined.
  1525. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1526. */
  1527. proto.google.protobuf.FileDescriptorProto.prototype.clearOptions = function() {
  1528. return this.setOptions(undefined);
  1529. };
  1530. /**
  1531. * Returns whether this field is set.
  1532. * @return {boolean}
  1533. */
  1534. proto.google.protobuf.FileDescriptorProto.prototype.hasOptions = function() {
  1535. return jspb.Message.getField(this, 8) != null;
  1536. };
  1537. /**
  1538. * optional SourceCodeInfo source_code_info = 9;
  1539. * @return {?proto.google.protobuf.SourceCodeInfo}
  1540. */
  1541. proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo = function() {
  1542. return /** @type{?proto.google.protobuf.SourceCodeInfo} */ (
  1543. jspb.Message.getWrapperField(this, proto.google.protobuf.SourceCodeInfo, 9));
  1544. };
  1545. /**
  1546. * @param {?proto.google.protobuf.SourceCodeInfo|undefined} value
  1547. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1548. */
  1549. proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo = function(value) {
  1550. return jspb.Message.setWrapperField(this, 9, value);
  1551. };
  1552. /**
  1553. * Clears the message field making it undefined.
  1554. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1555. */
  1556. proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo = function() {
  1557. return this.setSourceCodeInfo(undefined);
  1558. };
  1559. /**
  1560. * Returns whether this field is set.
  1561. * @return {boolean}
  1562. */
  1563. proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo = function() {
  1564. return jspb.Message.getField(this, 9) != null;
  1565. };
  1566. /**
  1567. * optional string syntax = 12;
  1568. * @return {string}
  1569. */
  1570. proto.google.protobuf.FileDescriptorProto.prototype.getSyntax = function() {
  1571. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
  1572. };
  1573. /**
  1574. * @param {string} value
  1575. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1576. */
  1577. proto.google.protobuf.FileDescriptorProto.prototype.setSyntax = function(value) {
  1578. return jspb.Message.setField(this, 12, value);
  1579. };
  1580. /**
  1581. * Clears the field making it undefined.
  1582. * @return {!proto.google.protobuf.FileDescriptorProto} returns this
  1583. */
  1584. proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax = function() {
  1585. return jspb.Message.setField(this, 12, undefined);
  1586. };
  1587. /**
  1588. * Returns whether this field is set.
  1589. * @return {boolean}
  1590. */
  1591. proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax = function() {
  1592. return jspb.Message.getField(this, 12) != null;
  1593. };
  1594. /**
  1595. * List of repeated fields within this message type.
  1596. * @private {!Array<number>}
  1597. * @const
  1598. */
  1599. proto.google.protobuf.DescriptorProto.repeatedFields_ = [2,6,3,4,5,8,9,10];
  1600. if (jspb.Message.GENERATE_TO_OBJECT) {
  1601. /**
  1602. * Creates an object representation of this proto.
  1603. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1604. * Optional fields that are not set will be set to undefined.
  1605. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1606. * For the list of reserved names please see:
  1607. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1608. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1609. * JSPB instance for transitional soy proto support:
  1610. * http://goto/soy-param-migration
  1611. * @return {!Object}
  1612. */
  1613. proto.google.protobuf.DescriptorProto.prototype.toObject = function(opt_includeInstance) {
  1614. return proto.google.protobuf.DescriptorProto.toObject(opt_includeInstance, this);
  1615. };
  1616. /**
  1617. * Static version of the {@see toObject} method.
  1618. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1619. * the JSPB instance for transitional soy proto support:
  1620. * http://goto/soy-param-migration
  1621. * @param {!proto.google.protobuf.DescriptorProto} msg The msg instance to transform.
  1622. * @return {!Object}
  1623. * @suppress {unusedLocalVariables} f is only used for nested messages
  1624. */
  1625. proto.google.protobuf.DescriptorProto.toObject = function(includeInstance, msg) {
  1626. var f, obj = {
  1627. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  1628. fieldList: jspb.Message.toObjectList(msg.getFieldList(),
  1629. proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
  1630. extensionList: jspb.Message.toObjectList(msg.getExtensionList(),
  1631. proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
  1632. nestedTypeList: jspb.Message.toObjectList(msg.getNestedTypeList(),
  1633. proto.google.protobuf.DescriptorProto.toObject, includeInstance),
  1634. enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(),
  1635. proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance),
  1636. extensionRangeList: jspb.Message.toObjectList(msg.getExtensionRangeList(),
  1637. proto.google.protobuf.DescriptorProto.ExtensionRange.toObject, includeInstance),
  1638. oneofDeclList: jspb.Message.toObjectList(msg.getOneofDeclList(),
  1639. proto.google.protobuf.OneofDescriptorProto.toObject, includeInstance),
  1640. options: (f = msg.getOptions()) && proto.google.protobuf.MessageOptions.toObject(includeInstance, f),
  1641. reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(),
  1642. proto.google.protobuf.DescriptorProto.ReservedRange.toObject, includeInstance),
  1643. reservedNameList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
  1644. };
  1645. if (includeInstance) {
  1646. obj.$jspbMessageInstance = msg;
  1647. }
  1648. return obj;
  1649. };
  1650. }
  1651. /**
  1652. * Deserializes binary data (in protobuf wire format).
  1653. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1654. * @return {!proto.google.protobuf.DescriptorProto}
  1655. */
  1656. proto.google.protobuf.DescriptorProto.deserializeBinary = function(bytes) {
  1657. var reader = new jspb.BinaryReader(bytes);
  1658. var msg = new proto.google.protobuf.DescriptorProto;
  1659. return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(msg, reader);
  1660. };
  1661. /**
  1662. * Deserializes binary data (in protobuf wire format) from the
  1663. * given reader into the given message object.
  1664. * @param {!proto.google.protobuf.DescriptorProto} msg The message object to deserialize into.
  1665. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1666. * @return {!proto.google.protobuf.DescriptorProto}
  1667. */
  1668. proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  1669. while (reader.nextField()) {
  1670. if (reader.isEndGroup()) {
  1671. break;
  1672. }
  1673. var field = reader.getFieldNumber();
  1674. switch (field) {
  1675. case 1:
  1676. var value = /** @type {string} */ (reader.readString());
  1677. msg.setName(value);
  1678. break;
  1679. case 2:
  1680. var value = new proto.google.protobuf.FieldDescriptorProto;
  1681. reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
  1682. msg.addField(value);
  1683. break;
  1684. case 6:
  1685. var value = new proto.google.protobuf.FieldDescriptorProto;
  1686. reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
  1687. msg.addExtension$(value);
  1688. break;
  1689. case 3:
  1690. var value = new proto.google.protobuf.DescriptorProto;
  1691. reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader);
  1692. msg.addNestedType(value);
  1693. break;
  1694. case 4:
  1695. var value = new proto.google.protobuf.EnumDescriptorProto;
  1696. reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader);
  1697. msg.addEnumType(value);
  1698. break;
  1699. case 5:
  1700. var value = new proto.google.protobuf.DescriptorProto.ExtensionRange;
  1701. reader.readMessage(value,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader);
  1702. msg.addExtensionRange(value);
  1703. break;
  1704. case 8:
  1705. var value = new proto.google.protobuf.OneofDescriptorProto;
  1706. reader.readMessage(value,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader);
  1707. msg.addOneofDecl(value);
  1708. break;
  1709. case 7:
  1710. var value = new proto.google.protobuf.MessageOptions;
  1711. reader.readMessage(value,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader);
  1712. msg.setOptions(value);
  1713. break;
  1714. case 9:
  1715. var value = new proto.google.protobuf.DescriptorProto.ReservedRange;
  1716. reader.readMessage(value,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader);
  1717. msg.addReservedRange(value);
  1718. break;
  1719. case 10:
  1720. var value = /** @type {string} */ (reader.readString());
  1721. msg.addReservedName(value);
  1722. break;
  1723. default:
  1724. reader.skipField();
  1725. break;
  1726. }
  1727. }
  1728. return msg;
  1729. };
  1730. /**
  1731. * Serializes the message to binary data (in protobuf wire format).
  1732. * @return {!Uint8Array}
  1733. */
  1734. proto.google.protobuf.DescriptorProto.prototype.serializeBinary = function() {
  1735. var writer = new jspb.BinaryWriter();
  1736. proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this, writer);
  1737. return writer.getResultBuffer();
  1738. };
  1739. /**
  1740. * Serializes the given message to binary data (in protobuf wire
  1741. * format), writing to the given BinaryWriter.
  1742. * @param {!proto.google.protobuf.DescriptorProto} message
  1743. * @param {!jspb.BinaryWriter} writer
  1744. * @suppress {unusedLocalVariables} f is only used for nested messages
  1745. */
  1746. proto.google.protobuf.DescriptorProto.serializeBinaryToWriter = function(message, writer) {
  1747. var f = undefined;
  1748. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  1749. if (f != null) {
  1750. writer.writeString(
  1751. 1,
  1752. f
  1753. );
  1754. }
  1755. f = message.getFieldList();
  1756. if (f.length > 0) {
  1757. writer.writeRepeatedMessage(
  1758. 2,
  1759. f,
  1760. proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
  1761. );
  1762. }
  1763. f = message.getExtensionList();
  1764. if (f.length > 0) {
  1765. writer.writeRepeatedMessage(
  1766. 6,
  1767. f,
  1768. proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
  1769. );
  1770. }
  1771. f = message.getNestedTypeList();
  1772. if (f.length > 0) {
  1773. writer.writeRepeatedMessage(
  1774. 3,
  1775. f,
  1776. proto.google.protobuf.DescriptorProto.serializeBinaryToWriter
  1777. );
  1778. }
  1779. f = message.getEnumTypeList();
  1780. if (f.length > 0) {
  1781. writer.writeRepeatedMessage(
  1782. 4,
  1783. f,
  1784. proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter
  1785. );
  1786. }
  1787. f = message.getExtensionRangeList();
  1788. if (f.length > 0) {
  1789. writer.writeRepeatedMessage(
  1790. 5,
  1791. f,
  1792. proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter
  1793. );
  1794. }
  1795. f = message.getOneofDeclList();
  1796. if (f.length > 0) {
  1797. writer.writeRepeatedMessage(
  1798. 8,
  1799. f,
  1800. proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter
  1801. );
  1802. }
  1803. f = message.getOptions();
  1804. if (f != null) {
  1805. writer.writeMessage(
  1806. 7,
  1807. f,
  1808. proto.google.protobuf.MessageOptions.serializeBinaryToWriter
  1809. );
  1810. }
  1811. f = message.getReservedRangeList();
  1812. if (f.length > 0) {
  1813. writer.writeRepeatedMessage(
  1814. 9,
  1815. f,
  1816. proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter
  1817. );
  1818. }
  1819. f = message.getReservedNameList();
  1820. if (f.length > 0) {
  1821. writer.writeRepeatedString(
  1822. 10,
  1823. f
  1824. );
  1825. }
  1826. };
  1827. if (jspb.Message.GENERATE_TO_OBJECT) {
  1828. /**
  1829. * Creates an object representation of this proto.
  1830. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1831. * Optional fields that are not set will be set to undefined.
  1832. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1833. * For the list of reserved names please see:
  1834. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1835. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1836. * JSPB instance for transitional soy proto support:
  1837. * http://goto/soy-param-migration
  1838. * @return {!Object}
  1839. */
  1840. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject = function(opt_includeInstance) {
  1841. return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(opt_includeInstance, this);
  1842. };
  1843. /**
  1844. * Static version of the {@see toObject} method.
  1845. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1846. * the JSPB instance for transitional soy proto support:
  1847. * http://goto/soy-param-migration
  1848. * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The msg instance to transform.
  1849. * @return {!Object}
  1850. * @suppress {unusedLocalVariables} f is only used for nested messages
  1851. */
  1852. proto.google.protobuf.DescriptorProto.ExtensionRange.toObject = function(includeInstance, msg) {
  1853. var f, obj = {
  1854. start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  1855. end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  1856. options: (f = msg.getOptions()) && proto.google.protobuf.ExtensionRangeOptions.toObject(includeInstance, f)
  1857. };
  1858. if (includeInstance) {
  1859. obj.$jspbMessageInstance = msg;
  1860. }
  1861. return obj;
  1862. };
  1863. }
  1864. /**
  1865. * Deserializes binary data (in protobuf wire format).
  1866. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1867. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange}
  1868. */
  1869. proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary = function(bytes) {
  1870. var reader = new jspb.BinaryReader(bytes);
  1871. var msg = new proto.google.protobuf.DescriptorProto.ExtensionRange;
  1872. return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(msg, reader);
  1873. };
  1874. /**
  1875. * Deserializes binary data (in protobuf wire format) from the
  1876. * given reader into the given message object.
  1877. * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The message object to deserialize into.
  1878. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1879. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange}
  1880. */
  1881. proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader = function(msg, reader) {
  1882. while (reader.nextField()) {
  1883. if (reader.isEndGroup()) {
  1884. break;
  1885. }
  1886. var field = reader.getFieldNumber();
  1887. switch (field) {
  1888. case 1:
  1889. var value = /** @type {number} */ (reader.readInt32());
  1890. msg.setStart(value);
  1891. break;
  1892. case 2:
  1893. var value = /** @type {number} */ (reader.readInt32());
  1894. msg.setEnd(value);
  1895. break;
  1896. case 3:
  1897. var value = new proto.google.protobuf.ExtensionRangeOptions;
  1898. reader.readMessage(value,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader);
  1899. msg.setOptions(value);
  1900. break;
  1901. default:
  1902. reader.skipField();
  1903. break;
  1904. }
  1905. }
  1906. return msg;
  1907. };
  1908. /**
  1909. * Serializes the message to binary data (in protobuf wire format).
  1910. * @return {!Uint8Array}
  1911. */
  1912. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary = function() {
  1913. var writer = new jspb.BinaryWriter();
  1914. proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this, writer);
  1915. return writer.getResultBuffer();
  1916. };
  1917. /**
  1918. * Serializes the given message to binary data (in protobuf wire
  1919. * format), writing to the given BinaryWriter.
  1920. * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} message
  1921. * @param {!jspb.BinaryWriter} writer
  1922. * @suppress {unusedLocalVariables} f is only used for nested messages
  1923. */
  1924. proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter = function(message, writer) {
  1925. var f = undefined;
  1926. f = /** @type {number} */ (jspb.Message.getField(message, 1));
  1927. if (f != null) {
  1928. writer.writeInt32(
  1929. 1,
  1930. f
  1931. );
  1932. }
  1933. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  1934. if (f != null) {
  1935. writer.writeInt32(
  1936. 2,
  1937. f
  1938. );
  1939. }
  1940. f = message.getOptions();
  1941. if (f != null) {
  1942. writer.writeMessage(
  1943. 3,
  1944. f,
  1945. proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter
  1946. );
  1947. }
  1948. };
  1949. /**
  1950. * optional int32 start = 1;
  1951. * @return {number}
  1952. */
  1953. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart = function() {
  1954. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1955. };
  1956. /**
  1957. * @param {number} value
  1958. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  1959. */
  1960. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart = function(value) {
  1961. return jspb.Message.setField(this, 1, value);
  1962. };
  1963. /**
  1964. * Clears the field making it undefined.
  1965. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  1966. */
  1967. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart = function() {
  1968. return jspb.Message.setField(this, 1, undefined);
  1969. };
  1970. /**
  1971. * Returns whether this field is set.
  1972. * @return {boolean}
  1973. */
  1974. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart = function() {
  1975. return jspb.Message.getField(this, 1) != null;
  1976. };
  1977. /**
  1978. * optional int32 end = 2;
  1979. * @return {number}
  1980. */
  1981. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd = function() {
  1982. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1983. };
  1984. /**
  1985. * @param {number} value
  1986. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  1987. */
  1988. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd = function(value) {
  1989. return jspb.Message.setField(this, 2, value);
  1990. };
  1991. /**
  1992. * Clears the field making it undefined.
  1993. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  1994. */
  1995. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd = function() {
  1996. return jspb.Message.setField(this, 2, undefined);
  1997. };
  1998. /**
  1999. * Returns whether this field is set.
  2000. * @return {boolean}
  2001. */
  2002. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd = function() {
  2003. return jspb.Message.getField(this, 2) != null;
  2004. };
  2005. /**
  2006. * optional ExtensionRangeOptions options = 3;
  2007. * @return {?proto.google.protobuf.ExtensionRangeOptions}
  2008. */
  2009. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions = function() {
  2010. return /** @type{?proto.google.protobuf.ExtensionRangeOptions} */ (
  2011. jspb.Message.getWrapperField(this, proto.google.protobuf.ExtensionRangeOptions, 3));
  2012. };
  2013. /**
  2014. * @param {?proto.google.protobuf.ExtensionRangeOptions|undefined} value
  2015. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  2016. */
  2017. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions = function(value) {
  2018. return jspb.Message.setWrapperField(this, 3, value);
  2019. };
  2020. /**
  2021. * Clears the message field making it undefined.
  2022. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this
  2023. */
  2024. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions = function() {
  2025. return this.setOptions(undefined);
  2026. };
  2027. /**
  2028. * Returns whether this field is set.
  2029. * @return {boolean}
  2030. */
  2031. proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions = function() {
  2032. return jspb.Message.getField(this, 3) != null;
  2033. };
  2034. if (jspb.Message.GENERATE_TO_OBJECT) {
  2035. /**
  2036. * Creates an object representation of this proto.
  2037. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2038. * Optional fields that are not set will be set to undefined.
  2039. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2040. * For the list of reserved names please see:
  2041. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2042. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2043. * JSPB instance for transitional soy proto support:
  2044. * http://goto/soy-param-migration
  2045. * @return {!Object}
  2046. */
  2047. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject = function(opt_includeInstance) {
  2048. return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(opt_includeInstance, this);
  2049. };
  2050. /**
  2051. * Static version of the {@see toObject} method.
  2052. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2053. * the JSPB instance for transitional soy proto support:
  2054. * http://goto/soy-param-migration
  2055. * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The msg instance to transform.
  2056. * @return {!Object}
  2057. * @suppress {unusedLocalVariables} f is only used for nested messages
  2058. */
  2059. proto.google.protobuf.DescriptorProto.ReservedRange.toObject = function(includeInstance, msg) {
  2060. var f, obj = {
  2061. start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  2062. end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  2063. };
  2064. if (includeInstance) {
  2065. obj.$jspbMessageInstance = msg;
  2066. }
  2067. return obj;
  2068. };
  2069. }
  2070. /**
  2071. * Deserializes binary data (in protobuf wire format).
  2072. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2073. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange}
  2074. */
  2075. proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary = function(bytes) {
  2076. var reader = new jspb.BinaryReader(bytes);
  2077. var msg = new proto.google.protobuf.DescriptorProto.ReservedRange;
  2078. return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(msg, reader);
  2079. };
  2080. /**
  2081. * Deserializes binary data (in protobuf wire format) from the
  2082. * given reader into the given message object.
  2083. * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The message object to deserialize into.
  2084. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2085. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange}
  2086. */
  2087. proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader = function(msg, reader) {
  2088. while (reader.nextField()) {
  2089. if (reader.isEndGroup()) {
  2090. break;
  2091. }
  2092. var field = reader.getFieldNumber();
  2093. switch (field) {
  2094. case 1:
  2095. var value = /** @type {number} */ (reader.readInt32());
  2096. msg.setStart(value);
  2097. break;
  2098. case 2:
  2099. var value = /** @type {number} */ (reader.readInt32());
  2100. msg.setEnd(value);
  2101. break;
  2102. default:
  2103. reader.skipField();
  2104. break;
  2105. }
  2106. }
  2107. return msg;
  2108. };
  2109. /**
  2110. * Serializes the message to binary data (in protobuf wire format).
  2111. * @return {!Uint8Array}
  2112. */
  2113. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary = function() {
  2114. var writer = new jspb.BinaryWriter();
  2115. proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this, writer);
  2116. return writer.getResultBuffer();
  2117. };
  2118. /**
  2119. * Serializes the given message to binary data (in protobuf wire
  2120. * format), writing to the given BinaryWriter.
  2121. * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} message
  2122. * @param {!jspb.BinaryWriter} writer
  2123. * @suppress {unusedLocalVariables} f is only used for nested messages
  2124. */
  2125. proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter = function(message, writer) {
  2126. var f = undefined;
  2127. f = /** @type {number} */ (jspb.Message.getField(message, 1));
  2128. if (f != null) {
  2129. writer.writeInt32(
  2130. 1,
  2131. f
  2132. );
  2133. }
  2134. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  2135. if (f != null) {
  2136. writer.writeInt32(
  2137. 2,
  2138. f
  2139. );
  2140. }
  2141. };
  2142. /**
  2143. * optional int32 start = 1;
  2144. * @return {number}
  2145. */
  2146. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart = function() {
  2147. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2148. };
  2149. /**
  2150. * @param {number} value
  2151. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this
  2152. */
  2153. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart = function(value) {
  2154. return jspb.Message.setField(this, 1, value);
  2155. };
  2156. /**
  2157. * Clears the field making it undefined.
  2158. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this
  2159. */
  2160. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart = function() {
  2161. return jspb.Message.setField(this, 1, undefined);
  2162. };
  2163. /**
  2164. * Returns whether this field is set.
  2165. * @return {boolean}
  2166. */
  2167. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart = function() {
  2168. return jspb.Message.getField(this, 1) != null;
  2169. };
  2170. /**
  2171. * optional int32 end = 2;
  2172. * @return {number}
  2173. */
  2174. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd = function() {
  2175. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2176. };
  2177. /**
  2178. * @param {number} value
  2179. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this
  2180. */
  2181. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd = function(value) {
  2182. return jspb.Message.setField(this, 2, value);
  2183. };
  2184. /**
  2185. * Clears the field making it undefined.
  2186. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this
  2187. */
  2188. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd = function() {
  2189. return jspb.Message.setField(this, 2, undefined);
  2190. };
  2191. /**
  2192. * Returns whether this field is set.
  2193. * @return {boolean}
  2194. */
  2195. proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd = function() {
  2196. return jspb.Message.getField(this, 2) != null;
  2197. };
  2198. /**
  2199. * optional string name = 1;
  2200. * @return {string}
  2201. */
  2202. proto.google.protobuf.DescriptorProto.prototype.getName = function() {
  2203. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2204. };
  2205. /**
  2206. * @param {string} value
  2207. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2208. */
  2209. proto.google.protobuf.DescriptorProto.prototype.setName = function(value) {
  2210. return jspb.Message.setField(this, 1, value);
  2211. };
  2212. /**
  2213. * Clears the field making it undefined.
  2214. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2215. */
  2216. proto.google.protobuf.DescriptorProto.prototype.clearName = function() {
  2217. return jspb.Message.setField(this, 1, undefined);
  2218. };
  2219. /**
  2220. * Returns whether this field is set.
  2221. * @return {boolean}
  2222. */
  2223. proto.google.protobuf.DescriptorProto.prototype.hasName = function() {
  2224. return jspb.Message.getField(this, 1) != null;
  2225. };
  2226. /**
  2227. * repeated FieldDescriptorProto field = 2;
  2228. * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>}
  2229. */
  2230. proto.google.protobuf.DescriptorProto.prototype.getFieldList = function() {
  2231. return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ (
  2232. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 2));
  2233. };
  2234. /**
  2235. * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value
  2236. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2237. */
  2238. proto.google.protobuf.DescriptorProto.prototype.setFieldList = function(value) {
  2239. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  2240. };
  2241. /**
  2242. * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value
  2243. * @param {number=} opt_index
  2244. * @return {!proto.google.protobuf.FieldDescriptorProto}
  2245. */
  2246. proto.google.protobuf.DescriptorProto.prototype.addField = function(opt_value, opt_index) {
  2247. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index);
  2248. };
  2249. /**
  2250. * Clears the list making it empty but non-null.
  2251. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2252. */
  2253. proto.google.protobuf.DescriptorProto.prototype.clearFieldList = function() {
  2254. return this.setFieldList([]);
  2255. };
  2256. /**
  2257. * repeated FieldDescriptorProto extension = 6;
  2258. * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>}
  2259. */
  2260. proto.google.protobuf.DescriptorProto.prototype.getExtensionList = function() {
  2261. return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ (
  2262. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 6));
  2263. };
  2264. /**
  2265. * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value
  2266. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2267. */
  2268. proto.google.protobuf.DescriptorProto.prototype.setExtensionList = function(value) {
  2269. return jspb.Message.setRepeatedWrapperField(this, 6, value);
  2270. };
  2271. /**
  2272. * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value
  2273. * @param {number=} opt_index
  2274. * @return {!proto.google.protobuf.FieldDescriptorProto}
  2275. */
  2276. proto.google.protobuf.DescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) {
  2277. return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index);
  2278. };
  2279. /**
  2280. * Clears the list making it empty but non-null.
  2281. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2282. */
  2283. proto.google.protobuf.DescriptorProto.prototype.clearExtensionList = function() {
  2284. return this.setExtensionList([]);
  2285. };
  2286. /**
  2287. * repeated DescriptorProto nested_type = 3;
  2288. * @return {!Array<!proto.google.protobuf.DescriptorProto>}
  2289. */
  2290. proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList = function() {
  2291. return /** @type{!Array<!proto.google.protobuf.DescriptorProto>} */ (
  2292. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 3));
  2293. };
  2294. /**
  2295. * @param {!Array<!proto.google.protobuf.DescriptorProto>} value
  2296. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2297. */
  2298. proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList = function(value) {
  2299. return jspb.Message.setRepeatedWrapperField(this, 3, value);
  2300. };
  2301. /**
  2302. * @param {!proto.google.protobuf.DescriptorProto=} opt_value
  2303. * @param {number=} opt_index
  2304. * @return {!proto.google.protobuf.DescriptorProto}
  2305. */
  2306. proto.google.protobuf.DescriptorProto.prototype.addNestedType = function(opt_value, opt_index) {
  2307. return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.DescriptorProto, opt_index);
  2308. };
  2309. /**
  2310. * Clears the list making it empty but non-null.
  2311. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2312. */
  2313. proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList = function() {
  2314. return this.setNestedTypeList([]);
  2315. };
  2316. /**
  2317. * repeated EnumDescriptorProto enum_type = 4;
  2318. * @return {!Array<!proto.google.protobuf.EnumDescriptorProto>}
  2319. */
  2320. proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList = function() {
  2321. return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto>} */ (
  2322. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 4));
  2323. };
  2324. /**
  2325. * @param {!Array<!proto.google.protobuf.EnumDescriptorProto>} value
  2326. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2327. */
  2328. proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList = function(value) {
  2329. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  2330. };
  2331. /**
  2332. * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value
  2333. * @param {number=} opt_index
  2334. * @return {!proto.google.protobuf.EnumDescriptorProto}
  2335. */
  2336. proto.google.protobuf.DescriptorProto.prototype.addEnumType = function(opt_value, opt_index) {
  2337. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index);
  2338. };
  2339. /**
  2340. * Clears the list making it empty but non-null.
  2341. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2342. */
  2343. proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList = function() {
  2344. return this.setEnumTypeList([]);
  2345. };
  2346. /**
  2347. * repeated ExtensionRange extension_range = 5;
  2348. * @return {!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>}
  2349. */
  2350. proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList = function() {
  2351. return /** @type{!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>} */ (
  2352. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ExtensionRange, 5));
  2353. };
  2354. /**
  2355. * @param {!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>} value
  2356. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2357. */
  2358. proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList = function(value) {
  2359. return jspb.Message.setRepeatedWrapperField(this, 5, value);
  2360. };
  2361. /**
  2362. * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange=} opt_value
  2363. * @param {number=} opt_index
  2364. * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange}
  2365. */
  2366. proto.google.protobuf.DescriptorProto.prototype.addExtensionRange = function(opt_value, opt_index) {
  2367. return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.DescriptorProto.ExtensionRange, opt_index);
  2368. };
  2369. /**
  2370. * Clears the list making it empty but non-null.
  2371. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2372. */
  2373. proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList = function() {
  2374. return this.setExtensionRangeList([]);
  2375. };
  2376. /**
  2377. * repeated OneofDescriptorProto oneof_decl = 8;
  2378. * @return {!Array<!proto.google.protobuf.OneofDescriptorProto>}
  2379. */
  2380. proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList = function() {
  2381. return /** @type{!Array<!proto.google.protobuf.OneofDescriptorProto>} */ (
  2382. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.OneofDescriptorProto, 8));
  2383. };
  2384. /**
  2385. * @param {!Array<!proto.google.protobuf.OneofDescriptorProto>} value
  2386. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2387. */
  2388. proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList = function(value) {
  2389. return jspb.Message.setRepeatedWrapperField(this, 8, value);
  2390. };
  2391. /**
  2392. * @param {!proto.google.protobuf.OneofDescriptorProto=} opt_value
  2393. * @param {number=} opt_index
  2394. * @return {!proto.google.protobuf.OneofDescriptorProto}
  2395. */
  2396. proto.google.protobuf.DescriptorProto.prototype.addOneofDecl = function(opt_value, opt_index) {
  2397. return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.protobuf.OneofDescriptorProto, opt_index);
  2398. };
  2399. /**
  2400. * Clears the list making it empty but non-null.
  2401. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2402. */
  2403. proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList = function() {
  2404. return this.setOneofDeclList([]);
  2405. };
  2406. /**
  2407. * optional MessageOptions options = 7;
  2408. * @return {?proto.google.protobuf.MessageOptions}
  2409. */
  2410. proto.google.protobuf.DescriptorProto.prototype.getOptions = function() {
  2411. return /** @type{?proto.google.protobuf.MessageOptions} */ (
  2412. jspb.Message.getWrapperField(this, proto.google.protobuf.MessageOptions, 7));
  2413. };
  2414. /**
  2415. * @param {?proto.google.protobuf.MessageOptions|undefined} value
  2416. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2417. */
  2418. proto.google.protobuf.DescriptorProto.prototype.setOptions = function(value) {
  2419. return jspb.Message.setWrapperField(this, 7, value);
  2420. };
  2421. /**
  2422. * Clears the message field making it undefined.
  2423. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2424. */
  2425. proto.google.protobuf.DescriptorProto.prototype.clearOptions = function() {
  2426. return this.setOptions(undefined);
  2427. };
  2428. /**
  2429. * Returns whether this field is set.
  2430. * @return {boolean}
  2431. */
  2432. proto.google.protobuf.DescriptorProto.prototype.hasOptions = function() {
  2433. return jspb.Message.getField(this, 7) != null;
  2434. };
  2435. /**
  2436. * repeated ReservedRange reserved_range = 9;
  2437. * @return {!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>}
  2438. */
  2439. proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList = function() {
  2440. return /** @type{!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>} */ (
  2441. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ReservedRange, 9));
  2442. };
  2443. /**
  2444. * @param {!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>} value
  2445. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2446. */
  2447. proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList = function(value) {
  2448. return jspb.Message.setRepeatedWrapperField(this, 9, value);
  2449. };
  2450. /**
  2451. * @param {!proto.google.protobuf.DescriptorProto.ReservedRange=} opt_value
  2452. * @param {number=} opt_index
  2453. * @return {!proto.google.protobuf.DescriptorProto.ReservedRange}
  2454. */
  2455. proto.google.protobuf.DescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) {
  2456. return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.google.protobuf.DescriptorProto.ReservedRange, opt_index);
  2457. };
  2458. /**
  2459. * Clears the list making it empty but non-null.
  2460. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2461. */
  2462. proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList = function() {
  2463. return this.setReservedRangeList([]);
  2464. };
  2465. /**
  2466. * repeated string reserved_name = 10;
  2467. * @return {!Array<string>}
  2468. */
  2469. proto.google.protobuf.DescriptorProto.prototype.getReservedNameList = function() {
  2470. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
  2471. };
  2472. /**
  2473. * @param {!Array<string>} value
  2474. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2475. */
  2476. proto.google.protobuf.DescriptorProto.prototype.setReservedNameList = function(value) {
  2477. return jspb.Message.setField(this, 10, value || []);
  2478. };
  2479. /**
  2480. * @param {string} value
  2481. * @param {number=} opt_index
  2482. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2483. */
  2484. proto.google.protobuf.DescriptorProto.prototype.addReservedName = function(value, opt_index) {
  2485. return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
  2486. };
  2487. /**
  2488. * Clears the list making it empty but non-null.
  2489. * @return {!proto.google.protobuf.DescriptorProto} returns this
  2490. */
  2491. proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList = function() {
  2492. return this.setReservedNameList([]);
  2493. };
  2494. /**
  2495. * List of repeated fields within this message type.
  2496. * @private {!Array<number>}
  2497. * @const
  2498. */
  2499. proto.google.protobuf.ExtensionRangeOptions.repeatedFields_ = [999];
  2500. if (jspb.Message.GENERATE_TO_OBJECT) {
  2501. /**
  2502. * Creates an object representation of this proto.
  2503. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2504. * Optional fields that are not set will be set to undefined.
  2505. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2506. * For the list of reserved names please see:
  2507. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2508. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2509. * JSPB instance for transitional soy proto support:
  2510. * http://goto/soy-param-migration
  2511. * @return {!Object}
  2512. */
  2513. proto.google.protobuf.ExtensionRangeOptions.prototype.toObject = function(opt_includeInstance) {
  2514. return proto.google.protobuf.ExtensionRangeOptions.toObject(opt_includeInstance, this);
  2515. };
  2516. /**
  2517. * Static version of the {@see toObject} method.
  2518. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2519. * the JSPB instance for transitional soy proto support:
  2520. * http://goto/soy-param-migration
  2521. * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The msg instance to transform.
  2522. * @return {!Object}
  2523. * @suppress {unusedLocalVariables} f is only used for nested messages
  2524. */
  2525. proto.google.protobuf.ExtensionRangeOptions.toObject = function(includeInstance, msg) {
  2526. var f, obj = {
  2527. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  2528. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  2529. };
  2530. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  2531. proto.google.protobuf.ExtensionRangeOptions.extensions, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,
  2532. includeInstance);
  2533. if (includeInstance) {
  2534. obj.$jspbMessageInstance = msg;
  2535. }
  2536. return obj;
  2537. };
  2538. }
  2539. /**
  2540. * Deserializes binary data (in protobuf wire format).
  2541. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2542. * @return {!proto.google.protobuf.ExtensionRangeOptions}
  2543. */
  2544. proto.google.protobuf.ExtensionRangeOptions.deserializeBinary = function(bytes) {
  2545. var reader = new jspb.BinaryReader(bytes);
  2546. var msg = new proto.google.protobuf.ExtensionRangeOptions;
  2547. return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(msg, reader);
  2548. };
  2549. /**
  2550. * Deserializes binary data (in protobuf wire format) from the
  2551. * given reader into the given message object.
  2552. * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The message object to deserialize into.
  2553. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2554. * @return {!proto.google.protobuf.ExtensionRangeOptions}
  2555. */
  2556. proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader = function(msg, reader) {
  2557. while (reader.nextField()) {
  2558. if (reader.isEndGroup()) {
  2559. break;
  2560. }
  2561. var field = reader.getFieldNumber();
  2562. switch (field) {
  2563. case 999:
  2564. var value = new proto.google.protobuf.UninterpretedOption;
  2565. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  2566. msg.addUninterpretedOption(value);
  2567. break;
  2568. default:
  2569. jspb.Message.readBinaryExtension(msg, reader,
  2570. proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,
  2571. proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,
  2572. proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);
  2573. break;
  2574. }
  2575. }
  2576. return msg;
  2577. };
  2578. /**
  2579. * Serializes the message to binary data (in protobuf wire format).
  2580. * @return {!Uint8Array}
  2581. */
  2582. proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary = function() {
  2583. var writer = new jspb.BinaryWriter();
  2584. proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this, writer);
  2585. return writer.getResultBuffer();
  2586. };
  2587. /**
  2588. * Serializes the given message to binary data (in protobuf wire
  2589. * format), writing to the given BinaryWriter.
  2590. * @param {!proto.google.protobuf.ExtensionRangeOptions} message
  2591. * @param {!jspb.BinaryWriter} writer
  2592. * @suppress {unusedLocalVariables} f is only used for nested messages
  2593. */
  2594. proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter = function(message, writer) {
  2595. var f = undefined;
  2596. f = message.getUninterpretedOptionList();
  2597. if (f.length > 0) {
  2598. writer.writeRepeatedMessage(
  2599. 999,
  2600. f,
  2601. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  2602. );
  2603. }
  2604. jspb.Message.serializeBinaryExtensions(message, writer,
  2605. proto.google.protobuf.ExtensionRangeOptions.extensionsBinary, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension);
  2606. };
  2607. /**
  2608. * repeated UninterpretedOption uninterpreted_option = 999;
  2609. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  2610. */
  2611. proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList = function() {
  2612. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  2613. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  2614. };
  2615. /**
  2616. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  2617. * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this
  2618. */
  2619. proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList = function(value) {
  2620. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  2621. };
  2622. /**
  2623. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  2624. * @param {number=} opt_index
  2625. * @return {!proto.google.protobuf.UninterpretedOption}
  2626. */
  2627. proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  2628. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  2629. };
  2630. /**
  2631. * Clears the list making it empty but non-null.
  2632. * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this
  2633. */
  2634. proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList = function() {
  2635. return this.setUninterpretedOptionList([]);
  2636. };
  2637. if (jspb.Message.GENERATE_TO_OBJECT) {
  2638. /**
  2639. * Creates an object representation of this proto.
  2640. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2641. * Optional fields that are not set will be set to undefined.
  2642. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2643. * For the list of reserved names please see:
  2644. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2645. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2646. * JSPB instance for transitional soy proto support:
  2647. * http://goto/soy-param-migration
  2648. * @return {!Object}
  2649. */
  2650. proto.google.protobuf.FieldDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  2651. return proto.google.protobuf.FieldDescriptorProto.toObject(opt_includeInstance, this);
  2652. };
  2653. /**
  2654. * Static version of the {@see toObject} method.
  2655. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2656. * the JSPB instance for transitional soy proto support:
  2657. * http://goto/soy-param-migration
  2658. * @param {!proto.google.protobuf.FieldDescriptorProto} msg The msg instance to transform.
  2659. * @return {!Object}
  2660. * @suppress {unusedLocalVariables} f is only used for nested messages
  2661. */
  2662. proto.google.protobuf.FieldDescriptorProto.toObject = function(includeInstance, msg) {
  2663. var f, obj = {
  2664. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  2665. number: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  2666. label: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  2667. type: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
  2668. typeName: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
  2669. extendee: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  2670. defaultValue: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
  2671. oneofIndex: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
  2672. jsonName: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f,
  2673. options: (f = msg.getOptions()) && proto.google.protobuf.FieldOptions.toObject(includeInstance, f),
  2674. proto3Optional: (f = jspb.Message.getBooleanField(msg, 17)) == null ? undefined : f
  2675. };
  2676. if (includeInstance) {
  2677. obj.$jspbMessageInstance = msg;
  2678. }
  2679. return obj;
  2680. };
  2681. }
  2682. /**
  2683. * Deserializes binary data (in protobuf wire format).
  2684. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2685. * @return {!proto.google.protobuf.FieldDescriptorProto}
  2686. */
  2687. proto.google.protobuf.FieldDescriptorProto.deserializeBinary = function(bytes) {
  2688. var reader = new jspb.BinaryReader(bytes);
  2689. var msg = new proto.google.protobuf.FieldDescriptorProto;
  2690. return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(msg, reader);
  2691. };
  2692. /**
  2693. * Deserializes binary data (in protobuf wire format) from the
  2694. * given reader into the given message object.
  2695. * @param {!proto.google.protobuf.FieldDescriptorProto} msg The message object to deserialize into.
  2696. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2697. * @return {!proto.google.protobuf.FieldDescriptorProto}
  2698. */
  2699. proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  2700. while (reader.nextField()) {
  2701. if (reader.isEndGroup()) {
  2702. break;
  2703. }
  2704. var field = reader.getFieldNumber();
  2705. switch (field) {
  2706. case 1:
  2707. var value = /** @type {string} */ (reader.readString());
  2708. msg.setName(value);
  2709. break;
  2710. case 3:
  2711. var value = /** @type {number} */ (reader.readInt32());
  2712. msg.setNumber(value);
  2713. break;
  2714. case 4:
  2715. var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (reader.readEnum());
  2716. msg.setLabel(value);
  2717. break;
  2718. case 5:
  2719. var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (reader.readEnum());
  2720. msg.setType(value);
  2721. break;
  2722. case 6:
  2723. var value = /** @type {string} */ (reader.readString());
  2724. msg.setTypeName(value);
  2725. break;
  2726. case 2:
  2727. var value = /** @type {string} */ (reader.readString());
  2728. msg.setExtendee(value);
  2729. break;
  2730. case 7:
  2731. var value = /** @type {string} */ (reader.readString());
  2732. msg.setDefaultValue(value);
  2733. break;
  2734. case 9:
  2735. var value = /** @type {number} */ (reader.readInt32());
  2736. msg.setOneofIndex(value);
  2737. break;
  2738. case 10:
  2739. var value = /** @type {string} */ (reader.readString());
  2740. msg.setJsonName(value);
  2741. break;
  2742. case 8:
  2743. var value = new proto.google.protobuf.FieldOptions;
  2744. reader.readMessage(value,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader);
  2745. msg.setOptions(value);
  2746. break;
  2747. case 17:
  2748. var value = /** @type {boolean} */ (reader.readBool());
  2749. msg.setProto3Optional(value);
  2750. break;
  2751. default:
  2752. reader.skipField();
  2753. break;
  2754. }
  2755. }
  2756. return msg;
  2757. };
  2758. /**
  2759. * Serializes the message to binary data (in protobuf wire format).
  2760. * @return {!Uint8Array}
  2761. */
  2762. proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary = function() {
  2763. var writer = new jspb.BinaryWriter();
  2764. proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this, writer);
  2765. return writer.getResultBuffer();
  2766. };
  2767. /**
  2768. * Serializes the given message to binary data (in protobuf wire
  2769. * format), writing to the given BinaryWriter.
  2770. * @param {!proto.google.protobuf.FieldDescriptorProto} message
  2771. * @param {!jspb.BinaryWriter} writer
  2772. * @suppress {unusedLocalVariables} f is only used for nested messages
  2773. */
  2774. proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  2775. var f = undefined;
  2776. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  2777. if (f != null) {
  2778. writer.writeString(
  2779. 1,
  2780. f
  2781. );
  2782. }
  2783. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  2784. if (f != null) {
  2785. writer.writeInt32(
  2786. 3,
  2787. f
  2788. );
  2789. }
  2790. f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getField(message, 4));
  2791. if (f != null) {
  2792. writer.writeEnum(
  2793. 4,
  2794. f
  2795. );
  2796. }
  2797. f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getField(message, 5));
  2798. if (f != null) {
  2799. writer.writeEnum(
  2800. 5,
  2801. f
  2802. );
  2803. }
  2804. f = /** @type {string} */ (jspb.Message.getField(message, 6));
  2805. if (f != null) {
  2806. writer.writeString(
  2807. 6,
  2808. f
  2809. );
  2810. }
  2811. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  2812. if (f != null) {
  2813. writer.writeString(
  2814. 2,
  2815. f
  2816. );
  2817. }
  2818. f = /** @type {string} */ (jspb.Message.getField(message, 7));
  2819. if (f != null) {
  2820. writer.writeString(
  2821. 7,
  2822. f
  2823. );
  2824. }
  2825. f = /** @type {number} */ (jspb.Message.getField(message, 9));
  2826. if (f != null) {
  2827. writer.writeInt32(
  2828. 9,
  2829. f
  2830. );
  2831. }
  2832. f = /** @type {string} */ (jspb.Message.getField(message, 10));
  2833. if (f != null) {
  2834. writer.writeString(
  2835. 10,
  2836. f
  2837. );
  2838. }
  2839. f = message.getOptions();
  2840. if (f != null) {
  2841. writer.writeMessage(
  2842. 8,
  2843. f,
  2844. proto.google.protobuf.FieldOptions.serializeBinaryToWriter
  2845. );
  2846. }
  2847. f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
  2848. if (f != null) {
  2849. writer.writeBool(
  2850. 17,
  2851. f
  2852. );
  2853. }
  2854. };
  2855. /**
  2856. * @enum {number}
  2857. */
  2858. proto.google.protobuf.FieldDescriptorProto.Type = {
  2859. TYPE_DOUBLE: 1,
  2860. TYPE_FLOAT: 2,
  2861. TYPE_INT64: 3,
  2862. TYPE_UINT64: 4,
  2863. TYPE_INT32: 5,
  2864. TYPE_FIXED64: 6,
  2865. TYPE_FIXED32: 7,
  2866. TYPE_BOOL: 8,
  2867. TYPE_STRING: 9,
  2868. TYPE_GROUP: 10,
  2869. TYPE_MESSAGE: 11,
  2870. TYPE_BYTES: 12,
  2871. TYPE_UINT32: 13,
  2872. TYPE_ENUM: 14,
  2873. TYPE_SFIXED32: 15,
  2874. TYPE_SFIXED64: 16,
  2875. TYPE_SINT32: 17,
  2876. TYPE_SINT64: 18
  2877. };
  2878. /**
  2879. * @enum {number}
  2880. */
  2881. proto.google.protobuf.FieldDescriptorProto.Label = {
  2882. LABEL_OPTIONAL: 1,
  2883. LABEL_REQUIRED: 2,
  2884. LABEL_REPEATED: 3
  2885. };
  2886. /**
  2887. * optional string name = 1;
  2888. * @return {string}
  2889. */
  2890. proto.google.protobuf.FieldDescriptorProto.prototype.getName = function() {
  2891. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2892. };
  2893. /**
  2894. * @param {string} value
  2895. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2896. */
  2897. proto.google.protobuf.FieldDescriptorProto.prototype.setName = function(value) {
  2898. return jspb.Message.setField(this, 1, value);
  2899. };
  2900. /**
  2901. * Clears the field making it undefined.
  2902. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2903. */
  2904. proto.google.protobuf.FieldDescriptorProto.prototype.clearName = function() {
  2905. return jspb.Message.setField(this, 1, undefined);
  2906. };
  2907. /**
  2908. * Returns whether this field is set.
  2909. * @return {boolean}
  2910. */
  2911. proto.google.protobuf.FieldDescriptorProto.prototype.hasName = function() {
  2912. return jspb.Message.getField(this, 1) != null;
  2913. };
  2914. /**
  2915. * optional int32 number = 3;
  2916. * @return {number}
  2917. */
  2918. proto.google.protobuf.FieldDescriptorProto.prototype.getNumber = function() {
  2919. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2920. };
  2921. /**
  2922. * @param {number} value
  2923. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2924. */
  2925. proto.google.protobuf.FieldDescriptorProto.prototype.setNumber = function(value) {
  2926. return jspb.Message.setField(this, 3, value);
  2927. };
  2928. /**
  2929. * Clears the field making it undefined.
  2930. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2931. */
  2932. proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber = function() {
  2933. return jspb.Message.setField(this, 3, undefined);
  2934. };
  2935. /**
  2936. * Returns whether this field is set.
  2937. * @return {boolean}
  2938. */
  2939. proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber = function() {
  2940. return jspb.Message.getField(this, 3) != null;
  2941. };
  2942. /**
  2943. * optional Label label = 4;
  2944. * @return {!proto.google.protobuf.FieldDescriptorProto.Label}
  2945. */
  2946. proto.google.protobuf.FieldDescriptorProto.prototype.getLabel = function() {
  2947. return /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getFieldWithDefault(this, 4, 1));
  2948. };
  2949. /**
  2950. * @param {!proto.google.protobuf.FieldDescriptorProto.Label} value
  2951. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2952. */
  2953. proto.google.protobuf.FieldDescriptorProto.prototype.setLabel = function(value) {
  2954. return jspb.Message.setField(this, 4, value);
  2955. };
  2956. /**
  2957. * Clears the field making it undefined.
  2958. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2959. */
  2960. proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel = function() {
  2961. return jspb.Message.setField(this, 4, undefined);
  2962. };
  2963. /**
  2964. * Returns whether this field is set.
  2965. * @return {boolean}
  2966. */
  2967. proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel = function() {
  2968. return jspb.Message.getField(this, 4) != null;
  2969. };
  2970. /**
  2971. * optional Type type = 5;
  2972. * @return {!proto.google.protobuf.FieldDescriptorProto.Type}
  2973. */
  2974. proto.google.protobuf.FieldDescriptorProto.prototype.getType = function() {
  2975. return /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getFieldWithDefault(this, 5, 1));
  2976. };
  2977. /**
  2978. * @param {!proto.google.protobuf.FieldDescriptorProto.Type} value
  2979. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2980. */
  2981. proto.google.protobuf.FieldDescriptorProto.prototype.setType = function(value) {
  2982. return jspb.Message.setField(this, 5, value);
  2983. };
  2984. /**
  2985. * Clears the field making it undefined.
  2986. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  2987. */
  2988. proto.google.protobuf.FieldDescriptorProto.prototype.clearType = function() {
  2989. return jspb.Message.setField(this, 5, undefined);
  2990. };
  2991. /**
  2992. * Returns whether this field is set.
  2993. * @return {boolean}
  2994. */
  2995. proto.google.protobuf.FieldDescriptorProto.prototype.hasType = function() {
  2996. return jspb.Message.getField(this, 5) != null;
  2997. };
  2998. /**
  2999. * optional string type_name = 6;
  3000. * @return {string}
  3001. */
  3002. proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName = function() {
  3003. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  3004. };
  3005. /**
  3006. * @param {string} value
  3007. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3008. */
  3009. proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName = function(value) {
  3010. return jspb.Message.setField(this, 6, value);
  3011. };
  3012. /**
  3013. * Clears the field making it undefined.
  3014. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3015. */
  3016. proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName = function() {
  3017. return jspb.Message.setField(this, 6, undefined);
  3018. };
  3019. /**
  3020. * Returns whether this field is set.
  3021. * @return {boolean}
  3022. */
  3023. proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName = function() {
  3024. return jspb.Message.getField(this, 6) != null;
  3025. };
  3026. /**
  3027. * optional string extendee = 2;
  3028. * @return {string}
  3029. */
  3030. proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee = function() {
  3031. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3032. };
  3033. /**
  3034. * @param {string} value
  3035. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3036. */
  3037. proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee = function(value) {
  3038. return jspb.Message.setField(this, 2, value);
  3039. };
  3040. /**
  3041. * Clears the field making it undefined.
  3042. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3043. */
  3044. proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee = function() {
  3045. return jspb.Message.setField(this, 2, undefined);
  3046. };
  3047. /**
  3048. * Returns whether this field is set.
  3049. * @return {boolean}
  3050. */
  3051. proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee = function() {
  3052. return jspb.Message.getField(this, 2) != null;
  3053. };
  3054. /**
  3055. * optional string default_value = 7;
  3056. * @return {string}
  3057. */
  3058. proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue = function() {
  3059. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  3060. };
  3061. /**
  3062. * @param {string} value
  3063. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3064. */
  3065. proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue = function(value) {
  3066. return jspb.Message.setField(this, 7, value);
  3067. };
  3068. /**
  3069. * Clears the field making it undefined.
  3070. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3071. */
  3072. proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue = function() {
  3073. return jspb.Message.setField(this, 7, undefined);
  3074. };
  3075. /**
  3076. * Returns whether this field is set.
  3077. * @return {boolean}
  3078. */
  3079. proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue = function() {
  3080. return jspb.Message.getField(this, 7) != null;
  3081. };
  3082. /**
  3083. * optional int32 oneof_index = 9;
  3084. * @return {number}
  3085. */
  3086. proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex = function() {
  3087. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  3088. };
  3089. /**
  3090. * @param {number} value
  3091. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3092. */
  3093. proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex = function(value) {
  3094. return jspb.Message.setField(this, 9, value);
  3095. };
  3096. /**
  3097. * Clears the field making it undefined.
  3098. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3099. */
  3100. proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex = function() {
  3101. return jspb.Message.setField(this, 9, undefined);
  3102. };
  3103. /**
  3104. * Returns whether this field is set.
  3105. * @return {boolean}
  3106. */
  3107. proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex = function() {
  3108. return jspb.Message.getField(this, 9) != null;
  3109. };
  3110. /**
  3111. * optional string json_name = 10;
  3112. * @return {string}
  3113. */
  3114. proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName = function() {
  3115. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
  3116. };
  3117. /**
  3118. * @param {string} value
  3119. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3120. */
  3121. proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName = function(value) {
  3122. return jspb.Message.setField(this, 10, value);
  3123. };
  3124. /**
  3125. * Clears the field making it undefined.
  3126. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3127. */
  3128. proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName = function() {
  3129. return jspb.Message.setField(this, 10, undefined);
  3130. };
  3131. /**
  3132. * Returns whether this field is set.
  3133. * @return {boolean}
  3134. */
  3135. proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName = function() {
  3136. return jspb.Message.getField(this, 10) != null;
  3137. };
  3138. /**
  3139. * optional FieldOptions options = 8;
  3140. * @return {?proto.google.protobuf.FieldOptions}
  3141. */
  3142. proto.google.protobuf.FieldDescriptorProto.prototype.getOptions = function() {
  3143. return /** @type{?proto.google.protobuf.FieldOptions} */ (
  3144. jspb.Message.getWrapperField(this, proto.google.protobuf.FieldOptions, 8));
  3145. };
  3146. /**
  3147. * @param {?proto.google.protobuf.FieldOptions|undefined} value
  3148. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3149. */
  3150. proto.google.protobuf.FieldDescriptorProto.prototype.setOptions = function(value) {
  3151. return jspb.Message.setWrapperField(this, 8, value);
  3152. };
  3153. /**
  3154. * Clears the message field making it undefined.
  3155. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3156. */
  3157. proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions = function() {
  3158. return this.setOptions(undefined);
  3159. };
  3160. /**
  3161. * Returns whether this field is set.
  3162. * @return {boolean}
  3163. */
  3164. proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions = function() {
  3165. return jspb.Message.getField(this, 8) != null;
  3166. };
  3167. /**
  3168. * optional bool proto3_optional = 17;
  3169. * @return {boolean}
  3170. */
  3171. proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional = function() {
  3172. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
  3173. };
  3174. /**
  3175. * @param {boolean} value
  3176. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3177. */
  3178. proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional = function(value) {
  3179. return jspb.Message.setField(this, 17, value);
  3180. };
  3181. /**
  3182. * Clears the field making it undefined.
  3183. * @return {!proto.google.protobuf.FieldDescriptorProto} returns this
  3184. */
  3185. proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional = function() {
  3186. return jspb.Message.setField(this, 17, undefined);
  3187. };
  3188. /**
  3189. * Returns whether this field is set.
  3190. * @return {boolean}
  3191. */
  3192. proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional = function() {
  3193. return jspb.Message.getField(this, 17) != null;
  3194. };
  3195. if (jspb.Message.GENERATE_TO_OBJECT) {
  3196. /**
  3197. * Creates an object representation of this proto.
  3198. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3199. * Optional fields that are not set will be set to undefined.
  3200. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3201. * For the list of reserved names please see:
  3202. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3203. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3204. * JSPB instance for transitional soy proto support:
  3205. * http://goto/soy-param-migration
  3206. * @return {!Object}
  3207. */
  3208. proto.google.protobuf.OneofDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  3209. return proto.google.protobuf.OneofDescriptorProto.toObject(opt_includeInstance, this);
  3210. };
  3211. /**
  3212. * Static version of the {@see toObject} method.
  3213. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3214. * the JSPB instance for transitional soy proto support:
  3215. * http://goto/soy-param-migration
  3216. * @param {!proto.google.protobuf.OneofDescriptorProto} msg The msg instance to transform.
  3217. * @return {!Object}
  3218. * @suppress {unusedLocalVariables} f is only used for nested messages
  3219. */
  3220. proto.google.protobuf.OneofDescriptorProto.toObject = function(includeInstance, msg) {
  3221. var f, obj = {
  3222. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  3223. options: (f = msg.getOptions()) && proto.google.protobuf.OneofOptions.toObject(includeInstance, f)
  3224. };
  3225. if (includeInstance) {
  3226. obj.$jspbMessageInstance = msg;
  3227. }
  3228. return obj;
  3229. };
  3230. }
  3231. /**
  3232. * Deserializes binary data (in protobuf wire format).
  3233. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3234. * @return {!proto.google.protobuf.OneofDescriptorProto}
  3235. */
  3236. proto.google.protobuf.OneofDescriptorProto.deserializeBinary = function(bytes) {
  3237. var reader = new jspb.BinaryReader(bytes);
  3238. var msg = new proto.google.protobuf.OneofDescriptorProto;
  3239. return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(msg, reader);
  3240. };
  3241. /**
  3242. * Deserializes binary data (in protobuf wire format) from the
  3243. * given reader into the given message object.
  3244. * @param {!proto.google.protobuf.OneofDescriptorProto} msg The message object to deserialize into.
  3245. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3246. * @return {!proto.google.protobuf.OneofDescriptorProto}
  3247. */
  3248. proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  3249. while (reader.nextField()) {
  3250. if (reader.isEndGroup()) {
  3251. break;
  3252. }
  3253. var field = reader.getFieldNumber();
  3254. switch (field) {
  3255. case 1:
  3256. var value = /** @type {string} */ (reader.readString());
  3257. msg.setName(value);
  3258. break;
  3259. case 2:
  3260. var value = new proto.google.protobuf.OneofOptions;
  3261. reader.readMessage(value,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader);
  3262. msg.setOptions(value);
  3263. break;
  3264. default:
  3265. reader.skipField();
  3266. break;
  3267. }
  3268. }
  3269. return msg;
  3270. };
  3271. /**
  3272. * Serializes the message to binary data (in protobuf wire format).
  3273. * @return {!Uint8Array}
  3274. */
  3275. proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary = function() {
  3276. var writer = new jspb.BinaryWriter();
  3277. proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this, writer);
  3278. return writer.getResultBuffer();
  3279. };
  3280. /**
  3281. * Serializes the given message to binary data (in protobuf wire
  3282. * format), writing to the given BinaryWriter.
  3283. * @param {!proto.google.protobuf.OneofDescriptorProto} message
  3284. * @param {!jspb.BinaryWriter} writer
  3285. * @suppress {unusedLocalVariables} f is only used for nested messages
  3286. */
  3287. proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  3288. var f = undefined;
  3289. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  3290. if (f != null) {
  3291. writer.writeString(
  3292. 1,
  3293. f
  3294. );
  3295. }
  3296. f = message.getOptions();
  3297. if (f != null) {
  3298. writer.writeMessage(
  3299. 2,
  3300. f,
  3301. proto.google.protobuf.OneofOptions.serializeBinaryToWriter
  3302. );
  3303. }
  3304. };
  3305. /**
  3306. * optional string name = 1;
  3307. * @return {string}
  3308. */
  3309. proto.google.protobuf.OneofDescriptorProto.prototype.getName = function() {
  3310. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3311. };
  3312. /**
  3313. * @param {string} value
  3314. * @return {!proto.google.protobuf.OneofDescriptorProto} returns this
  3315. */
  3316. proto.google.protobuf.OneofDescriptorProto.prototype.setName = function(value) {
  3317. return jspb.Message.setField(this, 1, value);
  3318. };
  3319. /**
  3320. * Clears the field making it undefined.
  3321. * @return {!proto.google.protobuf.OneofDescriptorProto} returns this
  3322. */
  3323. proto.google.protobuf.OneofDescriptorProto.prototype.clearName = function() {
  3324. return jspb.Message.setField(this, 1, undefined);
  3325. };
  3326. /**
  3327. * Returns whether this field is set.
  3328. * @return {boolean}
  3329. */
  3330. proto.google.protobuf.OneofDescriptorProto.prototype.hasName = function() {
  3331. return jspb.Message.getField(this, 1) != null;
  3332. };
  3333. /**
  3334. * optional OneofOptions options = 2;
  3335. * @return {?proto.google.protobuf.OneofOptions}
  3336. */
  3337. proto.google.protobuf.OneofDescriptorProto.prototype.getOptions = function() {
  3338. return /** @type{?proto.google.protobuf.OneofOptions} */ (
  3339. jspb.Message.getWrapperField(this, proto.google.protobuf.OneofOptions, 2));
  3340. };
  3341. /**
  3342. * @param {?proto.google.protobuf.OneofOptions|undefined} value
  3343. * @return {!proto.google.protobuf.OneofDescriptorProto} returns this
  3344. */
  3345. proto.google.protobuf.OneofDescriptorProto.prototype.setOptions = function(value) {
  3346. return jspb.Message.setWrapperField(this, 2, value);
  3347. };
  3348. /**
  3349. * Clears the message field making it undefined.
  3350. * @return {!proto.google.protobuf.OneofDescriptorProto} returns this
  3351. */
  3352. proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions = function() {
  3353. return this.setOptions(undefined);
  3354. };
  3355. /**
  3356. * Returns whether this field is set.
  3357. * @return {boolean}
  3358. */
  3359. proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions = function() {
  3360. return jspb.Message.getField(this, 2) != null;
  3361. };
  3362. /**
  3363. * List of repeated fields within this message type.
  3364. * @private {!Array<number>}
  3365. * @const
  3366. */
  3367. proto.google.protobuf.EnumDescriptorProto.repeatedFields_ = [2,4,5];
  3368. if (jspb.Message.GENERATE_TO_OBJECT) {
  3369. /**
  3370. * Creates an object representation of this proto.
  3371. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3372. * Optional fields that are not set will be set to undefined.
  3373. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3374. * For the list of reserved names please see:
  3375. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3376. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3377. * JSPB instance for transitional soy proto support:
  3378. * http://goto/soy-param-migration
  3379. * @return {!Object}
  3380. */
  3381. proto.google.protobuf.EnumDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  3382. return proto.google.protobuf.EnumDescriptorProto.toObject(opt_includeInstance, this);
  3383. };
  3384. /**
  3385. * Static version of the {@see toObject} method.
  3386. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3387. * the JSPB instance for transitional soy proto support:
  3388. * http://goto/soy-param-migration
  3389. * @param {!proto.google.protobuf.EnumDescriptorProto} msg The msg instance to transform.
  3390. * @return {!Object}
  3391. * @suppress {unusedLocalVariables} f is only used for nested messages
  3392. */
  3393. proto.google.protobuf.EnumDescriptorProto.toObject = function(includeInstance, msg) {
  3394. var f, obj = {
  3395. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  3396. valueList: jspb.Message.toObjectList(msg.getValueList(),
  3397. proto.google.protobuf.EnumValueDescriptorProto.toObject, includeInstance),
  3398. options: (f = msg.getOptions()) && proto.google.protobuf.EnumOptions.toObject(includeInstance, f),
  3399. reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(),
  3400. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject, includeInstance),
  3401. reservedNameList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
  3402. };
  3403. if (includeInstance) {
  3404. obj.$jspbMessageInstance = msg;
  3405. }
  3406. return obj;
  3407. };
  3408. }
  3409. /**
  3410. * Deserializes binary data (in protobuf wire format).
  3411. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3412. * @return {!proto.google.protobuf.EnumDescriptorProto}
  3413. */
  3414. proto.google.protobuf.EnumDescriptorProto.deserializeBinary = function(bytes) {
  3415. var reader = new jspb.BinaryReader(bytes);
  3416. var msg = new proto.google.protobuf.EnumDescriptorProto;
  3417. return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(msg, reader);
  3418. };
  3419. /**
  3420. * Deserializes binary data (in protobuf wire format) from the
  3421. * given reader into the given message object.
  3422. * @param {!proto.google.protobuf.EnumDescriptorProto} msg The message object to deserialize into.
  3423. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3424. * @return {!proto.google.protobuf.EnumDescriptorProto}
  3425. */
  3426. proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  3427. while (reader.nextField()) {
  3428. if (reader.isEndGroup()) {
  3429. break;
  3430. }
  3431. var field = reader.getFieldNumber();
  3432. switch (field) {
  3433. case 1:
  3434. var value = /** @type {string} */ (reader.readString());
  3435. msg.setName(value);
  3436. break;
  3437. case 2:
  3438. var value = new proto.google.protobuf.EnumValueDescriptorProto;
  3439. reader.readMessage(value,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader);
  3440. msg.addValue(value);
  3441. break;
  3442. case 3:
  3443. var value = new proto.google.protobuf.EnumOptions;
  3444. reader.readMessage(value,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader);
  3445. msg.setOptions(value);
  3446. break;
  3447. case 4:
  3448. var value = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;
  3449. reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader);
  3450. msg.addReservedRange(value);
  3451. break;
  3452. case 5:
  3453. var value = /** @type {string} */ (reader.readString());
  3454. msg.addReservedName(value);
  3455. break;
  3456. default:
  3457. reader.skipField();
  3458. break;
  3459. }
  3460. }
  3461. return msg;
  3462. };
  3463. /**
  3464. * Serializes the message to binary data (in protobuf wire format).
  3465. * @return {!Uint8Array}
  3466. */
  3467. proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary = function() {
  3468. var writer = new jspb.BinaryWriter();
  3469. proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this, writer);
  3470. return writer.getResultBuffer();
  3471. };
  3472. /**
  3473. * Serializes the given message to binary data (in protobuf wire
  3474. * format), writing to the given BinaryWriter.
  3475. * @param {!proto.google.protobuf.EnumDescriptorProto} message
  3476. * @param {!jspb.BinaryWriter} writer
  3477. * @suppress {unusedLocalVariables} f is only used for nested messages
  3478. */
  3479. proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  3480. var f = undefined;
  3481. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  3482. if (f != null) {
  3483. writer.writeString(
  3484. 1,
  3485. f
  3486. );
  3487. }
  3488. f = message.getValueList();
  3489. if (f.length > 0) {
  3490. writer.writeRepeatedMessage(
  3491. 2,
  3492. f,
  3493. proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter
  3494. );
  3495. }
  3496. f = message.getOptions();
  3497. if (f != null) {
  3498. writer.writeMessage(
  3499. 3,
  3500. f,
  3501. proto.google.protobuf.EnumOptions.serializeBinaryToWriter
  3502. );
  3503. }
  3504. f = message.getReservedRangeList();
  3505. if (f.length > 0) {
  3506. writer.writeRepeatedMessage(
  3507. 4,
  3508. f,
  3509. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter
  3510. );
  3511. }
  3512. f = message.getReservedNameList();
  3513. if (f.length > 0) {
  3514. writer.writeRepeatedString(
  3515. 5,
  3516. f
  3517. );
  3518. }
  3519. };
  3520. if (jspb.Message.GENERATE_TO_OBJECT) {
  3521. /**
  3522. * Creates an object representation of this proto.
  3523. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3524. * Optional fields that are not set will be set to undefined.
  3525. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3526. * For the list of reserved names please see:
  3527. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3528. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3529. * JSPB instance for transitional soy proto support:
  3530. * http://goto/soy-param-migration
  3531. * @return {!Object}
  3532. */
  3533. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject = function(opt_includeInstance) {
  3534. return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(opt_includeInstance, this);
  3535. };
  3536. /**
  3537. * Static version of the {@see toObject} method.
  3538. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3539. * the JSPB instance for transitional soy proto support:
  3540. * http://goto/soy-param-migration
  3541. * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The msg instance to transform.
  3542. * @return {!Object}
  3543. * @suppress {unusedLocalVariables} f is only used for nested messages
  3544. */
  3545. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject = function(includeInstance, msg) {
  3546. var f, obj = {
  3547. start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  3548. end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
  3549. };
  3550. if (includeInstance) {
  3551. obj.$jspbMessageInstance = msg;
  3552. }
  3553. return obj;
  3554. };
  3555. }
  3556. /**
  3557. * Deserializes binary data (in protobuf wire format).
  3558. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3559. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange}
  3560. */
  3561. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary = function(bytes) {
  3562. var reader = new jspb.BinaryReader(bytes);
  3563. var msg = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;
  3564. return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(msg, reader);
  3565. };
  3566. /**
  3567. * Deserializes binary data (in protobuf wire format) from the
  3568. * given reader into the given message object.
  3569. * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The message object to deserialize into.
  3570. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3571. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange}
  3572. */
  3573. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader = function(msg, reader) {
  3574. while (reader.nextField()) {
  3575. if (reader.isEndGroup()) {
  3576. break;
  3577. }
  3578. var field = reader.getFieldNumber();
  3579. switch (field) {
  3580. case 1:
  3581. var value = /** @type {number} */ (reader.readInt32());
  3582. msg.setStart(value);
  3583. break;
  3584. case 2:
  3585. var value = /** @type {number} */ (reader.readInt32());
  3586. msg.setEnd(value);
  3587. break;
  3588. default:
  3589. reader.skipField();
  3590. break;
  3591. }
  3592. }
  3593. return msg;
  3594. };
  3595. /**
  3596. * Serializes the message to binary data (in protobuf wire format).
  3597. * @return {!Uint8Array}
  3598. */
  3599. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary = function() {
  3600. var writer = new jspb.BinaryWriter();
  3601. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this, writer);
  3602. return writer.getResultBuffer();
  3603. };
  3604. /**
  3605. * Serializes the given message to binary data (in protobuf wire
  3606. * format), writing to the given BinaryWriter.
  3607. * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} message
  3608. * @param {!jspb.BinaryWriter} writer
  3609. * @suppress {unusedLocalVariables} f is only used for nested messages
  3610. */
  3611. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter = function(message, writer) {
  3612. var f = undefined;
  3613. f = /** @type {number} */ (jspb.Message.getField(message, 1));
  3614. if (f != null) {
  3615. writer.writeInt32(
  3616. 1,
  3617. f
  3618. );
  3619. }
  3620. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  3621. if (f != null) {
  3622. writer.writeInt32(
  3623. 2,
  3624. f
  3625. );
  3626. }
  3627. };
  3628. /**
  3629. * optional int32 start = 1;
  3630. * @return {number}
  3631. */
  3632. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart = function() {
  3633. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3634. };
  3635. /**
  3636. * @param {number} value
  3637. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this
  3638. */
  3639. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart = function(value) {
  3640. return jspb.Message.setField(this, 1, value);
  3641. };
  3642. /**
  3643. * Clears the field making it undefined.
  3644. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this
  3645. */
  3646. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart = function() {
  3647. return jspb.Message.setField(this, 1, undefined);
  3648. };
  3649. /**
  3650. * Returns whether this field is set.
  3651. * @return {boolean}
  3652. */
  3653. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart = function() {
  3654. return jspb.Message.getField(this, 1) != null;
  3655. };
  3656. /**
  3657. * optional int32 end = 2;
  3658. * @return {number}
  3659. */
  3660. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd = function() {
  3661. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  3662. };
  3663. /**
  3664. * @param {number} value
  3665. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this
  3666. */
  3667. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd = function(value) {
  3668. return jspb.Message.setField(this, 2, value);
  3669. };
  3670. /**
  3671. * Clears the field making it undefined.
  3672. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this
  3673. */
  3674. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd = function() {
  3675. return jspb.Message.setField(this, 2, undefined);
  3676. };
  3677. /**
  3678. * Returns whether this field is set.
  3679. * @return {boolean}
  3680. */
  3681. proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd = function() {
  3682. return jspb.Message.getField(this, 2) != null;
  3683. };
  3684. /**
  3685. * optional string name = 1;
  3686. * @return {string}
  3687. */
  3688. proto.google.protobuf.EnumDescriptorProto.prototype.getName = function() {
  3689. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3690. };
  3691. /**
  3692. * @param {string} value
  3693. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3694. */
  3695. proto.google.protobuf.EnumDescriptorProto.prototype.setName = function(value) {
  3696. return jspb.Message.setField(this, 1, value);
  3697. };
  3698. /**
  3699. * Clears the field making it undefined.
  3700. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3701. */
  3702. proto.google.protobuf.EnumDescriptorProto.prototype.clearName = function() {
  3703. return jspb.Message.setField(this, 1, undefined);
  3704. };
  3705. /**
  3706. * Returns whether this field is set.
  3707. * @return {boolean}
  3708. */
  3709. proto.google.protobuf.EnumDescriptorProto.prototype.hasName = function() {
  3710. return jspb.Message.getField(this, 1) != null;
  3711. };
  3712. /**
  3713. * repeated EnumValueDescriptorProto value = 2;
  3714. * @return {!Array<!proto.google.protobuf.EnumValueDescriptorProto>}
  3715. */
  3716. proto.google.protobuf.EnumDescriptorProto.prototype.getValueList = function() {
  3717. return /** @type{!Array<!proto.google.protobuf.EnumValueDescriptorProto>} */ (
  3718. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumValueDescriptorProto, 2));
  3719. };
  3720. /**
  3721. * @param {!Array<!proto.google.protobuf.EnumValueDescriptorProto>} value
  3722. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3723. */
  3724. proto.google.protobuf.EnumDescriptorProto.prototype.setValueList = function(value) {
  3725. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  3726. };
  3727. /**
  3728. * @param {!proto.google.protobuf.EnumValueDescriptorProto=} opt_value
  3729. * @param {number=} opt_index
  3730. * @return {!proto.google.protobuf.EnumValueDescriptorProto}
  3731. */
  3732. proto.google.protobuf.EnumDescriptorProto.prototype.addValue = function(opt_value, opt_index) {
  3733. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.EnumValueDescriptorProto, opt_index);
  3734. };
  3735. /**
  3736. * Clears the list making it empty but non-null.
  3737. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3738. */
  3739. proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList = function() {
  3740. return this.setValueList([]);
  3741. };
  3742. /**
  3743. * optional EnumOptions options = 3;
  3744. * @return {?proto.google.protobuf.EnumOptions}
  3745. */
  3746. proto.google.protobuf.EnumDescriptorProto.prototype.getOptions = function() {
  3747. return /** @type{?proto.google.protobuf.EnumOptions} */ (
  3748. jspb.Message.getWrapperField(this, proto.google.protobuf.EnumOptions, 3));
  3749. };
  3750. /**
  3751. * @param {?proto.google.protobuf.EnumOptions|undefined} value
  3752. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3753. */
  3754. proto.google.protobuf.EnumDescriptorProto.prototype.setOptions = function(value) {
  3755. return jspb.Message.setWrapperField(this, 3, value);
  3756. };
  3757. /**
  3758. * Clears the message field making it undefined.
  3759. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3760. */
  3761. proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions = function() {
  3762. return this.setOptions(undefined);
  3763. };
  3764. /**
  3765. * Returns whether this field is set.
  3766. * @return {boolean}
  3767. */
  3768. proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions = function() {
  3769. return jspb.Message.getField(this, 3) != null;
  3770. };
  3771. /**
  3772. * repeated EnumReservedRange reserved_range = 4;
  3773. * @return {!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>}
  3774. */
  3775. proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList = function() {
  3776. return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>} */ (
  3777. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, 4));
  3778. };
  3779. /**
  3780. * @param {!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>} value
  3781. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3782. */
  3783. proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList = function(value) {
  3784. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  3785. };
  3786. /**
  3787. * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=} opt_value
  3788. * @param {number=} opt_index
  3789. * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange}
  3790. */
  3791. proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) {
  3792. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, opt_index);
  3793. };
  3794. /**
  3795. * Clears the list making it empty but non-null.
  3796. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3797. */
  3798. proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList = function() {
  3799. return this.setReservedRangeList([]);
  3800. };
  3801. /**
  3802. * repeated string reserved_name = 5;
  3803. * @return {!Array<string>}
  3804. */
  3805. proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList = function() {
  3806. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
  3807. };
  3808. /**
  3809. * @param {!Array<string>} value
  3810. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3811. */
  3812. proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList = function(value) {
  3813. return jspb.Message.setField(this, 5, value || []);
  3814. };
  3815. /**
  3816. * @param {string} value
  3817. * @param {number=} opt_index
  3818. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3819. */
  3820. proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName = function(value, opt_index) {
  3821. return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
  3822. };
  3823. /**
  3824. * Clears the list making it empty but non-null.
  3825. * @return {!proto.google.protobuf.EnumDescriptorProto} returns this
  3826. */
  3827. proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList = function() {
  3828. return this.setReservedNameList([]);
  3829. };
  3830. if (jspb.Message.GENERATE_TO_OBJECT) {
  3831. /**
  3832. * Creates an object representation of this proto.
  3833. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3834. * Optional fields that are not set will be set to undefined.
  3835. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3836. * For the list of reserved names please see:
  3837. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3838. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3839. * JSPB instance for transitional soy proto support:
  3840. * http://goto/soy-param-migration
  3841. * @return {!Object}
  3842. */
  3843. proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  3844. return proto.google.protobuf.EnumValueDescriptorProto.toObject(opt_includeInstance, this);
  3845. };
  3846. /**
  3847. * Static version of the {@see toObject} method.
  3848. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3849. * the JSPB instance for transitional soy proto support:
  3850. * http://goto/soy-param-migration
  3851. * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The msg instance to transform.
  3852. * @return {!Object}
  3853. * @suppress {unusedLocalVariables} f is only used for nested messages
  3854. */
  3855. proto.google.protobuf.EnumValueDescriptorProto.toObject = function(includeInstance, msg) {
  3856. var f, obj = {
  3857. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  3858. number: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  3859. options: (f = msg.getOptions()) && proto.google.protobuf.EnumValueOptions.toObject(includeInstance, f)
  3860. };
  3861. if (includeInstance) {
  3862. obj.$jspbMessageInstance = msg;
  3863. }
  3864. return obj;
  3865. };
  3866. }
  3867. /**
  3868. * Deserializes binary data (in protobuf wire format).
  3869. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3870. * @return {!proto.google.protobuf.EnumValueDescriptorProto}
  3871. */
  3872. proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary = function(bytes) {
  3873. var reader = new jspb.BinaryReader(bytes);
  3874. var msg = new proto.google.protobuf.EnumValueDescriptorProto;
  3875. return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(msg, reader);
  3876. };
  3877. /**
  3878. * Deserializes binary data (in protobuf wire format) from the
  3879. * given reader into the given message object.
  3880. * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The message object to deserialize into.
  3881. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3882. * @return {!proto.google.protobuf.EnumValueDescriptorProto}
  3883. */
  3884. proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  3885. while (reader.nextField()) {
  3886. if (reader.isEndGroup()) {
  3887. break;
  3888. }
  3889. var field = reader.getFieldNumber();
  3890. switch (field) {
  3891. case 1:
  3892. var value = /** @type {string} */ (reader.readString());
  3893. msg.setName(value);
  3894. break;
  3895. case 2:
  3896. var value = /** @type {number} */ (reader.readInt32());
  3897. msg.setNumber(value);
  3898. break;
  3899. case 3:
  3900. var value = new proto.google.protobuf.EnumValueOptions;
  3901. reader.readMessage(value,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader);
  3902. msg.setOptions(value);
  3903. break;
  3904. default:
  3905. reader.skipField();
  3906. break;
  3907. }
  3908. }
  3909. return msg;
  3910. };
  3911. /**
  3912. * Serializes the message to binary data (in protobuf wire format).
  3913. * @return {!Uint8Array}
  3914. */
  3915. proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary = function() {
  3916. var writer = new jspb.BinaryWriter();
  3917. proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this, writer);
  3918. return writer.getResultBuffer();
  3919. };
  3920. /**
  3921. * Serializes the given message to binary data (in protobuf wire
  3922. * format), writing to the given BinaryWriter.
  3923. * @param {!proto.google.protobuf.EnumValueDescriptorProto} message
  3924. * @param {!jspb.BinaryWriter} writer
  3925. * @suppress {unusedLocalVariables} f is only used for nested messages
  3926. */
  3927. proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  3928. var f = undefined;
  3929. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  3930. if (f != null) {
  3931. writer.writeString(
  3932. 1,
  3933. f
  3934. );
  3935. }
  3936. f = /** @type {number} */ (jspb.Message.getField(message, 2));
  3937. if (f != null) {
  3938. writer.writeInt32(
  3939. 2,
  3940. f
  3941. );
  3942. }
  3943. f = message.getOptions();
  3944. if (f != null) {
  3945. writer.writeMessage(
  3946. 3,
  3947. f,
  3948. proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter
  3949. );
  3950. }
  3951. };
  3952. /**
  3953. * optional string name = 1;
  3954. * @return {string}
  3955. */
  3956. proto.google.protobuf.EnumValueDescriptorProto.prototype.getName = function() {
  3957. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3958. };
  3959. /**
  3960. * @param {string} value
  3961. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  3962. */
  3963. proto.google.protobuf.EnumValueDescriptorProto.prototype.setName = function(value) {
  3964. return jspb.Message.setField(this, 1, value);
  3965. };
  3966. /**
  3967. * Clears the field making it undefined.
  3968. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  3969. */
  3970. proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName = function() {
  3971. return jspb.Message.setField(this, 1, undefined);
  3972. };
  3973. /**
  3974. * Returns whether this field is set.
  3975. * @return {boolean}
  3976. */
  3977. proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName = function() {
  3978. return jspb.Message.getField(this, 1) != null;
  3979. };
  3980. /**
  3981. * optional int32 number = 2;
  3982. * @return {number}
  3983. */
  3984. proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber = function() {
  3985. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  3986. };
  3987. /**
  3988. * @param {number} value
  3989. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  3990. */
  3991. proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber = function(value) {
  3992. return jspb.Message.setField(this, 2, value);
  3993. };
  3994. /**
  3995. * Clears the field making it undefined.
  3996. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  3997. */
  3998. proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber = function() {
  3999. return jspb.Message.setField(this, 2, undefined);
  4000. };
  4001. /**
  4002. * Returns whether this field is set.
  4003. * @return {boolean}
  4004. */
  4005. proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber = function() {
  4006. return jspb.Message.getField(this, 2) != null;
  4007. };
  4008. /**
  4009. * optional EnumValueOptions options = 3;
  4010. * @return {?proto.google.protobuf.EnumValueOptions}
  4011. */
  4012. proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions = function() {
  4013. return /** @type{?proto.google.protobuf.EnumValueOptions} */ (
  4014. jspb.Message.getWrapperField(this, proto.google.protobuf.EnumValueOptions, 3));
  4015. };
  4016. /**
  4017. * @param {?proto.google.protobuf.EnumValueOptions|undefined} value
  4018. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  4019. */
  4020. proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions = function(value) {
  4021. return jspb.Message.setWrapperField(this, 3, value);
  4022. };
  4023. /**
  4024. * Clears the message field making it undefined.
  4025. * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this
  4026. */
  4027. proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions = function() {
  4028. return this.setOptions(undefined);
  4029. };
  4030. /**
  4031. * Returns whether this field is set.
  4032. * @return {boolean}
  4033. */
  4034. proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions = function() {
  4035. return jspb.Message.getField(this, 3) != null;
  4036. };
  4037. /**
  4038. * List of repeated fields within this message type.
  4039. * @private {!Array<number>}
  4040. * @const
  4041. */
  4042. proto.google.protobuf.ServiceDescriptorProto.repeatedFields_ = [2];
  4043. if (jspb.Message.GENERATE_TO_OBJECT) {
  4044. /**
  4045. * Creates an object representation of this proto.
  4046. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4047. * Optional fields that are not set will be set to undefined.
  4048. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4049. * For the list of reserved names please see:
  4050. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4051. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4052. * JSPB instance for transitional soy proto support:
  4053. * http://goto/soy-param-migration
  4054. * @return {!Object}
  4055. */
  4056. proto.google.protobuf.ServiceDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  4057. return proto.google.protobuf.ServiceDescriptorProto.toObject(opt_includeInstance, this);
  4058. };
  4059. /**
  4060. * Static version of the {@see toObject} method.
  4061. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4062. * the JSPB instance for transitional soy proto support:
  4063. * http://goto/soy-param-migration
  4064. * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The msg instance to transform.
  4065. * @return {!Object}
  4066. * @suppress {unusedLocalVariables} f is only used for nested messages
  4067. */
  4068. proto.google.protobuf.ServiceDescriptorProto.toObject = function(includeInstance, msg) {
  4069. var f, obj = {
  4070. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  4071. methodList: jspb.Message.toObjectList(msg.getMethodList(),
  4072. proto.google.protobuf.MethodDescriptorProto.toObject, includeInstance),
  4073. options: (f = msg.getOptions()) && proto.google.protobuf.ServiceOptions.toObject(includeInstance, f)
  4074. };
  4075. if (includeInstance) {
  4076. obj.$jspbMessageInstance = msg;
  4077. }
  4078. return obj;
  4079. };
  4080. }
  4081. /**
  4082. * Deserializes binary data (in protobuf wire format).
  4083. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4084. * @return {!proto.google.protobuf.ServiceDescriptorProto}
  4085. */
  4086. proto.google.protobuf.ServiceDescriptorProto.deserializeBinary = function(bytes) {
  4087. var reader = new jspb.BinaryReader(bytes);
  4088. var msg = new proto.google.protobuf.ServiceDescriptorProto;
  4089. return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(msg, reader);
  4090. };
  4091. /**
  4092. * Deserializes binary data (in protobuf wire format) from the
  4093. * given reader into the given message object.
  4094. * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The message object to deserialize into.
  4095. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4096. * @return {!proto.google.protobuf.ServiceDescriptorProto}
  4097. */
  4098. proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  4099. while (reader.nextField()) {
  4100. if (reader.isEndGroup()) {
  4101. break;
  4102. }
  4103. var field = reader.getFieldNumber();
  4104. switch (field) {
  4105. case 1:
  4106. var value = /** @type {string} */ (reader.readString());
  4107. msg.setName(value);
  4108. break;
  4109. case 2:
  4110. var value = new proto.google.protobuf.MethodDescriptorProto;
  4111. reader.readMessage(value,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader);
  4112. msg.addMethod(value);
  4113. break;
  4114. case 3:
  4115. var value = new proto.google.protobuf.ServiceOptions;
  4116. reader.readMessage(value,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader);
  4117. msg.setOptions(value);
  4118. break;
  4119. default:
  4120. reader.skipField();
  4121. break;
  4122. }
  4123. }
  4124. return msg;
  4125. };
  4126. /**
  4127. * Serializes the message to binary data (in protobuf wire format).
  4128. * @return {!Uint8Array}
  4129. */
  4130. proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary = function() {
  4131. var writer = new jspb.BinaryWriter();
  4132. proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this, writer);
  4133. return writer.getResultBuffer();
  4134. };
  4135. /**
  4136. * Serializes the given message to binary data (in protobuf wire
  4137. * format), writing to the given BinaryWriter.
  4138. * @param {!proto.google.protobuf.ServiceDescriptorProto} message
  4139. * @param {!jspb.BinaryWriter} writer
  4140. * @suppress {unusedLocalVariables} f is only used for nested messages
  4141. */
  4142. proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  4143. var f = undefined;
  4144. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  4145. if (f != null) {
  4146. writer.writeString(
  4147. 1,
  4148. f
  4149. );
  4150. }
  4151. f = message.getMethodList();
  4152. if (f.length > 0) {
  4153. writer.writeRepeatedMessage(
  4154. 2,
  4155. f,
  4156. proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter
  4157. );
  4158. }
  4159. f = message.getOptions();
  4160. if (f != null) {
  4161. writer.writeMessage(
  4162. 3,
  4163. f,
  4164. proto.google.protobuf.ServiceOptions.serializeBinaryToWriter
  4165. );
  4166. }
  4167. };
  4168. /**
  4169. * optional string name = 1;
  4170. * @return {string}
  4171. */
  4172. proto.google.protobuf.ServiceDescriptorProto.prototype.getName = function() {
  4173. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  4174. };
  4175. /**
  4176. * @param {string} value
  4177. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4178. */
  4179. proto.google.protobuf.ServiceDescriptorProto.prototype.setName = function(value) {
  4180. return jspb.Message.setField(this, 1, value);
  4181. };
  4182. /**
  4183. * Clears the field making it undefined.
  4184. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4185. */
  4186. proto.google.protobuf.ServiceDescriptorProto.prototype.clearName = function() {
  4187. return jspb.Message.setField(this, 1, undefined);
  4188. };
  4189. /**
  4190. * Returns whether this field is set.
  4191. * @return {boolean}
  4192. */
  4193. proto.google.protobuf.ServiceDescriptorProto.prototype.hasName = function() {
  4194. return jspb.Message.getField(this, 1) != null;
  4195. };
  4196. /**
  4197. * repeated MethodDescriptorProto method = 2;
  4198. * @return {!Array<!proto.google.protobuf.MethodDescriptorProto>}
  4199. */
  4200. proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList = function() {
  4201. return /** @type{!Array<!proto.google.protobuf.MethodDescriptorProto>} */ (
  4202. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.MethodDescriptorProto, 2));
  4203. };
  4204. /**
  4205. * @param {!Array<!proto.google.protobuf.MethodDescriptorProto>} value
  4206. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4207. */
  4208. proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList = function(value) {
  4209. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  4210. };
  4211. /**
  4212. * @param {!proto.google.protobuf.MethodDescriptorProto=} opt_value
  4213. * @param {number=} opt_index
  4214. * @return {!proto.google.protobuf.MethodDescriptorProto}
  4215. */
  4216. proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod = function(opt_value, opt_index) {
  4217. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.MethodDescriptorProto, opt_index);
  4218. };
  4219. /**
  4220. * Clears the list making it empty but non-null.
  4221. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4222. */
  4223. proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList = function() {
  4224. return this.setMethodList([]);
  4225. };
  4226. /**
  4227. * optional ServiceOptions options = 3;
  4228. * @return {?proto.google.protobuf.ServiceOptions}
  4229. */
  4230. proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions = function() {
  4231. return /** @type{?proto.google.protobuf.ServiceOptions} */ (
  4232. jspb.Message.getWrapperField(this, proto.google.protobuf.ServiceOptions, 3));
  4233. };
  4234. /**
  4235. * @param {?proto.google.protobuf.ServiceOptions|undefined} value
  4236. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4237. */
  4238. proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions = function(value) {
  4239. return jspb.Message.setWrapperField(this, 3, value);
  4240. };
  4241. /**
  4242. * Clears the message field making it undefined.
  4243. * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this
  4244. */
  4245. proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions = function() {
  4246. return this.setOptions(undefined);
  4247. };
  4248. /**
  4249. * Returns whether this field is set.
  4250. * @return {boolean}
  4251. */
  4252. proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions = function() {
  4253. return jspb.Message.getField(this, 3) != null;
  4254. };
  4255. if (jspb.Message.GENERATE_TO_OBJECT) {
  4256. /**
  4257. * Creates an object representation of this proto.
  4258. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4259. * Optional fields that are not set will be set to undefined.
  4260. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4261. * For the list of reserved names please see:
  4262. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4263. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4264. * JSPB instance for transitional soy proto support:
  4265. * http://goto/soy-param-migration
  4266. * @return {!Object}
  4267. */
  4268. proto.google.protobuf.MethodDescriptorProto.prototype.toObject = function(opt_includeInstance) {
  4269. return proto.google.protobuf.MethodDescriptorProto.toObject(opt_includeInstance, this);
  4270. };
  4271. /**
  4272. * Static version of the {@see toObject} method.
  4273. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4274. * the JSPB instance for transitional soy proto support:
  4275. * http://goto/soy-param-migration
  4276. * @param {!proto.google.protobuf.MethodDescriptorProto} msg The msg instance to transform.
  4277. * @return {!Object}
  4278. * @suppress {unusedLocalVariables} f is only used for nested messages
  4279. */
  4280. proto.google.protobuf.MethodDescriptorProto.toObject = function(includeInstance, msg) {
  4281. var f, obj = {
  4282. name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  4283. inputType: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  4284. outputType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  4285. options: (f = msg.getOptions()) && proto.google.protobuf.MethodOptions.toObject(includeInstance, f),
  4286. clientStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
  4287. serverStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
  4288. };
  4289. if (includeInstance) {
  4290. obj.$jspbMessageInstance = msg;
  4291. }
  4292. return obj;
  4293. };
  4294. }
  4295. /**
  4296. * Deserializes binary data (in protobuf wire format).
  4297. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4298. * @return {!proto.google.protobuf.MethodDescriptorProto}
  4299. */
  4300. proto.google.protobuf.MethodDescriptorProto.deserializeBinary = function(bytes) {
  4301. var reader = new jspb.BinaryReader(bytes);
  4302. var msg = new proto.google.protobuf.MethodDescriptorProto;
  4303. return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(msg, reader);
  4304. };
  4305. /**
  4306. * Deserializes binary data (in protobuf wire format) from the
  4307. * given reader into the given message object.
  4308. * @param {!proto.google.protobuf.MethodDescriptorProto} msg The message object to deserialize into.
  4309. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4310. * @return {!proto.google.protobuf.MethodDescriptorProto}
  4311. */
  4312. proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader = function(msg, reader) {
  4313. while (reader.nextField()) {
  4314. if (reader.isEndGroup()) {
  4315. break;
  4316. }
  4317. var field = reader.getFieldNumber();
  4318. switch (field) {
  4319. case 1:
  4320. var value = /** @type {string} */ (reader.readString());
  4321. msg.setName(value);
  4322. break;
  4323. case 2:
  4324. var value = /** @type {string} */ (reader.readString());
  4325. msg.setInputType(value);
  4326. break;
  4327. case 3:
  4328. var value = /** @type {string} */ (reader.readString());
  4329. msg.setOutputType(value);
  4330. break;
  4331. case 4:
  4332. var value = new proto.google.protobuf.MethodOptions;
  4333. reader.readMessage(value,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader);
  4334. msg.setOptions(value);
  4335. break;
  4336. case 5:
  4337. var value = /** @type {boolean} */ (reader.readBool());
  4338. msg.setClientStreaming(value);
  4339. break;
  4340. case 6:
  4341. var value = /** @type {boolean} */ (reader.readBool());
  4342. msg.setServerStreaming(value);
  4343. break;
  4344. default:
  4345. reader.skipField();
  4346. break;
  4347. }
  4348. }
  4349. return msg;
  4350. };
  4351. /**
  4352. * Serializes the message to binary data (in protobuf wire format).
  4353. * @return {!Uint8Array}
  4354. */
  4355. proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary = function() {
  4356. var writer = new jspb.BinaryWriter();
  4357. proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this, writer);
  4358. return writer.getResultBuffer();
  4359. };
  4360. /**
  4361. * Serializes the given message to binary data (in protobuf wire
  4362. * format), writing to the given BinaryWriter.
  4363. * @param {!proto.google.protobuf.MethodDescriptorProto} message
  4364. * @param {!jspb.BinaryWriter} writer
  4365. * @suppress {unusedLocalVariables} f is only used for nested messages
  4366. */
  4367. proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter = function(message, writer) {
  4368. var f = undefined;
  4369. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  4370. if (f != null) {
  4371. writer.writeString(
  4372. 1,
  4373. f
  4374. );
  4375. }
  4376. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  4377. if (f != null) {
  4378. writer.writeString(
  4379. 2,
  4380. f
  4381. );
  4382. }
  4383. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  4384. if (f != null) {
  4385. writer.writeString(
  4386. 3,
  4387. f
  4388. );
  4389. }
  4390. f = message.getOptions();
  4391. if (f != null) {
  4392. writer.writeMessage(
  4393. 4,
  4394. f,
  4395. proto.google.protobuf.MethodOptions.serializeBinaryToWriter
  4396. );
  4397. }
  4398. f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
  4399. if (f != null) {
  4400. writer.writeBool(
  4401. 5,
  4402. f
  4403. );
  4404. }
  4405. f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
  4406. if (f != null) {
  4407. writer.writeBool(
  4408. 6,
  4409. f
  4410. );
  4411. }
  4412. };
  4413. /**
  4414. * optional string name = 1;
  4415. * @return {string}
  4416. */
  4417. proto.google.protobuf.MethodDescriptorProto.prototype.getName = function() {
  4418. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  4419. };
  4420. /**
  4421. * @param {string} value
  4422. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4423. */
  4424. proto.google.protobuf.MethodDescriptorProto.prototype.setName = function(value) {
  4425. return jspb.Message.setField(this, 1, value);
  4426. };
  4427. /**
  4428. * Clears the field making it undefined.
  4429. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4430. */
  4431. proto.google.protobuf.MethodDescriptorProto.prototype.clearName = function() {
  4432. return jspb.Message.setField(this, 1, undefined);
  4433. };
  4434. /**
  4435. * Returns whether this field is set.
  4436. * @return {boolean}
  4437. */
  4438. proto.google.protobuf.MethodDescriptorProto.prototype.hasName = function() {
  4439. return jspb.Message.getField(this, 1) != null;
  4440. };
  4441. /**
  4442. * optional string input_type = 2;
  4443. * @return {string}
  4444. */
  4445. proto.google.protobuf.MethodDescriptorProto.prototype.getInputType = function() {
  4446. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  4447. };
  4448. /**
  4449. * @param {string} value
  4450. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4451. */
  4452. proto.google.protobuf.MethodDescriptorProto.prototype.setInputType = function(value) {
  4453. return jspb.Message.setField(this, 2, value);
  4454. };
  4455. /**
  4456. * Clears the field making it undefined.
  4457. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4458. */
  4459. proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType = function() {
  4460. return jspb.Message.setField(this, 2, undefined);
  4461. };
  4462. /**
  4463. * Returns whether this field is set.
  4464. * @return {boolean}
  4465. */
  4466. proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType = function() {
  4467. return jspb.Message.getField(this, 2) != null;
  4468. };
  4469. /**
  4470. * optional string output_type = 3;
  4471. * @return {string}
  4472. */
  4473. proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType = function() {
  4474. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  4475. };
  4476. /**
  4477. * @param {string} value
  4478. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4479. */
  4480. proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType = function(value) {
  4481. return jspb.Message.setField(this, 3, value);
  4482. };
  4483. /**
  4484. * Clears the field making it undefined.
  4485. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4486. */
  4487. proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType = function() {
  4488. return jspb.Message.setField(this, 3, undefined);
  4489. };
  4490. /**
  4491. * Returns whether this field is set.
  4492. * @return {boolean}
  4493. */
  4494. proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType = function() {
  4495. return jspb.Message.getField(this, 3) != null;
  4496. };
  4497. /**
  4498. * optional MethodOptions options = 4;
  4499. * @return {?proto.google.protobuf.MethodOptions}
  4500. */
  4501. proto.google.protobuf.MethodDescriptorProto.prototype.getOptions = function() {
  4502. return /** @type{?proto.google.protobuf.MethodOptions} */ (
  4503. jspb.Message.getWrapperField(this, proto.google.protobuf.MethodOptions, 4));
  4504. };
  4505. /**
  4506. * @param {?proto.google.protobuf.MethodOptions|undefined} value
  4507. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4508. */
  4509. proto.google.protobuf.MethodDescriptorProto.prototype.setOptions = function(value) {
  4510. return jspb.Message.setWrapperField(this, 4, value);
  4511. };
  4512. /**
  4513. * Clears the message field making it undefined.
  4514. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4515. */
  4516. proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions = function() {
  4517. return this.setOptions(undefined);
  4518. };
  4519. /**
  4520. * Returns whether this field is set.
  4521. * @return {boolean}
  4522. */
  4523. proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions = function() {
  4524. return jspb.Message.getField(this, 4) != null;
  4525. };
  4526. /**
  4527. * optional bool client_streaming = 5;
  4528. * @return {boolean}
  4529. */
  4530. proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming = function() {
  4531. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
  4532. };
  4533. /**
  4534. * @param {boolean} value
  4535. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4536. */
  4537. proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming = function(value) {
  4538. return jspb.Message.setField(this, 5, value);
  4539. };
  4540. /**
  4541. * Clears the field making it undefined.
  4542. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4543. */
  4544. proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming = function() {
  4545. return jspb.Message.setField(this, 5, undefined);
  4546. };
  4547. /**
  4548. * Returns whether this field is set.
  4549. * @return {boolean}
  4550. */
  4551. proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming = function() {
  4552. return jspb.Message.getField(this, 5) != null;
  4553. };
  4554. /**
  4555. * optional bool server_streaming = 6;
  4556. * @return {boolean}
  4557. */
  4558. proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming = function() {
  4559. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
  4560. };
  4561. /**
  4562. * @param {boolean} value
  4563. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4564. */
  4565. proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming = function(value) {
  4566. return jspb.Message.setField(this, 6, value);
  4567. };
  4568. /**
  4569. * Clears the field making it undefined.
  4570. * @return {!proto.google.protobuf.MethodDescriptorProto} returns this
  4571. */
  4572. proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming = function() {
  4573. return jspb.Message.setField(this, 6, undefined);
  4574. };
  4575. /**
  4576. * Returns whether this field is set.
  4577. * @return {boolean}
  4578. */
  4579. proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming = function() {
  4580. return jspb.Message.getField(this, 6) != null;
  4581. };
  4582. /**
  4583. * List of repeated fields within this message type.
  4584. * @private {!Array<number>}
  4585. * @const
  4586. */
  4587. proto.google.protobuf.FileOptions.repeatedFields_ = [999];
  4588. if (jspb.Message.GENERATE_TO_OBJECT) {
  4589. /**
  4590. * Creates an object representation of this proto.
  4591. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4592. * Optional fields that are not set will be set to undefined.
  4593. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4594. * For the list of reserved names please see:
  4595. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4596. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4597. * JSPB instance for transitional soy proto support:
  4598. * http://goto/soy-param-migration
  4599. * @return {!Object}
  4600. */
  4601. proto.google.protobuf.FileOptions.prototype.toObject = function(opt_includeInstance) {
  4602. return proto.google.protobuf.FileOptions.toObject(opt_includeInstance, this);
  4603. };
  4604. /**
  4605. * Static version of the {@see toObject} method.
  4606. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4607. * the JSPB instance for transitional soy proto support:
  4608. * http://goto/soy-param-migration
  4609. * @param {!proto.google.protobuf.FileOptions} msg The msg instance to transform.
  4610. * @return {!Object}
  4611. * @suppress {unusedLocalVariables} f is only used for nested messages
  4612. */
  4613. proto.google.protobuf.FileOptions.toObject = function(includeInstance, msg) {
  4614. var f, obj = {
  4615. javaPackage: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  4616. javaOuterClassname: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
  4617. javaMultipleFiles: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
  4618. javaGenerateEqualsAndHash: (f = jspb.Message.getBooleanField(msg, 20)) == null ? undefined : f,
  4619. javaStringCheckUtf8: jspb.Message.getBooleanFieldWithDefault(msg, 27, false),
  4620. optimizeFor: jspb.Message.getFieldWithDefault(msg, 9, 1),
  4621. goPackage: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
  4622. ccGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
  4623. javaGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
  4624. pyGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 18, false),
  4625. phpGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 42, false),
  4626. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 23, false),
  4627. ccEnableArenas: jspb.Message.getBooleanFieldWithDefault(msg, 31, true),
  4628. objcClassPrefix: (f = jspb.Message.getField(msg, 36)) == null ? undefined : f,
  4629. csharpNamespace: (f = jspb.Message.getField(msg, 37)) == null ? undefined : f,
  4630. swiftPrefix: (f = jspb.Message.getField(msg, 39)) == null ? undefined : f,
  4631. phpClassPrefix: (f = jspb.Message.getField(msg, 40)) == null ? undefined : f,
  4632. phpNamespace: (f = jspb.Message.getField(msg, 41)) == null ? undefined : f,
  4633. phpMetadataNamespace: (f = jspb.Message.getField(msg, 44)) == null ? undefined : f,
  4634. rubyPackage: (f = jspb.Message.getField(msg, 45)) == null ? undefined : f,
  4635. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  4636. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  4637. };
  4638. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  4639. proto.google.protobuf.FileOptions.extensions, proto.google.protobuf.FileOptions.prototype.getExtension,
  4640. includeInstance);
  4641. if (includeInstance) {
  4642. obj.$jspbMessageInstance = msg;
  4643. }
  4644. return obj;
  4645. };
  4646. }
  4647. /**
  4648. * Deserializes binary data (in protobuf wire format).
  4649. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4650. * @return {!proto.google.protobuf.FileOptions}
  4651. */
  4652. proto.google.protobuf.FileOptions.deserializeBinary = function(bytes) {
  4653. var reader = new jspb.BinaryReader(bytes);
  4654. var msg = new proto.google.protobuf.FileOptions;
  4655. return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(msg, reader);
  4656. };
  4657. /**
  4658. * Deserializes binary data (in protobuf wire format) from the
  4659. * given reader into the given message object.
  4660. * @param {!proto.google.protobuf.FileOptions} msg The message object to deserialize into.
  4661. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4662. * @return {!proto.google.protobuf.FileOptions}
  4663. */
  4664. proto.google.protobuf.FileOptions.deserializeBinaryFromReader = function(msg, reader) {
  4665. while (reader.nextField()) {
  4666. if (reader.isEndGroup()) {
  4667. break;
  4668. }
  4669. var field = reader.getFieldNumber();
  4670. switch (field) {
  4671. case 1:
  4672. var value = /** @type {string} */ (reader.readString());
  4673. msg.setJavaPackage(value);
  4674. break;
  4675. case 8:
  4676. var value = /** @type {string} */ (reader.readString());
  4677. msg.setJavaOuterClassname(value);
  4678. break;
  4679. case 10:
  4680. var value = /** @type {boolean} */ (reader.readBool());
  4681. msg.setJavaMultipleFiles(value);
  4682. break;
  4683. case 20:
  4684. var value = /** @type {boolean} */ (reader.readBool());
  4685. msg.setJavaGenerateEqualsAndHash(value);
  4686. break;
  4687. case 27:
  4688. var value = /** @type {boolean} */ (reader.readBool());
  4689. msg.setJavaStringCheckUtf8(value);
  4690. break;
  4691. case 9:
  4692. var value = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (reader.readEnum());
  4693. msg.setOptimizeFor(value);
  4694. break;
  4695. case 11:
  4696. var value = /** @type {string} */ (reader.readString());
  4697. msg.setGoPackage(value);
  4698. break;
  4699. case 16:
  4700. var value = /** @type {boolean} */ (reader.readBool());
  4701. msg.setCcGenericServices(value);
  4702. break;
  4703. case 17:
  4704. var value = /** @type {boolean} */ (reader.readBool());
  4705. msg.setJavaGenericServices(value);
  4706. break;
  4707. case 18:
  4708. var value = /** @type {boolean} */ (reader.readBool());
  4709. msg.setPyGenericServices(value);
  4710. break;
  4711. case 42:
  4712. var value = /** @type {boolean} */ (reader.readBool());
  4713. msg.setPhpGenericServices(value);
  4714. break;
  4715. case 23:
  4716. var value = /** @type {boolean} */ (reader.readBool());
  4717. msg.setDeprecated(value);
  4718. break;
  4719. case 31:
  4720. var value = /** @type {boolean} */ (reader.readBool());
  4721. msg.setCcEnableArenas(value);
  4722. break;
  4723. case 36:
  4724. var value = /** @type {string} */ (reader.readString());
  4725. msg.setObjcClassPrefix(value);
  4726. break;
  4727. case 37:
  4728. var value = /** @type {string} */ (reader.readString());
  4729. msg.setCsharpNamespace(value);
  4730. break;
  4731. case 39:
  4732. var value = /** @type {string} */ (reader.readString());
  4733. msg.setSwiftPrefix(value);
  4734. break;
  4735. case 40:
  4736. var value = /** @type {string} */ (reader.readString());
  4737. msg.setPhpClassPrefix(value);
  4738. break;
  4739. case 41:
  4740. var value = /** @type {string} */ (reader.readString());
  4741. msg.setPhpNamespace(value);
  4742. break;
  4743. case 44:
  4744. var value = /** @type {string} */ (reader.readString());
  4745. msg.setPhpMetadataNamespace(value);
  4746. break;
  4747. case 45:
  4748. var value = /** @type {string} */ (reader.readString());
  4749. msg.setRubyPackage(value);
  4750. break;
  4751. case 999:
  4752. var value = new proto.google.protobuf.UninterpretedOption;
  4753. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  4754. msg.addUninterpretedOption(value);
  4755. break;
  4756. default:
  4757. jspb.Message.readBinaryExtension(msg, reader,
  4758. proto.google.protobuf.FileOptions.extensionsBinary,
  4759. proto.google.protobuf.FileOptions.prototype.getExtension,
  4760. proto.google.protobuf.FileOptions.prototype.setExtension);
  4761. break;
  4762. }
  4763. }
  4764. return msg;
  4765. };
  4766. /**
  4767. * Serializes the message to binary data (in protobuf wire format).
  4768. * @return {!Uint8Array}
  4769. */
  4770. proto.google.protobuf.FileOptions.prototype.serializeBinary = function() {
  4771. var writer = new jspb.BinaryWriter();
  4772. proto.google.protobuf.FileOptions.serializeBinaryToWriter(this, writer);
  4773. return writer.getResultBuffer();
  4774. };
  4775. /**
  4776. * Serializes the given message to binary data (in protobuf wire
  4777. * format), writing to the given BinaryWriter.
  4778. * @param {!proto.google.protobuf.FileOptions} message
  4779. * @param {!jspb.BinaryWriter} writer
  4780. * @suppress {unusedLocalVariables} f is only used for nested messages
  4781. */
  4782. proto.google.protobuf.FileOptions.serializeBinaryToWriter = function(message, writer) {
  4783. var f = undefined;
  4784. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  4785. if (f != null) {
  4786. writer.writeString(
  4787. 1,
  4788. f
  4789. );
  4790. }
  4791. f = /** @type {string} */ (jspb.Message.getField(message, 8));
  4792. if (f != null) {
  4793. writer.writeString(
  4794. 8,
  4795. f
  4796. );
  4797. }
  4798. f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
  4799. if (f != null) {
  4800. writer.writeBool(
  4801. 10,
  4802. f
  4803. );
  4804. }
  4805. f = /** @type {boolean} */ (jspb.Message.getField(message, 20));
  4806. if (f != null) {
  4807. writer.writeBool(
  4808. 20,
  4809. f
  4810. );
  4811. }
  4812. f = /** @type {boolean} */ (jspb.Message.getField(message, 27));
  4813. if (f != null) {
  4814. writer.writeBool(
  4815. 27,
  4816. f
  4817. );
  4818. }
  4819. f = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getField(message, 9));
  4820. if (f != null) {
  4821. writer.writeEnum(
  4822. 9,
  4823. f
  4824. );
  4825. }
  4826. f = /** @type {string} */ (jspb.Message.getField(message, 11));
  4827. if (f != null) {
  4828. writer.writeString(
  4829. 11,
  4830. f
  4831. );
  4832. }
  4833. f = /** @type {boolean} */ (jspb.Message.getField(message, 16));
  4834. if (f != null) {
  4835. writer.writeBool(
  4836. 16,
  4837. f
  4838. );
  4839. }
  4840. f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
  4841. if (f != null) {
  4842. writer.writeBool(
  4843. 17,
  4844. f
  4845. );
  4846. }
  4847. f = /** @type {boolean} */ (jspb.Message.getField(message, 18));
  4848. if (f != null) {
  4849. writer.writeBool(
  4850. 18,
  4851. f
  4852. );
  4853. }
  4854. f = /** @type {boolean} */ (jspb.Message.getField(message, 42));
  4855. if (f != null) {
  4856. writer.writeBool(
  4857. 42,
  4858. f
  4859. );
  4860. }
  4861. f = /** @type {boolean} */ (jspb.Message.getField(message, 23));
  4862. if (f != null) {
  4863. writer.writeBool(
  4864. 23,
  4865. f
  4866. );
  4867. }
  4868. f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
  4869. if (f != null) {
  4870. writer.writeBool(
  4871. 31,
  4872. f
  4873. );
  4874. }
  4875. f = /** @type {string} */ (jspb.Message.getField(message, 36));
  4876. if (f != null) {
  4877. writer.writeString(
  4878. 36,
  4879. f
  4880. );
  4881. }
  4882. f = /** @type {string} */ (jspb.Message.getField(message, 37));
  4883. if (f != null) {
  4884. writer.writeString(
  4885. 37,
  4886. f
  4887. );
  4888. }
  4889. f = /** @type {string} */ (jspb.Message.getField(message, 39));
  4890. if (f != null) {
  4891. writer.writeString(
  4892. 39,
  4893. f
  4894. );
  4895. }
  4896. f = /** @type {string} */ (jspb.Message.getField(message, 40));
  4897. if (f != null) {
  4898. writer.writeString(
  4899. 40,
  4900. f
  4901. );
  4902. }
  4903. f = /** @type {string} */ (jspb.Message.getField(message, 41));
  4904. if (f != null) {
  4905. writer.writeString(
  4906. 41,
  4907. f
  4908. );
  4909. }
  4910. f = /** @type {string} */ (jspb.Message.getField(message, 44));
  4911. if (f != null) {
  4912. writer.writeString(
  4913. 44,
  4914. f
  4915. );
  4916. }
  4917. f = /** @type {string} */ (jspb.Message.getField(message, 45));
  4918. if (f != null) {
  4919. writer.writeString(
  4920. 45,
  4921. f
  4922. );
  4923. }
  4924. f = message.getUninterpretedOptionList();
  4925. if (f.length > 0) {
  4926. writer.writeRepeatedMessage(
  4927. 999,
  4928. f,
  4929. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  4930. );
  4931. }
  4932. jspb.Message.serializeBinaryExtensions(message, writer,
  4933. proto.google.protobuf.FileOptions.extensionsBinary, proto.google.protobuf.FileOptions.prototype.getExtension);
  4934. };
  4935. /**
  4936. * @enum {number}
  4937. */
  4938. proto.google.protobuf.FileOptions.OptimizeMode = {
  4939. SPEED: 1,
  4940. CODE_SIZE: 2,
  4941. LITE_RUNTIME: 3
  4942. };
  4943. /**
  4944. * optional string java_package = 1;
  4945. * @return {string}
  4946. */
  4947. proto.google.protobuf.FileOptions.prototype.getJavaPackage = function() {
  4948. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  4949. };
  4950. /**
  4951. * @param {string} value
  4952. * @return {!proto.google.protobuf.FileOptions} returns this
  4953. */
  4954. proto.google.protobuf.FileOptions.prototype.setJavaPackage = function(value) {
  4955. return jspb.Message.setField(this, 1, value);
  4956. };
  4957. /**
  4958. * Clears the field making it undefined.
  4959. * @return {!proto.google.protobuf.FileOptions} returns this
  4960. */
  4961. proto.google.protobuf.FileOptions.prototype.clearJavaPackage = function() {
  4962. return jspb.Message.setField(this, 1, undefined);
  4963. };
  4964. /**
  4965. * Returns whether this field is set.
  4966. * @return {boolean}
  4967. */
  4968. proto.google.protobuf.FileOptions.prototype.hasJavaPackage = function() {
  4969. return jspb.Message.getField(this, 1) != null;
  4970. };
  4971. /**
  4972. * optional string java_outer_classname = 8;
  4973. * @return {string}
  4974. */
  4975. proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname = function() {
  4976. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
  4977. };
  4978. /**
  4979. * @param {string} value
  4980. * @return {!proto.google.protobuf.FileOptions} returns this
  4981. */
  4982. proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname = function(value) {
  4983. return jspb.Message.setField(this, 8, value);
  4984. };
  4985. /**
  4986. * Clears the field making it undefined.
  4987. * @return {!proto.google.protobuf.FileOptions} returns this
  4988. */
  4989. proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname = function() {
  4990. return jspb.Message.setField(this, 8, undefined);
  4991. };
  4992. /**
  4993. * Returns whether this field is set.
  4994. * @return {boolean}
  4995. */
  4996. proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname = function() {
  4997. return jspb.Message.getField(this, 8) != null;
  4998. };
  4999. /**
  5000. * optional bool java_multiple_files = 10;
  5001. * @return {boolean}
  5002. */
  5003. proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles = function() {
  5004. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
  5005. };
  5006. /**
  5007. * @param {boolean} value
  5008. * @return {!proto.google.protobuf.FileOptions} returns this
  5009. */
  5010. proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles = function(value) {
  5011. return jspb.Message.setField(this, 10, value);
  5012. };
  5013. /**
  5014. * Clears the field making it undefined.
  5015. * @return {!proto.google.protobuf.FileOptions} returns this
  5016. */
  5017. proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles = function() {
  5018. return jspb.Message.setField(this, 10, undefined);
  5019. };
  5020. /**
  5021. * Returns whether this field is set.
  5022. * @return {boolean}
  5023. */
  5024. proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles = function() {
  5025. return jspb.Message.getField(this, 10) != null;
  5026. };
  5027. /**
  5028. * optional bool java_generate_equals_and_hash = 20;
  5029. * @return {boolean}
  5030. */
  5031. proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash = function() {
  5032. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
  5033. };
  5034. /**
  5035. * @param {boolean} value
  5036. * @return {!proto.google.protobuf.FileOptions} returns this
  5037. */
  5038. proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash = function(value) {
  5039. return jspb.Message.setField(this, 20, value);
  5040. };
  5041. /**
  5042. * Clears the field making it undefined.
  5043. * @return {!proto.google.protobuf.FileOptions} returns this
  5044. */
  5045. proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash = function() {
  5046. return jspb.Message.setField(this, 20, undefined);
  5047. };
  5048. /**
  5049. * Returns whether this field is set.
  5050. * @return {boolean}
  5051. */
  5052. proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash = function() {
  5053. return jspb.Message.getField(this, 20) != null;
  5054. };
  5055. /**
  5056. * optional bool java_string_check_utf8 = 27;
  5057. * @return {boolean}
  5058. */
  5059. proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8 = function() {
  5060. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false));
  5061. };
  5062. /**
  5063. * @param {boolean} value
  5064. * @return {!proto.google.protobuf.FileOptions} returns this
  5065. */
  5066. proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8 = function(value) {
  5067. return jspb.Message.setField(this, 27, value);
  5068. };
  5069. /**
  5070. * Clears the field making it undefined.
  5071. * @return {!proto.google.protobuf.FileOptions} returns this
  5072. */
  5073. proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8 = function() {
  5074. return jspb.Message.setField(this, 27, undefined);
  5075. };
  5076. /**
  5077. * Returns whether this field is set.
  5078. * @return {boolean}
  5079. */
  5080. proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8 = function() {
  5081. return jspb.Message.getField(this, 27) != null;
  5082. };
  5083. /**
  5084. * optional OptimizeMode optimize_for = 9;
  5085. * @return {!proto.google.protobuf.FileOptions.OptimizeMode}
  5086. */
  5087. proto.google.protobuf.FileOptions.prototype.getOptimizeFor = function() {
  5088. return /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getFieldWithDefault(this, 9, 1));
  5089. };
  5090. /**
  5091. * @param {!proto.google.protobuf.FileOptions.OptimizeMode} value
  5092. * @return {!proto.google.protobuf.FileOptions} returns this
  5093. */
  5094. proto.google.protobuf.FileOptions.prototype.setOptimizeFor = function(value) {
  5095. return jspb.Message.setField(this, 9, value);
  5096. };
  5097. /**
  5098. * Clears the field making it undefined.
  5099. * @return {!proto.google.protobuf.FileOptions} returns this
  5100. */
  5101. proto.google.protobuf.FileOptions.prototype.clearOptimizeFor = function() {
  5102. return jspb.Message.setField(this, 9, undefined);
  5103. };
  5104. /**
  5105. * Returns whether this field is set.
  5106. * @return {boolean}
  5107. */
  5108. proto.google.protobuf.FileOptions.prototype.hasOptimizeFor = function() {
  5109. return jspb.Message.getField(this, 9) != null;
  5110. };
  5111. /**
  5112. * optional string go_package = 11;
  5113. * @return {string}
  5114. */
  5115. proto.google.protobuf.FileOptions.prototype.getGoPackage = function() {
  5116. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
  5117. };
  5118. /**
  5119. * @param {string} value
  5120. * @return {!proto.google.protobuf.FileOptions} returns this
  5121. */
  5122. proto.google.protobuf.FileOptions.prototype.setGoPackage = function(value) {
  5123. return jspb.Message.setField(this, 11, value);
  5124. };
  5125. /**
  5126. * Clears the field making it undefined.
  5127. * @return {!proto.google.protobuf.FileOptions} returns this
  5128. */
  5129. proto.google.protobuf.FileOptions.prototype.clearGoPackage = function() {
  5130. return jspb.Message.setField(this, 11, undefined);
  5131. };
  5132. /**
  5133. * Returns whether this field is set.
  5134. * @return {boolean}
  5135. */
  5136. proto.google.protobuf.FileOptions.prototype.hasGoPackage = function() {
  5137. return jspb.Message.getField(this, 11) != null;
  5138. };
  5139. /**
  5140. * optional bool cc_generic_services = 16;
  5141. * @return {boolean}
  5142. */
  5143. proto.google.protobuf.FileOptions.prototype.getCcGenericServices = function() {
  5144. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
  5145. };
  5146. /**
  5147. * @param {boolean} value
  5148. * @return {!proto.google.protobuf.FileOptions} returns this
  5149. */
  5150. proto.google.protobuf.FileOptions.prototype.setCcGenericServices = function(value) {
  5151. return jspb.Message.setField(this, 16, value);
  5152. };
  5153. /**
  5154. * Clears the field making it undefined.
  5155. * @return {!proto.google.protobuf.FileOptions} returns this
  5156. */
  5157. proto.google.protobuf.FileOptions.prototype.clearCcGenericServices = function() {
  5158. return jspb.Message.setField(this, 16, undefined);
  5159. };
  5160. /**
  5161. * Returns whether this field is set.
  5162. * @return {boolean}
  5163. */
  5164. proto.google.protobuf.FileOptions.prototype.hasCcGenericServices = function() {
  5165. return jspb.Message.getField(this, 16) != null;
  5166. };
  5167. /**
  5168. * optional bool java_generic_services = 17;
  5169. * @return {boolean}
  5170. */
  5171. proto.google.protobuf.FileOptions.prototype.getJavaGenericServices = function() {
  5172. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
  5173. };
  5174. /**
  5175. * @param {boolean} value
  5176. * @return {!proto.google.protobuf.FileOptions} returns this
  5177. */
  5178. proto.google.protobuf.FileOptions.prototype.setJavaGenericServices = function(value) {
  5179. return jspb.Message.setField(this, 17, value);
  5180. };
  5181. /**
  5182. * Clears the field making it undefined.
  5183. * @return {!proto.google.protobuf.FileOptions} returns this
  5184. */
  5185. proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices = function() {
  5186. return jspb.Message.setField(this, 17, undefined);
  5187. };
  5188. /**
  5189. * Returns whether this field is set.
  5190. * @return {boolean}
  5191. */
  5192. proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices = function() {
  5193. return jspb.Message.getField(this, 17) != null;
  5194. };
  5195. /**
  5196. * optional bool py_generic_services = 18;
  5197. * @return {boolean}
  5198. */
  5199. proto.google.protobuf.FileOptions.prototype.getPyGenericServices = function() {
  5200. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false));
  5201. };
  5202. /**
  5203. * @param {boolean} value
  5204. * @return {!proto.google.protobuf.FileOptions} returns this
  5205. */
  5206. proto.google.protobuf.FileOptions.prototype.setPyGenericServices = function(value) {
  5207. return jspb.Message.setField(this, 18, value);
  5208. };
  5209. /**
  5210. * Clears the field making it undefined.
  5211. * @return {!proto.google.protobuf.FileOptions} returns this
  5212. */
  5213. proto.google.protobuf.FileOptions.prototype.clearPyGenericServices = function() {
  5214. return jspb.Message.setField(this, 18, undefined);
  5215. };
  5216. /**
  5217. * Returns whether this field is set.
  5218. * @return {boolean}
  5219. */
  5220. proto.google.protobuf.FileOptions.prototype.hasPyGenericServices = function() {
  5221. return jspb.Message.getField(this, 18) != null;
  5222. };
  5223. /**
  5224. * optional bool php_generic_services = 42;
  5225. * @return {boolean}
  5226. */
  5227. proto.google.protobuf.FileOptions.prototype.getPhpGenericServices = function() {
  5228. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 42, false));
  5229. };
  5230. /**
  5231. * @param {boolean} value
  5232. * @return {!proto.google.protobuf.FileOptions} returns this
  5233. */
  5234. proto.google.protobuf.FileOptions.prototype.setPhpGenericServices = function(value) {
  5235. return jspb.Message.setField(this, 42, value);
  5236. };
  5237. /**
  5238. * Clears the field making it undefined.
  5239. * @return {!proto.google.protobuf.FileOptions} returns this
  5240. */
  5241. proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices = function() {
  5242. return jspb.Message.setField(this, 42, undefined);
  5243. };
  5244. /**
  5245. * Returns whether this field is set.
  5246. * @return {boolean}
  5247. */
  5248. proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices = function() {
  5249. return jspb.Message.getField(this, 42) != null;
  5250. };
  5251. /**
  5252. * optional bool deprecated = 23;
  5253. * @return {boolean}
  5254. */
  5255. proto.google.protobuf.FileOptions.prototype.getDeprecated = function() {
  5256. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false));
  5257. };
  5258. /**
  5259. * @param {boolean} value
  5260. * @return {!proto.google.protobuf.FileOptions} returns this
  5261. */
  5262. proto.google.protobuf.FileOptions.prototype.setDeprecated = function(value) {
  5263. return jspb.Message.setField(this, 23, value);
  5264. };
  5265. /**
  5266. * Clears the field making it undefined.
  5267. * @return {!proto.google.protobuf.FileOptions} returns this
  5268. */
  5269. proto.google.protobuf.FileOptions.prototype.clearDeprecated = function() {
  5270. return jspb.Message.setField(this, 23, undefined);
  5271. };
  5272. /**
  5273. * Returns whether this field is set.
  5274. * @return {boolean}
  5275. */
  5276. proto.google.protobuf.FileOptions.prototype.hasDeprecated = function() {
  5277. return jspb.Message.getField(this, 23) != null;
  5278. };
  5279. /**
  5280. * optional bool cc_enable_arenas = 31;
  5281. * @return {boolean}
  5282. */
  5283. proto.google.protobuf.FileOptions.prototype.getCcEnableArenas = function() {
  5284. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, true));
  5285. };
  5286. /**
  5287. * @param {boolean} value
  5288. * @return {!proto.google.protobuf.FileOptions} returns this
  5289. */
  5290. proto.google.protobuf.FileOptions.prototype.setCcEnableArenas = function(value) {
  5291. return jspb.Message.setField(this, 31, value);
  5292. };
  5293. /**
  5294. * Clears the field making it undefined.
  5295. * @return {!proto.google.protobuf.FileOptions} returns this
  5296. */
  5297. proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas = function() {
  5298. return jspb.Message.setField(this, 31, undefined);
  5299. };
  5300. /**
  5301. * Returns whether this field is set.
  5302. * @return {boolean}
  5303. */
  5304. proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas = function() {
  5305. return jspb.Message.getField(this, 31) != null;
  5306. };
  5307. /**
  5308. * optional string objc_class_prefix = 36;
  5309. * @return {string}
  5310. */
  5311. proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix = function() {
  5312. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, ""));
  5313. };
  5314. /**
  5315. * @param {string} value
  5316. * @return {!proto.google.protobuf.FileOptions} returns this
  5317. */
  5318. proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix = function(value) {
  5319. return jspb.Message.setField(this, 36, value);
  5320. };
  5321. /**
  5322. * Clears the field making it undefined.
  5323. * @return {!proto.google.protobuf.FileOptions} returns this
  5324. */
  5325. proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix = function() {
  5326. return jspb.Message.setField(this, 36, undefined);
  5327. };
  5328. /**
  5329. * Returns whether this field is set.
  5330. * @return {boolean}
  5331. */
  5332. proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix = function() {
  5333. return jspb.Message.getField(this, 36) != null;
  5334. };
  5335. /**
  5336. * optional string csharp_namespace = 37;
  5337. * @return {string}
  5338. */
  5339. proto.google.protobuf.FileOptions.prototype.getCsharpNamespace = function() {
  5340. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
  5341. };
  5342. /**
  5343. * @param {string} value
  5344. * @return {!proto.google.protobuf.FileOptions} returns this
  5345. */
  5346. proto.google.protobuf.FileOptions.prototype.setCsharpNamespace = function(value) {
  5347. return jspb.Message.setField(this, 37, value);
  5348. };
  5349. /**
  5350. * Clears the field making it undefined.
  5351. * @return {!proto.google.protobuf.FileOptions} returns this
  5352. */
  5353. proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace = function() {
  5354. return jspb.Message.setField(this, 37, undefined);
  5355. };
  5356. /**
  5357. * Returns whether this field is set.
  5358. * @return {boolean}
  5359. */
  5360. proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace = function() {
  5361. return jspb.Message.getField(this, 37) != null;
  5362. };
  5363. /**
  5364. * optional string swift_prefix = 39;
  5365. * @return {string}
  5366. */
  5367. proto.google.protobuf.FileOptions.prototype.getSwiftPrefix = function() {
  5368. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
  5369. };
  5370. /**
  5371. * @param {string} value
  5372. * @return {!proto.google.protobuf.FileOptions} returns this
  5373. */
  5374. proto.google.protobuf.FileOptions.prototype.setSwiftPrefix = function(value) {
  5375. return jspb.Message.setField(this, 39, value);
  5376. };
  5377. /**
  5378. * Clears the field making it undefined.
  5379. * @return {!proto.google.protobuf.FileOptions} returns this
  5380. */
  5381. proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix = function() {
  5382. return jspb.Message.setField(this, 39, undefined);
  5383. };
  5384. /**
  5385. * Returns whether this field is set.
  5386. * @return {boolean}
  5387. */
  5388. proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix = function() {
  5389. return jspb.Message.getField(this, 39) != null;
  5390. };
  5391. /**
  5392. * optional string php_class_prefix = 40;
  5393. * @return {string}
  5394. */
  5395. proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix = function() {
  5396. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
  5397. };
  5398. /**
  5399. * @param {string} value
  5400. * @return {!proto.google.protobuf.FileOptions} returns this
  5401. */
  5402. proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix = function(value) {
  5403. return jspb.Message.setField(this, 40, value);
  5404. };
  5405. /**
  5406. * Clears the field making it undefined.
  5407. * @return {!proto.google.protobuf.FileOptions} returns this
  5408. */
  5409. proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix = function() {
  5410. return jspb.Message.setField(this, 40, undefined);
  5411. };
  5412. /**
  5413. * Returns whether this field is set.
  5414. * @return {boolean}
  5415. */
  5416. proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix = function() {
  5417. return jspb.Message.getField(this, 40) != null;
  5418. };
  5419. /**
  5420. * optional string php_namespace = 41;
  5421. * @return {string}
  5422. */
  5423. proto.google.protobuf.FileOptions.prototype.getPhpNamespace = function() {
  5424. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, ""));
  5425. };
  5426. /**
  5427. * @param {string} value
  5428. * @return {!proto.google.protobuf.FileOptions} returns this
  5429. */
  5430. proto.google.protobuf.FileOptions.prototype.setPhpNamespace = function(value) {
  5431. return jspb.Message.setField(this, 41, value);
  5432. };
  5433. /**
  5434. * Clears the field making it undefined.
  5435. * @return {!proto.google.protobuf.FileOptions} returns this
  5436. */
  5437. proto.google.protobuf.FileOptions.prototype.clearPhpNamespace = function() {
  5438. return jspb.Message.setField(this, 41, undefined);
  5439. };
  5440. /**
  5441. * Returns whether this field is set.
  5442. * @return {boolean}
  5443. */
  5444. proto.google.protobuf.FileOptions.prototype.hasPhpNamespace = function() {
  5445. return jspb.Message.getField(this, 41) != null;
  5446. };
  5447. /**
  5448. * optional string php_metadata_namespace = 44;
  5449. * @return {string}
  5450. */
  5451. proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace = function() {
  5452. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, ""));
  5453. };
  5454. /**
  5455. * @param {string} value
  5456. * @return {!proto.google.protobuf.FileOptions} returns this
  5457. */
  5458. proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace = function(value) {
  5459. return jspb.Message.setField(this, 44, value);
  5460. };
  5461. /**
  5462. * Clears the field making it undefined.
  5463. * @return {!proto.google.protobuf.FileOptions} returns this
  5464. */
  5465. proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace = function() {
  5466. return jspb.Message.setField(this, 44, undefined);
  5467. };
  5468. /**
  5469. * Returns whether this field is set.
  5470. * @return {boolean}
  5471. */
  5472. proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace = function() {
  5473. return jspb.Message.getField(this, 44) != null;
  5474. };
  5475. /**
  5476. * optional string ruby_package = 45;
  5477. * @return {string}
  5478. */
  5479. proto.google.protobuf.FileOptions.prototype.getRubyPackage = function() {
  5480. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, ""));
  5481. };
  5482. /**
  5483. * @param {string} value
  5484. * @return {!proto.google.protobuf.FileOptions} returns this
  5485. */
  5486. proto.google.protobuf.FileOptions.prototype.setRubyPackage = function(value) {
  5487. return jspb.Message.setField(this, 45, value);
  5488. };
  5489. /**
  5490. * Clears the field making it undefined.
  5491. * @return {!proto.google.protobuf.FileOptions} returns this
  5492. */
  5493. proto.google.protobuf.FileOptions.prototype.clearRubyPackage = function() {
  5494. return jspb.Message.setField(this, 45, undefined);
  5495. };
  5496. /**
  5497. * Returns whether this field is set.
  5498. * @return {boolean}
  5499. */
  5500. proto.google.protobuf.FileOptions.prototype.hasRubyPackage = function() {
  5501. return jspb.Message.getField(this, 45) != null;
  5502. };
  5503. /**
  5504. * repeated UninterpretedOption uninterpreted_option = 999;
  5505. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  5506. */
  5507. proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList = function() {
  5508. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  5509. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  5510. };
  5511. /**
  5512. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  5513. * @return {!proto.google.protobuf.FileOptions} returns this
  5514. */
  5515. proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList = function(value) {
  5516. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  5517. };
  5518. /**
  5519. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  5520. * @param {number=} opt_index
  5521. * @return {!proto.google.protobuf.UninterpretedOption}
  5522. */
  5523. proto.google.protobuf.FileOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  5524. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  5525. };
  5526. /**
  5527. * Clears the list making it empty but non-null.
  5528. * @return {!proto.google.protobuf.FileOptions} returns this
  5529. */
  5530. proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList = function() {
  5531. return this.setUninterpretedOptionList([]);
  5532. };
  5533. /**
  5534. * List of repeated fields within this message type.
  5535. * @private {!Array<number>}
  5536. * @const
  5537. */
  5538. proto.google.protobuf.MessageOptions.repeatedFields_ = [999];
  5539. if (jspb.Message.GENERATE_TO_OBJECT) {
  5540. /**
  5541. * Creates an object representation of this proto.
  5542. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5543. * Optional fields that are not set will be set to undefined.
  5544. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5545. * For the list of reserved names please see:
  5546. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5547. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5548. * JSPB instance for transitional soy proto support:
  5549. * http://goto/soy-param-migration
  5550. * @return {!Object}
  5551. */
  5552. proto.google.protobuf.MessageOptions.prototype.toObject = function(opt_includeInstance) {
  5553. return proto.google.protobuf.MessageOptions.toObject(opt_includeInstance, this);
  5554. };
  5555. /**
  5556. * Static version of the {@see toObject} method.
  5557. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5558. * the JSPB instance for transitional soy proto support:
  5559. * http://goto/soy-param-migration
  5560. * @param {!proto.google.protobuf.MessageOptions} msg The msg instance to transform.
  5561. * @return {!Object}
  5562. * @suppress {unusedLocalVariables} f is only used for nested messages
  5563. */
  5564. proto.google.protobuf.MessageOptions.toObject = function(includeInstance, msg) {
  5565. var f, obj = {
  5566. messageSetWireFormat: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  5567. noStandardDescriptorAccessor: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  5568. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
  5569. mapEntry: (f = jspb.Message.getBooleanField(msg, 7)) == null ? undefined : f,
  5570. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  5571. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  5572. };
  5573. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  5574. proto.google.protobuf.MessageOptions.extensions, proto.google.protobuf.MessageOptions.prototype.getExtension,
  5575. includeInstance);
  5576. if (includeInstance) {
  5577. obj.$jspbMessageInstance = msg;
  5578. }
  5579. return obj;
  5580. };
  5581. }
  5582. /**
  5583. * Deserializes binary data (in protobuf wire format).
  5584. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5585. * @return {!proto.google.protobuf.MessageOptions}
  5586. */
  5587. proto.google.protobuf.MessageOptions.deserializeBinary = function(bytes) {
  5588. var reader = new jspb.BinaryReader(bytes);
  5589. var msg = new proto.google.protobuf.MessageOptions;
  5590. return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(msg, reader);
  5591. };
  5592. /**
  5593. * Deserializes binary data (in protobuf wire format) from the
  5594. * given reader into the given message object.
  5595. * @param {!proto.google.protobuf.MessageOptions} msg The message object to deserialize into.
  5596. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5597. * @return {!proto.google.protobuf.MessageOptions}
  5598. */
  5599. proto.google.protobuf.MessageOptions.deserializeBinaryFromReader = function(msg, reader) {
  5600. while (reader.nextField()) {
  5601. if (reader.isEndGroup()) {
  5602. break;
  5603. }
  5604. var field = reader.getFieldNumber();
  5605. switch (field) {
  5606. case 1:
  5607. var value = /** @type {boolean} */ (reader.readBool());
  5608. msg.setMessageSetWireFormat(value);
  5609. break;
  5610. case 2:
  5611. var value = /** @type {boolean} */ (reader.readBool());
  5612. msg.setNoStandardDescriptorAccessor(value);
  5613. break;
  5614. case 3:
  5615. var value = /** @type {boolean} */ (reader.readBool());
  5616. msg.setDeprecated(value);
  5617. break;
  5618. case 7:
  5619. var value = /** @type {boolean} */ (reader.readBool());
  5620. msg.setMapEntry(value);
  5621. break;
  5622. case 999:
  5623. var value = new proto.google.protobuf.UninterpretedOption;
  5624. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  5625. msg.addUninterpretedOption(value);
  5626. break;
  5627. default:
  5628. jspb.Message.readBinaryExtension(msg, reader,
  5629. proto.google.protobuf.MessageOptions.extensionsBinary,
  5630. proto.google.protobuf.MessageOptions.prototype.getExtension,
  5631. proto.google.protobuf.MessageOptions.prototype.setExtension);
  5632. break;
  5633. }
  5634. }
  5635. return msg;
  5636. };
  5637. /**
  5638. * Serializes the message to binary data (in protobuf wire format).
  5639. * @return {!Uint8Array}
  5640. */
  5641. proto.google.protobuf.MessageOptions.prototype.serializeBinary = function() {
  5642. var writer = new jspb.BinaryWriter();
  5643. proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this, writer);
  5644. return writer.getResultBuffer();
  5645. };
  5646. /**
  5647. * Serializes the given message to binary data (in protobuf wire
  5648. * format), writing to the given BinaryWriter.
  5649. * @param {!proto.google.protobuf.MessageOptions} message
  5650. * @param {!jspb.BinaryWriter} writer
  5651. * @suppress {unusedLocalVariables} f is only used for nested messages
  5652. */
  5653. proto.google.protobuf.MessageOptions.serializeBinaryToWriter = function(message, writer) {
  5654. var f = undefined;
  5655. f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
  5656. if (f != null) {
  5657. writer.writeBool(
  5658. 1,
  5659. f
  5660. );
  5661. }
  5662. f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
  5663. if (f != null) {
  5664. writer.writeBool(
  5665. 2,
  5666. f
  5667. );
  5668. }
  5669. f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
  5670. if (f != null) {
  5671. writer.writeBool(
  5672. 3,
  5673. f
  5674. );
  5675. }
  5676. f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
  5677. if (f != null) {
  5678. writer.writeBool(
  5679. 7,
  5680. f
  5681. );
  5682. }
  5683. f = message.getUninterpretedOptionList();
  5684. if (f.length > 0) {
  5685. writer.writeRepeatedMessage(
  5686. 999,
  5687. f,
  5688. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  5689. );
  5690. }
  5691. jspb.Message.serializeBinaryExtensions(message, writer,
  5692. proto.google.protobuf.MessageOptions.extensionsBinary, proto.google.protobuf.MessageOptions.prototype.getExtension);
  5693. };
  5694. /**
  5695. * optional bool message_set_wire_format = 1;
  5696. * @return {boolean}
  5697. */
  5698. proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat = function() {
  5699. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  5700. };
  5701. /**
  5702. * @param {boolean} value
  5703. * @return {!proto.google.protobuf.MessageOptions} returns this
  5704. */
  5705. proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat = function(value) {
  5706. return jspb.Message.setField(this, 1, value);
  5707. };
  5708. /**
  5709. * Clears the field making it undefined.
  5710. * @return {!proto.google.protobuf.MessageOptions} returns this
  5711. */
  5712. proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat = function() {
  5713. return jspb.Message.setField(this, 1, undefined);
  5714. };
  5715. /**
  5716. * Returns whether this field is set.
  5717. * @return {boolean}
  5718. */
  5719. proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat = function() {
  5720. return jspb.Message.getField(this, 1) != null;
  5721. };
  5722. /**
  5723. * optional bool no_standard_descriptor_accessor = 2;
  5724. * @return {boolean}
  5725. */
  5726. proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor = function() {
  5727. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  5728. };
  5729. /**
  5730. * @param {boolean} value
  5731. * @return {!proto.google.protobuf.MessageOptions} returns this
  5732. */
  5733. proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor = function(value) {
  5734. return jspb.Message.setField(this, 2, value);
  5735. };
  5736. /**
  5737. * Clears the field making it undefined.
  5738. * @return {!proto.google.protobuf.MessageOptions} returns this
  5739. */
  5740. proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor = function() {
  5741. return jspb.Message.setField(this, 2, undefined);
  5742. };
  5743. /**
  5744. * Returns whether this field is set.
  5745. * @return {boolean}
  5746. */
  5747. proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor = function() {
  5748. return jspb.Message.getField(this, 2) != null;
  5749. };
  5750. /**
  5751. * optional bool deprecated = 3;
  5752. * @return {boolean}
  5753. */
  5754. proto.google.protobuf.MessageOptions.prototype.getDeprecated = function() {
  5755. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
  5756. };
  5757. /**
  5758. * @param {boolean} value
  5759. * @return {!proto.google.protobuf.MessageOptions} returns this
  5760. */
  5761. proto.google.protobuf.MessageOptions.prototype.setDeprecated = function(value) {
  5762. return jspb.Message.setField(this, 3, value);
  5763. };
  5764. /**
  5765. * Clears the field making it undefined.
  5766. * @return {!proto.google.protobuf.MessageOptions} returns this
  5767. */
  5768. proto.google.protobuf.MessageOptions.prototype.clearDeprecated = function() {
  5769. return jspb.Message.setField(this, 3, undefined);
  5770. };
  5771. /**
  5772. * Returns whether this field is set.
  5773. * @return {boolean}
  5774. */
  5775. proto.google.protobuf.MessageOptions.prototype.hasDeprecated = function() {
  5776. return jspb.Message.getField(this, 3) != null;
  5777. };
  5778. /**
  5779. * optional bool map_entry = 7;
  5780. * @return {boolean}
  5781. */
  5782. proto.google.protobuf.MessageOptions.prototype.getMapEntry = function() {
  5783. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
  5784. };
  5785. /**
  5786. * @param {boolean} value
  5787. * @return {!proto.google.protobuf.MessageOptions} returns this
  5788. */
  5789. proto.google.protobuf.MessageOptions.prototype.setMapEntry = function(value) {
  5790. return jspb.Message.setField(this, 7, value);
  5791. };
  5792. /**
  5793. * Clears the field making it undefined.
  5794. * @return {!proto.google.protobuf.MessageOptions} returns this
  5795. */
  5796. proto.google.protobuf.MessageOptions.prototype.clearMapEntry = function() {
  5797. return jspb.Message.setField(this, 7, undefined);
  5798. };
  5799. /**
  5800. * Returns whether this field is set.
  5801. * @return {boolean}
  5802. */
  5803. proto.google.protobuf.MessageOptions.prototype.hasMapEntry = function() {
  5804. return jspb.Message.getField(this, 7) != null;
  5805. };
  5806. /**
  5807. * repeated UninterpretedOption uninterpreted_option = 999;
  5808. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  5809. */
  5810. proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList = function() {
  5811. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  5812. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  5813. };
  5814. /**
  5815. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  5816. * @return {!proto.google.protobuf.MessageOptions} returns this
  5817. */
  5818. proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList = function(value) {
  5819. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  5820. };
  5821. /**
  5822. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  5823. * @param {number=} opt_index
  5824. * @return {!proto.google.protobuf.UninterpretedOption}
  5825. */
  5826. proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  5827. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  5828. };
  5829. /**
  5830. * Clears the list making it empty but non-null.
  5831. * @return {!proto.google.protobuf.MessageOptions} returns this
  5832. */
  5833. proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList = function() {
  5834. return this.setUninterpretedOptionList([]);
  5835. };
  5836. /**
  5837. * List of repeated fields within this message type.
  5838. * @private {!Array<number>}
  5839. * @const
  5840. */
  5841. proto.google.protobuf.FieldOptions.repeatedFields_ = [999];
  5842. if (jspb.Message.GENERATE_TO_OBJECT) {
  5843. /**
  5844. * Creates an object representation of this proto.
  5845. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5846. * Optional fields that are not set will be set to undefined.
  5847. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5848. * For the list of reserved names please see:
  5849. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5850. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5851. * JSPB instance for transitional soy proto support:
  5852. * http://goto/soy-param-migration
  5853. * @return {!Object}
  5854. */
  5855. proto.google.protobuf.FieldOptions.prototype.toObject = function(opt_includeInstance) {
  5856. return proto.google.protobuf.FieldOptions.toObject(opt_includeInstance, this);
  5857. };
  5858. /**
  5859. * Static version of the {@see toObject} method.
  5860. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5861. * the JSPB instance for transitional soy proto support:
  5862. * http://goto/soy-param-migration
  5863. * @param {!proto.google.protobuf.FieldOptions} msg The msg instance to transform.
  5864. * @return {!Object}
  5865. * @suppress {unusedLocalVariables} f is only used for nested messages
  5866. */
  5867. proto.google.protobuf.FieldOptions.toObject = function(includeInstance, msg) {
  5868. var f, obj = {
  5869. ctype: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5870. packed: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f,
  5871. jstype: jspb.Message.getFieldWithDefault(msg, 6, 0),
  5872. lazy: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
  5873. unverifiedLazy: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
  5874. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
  5875. weak: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
  5876. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  5877. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  5878. };
  5879. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  5880. proto.google.protobuf.FieldOptions.extensions, proto.google.protobuf.FieldOptions.prototype.getExtension,
  5881. includeInstance);
  5882. if (includeInstance) {
  5883. obj.$jspbMessageInstance = msg;
  5884. }
  5885. return obj;
  5886. };
  5887. }
  5888. /**
  5889. * Deserializes binary data (in protobuf wire format).
  5890. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5891. * @return {!proto.google.protobuf.FieldOptions}
  5892. */
  5893. proto.google.protobuf.FieldOptions.deserializeBinary = function(bytes) {
  5894. var reader = new jspb.BinaryReader(bytes);
  5895. var msg = new proto.google.protobuf.FieldOptions;
  5896. return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(msg, reader);
  5897. };
  5898. /**
  5899. * Deserializes binary data (in protobuf wire format) from the
  5900. * given reader into the given message object.
  5901. * @param {!proto.google.protobuf.FieldOptions} msg The message object to deserialize into.
  5902. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5903. * @return {!proto.google.protobuf.FieldOptions}
  5904. */
  5905. proto.google.protobuf.FieldOptions.deserializeBinaryFromReader = function(msg, reader) {
  5906. while (reader.nextField()) {
  5907. if (reader.isEndGroup()) {
  5908. break;
  5909. }
  5910. var field = reader.getFieldNumber();
  5911. switch (field) {
  5912. case 1:
  5913. var value = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (reader.readEnum());
  5914. msg.setCtype(value);
  5915. break;
  5916. case 2:
  5917. var value = /** @type {boolean} */ (reader.readBool());
  5918. msg.setPacked(value);
  5919. break;
  5920. case 6:
  5921. var value = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (reader.readEnum());
  5922. msg.setJstype(value);
  5923. break;
  5924. case 5:
  5925. var value = /** @type {boolean} */ (reader.readBool());
  5926. msg.setLazy(value);
  5927. break;
  5928. case 15:
  5929. var value = /** @type {boolean} */ (reader.readBool());
  5930. msg.setUnverifiedLazy(value);
  5931. break;
  5932. case 3:
  5933. var value = /** @type {boolean} */ (reader.readBool());
  5934. msg.setDeprecated(value);
  5935. break;
  5936. case 10:
  5937. var value = /** @type {boolean} */ (reader.readBool());
  5938. msg.setWeak(value);
  5939. break;
  5940. case 999:
  5941. var value = new proto.google.protobuf.UninterpretedOption;
  5942. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  5943. msg.addUninterpretedOption(value);
  5944. break;
  5945. default:
  5946. jspb.Message.readBinaryExtension(msg, reader,
  5947. proto.google.protobuf.FieldOptions.extensionsBinary,
  5948. proto.google.protobuf.FieldOptions.prototype.getExtension,
  5949. proto.google.protobuf.FieldOptions.prototype.setExtension);
  5950. break;
  5951. }
  5952. }
  5953. return msg;
  5954. };
  5955. /**
  5956. * Serializes the message to binary data (in protobuf wire format).
  5957. * @return {!Uint8Array}
  5958. */
  5959. proto.google.protobuf.FieldOptions.prototype.serializeBinary = function() {
  5960. var writer = new jspb.BinaryWriter();
  5961. proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this, writer);
  5962. return writer.getResultBuffer();
  5963. };
  5964. /**
  5965. * Serializes the given message to binary data (in protobuf wire
  5966. * format), writing to the given BinaryWriter.
  5967. * @param {!proto.google.protobuf.FieldOptions} message
  5968. * @param {!jspb.BinaryWriter} writer
  5969. * @suppress {unusedLocalVariables} f is only used for nested messages
  5970. */
  5971. proto.google.protobuf.FieldOptions.serializeBinaryToWriter = function(message, writer) {
  5972. var f = undefined;
  5973. f = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getField(message, 1));
  5974. if (f != null) {
  5975. writer.writeEnum(
  5976. 1,
  5977. f
  5978. );
  5979. }
  5980. f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
  5981. if (f != null) {
  5982. writer.writeBool(
  5983. 2,
  5984. f
  5985. );
  5986. }
  5987. f = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getField(message, 6));
  5988. if (f != null) {
  5989. writer.writeEnum(
  5990. 6,
  5991. f
  5992. );
  5993. }
  5994. f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
  5995. if (f != null) {
  5996. writer.writeBool(
  5997. 5,
  5998. f
  5999. );
  6000. }
  6001. f = /** @type {boolean} */ (jspb.Message.getField(message, 15));
  6002. if (f != null) {
  6003. writer.writeBool(
  6004. 15,
  6005. f
  6006. );
  6007. }
  6008. f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
  6009. if (f != null) {
  6010. writer.writeBool(
  6011. 3,
  6012. f
  6013. );
  6014. }
  6015. f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
  6016. if (f != null) {
  6017. writer.writeBool(
  6018. 10,
  6019. f
  6020. );
  6021. }
  6022. f = message.getUninterpretedOptionList();
  6023. if (f.length > 0) {
  6024. writer.writeRepeatedMessage(
  6025. 999,
  6026. f,
  6027. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  6028. );
  6029. }
  6030. jspb.Message.serializeBinaryExtensions(message, writer,
  6031. proto.google.protobuf.FieldOptions.extensionsBinary, proto.google.protobuf.FieldOptions.prototype.getExtension);
  6032. };
  6033. /**
  6034. * @enum {number}
  6035. */
  6036. proto.google.protobuf.FieldOptions.CType = {
  6037. STRING: 0,
  6038. CORD: 1,
  6039. STRING_PIECE: 2
  6040. };
  6041. /**
  6042. * @enum {number}
  6043. */
  6044. proto.google.protobuf.FieldOptions.JSType = {
  6045. JS_NORMAL: 0,
  6046. JS_STRING: 1,
  6047. JS_NUMBER: 2
  6048. };
  6049. /**
  6050. * optional CType ctype = 1;
  6051. * @return {!proto.google.protobuf.FieldOptions.CType}
  6052. */
  6053. proto.google.protobuf.FieldOptions.prototype.getCtype = function() {
  6054. return /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6055. };
  6056. /**
  6057. * @param {!proto.google.protobuf.FieldOptions.CType} value
  6058. * @return {!proto.google.protobuf.FieldOptions} returns this
  6059. */
  6060. proto.google.protobuf.FieldOptions.prototype.setCtype = function(value) {
  6061. return jspb.Message.setField(this, 1, value);
  6062. };
  6063. /**
  6064. * Clears the field making it undefined.
  6065. * @return {!proto.google.protobuf.FieldOptions} returns this
  6066. */
  6067. proto.google.protobuf.FieldOptions.prototype.clearCtype = function() {
  6068. return jspb.Message.setField(this, 1, undefined);
  6069. };
  6070. /**
  6071. * Returns whether this field is set.
  6072. * @return {boolean}
  6073. */
  6074. proto.google.protobuf.FieldOptions.prototype.hasCtype = function() {
  6075. return jspb.Message.getField(this, 1) != null;
  6076. };
  6077. /**
  6078. * optional bool packed = 2;
  6079. * @return {boolean}
  6080. */
  6081. proto.google.protobuf.FieldOptions.prototype.getPacked = function() {
  6082. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  6083. };
  6084. /**
  6085. * @param {boolean} value
  6086. * @return {!proto.google.protobuf.FieldOptions} returns this
  6087. */
  6088. proto.google.protobuf.FieldOptions.prototype.setPacked = function(value) {
  6089. return jspb.Message.setField(this, 2, value);
  6090. };
  6091. /**
  6092. * Clears the field making it undefined.
  6093. * @return {!proto.google.protobuf.FieldOptions} returns this
  6094. */
  6095. proto.google.protobuf.FieldOptions.prototype.clearPacked = function() {
  6096. return jspb.Message.setField(this, 2, undefined);
  6097. };
  6098. /**
  6099. * Returns whether this field is set.
  6100. * @return {boolean}
  6101. */
  6102. proto.google.protobuf.FieldOptions.prototype.hasPacked = function() {
  6103. return jspb.Message.getField(this, 2) != null;
  6104. };
  6105. /**
  6106. * optional JSType jstype = 6;
  6107. * @return {!proto.google.protobuf.FieldOptions.JSType}
  6108. */
  6109. proto.google.protobuf.FieldOptions.prototype.getJstype = function() {
  6110. return /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  6111. };
  6112. /**
  6113. * @param {!proto.google.protobuf.FieldOptions.JSType} value
  6114. * @return {!proto.google.protobuf.FieldOptions} returns this
  6115. */
  6116. proto.google.protobuf.FieldOptions.prototype.setJstype = function(value) {
  6117. return jspb.Message.setField(this, 6, value);
  6118. };
  6119. /**
  6120. * Clears the field making it undefined.
  6121. * @return {!proto.google.protobuf.FieldOptions} returns this
  6122. */
  6123. proto.google.protobuf.FieldOptions.prototype.clearJstype = function() {
  6124. return jspb.Message.setField(this, 6, undefined);
  6125. };
  6126. /**
  6127. * Returns whether this field is set.
  6128. * @return {boolean}
  6129. */
  6130. proto.google.protobuf.FieldOptions.prototype.hasJstype = function() {
  6131. return jspb.Message.getField(this, 6) != null;
  6132. };
  6133. /**
  6134. * optional bool lazy = 5;
  6135. * @return {boolean}
  6136. */
  6137. proto.google.protobuf.FieldOptions.prototype.getLazy = function() {
  6138. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
  6139. };
  6140. /**
  6141. * @param {boolean} value
  6142. * @return {!proto.google.protobuf.FieldOptions} returns this
  6143. */
  6144. proto.google.protobuf.FieldOptions.prototype.setLazy = function(value) {
  6145. return jspb.Message.setField(this, 5, value);
  6146. };
  6147. /**
  6148. * Clears the field making it undefined.
  6149. * @return {!proto.google.protobuf.FieldOptions} returns this
  6150. */
  6151. proto.google.protobuf.FieldOptions.prototype.clearLazy = function() {
  6152. return jspb.Message.setField(this, 5, undefined);
  6153. };
  6154. /**
  6155. * Returns whether this field is set.
  6156. * @return {boolean}
  6157. */
  6158. proto.google.protobuf.FieldOptions.prototype.hasLazy = function() {
  6159. return jspb.Message.getField(this, 5) != null;
  6160. };
  6161. /**
  6162. * optional bool unverified_lazy = 15;
  6163. * @return {boolean}
  6164. */
  6165. proto.google.protobuf.FieldOptions.prototype.getUnverifiedLazy = function() {
  6166. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false));
  6167. };
  6168. /**
  6169. * @param {boolean} value
  6170. * @return {!proto.google.protobuf.FieldOptions} returns this
  6171. */
  6172. proto.google.protobuf.FieldOptions.prototype.setUnverifiedLazy = function(value) {
  6173. return jspb.Message.setField(this, 15, value);
  6174. };
  6175. /**
  6176. * Clears the field making it undefined.
  6177. * @return {!proto.google.protobuf.FieldOptions} returns this
  6178. */
  6179. proto.google.protobuf.FieldOptions.prototype.clearUnverifiedLazy = function() {
  6180. return jspb.Message.setField(this, 15, undefined);
  6181. };
  6182. /**
  6183. * Returns whether this field is set.
  6184. * @return {boolean}
  6185. */
  6186. proto.google.protobuf.FieldOptions.prototype.hasUnverifiedLazy = function() {
  6187. return jspb.Message.getField(this, 15) != null;
  6188. };
  6189. /**
  6190. * optional bool deprecated = 3;
  6191. * @return {boolean}
  6192. */
  6193. proto.google.protobuf.FieldOptions.prototype.getDeprecated = function() {
  6194. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
  6195. };
  6196. /**
  6197. * @param {boolean} value
  6198. * @return {!proto.google.protobuf.FieldOptions} returns this
  6199. */
  6200. proto.google.protobuf.FieldOptions.prototype.setDeprecated = function(value) {
  6201. return jspb.Message.setField(this, 3, value);
  6202. };
  6203. /**
  6204. * Clears the field making it undefined.
  6205. * @return {!proto.google.protobuf.FieldOptions} returns this
  6206. */
  6207. proto.google.protobuf.FieldOptions.prototype.clearDeprecated = function() {
  6208. return jspb.Message.setField(this, 3, undefined);
  6209. };
  6210. /**
  6211. * Returns whether this field is set.
  6212. * @return {boolean}
  6213. */
  6214. proto.google.protobuf.FieldOptions.prototype.hasDeprecated = function() {
  6215. return jspb.Message.getField(this, 3) != null;
  6216. };
  6217. /**
  6218. * optional bool weak = 10;
  6219. * @return {boolean}
  6220. */
  6221. proto.google.protobuf.FieldOptions.prototype.getWeak = function() {
  6222. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
  6223. };
  6224. /**
  6225. * @param {boolean} value
  6226. * @return {!proto.google.protobuf.FieldOptions} returns this
  6227. */
  6228. proto.google.protobuf.FieldOptions.prototype.setWeak = function(value) {
  6229. return jspb.Message.setField(this, 10, value);
  6230. };
  6231. /**
  6232. * Clears the field making it undefined.
  6233. * @return {!proto.google.protobuf.FieldOptions} returns this
  6234. */
  6235. proto.google.protobuf.FieldOptions.prototype.clearWeak = function() {
  6236. return jspb.Message.setField(this, 10, undefined);
  6237. };
  6238. /**
  6239. * Returns whether this field is set.
  6240. * @return {boolean}
  6241. */
  6242. proto.google.protobuf.FieldOptions.prototype.hasWeak = function() {
  6243. return jspb.Message.getField(this, 10) != null;
  6244. };
  6245. /**
  6246. * repeated UninterpretedOption uninterpreted_option = 999;
  6247. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  6248. */
  6249. proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList = function() {
  6250. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  6251. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  6252. };
  6253. /**
  6254. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  6255. * @return {!proto.google.protobuf.FieldOptions} returns this
  6256. */
  6257. proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList = function(value) {
  6258. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  6259. };
  6260. /**
  6261. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  6262. * @param {number=} opt_index
  6263. * @return {!proto.google.protobuf.UninterpretedOption}
  6264. */
  6265. proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  6266. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  6267. };
  6268. /**
  6269. * Clears the list making it empty but non-null.
  6270. * @return {!proto.google.protobuf.FieldOptions} returns this
  6271. */
  6272. proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList = function() {
  6273. return this.setUninterpretedOptionList([]);
  6274. };
  6275. /**
  6276. * List of repeated fields within this message type.
  6277. * @private {!Array<number>}
  6278. * @const
  6279. */
  6280. proto.google.protobuf.OneofOptions.repeatedFields_ = [999];
  6281. if (jspb.Message.GENERATE_TO_OBJECT) {
  6282. /**
  6283. * Creates an object representation of this proto.
  6284. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6285. * Optional fields that are not set will be set to undefined.
  6286. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6287. * For the list of reserved names please see:
  6288. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6289. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6290. * JSPB instance for transitional soy proto support:
  6291. * http://goto/soy-param-migration
  6292. * @return {!Object}
  6293. */
  6294. proto.google.protobuf.OneofOptions.prototype.toObject = function(opt_includeInstance) {
  6295. return proto.google.protobuf.OneofOptions.toObject(opt_includeInstance, this);
  6296. };
  6297. /**
  6298. * Static version of the {@see toObject} method.
  6299. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6300. * the JSPB instance for transitional soy proto support:
  6301. * http://goto/soy-param-migration
  6302. * @param {!proto.google.protobuf.OneofOptions} msg The msg instance to transform.
  6303. * @return {!Object}
  6304. * @suppress {unusedLocalVariables} f is only used for nested messages
  6305. */
  6306. proto.google.protobuf.OneofOptions.toObject = function(includeInstance, msg) {
  6307. var f, obj = {
  6308. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  6309. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  6310. };
  6311. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  6312. proto.google.protobuf.OneofOptions.extensions, proto.google.protobuf.OneofOptions.prototype.getExtension,
  6313. includeInstance);
  6314. if (includeInstance) {
  6315. obj.$jspbMessageInstance = msg;
  6316. }
  6317. return obj;
  6318. };
  6319. }
  6320. /**
  6321. * Deserializes binary data (in protobuf wire format).
  6322. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6323. * @return {!proto.google.protobuf.OneofOptions}
  6324. */
  6325. proto.google.protobuf.OneofOptions.deserializeBinary = function(bytes) {
  6326. var reader = new jspb.BinaryReader(bytes);
  6327. var msg = new proto.google.protobuf.OneofOptions;
  6328. return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(msg, reader);
  6329. };
  6330. /**
  6331. * Deserializes binary data (in protobuf wire format) from the
  6332. * given reader into the given message object.
  6333. * @param {!proto.google.protobuf.OneofOptions} msg The message object to deserialize into.
  6334. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6335. * @return {!proto.google.protobuf.OneofOptions}
  6336. */
  6337. proto.google.protobuf.OneofOptions.deserializeBinaryFromReader = function(msg, reader) {
  6338. while (reader.nextField()) {
  6339. if (reader.isEndGroup()) {
  6340. break;
  6341. }
  6342. var field = reader.getFieldNumber();
  6343. switch (field) {
  6344. case 999:
  6345. var value = new proto.google.protobuf.UninterpretedOption;
  6346. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  6347. msg.addUninterpretedOption(value);
  6348. break;
  6349. default:
  6350. jspb.Message.readBinaryExtension(msg, reader,
  6351. proto.google.protobuf.OneofOptions.extensionsBinary,
  6352. proto.google.protobuf.OneofOptions.prototype.getExtension,
  6353. proto.google.protobuf.OneofOptions.prototype.setExtension);
  6354. break;
  6355. }
  6356. }
  6357. return msg;
  6358. };
  6359. /**
  6360. * Serializes the message to binary data (in protobuf wire format).
  6361. * @return {!Uint8Array}
  6362. */
  6363. proto.google.protobuf.OneofOptions.prototype.serializeBinary = function() {
  6364. var writer = new jspb.BinaryWriter();
  6365. proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this, writer);
  6366. return writer.getResultBuffer();
  6367. };
  6368. /**
  6369. * Serializes the given message to binary data (in protobuf wire
  6370. * format), writing to the given BinaryWriter.
  6371. * @param {!proto.google.protobuf.OneofOptions} message
  6372. * @param {!jspb.BinaryWriter} writer
  6373. * @suppress {unusedLocalVariables} f is only used for nested messages
  6374. */
  6375. proto.google.protobuf.OneofOptions.serializeBinaryToWriter = function(message, writer) {
  6376. var f = undefined;
  6377. f = message.getUninterpretedOptionList();
  6378. if (f.length > 0) {
  6379. writer.writeRepeatedMessage(
  6380. 999,
  6381. f,
  6382. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  6383. );
  6384. }
  6385. jspb.Message.serializeBinaryExtensions(message, writer,
  6386. proto.google.protobuf.OneofOptions.extensionsBinary, proto.google.protobuf.OneofOptions.prototype.getExtension);
  6387. };
  6388. /**
  6389. * repeated UninterpretedOption uninterpreted_option = 999;
  6390. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  6391. */
  6392. proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList = function() {
  6393. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  6394. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  6395. };
  6396. /**
  6397. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  6398. * @return {!proto.google.protobuf.OneofOptions} returns this
  6399. */
  6400. proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList = function(value) {
  6401. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  6402. };
  6403. /**
  6404. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  6405. * @param {number=} opt_index
  6406. * @return {!proto.google.protobuf.UninterpretedOption}
  6407. */
  6408. proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  6409. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  6410. };
  6411. /**
  6412. * Clears the list making it empty but non-null.
  6413. * @return {!proto.google.protobuf.OneofOptions} returns this
  6414. */
  6415. proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList = function() {
  6416. return this.setUninterpretedOptionList([]);
  6417. };
  6418. /**
  6419. * List of repeated fields within this message type.
  6420. * @private {!Array<number>}
  6421. * @const
  6422. */
  6423. proto.google.protobuf.EnumOptions.repeatedFields_ = [999];
  6424. if (jspb.Message.GENERATE_TO_OBJECT) {
  6425. /**
  6426. * Creates an object representation of this proto.
  6427. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6428. * Optional fields that are not set will be set to undefined.
  6429. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6430. * For the list of reserved names please see:
  6431. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6432. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6433. * JSPB instance for transitional soy proto support:
  6434. * http://goto/soy-param-migration
  6435. * @return {!Object}
  6436. */
  6437. proto.google.protobuf.EnumOptions.prototype.toObject = function(opt_includeInstance) {
  6438. return proto.google.protobuf.EnumOptions.toObject(opt_includeInstance, this);
  6439. };
  6440. /**
  6441. * Static version of the {@see toObject} method.
  6442. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6443. * the JSPB instance for transitional soy proto support:
  6444. * http://goto/soy-param-migration
  6445. * @param {!proto.google.protobuf.EnumOptions} msg The msg instance to transform.
  6446. * @return {!Object}
  6447. * @suppress {unusedLocalVariables} f is only used for nested messages
  6448. */
  6449. proto.google.protobuf.EnumOptions.toObject = function(includeInstance, msg) {
  6450. var f, obj = {
  6451. allowAlias: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f,
  6452. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
  6453. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  6454. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  6455. };
  6456. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  6457. proto.google.protobuf.EnumOptions.extensions, proto.google.protobuf.EnumOptions.prototype.getExtension,
  6458. includeInstance);
  6459. if (includeInstance) {
  6460. obj.$jspbMessageInstance = msg;
  6461. }
  6462. return obj;
  6463. };
  6464. }
  6465. /**
  6466. * Deserializes binary data (in protobuf wire format).
  6467. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6468. * @return {!proto.google.protobuf.EnumOptions}
  6469. */
  6470. proto.google.protobuf.EnumOptions.deserializeBinary = function(bytes) {
  6471. var reader = new jspb.BinaryReader(bytes);
  6472. var msg = new proto.google.protobuf.EnumOptions;
  6473. return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(msg, reader);
  6474. };
  6475. /**
  6476. * Deserializes binary data (in protobuf wire format) from the
  6477. * given reader into the given message object.
  6478. * @param {!proto.google.protobuf.EnumOptions} msg The message object to deserialize into.
  6479. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6480. * @return {!proto.google.protobuf.EnumOptions}
  6481. */
  6482. proto.google.protobuf.EnumOptions.deserializeBinaryFromReader = function(msg, reader) {
  6483. while (reader.nextField()) {
  6484. if (reader.isEndGroup()) {
  6485. break;
  6486. }
  6487. var field = reader.getFieldNumber();
  6488. switch (field) {
  6489. case 2:
  6490. var value = /** @type {boolean} */ (reader.readBool());
  6491. msg.setAllowAlias(value);
  6492. break;
  6493. case 3:
  6494. var value = /** @type {boolean} */ (reader.readBool());
  6495. msg.setDeprecated(value);
  6496. break;
  6497. case 999:
  6498. var value = new proto.google.protobuf.UninterpretedOption;
  6499. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  6500. msg.addUninterpretedOption(value);
  6501. break;
  6502. default:
  6503. jspb.Message.readBinaryExtension(msg, reader,
  6504. proto.google.protobuf.EnumOptions.extensionsBinary,
  6505. proto.google.protobuf.EnumOptions.prototype.getExtension,
  6506. proto.google.protobuf.EnumOptions.prototype.setExtension);
  6507. break;
  6508. }
  6509. }
  6510. return msg;
  6511. };
  6512. /**
  6513. * Serializes the message to binary data (in protobuf wire format).
  6514. * @return {!Uint8Array}
  6515. */
  6516. proto.google.protobuf.EnumOptions.prototype.serializeBinary = function() {
  6517. var writer = new jspb.BinaryWriter();
  6518. proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this, writer);
  6519. return writer.getResultBuffer();
  6520. };
  6521. /**
  6522. * Serializes the given message to binary data (in protobuf wire
  6523. * format), writing to the given BinaryWriter.
  6524. * @param {!proto.google.protobuf.EnumOptions} message
  6525. * @param {!jspb.BinaryWriter} writer
  6526. * @suppress {unusedLocalVariables} f is only used for nested messages
  6527. */
  6528. proto.google.protobuf.EnumOptions.serializeBinaryToWriter = function(message, writer) {
  6529. var f = undefined;
  6530. f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
  6531. if (f != null) {
  6532. writer.writeBool(
  6533. 2,
  6534. f
  6535. );
  6536. }
  6537. f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
  6538. if (f != null) {
  6539. writer.writeBool(
  6540. 3,
  6541. f
  6542. );
  6543. }
  6544. f = message.getUninterpretedOptionList();
  6545. if (f.length > 0) {
  6546. writer.writeRepeatedMessage(
  6547. 999,
  6548. f,
  6549. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  6550. );
  6551. }
  6552. jspb.Message.serializeBinaryExtensions(message, writer,
  6553. proto.google.protobuf.EnumOptions.extensionsBinary, proto.google.protobuf.EnumOptions.prototype.getExtension);
  6554. };
  6555. /**
  6556. * optional bool allow_alias = 2;
  6557. * @return {boolean}
  6558. */
  6559. proto.google.protobuf.EnumOptions.prototype.getAllowAlias = function() {
  6560. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  6561. };
  6562. /**
  6563. * @param {boolean} value
  6564. * @return {!proto.google.protobuf.EnumOptions} returns this
  6565. */
  6566. proto.google.protobuf.EnumOptions.prototype.setAllowAlias = function(value) {
  6567. return jspb.Message.setField(this, 2, value);
  6568. };
  6569. /**
  6570. * Clears the field making it undefined.
  6571. * @return {!proto.google.protobuf.EnumOptions} returns this
  6572. */
  6573. proto.google.protobuf.EnumOptions.prototype.clearAllowAlias = function() {
  6574. return jspb.Message.setField(this, 2, undefined);
  6575. };
  6576. /**
  6577. * Returns whether this field is set.
  6578. * @return {boolean}
  6579. */
  6580. proto.google.protobuf.EnumOptions.prototype.hasAllowAlias = function() {
  6581. return jspb.Message.getField(this, 2) != null;
  6582. };
  6583. /**
  6584. * optional bool deprecated = 3;
  6585. * @return {boolean}
  6586. */
  6587. proto.google.protobuf.EnumOptions.prototype.getDeprecated = function() {
  6588. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
  6589. };
  6590. /**
  6591. * @param {boolean} value
  6592. * @return {!proto.google.protobuf.EnumOptions} returns this
  6593. */
  6594. proto.google.protobuf.EnumOptions.prototype.setDeprecated = function(value) {
  6595. return jspb.Message.setField(this, 3, value);
  6596. };
  6597. /**
  6598. * Clears the field making it undefined.
  6599. * @return {!proto.google.protobuf.EnumOptions} returns this
  6600. */
  6601. proto.google.protobuf.EnumOptions.prototype.clearDeprecated = function() {
  6602. return jspb.Message.setField(this, 3, undefined);
  6603. };
  6604. /**
  6605. * Returns whether this field is set.
  6606. * @return {boolean}
  6607. */
  6608. proto.google.protobuf.EnumOptions.prototype.hasDeprecated = function() {
  6609. return jspb.Message.getField(this, 3) != null;
  6610. };
  6611. /**
  6612. * repeated UninterpretedOption uninterpreted_option = 999;
  6613. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  6614. */
  6615. proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList = function() {
  6616. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  6617. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  6618. };
  6619. /**
  6620. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  6621. * @return {!proto.google.protobuf.EnumOptions} returns this
  6622. */
  6623. proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList = function(value) {
  6624. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  6625. };
  6626. /**
  6627. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  6628. * @param {number=} opt_index
  6629. * @return {!proto.google.protobuf.UninterpretedOption}
  6630. */
  6631. proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  6632. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  6633. };
  6634. /**
  6635. * Clears the list making it empty but non-null.
  6636. * @return {!proto.google.protobuf.EnumOptions} returns this
  6637. */
  6638. proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList = function() {
  6639. return this.setUninterpretedOptionList([]);
  6640. };
  6641. /**
  6642. * List of repeated fields within this message type.
  6643. * @private {!Array<number>}
  6644. * @const
  6645. */
  6646. proto.google.protobuf.EnumValueOptions.repeatedFields_ = [999];
  6647. if (jspb.Message.GENERATE_TO_OBJECT) {
  6648. /**
  6649. * Creates an object representation of this proto.
  6650. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6651. * Optional fields that are not set will be set to undefined.
  6652. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6653. * For the list of reserved names please see:
  6654. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6655. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6656. * JSPB instance for transitional soy proto support:
  6657. * http://goto/soy-param-migration
  6658. * @return {!Object}
  6659. */
  6660. proto.google.protobuf.EnumValueOptions.prototype.toObject = function(opt_includeInstance) {
  6661. return proto.google.protobuf.EnumValueOptions.toObject(opt_includeInstance, this);
  6662. };
  6663. /**
  6664. * Static version of the {@see toObject} method.
  6665. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6666. * the JSPB instance for transitional soy proto support:
  6667. * http://goto/soy-param-migration
  6668. * @param {!proto.google.protobuf.EnumValueOptions} msg The msg instance to transform.
  6669. * @return {!Object}
  6670. * @suppress {unusedLocalVariables} f is only used for nested messages
  6671. */
  6672. proto.google.protobuf.EnumValueOptions.toObject = function(includeInstance, msg) {
  6673. var f, obj = {
  6674. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  6675. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  6676. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  6677. };
  6678. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  6679. proto.google.protobuf.EnumValueOptions.extensions, proto.google.protobuf.EnumValueOptions.prototype.getExtension,
  6680. includeInstance);
  6681. if (includeInstance) {
  6682. obj.$jspbMessageInstance = msg;
  6683. }
  6684. return obj;
  6685. };
  6686. }
  6687. /**
  6688. * Deserializes binary data (in protobuf wire format).
  6689. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6690. * @return {!proto.google.protobuf.EnumValueOptions}
  6691. */
  6692. proto.google.protobuf.EnumValueOptions.deserializeBinary = function(bytes) {
  6693. var reader = new jspb.BinaryReader(bytes);
  6694. var msg = new proto.google.protobuf.EnumValueOptions;
  6695. return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(msg, reader);
  6696. };
  6697. /**
  6698. * Deserializes binary data (in protobuf wire format) from the
  6699. * given reader into the given message object.
  6700. * @param {!proto.google.protobuf.EnumValueOptions} msg The message object to deserialize into.
  6701. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6702. * @return {!proto.google.protobuf.EnumValueOptions}
  6703. */
  6704. proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader = function(msg, reader) {
  6705. while (reader.nextField()) {
  6706. if (reader.isEndGroup()) {
  6707. break;
  6708. }
  6709. var field = reader.getFieldNumber();
  6710. switch (field) {
  6711. case 1:
  6712. var value = /** @type {boolean} */ (reader.readBool());
  6713. msg.setDeprecated(value);
  6714. break;
  6715. case 999:
  6716. var value = new proto.google.protobuf.UninterpretedOption;
  6717. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  6718. msg.addUninterpretedOption(value);
  6719. break;
  6720. default:
  6721. jspb.Message.readBinaryExtension(msg, reader,
  6722. proto.google.protobuf.EnumValueOptions.extensionsBinary,
  6723. proto.google.protobuf.EnumValueOptions.prototype.getExtension,
  6724. proto.google.protobuf.EnumValueOptions.prototype.setExtension);
  6725. break;
  6726. }
  6727. }
  6728. return msg;
  6729. };
  6730. /**
  6731. * Serializes the message to binary data (in protobuf wire format).
  6732. * @return {!Uint8Array}
  6733. */
  6734. proto.google.protobuf.EnumValueOptions.prototype.serializeBinary = function() {
  6735. var writer = new jspb.BinaryWriter();
  6736. proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this, writer);
  6737. return writer.getResultBuffer();
  6738. };
  6739. /**
  6740. * Serializes the given message to binary data (in protobuf wire
  6741. * format), writing to the given BinaryWriter.
  6742. * @param {!proto.google.protobuf.EnumValueOptions} message
  6743. * @param {!jspb.BinaryWriter} writer
  6744. * @suppress {unusedLocalVariables} f is only used for nested messages
  6745. */
  6746. proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter = function(message, writer) {
  6747. var f = undefined;
  6748. f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
  6749. if (f != null) {
  6750. writer.writeBool(
  6751. 1,
  6752. f
  6753. );
  6754. }
  6755. f = message.getUninterpretedOptionList();
  6756. if (f.length > 0) {
  6757. writer.writeRepeatedMessage(
  6758. 999,
  6759. f,
  6760. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  6761. );
  6762. }
  6763. jspb.Message.serializeBinaryExtensions(message, writer,
  6764. proto.google.protobuf.EnumValueOptions.extensionsBinary, proto.google.protobuf.EnumValueOptions.prototype.getExtension);
  6765. };
  6766. /**
  6767. * optional bool deprecated = 1;
  6768. * @return {boolean}
  6769. */
  6770. proto.google.protobuf.EnumValueOptions.prototype.getDeprecated = function() {
  6771. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  6772. };
  6773. /**
  6774. * @param {boolean} value
  6775. * @return {!proto.google.protobuf.EnumValueOptions} returns this
  6776. */
  6777. proto.google.protobuf.EnumValueOptions.prototype.setDeprecated = function(value) {
  6778. return jspb.Message.setField(this, 1, value);
  6779. };
  6780. /**
  6781. * Clears the field making it undefined.
  6782. * @return {!proto.google.protobuf.EnumValueOptions} returns this
  6783. */
  6784. proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated = function() {
  6785. return jspb.Message.setField(this, 1, undefined);
  6786. };
  6787. /**
  6788. * Returns whether this field is set.
  6789. * @return {boolean}
  6790. */
  6791. proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated = function() {
  6792. return jspb.Message.getField(this, 1) != null;
  6793. };
  6794. /**
  6795. * repeated UninterpretedOption uninterpreted_option = 999;
  6796. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  6797. */
  6798. proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList = function() {
  6799. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  6800. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  6801. };
  6802. /**
  6803. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  6804. * @return {!proto.google.protobuf.EnumValueOptions} returns this
  6805. */
  6806. proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList = function(value) {
  6807. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  6808. };
  6809. /**
  6810. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  6811. * @param {number=} opt_index
  6812. * @return {!proto.google.protobuf.UninterpretedOption}
  6813. */
  6814. proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  6815. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  6816. };
  6817. /**
  6818. * Clears the list making it empty but non-null.
  6819. * @return {!proto.google.protobuf.EnumValueOptions} returns this
  6820. */
  6821. proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList = function() {
  6822. return this.setUninterpretedOptionList([]);
  6823. };
  6824. /**
  6825. * List of repeated fields within this message type.
  6826. * @private {!Array<number>}
  6827. * @const
  6828. */
  6829. proto.google.protobuf.ServiceOptions.repeatedFields_ = [999];
  6830. if (jspb.Message.GENERATE_TO_OBJECT) {
  6831. /**
  6832. * Creates an object representation of this proto.
  6833. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6834. * Optional fields that are not set will be set to undefined.
  6835. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6836. * For the list of reserved names please see:
  6837. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6838. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6839. * JSPB instance for transitional soy proto support:
  6840. * http://goto/soy-param-migration
  6841. * @return {!Object}
  6842. */
  6843. proto.google.protobuf.ServiceOptions.prototype.toObject = function(opt_includeInstance) {
  6844. return proto.google.protobuf.ServiceOptions.toObject(opt_includeInstance, this);
  6845. };
  6846. /**
  6847. * Static version of the {@see toObject} method.
  6848. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6849. * the JSPB instance for transitional soy proto support:
  6850. * http://goto/soy-param-migration
  6851. * @param {!proto.google.protobuf.ServiceOptions} msg The msg instance to transform.
  6852. * @return {!Object}
  6853. * @suppress {unusedLocalVariables} f is only used for nested messages
  6854. */
  6855. proto.google.protobuf.ServiceOptions.toObject = function(includeInstance, msg) {
  6856. var f, obj = {
  6857. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false),
  6858. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  6859. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  6860. };
  6861. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  6862. proto.google.protobuf.ServiceOptions.extensions, proto.google.protobuf.ServiceOptions.prototype.getExtension,
  6863. includeInstance);
  6864. if (includeInstance) {
  6865. obj.$jspbMessageInstance = msg;
  6866. }
  6867. return obj;
  6868. };
  6869. }
  6870. /**
  6871. * Deserializes binary data (in protobuf wire format).
  6872. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6873. * @return {!proto.google.protobuf.ServiceOptions}
  6874. */
  6875. proto.google.protobuf.ServiceOptions.deserializeBinary = function(bytes) {
  6876. var reader = new jspb.BinaryReader(bytes);
  6877. var msg = new proto.google.protobuf.ServiceOptions;
  6878. return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(msg, reader);
  6879. };
  6880. /**
  6881. * Deserializes binary data (in protobuf wire format) from the
  6882. * given reader into the given message object.
  6883. * @param {!proto.google.protobuf.ServiceOptions} msg The message object to deserialize into.
  6884. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6885. * @return {!proto.google.protobuf.ServiceOptions}
  6886. */
  6887. proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader = function(msg, reader) {
  6888. while (reader.nextField()) {
  6889. if (reader.isEndGroup()) {
  6890. break;
  6891. }
  6892. var field = reader.getFieldNumber();
  6893. switch (field) {
  6894. case 33:
  6895. var value = /** @type {boolean} */ (reader.readBool());
  6896. msg.setDeprecated(value);
  6897. break;
  6898. case 999:
  6899. var value = new proto.google.protobuf.UninterpretedOption;
  6900. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  6901. msg.addUninterpretedOption(value);
  6902. break;
  6903. default:
  6904. jspb.Message.readBinaryExtension(msg, reader,
  6905. proto.google.protobuf.ServiceOptions.extensionsBinary,
  6906. proto.google.protobuf.ServiceOptions.prototype.getExtension,
  6907. proto.google.protobuf.ServiceOptions.prototype.setExtension);
  6908. break;
  6909. }
  6910. }
  6911. return msg;
  6912. };
  6913. /**
  6914. * Serializes the message to binary data (in protobuf wire format).
  6915. * @return {!Uint8Array}
  6916. */
  6917. proto.google.protobuf.ServiceOptions.prototype.serializeBinary = function() {
  6918. var writer = new jspb.BinaryWriter();
  6919. proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this, writer);
  6920. return writer.getResultBuffer();
  6921. };
  6922. /**
  6923. * Serializes the given message to binary data (in protobuf wire
  6924. * format), writing to the given BinaryWriter.
  6925. * @param {!proto.google.protobuf.ServiceOptions} message
  6926. * @param {!jspb.BinaryWriter} writer
  6927. * @suppress {unusedLocalVariables} f is only used for nested messages
  6928. */
  6929. proto.google.protobuf.ServiceOptions.serializeBinaryToWriter = function(message, writer) {
  6930. var f = undefined;
  6931. f = /** @type {boolean} */ (jspb.Message.getField(message, 33));
  6932. if (f != null) {
  6933. writer.writeBool(
  6934. 33,
  6935. f
  6936. );
  6937. }
  6938. f = message.getUninterpretedOptionList();
  6939. if (f.length > 0) {
  6940. writer.writeRepeatedMessage(
  6941. 999,
  6942. f,
  6943. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  6944. );
  6945. }
  6946. jspb.Message.serializeBinaryExtensions(message, writer,
  6947. proto.google.protobuf.ServiceOptions.extensionsBinary, proto.google.protobuf.ServiceOptions.prototype.getExtension);
  6948. };
  6949. /**
  6950. * optional bool deprecated = 33;
  6951. * @return {boolean}
  6952. */
  6953. proto.google.protobuf.ServiceOptions.prototype.getDeprecated = function() {
  6954. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false));
  6955. };
  6956. /**
  6957. * @param {boolean} value
  6958. * @return {!proto.google.protobuf.ServiceOptions} returns this
  6959. */
  6960. proto.google.protobuf.ServiceOptions.prototype.setDeprecated = function(value) {
  6961. return jspb.Message.setField(this, 33, value);
  6962. };
  6963. /**
  6964. * Clears the field making it undefined.
  6965. * @return {!proto.google.protobuf.ServiceOptions} returns this
  6966. */
  6967. proto.google.protobuf.ServiceOptions.prototype.clearDeprecated = function() {
  6968. return jspb.Message.setField(this, 33, undefined);
  6969. };
  6970. /**
  6971. * Returns whether this field is set.
  6972. * @return {boolean}
  6973. */
  6974. proto.google.protobuf.ServiceOptions.prototype.hasDeprecated = function() {
  6975. return jspb.Message.getField(this, 33) != null;
  6976. };
  6977. /**
  6978. * repeated UninterpretedOption uninterpreted_option = 999;
  6979. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  6980. */
  6981. proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList = function() {
  6982. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  6983. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  6984. };
  6985. /**
  6986. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  6987. * @return {!proto.google.protobuf.ServiceOptions} returns this
  6988. */
  6989. proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList = function(value) {
  6990. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  6991. };
  6992. /**
  6993. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  6994. * @param {number=} opt_index
  6995. * @return {!proto.google.protobuf.UninterpretedOption}
  6996. */
  6997. proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  6998. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  6999. };
  7000. /**
  7001. * Clears the list making it empty but non-null.
  7002. * @return {!proto.google.protobuf.ServiceOptions} returns this
  7003. */
  7004. proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList = function() {
  7005. return this.setUninterpretedOptionList([]);
  7006. };
  7007. /**
  7008. * List of repeated fields within this message type.
  7009. * @private {!Array<number>}
  7010. * @const
  7011. */
  7012. proto.google.protobuf.MethodOptions.repeatedFields_ = [999];
  7013. if (jspb.Message.GENERATE_TO_OBJECT) {
  7014. /**
  7015. * Creates an object representation of this proto.
  7016. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7017. * Optional fields that are not set will be set to undefined.
  7018. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7019. * For the list of reserved names please see:
  7020. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7021. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7022. * JSPB instance for transitional soy proto support:
  7023. * http://goto/soy-param-migration
  7024. * @return {!Object}
  7025. */
  7026. proto.google.protobuf.MethodOptions.prototype.toObject = function(opt_includeInstance) {
  7027. return proto.google.protobuf.MethodOptions.toObject(opt_includeInstance, this);
  7028. };
  7029. /**
  7030. * Static version of the {@see toObject} method.
  7031. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7032. * the JSPB instance for transitional soy proto support:
  7033. * http://goto/soy-param-migration
  7034. * @param {!proto.google.protobuf.MethodOptions} msg The msg instance to transform.
  7035. * @return {!Object}
  7036. * @suppress {unusedLocalVariables} f is only used for nested messages
  7037. */
  7038. proto.google.protobuf.MethodOptions.toObject = function(includeInstance, msg) {
  7039. var f, obj = {
  7040. deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false),
  7041. idempotencyLevel: jspb.Message.getFieldWithDefault(msg, 34, 0),
  7042. uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(),
  7043. proto.google.protobuf.UninterpretedOption.toObject, includeInstance)
  7044. };
  7045. jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
  7046. proto.google.protobuf.MethodOptions.extensions, proto.google.protobuf.MethodOptions.prototype.getExtension,
  7047. includeInstance);
  7048. if (includeInstance) {
  7049. obj.$jspbMessageInstance = msg;
  7050. }
  7051. return obj;
  7052. };
  7053. }
  7054. /**
  7055. * Deserializes binary data (in protobuf wire format).
  7056. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7057. * @return {!proto.google.protobuf.MethodOptions}
  7058. */
  7059. proto.google.protobuf.MethodOptions.deserializeBinary = function(bytes) {
  7060. var reader = new jspb.BinaryReader(bytes);
  7061. var msg = new proto.google.protobuf.MethodOptions;
  7062. return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(msg, reader);
  7063. };
  7064. /**
  7065. * Deserializes binary data (in protobuf wire format) from the
  7066. * given reader into the given message object.
  7067. * @param {!proto.google.protobuf.MethodOptions} msg The message object to deserialize into.
  7068. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7069. * @return {!proto.google.protobuf.MethodOptions}
  7070. */
  7071. proto.google.protobuf.MethodOptions.deserializeBinaryFromReader = function(msg, reader) {
  7072. while (reader.nextField()) {
  7073. if (reader.isEndGroup()) {
  7074. break;
  7075. }
  7076. var field = reader.getFieldNumber();
  7077. switch (field) {
  7078. case 33:
  7079. var value = /** @type {boolean} */ (reader.readBool());
  7080. msg.setDeprecated(value);
  7081. break;
  7082. case 34:
  7083. var value = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (reader.readEnum());
  7084. msg.setIdempotencyLevel(value);
  7085. break;
  7086. case 999:
  7087. var value = new proto.google.protobuf.UninterpretedOption;
  7088. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader);
  7089. msg.addUninterpretedOption(value);
  7090. break;
  7091. default:
  7092. jspb.Message.readBinaryExtension(msg, reader,
  7093. proto.google.protobuf.MethodOptions.extensionsBinary,
  7094. proto.google.protobuf.MethodOptions.prototype.getExtension,
  7095. proto.google.protobuf.MethodOptions.prototype.setExtension);
  7096. break;
  7097. }
  7098. }
  7099. return msg;
  7100. };
  7101. /**
  7102. * Serializes the message to binary data (in protobuf wire format).
  7103. * @return {!Uint8Array}
  7104. */
  7105. proto.google.protobuf.MethodOptions.prototype.serializeBinary = function() {
  7106. var writer = new jspb.BinaryWriter();
  7107. proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this, writer);
  7108. return writer.getResultBuffer();
  7109. };
  7110. /**
  7111. * Serializes the given message to binary data (in protobuf wire
  7112. * format), writing to the given BinaryWriter.
  7113. * @param {!proto.google.protobuf.MethodOptions} message
  7114. * @param {!jspb.BinaryWriter} writer
  7115. * @suppress {unusedLocalVariables} f is only used for nested messages
  7116. */
  7117. proto.google.protobuf.MethodOptions.serializeBinaryToWriter = function(message, writer) {
  7118. var f = undefined;
  7119. f = /** @type {boolean} */ (jspb.Message.getField(message, 33));
  7120. if (f != null) {
  7121. writer.writeBool(
  7122. 33,
  7123. f
  7124. );
  7125. }
  7126. f = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getField(message, 34));
  7127. if (f != null) {
  7128. writer.writeEnum(
  7129. 34,
  7130. f
  7131. );
  7132. }
  7133. f = message.getUninterpretedOptionList();
  7134. if (f.length > 0) {
  7135. writer.writeRepeatedMessage(
  7136. 999,
  7137. f,
  7138. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter
  7139. );
  7140. }
  7141. jspb.Message.serializeBinaryExtensions(message, writer,
  7142. proto.google.protobuf.MethodOptions.extensionsBinary, proto.google.protobuf.MethodOptions.prototype.getExtension);
  7143. };
  7144. /**
  7145. * @enum {number}
  7146. */
  7147. proto.google.protobuf.MethodOptions.IdempotencyLevel = {
  7148. IDEMPOTENCY_UNKNOWN: 0,
  7149. NO_SIDE_EFFECTS: 1,
  7150. IDEMPOTENT: 2
  7151. };
  7152. /**
  7153. * optional bool deprecated = 33;
  7154. * @return {boolean}
  7155. */
  7156. proto.google.protobuf.MethodOptions.prototype.getDeprecated = function() {
  7157. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false));
  7158. };
  7159. /**
  7160. * @param {boolean} value
  7161. * @return {!proto.google.protobuf.MethodOptions} returns this
  7162. */
  7163. proto.google.protobuf.MethodOptions.prototype.setDeprecated = function(value) {
  7164. return jspb.Message.setField(this, 33, value);
  7165. };
  7166. /**
  7167. * Clears the field making it undefined.
  7168. * @return {!proto.google.protobuf.MethodOptions} returns this
  7169. */
  7170. proto.google.protobuf.MethodOptions.prototype.clearDeprecated = function() {
  7171. return jspb.Message.setField(this, 33, undefined);
  7172. };
  7173. /**
  7174. * Returns whether this field is set.
  7175. * @return {boolean}
  7176. */
  7177. proto.google.protobuf.MethodOptions.prototype.hasDeprecated = function() {
  7178. return jspb.Message.getField(this, 33) != null;
  7179. };
  7180. /**
  7181. * optional IdempotencyLevel idempotency_level = 34;
  7182. * @return {!proto.google.protobuf.MethodOptions.IdempotencyLevel}
  7183. */
  7184. proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel = function() {
  7185. return /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getFieldWithDefault(this, 34, 0));
  7186. };
  7187. /**
  7188. * @param {!proto.google.protobuf.MethodOptions.IdempotencyLevel} value
  7189. * @return {!proto.google.protobuf.MethodOptions} returns this
  7190. */
  7191. proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel = function(value) {
  7192. return jspb.Message.setField(this, 34, value);
  7193. };
  7194. /**
  7195. * Clears the field making it undefined.
  7196. * @return {!proto.google.protobuf.MethodOptions} returns this
  7197. */
  7198. proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel = function() {
  7199. return jspb.Message.setField(this, 34, undefined);
  7200. };
  7201. /**
  7202. * Returns whether this field is set.
  7203. * @return {boolean}
  7204. */
  7205. proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel = function() {
  7206. return jspb.Message.getField(this, 34) != null;
  7207. };
  7208. /**
  7209. * repeated UninterpretedOption uninterpreted_option = 999;
  7210. * @return {!Array<!proto.google.protobuf.UninterpretedOption>}
  7211. */
  7212. proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList = function() {
  7213. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ (
  7214. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999));
  7215. };
  7216. /**
  7217. * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value
  7218. * @return {!proto.google.protobuf.MethodOptions} returns this
  7219. */
  7220. proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList = function(value) {
  7221. return jspb.Message.setRepeatedWrapperField(this, 999, value);
  7222. };
  7223. /**
  7224. * @param {!proto.google.protobuf.UninterpretedOption=} opt_value
  7225. * @param {number=} opt_index
  7226. * @return {!proto.google.protobuf.UninterpretedOption}
  7227. */
  7228. proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) {
  7229. return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index);
  7230. };
  7231. /**
  7232. * Clears the list making it empty but non-null.
  7233. * @return {!proto.google.protobuf.MethodOptions} returns this
  7234. */
  7235. proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList = function() {
  7236. return this.setUninterpretedOptionList([]);
  7237. };
  7238. /**
  7239. * List of repeated fields within this message type.
  7240. * @private {!Array<number>}
  7241. * @const
  7242. */
  7243. proto.google.protobuf.UninterpretedOption.repeatedFields_ = [2];
  7244. if (jspb.Message.GENERATE_TO_OBJECT) {
  7245. /**
  7246. * Creates an object representation of this proto.
  7247. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7248. * Optional fields that are not set will be set to undefined.
  7249. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7250. * For the list of reserved names please see:
  7251. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7252. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7253. * JSPB instance for transitional soy proto support:
  7254. * http://goto/soy-param-migration
  7255. * @return {!Object}
  7256. */
  7257. proto.google.protobuf.UninterpretedOption.prototype.toObject = function(opt_includeInstance) {
  7258. return proto.google.protobuf.UninterpretedOption.toObject(opt_includeInstance, this);
  7259. };
  7260. /**
  7261. * Static version of the {@see toObject} method.
  7262. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7263. * the JSPB instance for transitional soy proto support:
  7264. * http://goto/soy-param-migration
  7265. * @param {!proto.google.protobuf.UninterpretedOption} msg The msg instance to transform.
  7266. * @return {!Object}
  7267. * @suppress {unusedLocalVariables} f is only used for nested messages
  7268. */
  7269. proto.google.protobuf.UninterpretedOption.toObject = function(includeInstance, msg) {
  7270. var f, obj = {
  7271. nameList: jspb.Message.toObjectList(msg.getNameList(),
  7272. proto.google.protobuf.UninterpretedOption.NamePart.toObject, includeInstance),
  7273. identifierValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  7274. positiveIntValue: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  7275. negativeIntValue: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
  7276. doubleValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f,
  7277. stringValue: msg.getStringValue_asB64(),
  7278. aggregateValue: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f
  7279. };
  7280. if (includeInstance) {
  7281. obj.$jspbMessageInstance = msg;
  7282. }
  7283. return obj;
  7284. };
  7285. }
  7286. /**
  7287. * Deserializes binary data (in protobuf wire format).
  7288. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7289. * @return {!proto.google.protobuf.UninterpretedOption}
  7290. */
  7291. proto.google.protobuf.UninterpretedOption.deserializeBinary = function(bytes) {
  7292. var reader = new jspb.BinaryReader(bytes);
  7293. var msg = new proto.google.protobuf.UninterpretedOption;
  7294. return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(msg, reader);
  7295. };
  7296. /**
  7297. * Deserializes binary data (in protobuf wire format) from the
  7298. * given reader into the given message object.
  7299. * @param {!proto.google.protobuf.UninterpretedOption} msg The message object to deserialize into.
  7300. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7301. * @return {!proto.google.protobuf.UninterpretedOption}
  7302. */
  7303. proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader = function(msg, reader) {
  7304. while (reader.nextField()) {
  7305. if (reader.isEndGroup()) {
  7306. break;
  7307. }
  7308. var field = reader.getFieldNumber();
  7309. switch (field) {
  7310. case 2:
  7311. var value = new proto.google.protobuf.UninterpretedOption.NamePart;
  7312. reader.readMessage(value,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader);
  7313. msg.addName(value);
  7314. break;
  7315. case 3:
  7316. var value = /** @type {string} */ (reader.readString());
  7317. msg.setIdentifierValue(value);
  7318. break;
  7319. case 4:
  7320. var value = /** @type {number} */ (reader.readUint64());
  7321. msg.setPositiveIntValue(value);
  7322. break;
  7323. case 5:
  7324. var value = /** @type {number} */ (reader.readInt64());
  7325. msg.setNegativeIntValue(value);
  7326. break;
  7327. case 6:
  7328. var value = /** @type {number} */ (reader.readDouble());
  7329. msg.setDoubleValue(value);
  7330. break;
  7331. case 7:
  7332. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  7333. msg.setStringValue(value);
  7334. break;
  7335. case 8:
  7336. var value = /** @type {string} */ (reader.readString());
  7337. msg.setAggregateValue(value);
  7338. break;
  7339. default:
  7340. reader.skipField();
  7341. break;
  7342. }
  7343. }
  7344. return msg;
  7345. };
  7346. /**
  7347. * Serializes the message to binary data (in protobuf wire format).
  7348. * @return {!Uint8Array}
  7349. */
  7350. proto.google.protobuf.UninterpretedOption.prototype.serializeBinary = function() {
  7351. var writer = new jspb.BinaryWriter();
  7352. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this, writer);
  7353. return writer.getResultBuffer();
  7354. };
  7355. /**
  7356. * Serializes the given message to binary data (in protobuf wire
  7357. * format), writing to the given BinaryWriter.
  7358. * @param {!proto.google.protobuf.UninterpretedOption} message
  7359. * @param {!jspb.BinaryWriter} writer
  7360. * @suppress {unusedLocalVariables} f is only used for nested messages
  7361. */
  7362. proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter = function(message, writer) {
  7363. var f = undefined;
  7364. f = message.getNameList();
  7365. if (f.length > 0) {
  7366. writer.writeRepeatedMessage(
  7367. 2,
  7368. f,
  7369. proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter
  7370. );
  7371. }
  7372. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  7373. if (f != null) {
  7374. writer.writeString(
  7375. 3,
  7376. f
  7377. );
  7378. }
  7379. f = /** @type {number} */ (jspb.Message.getField(message, 4));
  7380. if (f != null) {
  7381. writer.writeUint64(
  7382. 4,
  7383. f
  7384. );
  7385. }
  7386. f = /** @type {number} */ (jspb.Message.getField(message, 5));
  7387. if (f != null) {
  7388. writer.writeInt64(
  7389. 5,
  7390. f
  7391. );
  7392. }
  7393. f = /** @type {number} */ (jspb.Message.getField(message, 6));
  7394. if (f != null) {
  7395. writer.writeDouble(
  7396. 6,
  7397. f
  7398. );
  7399. }
  7400. f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7));
  7401. if (f != null) {
  7402. writer.writeBytes(
  7403. 7,
  7404. f
  7405. );
  7406. }
  7407. f = /** @type {string} */ (jspb.Message.getField(message, 8));
  7408. if (f != null) {
  7409. writer.writeString(
  7410. 8,
  7411. f
  7412. );
  7413. }
  7414. };
  7415. if (jspb.Message.GENERATE_TO_OBJECT) {
  7416. /**
  7417. * Creates an object representation of this proto.
  7418. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7419. * Optional fields that are not set will be set to undefined.
  7420. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7421. * For the list of reserved names please see:
  7422. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7423. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7424. * JSPB instance for transitional soy proto support:
  7425. * http://goto/soy-param-migration
  7426. * @return {!Object}
  7427. */
  7428. proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject = function(opt_includeInstance) {
  7429. return proto.google.protobuf.UninterpretedOption.NamePart.toObject(opt_includeInstance, this);
  7430. };
  7431. /**
  7432. * Static version of the {@see toObject} method.
  7433. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7434. * the JSPB instance for transitional soy proto support:
  7435. * http://goto/soy-param-migration
  7436. * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The msg instance to transform.
  7437. * @return {!Object}
  7438. * @suppress {unusedLocalVariables} f is only used for nested messages
  7439. */
  7440. proto.google.protobuf.UninterpretedOption.NamePart.toObject = function(includeInstance, msg) {
  7441. var f, obj = {
  7442. namePart: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
  7443. isExtension: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
  7444. };
  7445. if (includeInstance) {
  7446. obj.$jspbMessageInstance = msg;
  7447. }
  7448. return obj;
  7449. };
  7450. }
  7451. /**
  7452. * Deserializes binary data (in protobuf wire format).
  7453. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7454. * @return {!proto.google.protobuf.UninterpretedOption.NamePart}
  7455. */
  7456. proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary = function(bytes) {
  7457. var reader = new jspb.BinaryReader(bytes);
  7458. var msg = new proto.google.protobuf.UninterpretedOption.NamePart;
  7459. return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(msg, reader);
  7460. };
  7461. /**
  7462. * Deserializes binary data (in protobuf wire format) from the
  7463. * given reader into the given message object.
  7464. * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The message object to deserialize into.
  7465. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7466. * @return {!proto.google.protobuf.UninterpretedOption.NamePart}
  7467. */
  7468. proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader = function(msg, reader) {
  7469. while (reader.nextField()) {
  7470. if (reader.isEndGroup()) {
  7471. break;
  7472. }
  7473. var field = reader.getFieldNumber();
  7474. switch (field) {
  7475. case 1:
  7476. var value = /** @type {string} */ (reader.readString());
  7477. msg.setNamePart(value);
  7478. break;
  7479. case 2:
  7480. var value = /** @type {boolean} */ (reader.readBool());
  7481. msg.setIsExtension(value);
  7482. break;
  7483. default:
  7484. reader.skipField();
  7485. break;
  7486. }
  7487. }
  7488. return msg;
  7489. };
  7490. /**
  7491. * Serializes the message to binary data (in protobuf wire format).
  7492. * @return {!Uint8Array}
  7493. */
  7494. proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary = function() {
  7495. var writer = new jspb.BinaryWriter();
  7496. proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this, writer);
  7497. return writer.getResultBuffer();
  7498. };
  7499. /**
  7500. * Serializes the given message to binary data (in protobuf wire
  7501. * format), writing to the given BinaryWriter.
  7502. * @param {!proto.google.protobuf.UninterpretedOption.NamePart} message
  7503. * @param {!jspb.BinaryWriter} writer
  7504. * @suppress {unusedLocalVariables} f is only used for nested messages
  7505. */
  7506. proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter = function(message, writer) {
  7507. var f = undefined;
  7508. f = /** @type {string} */ (jspb.Message.getField(message, 1));
  7509. if (f != null) {
  7510. writer.writeString(
  7511. 1,
  7512. f
  7513. );
  7514. }
  7515. f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
  7516. if (f != null) {
  7517. writer.writeBool(
  7518. 2,
  7519. f
  7520. );
  7521. }
  7522. };
  7523. /**
  7524. * required string name_part = 1;
  7525. * @return {string}
  7526. */
  7527. proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart = function() {
  7528. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  7529. };
  7530. /**
  7531. * @param {string} value
  7532. * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this
  7533. */
  7534. proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart = function(value) {
  7535. return jspb.Message.setField(this, 1, value);
  7536. };
  7537. /**
  7538. * Clears the field making it undefined.
  7539. * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this
  7540. */
  7541. proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart = function() {
  7542. return jspb.Message.setField(this, 1, undefined);
  7543. };
  7544. /**
  7545. * Returns whether this field is set.
  7546. * @return {boolean}
  7547. */
  7548. proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart = function() {
  7549. return jspb.Message.getField(this, 1) != null;
  7550. };
  7551. /**
  7552. * required bool is_extension = 2;
  7553. * @return {boolean}
  7554. */
  7555. proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension = function() {
  7556. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  7557. };
  7558. /**
  7559. * @param {boolean} value
  7560. * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this
  7561. */
  7562. proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension = function(value) {
  7563. return jspb.Message.setField(this, 2, value);
  7564. };
  7565. /**
  7566. * Clears the field making it undefined.
  7567. * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this
  7568. */
  7569. proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension = function() {
  7570. return jspb.Message.setField(this, 2, undefined);
  7571. };
  7572. /**
  7573. * Returns whether this field is set.
  7574. * @return {boolean}
  7575. */
  7576. proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension = function() {
  7577. return jspb.Message.getField(this, 2) != null;
  7578. };
  7579. /**
  7580. * repeated NamePart name = 2;
  7581. * @return {!Array<!proto.google.protobuf.UninterpretedOption.NamePart>}
  7582. */
  7583. proto.google.protobuf.UninterpretedOption.prototype.getNameList = function() {
  7584. return /** @type{!Array<!proto.google.protobuf.UninterpretedOption.NamePart>} */ (
  7585. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption.NamePart, 2));
  7586. };
  7587. /**
  7588. * @param {!Array<!proto.google.protobuf.UninterpretedOption.NamePart>} value
  7589. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7590. */
  7591. proto.google.protobuf.UninterpretedOption.prototype.setNameList = function(value) {
  7592. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  7593. };
  7594. /**
  7595. * @param {!proto.google.protobuf.UninterpretedOption.NamePart=} opt_value
  7596. * @param {number=} opt_index
  7597. * @return {!proto.google.protobuf.UninterpretedOption.NamePart}
  7598. */
  7599. proto.google.protobuf.UninterpretedOption.prototype.addName = function(opt_value, opt_index) {
  7600. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.UninterpretedOption.NamePart, opt_index);
  7601. };
  7602. /**
  7603. * Clears the list making it empty but non-null.
  7604. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7605. */
  7606. proto.google.protobuf.UninterpretedOption.prototype.clearNameList = function() {
  7607. return this.setNameList([]);
  7608. };
  7609. /**
  7610. * optional string identifier_value = 3;
  7611. * @return {string}
  7612. */
  7613. proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue = function() {
  7614. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  7615. };
  7616. /**
  7617. * @param {string} value
  7618. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7619. */
  7620. proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue = function(value) {
  7621. return jspb.Message.setField(this, 3, value);
  7622. };
  7623. /**
  7624. * Clears the field making it undefined.
  7625. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7626. */
  7627. proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue = function() {
  7628. return jspb.Message.setField(this, 3, undefined);
  7629. };
  7630. /**
  7631. * Returns whether this field is set.
  7632. * @return {boolean}
  7633. */
  7634. proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue = function() {
  7635. return jspb.Message.getField(this, 3) != null;
  7636. };
  7637. /**
  7638. * optional uint64 positive_int_value = 4;
  7639. * @return {number}
  7640. */
  7641. proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue = function() {
  7642. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  7643. };
  7644. /**
  7645. * @param {number} value
  7646. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7647. */
  7648. proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue = function(value) {
  7649. return jspb.Message.setField(this, 4, value);
  7650. };
  7651. /**
  7652. * Clears the field making it undefined.
  7653. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7654. */
  7655. proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue = function() {
  7656. return jspb.Message.setField(this, 4, undefined);
  7657. };
  7658. /**
  7659. * Returns whether this field is set.
  7660. * @return {boolean}
  7661. */
  7662. proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue = function() {
  7663. return jspb.Message.getField(this, 4) != null;
  7664. };
  7665. /**
  7666. * optional int64 negative_int_value = 5;
  7667. * @return {number}
  7668. */
  7669. proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue = function() {
  7670. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  7671. };
  7672. /**
  7673. * @param {number} value
  7674. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7675. */
  7676. proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue = function(value) {
  7677. return jspb.Message.setField(this, 5, value);
  7678. };
  7679. /**
  7680. * Clears the field making it undefined.
  7681. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7682. */
  7683. proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue = function() {
  7684. return jspb.Message.setField(this, 5, undefined);
  7685. };
  7686. /**
  7687. * Returns whether this field is set.
  7688. * @return {boolean}
  7689. */
  7690. proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue = function() {
  7691. return jspb.Message.getField(this, 5) != null;
  7692. };
  7693. /**
  7694. * optional double double_value = 6;
  7695. * @return {number}
  7696. */
  7697. proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue = function() {
  7698. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
  7699. };
  7700. /**
  7701. * @param {number} value
  7702. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7703. */
  7704. proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue = function(value) {
  7705. return jspb.Message.setField(this, 6, value);
  7706. };
  7707. /**
  7708. * Clears the field making it undefined.
  7709. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7710. */
  7711. proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue = function() {
  7712. return jspb.Message.setField(this, 6, undefined);
  7713. };
  7714. /**
  7715. * Returns whether this field is set.
  7716. * @return {boolean}
  7717. */
  7718. proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue = function() {
  7719. return jspb.Message.getField(this, 6) != null;
  7720. };
  7721. /**
  7722. * optional bytes string_value = 7;
  7723. * @return {!(string|Uint8Array)}
  7724. */
  7725. proto.google.protobuf.UninterpretedOption.prototype.getStringValue = function() {
  7726. return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  7727. };
  7728. /**
  7729. * optional bytes string_value = 7;
  7730. * This is a type-conversion wrapper around `getStringValue()`
  7731. * @return {string}
  7732. */
  7733. proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64 = function() {
  7734. return /** @type {string} */ (jspb.Message.bytesAsB64(
  7735. this.getStringValue()));
  7736. };
  7737. /**
  7738. * optional bytes string_value = 7;
  7739. * Note that Uint8Array is not supported on all browsers.
  7740. * @see http://caniuse.com/Uint8Array
  7741. * This is a type-conversion wrapper around `getStringValue()`
  7742. * @return {!Uint8Array}
  7743. */
  7744. proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8 = function() {
  7745. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  7746. this.getStringValue()));
  7747. };
  7748. /**
  7749. * @param {!(string|Uint8Array)} value
  7750. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7751. */
  7752. proto.google.protobuf.UninterpretedOption.prototype.setStringValue = function(value) {
  7753. return jspb.Message.setField(this, 7, value);
  7754. };
  7755. /**
  7756. * Clears the field making it undefined.
  7757. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7758. */
  7759. proto.google.protobuf.UninterpretedOption.prototype.clearStringValue = function() {
  7760. return jspb.Message.setField(this, 7, undefined);
  7761. };
  7762. /**
  7763. * Returns whether this field is set.
  7764. * @return {boolean}
  7765. */
  7766. proto.google.protobuf.UninterpretedOption.prototype.hasStringValue = function() {
  7767. return jspb.Message.getField(this, 7) != null;
  7768. };
  7769. /**
  7770. * optional string aggregate_value = 8;
  7771. * @return {string}
  7772. */
  7773. proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue = function() {
  7774. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
  7775. };
  7776. /**
  7777. * @param {string} value
  7778. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7779. */
  7780. proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue = function(value) {
  7781. return jspb.Message.setField(this, 8, value);
  7782. };
  7783. /**
  7784. * Clears the field making it undefined.
  7785. * @return {!proto.google.protobuf.UninterpretedOption} returns this
  7786. */
  7787. proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue = function() {
  7788. return jspb.Message.setField(this, 8, undefined);
  7789. };
  7790. /**
  7791. * Returns whether this field is set.
  7792. * @return {boolean}
  7793. */
  7794. proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue = function() {
  7795. return jspb.Message.getField(this, 8) != null;
  7796. };
  7797. /**
  7798. * List of repeated fields within this message type.
  7799. * @private {!Array<number>}
  7800. * @const
  7801. */
  7802. proto.google.protobuf.SourceCodeInfo.repeatedFields_ = [1];
  7803. if (jspb.Message.GENERATE_TO_OBJECT) {
  7804. /**
  7805. * Creates an object representation of this proto.
  7806. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7807. * Optional fields that are not set will be set to undefined.
  7808. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7809. * For the list of reserved names please see:
  7810. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7811. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7812. * JSPB instance for transitional soy proto support:
  7813. * http://goto/soy-param-migration
  7814. * @return {!Object}
  7815. */
  7816. proto.google.protobuf.SourceCodeInfo.prototype.toObject = function(opt_includeInstance) {
  7817. return proto.google.protobuf.SourceCodeInfo.toObject(opt_includeInstance, this);
  7818. };
  7819. /**
  7820. * Static version of the {@see toObject} method.
  7821. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7822. * the JSPB instance for transitional soy proto support:
  7823. * http://goto/soy-param-migration
  7824. * @param {!proto.google.protobuf.SourceCodeInfo} msg The msg instance to transform.
  7825. * @return {!Object}
  7826. * @suppress {unusedLocalVariables} f is only used for nested messages
  7827. */
  7828. proto.google.protobuf.SourceCodeInfo.toObject = function(includeInstance, msg) {
  7829. var f, obj = {
  7830. locationList: jspb.Message.toObjectList(msg.getLocationList(),
  7831. proto.google.protobuf.SourceCodeInfo.Location.toObject, includeInstance)
  7832. };
  7833. if (includeInstance) {
  7834. obj.$jspbMessageInstance = msg;
  7835. }
  7836. return obj;
  7837. };
  7838. }
  7839. /**
  7840. * Deserializes binary data (in protobuf wire format).
  7841. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7842. * @return {!proto.google.protobuf.SourceCodeInfo}
  7843. */
  7844. proto.google.protobuf.SourceCodeInfo.deserializeBinary = function(bytes) {
  7845. var reader = new jspb.BinaryReader(bytes);
  7846. var msg = new proto.google.protobuf.SourceCodeInfo;
  7847. return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(msg, reader);
  7848. };
  7849. /**
  7850. * Deserializes binary data (in protobuf wire format) from the
  7851. * given reader into the given message object.
  7852. * @param {!proto.google.protobuf.SourceCodeInfo} msg The message object to deserialize into.
  7853. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7854. * @return {!proto.google.protobuf.SourceCodeInfo}
  7855. */
  7856. proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader = function(msg, reader) {
  7857. while (reader.nextField()) {
  7858. if (reader.isEndGroup()) {
  7859. break;
  7860. }
  7861. var field = reader.getFieldNumber();
  7862. switch (field) {
  7863. case 1:
  7864. var value = new proto.google.protobuf.SourceCodeInfo.Location;
  7865. reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader);
  7866. msg.addLocation(value);
  7867. break;
  7868. default:
  7869. reader.skipField();
  7870. break;
  7871. }
  7872. }
  7873. return msg;
  7874. };
  7875. /**
  7876. * Serializes the message to binary data (in protobuf wire format).
  7877. * @return {!Uint8Array}
  7878. */
  7879. proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary = function() {
  7880. var writer = new jspb.BinaryWriter();
  7881. proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this, writer);
  7882. return writer.getResultBuffer();
  7883. };
  7884. /**
  7885. * Serializes the given message to binary data (in protobuf wire
  7886. * format), writing to the given BinaryWriter.
  7887. * @param {!proto.google.protobuf.SourceCodeInfo} message
  7888. * @param {!jspb.BinaryWriter} writer
  7889. * @suppress {unusedLocalVariables} f is only used for nested messages
  7890. */
  7891. proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter = function(message, writer) {
  7892. var f = undefined;
  7893. f = message.getLocationList();
  7894. if (f.length > 0) {
  7895. writer.writeRepeatedMessage(
  7896. 1,
  7897. f,
  7898. proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter
  7899. );
  7900. }
  7901. };
  7902. /**
  7903. * List of repeated fields within this message type.
  7904. * @private {!Array<number>}
  7905. * @const
  7906. */
  7907. proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_ = [1,2,6];
  7908. if (jspb.Message.GENERATE_TO_OBJECT) {
  7909. /**
  7910. * Creates an object representation of this proto.
  7911. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7912. * Optional fields that are not set will be set to undefined.
  7913. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7914. * For the list of reserved names please see:
  7915. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7916. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7917. * JSPB instance for transitional soy proto support:
  7918. * http://goto/soy-param-migration
  7919. * @return {!Object}
  7920. */
  7921. proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject = function(opt_includeInstance) {
  7922. return proto.google.protobuf.SourceCodeInfo.Location.toObject(opt_includeInstance, this);
  7923. };
  7924. /**
  7925. * Static version of the {@see toObject} method.
  7926. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7927. * the JSPB instance for transitional soy proto support:
  7928. * http://goto/soy-param-migration
  7929. * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The msg instance to transform.
  7930. * @return {!Object}
  7931. * @suppress {unusedLocalVariables} f is only used for nested messages
  7932. */
  7933. proto.google.protobuf.SourceCodeInfo.Location.toObject = function(includeInstance, msg) {
  7934. var f, obj = {
  7935. pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
  7936. spanList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
  7937. leadingComments: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  7938. trailingComments: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
  7939. leadingDetachedCommentsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
  7940. };
  7941. if (includeInstance) {
  7942. obj.$jspbMessageInstance = msg;
  7943. }
  7944. return obj;
  7945. };
  7946. }
  7947. /**
  7948. * Deserializes binary data (in protobuf wire format).
  7949. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7950. * @return {!proto.google.protobuf.SourceCodeInfo.Location}
  7951. */
  7952. proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary = function(bytes) {
  7953. var reader = new jspb.BinaryReader(bytes);
  7954. var msg = new proto.google.protobuf.SourceCodeInfo.Location;
  7955. return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(msg, reader);
  7956. };
  7957. /**
  7958. * Deserializes binary data (in protobuf wire format) from the
  7959. * given reader into the given message object.
  7960. * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The message object to deserialize into.
  7961. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7962. * @return {!proto.google.protobuf.SourceCodeInfo.Location}
  7963. */
  7964. proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader = function(msg, reader) {
  7965. while (reader.nextField()) {
  7966. if (reader.isEndGroup()) {
  7967. break;
  7968. }
  7969. var field = reader.getFieldNumber();
  7970. switch (field) {
  7971. case 1:
  7972. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  7973. for (var i = 0; i < values.length; i++) {
  7974. msg.addPath(values[i]);
  7975. }
  7976. break;
  7977. case 2:
  7978. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  7979. for (var i = 0; i < values.length; i++) {
  7980. msg.addSpan(values[i]);
  7981. }
  7982. break;
  7983. case 3:
  7984. var value = /** @type {string} */ (reader.readString());
  7985. msg.setLeadingComments(value);
  7986. break;
  7987. case 4:
  7988. var value = /** @type {string} */ (reader.readString());
  7989. msg.setTrailingComments(value);
  7990. break;
  7991. case 6:
  7992. var value = /** @type {string} */ (reader.readString());
  7993. msg.addLeadingDetachedComments(value);
  7994. break;
  7995. default:
  7996. reader.skipField();
  7997. break;
  7998. }
  7999. }
  8000. return msg;
  8001. };
  8002. /**
  8003. * Serializes the message to binary data (in protobuf wire format).
  8004. * @return {!Uint8Array}
  8005. */
  8006. proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary = function() {
  8007. var writer = new jspb.BinaryWriter();
  8008. proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this, writer);
  8009. return writer.getResultBuffer();
  8010. };
  8011. /**
  8012. * Serializes the given message to binary data (in protobuf wire
  8013. * format), writing to the given BinaryWriter.
  8014. * @param {!proto.google.protobuf.SourceCodeInfo.Location} message
  8015. * @param {!jspb.BinaryWriter} writer
  8016. * @suppress {unusedLocalVariables} f is only used for nested messages
  8017. */
  8018. proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter = function(message, writer) {
  8019. var f = undefined;
  8020. f = message.getPathList();
  8021. if (f.length > 0) {
  8022. writer.writePackedInt32(
  8023. 1,
  8024. f
  8025. );
  8026. }
  8027. f = message.getSpanList();
  8028. if (f.length > 0) {
  8029. writer.writePackedInt32(
  8030. 2,
  8031. f
  8032. );
  8033. }
  8034. f = /** @type {string} */ (jspb.Message.getField(message, 3));
  8035. if (f != null) {
  8036. writer.writeString(
  8037. 3,
  8038. f
  8039. );
  8040. }
  8041. f = /** @type {string} */ (jspb.Message.getField(message, 4));
  8042. if (f != null) {
  8043. writer.writeString(
  8044. 4,
  8045. f
  8046. );
  8047. }
  8048. f = message.getLeadingDetachedCommentsList();
  8049. if (f.length > 0) {
  8050. writer.writeRepeatedString(
  8051. 6,
  8052. f
  8053. );
  8054. }
  8055. };
  8056. /**
  8057. * repeated int32 path = 1;
  8058. * @return {!Array<number>}
  8059. */
  8060. proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList = function() {
  8061. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
  8062. };
  8063. /**
  8064. * @param {!Array<number>} value
  8065. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8066. */
  8067. proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList = function(value) {
  8068. return jspb.Message.setField(this, 1, value || []);
  8069. };
  8070. /**
  8071. * @param {number} value
  8072. * @param {number=} opt_index
  8073. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8074. */
  8075. proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath = function(value, opt_index) {
  8076. return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  8077. };
  8078. /**
  8079. * Clears the list making it empty but non-null.
  8080. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8081. */
  8082. proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList = function() {
  8083. return this.setPathList([]);
  8084. };
  8085. /**
  8086. * repeated int32 span = 2;
  8087. * @return {!Array<number>}
  8088. */
  8089. proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList = function() {
  8090. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
  8091. };
  8092. /**
  8093. * @param {!Array<number>} value
  8094. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8095. */
  8096. proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList = function(value) {
  8097. return jspb.Message.setField(this, 2, value || []);
  8098. };
  8099. /**
  8100. * @param {number} value
  8101. * @param {number=} opt_index
  8102. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8103. */
  8104. proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan = function(value, opt_index) {
  8105. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  8106. };
  8107. /**
  8108. * Clears the list making it empty but non-null.
  8109. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8110. */
  8111. proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList = function() {
  8112. return this.setSpanList([]);
  8113. };
  8114. /**
  8115. * optional string leading_comments = 3;
  8116. * @return {string}
  8117. */
  8118. proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments = function() {
  8119. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  8120. };
  8121. /**
  8122. * @param {string} value
  8123. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8124. */
  8125. proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments = function(value) {
  8126. return jspb.Message.setField(this, 3, value);
  8127. };
  8128. /**
  8129. * Clears the field making it undefined.
  8130. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8131. */
  8132. proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments = function() {
  8133. return jspb.Message.setField(this, 3, undefined);
  8134. };
  8135. /**
  8136. * Returns whether this field is set.
  8137. * @return {boolean}
  8138. */
  8139. proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments = function() {
  8140. return jspb.Message.getField(this, 3) != null;
  8141. };
  8142. /**
  8143. * optional string trailing_comments = 4;
  8144. * @return {string}
  8145. */
  8146. proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments = function() {
  8147. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  8148. };
  8149. /**
  8150. * @param {string} value
  8151. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8152. */
  8153. proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments = function(value) {
  8154. return jspb.Message.setField(this, 4, value);
  8155. };
  8156. /**
  8157. * Clears the field making it undefined.
  8158. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8159. */
  8160. proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments = function() {
  8161. return jspb.Message.setField(this, 4, undefined);
  8162. };
  8163. /**
  8164. * Returns whether this field is set.
  8165. * @return {boolean}
  8166. */
  8167. proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments = function() {
  8168. return jspb.Message.getField(this, 4) != null;
  8169. };
  8170. /**
  8171. * repeated string leading_detached_comments = 6;
  8172. * @return {!Array<string>}
  8173. */
  8174. proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList = function() {
  8175. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
  8176. };
  8177. /**
  8178. * @param {!Array<string>} value
  8179. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8180. */
  8181. proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList = function(value) {
  8182. return jspb.Message.setField(this, 6, value || []);
  8183. };
  8184. /**
  8185. * @param {string} value
  8186. * @param {number=} opt_index
  8187. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8188. */
  8189. proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments = function(value, opt_index) {
  8190. return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
  8191. };
  8192. /**
  8193. * Clears the list making it empty but non-null.
  8194. * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this
  8195. */
  8196. proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList = function() {
  8197. return this.setLeadingDetachedCommentsList([]);
  8198. };
  8199. /**
  8200. * repeated Location location = 1;
  8201. * @return {!Array<!proto.google.protobuf.SourceCodeInfo.Location>}
  8202. */
  8203. proto.google.protobuf.SourceCodeInfo.prototype.getLocationList = function() {
  8204. return /** @type{!Array<!proto.google.protobuf.SourceCodeInfo.Location>} */ (
  8205. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.SourceCodeInfo.Location, 1));
  8206. };
  8207. /**
  8208. * @param {!Array<!proto.google.protobuf.SourceCodeInfo.Location>} value
  8209. * @return {!proto.google.protobuf.SourceCodeInfo} returns this
  8210. */
  8211. proto.google.protobuf.SourceCodeInfo.prototype.setLocationList = function(value) {
  8212. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  8213. };
  8214. /**
  8215. * @param {!proto.google.protobuf.SourceCodeInfo.Location=} opt_value
  8216. * @param {number=} opt_index
  8217. * @return {!proto.google.protobuf.SourceCodeInfo.Location}
  8218. */
  8219. proto.google.protobuf.SourceCodeInfo.prototype.addLocation = function(opt_value, opt_index) {
  8220. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.SourceCodeInfo.Location, opt_index);
  8221. };
  8222. /**
  8223. * Clears the list making it empty but non-null.
  8224. * @return {!proto.google.protobuf.SourceCodeInfo} returns this
  8225. */
  8226. proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList = function() {
  8227. return this.setLocationList([]);
  8228. };
  8229. /**
  8230. * List of repeated fields within this message type.
  8231. * @private {!Array<number>}
  8232. * @const
  8233. */
  8234. proto.google.protobuf.GeneratedCodeInfo.repeatedFields_ = [1];
  8235. if (jspb.Message.GENERATE_TO_OBJECT) {
  8236. /**
  8237. * Creates an object representation of this proto.
  8238. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8239. * Optional fields that are not set will be set to undefined.
  8240. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8241. * For the list of reserved names please see:
  8242. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8243. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8244. * JSPB instance for transitional soy proto support:
  8245. * http://goto/soy-param-migration
  8246. * @return {!Object}
  8247. */
  8248. proto.google.protobuf.GeneratedCodeInfo.prototype.toObject = function(opt_includeInstance) {
  8249. return proto.google.protobuf.GeneratedCodeInfo.toObject(opt_includeInstance, this);
  8250. };
  8251. /**
  8252. * Static version of the {@see toObject} method.
  8253. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8254. * the JSPB instance for transitional soy proto support:
  8255. * http://goto/soy-param-migration
  8256. * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The msg instance to transform.
  8257. * @return {!Object}
  8258. * @suppress {unusedLocalVariables} f is only used for nested messages
  8259. */
  8260. proto.google.protobuf.GeneratedCodeInfo.toObject = function(includeInstance, msg) {
  8261. var f, obj = {
  8262. annotationList: jspb.Message.toObjectList(msg.getAnnotationList(),
  8263. proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject, includeInstance)
  8264. };
  8265. if (includeInstance) {
  8266. obj.$jspbMessageInstance = msg;
  8267. }
  8268. return obj;
  8269. };
  8270. }
  8271. /**
  8272. * Deserializes binary data (in protobuf wire format).
  8273. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8274. * @return {!proto.google.protobuf.GeneratedCodeInfo}
  8275. */
  8276. proto.google.protobuf.GeneratedCodeInfo.deserializeBinary = function(bytes) {
  8277. var reader = new jspb.BinaryReader(bytes);
  8278. var msg = new proto.google.protobuf.GeneratedCodeInfo;
  8279. return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(msg, reader);
  8280. };
  8281. /**
  8282. * Deserializes binary data (in protobuf wire format) from the
  8283. * given reader into the given message object.
  8284. * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The message object to deserialize into.
  8285. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8286. * @return {!proto.google.protobuf.GeneratedCodeInfo}
  8287. */
  8288. proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader = function(msg, reader) {
  8289. while (reader.nextField()) {
  8290. if (reader.isEndGroup()) {
  8291. break;
  8292. }
  8293. var field = reader.getFieldNumber();
  8294. switch (field) {
  8295. case 1:
  8296. var value = new proto.google.protobuf.GeneratedCodeInfo.Annotation;
  8297. reader.readMessage(value,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader);
  8298. msg.addAnnotation(value);
  8299. break;
  8300. default:
  8301. reader.skipField();
  8302. break;
  8303. }
  8304. }
  8305. return msg;
  8306. };
  8307. /**
  8308. * Serializes the message to binary data (in protobuf wire format).
  8309. * @return {!Uint8Array}
  8310. */
  8311. proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary = function() {
  8312. var writer = new jspb.BinaryWriter();
  8313. proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this, writer);
  8314. return writer.getResultBuffer();
  8315. };
  8316. /**
  8317. * Serializes the given message to binary data (in protobuf wire
  8318. * format), writing to the given BinaryWriter.
  8319. * @param {!proto.google.protobuf.GeneratedCodeInfo} message
  8320. * @param {!jspb.BinaryWriter} writer
  8321. * @suppress {unusedLocalVariables} f is only used for nested messages
  8322. */
  8323. proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter = function(message, writer) {
  8324. var f = undefined;
  8325. f = message.getAnnotationList();
  8326. if (f.length > 0) {
  8327. writer.writeRepeatedMessage(
  8328. 1,
  8329. f,
  8330. proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter
  8331. );
  8332. }
  8333. };
  8334. /**
  8335. * List of repeated fields within this message type.
  8336. * @private {!Array<number>}
  8337. * @const
  8338. */
  8339. proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_ = [1];
  8340. if (jspb.Message.GENERATE_TO_OBJECT) {
  8341. /**
  8342. * Creates an object representation of this proto.
  8343. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8344. * Optional fields that are not set will be set to undefined.
  8345. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8346. * For the list of reserved names please see:
  8347. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8348. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8349. * JSPB instance for transitional soy proto support:
  8350. * http://goto/soy-param-migration
  8351. * @return {!Object}
  8352. */
  8353. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject = function(opt_includeInstance) {
  8354. return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(opt_includeInstance, this);
  8355. };
  8356. /**
  8357. * Static version of the {@see toObject} method.
  8358. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8359. * the JSPB instance for transitional soy proto support:
  8360. * http://goto/soy-param-migration
  8361. * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The msg instance to transform.
  8362. * @return {!Object}
  8363. * @suppress {unusedLocalVariables} f is only used for nested messages
  8364. */
  8365. proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject = function(includeInstance, msg) {
  8366. var f, obj = {
  8367. pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
  8368. sourceFile: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
  8369. begin: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
  8370. end: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
  8371. };
  8372. if (includeInstance) {
  8373. obj.$jspbMessageInstance = msg;
  8374. }
  8375. return obj;
  8376. };
  8377. }
  8378. /**
  8379. * Deserializes binary data (in protobuf wire format).
  8380. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8381. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation}
  8382. */
  8383. proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary = function(bytes) {
  8384. var reader = new jspb.BinaryReader(bytes);
  8385. var msg = new proto.google.protobuf.GeneratedCodeInfo.Annotation;
  8386. return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(msg, reader);
  8387. };
  8388. /**
  8389. * Deserializes binary data (in protobuf wire format) from the
  8390. * given reader into the given message object.
  8391. * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The message object to deserialize into.
  8392. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8393. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation}
  8394. */
  8395. proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader = function(msg, reader) {
  8396. while (reader.nextField()) {
  8397. if (reader.isEndGroup()) {
  8398. break;
  8399. }
  8400. var field = reader.getFieldNumber();
  8401. switch (field) {
  8402. case 1:
  8403. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  8404. for (var i = 0; i < values.length; i++) {
  8405. msg.addPath(values[i]);
  8406. }
  8407. break;
  8408. case 2:
  8409. var value = /** @type {string} */ (reader.readString());
  8410. msg.setSourceFile(value);
  8411. break;
  8412. case 3:
  8413. var value = /** @type {number} */ (reader.readInt32());
  8414. msg.setBegin(value);
  8415. break;
  8416. case 4:
  8417. var value = /** @type {number} */ (reader.readInt32());
  8418. msg.setEnd(value);
  8419. break;
  8420. default:
  8421. reader.skipField();
  8422. break;
  8423. }
  8424. }
  8425. return msg;
  8426. };
  8427. /**
  8428. * Serializes the message to binary data (in protobuf wire format).
  8429. * @return {!Uint8Array}
  8430. */
  8431. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary = function() {
  8432. var writer = new jspb.BinaryWriter();
  8433. proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this, writer);
  8434. return writer.getResultBuffer();
  8435. };
  8436. /**
  8437. * Serializes the given message to binary data (in protobuf wire
  8438. * format), writing to the given BinaryWriter.
  8439. * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} message
  8440. * @param {!jspb.BinaryWriter} writer
  8441. * @suppress {unusedLocalVariables} f is only used for nested messages
  8442. */
  8443. proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter = function(message, writer) {
  8444. var f = undefined;
  8445. f = message.getPathList();
  8446. if (f.length > 0) {
  8447. writer.writePackedInt32(
  8448. 1,
  8449. f
  8450. );
  8451. }
  8452. f = /** @type {string} */ (jspb.Message.getField(message, 2));
  8453. if (f != null) {
  8454. writer.writeString(
  8455. 2,
  8456. f
  8457. );
  8458. }
  8459. f = /** @type {number} */ (jspb.Message.getField(message, 3));
  8460. if (f != null) {
  8461. writer.writeInt32(
  8462. 3,
  8463. f
  8464. );
  8465. }
  8466. f = /** @type {number} */ (jspb.Message.getField(message, 4));
  8467. if (f != null) {
  8468. writer.writeInt32(
  8469. 4,
  8470. f
  8471. );
  8472. }
  8473. };
  8474. /**
  8475. * repeated int32 path = 1;
  8476. * @return {!Array<number>}
  8477. */
  8478. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList = function() {
  8479. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
  8480. };
  8481. /**
  8482. * @param {!Array<number>} value
  8483. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8484. */
  8485. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList = function(value) {
  8486. return jspb.Message.setField(this, 1, value || []);
  8487. };
  8488. /**
  8489. * @param {number} value
  8490. * @param {number=} opt_index
  8491. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8492. */
  8493. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath = function(value, opt_index) {
  8494. return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  8495. };
  8496. /**
  8497. * Clears the list making it empty but non-null.
  8498. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8499. */
  8500. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList = function() {
  8501. return this.setPathList([]);
  8502. };
  8503. /**
  8504. * optional string source_file = 2;
  8505. * @return {string}
  8506. */
  8507. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile = function() {
  8508. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  8509. };
  8510. /**
  8511. * @param {string} value
  8512. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8513. */
  8514. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile = function(value) {
  8515. return jspb.Message.setField(this, 2, value);
  8516. };
  8517. /**
  8518. * Clears the field making it undefined.
  8519. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8520. */
  8521. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile = function() {
  8522. return jspb.Message.setField(this, 2, undefined);
  8523. };
  8524. /**
  8525. * Returns whether this field is set.
  8526. * @return {boolean}
  8527. */
  8528. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile = function() {
  8529. return jspb.Message.getField(this, 2) != null;
  8530. };
  8531. /**
  8532. * optional int32 begin = 3;
  8533. * @return {number}
  8534. */
  8535. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin = function() {
  8536. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  8537. };
  8538. /**
  8539. * @param {number} value
  8540. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8541. */
  8542. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin = function(value) {
  8543. return jspb.Message.setField(this, 3, value);
  8544. };
  8545. /**
  8546. * Clears the field making it undefined.
  8547. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8548. */
  8549. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin = function() {
  8550. return jspb.Message.setField(this, 3, undefined);
  8551. };
  8552. /**
  8553. * Returns whether this field is set.
  8554. * @return {boolean}
  8555. */
  8556. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin = function() {
  8557. return jspb.Message.getField(this, 3) != null;
  8558. };
  8559. /**
  8560. * optional int32 end = 4;
  8561. * @return {number}
  8562. */
  8563. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd = function() {
  8564. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  8565. };
  8566. /**
  8567. * @param {number} value
  8568. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8569. */
  8570. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd = function(value) {
  8571. return jspb.Message.setField(this, 4, value);
  8572. };
  8573. /**
  8574. * Clears the field making it undefined.
  8575. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this
  8576. */
  8577. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd = function() {
  8578. return jspb.Message.setField(this, 4, undefined);
  8579. };
  8580. /**
  8581. * Returns whether this field is set.
  8582. * @return {boolean}
  8583. */
  8584. proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd = function() {
  8585. return jspb.Message.getField(this, 4) != null;
  8586. };
  8587. /**
  8588. * repeated Annotation annotation = 1;
  8589. * @return {!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>}
  8590. */
  8591. proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList = function() {
  8592. return /** @type{!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>} */ (
  8593. jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.GeneratedCodeInfo.Annotation, 1));
  8594. };
  8595. /**
  8596. * @param {!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>} value
  8597. * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this
  8598. */
  8599. proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList = function(value) {
  8600. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  8601. };
  8602. /**
  8603. * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation=} opt_value
  8604. * @param {number=} opt_index
  8605. * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation}
  8606. */
  8607. proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation = function(opt_value, opt_index) {
  8608. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.GeneratedCodeInfo.Annotation, opt_index);
  8609. };
  8610. /**
  8611. * Clears the list making it empty but non-null.
  8612. * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this
  8613. */
  8614. proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList = function() {
  8615. return this.setAnnotationList([]);
  8616. };
  8617. goog.object.extend(exports, proto.google.protobuf);