descriptor.js 308 KB

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