| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923 |
- // DO NOT EDIT.
- // swift-format-ignore-file
- // swiftlint:disable all
- //
- // Generated by the Swift generator plugin for the protocol buffer compiler.
- // Source: google/protobuf/unittest.proto
- //
- // For information on using the generated types, please see the documentation:
- // https://github.com/apple/swift-protobuf/
- // Protocol Buffers - Google's data interchange format
- // Copyright 2008 Google Inc. All rights reserved.
- //
- // Use of this source code is governed by a BSD-style
- // license that can be found in the LICENSE file or at
- // https://developers.google.com/open-source/licenses/bsd
- // Author: kenton@google.com (Kenton Varda)
- // Based on original Protocol Buffers design by
- // Sanjay Ghemawat, Jeff Dean, and others.
- //
- // A proto file we will use for unit testing.
- //
- // LINT: ALLOW_GROUPS, LEGACY_NAMES
- import Foundation
- import SwiftProtobuf
- // If the compiler emits an error on this type, it is because this file
- // was generated by a version of the `protoc` Swift plug-in that is
- // incompatible with the version of SwiftProtobuf to which you are linking.
- // Please ensure that you are building against the same version of the API
- // that was used to generate this file.
- fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
- struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
- typealias Version = _2
- }
- enum Proto2Unittest_ForeignEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case foreignFoo = 4
- case foreignBar = 5
- case foreignBaz = 6
- /// (1 << 32) to generate a 64b bitmask would be incorrect.
- case foreignBax = 32
- /// Large enough to escape the Boxed Integer cache.
- case foreignLarge = 123456
- init() {
- self = .foreignFoo
- }
- }
- enum Proto2Unittest_TestReservedEnumFields: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case unknown = 0
- init() {
- self = .unknown
- }
- }
- /// Required and open enum accepts invalid enum values.
- enum Proto2Unittest_ForeignOpenEnum: SwiftProtobuf.Enum, Swift.CaseIterable {
- typealias RawValue = Int
- case foreignOpenUnknown // = 0
- case foreignOpenFoo // = 4
- case foreignOpenBar // = 5
- case foreignOpenBaz // = 6
- /// (1 << 32) to generate a 64b bitmask would be
- case foreignOpenBax // = 32
- case UNRECOGNIZED(Int)
- init() {
- self = .foreignOpenUnknown
- }
- init?(rawValue: Int) {
- switch rawValue {
- case 0: self = .foreignOpenUnknown
- case 4: self = .foreignOpenFoo
- case 5: self = .foreignOpenBar
- case 6: self = .foreignOpenBaz
- case 32: self = .foreignOpenBax
- default: self = .UNRECOGNIZED(rawValue)
- }
- }
- var rawValue: Int {
- switch self {
- case .foreignOpenUnknown: return 0
- case .foreignOpenFoo: return 4
- case .foreignOpenBar: return 5
- case .foreignOpenBaz: return 6
- case .foreignOpenBax: return 32
- case .UNRECOGNIZED(let i): return i
- }
- }
- // The compiler won't synthesize support with the UNRECOGNIZED case.
- static let allCases: [Proto2Unittest_ForeignOpenEnum] = [
- .foreignOpenUnknown,
- .foreignOpenFoo,
- .foreignOpenBar,
- .foreignOpenBaz,
- .foreignOpenBax,
- ]
- }
- /// Test an enum that has multiple values with the same number.
- enum Proto2Unittest_TestEnumWithDupValue: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case foo1 = 1
- case bar1 = 2
- case baz = 3
- static let foo2 = foo1
- static let bar2 = bar1
- init() {
- self = .foo1
- }
- }
- /// Test an enum with large, unordered values.
- enum Proto2Unittest_TestSparseEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case sparseA = 123
- case sparseB = 62374
- case sparseC = 12589234
- case sparseD = -15
- case sparseE = -53452
- case sparseF = 0
- case sparseG = 2
- init() {
- self = .sparseA
- }
- }
- enum Proto2Unittest_VeryLargeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case enumLabelDefault = 0
- case enumLabel1 = 1
- case enumLabel2 = 2
- case enumLabel3 = 3
- case enumLabel4 = 4
- case enumLabel5 = 5
- case enumLabel6 = 6
- case enumLabel7 = 7
- case enumLabel8 = 8
- case enumLabel9 = 9
- case enumLabel10 = 10
- case enumLabel11 = 11
- case enumLabel12 = 12
- case enumLabel13 = 13
- case enumLabel14 = 14
- case enumLabel15 = 15
- case enumLabel16 = 16
- case enumLabel17 = 17
- case enumLabel18 = 18
- case enumLabel19 = 19
- case enumLabel20 = 20
- case enumLabel21 = 21
- case enumLabel22 = 22
- case enumLabel23 = 23
- case enumLabel24 = 24
- case enumLabel25 = 25
- case enumLabel26 = 26
- case enumLabel27 = 27
- case enumLabel28 = 28
- case enumLabel29 = 29
- case enumLabel30 = 30
- case enumLabel31 = 31
- case enumLabel32 = 32
- case enumLabel33 = 33
- case enumLabel34 = 34
- case enumLabel35 = 35
- case enumLabel36 = 36
- case enumLabel37 = 37
- case enumLabel38 = 38
- case enumLabel39 = 39
- case enumLabel40 = 40
- case enumLabel41 = 41
- case enumLabel42 = 42
- case enumLabel43 = 43
- case enumLabel44 = 44
- case enumLabel45 = 45
- case enumLabel46 = 46
- case enumLabel47 = 47
- case enumLabel48 = 48
- case enumLabel49 = 49
- case enumLabel50 = 50
- case enumLabel51 = 51
- case enumLabel52 = 52
- case enumLabel53 = 53
- case enumLabel54 = 54
- case enumLabel55 = 55
- case enumLabel56 = 56
- case enumLabel57 = 57
- case enumLabel58 = 58
- case enumLabel59 = 59
- case enumLabel60 = 60
- case enumLabel61 = 61
- case enumLabel62 = 62
- case enumLabel63 = 63
- case enumLabel64 = 64
- case enumLabel65 = 65
- case enumLabel66 = 66
- case enumLabel67 = 67
- case enumLabel68 = 68
- case enumLabel69 = 69
- case enumLabel70 = 70
- case enumLabel71 = 71
- case enumLabel72 = 72
- case enumLabel73 = 73
- case enumLabel74 = 74
- case enumLabel75 = 75
- case enumLabel76 = 76
- case enumLabel77 = 77
- case enumLabel78 = 78
- case enumLabel79 = 79
- case enumLabel80 = 80
- case enumLabel81 = 81
- case enumLabel82 = 82
- case enumLabel83 = 83
- case enumLabel84 = 84
- case enumLabel85 = 85
- case enumLabel86 = 86
- case enumLabel87 = 87
- case enumLabel88 = 88
- case enumLabel89 = 89
- case enumLabel90 = 90
- case enumLabel91 = 91
- case enumLabel92 = 92
- case enumLabel93 = 93
- case enumLabel94 = 94
- case enumLabel95 = 95
- case enumLabel96 = 96
- case enumLabel97 = 97
- case enumLabel98 = 98
- case enumLabel99 = 99
- case enumLabel100 = 100
- init() {
- self = .enumLabelDefault
- }
- }
- /// This proto includes every type of field in both singular and repeated
- /// forms.
- struct Proto2Unittest_TestAllTypes: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// Singular
- var optionalInt32: Int32 {
- get {return _storage._optionalInt32 ?? 0}
- set {_uniqueStorage()._optionalInt32 = newValue}
- }
- /// Returns true if `optionalInt32` has been explicitly set.
- var hasOptionalInt32: Bool {return _storage._optionalInt32 != nil}
- /// Clears the value of `optionalInt32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32() {_uniqueStorage()._optionalInt32 = nil}
- var optionalInt64: Int64 {
- get {return _storage._optionalInt64 ?? 0}
- set {_uniqueStorage()._optionalInt64 = newValue}
- }
- /// Returns true if `optionalInt64` has been explicitly set.
- var hasOptionalInt64: Bool {return _storage._optionalInt64 != nil}
- /// Clears the value of `optionalInt64`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt64() {_uniqueStorage()._optionalInt64 = nil}
- var optionalUint32: UInt32 {
- get {return _storage._optionalUint32 ?? 0}
- set {_uniqueStorage()._optionalUint32 = newValue}
- }
- /// Returns true if `optionalUint32` has been explicitly set.
- var hasOptionalUint32: Bool {return _storage._optionalUint32 != nil}
- /// Clears the value of `optionalUint32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint32() {_uniqueStorage()._optionalUint32 = nil}
- var optionalUint64: UInt64 {
- get {return _storage._optionalUint64 ?? 0}
- set {_uniqueStorage()._optionalUint64 = newValue}
- }
- /// Returns true if `optionalUint64` has been explicitly set.
- var hasOptionalUint64: Bool {return _storage._optionalUint64 != nil}
- /// Clears the value of `optionalUint64`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint64() {_uniqueStorage()._optionalUint64 = nil}
- var optionalSint32: Int32 {
- get {return _storage._optionalSint32 ?? 0}
- set {_uniqueStorage()._optionalSint32 = newValue}
- }
- /// Returns true if `optionalSint32` has been explicitly set.
- var hasOptionalSint32: Bool {return _storage._optionalSint32 != nil}
- /// Clears the value of `optionalSint32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSint32() {_uniqueStorage()._optionalSint32 = nil}
- var optionalSint64: Int64 {
- get {return _storage._optionalSint64 ?? 0}
- set {_uniqueStorage()._optionalSint64 = newValue}
- }
- /// Returns true if `optionalSint64` has been explicitly set.
- var hasOptionalSint64: Bool {return _storage._optionalSint64 != nil}
- /// Clears the value of `optionalSint64`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSint64() {_uniqueStorage()._optionalSint64 = nil}
- var optionalFixed32: UInt32 {
- get {return _storage._optionalFixed32 ?? 0}
- set {_uniqueStorage()._optionalFixed32 = newValue}
- }
- /// Returns true if `optionalFixed32` has been explicitly set.
- var hasOptionalFixed32: Bool {return _storage._optionalFixed32 != nil}
- /// Clears the value of `optionalFixed32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalFixed32() {_uniqueStorage()._optionalFixed32 = nil}
- var optionalFixed64: UInt64 {
- get {return _storage._optionalFixed64 ?? 0}
- set {_uniqueStorage()._optionalFixed64 = newValue}
- }
- /// Returns true if `optionalFixed64` has been explicitly set.
- var hasOptionalFixed64: Bool {return _storage._optionalFixed64 != nil}
- /// Clears the value of `optionalFixed64`. Subsequent reads from it will return its default value.
- mutating func clearOptionalFixed64() {_uniqueStorage()._optionalFixed64 = nil}
- var optionalSfixed32: Int32 {
- get {return _storage._optionalSfixed32 ?? 0}
- set {_uniqueStorage()._optionalSfixed32 = newValue}
- }
- /// Returns true if `optionalSfixed32` has been explicitly set.
- var hasOptionalSfixed32: Bool {return _storage._optionalSfixed32 != nil}
- /// Clears the value of `optionalSfixed32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSfixed32() {_uniqueStorage()._optionalSfixed32 = nil}
- var optionalSfixed64: Int64 {
- get {return _storage._optionalSfixed64 ?? 0}
- set {_uniqueStorage()._optionalSfixed64 = newValue}
- }
- /// Returns true if `optionalSfixed64` has been explicitly set.
- var hasOptionalSfixed64: Bool {return _storage._optionalSfixed64 != nil}
- /// Clears the value of `optionalSfixed64`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSfixed64() {_uniqueStorage()._optionalSfixed64 = nil}
- var optionalFloat: Float {
- get {return _storage._optionalFloat ?? 0}
- set {_uniqueStorage()._optionalFloat = newValue}
- }
- /// Returns true if `optionalFloat` has been explicitly set.
- var hasOptionalFloat: Bool {return _storage._optionalFloat != nil}
- /// Clears the value of `optionalFloat`. Subsequent reads from it will return its default value.
- mutating func clearOptionalFloat() {_uniqueStorage()._optionalFloat = nil}
- var optionalDouble: Double {
- get {return _storage._optionalDouble ?? 0}
- set {_uniqueStorage()._optionalDouble = newValue}
- }
- /// Returns true if `optionalDouble` has been explicitly set.
- var hasOptionalDouble: Bool {return _storage._optionalDouble != nil}
- /// Clears the value of `optionalDouble`. Subsequent reads from it will return its default value.
- mutating func clearOptionalDouble() {_uniqueStorage()._optionalDouble = nil}
- var optionalBool: Bool {
- get {return _storage._optionalBool ?? false}
- set {_uniqueStorage()._optionalBool = newValue}
- }
- /// Returns true if `optionalBool` has been explicitly set.
- var hasOptionalBool: Bool {return _storage._optionalBool != nil}
- /// Clears the value of `optionalBool`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBool() {_uniqueStorage()._optionalBool = nil}
- var optionalString: String {
- get {return _storage._optionalString ?? String()}
- set {_uniqueStorage()._optionalString = newValue}
- }
- /// Returns true if `optionalString` has been explicitly set.
- var hasOptionalString: Bool {return _storage._optionalString != nil}
- /// Clears the value of `optionalString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalString() {_uniqueStorage()._optionalString = nil}
- var optionalBytes: Data {
- get {return _storage._optionalBytes ?? Data()}
- set {_uniqueStorage()._optionalBytes = newValue}
- }
- /// Returns true if `optionalBytes` has been explicitly set.
- var hasOptionalBytes: Bool {return _storage._optionalBytes != nil}
- /// Clears the value of `optionalBytes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBytes() {_uniqueStorage()._optionalBytes = nil}
- var optionalGroup: Proto2Unittest_TestAllTypes.OptionalGroup {
- get {return _storage._optionalGroup ?? Proto2Unittest_TestAllTypes.OptionalGroup()}
- set {_uniqueStorage()._optionalGroup = newValue}
- }
- /// Returns true if `optionalGroup` has been explicitly set.
- var hasOptionalGroup: Bool {return _storage._optionalGroup != nil}
- /// Clears the value of `optionalGroup`. Subsequent reads from it will return its default value.
- mutating func clearOptionalGroup() {_uniqueStorage()._optionalGroup = nil}
- var optionalNestedMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return _storage._optionalNestedMessage ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {_uniqueStorage()._optionalNestedMessage = newValue}
- }
- /// Returns true if `optionalNestedMessage` has been explicitly set.
- var hasOptionalNestedMessage: Bool {return _storage._optionalNestedMessage != nil}
- /// Clears the value of `optionalNestedMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNestedMessage() {_uniqueStorage()._optionalNestedMessage = nil}
- var optionalForeignMessage: Proto2Unittest_ForeignMessage {
- get {return _storage._optionalForeignMessage ?? Proto2Unittest_ForeignMessage()}
- set {_uniqueStorage()._optionalForeignMessage = newValue}
- }
- /// Returns true if `optionalForeignMessage` has been explicitly set.
- var hasOptionalForeignMessage: Bool {return _storage._optionalForeignMessage != nil}
- /// Clears the value of `optionalForeignMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalForeignMessage() {_uniqueStorage()._optionalForeignMessage = nil}
- var optionalImportMessage: Proto2UnittestImport_ImportMessage {
- get {return _storage._optionalImportMessage ?? Proto2UnittestImport_ImportMessage()}
- set {_uniqueStorage()._optionalImportMessage = newValue}
- }
- /// Returns true if `optionalImportMessage` has been explicitly set.
- var hasOptionalImportMessage: Bool {return _storage._optionalImportMessage != nil}
- /// Clears the value of `optionalImportMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalImportMessage() {_uniqueStorage()._optionalImportMessage = nil}
- var optionalNestedEnum: Proto2Unittest_TestAllTypes.NestedEnum {
- get {return _storage._optionalNestedEnum ?? .foo}
- set {_uniqueStorage()._optionalNestedEnum = newValue}
- }
- /// Returns true if `optionalNestedEnum` has been explicitly set.
- var hasOptionalNestedEnum: Bool {return _storage._optionalNestedEnum != nil}
- /// Clears the value of `optionalNestedEnum`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNestedEnum() {_uniqueStorage()._optionalNestedEnum = nil}
- var optionalForeignEnum: Proto2Unittest_ForeignEnum {
- get {return _storage._optionalForeignEnum ?? .foreignFoo}
- set {_uniqueStorage()._optionalForeignEnum = newValue}
- }
- /// Returns true if `optionalForeignEnum` has been explicitly set.
- var hasOptionalForeignEnum: Bool {return _storage._optionalForeignEnum != nil}
- /// Clears the value of `optionalForeignEnum`. Subsequent reads from it will return its default value.
- mutating func clearOptionalForeignEnum() {_uniqueStorage()._optionalForeignEnum = nil}
- var optionalImportEnum: Proto2UnittestImport_ImportEnum {
- get {return _storage._optionalImportEnum ?? .importFoo}
- set {_uniqueStorage()._optionalImportEnum = newValue}
- }
- /// Returns true if `optionalImportEnum` has been explicitly set.
- var hasOptionalImportEnum: Bool {return _storage._optionalImportEnum != nil}
- /// Clears the value of `optionalImportEnum`. Subsequent reads from it will return its default value.
- mutating func clearOptionalImportEnum() {_uniqueStorage()._optionalImportEnum = nil}
- var optionalStringPiece: String {
- get {return _storage._optionalStringPiece ?? String()}
- set {_uniqueStorage()._optionalStringPiece = newValue}
- }
- /// Returns true if `optionalStringPiece` has been explicitly set.
- var hasOptionalStringPiece: Bool {return _storage._optionalStringPiece != nil}
- /// Clears the value of `optionalStringPiece`. Subsequent reads from it will return its default value.
- mutating func clearOptionalStringPiece() {_uniqueStorage()._optionalStringPiece = nil}
- var optionalCord: String {
- get {return _storage._optionalCord ?? String()}
- set {_uniqueStorage()._optionalCord = newValue}
- }
- /// Returns true if `optionalCord` has been explicitly set.
- var hasOptionalCord: Bool {return _storage._optionalCord != nil}
- /// Clears the value of `optionalCord`. Subsequent reads from it will return its default value.
- mutating func clearOptionalCord() {_uniqueStorage()._optionalCord = nil}
- var optionalBytesCord: Data {
- get {return _storage._optionalBytesCord ?? Data()}
- set {_uniqueStorage()._optionalBytesCord = newValue}
- }
- /// Returns true if `optionalBytesCord` has been explicitly set.
- var hasOptionalBytesCord: Bool {return _storage._optionalBytesCord != nil}
- /// Clears the value of `optionalBytesCord`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBytesCord() {_uniqueStorage()._optionalBytesCord = nil}
- /// Defined in unittest_import_public.proto
- var optionalPublicImportMessage: Proto2UnittestImport_PublicImportMessage {
- get {return _storage._optionalPublicImportMessage ?? Proto2UnittestImport_PublicImportMessage()}
- set {_uniqueStorage()._optionalPublicImportMessage = newValue}
- }
- /// Returns true if `optionalPublicImportMessage` has been explicitly set.
- var hasOptionalPublicImportMessage: Bool {return _storage._optionalPublicImportMessage != nil}
- /// Clears the value of `optionalPublicImportMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalPublicImportMessage() {_uniqueStorage()._optionalPublicImportMessage = nil}
- var optionalLazyMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return _storage._optionalLazyMessage ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {_uniqueStorage()._optionalLazyMessage = newValue}
- }
- /// Returns true if `optionalLazyMessage` has been explicitly set.
- var hasOptionalLazyMessage: Bool {return _storage._optionalLazyMessage != nil}
- /// Clears the value of `optionalLazyMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalLazyMessage() {_uniqueStorage()._optionalLazyMessage = nil}
- var optionalUnverifiedLazyMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return _storage._optionalUnverifiedLazyMessage ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {_uniqueStorage()._optionalUnverifiedLazyMessage = newValue}
- }
- /// Returns true if `optionalUnverifiedLazyMessage` has been explicitly set.
- var hasOptionalUnverifiedLazyMessage: Bool {return _storage._optionalUnverifiedLazyMessage != nil}
- /// Clears the value of `optionalUnverifiedLazyMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUnverifiedLazyMessage() {_uniqueStorage()._optionalUnverifiedLazyMessage = nil}
- /// Repeated
- var repeatedInt32: [Int32] {
- get {return _storage._repeatedInt32}
- set {_uniqueStorage()._repeatedInt32 = newValue}
- }
- var repeatedInt64: [Int64] {
- get {return _storage._repeatedInt64}
- set {_uniqueStorage()._repeatedInt64 = newValue}
- }
- var repeatedUint32: [UInt32] {
- get {return _storage._repeatedUint32}
- set {_uniqueStorage()._repeatedUint32 = newValue}
- }
- var repeatedUint64: [UInt64] {
- get {return _storage._repeatedUint64}
- set {_uniqueStorage()._repeatedUint64 = newValue}
- }
- var repeatedSint32: [Int32] {
- get {return _storage._repeatedSint32}
- set {_uniqueStorage()._repeatedSint32 = newValue}
- }
- var repeatedSint64: [Int64] {
- get {return _storage._repeatedSint64}
- set {_uniqueStorage()._repeatedSint64 = newValue}
- }
- var repeatedFixed32: [UInt32] {
- get {return _storage._repeatedFixed32}
- set {_uniqueStorage()._repeatedFixed32 = newValue}
- }
- var repeatedFixed64: [UInt64] {
- get {return _storage._repeatedFixed64}
- set {_uniqueStorage()._repeatedFixed64 = newValue}
- }
- var repeatedSfixed32: [Int32] {
- get {return _storage._repeatedSfixed32}
- set {_uniqueStorage()._repeatedSfixed32 = newValue}
- }
- var repeatedSfixed64: [Int64] {
- get {return _storage._repeatedSfixed64}
- set {_uniqueStorage()._repeatedSfixed64 = newValue}
- }
- var repeatedFloat: [Float] {
- get {return _storage._repeatedFloat}
- set {_uniqueStorage()._repeatedFloat = newValue}
- }
- var repeatedDouble: [Double] {
- get {return _storage._repeatedDouble}
- set {_uniqueStorage()._repeatedDouble = newValue}
- }
- var repeatedBool: [Bool] {
- get {return _storage._repeatedBool}
- set {_uniqueStorage()._repeatedBool = newValue}
- }
- var repeatedString: [String] {
- get {return _storage._repeatedString}
- set {_uniqueStorage()._repeatedString = newValue}
- }
- var repeatedBytes: [Data] {
- get {return _storage._repeatedBytes}
- set {_uniqueStorage()._repeatedBytes = newValue}
- }
- var repeatedGroup: [Proto2Unittest_TestAllTypes.RepeatedGroup] {
- get {return _storage._repeatedGroup}
- set {_uniqueStorage()._repeatedGroup = newValue}
- }
- var repeatedNestedMessage: [Proto2Unittest_TestAllTypes.NestedMessage] {
- get {return _storage._repeatedNestedMessage}
- set {_uniqueStorage()._repeatedNestedMessage = newValue}
- }
- var repeatedForeignMessage: [Proto2Unittest_ForeignMessage] {
- get {return _storage._repeatedForeignMessage}
- set {_uniqueStorage()._repeatedForeignMessage = newValue}
- }
- var repeatedImportMessage: [Proto2UnittestImport_ImportMessage] {
- get {return _storage._repeatedImportMessage}
- set {_uniqueStorage()._repeatedImportMessage = newValue}
- }
- var repeatedNestedEnum: [Proto2Unittest_TestAllTypes.NestedEnum] {
- get {return _storage._repeatedNestedEnum}
- set {_uniqueStorage()._repeatedNestedEnum = newValue}
- }
- var repeatedForeignEnum: [Proto2Unittest_ForeignEnum] {
- get {return _storage._repeatedForeignEnum}
- set {_uniqueStorage()._repeatedForeignEnum = newValue}
- }
- var repeatedImportEnum: [Proto2UnittestImport_ImportEnum] {
- get {return _storage._repeatedImportEnum}
- set {_uniqueStorage()._repeatedImportEnum = newValue}
- }
- var repeatedStringPiece: [String] {
- get {return _storage._repeatedStringPiece}
- set {_uniqueStorage()._repeatedStringPiece = newValue}
- }
- var repeatedCord: [String] {
- get {return _storage._repeatedCord}
- set {_uniqueStorage()._repeatedCord = newValue}
- }
- var repeatedLazyMessage: [Proto2Unittest_TestAllTypes.NestedMessage] {
- get {return _storage._repeatedLazyMessage}
- set {_uniqueStorage()._repeatedLazyMessage = newValue}
- }
- /// Singular with defaults
- var defaultInt32: Int32 {
- get {return _storage._defaultInt32 ?? 41}
- set {_uniqueStorage()._defaultInt32 = newValue}
- }
- /// Returns true if `defaultInt32` has been explicitly set.
- var hasDefaultInt32: Bool {return _storage._defaultInt32 != nil}
- /// Clears the value of `defaultInt32`. Subsequent reads from it will return its default value.
- mutating func clearDefaultInt32() {_uniqueStorage()._defaultInt32 = nil}
- var defaultInt64: Int64 {
- get {return _storage._defaultInt64 ?? 42}
- set {_uniqueStorage()._defaultInt64 = newValue}
- }
- /// Returns true if `defaultInt64` has been explicitly set.
- var hasDefaultInt64: Bool {return _storage._defaultInt64 != nil}
- /// Clears the value of `defaultInt64`. Subsequent reads from it will return its default value.
- mutating func clearDefaultInt64() {_uniqueStorage()._defaultInt64 = nil}
- var defaultUint32: UInt32 {
- get {return _storage._defaultUint32 ?? 43}
- set {_uniqueStorage()._defaultUint32 = newValue}
- }
- /// Returns true if `defaultUint32` has been explicitly set.
- var hasDefaultUint32: Bool {return _storage._defaultUint32 != nil}
- /// Clears the value of `defaultUint32`. Subsequent reads from it will return its default value.
- mutating func clearDefaultUint32() {_uniqueStorage()._defaultUint32 = nil}
- var defaultUint64: UInt64 {
- get {return _storage._defaultUint64 ?? 44}
- set {_uniqueStorage()._defaultUint64 = newValue}
- }
- /// Returns true if `defaultUint64` has been explicitly set.
- var hasDefaultUint64: Bool {return _storage._defaultUint64 != nil}
- /// Clears the value of `defaultUint64`. Subsequent reads from it will return its default value.
- mutating func clearDefaultUint64() {_uniqueStorage()._defaultUint64 = nil}
- var defaultSint32: Int32 {
- get {return _storage._defaultSint32 ?? -45}
- set {_uniqueStorage()._defaultSint32 = newValue}
- }
- /// Returns true if `defaultSint32` has been explicitly set.
- var hasDefaultSint32: Bool {return _storage._defaultSint32 != nil}
- /// Clears the value of `defaultSint32`. Subsequent reads from it will return its default value.
- mutating func clearDefaultSint32() {_uniqueStorage()._defaultSint32 = nil}
- var defaultSint64: Int64 {
- get {return _storage._defaultSint64 ?? 46}
- set {_uniqueStorage()._defaultSint64 = newValue}
- }
- /// Returns true if `defaultSint64` has been explicitly set.
- var hasDefaultSint64: Bool {return _storage._defaultSint64 != nil}
- /// Clears the value of `defaultSint64`. Subsequent reads from it will return its default value.
- mutating func clearDefaultSint64() {_uniqueStorage()._defaultSint64 = nil}
- var defaultFixed32: UInt32 {
- get {return _storage._defaultFixed32 ?? 47}
- set {_uniqueStorage()._defaultFixed32 = newValue}
- }
- /// Returns true if `defaultFixed32` has been explicitly set.
- var hasDefaultFixed32: Bool {return _storage._defaultFixed32 != nil}
- /// Clears the value of `defaultFixed32`. Subsequent reads from it will return its default value.
- mutating func clearDefaultFixed32() {_uniqueStorage()._defaultFixed32 = nil}
- var defaultFixed64: UInt64 {
- get {return _storage._defaultFixed64 ?? 48}
- set {_uniqueStorage()._defaultFixed64 = newValue}
- }
- /// Returns true if `defaultFixed64` has been explicitly set.
- var hasDefaultFixed64: Bool {return _storage._defaultFixed64 != nil}
- /// Clears the value of `defaultFixed64`. Subsequent reads from it will return its default value.
- mutating func clearDefaultFixed64() {_uniqueStorage()._defaultFixed64 = nil}
- var defaultSfixed32: Int32 {
- get {return _storage._defaultSfixed32 ?? 49}
- set {_uniqueStorage()._defaultSfixed32 = newValue}
- }
- /// Returns true if `defaultSfixed32` has been explicitly set.
- var hasDefaultSfixed32: Bool {return _storage._defaultSfixed32 != nil}
- /// Clears the value of `defaultSfixed32`. Subsequent reads from it will return its default value.
- mutating func clearDefaultSfixed32() {_uniqueStorage()._defaultSfixed32 = nil}
- var defaultSfixed64: Int64 {
- get {return _storage._defaultSfixed64 ?? -50}
- set {_uniqueStorage()._defaultSfixed64 = newValue}
- }
- /// Returns true if `defaultSfixed64` has been explicitly set.
- var hasDefaultSfixed64: Bool {return _storage._defaultSfixed64 != nil}
- /// Clears the value of `defaultSfixed64`. Subsequent reads from it will return its default value.
- mutating func clearDefaultSfixed64() {_uniqueStorage()._defaultSfixed64 = nil}
- var defaultFloat: Float {
- get {return _storage._defaultFloat ?? 51.5}
- set {_uniqueStorage()._defaultFloat = newValue}
- }
- /// Returns true if `defaultFloat` has been explicitly set.
- var hasDefaultFloat: Bool {return _storage._defaultFloat != nil}
- /// Clears the value of `defaultFloat`. Subsequent reads from it will return its default value.
- mutating func clearDefaultFloat() {_uniqueStorage()._defaultFloat = nil}
- var defaultDouble: Double {
- get {return _storage._defaultDouble ?? 52000}
- set {_uniqueStorage()._defaultDouble = newValue}
- }
- /// Returns true if `defaultDouble` has been explicitly set.
- var hasDefaultDouble: Bool {return _storage._defaultDouble != nil}
- /// Clears the value of `defaultDouble`. Subsequent reads from it will return its default value.
- mutating func clearDefaultDouble() {_uniqueStorage()._defaultDouble = nil}
- var defaultBool: Bool {
- get {return _storage._defaultBool ?? true}
- set {_uniqueStorage()._defaultBool = newValue}
- }
- /// Returns true if `defaultBool` has been explicitly set.
- var hasDefaultBool: Bool {return _storage._defaultBool != nil}
- /// Clears the value of `defaultBool`. Subsequent reads from it will return its default value.
- mutating func clearDefaultBool() {_uniqueStorage()._defaultBool = nil}
- var defaultString: String {
- get {return _storage._defaultString ?? "hello"}
- set {_uniqueStorage()._defaultString = newValue}
- }
- /// Returns true if `defaultString` has been explicitly set.
- var hasDefaultString: Bool {return _storage._defaultString != nil}
- /// Clears the value of `defaultString`. Subsequent reads from it will return its default value.
- mutating func clearDefaultString() {_uniqueStorage()._defaultString = nil}
- var defaultBytes: Data {
- get {return _storage._defaultBytes ?? Data([119, 111, 114, 108, 100])}
- set {_uniqueStorage()._defaultBytes = newValue}
- }
- /// Returns true if `defaultBytes` has been explicitly set.
- var hasDefaultBytes: Bool {return _storage._defaultBytes != nil}
- /// Clears the value of `defaultBytes`. Subsequent reads from it will return its default value.
- mutating func clearDefaultBytes() {_uniqueStorage()._defaultBytes = nil}
- var defaultNestedEnum: Proto2Unittest_TestAllTypes.NestedEnum {
- get {return _storage._defaultNestedEnum ?? .bar}
- set {_uniqueStorage()._defaultNestedEnum = newValue}
- }
- /// Returns true if `defaultNestedEnum` has been explicitly set.
- var hasDefaultNestedEnum: Bool {return _storage._defaultNestedEnum != nil}
- /// Clears the value of `defaultNestedEnum`. Subsequent reads from it will return its default value.
- mutating func clearDefaultNestedEnum() {_uniqueStorage()._defaultNestedEnum = nil}
- var defaultForeignEnum: Proto2Unittest_ForeignEnum {
- get {return _storage._defaultForeignEnum ?? .foreignBar}
- set {_uniqueStorage()._defaultForeignEnum = newValue}
- }
- /// Returns true if `defaultForeignEnum` has been explicitly set.
- var hasDefaultForeignEnum: Bool {return _storage._defaultForeignEnum != nil}
- /// Clears the value of `defaultForeignEnum`. Subsequent reads from it will return its default value.
- mutating func clearDefaultForeignEnum() {_uniqueStorage()._defaultForeignEnum = nil}
- var defaultImportEnum: Proto2UnittestImport_ImportEnum {
- get {return _storage._defaultImportEnum ?? .importBar}
- set {_uniqueStorage()._defaultImportEnum = newValue}
- }
- /// Returns true if `defaultImportEnum` has been explicitly set.
- var hasDefaultImportEnum: Bool {return _storage._defaultImportEnum != nil}
- /// Clears the value of `defaultImportEnum`. Subsequent reads from it will return its default value.
- mutating func clearDefaultImportEnum() {_uniqueStorage()._defaultImportEnum = nil}
- var defaultStringPiece: String {
- get {return _storage._defaultStringPiece ?? "abc"}
- set {_uniqueStorage()._defaultStringPiece = newValue}
- }
- /// Returns true if `defaultStringPiece` has been explicitly set.
- var hasDefaultStringPiece: Bool {return _storage._defaultStringPiece != nil}
- /// Clears the value of `defaultStringPiece`. Subsequent reads from it will return its default value.
- mutating func clearDefaultStringPiece() {_uniqueStorage()._defaultStringPiece = nil}
- var defaultCord: String {
- get {return _storage._defaultCord ?? "123"}
- set {_uniqueStorage()._defaultCord = newValue}
- }
- /// Returns true if `defaultCord` has been explicitly set.
- var hasDefaultCord: Bool {return _storage._defaultCord != nil}
- /// Clears the value of `defaultCord`. Subsequent reads from it will return its default value.
- mutating func clearDefaultCord() {_uniqueStorage()._defaultCord = nil}
- /// For oneof test
- var oneofField: OneOf_OneofField? {
- get {return _storage._oneofField}
- set {_uniqueStorage()._oneofField = newValue}
- }
- var oneofUint32: UInt32 {
- get {
- if case .oneofUint32(let v)? = _storage._oneofField {return v}
- return 0
- }
- set {_uniqueStorage()._oneofField = .oneofUint32(newValue)}
- }
- var oneofNestedMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {
- if case .oneofNestedMessage(let v)? = _storage._oneofField {return v}
- return Proto2Unittest_TestAllTypes.NestedMessage()
- }
- set {_uniqueStorage()._oneofField = .oneofNestedMessage(newValue)}
- }
- var oneofString: String {
- get {
- if case .oneofString(let v)? = _storage._oneofField {return v}
- return String()
- }
- set {_uniqueStorage()._oneofField = .oneofString(newValue)}
- }
- var oneofBytes: Data {
- get {
- if case .oneofBytes(let v)? = _storage._oneofField {return v}
- return Data()
- }
- set {_uniqueStorage()._oneofField = .oneofBytes(newValue)}
- }
- var oneofCord: String {
- get {
- if case .oneofCord(let v)? = _storage._oneofField {return v}
- return String()
- }
- set {_uniqueStorage()._oneofField = .oneofCord(newValue)}
- }
- var oneofStringPiece: String {
- get {
- if case .oneofStringPiece(let v)? = _storage._oneofField {return v}
- return String()
- }
- set {_uniqueStorage()._oneofField = .oneofStringPiece(newValue)}
- }
- var oneofLazyNestedMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {
- if case .oneofLazyNestedMessage(let v)? = _storage._oneofField {return v}
- return Proto2Unittest_TestAllTypes.NestedMessage()
- }
- set {_uniqueStorage()._oneofField = .oneofLazyNestedMessage(newValue)}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- /// For oneof test
- enum OneOf_OneofField: Equatable, @unchecked Sendable {
- case oneofUint32(UInt32)
- case oneofNestedMessage(Proto2Unittest_TestAllTypes.NestedMessage)
- case oneofString(String)
- case oneofBytes(Data)
- case oneofCord(String)
- case oneofStringPiece(String)
- case oneofLazyNestedMessage(Proto2Unittest_TestAllTypes.NestedMessage)
- }
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case foo = 1
- case bar = 2
- case baz = 3
- /// Intentionally negative.
- case neg = -1
- init() {
- self = .foo
- }
- }
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- var bb: Int32 {
- get {return _bb ?? 0}
- set {_bb = newValue}
- }
- /// Returns true if `bb` has been explicitly set.
- var hasBb: Bool {return self._bb != nil}
- /// Clears the value of `bb`. Subsequent reads from it will return its default value.
- mutating func clearBb() {self._bb = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _bb: Int32? = nil
- }
- struct OptionalGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- struct RepeatedGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// This proto includes a recursively nested message.
- struct Proto2Unittest_NestedTestAllTypes: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var child: Proto2Unittest_NestedTestAllTypes {
- get {return _storage._child ?? Proto2Unittest_NestedTestAllTypes()}
- set {_uniqueStorage()._child = newValue}
- }
- /// Returns true if `child` has been explicitly set.
- var hasChild: Bool {return _storage._child != nil}
- /// Clears the value of `child`. Subsequent reads from it will return its default value.
- mutating func clearChild() {_uniqueStorage()._child = nil}
- var payload: Proto2Unittest_TestAllTypes {
- get {return _storage._payload ?? Proto2Unittest_TestAllTypes()}
- set {_uniqueStorage()._payload = newValue}
- }
- /// Returns true if `payload` has been explicitly set.
- var hasPayload: Bool {return _storage._payload != nil}
- /// Clears the value of `payload`. Subsequent reads from it will return its default value.
- mutating func clearPayload() {_uniqueStorage()._payload = nil}
- var repeatedChild: [Proto2Unittest_NestedTestAllTypes] {
- get {return _storage._repeatedChild}
- set {_uniqueStorage()._repeatedChild = newValue}
- }
- var lazyChild: Proto2Unittest_NestedTestAllTypes {
- get {return _storage._lazyChild ?? Proto2Unittest_NestedTestAllTypes()}
- set {_uniqueStorage()._lazyChild = newValue}
- }
- /// Returns true if `lazyChild` has been explicitly set.
- var hasLazyChild: Bool {return _storage._lazyChild != nil}
- /// Clears the value of `lazyChild`. Subsequent reads from it will return its default value.
- mutating func clearLazyChild() {_uniqueStorage()._lazyChild = nil}
- var eagerChild: Proto2Unittest_TestAllTypes {
- get {return _storage._eagerChild ?? Proto2Unittest_TestAllTypes()}
- set {_uniqueStorage()._eagerChild = newValue}
- }
- /// Returns true if `eagerChild` has been explicitly set.
- var hasEagerChild: Bool {return _storage._eagerChild != nil}
- /// Clears the value of `eagerChild`. Subsequent reads from it will return its default value.
- mutating func clearEagerChild() {_uniqueStorage()._eagerChild = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_TestDeprecatedFields: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// NOTE: This field was marked as deprecated in the .proto file.
- var deprecatedInt32: Int32 {
- get {return _storage._deprecatedInt32 ?? 0}
- set {_uniqueStorage()._deprecatedInt32 = newValue}
- }
- /// Returns true if `deprecatedInt32` has been explicitly set.
- var hasDeprecatedInt32: Bool {return _storage._deprecatedInt32 != nil}
- /// Clears the value of `deprecatedInt32`. Subsequent reads from it will return its default value.
- mutating func clearDeprecatedInt32() {_uniqueStorage()._deprecatedInt32 = nil}
- /// NOTE: This field was marked as deprecated in the .proto file.
- var deprecatedRepeatedString: [String] {
- get {return _storage._deprecatedRepeatedString}
- set {_uniqueStorage()._deprecatedRepeatedString = newValue}
- }
- /// NOTE: This field was marked as deprecated in the .proto file.
- var deprecatedMessage: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return _storage._deprecatedMessage ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {_uniqueStorage()._deprecatedMessage = newValue}
- }
- /// Returns true if `deprecatedMessage` has been explicitly set.
- var hasDeprecatedMessage: Bool {return _storage._deprecatedMessage != nil}
- /// Clears the value of `deprecatedMessage`. Subsequent reads from it will return its default value.
- mutating func clearDeprecatedMessage() {_uniqueStorage()._deprecatedMessage = nil}
- var oneofFields: OneOf_OneofFields? {
- get {return _storage._oneofFields}
- set {_uniqueStorage()._oneofFields = newValue}
- }
- /// NOTE: This field was marked as deprecated in the .proto file.
- var deprecatedInt32InOneof: Int32 {
- get {
- if case .deprecatedInt32InOneof(let v)? = _storage._oneofFields {return v}
- return 0
- }
- set {_uniqueStorage()._oneofFields = .deprecatedInt32InOneof(newValue)}
- }
- var nested: Proto2Unittest_TestDeprecatedFields {
- get {return _storage._nested ?? Proto2Unittest_TestDeprecatedFields()}
- set {_uniqueStorage()._nested = newValue}
- }
- /// Returns true if `nested` has been explicitly set.
- var hasNested: Bool {return _storage._nested != nil}
- /// Clears the value of `nested`. Subsequent reads from it will return its default value.
- mutating func clearNested() {_uniqueStorage()._nested = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_OneofFields: Equatable, Sendable {
- /// NOTE: This field was marked as deprecated in the .proto file.
- case deprecatedInt32InOneof(Int32)
- }
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// NOTE: This message was marked as deprecated in the .proto file.
- struct Proto2Unittest_TestDeprecatedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- /// Define these after TestAllTypes to make sure the compiler can handle
- /// that.
- struct Proto2Unittest_ForeignMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var c: Int32 {
- get {return _c ?? 0}
- set {_c = newValue}
- }
- /// Returns true if `c` has been explicitly set.
- var hasC: Bool {return self._c != nil}
- /// Clears the value of `c`. Subsequent reads from it will return its default value.
- mutating func clearC() {self._c = nil}
- var d: Int32 {
- get {return _d ?? 0}
- set {_d = newValue}
- }
- /// Returns true if `d` has been explicitly set.
- var hasD: Bool {return self._d != nil}
- /// Clears the value of `d`. Subsequent reads from it will return its default value.
- mutating func clearD() {self._d = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _c: Int32? = nil
- fileprivate var _d: Int32? = nil
- }
- struct Proto2Unittest_TestReservedFields: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_TestAllExtensions: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- struct Proto2Unittest_OptionalGroup_extension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- struct Proto2Unittest_RepeatedGroup_extension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- struct Proto2Unittest_TestMixedFieldsAndExtensions: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: [UInt32] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _a: Int32? = nil
- }
- struct Proto2Unittest_TestGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalGroup: Proto2Unittest_TestGroup.OptionalGroup {
- get {return _optionalGroup ?? Proto2Unittest_TestGroup.OptionalGroup()}
- set {_optionalGroup = newValue}
- }
- /// Returns true if `optionalGroup` has been explicitly set.
- var hasOptionalGroup: Bool {return self._optionalGroup != nil}
- /// Clears the value of `optionalGroup`. Subsequent reads from it will return its default value.
- mutating func clearOptionalGroup() {self._optionalGroup = nil}
- var optionalForeignEnum: Proto2Unittest_ForeignEnum {
- get {return _optionalForeignEnum ?? .foreignFoo}
- set {_optionalForeignEnum = newValue}
- }
- /// Returns true if `optionalForeignEnum` has been explicitly set.
- var hasOptionalForeignEnum: Bool {return self._optionalForeignEnum != nil}
- /// Clears the value of `optionalForeignEnum`. Subsequent reads from it will return its default value.
- mutating func clearOptionalForeignEnum() {self._optionalForeignEnum = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct OptionalGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- /// fast table size must be at least 16, for this
- var zz: Int32 {
- get {return _zz ?? 0}
- set {_zz = newValue}
- }
- /// Returns true if `zz` has been explicitly set.
- var hasZz: Bool {return self._zz != nil}
- /// Clears the value of `zz`. Subsequent reads from it will return its default value.
- mutating func clearZz() {self._zz = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _zz: Int32? = nil
- }
- init() {}
- fileprivate var _optionalGroup: Proto2Unittest_TestGroup.OptionalGroup? = nil
- fileprivate var _optionalForeignEnum: Proto2Unittest_ForeignEnum? = nil
- }
- struct Proto2Unittest_TestGroupExtension: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- struct Proto2Unittest_TestNestedExtension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct OptionalGroup_extension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- init() {}
- }
- struct Proto2Unittest_TestChildExtension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: String {
- get {return _a ?? String()}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: String {
- get {return _b ?? String()}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var optionalExtension: Proto2Unittest_TestAllExtensions {
- get {return _optionalExtension ?? Proto2Unittest_TestAllExtensions()}
- set {_optionalExtension = newValue}
- }
- /// Returns true if `optionalExtension` has been explicitly set.
- var hasOptionalExtension: Bool {return self._optionalExtension != nil}
- /// Clears the value of `optionalExtension`. Subsequent reads from it will return its default value.
- mutating func clearOptionalExtension() {self._optionalExtension = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: String? = nil
- fileprivate var _b: String? = nil
- fileprivate var _optionalExtension: Proto2Unittest_TestAllExtensions? = nil
- }
- /// Emulates wireformat data of TestChildExtension with dynamic extension
- /// (DynamicExtension).
- struct Proto2Unittest_TestChildExtensionData: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: String {
- get {return _a ?? String()}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: String {
- get {return _b ?? String()}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var optionalExtension: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData {
- get {return _optionalExtension ?? Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData()}
- set {_optionalExtension = newValue}
- }
- /// Returns true if `optionalExtension` has been explicitly set.
- var hasOptionalExtension: Bool {return self._optionalExtension != nil}
- /// Clears the value of `optionalExtension`. Subsequent reads from it will return its default value.
- mutating func clearOptionalExtension() {self._optionalExtension = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedTestAllExtensionsData: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var dynamic: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions {
- get {return _dynamic ?? Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions()}
- set {_dynamic = newValue}
- }
- /// Returns true if `dynamic` has been explicitly set.
- var hasDynamic: Bool {return self._dynamic != nil}
- /// Clears the value of `dynamic`. Subsequent reads from it will return its default value.
- mutating func clearDynamic() {self._dynamic = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedDynamicExtensions: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: Int32 {
- get {return _b ?? 0}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _b: Int32? = nil
- }
- init() {}
- fileprivate var _dynamic: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions? = nil
- }
- init() {}
- fileprivate var _a: String? = nil
- fileprivate var _b: String? = nil
- fileprivate var _optionalExtension: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData? = nil
- }
- struct Proto2Unittest_TestNestedChildExtension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var child: Proto2Unittest_TestChildExtension {
- get {return _child ?? Proto2Unittest_TestChildExtension()}
- set {_child = newValue}
- }
- /// Returns true if `child` has been explicitly set.
- var hasChild: Bool {return self._child != nil}
- /// Clears the value of `child`. Subsequent reads from it will return its default value.
- mutating func clearChild() {self._child = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _child: Proto2Unittest_TestChildExtension? = nil
- }
- /// Emulates wireformat data of TestNestedChildExtension with dynamic extension
- /// (DynamicExtension).
- struct Proto2Unittest_TestNestedChildExtensionData: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var child: Proto2Unittest_TestChildExtensionData {
- get {return _child ?? Proto2Unittest_TestChildExtensionData()}
- set {_child = newValue}
- }
- /// Returns true if `child` has been explicitly set.
- var hasChild: Bool {return self._child != nil}
- /// Clears the value of `child`. Subsequent reads from it will return its default value.
- mutating func clearChild() {self._child = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _child: Proto2Unittest_TestChildExtensionData? = nil
- }
- /// Required and closed enum fields are considered unknown fields if the value is
- /// not valid. We need to make sure it functions as expected.
- struct Proto2Unittest_TestRequiredEnum: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var requiredEnum: Proto2Unittest_ForeignEnum {
- get {return _requiredEnum ?? .foreignFoo}
- set {_requiredEnum = newValue}
- }
- /// Returns true if `requiredEnum` has been explicitly set.
- var hasRequiredEnum: Bool {return self._requiredEnum != nil}
- /// Clears the value of `requiredEnum`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum() {self._requiredEnum = nil}
- /// A dummy optional field.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _requiredEnum: Proto2Unittest_ForeignEnum? = nil
- fileprivate var _a: Int32? = nil
- }
- struct Proto2Unittest_TestRequiredOpenEnum: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var requiredEnum: Proto2Unittest_ForeignOpenEnum {
- get {return _requiredEnum ?? .foreignOpenUnknown}
- set {_requiredEnum = newValue}
- }
- /// Returns true if `requiredEnum` has been explicitly set.
- var hasRequiredEnum: Bool {return self._requiredEnum != nil}
- /// Clears the value of `requiredEnum`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum() {self._requiredEnum = nil}
- /// A dummy optional field.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _requiredEnum: Proto2Unittest_ForeignOpenEnum? = nil
- fileprivate var _a: Int32? = nil
- }
- /// TestRequiredEnum + using enum values that won't fit to 64 bitmask.
- struct Proto2Unittest_TestRequiredEnumNoMask: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var requiredEnum: Proto2Unittest_TestRequiredEnumNoMask.NestedEnum {
- get {return _requiredEnum ?? .unspecified}
- set {_requiredEnum = newValue}
- }
- /// Returns true if `requiredEnum` has been explicitly set.
- var hasRequiredEnum: Bool {return self._requiredEnum != nil}
- /// Clears the value of `requiredEnum`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum() {self._requiredEnum = nil}
- /// A dummy optional field.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case unspecified = 0
- case foo = 2
- case bar = 100
- /// Intentionally negative.
- case baz = -1
- init() {
- self = .unspecified
- }
- }
- init() {}
- fileprivate var _requiredEnum: Proto2Unittest_TestRequiredEnumNoMask.NestedEnum? = nil
- fileprivate var _a: Int32? = nil
- }
- struct Proto2Unittest_TestRequiredEnumMulti: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// Intentionally placed in descending field number to force sorting in closed
- /// enum verification.
- var requiredEnum4: Proto2Unittest_TestRequiredEnumMulti.NestedEnum {
- get {return _requiredEnum4 ?? .unspecified}
- set {_requiredEnum4 = newValue}
- }
- /// Returns true if `requiredEnum4` has been explicitly set.
- var hasRequiredEnum4: Bool {return self._requiredEnum4 != nil}
- /// Clears the value of `requiredEnum4`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum4() {self._requiredEnum4 = nil}
- var a3: Int32 {
- get {return _a3 ?? 0}
- set {_a3 = newValue}
- }
- /// Returns true if `a3` has been explicitly set.
- var hasA3: Bool {return self._a3 != nil}
- /// Clears the value of `a3`. Subsequent reads from it will return its default value.
- mutating func clearA3() {self._a3 = nil}
- var requiredEnum2: Proto2Unittest_TestRequiredEnumMulti.NestedEnum {
- get {return _requiredEnum2 ?? .unspecified}
- set {_requiredEnum2 = newValue}
- }
- /// Returns true if `requiredEnum2` has been explicitly set.
- var hasRequiredEnum2: Bool {return self._requiredEnum2 != nil}
- /// Clears the value of `requiredEnum2`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum2() {self._requiredEnum2 = nil}
- var requiredEnum1: Proto2Unittest_ForeignEnum {
- get {return _requiredEnum1 ?? .foreignFoo}
- set {_requiredEnum1 = newValue}
- }
- /// Returns true if `requiredEnum1` has been explicitly set.
- var hasRequiredEnum1: Bool {return self._requiredEnum1 != nil}
- /// Clears the value of `requiredEnum1`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum1() {self._requiredEnum1 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case unspecified = 0
- case foo = 1
- case bar = 2
- case baz = 100
- init() {
- self = .unspecified
- }
- }
- init() {}
- fileprivate var _requiredEnum4: Proto2Unittest_TestRequiredEnumMulti.NestedEnum? = nil
- fileprivate var _a3: Int32? = nil
- fileprivate var _requiredEnum2: Proto2Unittest_TestRequiredEnumMulti.NestedEnum? = nil
- fileprivate var _requiredEnum1: Proto2Unittest_ForeignEnum? = nil
- }
- struct Proto2Unittest_TestRequiredNoMaskMulti: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// Intentionally placed in descending field number to force sorting in closed
- /// enum verification. Also, using large field numbers to use tag only
- /// matching for required fields.
- var requiredFixed3280: UInt32 {
- get {return _requiredFixed3280 ?? 0}
- set {_requiredFixed3280 = newValue}
- }
- /// Returns true if `requiredFixed3280` has been explicitly set.
- var hasRequiredFixed3280: Bool {return self._requiredFixed3280 != nil}
- /// Clears the value of `requiredFixed3280`. Subsequent reads from it will return its default value.
- mutating func clearRequiredFixed3280() {self._requiredFixed3280 = nil}
- var requiredFixed3270: UInt32 {
- get {return _requiredFixed3270 ?? 0}
- set {_requiredFixed3270 = newValue}
- }
- /// Returns true if `requiredFixed3270` has been explicitly set.
- var hasRequiredFixed3270: Bool {return self._requiredFixed3270 != nil}
- /// Clears the value of `requiredFixed3270`. Subsequent reads from it will return its default value.
- mutating func clearRequiredFixed3270() {self._requiredFixed3270 = nil}
- var requiredEnum64: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum {
- get {return _requiredEnum64 ?? .unspecified}
- set {_requiredEnum64 = newValue}
- }
- /// Returns true if `requiredEnum64` has been explicitly set.
- var hasRequiredEnum64: Bool {return self._requiredEnum64 != nil}
- /// Clears the value of `requiredEnum64`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum64() {self._requiredEnum64 = nil}
- var requiredEnum4: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum {
- get {return _requiredEnum4 ?? .unspecified}
- set {_requiredEnum4 = newValue}
- }
- /// Returns true if `requiredEnum4` has been explicitly set.
- var hasRequiredEnum4: Bool {return self._requiredEnum4 != nil}
- /// Clears the value of `requiredEnum4`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum4() {self._requiredEnum4 = nil}
- var a3: Int32 {
- get {return _a3 ?? 0}
- set {_a3 = newValue}
- }
- /// Returns true if `a3` has been explicitly set.
- var hasA3: Bool {return self._a3 != nil}
- /// Clears the value of `a3`. Subsequent reads from it will return its default value.
- mutating func clearA3() {self._a3 = nil}
- var requiredEnum2: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum {
- get {return _requiredEnum2 ?? .unspecified}
- set {_requiredEnum2 = newValue}
- }
- /// Returns true if `requiredEnum2` has been explicitly set.
- var hasRequiredEnum2: Bool {return self._requiredEnum2 != nil}
- /// Clears the value of `requiredEnum2`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum2() {self._requiredEnum2 = nil}
- var requiredEnum1: Proto2Unittest_ForeignEnum {
- get {return _requiredEnum1 ?? .foreignFoo}
- set {_requiredEnum1 = newValue}
- }
- /// Returns true if `requiredEnum1` has been explicitly set.
- var hasRequiredEnum1: Bool {return self._requiredEnum1 != nil}
- /// Clears the value of `requiredEnum1`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum1() {self._requiredEnum1 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case unspecified = 0
- case foo = 1
- case bar = 2
- case baz = 100
- init() {
- self = .unspecified
- }
- }
- init() {}
- fileprivate var _requiredFixed3280: UInt32? = nil
- fileprivate var _requiredFixed3270: UInt32? = nil
- fileprivate var _requiredEnum64: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum? = nil
- fileprivate var _requiredEnum4: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum? = nil
- fileprivate var _a3: Int32? = nil
- fileprivate var _requiredEnum2: Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum? = nil
- fileprivate var _requiredEnum1: Proto2Unittest_ForeignEnum? = nil
- }
- /// We have separate messages for testing required fields because it's
- /// annoying to have to fill in required fields in TestProto in order to
- /// do anything with it. Note that we don't need to test every type of
- /// required filed because the code output is basically identical to
- /// optional fields for all types.
- struct Proto2Unittest_TestRequired: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _storage._a ?? 0}
- set {_uniqueStorage()._a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return _storage._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {_uniqueStorage()._a = nil}
- var dummy2: Int32 {
- get {return _storage._dummy2 ?? 0}
- set {_uniqueStorage()._dummy2 = newValue}
- }
- /// Returns true if `dummy2` has been explicitly set.
- var hasDummy2: Bool {return _storage._dummy2 != nil}
- /// Clears the value of `dummy2`. Subsequent reads from it will return its default value.
- mutating func clearDummy2() {_uniqueStorage()._dummy2 = nil}
- var b: Int32 {
- get {return _storage._b ?? 0}
- set {_uniqueStorage()._b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return _storage._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {_uniqueStorage()._b = nil}
- /// Pad the field count to 32 so that we can test that IsInitialized()
- /// properly checks multiple elements of has_bits_.
- var dummy4: Int32 {
- get {return _storage._dummy4 ?? 0}
- set {_uniqueStorage()._dummy4 = newValue}
- }
- /// Returns true if `dummy4` has been explicitly set.
- var hasDummy4: Bool {return _storage._dummy4 != nil}
- /// Clears the value of `dummy4`. Subsequent reads from it will return its default value.
- mutating func clearDummy4() {_uniqueStorage()._dummy4 = nil}
- var dummy5: Int32 {
- get {return _storage._dummy5 ?? 0}
- set {_uniqueStorage()._dummy5 = newValue}
- }
- /// Returns true if `dummy5` has been explicitly set.
- var hasDummy5: Bool {return _storage._dummy5 != nil}
- /// Clears the value of `dummy5`. Subsequent reads from it will return its default value.
- mutating func clearDummy5() {_uniqueStorage()._dummy5 = nil}
- var dummy6: Int32 {
- get {return _storage._dummy6 ?? 0}
- set {_uniqueStorage()._dummy6 = newValue}
- }
- /// Returns true if `dummy6` has been explicitly set.
- var hasDummy6: Bool {return _storage._dummy6 != nil}
- /// Clears the value of `dummy6`. Subsequent reads from it will return its default value.
- mutating func clearDummy6() {_uniqueStorage()._dummy6 = nil}
- var dummy7: Int32 {
- get {return _storage._dummy7 ?? 0}
- set {_uniqueStorage()._dummy7 = newValue}
- }
- /// Returns true if `dummy7` has been explicitly set.
- var hasDummy7: Bool {return _storage._dummy7 != nil}
- /// Clears the value of `dummy7`. Subsequent reads from it will return its default value.
- mutating func clearDummy7() {_uniqueStorage()._dummy7 = nil}
- var dummy8: Int32 {
- get {return _storage._dummy8 ?? 0}
- set {_uniqueStorage()._dummy8 = newValue}
- }
- /// Returns true if `dummy8` has been explicitly set.
- var hasDummy8: Bool {return _storage._dummy8 != nil}
- /// Clears the value of `dummy8`. Subsequent reads from it will return its default value.
- mutating func clearDummy8() {_uniqueStorage()._dummy8 = nil}
- var dummy9: Int32 {
- get {return _storage._dummy9 ?? 0}
- set {_uniqueStorage()._dummy9 = newValue}
- }
- /// Returns true if `dummy9` has been explicitly set.
- var hasDummy9: Bool {return _storage._dummy9 != nil}
- /// Clears the value of `dummy9`. Subsequent reads from it will return its default value.
- mutating func clearDummy9() {_uniqueStorage()._dummy9 = nil}
- var dummy10: Int32 {
- get {return _storage._dummy10 ?? 0}
- set {_uniqueStorage()._dummy10 = newValue}
- }
- /// Returns true if `dummy10` has been explicitly set.
- var hasDummy10: Bool {return _storage._dummy10 != nil}
- /// Clears the value of `dummy10`. Subsequent reads from it will return its default value.
- mutating func clearDummy10() {_uniqueStorage()._dummy10 = nil}
- var dummy11: Int32 {
- get {return _storage._dummy11 ?? 0}
- set {_uniqueStorage()._dummy11 = newValue}
- }
- /// Returns true if `dummy11` has been explicitly set.
- var hasDummy11: Bool {return _storage._dummy11 != nil}
- /// Clears the value of `dummy11`. Subsequent reads from it will return its default value.
- mutating func clearDummy11() {_uniqueStorage()._dummy11 = nil}
- var dummy12: Int32 {
- get {return _storage._dummy12 ?? 0}
- set {_uniqueStorage()._dummy12 = newValue}
- }
- /// Returns true if `dummy12` has been explicitly set.
- var hasDummy12: Bool {return _storage._dummy12 != nil}
- /// Clears the value of `dummy12`. Subsequent reads from it will return its default value.
- mutating func clearDummy12() {_uniqueStorage()._dummy12 = nil}
- var dummy13: Int32 {
- get {return _storage._dummy13 ?? 0}
- set {_uniqueStorage()._dummy13 = newValue}
- }
- /// Returns true if `dummy13` has been explicitly set.
- var hasDummy13: Bool {return _storage._dummy13 != nil}
- /// Clears the value of `dummy13`. Subsequent reads from it will return its default value.
- mutating func clearDummy13() {_uniqueStorage()._dummy13 = nil}
- var dummy14: Int32 {
- get {return _storage._dummy14 ?? 0}
- set {_uniqueStorage()._dummy14 = newValue}
- }
- /// Returns true if `dummy14` has been explicitly set.
- var hasDummy14: Bool {return _storage._dummy14 != nil}
- /// Clears the value of `dummy14`. Subsequent reads from it will return its default value.
- mutating func clearDummy14() {_uniqueStorage()._dummy14 = nil}
- var dummy15: Int32 {
- get {return _storage._dummy15 ?? 0}
- set {_uniqueStorage()._dummy15 = newValue}
- }
- /// Returns true if `dummy15` has been explicitly set.
- var hasDummy15: Bool {return _storage._dummy15 != nil}
- /// Clears the value of `dummy15`. Subsequent reads from it will return its default value.
- mutating func clearDummy15() {_uniqueStorage()._dummy15 = nil}
- var dummy16: Int32 {
- get {return _storage._dummy16 ?? 0}
- set {_uniqueStorage()._dummy16 = newValue}
- }
- /// Returns true if `dummy16` has been explicitly set.
- var hasDummy16: Bool {return _storage._dummy16 != nil}
- /// Clears the value of `dummy16`. Subsequent reads from it will return its default value.
- mutating func clearDummy16() {_uniqueStorage()._dummy16 = nil}
- var dummy17: Int32 {
- get {return _storage._dummy17 ?? 0}
- set {_uniqueStorage()._dummy17 = newValue}
- }
- /// Returns true if `dummy17` has been explicitly set.
- var hasDummy17: Bool {return _storage._dummy17 != nil}
- /// Clears the value of `dummy17`. Subsequent reads from it will return its default value.
- mutating func clearDummy17() {_uniqueStorage()._dummy17 = nil}
- var dummy18: Int32 {
- get {return _storage._dummy18 ?? 0}
- set {_uniqueStorage()._dummy18 = newValue}
- }
- /// Returns true if `dummy18` has been explicitly set.
- var hasDummy18: Bool {return _storage._dummy18 != nil}
- /// Clears the value of `dummy18`. Subsequent reads from it will return its default value.
- mutating func clearDummy18() {_uniqueStorage()._dummy18 = nil}
- var dummy19: Int32 {
- get {return _storage._dummy19 ?? 0}
- set {_uniqueStorage()._dummy19 = newValue}
- }
- /// Returns true if `dummy19` has been explicitly set.
- var hasDummy19: Bool {return _storage._dummy19 != nil}
- /// Clears the value of `dummy19`. Subsequent reads from it will return its default value.
- mutating func clearDummy19() {_uniqueStorage()._dummy19 = nil}
- var dummy20: Int32 {
- get {return _storage._dummy20 ?? 0}
- set {_uniqueStorage()._dummy20 = newValue}
- }
- /// Returns true if `dummy20` has been explicitly set.
- var hasDummy20: Bool {return _storage._dummy20 != nil}
- /// Clears the value of `dummy20`. Subsequent reads from it will return its default value.
- mutating func clearDummy20() {_uniqueStorage()._dummy20 = nil}
- var dummy21: Int32 {
- get {return _storage._dummy21 ?? 0}
- set {_uniqueStorage()._dummy21 = newValue}
- }
- /// Returns true if `dummy21` has been explicitly set.
- var hasDummy21: Bool {return _storage._dummy21 != nil}
- /// Clears the value of `dummy21`. Subsequent reads from it will return its default value.
- mutating func clearDummy21() {_uniqueStorage()._dummy21 = nil}
- var dummy22: Int32 {
- get {return _storage._dummy22 ?? 0}
- set {_uniqueStorage()._dummy22 = newValue}
- }
- /// Returns true if `dummy22` has been explicitly set.
- var hasDummy22: Bool {return _storage._dummy22 != nil}
- /// Clears the value of `dummy22`. Subsequent reads from it will return its default value.
- mutating func clearDummy22() {_uniqueStorage()._dummy22 = nil}
- var dummy23: Int32 {
- get {return _storage._dummy23 ?? 0}
- set {_uniqueStorage()._dummy23 = newValue}
- }
- /// Returns true if `dummy23` has been explicitly set.
- var hasDummy23: Bool {return _storage._dummy23 != nil}
- /// Clears the value of `dummy23`. Subsequent reads from it will return its default value.
- mutating func clearDummy23() {_uniqueStorage()._dummy23 = nil}
- var dummy24: Int32 {
- get {return _storage._dummy24 ?? 0}
- set {_uniqueStorage()._dummy24 = newValue}
- }
- /// Returns true if `dummy24` has been explicitly set.
- var hasDummy24: Bool {return _storage._dummy24 != nil}
- /// Clears the value of `dummy24`. Subsequent reads from it will return its default value.
- mutating func clearDummy24() {_uniqueStorage()._dummy24 = nil}
- var dummy25: Int32 {
- get {return _storage._dummy25 ?? 0}
- set {_uniqueStorage()._dummy25 = newValue}
- }
- /// Returns true if `dummy25` has been explicitly set.
- var hasDummy25: Bool {return _storage._dummy25 != nil}
- /// Clears the value of `dummy25`. Subsequent reads from it will return its default value.
- mutating func clearDummy25() {_uniqueStorage()._dummy25 = nil}
- var dummy26: Int32 {
- get {return _storage._dummy26 ?? 0}
- set {_uniqueStorage()._dummy26 = newValue}
- }
- /// Returns true if `dummy26` has been explicitly set.
- var hasDummy26: Bool {return _storage._dummy26 != nil}
- /// Clears the value of `dummy26`. Subsequent reads from it will return its default value.
- mutating func clearDummy26() {_uniqueStorage()._dummy26 = nil}
- var dummy27: Int32 {
- get {return _storage._dummy27 ?? 0}
- set {_uniqueStorage()._dummy27 = newValue}
- }
- /// Returns true if `dummy27` has been explicitly set.
- var hasDummy27: Bool {return _storage._dummy27 != nil}
- /// Clears the value of `dummy27`. Subsequent reads from it will return its default value.
- mutating func clearDummy27() {_uniqueStorage()._dummy27 = nil}
- var dummy28: Int32 {
- get {return _storage._dummy28 ?? 0}
- set {_uniqueStorage()._dummy28 = newValue}
- }
- /// Returns true if `dummy28` has been explicitly set.
- var hasDummy28: Bool {return _storage._dummy28 != nil}
- /// Clears the value of `dummy28`. Subsequent reads from it will return its default value.
- mutating func clearDummy28() {_uniqueStorage()._dummy28 = nil}
- var dummy29: Int32 {
- get {return _storage._dummy29 ?? 0}
- set {_uniqueStorage()._dummy29 = newValue}
- }
- /// Returns true if `dummy29` has been explicitly set.
- var hasDummy29: Bool {return _storage._dummy29 != nil}
- /// Clears the value of `dummy29`. Subsequent reads from it will return its default value.
- mutating func clearDummy29() {_uniqueStorage()._dummy29 = nil}
- var dummy30: Int32 {
- get {return _storage._dummy30 ?? 0}
- set {_uniqueStorage()._dummy30 = newValue}
- }
- /// Returns true if `dummy30` has been explicitly set.
- var hasDummy30: Bool {return _storage._dummy30 != nil}
- /// Clears the value of `dummy30`. Subsequent reads from it will return its default value.
- mutating func clearDummy30() {_uniqueStorage()._dummy30 = nil}
- var dummy31: Int32 {
- get {return _storage._dummy31 ?? 0}
- set {_uniqueStorage()._dummy31 = newValue}
- }
- /// Returns true if `dummy31` has been explicitly set.
- var hasDummy31: Bool {return _storage._dummy31 != nil}
- /// Clears the value of `dummy31`. Subsequent reads from it will return its default value.
- mutating func clearDummy31() {_uniqueStorage()._dummy31 = nil}
- var dummy32: Int32 {
- get {return _storage._dummy32 ?? 0}
- set {_uniqueStorage()._dummy32 = newValue}
- }
- /// Returns true if `dummy32` has been explicitly set.
- var hasDummy32: Bool {return _storage._dummy32 != nil}
- /// Clears the value of `dummy32`. Subsequent reads from it will return its default value.
- mutating func clearDummy32() {_uniqueStorage()._dummy32 = nil}
- var c: Int32 {
- get {return _storage._c ?? 0}
- set {_uniqueStorage()._c = newValue}
- }
- /// Returns true if `c` has been explicitly set.
- var hasC: Bool {return _storage._c != nil}
- /// Clears the value of `c`. Subsequent reads from it will return its default value.
- mutating func clearC() {_uniqueStorage()._c = nil}
- /// Add an optional child message to make this non-trivial for go/pdlazy.
- var optionalForeign: Proto2Unittest_ForeignMessage {
- get {return _storage._optionalForeign ?? Proto2Unittest_ForeignMessage()}
- set {_uniqueStorage()._optionalForeign = newValue}
- }
- /// Returns true if `optionalForeign` has been explicitly set.
- var hasOptionalForeign: Bool {return _storage._optionalForeign != nil}
- /// Clears the value of `optionalForeign`. Subsequent reads from it will return its default value.
- mutating func clearOptionalForeign() {_uniqueStorage()._optionalForeign = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_TestRequiredForeign: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalMessage: Proto2Unittest_TestRequired {
- get {return _optionalMessage ?? Proto2Unittest_TestRequired()}
- set {_optionalMessage = newValue}
- }
- /// Returns true if `optionalMessage` has been explicitly set.
- var hasOptionalMessage: Bool {return self._optionalMessage != nil}
- /// Clears the value of `optionalMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalMessage() {self._optionalMessage = nil}
- var repeatedMessage: [Proto2Unittest_TestRequired] = []
- var dummy: Int32 {
- get {return _dummy ?? 0}
- set {_dummy = newValue}
- }
- /// Returns true if `dummy` has been explicitly set.
- var hasDummy: Bool {return self._dummy != nil}
- /// Clears the value of `dummy`. Subsequent reads from it will return its default value.
- mutating func clearDummy() {self._dummy = nil}
- /// Missing required fields must not affect verification of child messages.
- var optionalLazyMessage: Proto2Unittest_NestedTestAllTypes {
- get {return _optionalLazyMessage ?? Proto2Unittest_NestedTestAllTypes()}
- set {_optionalLazyMessage = newValue}
- }
- /// Returns true if `optionalLazyMessage` has been explicitly set.
- var hasOptionalLazyMessage: Bool {return self._optionalLazyMessage != nil}
- /// Clears the value of `optionalLazyMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalLazyMessage() {self._optionalLazyMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalMessage: Proto2Unittest_TestRequired? = nil
- fileprivate var _dummy: Int32? = nil
- fileprivate var _optionalLazyMessage: Proto2Unittest_NestedTestAllTypes? = nil
- }
- struct Proto2Unittest_TestRequiredMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalMessage: Proto2Unittest_TestRequired {
- get {return _optionalMessage ?? Proto2Unittest_TestRequired()}
- set {_optionalMessage = newValue}
- }
- /// Returns true if `optionalMessage` has been explicitly set.
- var hasOptionalMessage: Bool {return self._optionalMessage != nil}
- /// Clears the value of `optionalMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalMessage() {self._optionalMessage = nil}
- var repeatedMessage: [Proto2Unittest_TestRequired] = []
- var requiredMessage: Proto2Unittest_TestRequired {
- get {return _requiredMessage ?? Proto2Unittest_TestRequired()}
- set {_requiredMessage = newValue}
- }
- /// Returns true if `requiredMessage` has been explicitly set.
- var hasRequiredMessage: Bool {return self._requiredMessage != nil}
- /// Clears the value of `requiredMessage`. Subsequent reads from it will return its default value.
- mutating func clearRequiredMessage() {self._requiredMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalMessage: Proto2Unittest_TestRequired? = nil
- fileprivate var _requiredMessage: Proto2Unittest_TestRequired? = nil
- }
- struct Proto2Unittest_TestNestedRequiredForeign: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var child: Proto2Unittest_TestNestedRequiredForeign {
- get {return _storage._child ?? Proto2Unittest_TestNestedRequiredForeign()}
- set {_uniqueStorage()._child = newValue}
- }
- /// Returns true if `child` has been explicitly set.
- var hasChild: Bool {return _storage._child != nil}
- /// Clears the value of `child`. Subsequent reads from it will return its default value.
- mutating func clearChild() {_uniqueStorage()._child = nil}
- var payload: Proto2Unittest_TestRequiredForeign {
- get {return _storage._payload ?? Proto2Unittest_TestRequiredForeign()}
- set {_uniqueStorage()._payload = newValue}
- }
- /// Returns true if `payload` has been explicitly set.
- var hasPayload: Bool {return _storage._payload != nil}
- /// Clears the value of `payload`. Subsequent reads from it will return its default value.
- mutating func clearPayload() {_uniqueStorage()._payload = nil}
- var dummy: Int32 {
- get {return _storage._dummy ?? 0}
- set {_uniqueStorage()._dummy = newValue}
- }
- /// Returns true if `dummy` has been explicitly set.
- var hasDummy: Bool {return _storage._dummy != nil}
- /// Clears the value of `dummy`. Subsequent reads from it will return its default value.
- mutating func clearDummy() {_uniqueStorage()._dummy = nil}
- /// optional message to test required closed enum.
- var requiredEnum: Proto2Unittest_TestRequiredEnum {
- get {return _storage._requiredEnum ?? Proto2Unittest_TestRequiredEnum()}
- set {_uniqueStorage()._requiredEnum = newValue}
- }
- /// Returns true if `requiredEnum` has been explicitly set.
- var hasRequiredEnum: Bool {return _storage._requiredEnum != nil}
- /// Clears the value of `requiredEnum`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnum() {_uniqueStorage()._requiredEnum = nil}
- var requiredEnumNoMask: Proto2Unittest_TestRequiredEnumNoMask {
- get {return _storage._requiredEnumNoMask ?? Proto2Unittest_TestRequiredEnumNoMask()}
- set {_uniqueStorage()._requiredEnumNoMask = newValue}
- }
- /// Returns true if `requiredEnumNoMask` has been explicitly set.
- var hasRequiredEnumNoMask: Bool {return _storage._requiredEnumNoMask != nil}
- /// Clears the value of `requiredEnumNoMask`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnumNoMask() {_uniqueStorage()._requiredEnumNoMask = nil}
- var requiredEnumMulti: Proto2Unittest_TestRequiredEnumMulti {
- get {return _storage._requiredEnumMulti ?? Proto2Unittest_TestRequiredEnumMulti()}
- set {_uniqueStorage()._requiredEnumMulti = newValue}
- }
- /// Returns true if `requiredEnumMulti` has been explicitly set.
- var hasRequiredEnumMulti: Bool {return _storage._requiredEnumMulti != nil}
- /// Clears the value of `requiredEnumMulti`. Subsequent reads from it will return its default value.
- mutating func clearRequiredEnumMulti() {_uniqueStorage()._requiredEnumMulti = nil}
- var requiredNoMask: Proto2Unittest_TestRequiredNoMaskMulti {
- get {return _storage._requiredNoMask ?? Proto2Unittest_TestRequiredNoMaskMulti()}
- set {_uniqueStorage()._requiredNoMask = newValue}
- }
- /// Returns true if `requiredNoMask` has been explicitly set.
- var hasRequiredNoMask: Bool {return _storage._requiredNoMask != nil}
- /// Clears the value of `requiredNoMask`. Subsequent reads from it will return its default value.
- mutating func clearRequiredNoMask() {_uniqueStorage()._requiredNoMask = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// Test that we can use NestedMessage from outside TestAllTypes.
- struct Proto2Unittest_TestForeignNested: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var foreignNested: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return _foreignNested ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {_foreignNested = newValue}
- }
- /// Returns true if `foreignNested` has been explicitly set.
- var hasForeignNested: Bool {return self._foreignNested != nil}
- /// Clears the value of `foreignNested`. Subsequent reads from it will return its default value.
- mutating func clearForeignNested() {self._foreignNested = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _foreignNested: Proto2Unittest_TestAllTypes.NestedMessage? = nil
- }
- /// TestEmptyMessage is used to test unknown field support.
- struct Proto2Unittest_TestEmptyMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- /// Like above, but declare all field numbers as potential extensions. No
- /// actual extensions should ever be defined for this type.
- struct Proto2Unittest_TestEmptyMessageWithExtensions: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- /// Needed for a Python test.
- struct Proto2Unittest_TestPickleNestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var bb: Int32 {
- get {return _bb ?? 0}
- set {_bb = newValue}
- }
- /// Returns true if `bb` has been explicitly set.
- var hasBb: Bool {return self._bb != nil}
- /// Clears the value of `bb`. Subsequent reads from it will return its default value.
- mutating func clearBb() {self._bb = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedNestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var cc: Int32 {
- get {return _cc ?? 0}
- set {_cc = newValue}
- }
- /// Returns true if `cc` has been explicitly set.
- var hasCc: Bool {return self._cc != nil}
- /// Clears the value of `cc`. Subsequent reads from it will return its default value.
- mutating func clearCc() {self._cc = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _cc: Int32? = nil
- }
- init() {}
- fileprivate var _bb: Int32? = nil
- }
- init() {}
- }
- struct Proto2Unittest_TestMultipleExtensionRanges: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- /// Test that really large tag numbers don't break anything.
- struct Proto2Unittest_TestReallyLargeTagNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The largest possible tag number is 2^28 - 1, since the wire format uses
- /// three bits to communicate wire type.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var bb: Int32 {
- get {return _bb ?? 0}
- set {_bb = newValue}
- }
- /// Returns true if `bb` has been explicitly set.
- var hasBb: Bool {return self._bb != nil}
- /// Clears the value of `bb`. Subsequent reads from it will return its default value.
- mutating func clearBb() {self._bb = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _bb: Int32? = nil
- }
- struct Proto2Unittest_TestRecursiveMessage: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Proto2Unittest_TestRecursiveMessage {
- get {return _storage._a ?? Proto2Unittest_TestRecursiveMessage()}
- set {_uniqueStorage()._a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return _storage._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {_uniqueStorage()._a = nil}
- var i: Int32 {
- get {return _storage._i ?? 0}
- set {_uniqueStorage()._i = newValue}
- }
- /// Returns true if `i` has been explicitly set.
- var hasI: Bool {return _storage._i != nil}
- /// Clears the value of `i`. Subsequent reads from it will return its default value.
- mutating func clearI() {_uniqueStorage()._i = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// Test that mutual recursion works.
- struct Proto2Unittest_TestMutualRecursionA: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var bb: Proto2Unittest_TestMutualRecursionB {
- get {return _storage._bb ?? Proto2Unittest_TestMutualRecursionB()}
- set {_uniqueStorage()._bb = newValue}
- }
- /// Returns true if `bb` has been explicitly set.
- var hasBb: Bool {return _storage._bb != nil}
- /// Clears the value of `bb`. Subsequent reads from it will return its default value.
- mutating func clearBb() {_uniqueStorage()._bb = nil}
- var subGroup: Proto2Unittest_TestMutualRecursionA.SubGroup {
- get {return _storage._subGroup ?? Proto2Unittest_TestMutualRecursionA.SubGroup()}
- set {_uniqueStorage()._subGroup = newValue}
- }
- /// Returns true if `subGroup` has been explicitly set.
- var hasSubGroup: Bool {return _storage._subGroup != nil}
- /// Clears the value of `subGroup`. Subsequent reads from it will return its default value.
- mutating func clearSubGroup() {_uniqueStorage()._subGroup = nil}
- var subGroupR: [Proto2Unittest_TestMutualRecursionA.SubGroupR] {
- get {return _storage._subGroupR}
- set {_uniqueStorage()._subGroupR = newValue}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct SubMessage: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var b: Proto2Unittest_TestMutualRecursionB {
- get {return _storage._b ?? Proto2Unittest_TestMutualRecursionB()}
- set {_uniqueStorage()._b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return _storage._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {_uniqueStorage()._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct SubGroup: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// Needed because of bug in javatest
- var subMessage: Proto2Unittest_TestMutualRecursionA.SubMessage {
- get {return _storage._subMessage ?? Proto2Unittest_TestMutualRecursionA.SubMessage()}
- set {_uniqueStorage()._subMessage = newValue}
- }
- /// Returns true if `subMessage` has been explicitly set.
- var hasSubMessage: Bool {return _storage._subMessage != nil}
- /// Clears the value of `subMessage`. Subsequent reads from it will return its default value.
- mutating func clearSubMessage() {_uniqueStorage()._subMessage = nil}
- var notInThisScc: Proto2Unittest_TestAllTypes {
- get {return _storage._notInThisScc ?? Proto2Unittest_TestAllTypes()}
- set {_uniqueStorage()._notInThisScc = newValue}
- }
- /// Returns true if `notInThisScc` has been explicitly set.
- var hasNotInThisScc: Bool {return _storage._notInThisScc != nil}
- /// Clears the value of `notInThisScc`. Subsequent reads from it will return its default value.
- mutating func clearNotInThisScc() {_uniqueStorage()._notInThisScc = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct SubGroupR: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var payload: Proto2Unittest_TestAllTypes {
- get {return _payload ?? Proto2Unittest_TestAllTypes()}
- set {_payload = newValue}
- }
- /// Returns true if `payload` has been explicitly set.
- var hasPayload: Bool {return self._payload != nil}
- /// Clears the value of `payload`. Subsequent reads from it will return its default value.
- mutating func clearPayload() {self._payload = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _payload: Proto2Unittest_TestAllTypes? = nil
- }
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_TestMutualRecursionB: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Proto2Unittest_TestMutualRecursionA {
- get {return _storage._a ?? Proto2Unittest_TestMutualRecursionA()}
- set {_uniqueStorage()._a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return _storage._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {_uniqueStorage()._a = nil}
- var optionalInt32: Int32 {
- get {return _storage._optionalInt32 ?? 0}
- set {_uniqueStorage()._optionalInt32 = newValue}
- }
- /// Returns true if `optionalInt32` has been explicitly set.
- var hasOptionalInt32: Bool {return _storage._optionalInt32 != nil}
- /// Clears the value of `optionalInt32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32() {_uniqueStorage()._optionalInt32 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_TestIsInitialized: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var subMessage: Proto2Unittest_TestIsInitialized.SubMessage {
- get {return _subMessage ?? Proto2Unittest_TestIsInitialized.SubMessage()}
- set {_subMessage = newValue}
- }
- /// Returns true if `subMessage` has been explicitly set.
- var hasSubMessage: Bool {return self._subMessage != nil}
- /// Clears the value of `subMessage`. Subsequent reads from it will return its default value.
- mutating func clearSubMessage() {self._subMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct SubMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var subGroup: Proto2Unittest_TestIsInitialized.SubMessage.SubGroup {
- get {return _subGroup ?? Proto2Unittest_TestIsInitialized.SubMessage.SubGroup()}
- set {_subGroup = newValue}
- }
- /// Returns true if `subGroup` has been explicitly set.
- var hasSubGroup: Bool {return self._subGroup != nil}
- /// Clears the value of `subGroup`. Subsequent reads from it will return its default value.
- mutating func clearSubGroup() {self._subGroup = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct SubGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var i: Int32 {
- get {return _i ?? 0}
- set {_i = newValue}
- }
- /// Returns true if `i` has been explicitly set.
- var hasI: Bool {return self._i != nil}
- /// Clears the value of `i`. Subsequent reads from it will return its default value.
- mutating func clearI() {self._i = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _i: Int32? = nil
- }
- init() {}
- fileprivate var _subGroup: Proto2Unittest_TestIsInitialized.SubMessage.SubGroup? = nil
- }
- init() {}
- fileprivate var _subMessage: Proto2Unittest_TestIsInitialized.SubMessage? = nil
- }
- /// Test that groups have disjoint field numbers from their siblings and
- /// parents. This is NOT possible in proto1; only google.protobuf. When attempting
- /// to compile with proto1, this will emit an error; so we only include it
- /// in proto2_unittest_proto.
- struct Proto2Unittest_TestDupFieldNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// NO_PROTO1
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- /// NO_PROTO1
- var foo: Proto2Unittest_TestDupFieldNumber.Foo {
- get {return _foo ?? Proto2Unittest_TestDupFieldNumber.Foo()}
- set {_foo = newValue}
- }
- /// Returns true if `foo` has been explicitly set.
- var hasFoo: Bool {return self._foo != nil}
- /// Clears the value of `foo`. Subsequent reads from it will return its default value.
- mutating func clearFoo() {self._foo = nil}
- /// NO_PROTO1
- var bar: Proto2Unittest_TestDupFieldNumber.Bar {
- get {return _bar ?? Proto2Unittest_TestDupFieldNumber.Bar()}
- set {_bar = newValue}
- }
- /// Returns true if `bar` has been explicitly set.
- var hasBar: Bool {return self._bar != nil}
- /// Clears the value of `bar`. Subsequent reads from it will return its default value.
- mutating func clearBar() {self._bar = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- /// NO_PROTO1
- struct Foo: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// NO_PROTO1
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- /// NO_PROTO1
- struct Bar: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// NO_PROTO1
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- }
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _foo: Proto2Unittest_TestDupFieldNumber.Foo? = nil
- fileprivate var _bar: Proto2Unittest_TestDupFieldNumber.Bar? = nil
- }
- /// Additional messages for testing lazy fields.
- struct Proto2Unittest_TestEagerMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var subMessage: Proto2Unittest_TestAllTypes {
- get {return _subMessage ?? Proto2Unittest_TestAllTypes()}
- set {_subMessage = newValue}
- }
- /// Returns true if `subMessage` has been explicitly set.
- var hasSubMessage: Bool {return self._subMessage != nil}
- /// Clears the value of `subMessage`. Subsequent reads from it will return its default value.
- mutating func clearSubMessage() {self._subMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _subMessage: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestLazyMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var subMessage: Proto2Unittest_TestAllTypes {
- get {return _subMessage ?? Proto2Unittest_TestAllTypes()}
- set {_subMessage = newValue}
- }
- /// Returns true if `subMessage` has been explicitly set.
- var hasSubMessage: Bool {return self._subMessage != nil}
- /// Clears the value of `subMessage`. Subsequent reads from it will return its default value.
- mutating func clearSubMessage() {self._subMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _subMessage: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestLazyMessageRepeated: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var repeatedMessage: [Proto2Unittest_TestLazyMessage] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_TestEagerMaybeLazy: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var messageFoo: Proto2Unittest_TestAllTypes {
- get {return _messageFoo ?? Proto2Unittest_TestAllTypes()}
- set {_messageFoo = newValue}
- }
- /// Returns true if `messageFoo` has been explicitly set.
- var hasMessageFoo: Bool {return self._messageFoo != nil}
- /// Clears the value of `messageFoo`. Subsequent reads from it will return its default value.
- mutating func clearMessageFoo() {self._messageFoo = nil}
- var messageBar: Proto2Unittest_TestAllTypes {
- get {return _messageBar ?? Proto2Unittest_TestAllTypes()}
- set {_messageBar = newValue}
- }
- /// Returns true if `messageBar` has been explicitly set.
- var hasMessageBar: Bool {return self._messageBar != nil}
- /// Clears the value of `messageBar`. Subsequent reads from it will return its default value.
- mutating func clearMessageBar() {self._messageBar = nil}
- var messageBaz: Proto2Unittest_TestEagerMaybeLazy.NestedMessage {
- get {return _messageBaz ?? Proto2Unittest_TestEagerMaybeLazy.NestedMessage()}
- set {_messageBaz = newValue}
- }
- /// Returns true if `messageBaz` has been explicitly set.
- var hasMessageBaz: Bool {return self._messageBaz != nil}
- /// Clears the value of `messageBaz`. Subsequent reads from it will return its default value.
- mutating func clearMessageBaz() {self._messageBaz = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var packed: Proto2Unittest_TestPackedTypes {
- get {return _packed ?? Proto2Unittest_TestPackedTypes()}
- set {_packed = newValue}
- }
- /// Returns true if `packed` has been explicitly set.
- var hasPacked: Bool {return self._packed != nil}
- /// Clears the value of `packed`. Subsequent reads from it will return its default value.
- mutating func clearPacked() {self._packed = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _packed: Proto2Unittest_TestPackedTypes? = nil
- }
- init() {}
- fileprivate var _messageFoo: Proto2Unittest_TestAllTypes? = nil
- fileprivate var _messageBar: Proto2Unittest_TestAllTypes? = nil
- fileprivate var _messageBaz: Proto2Unittest_TestEagerMaybeLazy.NestedMessage? = nil
- }
- /// Needed for a Python test.
- struct Proto2Unittest_TestNestedMessageHasBits: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalNestedMessage: Proto2Unittest_TestNestedMessageHasBits.NestedMessage {
- get {return _optionalNestedMessage ?? Proto2Unittest_TestNestedMessageHasBits.NestedMessage()}
- set {_optionalNestedMessage = newValue}
- }
- /// Returns true if `optionalNestedMessage` has been explicitly set.
- var hasOptionalNestedMessage: Bool {return self._optionalNestedMessage != nil}
- /// Clears the value of `optionalNestedMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNestedMessage() {self._optionalNestedMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var nestedmessageRepeatedInt32: [Int32] = []
- var nestedmessageRepeatedForeignmessage: [Proto2Unittest_ForeignMessage] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- init() {}
- fileprivate var _optionalNestedMessage: Proto2Unittest_TestNestedMessageHasBits.NestedMessage? = nil
- }
- /// Test message with CamelCase field names. This violates Protocol Buffer
- /// standard style.
- struct Proto2Unittest_TestCamelCaseFieldNames: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var primitiveField: Int32 {
- get {return _primitiveField ?? 0}
- set {_primitiveField = newValue}
- }
- /// Returns true if `primitiveField` has been explicitly set.
- var hasPrimitiveField: Bool {return self._primitiveField != nil}
- /// Clears the value of `primitiveField`. Subsequent reads from it will return its default value.
- mutating func clearPrimitiveField() {self._primitiveField = nil}
- var stringField: String {
- get {return _stringField ?? String()}
- set {_stringField = newValue}
- }
- /// Returns true if `stringField` has been explicitly set.
- var hasStringField: Bool {return self._stringField != nil}
- /// Clears the value of `stringField`. Subsequent reads from it will return its default value.
- mutating func clearStringField() {self._stringField = nil}
- var enumField: Proto2Unittest_ForeignEnum {
- get {return _enumField ?? .foreignFoo}
- set {_enumField = newValue}
- }
- /// Returns true if `enumField` has been explicitly set.
- var hasEnumField: Bool {return self._enumField != nil}
- /// Clears the value of `enumField`. Subsequent reads from it will return its default value.
- mutating func clearEnumField() {self._enumField = nil}
- var messageField: Proto2Unittest_ForeignMessage {
- get {return _messageField ?? Proto2Unittest_ForeignMessage()}
- set {_messageField = newValue}
- }
- /// Returns true if `messageField` has been explicitly set.
- var hasMessageField: Bool {return self._messageField != nil}
- /// Clears the value of `messageField`. Subsequent reads from it will return its default value.
- mutating func clearMessageField() {self._messageField = nil}
- var stringPieceField: String {
- get {return _stringPieceField ?? String()}
- set {_stringPieceField = newValue}
- }
- /// Returns true if `stringPieceField` has been explicitly set.
- var hasStringPieceField: Bool {return self._stringPieceField != nil}
- /// Clears the value of `stringPieceField`. Subsequent reads from it will return its default value.
- mutating func clearStringPieceField() {self._stringPieceField = nil}
- var cordField: String {
- get {return _cordField ?? String()}
- set {_cordField = newValue}
- }
- /// Returns true if `cordField` has been explicitly set.
- var hasCordField: Bool {return self._cordField != nil}
- /// Clears the value of `cordField`. Subsequent reads from it will return its default value.
- mutating func clearCordField() {self._cordField = nil}
- var repeatedPrimitiveField: [Int32] = []
- var repeatedStringField: [String] = []
- var repeatedEnumField: [Proto2Unittest_ForeignEnum] = []
- var repeatedMessageField: [Proto2Unittest_ForeignMessage] = []
- var repeatedStringPieceField: [String] = []
- var repeatedCordField: [String] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _primitiveField: Int32? = nil
- fileprivate var _stringField: String? = nil
- fileprivate var _enumField: Proto2Unittest_ForeignEnum? = nil
- fileprivate var _messageField: Proto2Unittest_ForeignMessage? = nil
- fileprivate var _stringPieceField: String? = nil
- fileprivate var _cordField: String? = nil
- }
- /// We list fields out of order, to ensure that we're using field number and not
- /// field index to determine serialization order.
- struct Proto2Unittest_TestFieldOrderings: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var myString: String {
- get {return _myString ?? String()}
- set {_myString = newValue}
- }
- /// Returns true if `myString` has been explicitly set.
- var hasMyString: Bool {return self._myString != nil}
- /// Clears the value of `myString`. Subsequent reads from it will return its default value.
- mutating func clearMyString() {self._myString = nil}
- var myInt: Int64 {
- get {return _myInt ?? 0}
- set {_myInt = newValue}
- }
- /// Returns true if `myInt` has been explicitly set.
- var hasMyInt: Bool {return self._myInt != nil}
- /// Clears the value of `myInt`. Subsequent reads from it will return its default value.
- mutating func clearMyInt() {self._myInt = nil}
- var myFloat: Float {
- get {return _myFloat ?? 0}
- set {_myFloat = newValue}
- }
- /// Returns true if `myFloat` has been explicitly set.
- var hasMyFloat: Bool {return self._myFloat != nil}
- /// Clears the value of `myFloat`. Subsequent reads from it will return its default value.
- mutating func clearMyFloat() {self._myFloat = nil}
- var optionalNestedMessage: Proto2Unittest_TestFieldOrderings.NestedMessage {
- get {return _optionalNestedMessage ?? Proto2Unittest_TestFieldOrderings.NestedMessage()}
- set {_optionalNestedMessage = newValue}
- }
- /// Returns true if `optionalNestedMessage` has been explicitly set.
- var hasOptionalNestedMessage: Bool {return self._optionalNestedMessage != nil}
- /// Clears the value of `optionalNestedMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNestedMessage() {self._optionalNestedMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var oo: Int64 {
- get {return _oo ?? 0}
- set {_oo = newValue}
- }
- /// Returns true if `oo` has been explicitly set.
- var hasOo: Bool {return self._oo != nil}
- /// Clears the value of `oo`. Subsequent reads from it will return its default value.
- mutating func clearOo() {self._oo = nil}
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- var bb: Int32 {
- get {return _bb ?? 0}
- set {_bb = newValue}
- }
- /// Returns true if `bb` has been explicitly set.
- var hasBb: Bool {return self._bb != nil}
- /// Clears the value of `bb`. Subsequent reads from it will return its default value.
- mutating func clearBb() {self._bb = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _oo: Int64? = nil
- fileprivate var _bb: Int32? = nil
- }
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _myString: String? = nil
- fileprivate var _myInt: Int64? = nil
- fileprivate var _myFloat: Float? = nil
- fileprivate var _optionalNestedMessage: Proto2Unittest_TestFieldOrderings.NestedMessage? = nil
- }
- struct Proto2Unittest_TestExtensionOrderings1: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var myString: String {
- get {return _myString ?? String()}
- set {_myString = newValue}
- }
- /// Returns true if `myString` has been explicitly set.
- var hasMyString: Bool {return self._myString != nil}
- /// Clears the value of `myString`. Subsequent reads from it will return its default value.
- mutating func clearMyString() {self._myString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _myString: String? = nil
- }
- struct Proto2Unittest_TestExtensionOrderings2: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var myString: String {
- get {return _myString ?? String()}
- set {_myString = newValue}
- }
- /// Returns true if `myString` has been explicitly set.
- var hasMyString: Bool {return self._myString != nil}
- /// Clears the value of `myString`. Subsequent reads from it will return its default value.
- mutating func clearMyString() {self._myString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct TestExtensionOrderings3: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var myString: String {
- get {return _myString ?? String()}
- set {_myString = newValue}
- }
- /// Returns true if `myString` has been explicitly set.
- var hasMyString: Bool {return self._myString != nil}
- /// Clears the value of `myString`. Subsequent reads from it will return its default value.
- mutating func clearMyString() {self._myString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _myString: String? = nil
- }
- init() {}
- fileprivate var _myString: String? = nil
- }
- struct Proto2Unittest_TestExtremeDefaultValues: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var escapedBytes: Data {
- get {return _storage._escapedBytes ?? Data([0, 1, 7, 8, 12, 10, 13, 9, 11, 92, 39, 34, 254])}
- set {_uniqueStorage()._escapedBytes = newValue}
- }
- /// Returns true if `escapedBytes` has been explicitly set.
- var hasEscapedBytes: Bool {return _storage._escapedBytes != nil}
- /// Clears the value of `escapedBytes`. Subsequent reads from it will return its default value.
- mutating func clearEscapedBytes() {_uniqueStorage()._escapedBytes = nil}
- var largeUint32: UInt32 {
- get {return _storage._largeUint32 ?? 4294967295}
- set {_uniqueStorage()._largeUint32 = newValue}
- }
- /// Returns true if `largeUint32` has been explicitly set.
- var hasLargeUint32: Bool {return _storage._largeUint32 != nil}
- /// Clears the value of `largeUint32`. Subsequent reads from it will return its default value.
- mutating func clearLargeUint32() {_uniqueStorage()._largeUint32 = nil}
- var largeUint64: UInt64 {
- get {return _storage._largeUint64 ?? 18446744073709551615}
- set {_uniqueStorage()._largeUint64 = newValue}
- }
- /// Returns true if `largeUint64` has been explicitly set.
- var hasLargeUint64: Bool {return _storage._largeUint64 != nil}
- /// Clears the value of `largeUint64`. Subsequent reads from it will return its default value.
- mutating func clearLargeUint64() {_uniqueStorage()._largeUint64 = nil}
- var smallInt32: Int32 {
- get {return _storage._smallInt32 ?? -2147483647}
- set {_uniqueStorage()._smallInt32 = newValue}
- }
- /// Returns true if `smallInt32` has been explicitly set.
- var hasSmallInt32: Bool {return _storage._smallInt32 != nil}
- /// Clears the value of `smallInt32`. Subsequent reads from it will return its default value.
- mutating func clearSmallInt32() {_uniqueStorage()._smallInt32 = nil}
- var smallInt64: Int64 {
- get {return _storage._smallInt64 ?? -9223372036854775807}
- set {_uniqueStorage()._smallInt64 = newValue}
- }
- /// Returns true if `smallInt64` has been explicitly set.
- var hasSmallInt64: Bool {return _storage._smallInt64 != nil}
- /// Clears the value of `smallInt64`. Subsequent reads from it will return its default value.
- mutating func clearSmallInt64() {_uniqueStorage()._smallInt64 = nil}
- var reallySmallInt32: Int32 {
- get {return _storage._reallySmallInt32 ?? -2147483648}
- set {_uniqueStorage()._reallySmallInt32 = newValue}
- }
- /// Returns true if `reallySmallInt32` has been explicitly set.
- var hasReallySmallInt32: Bool {return _storage._reallySmallInt32 != nil}
- /// Clears the value of `reallySmallInt32`. Subsequent reads from it will return its default value.
- mutating func clearReallySmallInt32() {_uniqueStorage()._reallySmallInt32 = nil}
- var reallySmallInt64: Int64 {
- get {return _storage._reallySmallInt64 ?? -9223372036854775808}
- set {_uniqueStorage()._reallySmallInt64 = newValue}
- }
- /// Returns true if `reallySmallInt64` has been explicitly set.
- var hasReallySmallInt64: Bool {return _storage._reallySmallInt64 != nil}
- /// Clears the value of `reallySmallInt64`. Subsequent reads from it will return its default value.
- mutating func clearReallySmallInt64() {_uniqueStorage()._reallySmallInt64 = nil}
- /// The default value here is UTF-8 for "\u1234". (We could also just type
- /// the UTF-8 text directly into this text file rather than escape it, but
- /// lots of people use editors that would be confused by this.)
- var utf8String: String {
- get {return _storage._utf8String ?? "ሴ"}
- set {_uniqueStorage()._utf8String = newValue}
- }
- /// Returns true if `utf8String` has been explicitly set.
- var hasUtf8String: Bool {return _storage._utf8String != nil}
- /// Clears the value of `utf8String`. Subsequent reads from it will return its default value.
- mutating func clearUtf8String() {_uniqueStorage()._utf8String = nil}
- /// Tests for single-precision floating-point values.
- var zeroFloat: Float {
- get {return _storage._zeroFloat ?? 0}
- set {_uniqueStorage()._zeroFloat = newValue}
- }
- /// Returns true if `zeroFloat` has been explicitly set.
- var hasZeroFloat: Bool {return _storage._zeroFloat != nil}
- /// Clears the value of `zeroFloat`. Subsequent reads from it will return its default value.
- mutating func clearZeroFloat() {_uniqueStorage()._zeroFloat = nil}
- var oneFloat: Float {
- get {return _storage._oneFloat ?? 1}
- set {_uniqueStorage()._oneFloat = newValue}
- }
- /// Returns true if `oneFloat` has been explicitly set.
- var hasOneFloat: Bool {return _storage._oneFloat != nil}
- /// Clears the value of `oneFloat`. Subsequent reads from it will return its default value.
- mutating func clearOneFloat() {_uniqueStorage()._oneFloat = nil}
- var smallFloat: Float {
- get {return _storage._smallFloat ?? 1.5}
- set {_uniqueStorage()._smallFloat = newValue}
- }
- /// Returns true if `smallFloat` has been explicitly set.
- var hasSmallFloat: Bool {return _storage._smallFloat != nil}
- /// Clears the value of `smallFloat`. Subsequent reads from it will return its default value.
- mutating func clearSmallFloat() {_uniqueStorage()._smallFloat = nil}
- var negativeOneFloat: Float {
- get {return _storage._negativeOneFloat ?? -1}
- set {_uniqueStorage()._negativeOneFloat = newValue}
- }
- /// Returns true if `negativeOneFloat` has been explicitly set.
- var hasNegativeOneFloat: Bool {return _storage._negativeOneFloat != nil}
- /// Clears the value of `negativeOneFloat`. Subsequent reads from it will return its default value.
- mutating func clearNegativeOneFloat() {_uniqueStorage()._negativeOneFloat = nil}
- var negativeFloat: Float {
- get {return _storage._negativeFloat ?? -1.5}
- set {_uniqueStorage()._negativeFloat = newValue}
- }
- /// Returns true if `negativeFloat` has been explicitly set.
- var hasNegativeFloat: Bool {return _storage._negativeFloat != nil}
- /// Clears the value of `negativeFloat`. Subsequent reads from it will return its default value.
- mutating func clearNegativeFloat() {_uniqueStorage()._negativeFloat = nil}
- /// Using exponents
- var largeFloat: Float {
- get {return _storage._largeFloat ?? 2e+08}
- set {_uniqueStorage()._largeFloat = newValue}
- }
- /// Returns true if `largeFloat` has been explicitly set.
- var hasLargeFloat: Bool {return _storage._largeFloat != nil}
- /// Clears the value of `largeFloat`. Subsequent reads from it will return its default value.
- mutating func clearLargeFloat() {_uniqueStorage()._largeFloat = nil}
- var smallNegativeFloat: Float {
- get {return _storage._smallNegativeFloat ?? -8e-28}
- set {_uniqueStorage()._smallNegativeFloat = newValue}
- }
- /// Returns true if `smallNegativeFloat` has been explicitly set.
- var hasSmallNegativeFloat: Bool {return _storage._smallNegativeFloat != nil}
- /// Clears the value of `smallNegativeFloat`. Subsequent reads from it will return its default value.
- mutating func clearSmallNegativeFloat() {_uniqueStorage()._smallNegativeFloat = nil}
- /// Text for nonfinite floating-point values.
- var infDouble: Double {
- get {return _storage._infDouble ?? Double.infinity}
- set {_uniqueStorage()._infDouble = newValue}
- }
- /// Returns true if `infDouble` has been explicitly set.
- var hasInfDouble: Bool {return _storage._infDouble != nil}
- /// Clears the value of `infDouble`. Subsequent reads from it will return its default value.
- mutating func clearInfDouble() {_uniqueStorage()._infDouble = nil}
- var negInfDouble: Double {
- get {return _storage._negInfDouble ?? -Double.infinity}
- set {_uniqueStorage()._negInfDouble = newValue}
- }
- /// Returns true if `negInfDouble` has been explicitly set.
- var hasNegInfDouble: Bool {return _storage._negInfDouble != nil}
- /// Clears the value of `negInfDouble`. Subsequent reads from it will return its default value.
- mutating func clearNegInfDouble() {_uniqueStorage()._negInfDouble = nil}
- var nanDouble: Double {
- get {return _storage._nanDouble ?? Double.nan}
- set {_uniqueStorage()._nanDouble = newValue}
- }
- /// Returns true if `nanDouble` has been explicitly set.
- var hasNanDouble: Bool {return _storage._nanDouble != nil}
- /// Clears the value of `nanDouble`. Subsequent reads from it will return its default value.
- mutating func clearNanDouble() {_uniqueStorage()._nanDouble = nil}
- var infFloat: Float {
- get {return _storage._infFloat ?? Float.infinity}
- set {_uniqueStorage()._infFloat = newValue}
- }
- /// Returns true if `infFloat` has been explicitly set.
- var hasInfFloat: Bool {return _storage._infFloat != nil}
- /// Clears the value of `infFloat`. Subsequent reads from it will return its default value.
- mutating func clearInfFloat() {_uniqueStorage()._infFloat = nil}
- var negInfFloat: Float {
- get {return _storage._negInfFloat ?? -Float.infinity}
- set {_uniqueStorage()._negInfFloat = newValue}
- }
- /// Returns true if `negInfFloat` has been explicitly set.
- var hasNegInfFloat: Bool {return _storage._negInfFloat != nil}
- /// Clears the value of `negInfFloat`. Subsequent reads from it will return its default value.
- mutating func clearNegInfFloat() {_uniqueStorage()._negInfFloat = nil}
- var nanFloat: Float {
- get {return _storage._nanFloat ?? Float.nan}
- set {_uniqueStorage()._nanFloat = newValue}
- }
- /// Returns true if `nanFloat` has been explicitly set.
- var hasNanFloat: Bool {return _storage._nanFloat != nil}
- /// Clears the value of `nanFloat`. Subsequent reads from it will return its default value.
- mutating func clearNanFloat() {_uniqueStorage()._nanFloat = nil}
- /// Tests for C++ trigraphs.
- /// Trigraphs should be escaped in C++ generated files, but they should not be
- /// escaped for other languages.
- /// Note that in .proto file, "\?" is a valid way to escape ? in string
- /// literals.
- var cppTrigraph: String {
- get {return _storage._cppTrigraph ?? "? ? ?? ?? ??? ??/ ??-"}
- set {_uniqueStorage()._cppTrigraph = newValue}
- }
- /// Returns true if `cppTrigraph` has been explicitly set.
- var hasCppTrigraph: Bool {return _storage._cppTrigraph != nil}
- /// Clears the value of `cppTrigraph`. Subsequent reads from it will return its default value.
- mutating func clearCppTrigraph() {_uniqueStorage()._cppTrigraph = nil}
- /// String defaults containing the character '\000'
- var stringWithZero: String {
- get {return _storage._stringWithZero ?? "hel\0lo"}
- set {_uniqueStorage()._stringWithZero = newValue}
- }
- /// Returns true if `stringWithZero` has been explicitly set.
- var hasStringWithZero: Bool {return _storage._stringWithZero != nil}
- /// Clears the value of `stringWithZero`. Subsequent reads from it will return its default value.
- mutating func clearStringWithZero() {_uniqueStorage()._stringWithZero = nil}
- var bytesWithZero: Data {
- get {return _storage._bytesWithZero ?? Data([119, 111, 114, 0, 108, 100])}
- set {_uniqueStorage()._bytesWithZero = newValue}
- }
- /// Returns true if `bytesWithZero` has been explicitly set.
- var hasBytesWithZero: Bool {return _storage._bytesWithZero != nil}
- /// Clears the value of `bytesWithZero`. Subsequent reads from it will return its default value.
- mutating func clearBytesWithZero() {_uniqueStorage()._bytesWithZero = nil}
- var stringPieceWithZero: String {
- get {return _storage._stringPieceWithZero ?? "ab\0c"}
- set {_uniqueStorage()._stringPieceWithZero = newValue}
- }
- /// Returns true if `stringPieceWithZero` has been explicitly set.
- var hasStringPieceWithZero: Bool {return _storage._stringPieceWithZero != nil}
- /// Clears the value of `stringPieceWithZero`. Subsequent reads from it will return its default value.
- mutating func clearStringPieceWithZero() {_uniqueStorage()._stringPieceWithZero = nil}
- var cordWithZero: String {
- get {return _storage._cordWithZero ?? "12\03"}
- set {_uniqueStorage()._cordWithZero = newValue}
- }
- /// Returns true if `cordWithZero` has been explicitly set.
- var hasCordWithZero: Bool {return _storage._cordWithZero != nil}
- /// Clears the value of `cordWithZero`. Subsequent reads from it will return its default value.
- mutating func clearCordWithZero() {_uniqueStorage()._cordWithZero = nil}
- var replacementString: String {
- get {return _storage._replacementString ?? "${unknown}"}
- set {_uniqueStorage()._replacementString = newValue}
- }
- /// Returns true if `replacementString` has been explicitly set.
- var hasReplacementString: Bool {return _storage._replacementString != nil}
- /// Clears the value of `replacementString`. Subsequent reads from it will return its default value.
- mutating func clearReplacementString() {_uniqueStorage()._replacementString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_SparseEnumMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var sparseEnum: Proto2Unittest_TestSparseEnum {
- get {return _sparseEnum ?? .sparseA}
- set {_sparseEnum = newValue}
- }
- /// Returns true if `sparseEnum` has been explicitly set.
- var hasSparseEnum: Bool {return self._sparseEnum != nil}
- /// Clears the value of `sparseEnum`. Subsequent reads from it will return its default value.
- mutating func clearSparseEnum() {self._sparseEnum = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _sparseEnum: Proto2Unittest_TestSparseEnum? = nil
- }
- /// Test String and Bytes: string is for valid UTF-8 strings
- struct Proto2Unittest_OneString: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: String {
- get {return _data ?? String()}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: String? = nil
- }
- struct Proto2Unittest_MoreString: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: [String] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_OneBytes: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: Data {
- get {return _data ?? Data()}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: Data? = nil
- }
- struct Proto2Unittest_MoreBytes: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: [Data] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_ManyOptionalString: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var str1: String {
- get {return _storage._str1 ?? String()}
- set {_uniqueStorage()._str1 = newValue}
- }
- /// Returns true if `str1` has been explicitly set.
- var hasStr1: Bool {return _storage._str1 != nil}
- /// Clears the value of `str1`. Subsequent reads from it will return its default value.
- mutating func clearStr1() {_uniqueStorage()._str1 = nil}
- var str2: String {
- get {return _storage._str2 ?? String()}
- set {_uniqueStorage()._str2 = newValue}
- }
- /// Returns true if `str2` has been explicitly set.
- var hasStr2: Bool {return _storage._str2 != nil}
- /// Clears the value of `str2`. Subsequent reads from it will return its default value.
- mutating func clearStr2() {_uniqueStorage()._str2 = nil}
- var str3: String {
- get {return _storage._str3 ?? String()}
- set {_uniqueStorage()._str3 = newValue}
- }
- /// Returns true if `str3` has been explicitly set.
- var hasStr3: Bool {return _storage._str3 != nil}
- /// Clears the value of `str3`. Subsequent reads from it will return its default value.
- mutating func clearStr3() {_uniqueStorage()._str3 = nil}
- var str4: String {
- get {return _storage._str4 ?? String()}
- set {_uniqueStorage()._str4 = newValue}
- }
- /// Returns true if `str4` has been explicitly set.
- var hasStr4: Bool {return _storage._str4 != nil}
- /// Clears the value of `str4`. Subsequent reads from it will return its default value.
- mutating func clearStr4() {_uniqueStorage()._str4 = nil}
- var str5: String {
- get {return _storage._str5 ?? String()}
- set {_uniqueStorage()._str5 = newValue}
- }
- /// Returns true if `str5` has been explicitly set.
- var hasStr5: Bool {return _storage._str5 != nil}
- /// Clears the value of `str5`. Subsequent reads from it will return its default value.
- mutating func clearStr5() {_uniqueStorage()._str5 = nil}
- var str6: String {
- get {return _storage._str6 ?? String()}
- set {_uniqueStorage()._str6 = newValue}
- }
- /// Returns true if `str6` has been explicitly set.
- var hasStr6: Bool {return _storage._str6 != nil}
- /// Clears the value of `str6`. Subsequent reads from it will return its default value.
- mutating func clearStr6() {_uniqueStorage()._str6 = nil}
- var str7: String {
- get {return _storage._str7 ?? String()}
- set {_uniqueStorage()._str7 = newValue}
- }
- /// Returns true if `str7` has been explicitly set.
- var hasStr7: Bool {return _storage._str7 != nil}
- /// Clears the value of `str7`. Subsequent reads from it will return its default value.
- mutating func clearStr7() {_uniqueStorage()._str7 = nil}
- var str8: String {
- get {return _storage._str8 ?? String()}
- set {_uniqueStorage()._str8 = newValue}
- }
- /// Returns true if `str8` has been explicitly set.
- var hasStr8: Bool {return _storage._str8 != nil}
- /// Clears the value of `str8`. Subsequent reads from it will return its default value.
- mutating func clearStr8() {_uniqueStorage()._str8 = nil}
- var str9: String {
- get {return _storage._str9 ?? String()}
- set {_uniqueStorage()._str9 = newValue}
- }
- /// Returns true if `str9` has been explicitly set.
- var hasStr9: Bool {return _storage._str9 != nil}
- /// Clears the value of `str9`. Subsequent reads from it will return its default value.
- mutating func clearStr9() {_uniqueStorage()._str9 = nil}
- var str10: String {
- get {return _storage._str10 ?? String()}
- set {_uniqueStorage()._str10 = newValue}
- }
- /// Returns true if `str10` has been explicitly set.
- var hasStr10: Bool {return _storage._str10 != nil}
- /// Clears the value of `str10`. Subsequent reads from it will return its default value.
- mutating func clearStr10() {_uniqueStorage()._str10 = nil}
- var str11: String {
- get {return _storage._str11 ?? String()}
- set {_uniqueStorage()._str11 = newValue}
- }
- /// Returns true if `str11` has been explicitly set.
- var hasStr11: Bool {return _storage._str11 != nil}
- /// Clears the value of `str11`. Subsequent reads from it will return its default value.
- mutating func clearStr11() {_uniqueStorage()._str11 = nil}
- var str12: String {
- get {return _storage._str12 ?? String()}
- set {_uniqueStorage()._str12 = newValue}
- }
- /// Returns true if `str12` has been explicitly set.
- var hasStr12: Bool {return _storage._str12 != nil}
- /// Clears the value of `str12`. Subsequent reads from it will return its default value.
- mutating func clearStr12() {_uniqueStorage()._str12 = nil}
- var str13: String {
- get {return _storage._str13 ?? String()}
- set {_uniqueStorage()._str13 = newValue}
- }
- /// Returns true if `str13` has been explicitly set.
- var hasStr13: Bool {return _storage._str13 != nil}
- /// Clears the value of `str13`. Subsequent reads from it will return its default value.
- mutating func clearStr13() {_uniqueStorage()._str13 = nil}
- var str14: String {
- get {return _storage._str14 ?? String()}
- set {_uniqueStorage()._str14 = newValue}
- }
- /// Returns true if `str14` has been explicitly set.
- var hasStr14: Bool {return _storage._str14 != nil}
- /// Clears the value of `str14`. Subsequent reads from it will return its default value.
- mutating func clearStr14() {_uniqueStorage()._str14 = nil}
- var str15: String {
- get {return _storage._str15 ?? String()}
- set {_uniqueStorage()._str15 = newValue}
- }
- /// Returns true if `str15` has been explicitly set.
- var hasStr15: Bool {return _storage._str15 != nil}
- /// Clears the value of `str15`. Subsequent reads from it will return its default value.
- mutating func clearStr15() {_uniqueStorage()._str15 = nil}
- var str16: String {
- get {return _storage._str16 ?? String()}
- set {_uniqueStorage()._str16 = newValue}
- }
- /// Returns true if `str16` has been explicitly set.
- var hasStr16: Bool {return _storage._str16 != nil}
- /// Clears the value of `str16`. Subsequent reads from it will return its default value.
- mutating func clearStr16() {_uniqueStorage()._str16 = nil}
- var str17: String {
- get {return _storage._str17 ?? String()}
- set {_uniqueStorage()._str17 = newValue}
- }
- /// Returns true if `str17` has been explicitly set.
- var hasStr17: Bool {return _storage._str17 != nil}
- /// Clears the value of `str17`. Subsequent reads from it will return its default value.
- mutating func clearStr17() {_uniqueStorage()._str17 = nil}
- var str18: String {
- get {return _storage._str18 ?? String()}
- set {_uniqueStorage()._str18 = newValue}
- }
- /// Returns true if `str18` has been explicitly set.
- var hasStr18: Bool {return _storage._str18 != nil}
- /// Clears the value of `str18`. Subsequent reads from it will return its default value.
- mutating func clearStr18() {_uniqueStorage()._str18 = nil}
- var str19: String {
- get {return _storage._str19 ?? String()}
- set {_uniqueStorage()._str19 = newValue}
- }
- /// Returns true if `str19` has been explicitly set.
- var hasStr19: Bool {return _storage._str19 != nil}
- /// Clears the value of `str19`. Subsequent reads from it will return its default value.
- mutating func clearStr19() {_uniqueStorage()._str19 = nil}
- var str20: String {
- get {return _storage._str20 ?? String()}
- set {_uniqueStorage()._str20 = newValue}
- }
- /// Returns true if `str20` has been explicitly set.
- var hasStr20: Bool {return _storage._str20 != nil}
- /// Clears the value of `str20`. Subsequent reads from it will return its default value.
- mutating func clearStr20() {_uniqueStorage()._str20 = nil}
- var str21: String {
- get {return _storage._str21 ?? String()}
- set {_uniqueStorage()._str21 = newValue}
- }
- /// Returns true if `str21` has been explicitly set.
- var hasStr21: Bool {return _storage._str21 != nil}
- /// Clears the value of `str21`. Subsequent reads from it will return its default value.
- mutating func clearStr21() {_uniqueStorage()._str21 = nil}
- var str22: String {
- get {return _storage._str22 ?? String()}
- set {_uniqueStorage()._str22 = newValue}
- }
- /// Returns true if `str22` has been explicitly set.
- var hasStr22: Bool {return _storage._str22 != nil}
- /// Clears the value of `str22`. Subsequent reads from it will return its default value.
- mutating func clearStr22() {_uniqueStorage()._str22 = nil}
- var str23: String {
- get {return _storage._str23 ?? String()}
- set {_uniqueStorage()._str23 = newValue}
- }
- /// Returns true if `str23` has been explicitly set.
- var hasStr23: Bool {return _storage._str23 != nil}
- /// Clears the value of `str23`. Subsequent reads from it will return its default value.
- mutating func clearStr23() {_uniqueStorage()._str23 = nil}
- var str24: String {
- get {return _storage._str24 ?? String()}
- set {_uniqueStorage()._str24 = newValue}
- }
- /// Returns true if `str24` has been explicitly set.
- var hasStr24: Bool {return _storage._str24 != nil}
- /// Clears the value of `str24`. Subsequent reads from it will return its default value.
- mutating func clearStr24() {_uniqueStorage()._str24 = nil}
- var str25: String {
- get {return _storage._str25 ?? String()}
- set {_uniqueStorage()._str25 = newValue}
- }
- /// Returns true if `str25` has been explicitly set.
- var hasStr25: Bool {return _storage._str25 != nil}
- /// Clears the value of `str25`. Subsequent reads from it will return its default value.
- mutating func clearStr25() {_uniqueStorage()._str25 = nil}
- var str26: String {
- get {return _storage._str26 ?? String()}
- set {_uniqueStorage()._str26 = newValue}
- }
- /// Returns true if `str26` has been explicitly set.
- var hasStr26: Bool {return _storage._str26 != nil}
- /// Clears the value of `str26`. Subsequent reads from it will return its default value.
- mutating func clearStr26() {_uniqueStorage()._str26 = nil}
- var str27: String {
- get {return _storage._str27 ?? String()}
- set {_uniqueStorage()._str27 = newValue}
- }
- /// Returns true if `str27` has been explicitly set.
- var hasStr27: Bool {return _storage._str27 != nil}
- /// Clears the value of `str27`. Subsequent reads from it will return its default value.
- mutating func clearStr27() {_uniqueStorage()._str27 = nil}
- var str28: String {
- get {return _storage._str28 ?? String()}
- set {_uniqueStorage()._str28 = newValue}
- }
- /// Returns true if `str28` has been explicitly set.
- var hasStr28: Bool {return _storage._str28 != nil}
- /// Clears the value of `str28`. Subsequent reads from it will return its default value.
- mutating func clearStr28() {_uniqueStorage()._str28 = nil}
- var str29: String {
- get {return _storage._str29 ?? String()}
- set {_uniqueStorage()._str29 = newValue}
- }
- /// Returns true if `str29` has been explicitly set.
- var hasStr29: Bool {return _storage._str29 != nil}
- /// Clears the value of `str29`. Subsequent reads from it will return its default value.
- mutating func clearStr29() {_uniqueStorage()._str29 = nil}
- var str30: String {
- get {return _storage._str30 ?? String()}
- set {_uniqueStorage()._str30 = newValue}
- }
- /// Returns true if `str30` has been explicitly set.
- var hasStr30: Bool {return _storage._str30 != nil}
- /// Clears the value of `str30`. Subsequent reads from it will return its default value.
- mutating func clearStr30() {_uniqueStorage()._str30 = nil}
- var str31: String {
- get {return _storage._str31 ?? String()}
- set {_uniqueStorage()._str31 = newValue}
- }
- /// Returns true if `str31` has been explicitly set.
- var hasStr31: Bool {return _storage._str31 != nil}
- /// Clears the value of `str31`. Subsequent reads from it will return its default value.
- mutating func clearStr31() {_uniqueStorage()._str31 = nil}
- var str32: String {
- get {return _storage._str32 ?? String()}
- set {_uniqueStorage()._str32 = newValue}
- }
- /// Returns true if `str32` has been explicitly set.
- var hasStr32: Bool {return _storage._str32 != nil}
- /// Clears the value of `str32`. Subsequent reads from it will return its default value.
- mutating func clearStr32() {_uniqueStorage()._str32 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// Test int32, uint32, int64, uint64, and bool are all compatible
- struct Proto2Unittest_Int32Message: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: Int32 {
- get {return _data ?? 0}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: Int32? = nil
- }
- struct Proto2Unittest_Uint32Message: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: UInt32 {
- get {return _data ?? 0}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: UInt32? = nil
- }
- struct Proto2Unittest_Int64Message: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: Int64 {
- get {return _data ?? 0}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: Int64? = nil
- }
- struct Proto2Unittest_Uint64Message: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: UInt64 {
- get {return _data ?? 0}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: UInt64? = nil
- }
- struct Proto2Unittest_BoolMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: Bool {
- get {return _data ?? false}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- mutating func clearData() {self._data = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _data: Bool? = nil
- }
- /// Test oneofs.
- struct Proto2Unittest_TestOneof: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var foo: Proto2Unittest_TestOneof.OneOf_Foo? = nil
- var fooInt: Int32 {
- get {
- if case .fooInt(let v)? = foo {return v}
- return 0
- }
- set {foo = .fooInt(newValue)}
- }
- var fooString: String {
- get {
- if case .fooString(let v)? = foo {return v}
- return String()
- }
- set {foo = .fooString(newValue)}
- }
- var fooMessage: Proto2Unittest_TestAllTypes {
- get {
- if case .fooMessage(let v)? = foo {return v}
- return Proto2Unittest_TestAllTypes()
- }
- set {foo = .fooMessage(newValue)}
- }
- var fooGroup: Proto2Unittest_TestOneof.FooGroup {
- get {
- if case .fooGroup(let v)? = foo {return v}
- return Proto2Unittest_TestOneof.FooGroup()
- }
- set {foo = .fooGroup(newValue)}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_Foo: Equatable, Sendable {
- case fooInt(Int32)
- case fooString(String)
- case fooMessage(Proto2Unittest_TestAllTypes)
- case fooGroup(Proto2Unittest_TestOneof.FooGroup)
- }
- struct FooGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: String {
- get {return _b ?? String()}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _b: String? = nil
- }
- init() {}
- }
- struct Proto2Unittest_TestOneofBackwardsCompatible: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var fooInt: Int32 {
- get {return _fooInt ?? 0}
- set {_fooInt = newValue}
- }
- /// Returns true if `fooInt` has been explicitly set.
- var hasFooInt: Bool {return self._fooInt != nil}
- /// Clears the value of `fooInt`. Subsequent reads from it will return its default value.
- mutating func clearFooInt() {self._fooInt = nil}
- var fooString: String {
- get {return _fooString ?? String()}
- set {_fooString = newValue}
- }
- /// Returns true if `fooString` has been explicitly set.
- var hasFooString: Bool {return self._fooString != nil}
- /// Clears the value of `fooString`. Subsequent reads from it will return its default value.
- mutating func clearFooString() {self._fooString = nil}
- var fooMessage: Proto2Unittest_TestAllTypes {
- get {return _fooMessage ?? Proto2Unittest_TestAllTypes()}
- set {_fooMessage = newValue}
- }
- /// Returns true if `fooMessage` has been explicitly set.
- var hasFooMessage: Bool {return self._fooMessage != nil}
- /// Clears the value of `fooMessage`. Subsequent reads from it will return its default value.
- mutating func clearFooMessage() {self._fooMessage = nil}
- var fooGroup: Proto2Unittest_TestOneofBackwardsCompatible.FooGroup {
- get {return _fooGroup ?? Proto2Unittest_TestOneofBackwardsCompatible.FooGroup()}
- set {_fooGroup = newValue}
- }
- /// Returns true if `fooGroup` has been explicitly set.
- var hasFooGroup: Bool {return self._fooGroup != nil}
- /// Clears the value of `fooGroup`. Subsequent reads from it will return its default value.
- mutating func clearFooGroup() {self._fooGroup = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct FooGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: String {
- get {return _b ?? String()}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _b: String? = nil
- }
- init() {}
- fileprivate var _fooInt: Int32? = nil
- fileprivate var _fooString: String? = nil
- fileprivate var _fooMessage: Proto2Unittest_TestAllTypes? = nil
- fileprivate var _fooGroup: Proto2Unittest_TestOneofBackwardsCompatible.FooGroup? = nil
- }
- struct Proto2Unittest_TestOneof2: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var foo: Proto2Unittest_TestOneof2.OneOf_Foo? = nil
- var fooInt: Int32 {
- get {
- if case .fooInt(let v)? = foo {return v}
- return 0
- }
- set {foo = .fooInt(newValue)}
- }
- var fooString: String {
- get {
- if case .fooString(let v)? = foo {return v}
- return String()
- }
- set {foo = .fooString(newValue)}
- }
- var fooCord: String {
- get {
- if case .fooCord(let v)? = foo {return v}
- return String()
- }
- set {foo = .fooCord(newValue)}
- }
- var fooStringPiece: String {
- get {
- if case .fooStringPiece(let v)? = foo {return v}
- return String()
- }
- set {foo = .fooStringPiece(newValue)}
- }
- var fooBytes: Data {
- get {
- if case .fooBytes(let v)? = foo {return v}
- return Data()
- }
- set {foo = .fooBytes(newValue)}
- }
- var fooEnum: Proto2Unittest_TestOneof2.NestedEnum {
- get {
- if case .fooEnum(let v)? = foo {return v}
- return .foo
- }
- set {foo = .fooEnum(newValue)}
- }
- var fooMessage: Proto2Unittest_TestOneof2.NestedMessage {
- get {
- if case .fooMessage(let v)? = foo {return v}
- return Proto2Unittest_TestOneof2.NestedMessage()
- }
- set {foo = .fooMessage(newValue)}
- }
- var fooGroup: Proto2Unittest_TestOneof2.FooGroup {
- get {
- if case .fooGroup(let v)? = foo {return v}
- return Proto2Unittest_TestOneof2.FooGroup()
- }
- set {foo = .fooGroup(newValue)}
- }
- var fooLazyMessage: Proto2Unittest_TestOneof2.NestedMessage {
- get {
- if case .fooLazyMessage(let v)? = foo {return v}
- return Proto2Unittest_TestOneof2.NestedMessage()
- }
- set {foo = .fooLazyMessage(newValue)}
- }
- var fooBytesCord: Data {
- get {
- if case .fooBytesCord(let v)? = foo {return v}
- return Data()
- }
- set {foo = .fooBytesCord(newValue)}
- }
- var bar: Proto2Unittest_TestOneof2.OneOf_Bar? = nil
- var barInt: Int32 {
- get {
- if case .barInt(let v)? = bar {return v}
- return 5
- }
- set {bar = .barInt(newValue)}
- }
- var barString: String {
- get {
- if case .barString(let v)? = bar {return v}
- return "STRING"
- }
- set {bar = .barString(newValue)}
- }
- var barCord: String {
- get {
- if case .barCord(let v)? = bar {return v}
- return "CORD"
- }
- set {bar = .barCord(newValue)}
- }
- var barStringPiece: String {
- get {
- if case .barStringPiece(let v)? = bar {return v}
- return "SPIECE"
- }
- set {bar = .barStringPiece(newValue)}
- }
- var barBytes: Data {
- get {
- if case .barBytes(let v)? = bar {return v}
- return Data([66, 89, 84, 69, 83])
- }
- set {bar = .barBytes(newValue)}
- }
- var barEnum: Proto2Unittest_TestOneof2.NestedEnum {
- get {
- if case .barEnum(let v)? = bar {return v}
- return .bar
- }
- set {bar = .barEnum(newValue)}
- }
- var barStringWithEmptyDefault: String {
- get {
- if case .barStringWithEmptyDefault(let v)? = bar {return v}
- return String()
- }
- set {bar = .barStringWithEmptyDefault(newValue)}
- }
- var barCordWithEmptyDefault: String {
- get {
- if case .barCordWithEmptyDefault(let v)? = bar {return v}
- return String()
- }
- set {bar = .barCordWithEmptyDefault(newValue)}
- }
- var barStringPieceWithEmptyDefault: String {
- get {
- if case .barStringPieceWithEmptyDefault(let v)? = bar {return v}
- return String()
- }
- set {bar = .barStringPieceWithEmptyDefault(newValue)}
- }
- var barBytesWithEmptyDefault: Data {
- get {
- if case .barBytesWithEmptyDefault(let v)? = bar {return v}
- return Data()
- }
- set {bar = .barBytesWithEmptyDefault(newValue)}
- }
- var bazInt: Int32 {
- get {return _bazInt ?? 0}
- set {_bazInt = newValue}
- }
- /// Returns true if `bazInt` has been explicitly set.
- var hasBazInt: Bool {return self._bazInt != nil}
- /// Clears the value of `bazInt`. Subsequent reads from it will return its default value.
- mutating func clearBazInt() {self._bazInt = nil}
- var bazString: String {
- get {return _bazString ?? "BAZ"}
- set {_bazString = newValue}
- }
- /// Returns true if `bazString` has been explicitly set.
- var hasBazString: Bool {return self._bazString != nil}
- /// Clears the value of `bazString`. Subsequent reads from it will return its default value.
- mutating func clearBazString() {self._bazString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_Foo: Equatable, @unchecked Sendable {
- case fooInt(Int32)
- case fooString(String)
- case fooCord(String)
- case fooStringPiece(String)
- case fooBytes(Data)
- case fooEnum(Proto2Unittest_TestOneof2.NestedEnum)
- case fooMessage(Proto2Unittest_TestOneof2.NestedMessage)
- case fooGroup(Proto2Unittest_TestOneof2.FooGroup)
- case fooLazyMessage(Proto2Unittest_TestOneof2.NestedMessage)
- case fooBytesCord(Data)
- }
- enum OneOf_Bar: Equatable, @unchecked Sendable {
- case barInt(Int32)
- case barString(String)
- case barCord(String)
- case barStringPiece(String)
- case barBytes(Data)
- case barEnum(Proto2Unittest_TestOneof2.NestedEnum)
- case barStringWithEmptyDefault(String)
- case barCordWithEmptyDefault(String)
- case barStringPieceWithEmptyDefault(String)
- case barBytesWithEmptyDefault(Data)
- }
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case foo = 1
- case bar = 2
- case baz = 3
- init() {
- self = .foo
- }
- }
- struct FooGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: String {
- get {return _b ?? String()}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _b: String? = nil
- }
- struct NestedMessage: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var mooInt: Int64 {
- get {return _storage._mooInt ?? 0}
- set {_uniqueStorage()._mooInt = newValue}
- }
- /// Returns true if `mooInt` has been explicitly set.
- var hasMooInt: Bool {return _storage._mooInt != nil}
- /// Clears the value of `mooInt`. Subsequent reads from it will return its default value.
- mutating func clearMooInt() {_uniqueStorage()._mooInt = nil}
- var corgeInt: [Int32] {
- get {return _storage._corgeInt}
- set {_uniqueStorage()._corgeInt = newValue}
- }
- var child: Proto2Unittest_TestOneof2.NestedMessage {
- get {return _storage._child ?? Proto2Unittest_TestOneof2.NestedMessage()}
- set {_uniqueStorage()._child = newValue}
- }
- /// Returns true if `child` has been explicitly set.
- var hasChild: Bool {return _storage._child != nil}
- /// Clears the value of `child`. Subsequent reads from it will return its default value.
- mutating func clearChild() {_uniqueStorage()._child = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- init() {}
- fileprivate var _bazInt: Int32? = nil
- fileprivate var _bazString: String? = nil
- }
- struct Proto2Unittest_TestRequiredOneof: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var foo: Proto2Unittest_TestRequiredOneof.OneOf_Foo? = nil
- var fooInt: Int32 {
- get {
- if case .fooInt(let v)? = foo {return v}
- return 0
- }
- set {foo = .fooInt(newValue)}
- }
- var fooString: String {
- get {
- if case .fooString(let v)? = foo {return v}
- return String()
- }
- set {foo = .fooString(newValue)}
- }
- var fooMessage: Proto2Unittest_TestRequiredOneof.NestedMessage {
- get {
- if case .fooMessage(let v)? = foo {return v}
- return Proto2Unittest_TestRequiredOneof.NestedMessage()
- }
- set {foo = .fooMessage(newValue)}
- }
- var fooLazyMessage: Proto2Unittest_TestRequiredOneof.NestedMessage {
- get {
- if case .fooLazyMessage(let v)? = foo {return v}
- return Proto2Unittest_TestRequiredOneof.NestedMessage()
- }
- set {foo = .fooLazyMessage(newValue)}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_Foo: Equatable, Sendable {
- case fooInt(Int32)
- case fooString(String)
- case fooMessage(Proto2Unittest_TestRequiredOneof.NestedMessage)
- case fooLazyMessage(Proto2Unittest_TestRequiredOneof.NestedMessage)
- fileprivate var isInitialized: Bool {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch self {
- case .fooMessage: return {
- guard case .fooMessage(let v) = self else { preconditionFailure() }
- return v.isInitialized
- }()
- case .fooLazyMessage: return {
- guard case .fooLazyMessage(let v) = self else { preconditionFailure() }
- return v.isInitialized
- }()
- default: return true
- }
- }
- }
- struct NestedMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var requiredDouble: Double {
- get {return _requiredDouble ?? 0}
- set {_requiredDouble = newValue}
- }
- /// Returns true if `requiredDouble` has been explicitly set.
- var hasRequiredDouble: Bool {return self._requiredDouble != nil}
- /// Clears the value of `requiredDouble`. Subsequent reads from it will return its default value.
- mutating func clearRequiredDouble() {self._requiredDouble = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _requiredDouble: Double? = nil
- }
- init() {}
- }
- struct Proto2Unittest_TestPackedTypes: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var packedInt32: [Int32] = []
- var packedInt64: [Int64] = []
- var packedUint32: [UInt32] = []
- var packedUint64: [UInt64] = []
- var packedSint32: [Int32] = []
- var packedSint64: [Int64] = []
- var packedFixed32: [UInt32] = []
- var packedFixed64: [UInt64] = []
- var packedSfixed32: [Int32] = []
- var packedSfixed64: [Int64] = []
- var packedFloat: [Float] = []
- var packedDouble: [Double] = []
- var packedBool: [Bool] = []
- var packedEnum: [Proto2Unittest_ForeignEnum] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- /// A message with the same fields as TestPackedTypes, but without packing. Used
- /// to test packed <-> unpacked wire compatibility.
- struct Proto2Unittest_TestUnpackedTypes: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unpackedInt32: [Int32] = []
- var unpackedInt64: [Int64] = []
- var unpackedUint32: [UInt32] = []
- var unpackedUint64: [UInt64] = []
- var unpackedSint32: [Int32] = []
- var unpackedSint64: [Int64] = []
- var unpackedFixed32: [UInt32] = []
- var unpackedFixed64: [UInt64] = []
- var unpackedSfixed32: [Int32] = []
- var unpackedSfixed64: [Int64] = []
- var unpackedFloat: [Float] = []
- var unpackedDouble: [Double] = []
- var unpackedBool: [Bool] = []
- var unpackedEnum: [Proto2Unittest_ForeignEnum] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_TestPackedExtensions: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- struct Proto2Unittest_TestUnpackedExtensions: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- }
- /// Used by ExtensionSetTest/DynamicExtensions. The test actually builds
- /// a set of extensions to TestAllExtensions dynamically, based on the fields
- /// of this message type.
- struct Proto2Unittest_TestDynamicExtensions: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var scalarExtension: UInt32 {
- get {return _scalarExtension ?? 0}
- set {_scalarExtension = newValue}
- }
- /// Returns true if `scalarExtension` has been explicitly set.
- var hasScalarExtension: Bool {return self._scalarExtension != nil}
- /// Clears the value of `scalarExtension`. Subsequent reads from it will return its default value.
- mutating func clearScalarExtension() {self._scalarExtension = nil}
- var enumExtension: Proto2Unittest_ForeignEnum {
- get {return _enumExtension ?? .foreignFoo}
- set {_enumExtension = newValue}
- }
- /// Returns true if `enumExtension` has been explicitly set.
- var hasEnumExtension: Bool {return self._enumExtension != nil}
- /// Clears the value of `enumExtension`. Subsequent reads from it will return its default value.
- mutating func clearEnumExtension() {self._enumExtension = nil}
- var dynamicEnumExtension: Proto2Unittest_TestDynamicExtensions.DynamicEnumType {
- get {return _dynamicEnumExtension ?? .dynamicFoo}
- set {_dynamicEnumExtension = newValue}
- }
- /// Returns true if `dynamicEnumExtension` has been explicitly set.
- var hasDynamicEnumExtension: Bool {return self._dynamicEnumExtension != nil}
- /// Clears the value of `dynamicEnumExtension`. Subsequent reads from it will return its default value.
- mutating func clearDynamicEnumExtension() {self._dynamicEnumExtension = nil}
- var messageExtension: Proto2Unittest_ForeignMessage {
- get {return _messageExtension ?? Proto2Unittest_ForeignMessage()}
- set {_messageExtension = newValue}
- }
- /// Returns true if `messageExtension` has been explicitly set.
- var hasMessageExtension: Bool {return self._messageExtension != nil}
- /// Clears the value of `messageExtension`. Subsequent reads from it will return its default value.
- mutating func clearMessageExtension() {self._messageExtension = nil}
- var dynamicMessageExtension: Proto2Unittest_TestDynamicExtensions.DynamicMessageType {
- get {return _dynamicMessageExtension ?? Proto2Unittest_TestDynamicExtensions.DynamicMessageType()}
- set {_dynamicMessageExtension = newValue}
- }
- /// Returns true if `dynamicMessageExtension` has been explicitly set.
- var hasDynamicMessageExtension: Bool {return self._dynamicMessageExtension != nil}
- /// Clears the value of `dynamicMessageExtension`. Subsequent reads from it will return its default value.
- mutating func clearDynamicMessageExtension() {self._dynamicMessageExtension = nil}
- var repeatedExtension: [String] = []
- var packedExtension: [Int32] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum DynamicEnumType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case dynamicFoo = 2200
- case dynamicBar = 2201
- case dynamicBaz = 2202
- init() {
- self = .dynamicFoo
- }
- }
- struct DynamicMessageType: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var dynamicField: Int32 {
- get {return _dynamicField ?? 0}
- set {_dynamicField = newValue}
- }
- /// Returns true if `dynamicField` has been explicitly set.
- var hasDynamicField: Bool {return self._dynamicField != nil}
- /// Clears the value of `dynamicField`. Subsequent reads from it will return its default value.
- mutating func clearDynamicField() {self._dynamicField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _dynamicField: Int32? = nil
- }
- init() {}
- fileprivate var _scalarExtension: UInt32? = nil
- fileprivate var _enumExtension: Proto2Unittest_ForeignEnum? = nil
- fileprivate var _dynamicEnumExtension: Proto2Unittest_TestDynamicExtensions.DynamicEnumType? = nil
- fileprivate var _messageExtension: Proto2Unittest_ForeignMessage? = nil
- fileprivate var _dynamicMessageExtension: Proto2Unittest_TestDynamicExtensions.DynamicMessageType? = nil
- }
- struct Proto2Unittest_TestRepeatedString: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var repeatedString1: [String] = []
- var repeatedString2: [String] = []
- var repeatedBytes11: [Data] = []
- var repeatedBytes12: [Data] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_TestRepeatedScalarDifferentTagSizes: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// Parsing repeated fixed size values used to fail. This message needs to be
- /// used in order to get a tag of the right size; all of the repeated fields
- /// in TestAllTypes didn't trigger the check.
- var repeatedFixed32: [UInt32] = []
- /// Check for a varint type, just for good measure.
- var repeatedInt32: [Int32] = []
- /// These have two-byte tags.
- var repeatedFixed64: [UInt64] = []
- var repeatedInt64: [Int64] = []
- /// Three byte tags.
- var repeatedFloat: [Float] = []
- var repeatedUint64: [UInt64] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- /// Test that if an optional or required message/group field appears multiple
- /// times in the input, they need to be merged.
- struct Proto2Unittest_TestParsingMerge: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var requiredAllTypes: Proto2Unittest_TestAllTypes {
- get {return _requiredAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_requiredAllTypes = newValue}
- }
- /// Returns true if `requiredAllTypes` has been explicitly set.
- var hasRequiredAllTypes: Bool {return self._requiredAllTypes != nil}
- /// Clears the value of `requiredAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearRequiredAllTypes() {self._requiredAllTypes = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var optionalGroup: Proto2Unittest_TestParsingMerge.OptionalGroup {
- get {return _optionalGroup ?? Proto2Unittest_TestParsingMerge.OptionalGroup()}
- set {_optionalGroup = newValue}
- }
- /// Returns true if `optionalGroup` has been explicitly set.
- var hasOptionalGroup: Bool {return self._optionalGroup != nil}
- /// Clears the value of `optionalGroup`. Subsequent reads from it will return its default value.
- mutating func clearOptionalGroup() {self._optionalGroup = nil}
- var repeatedGroup: [Proto2Unittest_TestParsingMerge.RepeatedGroup] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
- /// except that all fields are repeated. In the tests, we will serialize the
- /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
- /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into
- /// the corresponding required/optional fields in TestParsingMerge.
- struct RepeatedFieldsGenerator: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var field1: [Proto2Unittest_TestAllTypes] = []
- var field2: [Proto2Unittest_TestAllTypes] = []
- var field3: [Proto2Unittest_TestAllTypes] = []
- var group1: [Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group1] = []
- var group2: [Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group2] = []
- var ext1: [Proto2Unittest_TestAllTypes] = []
- var ext2: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct Group1: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var field1: Proto2Unittest_TestAllTypes {
- get {return _field1 ?? Proto2Unittest_TestAllTypes()}
- set {_field1 = newValue}
- }
- /// Returns true if `field1` has been explicitly set.
- var hasField1: Bool {return self._field1 != nil}
- /// Clears the value of `field1`. Subsequent reads from it will return its default value.
- mutating func clearField1() {self._field1 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _field1: Proto2Unittest_TestAllTypes? = nil
- }
- struct Group2: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var field1: Proto2Unittest_TestAllTypes {
- get {return _field1 ?? Proto2Unittest_TestAllTypes()}
- set {_field1 = newValue}
- }
- /// Returns true if `field1` has been explicitly set.
- var hasField1: Bool {return self._field1 != nil}
- /// Clears the value of `field1`. Subsequent reads from it will return its default value.
- mutating func clearField1() {self._field1 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _field1: Proto2Unittest_TestAllTypes? = nil
- }
- init() {}
- }
- struct OptionalGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalGroupAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalGroupAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalGroupAllTypes = newValue}
- }
- /// Returns true if `optionalGroupAllTypes` has been explicitly set.
- var hasOptionalGroupAllTypes: Bool {return self._optionalGroupAllTypes != nil}
- /// Clears the value of `optionalGroupAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalGroupAllTypes() {self._optionalGroupAllTypes = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalGroupAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct RepeatedGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var repeatedGroupAllTypes: Proto2Unittest_TestAllTypes {
- get {return _repeatedGroupAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_repeatedGroupAllTypes = newValue}
- }
- /// Returns true if `repeatedGroupAllTypes` has been explicitly set.
- var hasRepeatedGroupAllTypes: Bool {return self._repeatedGroupAllTypes != nil}
- /// Clears the value of `repeatedGroupAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearRepeatedGroupAllTypes() {self._repeatedGroupAllTypes = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _repeatedGroupAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _requiredAllTypes: Proto2Unittest_TestAllTypes? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- fileprivate var _optionalGroup: Proto2Unittest_TestParsingMerge.OptionalGroup? = nil
- }
- /// Test that the correct exception is thrown by parseFrom in a corner case
- /// involving merging, extensions, and required fields.
- struct Proto2Unittest_TestMergeException: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var allExtensions: Proto2Unittest_TestAllExtensions {
- get {return _allExtensions ?? Proto2Unittest_TestAllExtensions()}
- set {_allExtensions = newValue}
- }
- /// Returns true if `allExtensions` has been explicitly set.
- var hasAllExtensions: Bool {return self._allExtensions != nil}
- /// Clears the value of `allExtensions`. Subsequent reads from it will return its default value.
- mutating func clearAllExtensions() {self._allExtensions = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _allExtensions: Proto2Unittest_TestAllExtensions? = nil
- }
- struct Proto2Unittest_TestCommentInjectionMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// */ <- This should not close the generated doc comment
- var a: String {
- get {return _a ?? "*/ <- Neither should this."}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: String? = nil
- }
- /// Used to check that the c++ code generator re-orders messages to reduce
- /// padding.
- struct Proto2Unittest_TestMessageSize: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var m1: Bool {
- get {return _m1 ?? false}
- set {_m1 = newValue}
- }
- /// Returns true if `m1` has been explicitly set.
- var hasM1: Bool {return self._m1 != nil}
- /// Clears the value of `m1`. Subsequent reads from it will return its default value.
- mutating func clearM1() {self._m1 = nil}
- var m2: Int64 {
- get {return _m2 ?? 0}
- set {_m2 = newValue}
- }
- /// Returns true if `m2` has been explicitly set.
- var hasM2: Bool {return self._m2 != nil}
- /// Clears the value of `m2`. Subsequent reads from it will return its default value.
- mutating func clearM2() {self._m2 = nil}
- var m3: Bool {
- get {return _m3 ?? false}
- set {_m3 = newValue}
- }
- /// Returns true if `m3` has been explicitly set.
- var hasM3: Bool {return self._m3 != nil}
- /// Clears the value of `m3`. Subsequent reads from it will return its default value.
- mutating func clearM3() {self._m3 = nil}
- var m4: String {
- get {return _m4 ?? String()}
- set {_m4 = newValue}
- }
- /// Returns true if `m4` has been explicitly set.
- var hasM4: Bool {return self._m4 != nil}
- /// Clears the value of `m4`. Subsequent reads from it will return its default value.
- mutating func clearM4() {self._m4 = nil}
- var m5: Int32 {
- get {return _m5 ?? 0}
- set {_m5 = newValue}
- }
- /// Returns true if `m5` has been explicitly set.
- var hasM5: Bool {return self._m5 != nil}
- /// Clears the value of `m5`. Subsequent reads from it will return its default value.
- mutating func clearM5() {self._m5 = nil}
- var m6: Int64 {
- get {return _m6 ?? 0}
- set {_m6 = newValue}
- }
- /// Returns true if `m6` has been explicitly set.
- var hasM6: Bool {return self._m6 != nil}
- /// Clears the value of `m6`. Subsequent reads from it will return its default value.
- mutating func clearM6() {self._m6 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _m1: Bool? = nil
- fileprivate var _m2: Int64? = nil
- fileprivate var _m3: Bool? = nil
- fileprivate var _m4: String? = nil
- fileprivate var _m5: Int32? = nil
- fileprivate var _m6: Int64? = nil
- }
- struct Proto2Unittest_OpenEnumMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optOpen: Proto2Unittest_OpenEnumMessage.TestEnum {
- get {return _optOpen ?? .unknown}
- set {_optOpen = newValue}
- }
- /// Returns true if `optOpen` has been explicitly set.
- var hasOptOpen: Bool {return self._optOpen != nil}
- /// Clears the value of `optOpen`. Subsequent reads from it will return its default value.
- mutating func clearOptOpen() {self._optOpen = nil}
- var optClosed: Proto2Unittest_ForeignEnum {
- get {return _optClosed ?? .foreignFoo}
- set {_optClosed = newValue}
- }
- /// Returns true if `optClosed` has been explicitly set.
- var hasOptClosed: Bool {return self._optClosed != nil}
- /// Clears the value of `optClosed`. Subsequent reads from it will return its default value.
- mutating func clearOptClosed() {self._optClosed = nil}
- var repeatedOpen: [Proto2Unittest_OpenEnumMessage.TestEnum] = []
- var repeatedClosed: [Proto2Unittest_ForeignEnum] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum TestEnum: SwiftProtobuf.Enum, Swift.CaseIterable {
- typealias RawValue = Int
- case unknown // = 0
- case foo // = 1
- case bar // = 2
- case baz // = 3
- case UNRECOGNIZED(Int)
- init() {
- self = .unknown
- }
- init?(rawValue: Int) {
- switch rawValue {
- case 0: self = .unknown
- case 1: self = .foo
- case 2: self = .bar
- case 3: self = .baz
- default: self = .UNRECOGNIZED(rawValue)
- }
- }
- var rawValue: Int {
- switch self {
- case .unknown: return 0
- case .foo: return 1
- case .bar: return 2
- case .baz: return 3
- case .UNRECOGNIZED(let i): return i
- }
- }
- // The compiler won't synthesize support with the UNRECOGNIZED case.
- static let allCases: [Proto2Unittest_OpenEnumMessage.TestEnum] = [
- .unknown,
- .foo,
- .bar,
- .baz,
- ]
- }
- init() {}
- fileprivate var _optOpen: Proto2Unittest_OpenEnumMessage.TestEnum? = nil
- fileprivate var _optClosed: Proto2Unittest_ForeignEnum? = nil
- }
- /// Tests eager verification of a lazy message field.
- struct Proto2Unittest_TestEagerlyVerifiedLazyMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var lazyMessage: Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage {
- get {return _lazyMessage ?? Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage()}
- set {_lazyMessage = newValue}
- }
- /// Returns true if `lazyMessage` has been explicitly set.
- var hasLazyMessage: Bool {return self._lazyMessage != nil}
- /// Clears the value of `lazyMessage`. Subsequent reads from it will return its default value.
- mutating func clearLazyMessage() {self._lazyMessage = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct LazyMessage: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var bytesField: Data {
- get {return _bytesField ?? Data()}
- set {_bytesField = newValue}
- }
- /// Returns true if `bytesField` has been explicitly set.
- var hasBytesField: Bool {return self._bytesField != nil}
- /// Clears the value of `bytesField`. Subsequent reads from it will return its default value.
- mutating func clearBytesField() {self._bytesField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _bytesField: Data? = nil
- }
- init() {}
- fileprivate var _lazyMessage: Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage? = nil
- }
- /// Test that RPC services work.
- struct Proto2Unittest_FooRequest: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_FooResponse: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_FooClientMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_FooServerMessage: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_BarRequest: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_BarResponse: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct Proto2Unittest_TestJsonName: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var fieldName1: Int32 {
- get {return _fieldName1 ?? 0}
- set {_fieldName1 = newValue}
- }
- /// Returns true if `fieldName1` has been explicitly set.
- var hasFieldName1: Bool {return self._fieldName1 != nil}
- /// Clears the value of `fieldName1`. Subsequent reads from it will return its default value.
- mutating func clearFieldName1() {self._fieldName1 = nil}
- var fieldName2: Int32 {
- get {return _fieldName2 ?? 0}
- set {_fieldName2 = newValue}
- }
- /// Returns true if `fieldName2` has been explicitly set.
- var hasFieldName2: Bool {return self._fieldName2 != nil}
- /// Clears the value of `fieldName2`. Subsequent reads from it will return its default value.
- mutating func clearFieldName2() {self._fieldName2 = nil}
- var fieldName3: Int32 {
- get {return _fieldName3 ?? 0}
- set {_fieldName3 = newValue}
- }
- /// Returns true if `fieldName3` has been explicitly set.
- var hasFieldName3: Bool {return self._fieldName3 != nil}
- /// Clears the value of `fieldName3`. Subsequent reads from it will return its default value.
- mutating func clearFieldName3() {self._fieldName3 = nil}
- var fieldName4: Int32 {
- get {return _fieldName4 ?? 0}
- set {_fieldName4 = newValue}
- }
- /// Returns true if `fieldName4` has been explicitly set.
- var hasFieldName4: Bool {return self._fieldName4 != nil}
- /// Clears the value of `fieldName4`. Subsequent reads from it will return its default value.
- mutating func clearFieldName4() {self._fieldName4 = nil}
- var fieldName5: Int32 {
- get {return _fieldName5 ?? 0}
- set {_fieldName5 = newValue}
- }
- /// Returns true if `fieldName5` has been explicitly set.
- var hasFieldName5: Bool {return self._fieldName5 != nil}
- /// Clears the value of `fieldName5`. Subsequent reads from it will return its default value.
- mutating func clearFieldName5() {self._fieldName5 = nil}
- var fieldName6: Int32 {
- get {return _fieldName6 ?? 0}
- set {_fieldName6 = newValue}
- }
- /// Returns true if `fieldName6` has been explicitly set.
- var hasFieldName6: Bool {return self._fieldName6 != nil}
- /// Clears the value of `fieldName6`. Subsequent reads from it will return its default value.
- mutating func clearFieldName6() {self._fieldName6 = nil}
- var fieldname7: Int32 {
- get {return _fieldname7 ?? 0}
- set {_fieldname7 = newValue}
- }
- /// Returns true if `fieldname7` has been explicitly set.
- var hasFieldname7: Bool {return self._fieldname7 != nil}
- /// Clears the value of `fieldname7`. Subsequent reads from it will return its default value.
- mutating func clearFieldname7() {self._fieldname7 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _fieldName1: Int32? = nil
- fileprivate var _fieldName2: Int32? = nil
- fileprivate var _fieldName3: Int32? = nil
- fileprivate var _fieldName4: Int32? = nil
- fileprivate var _fieldName5: Int32? = nil
- fileprivate var _fieldName6: Int32? = nil
- fileprivate var _fieldname7: Int32? = nil
- }
- struct Proto2Unittest_TestHugeFieldNumbers: SwiftProtobuf.ExtensibleMessage, @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt32: Int32 {
- get {return _optionalInt32 ?? 0}
- set {_optionalInt32 = newValue}
- }
- /// Returns true if `optionalInt32` has been explicitly set.
- var hasOptionalInt32: Bool {return self._optionalInt32 != nil}
- /// Clears the value of `optionalInt32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32() {self._optionalInt32 = nil}
- var fixed32: Int32 {
- get {return _fixed32 ?? 0}
- set {_fixed32 = newValue}
- }
- /// Returns true if `fixed32` has been explicitly set.
- var hasFixed32: Bool {return self._fixed32 != nil}
- /// Clears the value of `fixed32`. Subsequent reads from it will return its default value.
- mutating func clearFixed32() {self._fixed32 = nil}
- var repeatedInt32: [Int32] = []
- var packedInt32: [Int32] = []
- var optionalEnum: Proto2Unittest_ForeignEnum {
- get {return _optionalEnum ?? .foreignFoo}
- set {_optionalEnum = newValue}
- }
- /// Returns true if `optionalEnum` has been explicitly set.
- var hasOptionalEnum: Bool {return self._optionalEnum != nil}
- /// Clears the value of `optionalEnum`. Subsequent reads from it will return its default value.
- mutating func clearOptionalEnum() {self._optionalEnum = nil}
- var optionalString: String {
- get {return _optionalString ?? String()}
- set {_optionalString = newValue}
- }
- /// Returns true if `optionalString` has been explicitly set.
- var hasOptionalString: Bool {return self._optionalString != nil}
- /// Clears the value of `optionalString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalString() {self._optionalString = nil}
- var optionalBytes: Data {
- get {return _optionalBytes ?? Data()}
- set {_optionalBytes = newValue}
- }
- /// Returns true if `optionalBytes` has been explicitly set.
- var hasOptionalBytes: Bool {return self._optionalBytes != nil}
- /// Clears the value of `optionalBytes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBytes() {self._optionalBytes = nil}
- var optionalMessage: Proto2Unittest_ForeignMessage {
- get {return _optionalMessage ?? Proto2Unittest_ForeignMessage()}
- set {_optionalMessage = newValue}
- }
- /// Returns true if `optionalMessage` has been explicitly set.
- var hasOptionalMessage: Bool {return self._optionalMessage != nil}
- /// Clears the value of `optionalMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalMessage() {self._optionalMessage = nil}
- var optionalGroup: Proto2Unittest_TestHugeFieldNumbers.OptionalGroup {
- get {return _optionalGroup ?? Proto2Unittest_TestHugeFieldNumbers.OptionalGroup()}
- set {_optionalGroup = newValue}
- }
- /// Returns true if `optionalGroup` has been explicitly set.
- var hasOptionalGroup: Bool {return self._optionalGroup != nil}
- /// Clears the value of `optionalGroup`. Subsequent reads from it will return its default value.
- mutating func clearOptionalGroup() {self._optionalGroup = nil}
- var stringStringMap: Dictionary<String,String> = [:]
- var oneofField: Proto2Unittest_TestHugeFieldNumbers.OneOf_OneofField? = nil
- var oneofUint32: UInt32 {
- get {
- if case .oneofUint32(let v)? = oneofField {return v}
- return 0
- }
- set {oneofField = .oneofUint32(newValue)}
- }
- var oneofTestAllTypes: Proto2Unittest_TestAllTypes {
- get {
- if case .oneofTestAllTypes(let v)? = oneofField {return v}
- return Proto2Unittest_TestAllTypes()
- }
- set {oneofField = .oneofTestAllTypes(newValue)}
- }
- var oneofString: String {
- get {
- if case .oneofString(let v)? = oneofField {return v}
- return String()
- }
- set {oneofField = .oneofString(newValue)}
- }
- var oneofBytes: Data {
- get {
- if case .oneofBytes(let v)? = oneofField {return v}
- return Data()
- }
- set {oneofField = .oneofBytes(newValue)}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_OneofField: Equatable, @unchecked Sendable {
- case oneofUint32(UInt32)
- case oneofTestAllTypes(Proto2Unittest_TestAllTypes)
- case oneofString(String)
- case oneofBytes(Data)
- }
- struct OptionalGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var groupA: Int32 {
- get {return _groupA ?? 0}
- set {_groupA = newValue}
- }
- /// Returns true if `groupA` has been explicitly set.
- var hasGroupA: Bool {return self._groupA != nil}
- /// Clears the value of `groupA`. Subsequent reads from it will return its default value.
- mutating func clearGroupA() {self._groupA = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _groupA: Int32? = nil
- }
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalInt32: Int32? = nil
- fileprivate var _fixed32: Int32? = nil
- fileprivate var _optionalEnum: Proto2Unittest_ForeignEnum? = nil
- fileprivate var _optionalString: String? = nil
- fileprivate var _optionalBytes: Data? = nil
- fileprivate var _optionalMessage: Proto2Unittest_ForeignMessage? = nil
- fileprivate var _optionalGroup: Proto2Unittest_TestHugeFieldNumbers.OptionalGroup? = nil
- }
- struct Proto2Unittest_TestExtensionInsideTable: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var field1: Int32 {
- get {return _field1 ?? 0}
- set {_field1 = newValue}
- }
- /// Returns true if `field1` has been explicitly set.
- var hasField1: Bool {return self._field1 != nil}
- /// Clears the value of `field1`. Subsequent reads from it will return its default value.
- mutating func clearField1() {self._field1 = nil}
- var field2: Int32 {
- get {return _field2 ?? 0}
- set {_field2 = newValue}
- }
- /// Returns true if `field2` has been explicitly set.
- var hasField2: Bool {return self._field2 != nil}
- /// Clears the value of `field2`. Subsequent reads from it will return its default value.
- mutating func clearField2() {self._field2 = nil}
- var field3: Int32 {
- get {return _field3 ?? 0}
- set {_field3 = newValue}
- }
- /// Returns true if `field3` has been explicitly set.
- var hasField3: Bool {return self._field3 != nil}
- /// Clears the value of `field3`. Subsequent reads from it will return its default value.
- mutating func clearField3() {self._field3 = nil}
- var field4: Int32 {
- get {return _field4 ?? 0}
- set {_field4 = newValue}
- }
- /// Returns true if `field4` has been explicitly set.
- var hasField4: Bool {return self._field4 != nil}
- /// Clears the value of `field4`. Subsequent reads from it will return its default value.
- mutating func clearField4() {self._field4 = nil}
- var field6: Int32 {
- get {return _field6 ?? 0}
- set {_field6 = newValue}
- }
- /// Returns true if `field6` has been explicitly set.
- var hasField6: Bool {return self._field6 != nil}
- /// Clears the value of `field6`. Subsequent reads from it will return its default value.
- mutating func clearField6() {self._field6 = nil}
- var field7: Int32 {
- get {return _field7 ?? 0}
- set {_field7 = newValue}
- }
- /// Returns true if `field7` has been explicitly set.
- var hasField7: Bool {return self._field7 != nil}
- /// Clears the value of `field7`. Subsequent reads from it will return its default value.
- mutating func clearField7() {self._field7 = nil}
- var field8: Int32 {
- get {return _field8 ?? 0}
- set {_field8 = newValue}
- }
- /// Returns true if `field8` has been explicitly set.
- var hasField8: Bool {return self._field8 != nil}
- /// Clears the value of `field8`. Subsequent reads from it will return its default value.
- mutating func clearField8() {self._field8 = nil}
- var field9: Int32 {
- get {return _field9 ?? 0}
- set {_field9 = newValue}
- }
- /// Returns true if `field9` has been explicitly set.
- var hasField9: Bool {return self._field9 != nil}
- /// Clears the value of `field9`. Subsequent reads from it will return its default value.
- mutating func clearField9() {self._field9 = nil}
- var field10: Int32 {
- get {return _field10 ?? 0}
- set {_field10 = newValue}
- }
- /// Returns true if `field10` has been explicitly set.
- var hasField10: Bool {return self._field10 != nil}
- /// Clears the value of `field10`. Subsequent reads from it will return its default value.
- mutating func clearField10() {self._field10 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _field1: Int32? = nil
- fileprivate var _field2: Int32? = nil
- fileprivate var _field3: Int32? = nil
- fileprivate var _field4: Int32? = nil
- fileprivate var _field6: Int32? = nil
- fileprivate var _field7: Int32? = nil
- fileprivate var _field8: Int32? = nil
- fileprivate var _field9: Int32? = nil
- fileprivate var _field10: Int32? = nil
- }
- /// NOTE: Intentionally nested to mirror go/glep.
- struct Proto2Unittest_TestNestedGroupExtensionOuter: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var layer1OptionalGroup: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup {
- get {return _layer1OptionalGroup ?? Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup()}
- set {_layer1OptionalGroup = newValue}
- }
- /// Returns true if `layer1OptionalGroup` has been explicitly set.
- var hasLayer1OptionalGroup: Bool {return self._layer1OptionalGroup != nil}
- /// Clears the value of `layer1OptionalGroup`. Subsequent reads from it will return its default value.
- mutating func clearLayer1OptionalGroup() {self._layer1OptionalGroup = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct Layer1OptionalGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var layer2RepeatedGroup: [Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup] = []
- var layer2AnotherOptionalRepeatedGroup: [Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2AnotherOptionalRepeatedGroup] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct Layer2RepeatedGroup: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var anotherField: String {
- get {return _anotherField ?? String()}
- set {_anotherField = newValue}
- }
- /// Returns true if `anotherField` has been explicitly set.
- var hasAnotherField: Bool {return self._anotherField != nil}
- /// Clears the value of `anotherField`. Subsequent reads from it will return its default value.
- mutating func clearAnotherField() {self._anotherField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _anotherField: String? = nil
- }
- struct Layer2AnotherOptionalRepeatedGroup: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var butWhyTho: String {
- get {return _butWhyTho ?? String()}
- set {_butWhyTho = newValue}
- }
- /// Returns true if `butWhyTho` has been explicitly set.
- var hasButWhyTho: Bool {return self._butWhyTho != nil}
- /// Clears the value of `butWhyTho`. Subsequent reads from it will return its default value.
- mutating func clearButWhyTho() {self._butWhyTho = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _butWhyTho: String? = nil
- }
- init() {}
- }
- init() {}
- fileprivate var _layer1OptionalGroup: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup? = nil
- }
- struct Proto2Unittest_TestNestedGroupExtensionInnerExtension: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var innerName: String {
- get {return _innerName ?? String()}
- set {_innerName = newValue}
- }
- /// Returns true if `innerName` has been explicitly set.
- var hasInnerName: Bool {return self._innerName != nil}
- /// Clears the value of `innerName`. Subsequent reads from it will return its default value.
- mutating func clearInnerName() {self._innerName = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _innerName: String? = nil
- }
- struct Proto2Unittest_TestExtensionRangeSerialize: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var fooOne: Int32 {
- get {return _fooOne ?? 0}
- set {_fooOne = newValue}
- }
- /// Returns true if `fooOne` has been explicitly set.
- var hasFooOne: Bool {return self._fooOne != nil}
- /// Clears the value of `fooOne`. Subsequent reads from it will return its default value.
- mutating func clearFooOne() {self._fooOne = nil}
- var fooTwo: Int32 {
- get {return _fooTwo ?? 0}
- set {_fooTwo = newValue}
- }
- /// Returns true if `fooTwo` has been explicitly set.
- var hasFooTwo: Bool {return self._fooTwo != nil}
- /// Clears the value of `fooTwo`. Subsequent reads from it will return its default value.
- mutating func clearFooTwo() {self._fooTwo = nil}
- var fooThree: Int32 {
- get {return _fooThree ?? 0}
- set {_fooThree = newValue}
- }
- /// Returns true if `fooThree` has been explicitly set.
- var hasFooThree: Bool {return self._fooThree != nil}
- /// Clears the value of `fooThree`. Subsequent reads from it will return its default value.
- mutating func clearFooThree() {self._fooThree = nil}
- var fooFour: Int32 {
- get {return _fooFour ?? 0}
- set {_fooFour = newValue}
- }
- /// Returns true if `fooFour` has been explicitly set.
- var hasFooFour: Bool {return self._fooFour != nil}
- /// Clears the value of `fooFour`. Subsequent reads from it will return its default value.
- mutating func clearFooFour() {self._fooFour = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _fooOne: Int32? = nil
- fileprivate var _fooTwo: Int32? = nil
- fileprivate var _fooThree: Int32? = nil
- fileprivate var _fooFour: Int32? = nil
- }
- struct Proto2Unittest_TestVerifyInt32Simple: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt321: Int32 {
- get {return _optionalInt321 ?? 0}
- set {_optionalInt321 = newValue}
- }
- /// Returns true if `optionalInt321` has been explicitly set.
- var hasOptionalInt321: Bool {return self._optionalInt321 != nil}
- /// Clears the value of `optionalInt321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321() {self._optionalInt321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt321: Int32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- }
- struct Proto2Unittest_TestVerifyInt32: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt321: Int32 {
- get {return _optionalInt321 ?? 0}
- set {_optionalInt321 = newValue}
- }
- /// Returns true if `optionalInt321` has been explicitly set.
- var hasOptionalInt321: Bool {return self._optionalInt321 != nil}
- /// Clears the value of `optionalInt321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321() {self._optionalInt321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt321: Int32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyMostlyInt32: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt6430: Int64 {
- get {return _optionalInt6430 ?? 0}
- set {_optionalInt6430 = newValue}
- }
- /// Returns true if `optionalInt6430` has been explicitly set.
- var hasOptionalInt6430: Bool {return self._optionalInt6430 != nil}
- /// Clears the value of `optionalInt6430`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt6430() {self._optionalInt6430 = nil}
- var optionalInt321: Int32 {
- get {return _optionalInt321 ?? 0}
- set {_optionalInt321 = newValue}
- }
- /// Returns true if `optionalInt321` has been explicitly set.
- var hasOptionalInt321: Bool {return self._optionalInt321 != nil}
- /// Clears the value of `optionalInt321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321() {self._optionalInt321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt323: Int32 {
- get {return _optionalInt323 ?? 0}
- set {_optionalInt323 = newValue}
- }
- /// Returns true if `optionalInt323` has been explicitly set.
- var hasOptionalInt323: Bool {return self._optionalInt323 != nil}
- /// Clears the value of `optionalInt323`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt323() {self._optionalInt323 = nil}
- var optionalInt324: Int32 {
- get {return _optionalInt324 ?? 0}
- set {_optionalInt324 = newValue}
- }
- /// Returns true if `optionalInt324` has been explicitly set.
- var hasOptionalInt324: Bool {return self._optionalInt324 != nil}
- /// Clears the value of `optionalInt324`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt324() {self._optionalInt324 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt6430: Int64? = nil
- fileprivate var _optionalInt321: Int32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt323: Int32? = nil
- fileprivate var _optionalInt324: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyMostlyInt32BigFieldNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt6430: Int64 {
- get {return _optionalInt6430 ?? 0}
- set {_optionalInt6430 = newValue}
- }
- /// Returns true if `optionalInt6430` has been explicitly set.
- var hasOptionalInt6430: Bool {return self._optionalInt6430 != nil}
- /// Clears the value of `optionalInt6430`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt6430() {self._optionalInt6430 = nil}
- var optionalInt32300: Int32 {
- get {return _optionalInt32300 ?? 0}
- set {_optionalInt32300 = newValue}
- }
- /// Returns true if `optionalInt32300` has been explicitly set.
- var hasOptionalInt32300: Bool {return self._optionalInt32300 != nil}
- /// Clears the value of `optionalInt32300`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32300() {self._optionalInt32300 = nil}
- var optionalInt321: Int32 {
- get {return _optionalInt321 ?? 0}
- set {_optionalInt321 = newValue}
- }
- /// Returns true if `optionalInt321` has been explicitly set.
- var hasOptionalInt321: Bool {return self._optionalInt321 != nil}
- /// Clears the value of `optionalInt321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321() {self._optionalInt321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt323: Int32 {
- get {return _optionalInt323 ?? 0}
- set {_optionalInt323 = newValue}
- }
- /// Returns true if `optionalInt323` has been explicitly set.
- var hasOptionalInt323: Bool {return self._optionalInt323 != nil}
- /// Clears the value of `optionalInt323`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt323() {self._optionalInt323 = nil}
- var optionalInt324: Int32 {
- get {return _optionalInt324 ?? 0}
- set {_optionalInt324 = newValue}
- }
- /// Returns true if `optionalInt324` has been explicitly set.
- var hasOptionalInt324: Bool {return self._optionalInt324 != nil}
- /// Clears the value of `optionalInt324`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt324() {self._optionalInt324 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt6430: Int64? = nil
- fileprivate var _optionalInt32300: Int32? = nil
- fileprivate var _optionalInt321: Int32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt323: Int32? = nil
- fileprivate var _optionalInt324: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyUint32Simple: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUint321: UInt32 {
- get {return _optionalUint321 ?? 0}
- set {_optionalUint321 = newValue}
- }
- /// Returns true if `optionalUint321` has been explicitly set.
- var hasOptionalUint321: Bool {return self._optionalUint321 != nil}
- /// Clears the value of `optionalUint321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321() {self._optionalUint321 = nil}
- var optionalUint322: UInt32 {
- get {return _optionalUint322 ?? 0}
- set {_optionalUint322 = newValue}
- }
- /// Returns true if `optionalUint322` has been explicitly set.
- var hasOptionalUint322: Bool {return self._optionalUint322 != nil}
- /// Clears the value of `optionalUint322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint322() {self._optionalUint322 = nil}
- var optionalUint3263: UInt32 {
- get {return _optionalUint3263 ?? 0}
- set {_optionalUint3263 = newValue}
- }
- /// Returns true if `optionalUint3263` has been explicitly set.
- var hasOptionalUint3263: Bool {return self._optionalUint3263 != nil}
- /// Clears the value of `optionalUint3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3263() {self._optionalUint3263 = nil}
- var optionalUint3264: UInt32 {
- get {return _optionalUint3264 ?? 0}
- set {_optionalUint3264 = newValue}
- }
- /// Returns true if `optionalUint3264` has been explicitly set.
- var hasOptionalUint3264: Bool {return self._optionalUint3264 != nil}
- /// Clears the value of `optionalUint3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3264() {self._optionalUint3264 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalUint321: UInt32? = nil
- fileprivate var _optionalUint322: UInt32? = nil
- fileprivate var _optionalUint3263: UInt32? = nil
- fileprivate var _optionalUint3264: UInt32? = nil
- }
- struct Proto2Unittest_TestVerifyUint32: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUint321: UInt32 {
- get {return _optionalUint321 ?? 0}
- set {_optionalUint321 = newValue}
- }
- /// Returns true if `optionalUint321` has been explicitly set.
- var hasOptionalUint321: Bool {return self._optionalUint321 != nil}
- /// Clears the value of `optionalUint321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321() {self._optionalUint321 = nil}
- var optionalUint322: UInt32 {
- get {return _optionalUint322 ?? 0}
- set {_optionalUint322 = newValue}
- }
- /// Returns true if `optionalUint322` has been explicitly set.
- var hasOptionalUint322: Bool {return self._optionalUint322 != nil}
- /// Clears the value of `optionalUint322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint322() {self._optionalUint322 = nil}
- var optionalUint3263: UInt32 {
- get {return _optionalUint3263 ?? 0}
- set {_optionalUint3263 = newValue}
- }
- /// Returns true if `optionalUint3263` has been explicitly set.
- var hasOptionalUint3263: Bool {return self._optionalUint3263 != nil}
- /// Clears the value of `optionalUint3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3263() {self._optionalUint3263 = nil}
- var optionalUint3264: UInt32 {
- get {return _optionalUint3264 ?? 0}
- set {_optionalUint3264 = newValue}
- }
- /// Returns true if `optionalUint3264` has been explicitly set.
- var hasOptionalUint3264: Bool {return self._optionalUint3264 != nil}
- /// Clears the value of `optionalUint3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3264() {self._optionalUint3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalUint321: UInt32? = nil
- fileprivate var _optionalUint322: UInt32? = nil
- fileprivate var _optionalUint3263: UInt32? = nil
- fileprivate var _optionalUint3264: UInt32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyOneUint32: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUint321: UInt32 {
- get {return _optionalUint321 ?? 0}
- set {_optionalUint321 = newValue}
- }
- /// Returns true if `optionalUint321` has been explicitly set.
- var hasOptionalUint321: Bool {return self._optionalUint321 != nil}
- /// Clears the value of `optionalUint321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321() {self._optionalUint321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalUint321: UInt32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyOneInt32BigFieldNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt3265: Int32 {
- get {return _optionalInt3265 ?? 0}
- set {_optionalInt3265 = newValue}
- }
- /// Returns true if `optionalInt3265` has been explicitly set.
- var hasOptionalInt3265: Bool {return self._optionalInt3265 != nil}
- /// Clears the value of `optionalInt3265`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3265() {self._optionalInt3265 = nil}
- var optionalInt641: Int64 {
- get {return _optionalInt641 ?? 0}
- set {_optionalInt641 = newValue}
- }
- /// Returns true if `optionalInt641` has been explicitly set.
- var hasOptionalInt641: Bool {return self._optionalInt641 != nil}
- /// Clears the value of `optionalInt641`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt641() {self._optionalInt641 = nil}
- var optionalInt642: Int64 {
- get {return _optionalInt642 ?? 0}
- set {_optionalInt642 = newValue}
- }
- /// Returns true if `optionalInt642` has been explicitly set.
- var hasOptionalInt642: Bool {return self._optionalInt642 != nil}
- /// Clears the value of `optionalInt642`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt642() {self._optionalInt642 = nil}
- var optionalInt6463: Int64 {
- get {return _optionalInt6463 ?? 0}
- set {_optionalInt6463 = newValue}
- }
- /// Returns true if `optionalInt6463` has been explicitly set.
- var hasOptionalInt6463: Bool {return self._optionalInt6463 != nil}
- /// Clears the value of `optionalInt6463`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt6463() {self._optionalInt6463 = nil}
- var optionalInt6464: Int64 {
- get {return _optionalInt6464 ?? 0}
- set {_optionalInt6464 = newValue}
- }
- /// Returns true if `optionalInt6464` has been explicitly set.
- var hasOptionalInt6464: Bool {return self._optionalInt6464 != nil}
- /// Clears the value of `optionalInt6464`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt6464() {self._optionalInt6464 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt3265: Int32? = nil
- fileprivate var _optionalInt641: Int64? = nil
- fileprivate var _optionalInt642: Int64? = nil
- fileprivate var _optionalInt6463: Int64? = nil
- fileprivate var _optionalInt6464: Int64? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyInt32BigFieldNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt321000: Int32 {
- get {return _optionalInt321000 ?? 0}
- set {_optionalInt321000 = newValue}
- }
- /// Returns true if `optionalInt321000` has been explicitly set.
- var hasOptionalInt321000: Bool {return self._optionalInt321000 != nil}
- /// Clears the value of `optionalInt321000`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321000() {self._optionalInt321000 = nil}
- var optionalInt3265: Int32 {
- get {return _optionalInt3265 ?? 0}
- set {_optionalInt3265 = newValue}
- }
- /// Returns true if `optionalInt3265` has been explicitly set.
- var hasOptionalInt3265: Bool {return self._optionalInt3265 != nil}
- /// Clears the value of `optionalInt3265`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3265() {self._optionalInt3265 = nil}
- var optionalInt321: Int32 {
- get {return _optionalInt321 ?? 0}
- set {_optionalInt321 = newValue}
- }
- /// Returns true if `optionalInt321` has been explicitly set.
- var hasOptionalInt321: Bool {return self._optionalInt321 != nil}
- /// Clears the value of `optionalInt321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt321() {self._optionalInt321 = nil}
- var optionalInt322: Int32 {
- get {return _optionalInt322 ?? 0}
- set {_optionalInt322 = newValue}
- }
- /// Returns true if `optionalInt322` has been explicitly set.
- var hasOptionalInt322: Bool {return self._optionalInt322 != nil}
- /// Clears the value of `optionalInt322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt322() {self._optionalInt322 = nil}
- var optionalInt3263: Int32 {
- get {return _optionalInt3263 ?? 0}
- set {_optionalInt3263 = newValue}
- }
- /// Returns true if `optionalInt3263` has been explicitly set.
- var hasOptionalInt3263: Bool {return self._optionalInt3263 != nil}
- /// Clears the value of `optionalInt3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3263() {self._optionalInt3263 = nil}
- var optionalInt3264: Int32 {
- get {return _optionalInt3264 ?? 0}
- set {_optionalInt3264 = newValue}
- }
- /// Returns true if `optionalInt3264` has been explicitly set.
- var hasOptionalInt3264: Bool {return self._optionalInt3264 != nil}
- /// Clears the value of `optionalInt3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt3264() {self._optionalInt3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt321000: Int32? = nil
- fileprivate var _optionalInt3265: Int32? = nil
- fileprivate var _optionalInt321: Int32? = nil
- fileprivate var _optionalInt322: Int32? = nil
- fileprivate var _optionalInt3263: Int32? = nil
- fileprivate var _optionalInt3264: Int32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyUint32BigFieldNumber: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUint321000: UInt32 {
- get {return _optionalUint321000 ?? 0}
- set {_optionalUint321000 = newValue}
- }
- /// Returns true if `optionalUint321000` has been explicitly set.
- var hasOptionalUint321000: Bool {return self._optionalUint321000 != nil}
- /// Clears the value of `optionalUint321000`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321000() {self._optionalUint321000 = nil}
- var optionalUint3265: UInt32 {
- get {return _optionalUint3265 ?? 0}
- set {_optionalUint3265 = newValue}
- }
- /// Returns true if `optionalUint3265` has been explicitly set.
- var hasOptionalUint3265: Bool {return self._optionalUint3265 != nil}
- /// Clears the value of `optionalUint3265`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3265() {self._optionalUint3265 = nil}
- var optionalUint321: UInt32 {
- get {return _optionalUint321 ?? 0}
- set {_optionalUint321 = newValue}
- }
- /// Returns true if `optionalUint321` has been explicitly set.
- var hasOptionalUint321: Bool {return self._optionalUint321 != nil}
- /// Clears the value of `optionalUint321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321() {self._optionalUint321 = nil}
- var optionalUint322: UInt32 {
- get {return _optionalUint322 ?? 0}
- set {_optionalUint322 = newValue}
- }
- /// Returns true if `optionalUint322` has been explicitly set.
- var hasOptionalUint322: Bool {return self._optionalUint322 != nil}
- /// Clears the value of `optionalUint322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint322() {self._optionalUint322 = nil}
- var optionalUint3263: UInt32 {
- get {return _optionalUint3263 ?? 0}
- set {_optionalUint3263 = newValue}
- }
- /// Returns true if `optionalUint3263` has been explicitly set.
- var hasOptionalUint3263: Bool {return self._optionalUint3263 != nil}
- /// Clears the value of `optionalUint3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3263() {self._optionalUint3263 = nil}
- var optionalUint3264: UInt32 {
- get {return _optionalUint3264 ?? 0}
- set {_optionalUint3264 = newValue}
- }
- /// Returns true if `optionalUint3264` has been explicitly set.
- var hasOptionalUint3264: Bool {return self._optionalUint3264 != nil}
- /// Clears the value of `optionalUint3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3264() {self._optionalUint3264 = nil}
- var optionalAllTypes: Proto2Unittest_TestAllTypes {
- get {return _optionalAllTypes ?? Proto2Unittest_TestAllTypes()}
- set {_optionalAllTypes = newValue}
- }
- /// Returns true if `optionalAllTypes` has been explicitly set.
- var hasOptionalAllTypes: Bool {return self._optionalAllTypes != nil}
- /// Clears the value of `optionalAllTypes`. Subsequent reads from it will return its default value.
- mutating func clearOptionalAllTypes() {self._optionalAllTypes = nil}
- var repeatedAllTypes: [Proto2Unittest_TestAllTypes] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalUint321000: UInt32? = nil
- fileprivate var _optionalUint3265: UInt32? = nil
- fileprivate var _optionalUint321: UInt32? = nil
- fileprivate var _optionalUint322: UInt32? = nil
- fileprivate var _optionalUint3263: UInt32? = nil
- fileprivate var _optionalUint3264: UInt32? = nil
- fileprivate var _optionalAllTypes: Proto2Unittest_TestAllTypes? = nil
- }
- struct Proto2Unittest_TestVerifyBigFieldNumberUint32: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalNested: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested {
- get {return _optionalNested ?? Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested()}
- set {_optionalNested = newValue}
- }
- /// Returns true if `optionalNested` has been explicitly set.
- var hasOptionalNested: Bool {return self._optionalNested != nil}
- /// Clears the value of `optionalNested`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNested() {self._optionalNested = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- struct Nested: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUint325000: UInt32 {
- get {return _storage._optionalUint325000 ?? 0}
- set {_uniqueStorage()._optionalUint325000 = newValue}
- }
- /// Returns true if `optionalUint325000` has been explicitly set.
- var hasOptionalUint325000: Bool {return _storage._optionalUint325000 != nil}
- /// Clears the value of `optionalUint325000`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint325000() {_uniqueStorage()._optionalUint325000 = nil}
- var optionalUint321000: UInt32 {
- get {return _storage._optionalUint321000 ?? 0}
- set {_uniqueStorage()._optionalUint321000 = newValue}
- }
- /// Returns true if `optionalUint321000` has been explicitly set.
- var hasOptionalUint321000: Bool {return _storage._optionalUint321000 != nil}
- /// Clears the value of `optionalUint321000`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321000() {_uniqueStorage()._optionalUint321000 = nil}
- var optionalUint3266: UInt32 {
- get {return _storage._optionalUint3266 ?? 0}
- set {_uniqueStorage()._optionalUint3266 = newValue}
- }
- /// Returns true if `optionalUint3266` has been explicitly set.
- var hasOptionalUint3266: Bool {return _storage._optionalUint3266 != nil}
- /// Clears the value of `optionalUint3266`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3266() {_uniqueStorage()._optionalUint3266 = nil}
- var optionalUint3265: UInt32 {
- get {return _storage._optionalUint3265 ?? 0}
- set {_uniqueStorage()._optionalUint3265 = newValue}
- }
- /// Returns true if `optionalUint3265` has been explicitly set.
- var hasOptionalUint3265: Bool {return _storage._optionalUint3265 != nil}
- /// Clears the value of `optionalUint3265`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3265() {_uniqueStorage()._optionalUint3265 = nil}
- var optionalUint321: UInt32 {
- get {return _storage._optionalUint321 ?? 0}
- set {_uniqueStorage()._optionalUint321 = newValue}
- }
- /// Returns true if `optionalUint321` has been explicitly set.
- var hasOptionalUint321: Bool {return _storage._optionalUint321 != nil}
- /// Clears the value of `optionalUint321`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint321() {_uniqueStorage()._optionalUint321 = nil}
- var optionalUint322: UInt32 {
- get {return _storage._optionalUint322 ?? 0}
- set {_uniqueStorage()._optionalUint322 = newValue}
- }
- /// Returns true if `optionalUint322` has been explicitly set.
- var hasOptionalUint322: Bool {return _storage._optionalUint322 != nil}
- /// Clears the value of `optionalUint322`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint322() {_uniqueStorage()._optionalUint322 = nil}
- var optionalUint3263: UInt32 {
- get {return _storage._optionalUint3263 ?? 0}
- set {_uniqueStorage()._optionalUint3263 = newValue}
- }
- /// Returns true if `optionalUint3263` has been explicitly set.
- var hasOptionalUint3263: Bool {return _storage._optionalUint3263 != nil}
- /// Clears the value of `optionalUint3263`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3263() {_uniqueStorage()._optionalUint3263 = nil}
- var optionalUint3264: UInt32 {
- get {return _storage._optionalUint3264 ?? 0}
- set {_uniqueStorage()._optionalUint3264 = newValue}
- }
- /// Returns true if `optionalUint3264` has been explicitly set.
- var hasOptionalUint3264: Bool {return _storage._optionalUint3264 != nil}
- /// Clears the value of `optionalUint3264`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUint3264() {_uniqueStorage()._optionalUint3264 = nil}
- var optionalNested: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested {
- get {return _storage._optionalNested ?? Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested()}
- set {_uniqueStorage()._optionalNested = newValue}
- }
- /// Returns true if `optionalNested` has been explicitly set.
- var hasOptionalNested: Bool {return _storage._optionalNested != nil}
- /// Clears the value of `optionalNested`. Subsequent reads from it will return its default value.
- mutating func clearOptionalNested() {_uniqueStorage()._optionalNested = nil}
- var repeatedNested: [Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested] {
- get {return _storage._repeatedNested}
- set {_uniqueStorage()._repeatedNested = newValue}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- init() {}
- fileprivate var _optionalNested: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested? = nil
- }
- /// This message contains different kind of enums to exercise the different
- /// parsers in table-driven.
- struct Proto2Unittest_EnumParseTester: SwiftProtobuf.ExtensibleMessage, @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalSeqSmall0Lowfield: Proto2Unittest_EnumParseTester.SeqSmall0 {
- get {return _storage._optionalSeqSmall0Lowfield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall0Lowfield = newValue}
- }
- /// Returns true if `optionalSeqSmall0Lowfield` has been explicitly set.
- var hasOptionalSeqSmall0Lowfield: Bool {return _storage._optionalSeqSmall0Lowfield != nil}
- /// Clears the value of `optionalSeqSmall0Lowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall0Lowfield() {_uniqueStorage()._optionalSeqSmall0Lowfield = nil}
- var optionalSeqSmall0Midfield: Proto2Unittest_EnumParseTester.SeqSmall0 {
- get {return _storage._optionalSeqSmall0Midfield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall0Midfield = newValue}
- }
- /// Returns true if `optionalSeqSmall0Midfield` has been explicitly set.
- var hasOptionalSeqSmall0Midfield: Bool {return _storage._optionalSeqSmall0Midfield != nil}
- /// Clears the value of `optionalSeqSmall0Midfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall0Midfield() {_uniqueStorage()._optionalSeqSmall0Midfield = nil}
- var optionalSeqSmall0Hifield: Proto2Unittest_EnumParseTester.SeqSmall0 {
- get {return _storage._optionalSeqSmall0Hifield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall0Hifield = newValue}
- }
- /// Returns true if `optionalSeqSmall0Hifield` has been explicitly set.
- var hasOptionalSeqSmall0Hifield: Bool {return _storage._optionalSeqSmall0Hifield != nil}
- /// Clears the value of `optionalSeqSmall0Hifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall0Hifield() {_uniqueStorage()._optionalSeqSmall0Hifield = nil}
- var repeatedSeqSmall0Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._repeatedSeqSmall0Lowfield}
- set {_uniqueStorage()._repeatedSeqSmall0Lowfield = newValue}
- }
- var repeatedSeqSmall0Midfield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._repeatedSeqSmall0Midfield}
- set {_uniqueStorage()._repeatedSeqSmall0Midfield = newValue}
- }
- var repeatedSeqSmall0Hifield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._repeatedSeqSmall0Hifield}
- set {_uniqueStorage()._repeatedSeqSmall0Hifield = newValue}
- }
- var packedSeqSmall0Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._packedSeqSmall0Lowfield}
- set {_uniqueStorage()._packedSeqSmall0Lowfield = newValue}
- }
- var packedSeqSmall0Midfield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._packedSeqSmall0Midfield}
- set {_uniqueStorage()._packedSeqSmall0Midfield = newValue}
- }
- var packedSeqSmall0Hifield: [Proto2Unittest_EnumParseTester.SeqSmall0] {
- get {return _storage._packedSeqSmall0Hifield}
- set {_uniqueStorage()._packedSeqSmall0Hifield = newValue}
- }
- var optionalSeqSmall1Lowfield: Proto2Unittest_EnumParseTester.SeqSmall1 {
- get {return _storage._optionalSeqSmall1Lowfield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall1Lowfield = newValue}
- }
- /// Returns true if `optionalSeqSmall1Lowfield` has been explicitly set.
- var hasOptionalSeqSmall1Lowfield: Bool {return _storage._optionalSeqSmall1Lowfield != nil}
- /// Clears the value of `optionalSeqSmall1Lowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall1Lowfield() {_uniqueStorage()._optionalSeqSmall1Lowfield = nil}
- var optionalSeqSmall1Midfield: Proto2Unittest_EnumParseTester.SeqSmall1 {
- get {return _storage._optionalSeqSmall1Midfield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall1Midfield = newValue}
- }
- /// Returns true if `optionalSeqSmall1Midfield` has been explicitly set.
- var hasOptionalSeqSmall1Midfield: Bool {return _storage._optionalSeqSmall1Midfield != nil}
- /// Clears the value of `optionalSeqSmall1Midfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall1Midfield() {_uniqueStorage()._optionalSeqSmall1Midfield = nil}
- var optionalSeqSmall1Hifield: Proto2Unittest_EnumParseTester.SeqSmall1 {
- get {return _storage._optionalSeqSmall1Hifield ?? .default}
- set {_uniqueStorage()._optionalSeqSmall1Hifield = newValue}
- }
- /// Returns true if `optionalSeqSmall1Hifield` has been explicitly set.
- var hasOptionalSeqSmall1Hifield: Bool {return _storage._optionalSeqSmall1Hifield != nil}
- /// Clears the value of `optionalSeqSmall1Hifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqSmall1Hifield() {_uniqueStorage()._optionalSeqSmall1Hifield = nil}
- var repeatedSeqSmall1Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._repeatedSeqSmall1Lowfield}
- set {_uniqueStorage()._repeatedSeqSmall1Lowfield = newValue}
- }
- var repeatedSeqSmall1Midfield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._repeatedSeqSmall1Midfield}
- set {_uniqueStorage()._repeatedSeqSmall1Midfield = newValue}
- }
- var repeatedSeqSmall1Hifield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._repeatedSeqSmall1Hifield}
- set {_uniqueStorage()._repeatedSeqSmall1Hifield = newValue}
- }
- var packedSeqSmall1Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._packedSeqSmall1Lowfield}
- set {_uniqueStorage()._packedSeqSmall1Lowfield = newValue}
- }
- var packedSeqSmall1Midfield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._packedSeqSmall1Midfield}
- set {_uniqueStorage()._packedSeqSmall1Midfield = newValue}
- }
- var packedSeqSmall1Hifield: [Proto2Unittest_EnumParseTester.SeqSmall1] {
- get {return _storage._packedSeqSmall1Hifield}
- set {_uniqueStorage()._packedSeqSmall1Hifield = newValue}
- }
- var optionalSeqLargeLowfield: Proto2Unittest_EnumParseTester.SeqLarge {
- get {return _storage._optionalSeqLargeLowfield ?? .default}
- set {_uniqueStorage()._optionalSeqLargeLowfield = newValue}
- }
- /// Returns true if `optionalSeqLargeLowfield` has been explicitly set.
- var hasOptionalSeqLargeLowfield: Bool {return _storage._optionalSeqLargeLowfield != nil}
- /// Clears the value of `optionalSeqLargeLowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqLargeLowfield() {_uniqueStorage()._optionalSeqLargeLowfield = nil}
- var optionalSeqLargeMidfield: Proto2Unittest_EnumParseTester.SeqLarge {
- get {return _storage._optionalSeqLargeMidfield ?? .default}
- set {_uniqueStorage()._optionalSeqLargeMidfield = newValue}
- }
- /// Returns true if `optionalSeqLargeMidfield` has been explicitly set.
- var hasOptionalSeqLargeMidfield: Bool {return _storage._optionalSeqLargeMidfield != nil}
- /// Clears the value of `optionalSeqLargeMidfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqLargeMidfield() {_uniqueStorage()._optionalSeqLargeMidfield = nil}
- var optionalSeqLargeHifield: Proto2Unittest_EnumParseTester.SeqLarge {
- get {return _storage._optionalSeqLargeHifield ?? .default}
- set {_uniqueStorage()._optionalSeqLargeHifield = newValue}
- }
- /// Returns true if `optionalSeqLargeHifield` has been explicitly set.
- var hasOptionalSeqLargeHifield: Bool {return _storage._optionalSeqLargeHifield != nil}
- /// Clears the value of `optionalSeqLargeHifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalSeqLargeHifield() {_uniqueStorage()._optionalSeqLargeHifield = nil}
- var repeatedSeqLargeLowfield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._repeatedSeqLargeLowfield}
- set {_uniqueStorage()._repeatedSeqLargeLowfield = newValue}
- }
- var repeatedSeqLargeMidfield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._repeatedSeqLargeMidfield}
- set {_uniqueStorage()._repeatedSeqLargeMidfield = newValue}
- }
- var repeatedSeqLargeHifield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._repeatedSeqLargeHifield}
- set {_uniqueStorage()._repeatedSeqLargeHifield = newValue}
- }
- var packedSeqLargeLowfield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._packedSeqLargeLowfield}
- set {_uniqueStorage()._packedSeqLargeLowfield = newValue}
- }
- var packedSeqLargeMidfield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._packedSeqLargeMidfield}
- set {_uniqueStorage()._packedSeqLargeMidfield = newValue}
- }
- var packedSeqLargeHifield: [Proto2Unittest_EnumParseTester.SeqLarge] {
- get {return _storage._packedSeqLargeHifield}
- set {_uniqueStorage()._packedSeqLargeHifield = newValue}
- }
- var optionalArbitraryLowfield: Proto2Unittest_EnumParseTester.Arbitrary {
- get {return _storage._optionalArbitraryLowfield ?? .default}
- set {_uniqueStorage()._optionalArbitraryLowfield = newValue}
- }
- /// Returns true if `optionalArbitraryLowfield` has been explicitly set.
- var hasOptionalArbitraryLowfield: Bool {return _storage._optionalArbitraryLowfield != nil}
- /// Clears the value of `optionalArbitraryLowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalArbitraryLowfield() {_uniqueStorage()._optionalArbitraryLowfield = nil}
- var optionalArbitraryMidfield: Proto2Unittest_EnumParseTester.Arbitrary {
- get {return _storage._optionalArbitraryMidfield ?? .default}
- set {_uniqueStorage()._optionalArbitraryMidfield = newValue}
- }
- /// Returns true if `optionalArbitraryMidfield` has been explicitly set.
- var hasOptionalArbitraryMidfield: Bool {return _storage._optionalArbitraryMidfield != nil}
- /// Clears the value of `optionalArbitraryMidfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalArbitraryMidfield() {_uniqueStorage()._optionalArbitraryMidfield = nil}
- var optionalArbitraryHifield: Proto2Unittest_EnumParseTester.Arbitrary {
- get {return _storage._optionalArbitraryHifield ?? .default}
- set {_uniqueStorage()._optionalArbitraryHifield = newValue}
- }
- /// Returns true if `optionalArbitraryHifield` has been explicitly set.
- var hasOptionalArbitraryHifield: Bool {return _storage._optionalArbitraryHifield != nil}
- /// Clears the value of `optionalArbitraryHifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalArbitraryHifield() {_uniqueStorage()._optionalArbitraryHifield = nil}
- var repeatedArbitraryLowfield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._repeatedArbitraryLowfield}
- set {_uniqueStorage()._repeatedArbitraryLowfield = newValue}
- }
- var repeatedArbitraryMidfield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._repeatedArbitraryMidfield}
- set {_uniqueStorage()._repeatedArbitraryMidfield = newValue}
- }
- var repeatedArbitraryHifield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._repeatedArbitraryHifield}
- set {_uniqueStorage()._repeatedArbitraryHifield = newValue}
- }
- var packedArbitraryLowfield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._packedArbitraryLowfield}
- set {_uniqueStorage()._packedArbitraryLowfield = newValue}
- }
- var packedArbitraryMidfield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._packedArbitraryMidfield}
- set {_uniqueStorage()._packedArbitraryMidfield = newValue}
- }
- var packedArbitraryHifield: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return _storage._packedArbitraryHifield}
- set {_uniqueStorage()._packedArbitraryHifield = newValue}
- }
- /// An arbitrary field we can append to to break the runs of repeated fields.
- var otherField: Int32 {
- get {return _storage._otherField ?? 0}
- set {_uniqueStorage()._otherField = newValue}
- }
- /// Returns true if `otherField` has been explicitly set.
- var hasOtherField: Bool {return _storage._otherField != nil}
- /// Clears the value of `otherField`. Subsequent reads from it will return its default value.
- mutating func clearOtherField() {_uniqueStorage()._otherField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum SeqSmall0: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case `default` = 0
- case seqSmall01 = 1
- case seqSmall02 = 2
- init() {
- self = .default
- }
- }
- enum SeqSmall1: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case `default` = 1
- case seqSmall12 = 2
- case seqSmall13 = 3
- init() {
- self = .default
- }
- }
- enum SeqLarge: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case `default` = -1
- case seqLarge0 = 0
- case seqLarge1 = 1
- case seqLarge2 = 2
- case seqLarge3 = 3
- case seqLarge4 = 4
- case seqLarge5 = 5
- case seqLarge6 = 6
- case seqLarge7 = 7
- case seqLarge8 = 8
- case seqLarge9 = 9
- case seqLarge10 = 10
- case seqLarge11 = 11
- case seqLarge12 = 12
- case seqLarge13 = 13
- case seqLarge14 = 14
- case seqLarge15 = 15
- case seqLarge16 = 16
- case seqLarge17 = 17
- case seqLarge18 = 18
- case seqLarge19 = 19
- case seqLarge20 = 20
- case seqLarge21 = 21
- case seqLarge22 = 22
- case seqLarge23 = 23
- case seqLarge24 = 24
- case seqLarge25 = 25
- case seqLarge26 = 26
- case seqLarge27 = 27
- case seqLarge28 = 28
- case seqLarge29 = 29
- case seqLarge30 = 30
- case seqLarge31 = 31
- case seqLarge32 = 32
- case seqLarge33 = 33
- init() {
- self = .default
- }
- }
- enum Arbitrary: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case `default` = -123123
- case arbitrary1 = -123
- case arbitrary2 = 213
- case arbitrary3 = 213213
- case min = -2147483648
- case max = 2147483647
- init() {
- self = .default
- }
- }
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- /// This message contains different kind of bool fields to exercise the different
- /// parsers in table-drived.
- struct Proto2Unittest_BoolParseTester: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalBoolLowfield: Bool {
- get {return _optionalBoolLowfield ?? false}
- set {_optionalBoolLowfield = newValue}
- }
- /// Returns true if `optionalBoolLowfield` has been explicitly set.
- var hasOptionalBoolLowfield: Bool {return self._optionalBoolLowfield != nil}
- /// Clears the value of `optionalBoolLowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBoolLowfield() {self._optionalBoolLowfield = nil}
- var optionalBoolMidfield: Bool {
- get {return _optionalBoolMidfield ?? false}
- set {_optionalBoolMidfield = newValue}
- }
- /// Returns true if `optionalBoolMidfield` has been explicitly set.
- var hasOptionalBoolMidfield: Bool {return self._optionalBoolMidfield != nil}
- /// Clears the value of `optionalBoolMidfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBoolMidfield() {self._optionalBoolMidfield = nil}
- var optionalBoolHifield: Bool {
- get {return _optionalBoolHifield ?? false}
- set {_optionalBoolHifield = newValue}
- }
- /// Returns true if `optionalBoolHifield` has been explicitly set.
- var hasOptionalBoolHifield: Bool {return self._optionalBoolHifield != nil}
- /// Clears the value of `optionalBoolHifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBoolHifield() {self._optionalBoolHifield = nil}
- var repeatedBoolLowfield: [Bool] = []
- var repeatedBoolMidfield: [Bool] = []
- var repeatedBoolHifield: [Bool] = []
- var packedBoolLowfield: [Bool] = []
- var packedBoolMidfield: [Bool] = []
- var packedBoolHifield: [Bool] = []
- /// An arbitrary field we can append to to break the runs of repeated fields.
- var otherField: Int32 {
- get {return _otherField ?? 0}
- set {_otherField = newValue}
- }
- /// Returns true if `otherField` has been explicitly set.
- var hasOtherField: Bool {return self._otherField != nil}
- /// Clears the value of `otherField`. Subsequent reads from it will return its default value.
- mutating func clearOtherField() {self._otherField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalBoolLowfield: Bool? = nil
- fileprivate var _optionalBoolMidfield: Bool? = nil
- fileprivate var _optionalBoolHifield: Bool? = nil
- fileprivate var _otherField: Int32? = nil
- }
- struct Proto2Unittest_Int32ParseTester: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt32Lowfield: Int32 {
- get {return _optionalInt32Lowfield ?? 0}
- set {_optionalInt32Lowfield = newValue}
- }
- /// Returns true if `optionalInt32Lowfield` has been explicitly set.
- var hasOptionalInt32Lowfield: Bool {return self._optionalInt32Lowfield != nil}
- /// Clears the value of `optionalInt32Lowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32Lowfield() {self._optionalInt32Lowfield = nil}
- var optionalInt32Midfield: Int32 {
- get {return _optionalInt32Midfield ?? 0}
- set {_optionalInt32Midfield = newValue}
- }
- /// Returns true if `optionalInt32Midfield` has been explicitly set.
- var hasOptionalInt32Midfield: Bool {return self._optionalInt32Midfield != nil}
- /// Clears the value of `optionalInt32Midfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32Midfield() {self._optionalInt32Midfield = nil}
- var optionalInt32Hifield: Int32 {
- get {return _optionalInt32Hifield ?? 0}
- set {_optionalInt32Hifield = newValue}
- }
- /// Returns true if `optionalInt32Hifield` has been explicitly set.
- var hasOptionalInt32Hifield: Bool {return self._optionalInt32Hifield != nil}
- /// Clears the value of `optionalInt32Hifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32Hifield() {self._optionalInt32Hifield = nil}
- var repeatedInt32Lowfield: [Int32] = []
- var repeatedInt32Midfield: [Int32] = []
- var repeatedInt32Hifield: [Int32] = []
- var packedInt32Lowfield: [Int32] = []
- var packedInt32Midfield: [Int32] = []
- var packedInt32Hifield: [Int32] = []
- /// An arbitrary field we can append to to break the runs of repeated fields.
- var otherField: Int32 {
- get {return _otherField ?? 0}
- set {_otherField = newValue}
- }
- /// Returns true if `otherField` has been explicitly set.
- var hasOtherField: Bool {return self._otherField != nil}
- /// Clears the value of `otherField`. Subsequent reads from it will return its default value.
- mutating func clearOtherField() {self._otherField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalInt32Lowfield: Int32? = nil
- fileprivate var _optionalInt32Midfield: Int32? = nil
- fileprivate var _optionalInt32Hifield: Int32? = nil
- fileprivate var _otherField: Int32? = nil
- }
- struct Proto2Unittest_Int64ParseTester: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt64Lowfield: Int64 {
- get {return _optionalInt64Lowfield ?? 0}
- set {_optionalInt64Lowfield = newValue}
- }
- /// Returns true if `optionalInt64Lowfield` has been explicitly set.
- var hasOptionalInt64Lowfield: Bool {return self._optionalInt64Lowfield != nil}
- /// Clears the value of `optionalInt64Lowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt64Lowfield() {self._optionalInt64Lowfield = nil}
- var optionalInt64Midfield: Int64 {
- get {return _optionalInt64Midfield ?? 0}
- set {_optionalInt64Midfield = newValue}
- }
- /// Returns true if `optionalInt64Midfield` has been explicitly set.
- var hasOptionalInt64Midfield: Bool {return self._optionalInt64Midfield != nil}
- /// Clears the value of `optionalInt64Midfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt64Midfield() {self._optionalInt64Midfield = nil}
- var optionalInt64Hifield: Int64 {
- get {return _optionalInt64Hifield ?? 0}
- set {_optionalInt64Hifield = newValue}
- }
- /// Returns true if `optionalInt64Hifield` has been explicitly set.
- var hasOptionalInt64Hifield: Bool {return self._optionalInt64Hifield != nil}
- /// Clears the value of `optionalInt64Hifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt64Hifield() {self._optionalInt64Hifield = nil}
- var repeatedInt64Lowfield: [Int64] = []
- var repeatedInt64Midfield: [Int64] = []
- var repeatedInt64Hifield: [Int64] = []
- var packedInt64Lowfield: [Int64] = []
- var packedInt64Midfield: [Int64] = []
- var packedInt64Hifield: [Int64] = []
- /// An arbitrary field we can append to to break the runs of repeated fields.
- var otherField: Int32 {
- get {return _otherField ?? 0}
- set {_otherField = newValue}
- }
- /// Returns true if `otherField` has been explicitly set.
- var hasOtherField: Bool {return self._otherField != nil}
- /// Clears the value of `otherField`. Subsequent reads from it will return its default value.
- mutating func clearOtherField() {self._otherField = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalInt64Lowfield: Int64? = nil
- fileprivate var _optionalInt64Midfield: Int64? = nil
- fileprivate var _optionalInt64Hifield: Int64? = nil
- fileprivate var _otherField: Int32? = nil
- }
- struct Proto2Unittest_InlinedStringIdxRegressionProto: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// We mix data to make sure aux ids and inlined string idx do not match.
- /// aux_idx == inlined_string_idx == 1
- var str1: String {
- get {return _storage._str1 ?? String()}
- set {_uniqueStorage()._str1 = newValue}
- }
- /// Returns true if `str1` has been explicitly set.
- var hasStr1: Bool {return _storage._str1 != nil}
- /// Clears the value of `str1`. Subsequent reads from it will return its default value.
- mutating func clearStr1() {_uniqueStorage()._str1 = nil}
- /// aux_idx == 2
- var sub: Proto2Unittest_InlinedStringIdxRegressionProto {
- get {return _storage._sub ?? Proto2Unittest_InlinedStringIdxRegressionProto()}
- set {_uniqueStorage()._sub = newValue}
- }
- /// Returns true if `sub` has been explicitly set.
- var hasSub: Bool {return _storage._sub != nil}
- /// Clears the value of `sub`. Subsequent reads from it will return its default value.
- mutating func clearSub() {_uniqueStorage()._sub = nil}
- /// aux_idx == 3, inlined_string_idx == 2
- var str2: String {
- get {return _storage._str2 ?? String()}
- set {_uniqueStorage()._str2 = newValue}
- }
- /// Returns true if `str2` has been explicitly set.
- var hasStr2: Bool {return _storage._str2 != nil}
- /// Clears the value of `str2`. Subsequent reads from it will return its default value.
- mutating func clearStr2() {_uniqueStorage()._str2 = nil}
- /// aux_idx == 4, inlined_string_idx == 3
- var str3: Data {
- get {return _storage._str3 ?? Data()}
- set {_uniqueStorage()._str3 = newValue}
- }
- /// Returns true if `str3` has been explicitly set.
- var hasStr3: Bool {return _storage._str3 != nil}
- /// Clears the value of `str3`. Subsequent reads from it will return its default value.
- mutating func clearStr3() {_uniqueStorage()._str3 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_StringParseTester: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalStringLowfield: String {
- get {return _optionalStringLowfield ?? String()}
- set {_optionalStringLowfield = newValue}
- }
- /// Returns true if `optionalStringLowfield` has been explicitly set.
- var hasOptionalStringLowfield: Bool {return self._optionalStringLowfield != nil}
- /// Clears the value of `optionalStringLowfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalStringLowfield() {self._optionalStringLowfield = nil}
- var optionalStringMidfield: String {
- get {return _optionalStringMidfield ?? String()}
- set {_optionalStringMidfield = newValue}
- }
- /// Returns true if `optionalStringMidfield` has been explicitly set.
- var hasOptionalStringMidfield: Bool {return self._optionalStringMidfield != nil}
- /// Clears the value of `optionalStringMidfield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalStringMidfield() {self._optionalStringMidfield = nil}
- var optionalStringHifield: String {
- get {return _optionalStringHifield ?? String()}
- set {_optionalStringHifield = newValue}
- }
- /// Returns true if `optionalStringHifield` has been explicitly set.
- var hasOptionalStringHifield: Bool {return self._optionalStringHifield != nil}
- /// Clears the value of `optionalStringHifield`. Subsequent reads from it will return its default value.
- mutating func clearOptionalStringHifield() {self._optionalStringHifield = nil}
- var repeatedStringLowfield: [String] = []
- var repeatedStringMidfield: [String] = []
- var repeatedStringHifield: [String] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalStringLowfield: String? = nil
- fileprivate var _optionalStringMidfield: String? = nil
- fileprivate var _optionalStringHifield: String? = nil
- }
- struct Proto2Unittest_BadFieldNames: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalInt32: Int32 {
- get {return _optionalInt32 ?? 0}
- set {_optionalInt32 = newValue}
- }
- /// Returns true if `optionalInt32` has been explicitly set.
- var hasOptionalInt32: Bool {return self._optionalInt32 != nil}
- /// Clears the value of `optionalInt32`. Subsequent reads from it will return its default value.
- mutating func clearOptionalInt32() {self._optionalInt32 = nil}
- var `for`: Int32 {
- get {return _for ?? 0}
- set {_for = newValue}
- }
- /// Returns true if ``for`` has been explicitly set.
- var hasFor: Bool {return self._for != nil}
- /// Clears the value of ``for``. Subsequent reads from it will return its default value.
- mutating func clearFor() {self._for = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalInt32: Int32? = nil
- fileprivate var _for: Int32? = nil
- }
- struct Proto2Unittest_TestNestedMessageRedaction: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalUnredactedNestedString: String {
- get {return _optionalUnredactedNestedString ?? String()}
- set {_optionalUnredactedNestedString = newValue}
- }
- /// Returns true if `optionalUnredactedNestedString` has been explicitly set.
- var hasOptionalUnredactedNestedString: Bool {return self._optionalUnredactedNestedString != nil}
- /// Clears the value of `optionalUnredactedNestedString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUnredactedNestedString() {self._optionalUnredactedNestedString = nil}
- var optionalRedactedNestedString: String {
- get {return _optionalRedactedNestedString ?? String()}
- set {_optionalRedactedNestedString = newValue}
- }
- /// Returns true if `optionalRedactedNestedString` has been explicitly set.
- var hasOptionalRedactedNestedString: Bool {return self._optionalRedactedNestedString != nil}
- /// Clears the value of `optionalRedactedNestedString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalRedactedNestedString() {self._optionalRedactedNestedString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalUnredactedNestedString: String? = nil
- fileprivate var _optionalRedactedNestedString: String? = nil
- }
- struct Proto2Unittest_RedactedFields: SwiftProtobuf.ExtensibleMessage, Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalRedactedString: String {
- get {return _optionalRedactedString ?? String()}
- set {_optionalRedactedString = newValue}
- }
- /// Returns true if `optionalRedactedString` has been explicitly set.
- var hasOptionalRedactedString: Bool {return self._optionalRedactedString != nil}
- /// Clears the value of `optionalRedactedString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalRedactedString() {self._optionalRedactedString = nil}
- var optionalUnredactedString: String {
- get {return _optionalUnredactedString ?? String()}
- set {_optionalUnredactedString = newValue}
- }
- /// Returns true if `optionalUnredactedString` has been explicitly set.
- var hasOptionalUnredactedString: Bool {return self._optionalUnredactedString != nil}
- /// Clears the value of `optionalUnredactedString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUnredactedString() {self._optionalUnredactedString = nil}
- var repeatedRedactedString: [String] = []
- var repeatedUnredactedString: [String] = []
- var optionalRedactedMessage: Proto2Unittest_TestNestedMessageRedaction {
- get {return _optionalRedactedMessage ?? Proto2Unittest_TestNestedMessageRedaction()}
- set {_optionalRedactedMessage = newValue}
- }
- /// Returns true if `optionalRedactedMessage` has been explicitly set.
- var hasOptionalRedactedMessage: Bool {return self._optionalRedactedMessage != nil}
- /// Clears the value of `optionalRedactedMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalRedactedMessage() {self._optionalRedactedMessage = nil}
- var optionalUnredactedMessage: Proto2Unittest_TestNestedMessageRedaction {
- get {return _optionalUnredactedMessage ?? Proto2Unittest_TestNestedMessageRedaction()}
- set {_optionalUnredactedMessage = newValue}
- }
- /// Returns true if `optionalUnredactedMessage` has been explicitly set.
- var hasOptionalUnredactedMessage: Bool {return self._optionalUnredactedMessage != nil}
- /// Clears the value of `optionalUnredactedMessage`. Subsequent reads from it will return its default value.
- mutating func clearOptionalUnredactedMessage() {self._optionalUnredactedMessage = nil}
- var repeatedRedactedMessage: [Proto2Unittest_TestNestedMessageRedaction] = []
- var repeatedUnredactedMessage: [Proto2Unittest_TestNestedMessageRedaction] = []
- var mapRedactedString: Dictionary<String,String> = [:]
- var mapUnredactedString: Dictionary<String,String> = [:]
- var optionalRedactedFalseString: String {
- get {return _optionalRedactedFalseString ?? String()}
- set {_optionalRedactedFalseString = newValue}
- }
- /// Returns true if `optionalRedactedFalseString` has been explicitly set.
- var hasOptionalRedactedFalseString: Bool {return self._optionalRedactedFalseString != nil}
- /// Clears the value of `optionalRedactedFalseString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalRedactedFalseString() {self._optionalRedactedFalseString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
- fileprivate var _optionalRedactedString: String? = nil
- fileprivate var _optionalUnredactedString: String? = nil
- fileprivate var _optionalRedactedMessage: Proto2Unittest_TestNestedMessageRedaction? = nil
- fileprivate var _optionalUnredactedMessage: Proto2Unittest_TestNestedMessageRedaction? = nil
- fileprivate var _optionalRedactedFalseString: String? = nil
- }
- struct Proto2Unittest_TestString: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalString: String {
- get {return _optionalString ?? String()}
- set {_optionalString = newValue}
- }
- /// Returns true if `optionalString` has been explicitly set.
- var hasOptionalString: Bool {return self._optionalString != nil}
- /// Clears the value of `optionalString`. Subsequent reads from it will return its default value.
- mutating func clearOptionalString() {self._optionalString = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalString: String? = nil
- }
- struct Proto2Unittest_TestCord: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var optionalBytesCord: Data {
- get {return _optionalBytesCord ?? Data()}
- set {_optionalBytesCord = newValue}
- }
- /// Returns true if `optionalBytesCord` has been explicitly set.
- var hasOptionalBytesCord: Bool {return self._optionalBytesCord != nil}
- /// Clears the value of `optionalBytesCord`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBytesCord() {self._optionalBytesCord = nil}
- var optionalBytesCordDefault: Data {
- get {return _optionalBytesCordDefault ?? Data([104, 101, 108, 108, 111])}
- set {_optionalBytesCordDefault = newValue}
- }
- /// Returns true if `optionalBytesCordDefault` has been explicitly set.
- var hasOptionalBytesCordDefault: Bool {return self._optionalBytesCordDefault != nil}
- /// Clears the value of `optionalBytesCordDefault`. Subsequent reads from it will return its default value.
- mutating func clearOptionalBytesCordDefault() {self._optionalBytesCordDefault = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _optionalBytesCord: Data? = nil
- fileprivate var _optionalBytesCordDefault: Data? = nil
- }
- struct Proto2Unittest_TestPackedEnumSmallRange: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var vals: [Proto2Unittest_TestPackedEnumSmallRange.NestedEnum] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum NestedEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case unspecified = 0
- case foo = 1
- case bar = 2
- case baz = 3
- init() {
- self = .unspecified
- }
- }
- init() {}
- }
- struct Proto2Unittest_EnumsForBenchmark: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum Flat: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case a0 = 0
- case a1 = 1
- case a2 = 2
- case a3 = 3
- case a4 = 4
- case a5 = 5
- case a6 = 6
- case a7 = 7
- case a8 = 8
- case a9 = 9
- case a10 = 10
- case a11 = 11
- case a12 = 12
- case a13 = 13
- case a14 = 14
- case a15 = 15
- init() {
- self = .a0
- }
- }
- /// Has a few holes, bitmap can be used.
- enum AlmostFlat: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case b0 = 0
- case b1 = 1
- case b2 = 2
- case b3 = 3
- case b5 = 5
- case b6 = 6
- case b7 = 7
- case b8 = 8
- case b9 = 9
- case b11 = 11
- case b12 = 12
- case b13 = 13
- case b14 = 14
- case b15 = 15
- case b17 = 17
- case b19 = 19
- init() {
- self = .b0
- }
- }
- enum Sparse: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
- case c536 = 536
- case c8387 = 8387
- case c9673 = 9673
- case c10285 = 10285
- case c13318 = 13318
- case c15963 = 15963
- case c16439 = 16439
- case c18197 = 18197
- case c19430 = 19430
- case c20361 = 20361
- case c20706 = 20706
- case c21050 = 21050
- case c21906 = 21906
- case c27265 = 27265
- case c30109 = 30109
- case c31670 = 31670
- init() {
- self = .c536
- }
- }
- init() {}
- }
- struct Proto2Unittest_TestMessageWithManyRepeatedPtrFields: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var repeatedString1: [String] {
- get {return _storage._repeatedString1}
- set {_uniqueStorage()._repeatedString1 = newValue}
- }
- var repeatedString2: [String] {
- get {return _storage._repeatedString2}
- set {_uniqueStorage()._repeatedString2 = newValue}
- }
- var repeatedString3: [String] {
- get {return _storage._repeatedString3}
- set {_uniqueStorage()._repeatedString3 = newValue}
- }
- var repeatedString4: [String] {
- get {return _storage._repeatedString4}
- set {_uniqueStorage()._repeatedString4 = newValue}
- }
- var repeatedString5: [String] {
- get {return _storage._repeatedString5}
- set {_uniqueStorage()._repeatedString5 = newValue}
- }
- var repeatedString6: [String] {
- get {return _storage._repeatedString6}
- set {_uniqueStorage()._repeatedString6 = newValue}
- }
- var repeatedString7: [String] {
- get {return _storage._repeatedString7}
- set {_uniqueStorage()._repeatedString7 = newValue}
- }
- var repeatedString8: [String] {
- get {return _storage._repeatedString8}
- set {_uniqueStorage()._repeatedString8 = newValue}
- }
- var repeatedString9: [String] {
- get {return _storage._repeatedString9}
- set {_uniqueStorage()._repeatedString9 = newValue}
- }
- var repeatedString10: [String] {
- get {return _storage._repeatedString10}
- set {_uniqueStorage()._repeatedString10 = newValue}
- }
- var repeatedString11: [String] {
- get {return _storage._repeatedString11}
- set {_uniqueStorage()._repeatedString11 = newValue}
- }
- var repeatedString12: [String] {
- get {return _storage._repeatedString12}
- set {_uniqueStorage()._repeatedString12 = newValue}
- }
- var repeatedString13: [String] {
- get {return _storage._repeatedString13}
- set {_uniqueStorage()._repeatedString13 = newValue}
- }
- var repeatedString14: [String] {
- get {return _storage._repeatedString14}
- set {_uniqueStorage()._repeatedString14 = newValue}
- }
- var repeatedString15: [String] {
- get {return _storage._repeatedString15}
- set {_uniqueStorage()._repeatedString15 = newValue}
- }
- var repeatedString16: [String] {
- get {return _storage._repeatedString16}
- set {_uniqueStorage()._repeatedString16 = newValue}
- }
- var repeatedString17: [String] {
- get {return _storage._repeatedString17}
- set {_uniqueStorage()._repeatedString17 = newValue}
- }
- var repeatedString18: [String] {
- get {return _storage._repeatedString18}
- set {_uniqueStorage()._repeatedString18 = newValue}
- }
- var repeatedString19: [String] {
- get {return _storage._repeatedString19}
- set {_uniqueStorage()._repeatedString19 = newValue}
- }
- var repeatedString20: [String] {
- get {return _storage._repeatedString20}
- set {_uniqueStorage()._repeatedString20 = newValue}
- }
- var repeatedString21: [String] {
- get {return _storage._repeatedString21}
- set {_uniqueStorage()._repeatedString21 = newValue}
- }
- var repeatedString22: [String] {
- get {return _storage._repeatedString22}
- set {_uniqueStorage()._repeatedString22 = newValue}
- }
- var repeatedString23: [String] {
- get {return _storage._repeatedString23}
- set {_uniqueStorage()._repeatedString23 = newValue}
- }
- var repeatedString24: [String] {
- get {return _storage._repeatedString24}
- set {_uniqueStorage()._repeatedString24 = newValue}
- }
- var repeatedString25: [String] {
- get {return _storage._repeatedString25}
- set {_uniqueStorage()._repeatedString25 = newValue}
- }
- var repeatedString26: [String] {
- get {return _storage._repeatedString26}
- set {_uniqueStorage()._repeatedString26 = newValue}
- }
- var repeatedString27: [String] {
- get {return _storage._repeatedString27}
- set {_uniqueStorage()._repeatedString27 = newValue}
- }
- var repeatedString28: [String] {
- get {return _storage._repeatedString28}
- set {_uniqueStorage()._repeatedString28 = newValue}
- }
- var repeatedString29: [String] {
- get {return _storage._repeatedString29}
- set {_uniqueStorage()._repeatedString29 = newValue}
- }
- var repeatedString30: [String] {
- get {return _storage._repeatedString30}
- set {_uniqueStorage()._repeatedString30 = newValue}
- }
- var repeatedString31: [String] {
- get {return _storage._repeatedString31}
- set {_uniqueStorage()._repeatedString31 = newValue}
- }
- var repeatedString32: [String] {
- get {return _storage._repeatedString32}
- set {_uniqueStorage()._repeatedString32 = newValue}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_MessageCreatorZeroInit: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var i: Int32 {
- get {return _storage._i ?? 0}
- set {_uniqueStorage()._i = newValue}
- }
- /// Returns true if `i` has been explicitly set.
- var hasI: Bool {return _storage._i != nil}
- /// Clears the value of `i`. Subsequent reads from it will return its default value.
- mutating func clearI() {_uniqueStorage()._i = nil}
- var d: Double {
- get {return _storage._d ?? 0}
- set {_uniqueStorage()._d = newValue}
- }
- /// Returns true if `d` has been explicitly set.
- var hasD: Bool {return _storage._d != nil}
- /// Clears the value of `d`. Subsequent reads from it will return its default value.
- mutating func clearD() {_uniqueStorage()._d = nil}
- var m: Proto2Unittest_MessageCreatorZeroInit {
- get {return _storage._m ?? Proto2Unittest_MessageCreatorZeroInit()}
- set {_uniqueStorage()._m = newValue}
- }
- /// Returns true if `m` has been explicitly set.
- var hasM: Bool {return _storage._m != nil}
- /// Clears the value of `m`. Subsequent reads from it will return its default value.
- mutating func clearM() {_uniqueStorage()._m = nil}
- var one: OneOf_One? {
- get {return _storage._one}
- set {_uniqueStorage()._one = newValue}
- }
- var os: String {
- get {
- if case .os(let v)? = _storage._one {return v}
- return String()
- }
- set {_uniqueStorage()._one = .os(newValue)}
- }
- var oc: String {
- get {
- if case .oc(let v)? = _storage._one {return v}
- return String()
- }
- set {_uniqueStorage()._one = .oc(newValue)}
- }
- var of: UInt64 {
- get {
- if case .of(let v)? = _storage._one {return v}
- return 0
- }
- set {_uniqueStorage()._one = .of(newValue)}
- }
- var ol: Proto2Unittest_MessageCreatorZeroInit {
- get {
- if case .ol(let v)? = _storage._one {return v}
- return Proto2Unittest_MessageCreatorZeroInit()
- }
- set {_uniqueStorage()._one = .ol(newValue)}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- enum OneOf_One: Equatable, Sendable {
- case os(String)
- case oc(String)
- case of(UInt64)
- case ol(Proto2Unittest_MessageCreatorZeroInit)
- }
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_MessageCreatorMemcpy: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var s: String {
- get {return _storage._s ?? String()}
- set {_uniqueStorage()._s = newValue}
- }
- /// Returns true if `s` has been explicitly set.
- var hasS: Bool {return _storage._s != nil}
- /// Clears the value of `s`. Subsequent reads from it will return its default value.
- mutating func clearS() {_uniqueStorage()._s = nil}
- var i: [Int32] {
- get {return _storage._i}
- set {_uniqueStorage()._i = newValue}
- }
- var m: Proto2Unittest_MessageCreatorMemcpy {
- get {return _storage._m ?? Proto2Unittest_MessageCreatorMemcpy()}
- set {_uniqueStorage()._m = newValue}
- }
- /// Returns true if `m` has been explicitly set.
- var hasM: Bool {return _storage._m != nil}
- /// Clears the value of `m`. Subsequent reads from it will return its default value.
- mutating func clearM() {_uniqueStorage()._m = nil}
- var m2: Dictionary<Int32,Int32> {
- get {return _storage._m2}
- set {_uniqueStorage()._m2 = newValue}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- struct Proto2Unittest_MessageCreatorFunc: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// This one is ArenaDtorNeeds::kRequired so we must run the constructor.
- var c: String {
- get {return _c ?? String()}
- set {_c = newValue}
- }
- /// Returns true if `c` has been explicitly set.
- var hasC: Bool {return self._c != nil}
- /// Clears the value of `c`. Subsequent reads from it will return its default value.
- mutating func clearC() {self._c = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _c: String? = nil
- }
- struct Proto2Unittest_FastParseTableCompression: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var importantField1: Int32 {
- get {return _importantField1 ?? 0}
- set {_importantField1 = newValue}
- }
- /// Returns true if `importantField1` has been explicitly set.
- var hasImportantField1: Bool {return self._importantField1 != nil}
- /// Clears the value of `importantField1`. Subsequent reads from it will return its default value.
- mutating func clearImportantField1() {self._importantField1 = nil}
- var importantField2: Int32 {
- get {return _importantField2 ?? 0}
- set {_importantField2 = newValue}
- }
- /// Returns true if `importantField2` has been explicitly set.
- var hasImportantField2: Bool {return self._importantField2 != nil}
- /// Clears the value of `importantField2`. Subsequent reads from it will return its default value.
- mutating func clearImportantField2() {self._importantField2 = nil}
- var unimportantField3: Int32 {
- get {return _unimportantField3 ?? 0}
- set {_unimportantField3 = newValue}
- }
- /// Returns true if `unimportantField3` has been explicitly set.
- var hasUnimportantField3: Bool {return self._unimportantField3 != nil}
- /// Clears the value of `unimportantField3`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField3() {self._unimportantField3 = nil}
- var unimportantField4: Int32 {
- get {return _unimportantField4 ?? 0}
- set {_unimportantField4 = newValue}
- }
- /// Returns true if `unimportantField4` has been explicitly set.
- var hasUnimportantField4: Bool {return self._unimportantField4 != nil}
- /// Clears the value of `unimportantField4`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField4() {self._unimportantField4 = nil}
- var unimportantField5: Int32 {
- get {return _unimportantField5 ?? 0}
- set {_unimportantField5 = newValue}
- }
- /// Returns true if `unimportantField5` has been explicitly set.
- var hasUnimportantField5: Bool {return self._unimportantField5 != nil}
- /// Clears the value of `unimportantField5`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField5() {self._unimportantField5 = nil}
- var unimportantField9: Int32 {
- get {return _unimportantField9 ?? 0}
- set {_unimportantField9 = newValue}
- }
- /// Returns true if `unimportantField9` has been explicitly set.
- var hasUnimportantField9: Bool {return self._unimportantField9 != nil}
- /// Clears the value of `unimportantField9`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField9() {self._unimportantField9 = nil}
- var importantField11: Int32 {
- get {return _importantField11 ?? 0}
- set {_importantField11 = newValue}
- }
- /// Returns true if `importantField11` has been explicitly set.
- var hasImportantField11: Bool {return self._importantField11 != nil}
- /// Clears the value of `importantField11`. Subsequent reads from it will return its default value.
- mutating func clearImportantField11() {self._importantField11 = nil}
- var unimportantField12: Int32 {
- get {return _unimportantField12 ?? 0}
- set {_unimportantField12 = newValue}
- }
- /// Returns true if `unimportantField12` has been explicitly set.
- var hasUnimportantField12: Bool {return self._unimportantField12 != nil}
- /// Clears the value of `unimportantField12`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField12() {self._unimportantField12 = nil}
- var importantField14: Int32 {
- get {return _importantField14 ?? 0}
- set {_importantField14 = newValue}
- }
- /// Returns true if `importantField14` has been explicitly set.
- var hasImportantField14: Bool {return self._importantField14 != nil}
- /// Clears the value of `importantField14`. Subsequent reads from it will return its default value.
- mutating func clearImportantField14() {self._importantField14 = nil}
- var unimportantField15: Int32 {
- get {return _unimportantField15 ?? 0}
- set {_unimportantField15 = newValue}
- }
- /// Returns true if `unimportantField15` has been explicitly set.
- var hasUnimportantField15: Bool {return self._unimportantField15 != nil}
- /// Clears the value of `unimportantField15`. Subsequent reads from it will return its default value.
- mutating func clearUnimportantField15() {self._unimportantField15 = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _importantField1: Int32? = nil
- fileprivate var _importantField2: Int32? = nil
- fileprivate var _unimportantField3: Int32? = nil
- fileprivate var _unimportantField4: Int32? = nil
- fileprivate var _unimportantField5: Int32? = nil
- fileprivate var _unimportantField9: Int32? = nil
- fileprivate var _importantField11: Int32? = nil
- fileprivate var _unimportantField12: Int32? = nil
- fileprivate var _importantField14: Int32? = nil
- fileprivate var _unimportantField15: Int32? = nil
- }
- struct Proto2Unittest_TestMessageForMove_Small: Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a: Int32 {
- get {return _a ?? 0}
- set {_a = newValue}
- }
- /// Returns true if `a` has been explicitly set.
- var hasA: Bool {return self._a != nil}
- /// Clears the value of `a`. Subsequent reads from it will return its default value.
- mutating func clearA() {self._a = nil}
- var b: Int32 {
- get {return _b ?? 0}
- set {_b = newValue}
- }
- /// Returns true if `b` has been explicitly set.
- var hasB: Bool {return self._b != nil}
- /// Clears the value of `b`. Subsequent reads from it will return its default value.
- mutating func clearB() {self._b = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _a: Int32? = nil
- fileprivate var _b: Int32? = nil
- }
- struct Proto2Unittest_TestMessageForMove_Large: @unchecked Sendable {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var a1: Int32 {
- get {return _storage._a1 ?? 0}
- set {_uniqueStorage()._a1 = newValue}
- }
- /// Returns true if `a1` has been explicitly set.
- var hasA1: Bool {return _storage._a1 != nil}
- /// Clears the value of `a1`. Subsequent reads from it will return its default value.
- mutating func clearA1() {_uniqueStorage()._a1 = nil}
- var a2: Int32 {
- get {return _storage._a2 ?? 0}
- set {_uniqueStorage()._a2 = newValue}
- }
- /// Returns true if `a2` has been explicitly set.
- var hasA2: Bool {return _storage._a2 != nil}
- /// Clears the value of `a2`. Subsequent reads from it will return its default value.
- mutating func clearA2() {_uniqueStorage()._a2 = nil}
- var a3: Int32 {
- get {return _storage._a3 ?? 0}
- set {_uniqueStorage()._a3 = newValue}
- }
- /// Returns true if `a3` has been explicitly set.
- var hasA3: Bool {return _storage._a3 != nil}
- /// Clears the value of `a3`. Subsequent reads from it will return its default value.
- mutating func clearA3() {_uniqueStorage()._a3 = nil}
- var a4: Int32 {
- get {return _storage._a4 ?? 0}
- set {_uniqueStorage()._a4 = newValue}
- }
- /// Returns true if `a4` has been explicitly set.
- var hasA4: Bool {return _storage._a4 != nil}
- /// Clears the value of `a4`. Subsequent reads from it will return its default value.
- mutating func clearA4() {_uniqueStorage()._a4 = nil}
- var a5: Int32 {
- get {return _storage._a5 ?? 0}
- set {_uniqueStorage()._a5 = newValue}
- }
- /// Returns true if `a5` has been explicitly set.
- var hasA5: Bool {return _storage._a5 != nil}
- /// Clears the value of `a5`. Subsequent reads from it will return its default value.
- mutating func clearA5() {_uniqueStorage()._a5 = nil}
- var a6: Int32 {
- get {return _storage._a6 ?? 0}
- set {_uniqueStorage()._a6 = newValue}
- }
- /// Returns true if `a6` has been explicitly set.
- var hasA6: Bool {return _storage._a6 != nil}
- /// Clears the value of `a6`. Subsequent reads from it will return its default value.
- mutating func clearA6() {_uniqueStorage()._a6 = nil}
- var a7: Int32 {
- get {return _storage._a7 ?? 0}
- set {_uniqueStorage()._a7 = newValue}
- }
- /// Returns true if `a7` has been explicitly set.
- var hasA7: Bool {return _storage._a7 != nil}
- /// Clears the value of `a7`. Subsequent reads from it will return its default value.
- mutating func clearA7() {_uniqueStorage()._a7 = nil}
- var a8: Int32 {
- get {return _storage._a8 ?? 0}
- set {_uniqueStorage()._a8 = newValue}
- }
- /// Returns true if `a8` has been explicitly set.
- var hasA8: Bool {return _storage._a8 != nil}
- /// Clears the value of `a8`. Subsequent reads from it will return its default value.
- mutating func clearA8() {_uniqueStorage()._a8 = nil}
- var a9: Int32 {
- get {return _storage._a9 ?? 0}
- set {_uniqueStorage()._a9 = newValue}
- }
- /// Returns true if `a9` has been explicitly set.
- var hasA9: Bool {return _storage._a9 != nil}
- /// Clears the value of `a9`. Subsequent reads from it will return its default value.
- mutating func clearA9() {_uniqueStorage()._a9 = nil}
- var a11: [Int32] {
- get {return _storage._a11}
- set {_uniqueStorage()._a11 = newValue}
- }
- var a12: [Int32] {
- get {return _storage._a12}
- set {_uniqueStorage()._a12 = newValue}
- }
- var a13: [Int32] {
- get {return _storage._a13}
- set {_uniqueStorage()._a13 = newValue}
- }
- var a14: [Int32] {
- get {return _storage._a14}
- set {_uniqueStorage()._a14 = newValue}
- }
- var a15: [Int32] {
- get {return _storage._a15}
- set {_uniqueStorage()._a15 = newValue}
- }
- var a16: [Int32] {
- get {return _storage._a16}
- set {_uniqueStorage()._a16 = newValue}
- }
- var a17: [Int32] {
- get {return _storage._a17}
- set {_uniqueStorage()._a17 = newValue}
- }
- var a18: [Int32] {
- get {return _storage._a18}
- set {_uniqueStorage()._a18 = newValue}
- }
- var a19: [Int32] {
- get {return _storage._a19}
- set {_uniqueStorage()._a19 = newValue}
- }
- var s101: String {
- get {return _storage._s101 ?? String()}
- set {_uniqueStorage()._s101 = newValue}
- }
- /// Returns true if `s101` has been explicitly set.
- var hasS101: Bool {return _storage._s101 != nil}
- /// Clears the value of `s101`. Subsequent reads from it will return its default value.
- mutating func clearS101() {_uniqueStorage()._s101 = nil}
- var s102: String {
- get {return _storage._s102 ?? String()}
- set {_uniqueStorage()._s102 = newValue}
- }
- /// Returns true if `s102` has been explicitly set.
- var hasS102: Bool {return _storage._s102 != nil}
- /// Clears the value of `s102`. Subsequent reads from it will return its default value.
- mutating func clearS102() {_uniqueStorage()._s102 = nil}
- var s103: String {
- get {return _storage._s103 ?? String()}
- set {_uniqueStorage()._s103 = newValue}
- }
- /// Returns true if `s103` has been explicitly set.
- var hasS103: Bool {return _storage._s103 != nil}
- /// Clears the value of `s103`. Subsequent reads from it will return its default value.
- mutating func clearS103() {_uniqueStorage()._s103 = nil}
- var s104: String {
- get {return _storage._s104 ?? String()}
- set {_uniqueStorage()._s104 = newValue}
- }
- /// Returns true if `s104` has been explicitly set.
- var hasS104: Bool {return _storage._s104 != nil}
- /// Clears the value of `s104`. Subsequent reads from it will return its default value.
- mutating func clearS104() {_uniqueStorage()._s104 = nil}
- var s105: String {
- get {return _storage._s105 ?? String()}
- set {_uniqueStorage()._s105 = newValue}
- }
- /// Returns true if `s105` has been explicitly set.
- var hasS105: Bool {return _storage._s105 != nil}
- /// Clears the value of `s105`. Subsequent reads from it will return its default value.
- mutating func clearS105() {_uniqueStorage()._s105 = nil}
- var s106: String {
- get {return _storage._s106 ?? String()}
- set {_uniqueStorage()._s106 = newValue}
- }
- /// Returns true if `s106` has been explicitly set.
- var hasS106: Bool {return _storage._s106 != nil}
- /// Clears the value of `s106`. Subsequent reads from it will return its default value.
- mutating func clearS106() {_uniqueStorage()._s106 = nil}
- var s107: String {
- get {return _storage._s107 ?? String()}
- set {_uniqueStorage()._s107 = newValue}
- }
- /// Returns true if `s107` has been explicitly set.
- var hasS107: Bool {return _storage._s107 != nil}
- /// Clears the value of `s107`. Subsequent reads from it will return its default value.
- mutating func clearS107() {_uniqueStorage()._s107 = nil}
- var s108: String {
- get {return _storage._s108 ?? String()}
- set {_uniqueStorage()._s108 = newValue}
- }
- /// Returns true if `s108` has been explicitly set.
- var hasS108: Bool {return _storage._s108 != nil}
- /// Clears the value of `s108`. Subsequent reads from it will return its default value.
- mutating func clearS108() {_uniqueStorage()._s108 = nil}
- var s109: String {
- get {return _storage._s109 ?? String()}
- set {_uniqueStorage()._s109 = newValue}
- }
- /// Returns true if `s109` has been explicitly set.
- var hasS109: Bool {return _storage._s109 != nil}
- /// Clears the value of `s109`. Subsequent reads from it will return its default value.
- mutating func clearS109() {_uniqueStorage()._s109 = nil}
- var s111: [String] {
- get {return _storage._s111}
- set {_uniqueStorage()._s111 = newValue}
- }
- var s112: [String] {
- get {return _storage._s112}
- set {_uniqueStorage()._s112 = newValue}
- }
- var s113: [String] {
- get {return _storage._s113}
- set {_uniqueStorage()._s113 = newValue}
- }
- var s114: [String] {
- get {return _storage._s114}
- set {_uniqueStorage()._s114 = newValue}
- }
- var s115: [String] {
- get {return _storage._s115}
- set {_uniqueStorage()._s115 = newValue}
- }
- var s116: [String] {
- get {return _storage._s116}
- set {_uniqueStorage()._s116 = newValue}
- }
- var s117: [String] {
- get {return _storage._s117}
- set {_uniqueStorage()._s117 = newValue}
- }
- var s118: [String] {
- get {return _storage._s118}
- set {_uniqueStorage()._s118 = newValue}
- }
- var s119: [String] {
- get {return _storage._s119}
- set {_uniqueStorage()._s119 = newValue}
- }
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _storage = _StorageClass.defaultInstance
- }
- // MARK: - Extension support defined in unittest.proto.
- // MARK: - Extension Properties
- // Swift Extensions on the extended Messages to add easy access to the declared
- // extension fields. The names are based on the extension field name from the proto
- // declaration. To avoid naming collisions, the names are prefixed with the name of
- // the scope where the extend directive occurs.
- extension Proto2Unittest_BoolParseTester {
- var Proto2Unittest_BoolParseTester_optionalBoolExt: Bool {
- get {return getExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext) ?? false}
- set {setExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext`
- /// has been explicitly set.
- var hasProto2Unittest_BoolParseTester_optionalBoolExt: Bool {
- return hasExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext)
- }
- /// Clears the value of extension `Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_BoolParseTester_optionalBoolExt() {
- clearExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext)
- }
- var Proto2Unittest_BoolParseTester_repeatedBoolExt: [Bool] {
- get {return getExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.repeated_bool_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.repeated_bool_ext, value: newValue)}
- }
- var Proto2Unittest_BoolParseTester_packedBoolExt: [Bool] {
- get {return getExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.packed_bool_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_BoolParseTester.Extensions.packed_bool_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_EnumParseTester {
- var Proto2Unittest_EnumParseTester_optionalArbitraryExt: Proto2Unittest_EnumParseTester.Arbitrary {
- get {return getExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext) ?? .default}
- set {setExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext`
- /// has been explicitly set.
- var hasProto2Unittest_EnumParseTester_optionalArbitraryExt: Bool {
- return hasExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext)
- }
- /// Clears the value of extension `Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_EnumParseTester_optionalArbitraryExt() {
- clearExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext)
- }
- var Proto2Unittest_EnumParseTester_repeatedArbitraryExt: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return getExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.repeated_arbitrary_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.repeated_arbitrary_ext, value: newValue)}
- }
- var Proto2Unittest_EnumParseTester_packedArbitraryExt: [Proto2Unittest_EnumParseTester.Arbitrary] {
- get {return getExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.packed_arbitrary_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_EnumParseTester.Extensions.packed_arbitrary_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_Int32ParseTester {
- var Proto2Unittest_Int32ParseTester_optionalInt32Ext: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext`
- /// has been explicitly set.
- var hasProto2Unittest_Int32ParseTester_optionalInt32Ext: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext)
- }
- /// Clears the value of extension `Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_Int32ParseTester_optionalInt32Ext() {
- clearExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext)
- }
- var Proto2Unittest_Int32ParseTester_repeatedInt32Ext: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.repeated_int32_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.repeated_int32_ext, value: newValue)}
- }
- var Proto2Unittest_Int32ParseTester_packedInt32Ext: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.packed_int32_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Int32ParseTester.Extensions.packed_int32_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_Int64ParseTester {
- var Proto2Unittest_Int64ParseTester_optionalInt64Ext: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext`
- /// has been explicitly set.
- var hasProto2Unittest_Int64ParseTester_optionalInt64Ext: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext)
- }
- /// Clears the value of extension `Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_Int64ParseTester_optionalInt64Ext() {
- clearExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext)
- }
- var Proto2Unittest_Int64ParseTester_repeatedInt64Ext: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.repeated_int64_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.repeated_int64_ext, value: newValue)}
- }
- var Proto2Unittest_Int64ParseTester_packedInt64Ext: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.packed_int64_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Int64ParseTester.Extensions.packed_int64_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_RedactedFields {
- var Proto2Unittest_redactedExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_redacted_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_redacted_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_redacted_extension`
- /// has been explicitly set.
- var hasProto2Unittest_redactedExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_redacted_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_redacted_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_redactedExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_redacted_extension)
- }
- }
- extension Proto2Unittest_StringParseTester {
- var Proto2Unittest_StringParseTester_optionalStringExt: String {
- get {return getExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.optional_string_ext) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.optional_string_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_StringParseTester.Extensions.optional_string_ext`
- /// has been explicitly set.
- var hasProto2Unittest_StringParseTester_optionalStringExt: Bool {
- return hasExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.optional_string_ext)
- }
- /// Clears the value of extension `Proto2Unittest_StringParseTester.Extensions.optional_string_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_StringParseTester_optionalStringExt() {
- clearExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.optional_string_ext)
- }
- var Proto2Unittest_StringParseTester_repeatedStringExt: [String] {
- get {return getExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.repeated_string_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_StringParseTester.Extensions.repeated_string_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_TestAllExtensions {
- /// Singular
- var Proto2Unittest_optionalInt32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_int32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_int32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_int32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalInt32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_int32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_int32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalInt32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_int32_extension)
- }
- var Proto2Unittest_optionalInt64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_int64_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_int64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_int64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalInt64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_int64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_int64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalInt64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_int64_extension)
- }
- var Proto2Unittest_optionalUint32Extension: UInt32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_uint32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_uint32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_uint32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalUint32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_uint32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_uint32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalUint32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_uint32_extension)
- }
- var Proto2Unittest_optionalUint64Extension: UInt64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_uint64_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_uint64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_uint64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalUint64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_uint64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_uint64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalUint64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_uint64_extension)
- }
- var Proto2Unittest_optionalSint32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_sint32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_sint32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_sint32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalSint32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_sint32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_sint32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalSint32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_sint32_extension)
- }
- var Proto2Unittest_optionalSint64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_sint64_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_sint64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_sint64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalSint64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_sint64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_sint64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalSint64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_sint64_extension)
- }
- var Proto2Unittest_optionalFixed32Extension: UInt32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_fixed32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalFixed32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_fixed32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalFixed32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed32_extension)
- }
- var Proto2Unittest_optionalFixed64Extension: UInt64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed64_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_fixed64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalFixed64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_fixed64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalFixed64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_fixed64_extension)
- }
- var Proto2Unittest_optionalSfixed32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_sfixed32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalSfixed32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_sfixed32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalSfixed32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed32_extension)
- }
- var Proto2Unittest_optionalSfixed64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed64_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_sfixed64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalSfixed64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_sfixed64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalSfixed64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_sfixed64_extension)
- }
- var Proto2Unittest_optionalFloatExtension: Float {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_float_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_float_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_float_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalFloatExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_float_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_float_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalFloatExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_float_extension)
- }
- var Proto2Unittest_optionalDoubleExtension: Double {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_double_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_double_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_double_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalDoubleExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_double_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_double_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalDoubleExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_double_extension)
- }
- var Proto2Unittest_optionalBoolExtension: Bool {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_bool_extension) ?? false}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_bool_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_bool_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalBoolExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_bool_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_bool_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalBoolExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_bool_extension)
- }
- var Proto2Unittest_optionalStringExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_string_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_string_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_string_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalStringExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_string_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_string_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalStringExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_string_extension)
- }
- var Proto2Unittest_optionalBytesExtension: Data {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_extension) ?? Data()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_bytes_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalBytesExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_bytes_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalBytesExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_extension)
- }
- var Proto2Unittest_optionalGroupExtension: Proto2Unittest_OptionalGroup_extension {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_OptionalGroup_extension) ?? Proto2Unittest_OptionalGroup_extension()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_OptionalGroup_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_OptionalGroup_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalGroupExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_OptionalGroup_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_OptionalGroup_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalGroupExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_OptionalGroup_extension)
- }
- var Proto2Unittest_optionalNestedMessageExtension: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_message_extension) ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_nested_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalNestedMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_nested_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalNestedMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_message_extension)
- }
- var Proto2Unittest_optionalForeignMessageExtension: Proto2Unittest_ForeignMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_message_extension) ?? Proto2Unittest_ForeignMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_foreign_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalForeignMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_foreign_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalForeignMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_message_extension)
- }
- var Proto2Unittest_optionalImportMessageExtension: Proto2UnittestImport_ImportMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_import_message_extension) ?? Proto2UnittestImport_ImportMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_import_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_import_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalImportMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_import_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_import_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalImportMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_import_message_extension)
- }
- var Proto2Unittest_optionalNestedEnumExtension: Proto2Unittest_TestAllTypes.NestedEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_enum_extension) ?? .foo}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_nested_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalNestedEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_nested_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalNestedEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_nested_enum_extension)
- }
- var Proto2Unittest_optionalForeignEnumExtension: Proto2Unittest_ForeignEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_enum_extension) ?? .foreignFoo}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_foreign_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalForeignEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_foreign_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalForeignEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_foreign_enum_extension)
- }
- var Proto2Unittest_optionalImportEnumExtension: Proto2UnittestImport_ImportEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_import_enum_extension) ?? .importFoo}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_import_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_import_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalImportEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_import_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_import_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalImportEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_import_enum_extension)
- }
- var Proto2Unittest_optionalStringPieceExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_string_piece_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_string_piece_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_string_piece_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalStringPieceExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_string_piece_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_string_piece_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalStringPieceExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_string_piece_extension)
- }
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- var Proto2Unittest_optionalCordExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_cord_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_cord_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_cord_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalCordExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_cord_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_cord_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalCordExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_cord_extension)
- }
- var Proto2Unittest_optionalBytesCordExtension: Data {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_cord_extension) ?? Data()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_cord_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_bytes_cord_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalBytesCordExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_cord_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_bytes_cord_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalBytesCordExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_bytes_cord_extension)
- }
- var Proto2Unittest_optionalPublicImportMessageExtension: Proto2UnittestImport_PublicImportMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_public_import_message_extension) ?? Proto2UnittestImport_PublicImportMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_public_import_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_public_import_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalPublicImportMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_public_import_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_public_import_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalPublicImportMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_public_import_message_extension)
- }
- var Proto2Unittest_optionalLazyMessageExtension: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_lazy_message_extension) ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_lazy_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_lazy_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalLazyMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_lazy_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_lazy_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalLazyMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_lazy_message_extension)
- }
- var Proto2Unittest_optionalUnverifiedLazyMessageExtension: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_unverified_lazy_message_extension) ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_unverified_lazy_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_unverified_lazy_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalUnverifiedLazyMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_unverified_lazy_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_unverified_lazy_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalUnverifiedLazyMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_unverified_lazy_message_extension)
- }
- /// Repeated
- var Proto2Unittest_repeatedInt32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_int32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_int32_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedInt64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_int64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_int64_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedUint32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_uint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_uint32_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedUint64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_uint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_uint64_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedSint32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_sint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_sint32_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedSint64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_sint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_sint64_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedFixed32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_fixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_fixed32_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedFixed64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_fixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_fixed64_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedSfixed32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_sfixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_sfixed32_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedSfixed64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_sfixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_sfixed64_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedFloatExtension: [Float] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_float_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_float_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedDoubleExtension: [Double] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_double_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_double_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedBoolExtension: [Bool] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_bool_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_bool_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedStringExtension: [String] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_string_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_string_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedBytesExtension: [Data] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_bytes_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_bytes_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedGroupExtension: [Proto2Unittest_RepeatedGroup_extension] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_RepeatedGroup_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_RepeatedGroup_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedNestedMessageExtension: [Proto2Unittest_TestAllTypes.NestedMessage] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_nested_message_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_nested_message_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedForeignMessageExtension: [Proto2Unittest_ForeignMessage] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_foreign_message_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_foreign_message_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedImportMessageExtension: [Proto2UnittestImport_ImportMessage] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_import_message_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_import_message_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedNestedEnumExtension: [Proto2Unittest_TestAllTypes.NestedEnum] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_nested_enum_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_nested_enum_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedForeignEnumExtension: [Proto2Unittest_ForeignEnum] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_foreign_enum_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_foreign_enum_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedImportEnumExtension: [Proto2UnittestImport_ImportEnum] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_import_enum_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_import_enum_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedStringPieceExtension: [String] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_string_piece_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_string_piece_extension, value: newValue)}
- }
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- var Proto2Unittest_repeatedCordExtension: [String] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_cord_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_cord_extension, value: newValue)}
- }
- var Proto2Unittest_repeatedLazyMessageExtension: [Proto2Unittest_TestAllTypes.NestedMessage] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_lazy_message_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_lazy_message_extension, value: newValue)}
- }
- /// Singular with defaults
- var Proto2Unittest_defaultInt32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_int32_extension) ?? 41}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_int32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_int32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultInt32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_int32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_int32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultInt32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_int32_extension)
- }
- var Proto2Unittest_defaultInt64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_int64_extension) ?? 42}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_int64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_int64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultInt64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_int64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_int64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultInt64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_int64_extension)
- }
- var Proto2Unittest_defaultUint32Extension: UInt32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_uint32_extension) ?? 43}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_uint32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_uint32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultUint32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_uint32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_uint32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultUint32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_uint32_extension)
- }
- var Proto2Unittest_defaultUint64Extension: UInt64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_uint64_extension) ?? 44}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_uint64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_uint64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultUint64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_uint64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_uint64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultUint64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_uint64_extension)
- }
- var Proto2Unittest_defaultSint32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_sint32_extension) ?? -45}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_sint32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_sint32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultSint32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_sint32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_sint32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultSint32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_sint32_extension)
- }
- var Proto2Unittest_defaultSint64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_sint64_extension) ?? 46}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_sint64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_sint64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultSint64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_sint64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_sint64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultSint64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_sint64_extension)
- }
- var Proto2Unittest_defaultFixed32Extension: UInt32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_fixed32_extension) ?? 47}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_fixed32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_fixed32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultFixed32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_fixed32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_fixed32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultFixed32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_fixed32_extension)
- }
- var Proto2Unittest_defaultFixed64Extension: UInt64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_fixed64_extension) ?? 48}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_fixed64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_fixed64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultFixed64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_fixed64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_fixed64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultFixed64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_fixed64_extension)
- }
- var Proto2Unittest_defaultSfixed32Extension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed32_extension) ?? 49}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_sfixed32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultSfixed32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_sfixed32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultSfixed32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed32_extension)
- }
- var Proto2Unittest_defaultSfixed64Extension: Int64 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed64_extension) ?? -50}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed64_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_sfixed64_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultSfixed64Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed64_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_sfixed64_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultSfixed64Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_sfixed64_extension)
- }
- var Proto2Unittest_defaultFloatExtension: Float {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_float_extension) ?? 51.5}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_float_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_float_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultFloatExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_float_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_float_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultFloatExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_float_extension)
- }
- var Proto2Unittest_defaultDoubleExtension: Double {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_double_extension) ?? 52000}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_double_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_double_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultDoubleExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_double_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_double_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultDoubleExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_double_extension)
- }
- var Proto2Unittest_defaultBoolExtension: Bool {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_bool_extension) ?? true}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_bool_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_bool_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultBoolExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_bool_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_bool_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultBoolExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_bool_extension)
- }
- var Proto2Unittest_defaultStringExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_string_extension) ?? "hello"}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_string_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_string_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultStringExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_string_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_string_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultStringExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_string_extension)
- }
- var Proto2Unittest_defaultBytesExtension: Data {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_bytes_extension) ?? Data([119, 111, 114, 108, 100])}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_bytes_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_bytes_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultBytesExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_bytes_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_bytes_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultBytesExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_bytes_extension)
- }
- var Proto2Unittest_defaultNestedEnumExtension: Proto2Unittest_TestAllTypes.NestedEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_nested_enum_extension) ?? .bar}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_nested_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_nested_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultNestedEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_nested_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_nested_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultNestedEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_nested_enum_extension)
- }
- var Proto2Unittest_defaultForeignEnumExtension: Proto2Unittest_ForeignEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_foreign_enum_extension) ?? .foreignBar}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_foreign_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_foreign_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultForeignEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_foreign_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_foreign_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultForeignEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_foreign_enum_extension)
- }
- var Proto2Unittest_defaultImportEnumExtension: Proto2UnittestImport_ImportEnum {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_import_enum_extension) ?? .importBar}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_import_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_import_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultImportEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_import_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_import_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultImportEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_import_enum_extension)
- }
- var Proto2Unittest_defaultStringPieceExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_string_piece_extension) ?? "abc"}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_string_piece_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_string_piece_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultStringPieceExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_string_piece_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_string_piece_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultStringPieceExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_string_piece_extension)
- }
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- var Proto2Unittest_defaultCordExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_default_cord_extension) ?? "123"}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_default_cord_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_default_cord_extension`
- /// has been explicitly set.
- var hasProto2Unittest_defaultCordExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_default_cord_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_default_cord_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_defaultCordExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_default_cord_extension)
- }
- /// For oneof test
- var Proto2Unittest_oneofUint32Extension: UInt32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_oneof_uint32_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_oneof_uint32_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_oneof_uint32_extension`
- /// has been explicitly set.
- var hasProto2Unittest_oneofUint32Extension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_oneof_uint32_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_oneof_uint32_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_oneofUint32Extension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_oneof_uint32_extension)
- }
- var Proto2Unittest_oneofNestedMessageExtension: Proto2Unittest_TestAllTypes.NestedMessage {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_oneof_nested_message_extension) ?? Proto2Unittest_TestAllTypes.NestedMessage()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_oneof_nested_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_oneof_nested_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_oneofNestedMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_oneof_nested_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_oneof_nested_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_oneofNestedMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_oneof_nested_message_extension)
- }
- var Proto2Unittest_oneofStringExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_oneof_string_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_oneof_string_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_oneof_string_extension`
- /// has been explicitly set.
- var hasProto2Unittest_oneofStringExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_oneof_string_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_oneof_string_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_oneofStringExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_oneof_string_extension)
- }
- var Proto2Unittest_oneofBytesExtension: Data {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_oneof_bytes_extension) ?? Data()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_oneof_bytes_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_oneof_bytes_extension`
- /// has been explicitly set.
- var hasProto2Unittest_oneofBytesExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_oneof_bytes_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_oneof_bytes_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_oneofBytesExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_oneof_bytes_extension)
- }
- var Proto2Unittest_optionalUtf8StringExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_optional_utf8_string_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_optional_utf8_string_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_optional_utf8_string_extension`
- /// has been explicitly set.
- var hasProto2Unittest_optionalUtf8StringExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_optional_utf8_string_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_optional_utf8_string_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_optionalUtf8StringExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_optional_utf8_string_extension)
- }
- var Proto2Unittest_repeatedUtf8StringExtension: [String] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_repeated_utf8_string_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_repeated_utf8_string_extension, value: newValue)}
- }
- /// Singular message containing required fields; used to test initialization.
- var Proto2Unittest_requiredMessageExtension: Proto2Unittest_TestRequired {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_required_message_extension) ?? Proto2Unittest_TestRequired()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_required_message_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_required_message_extension`
- /// has been explicitly set.
- var hasProto2Unittest_requiredMessageExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_required_message_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_required_message_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_requiredMessageExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_required_message_extension)
- }
- /// Check for bug where string extensions declared in tested scope did not
- /// compile.
- var Proto2Unittest_TestNestedExtension_test: String {
- get {return getExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.test) ?? "test"}
- set {setExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.test, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestNestedExtension.Extensions.test`
- /// has been explicitly set.
- var hasProto2Unittest_TestNestedExtension_test: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.test)
- }
- /// Clears the value of extension `Proto2Unittest_TestNestedExtension.Extensions.test`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestNestedExtension_test() {
- clearExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.test)
- }
- /// Used to test if generated extension name is correct when there are
- /// underscores.
- var Proto2Unittest_TestNestedExtension_nestedStringExtension: String {
- get {return getExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension`
- /// has been explicitly set.
- var hasProto2Unittest_TestNestedExtension_nestedStringExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension)
- }
- /// Clears the value of extension `Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestNestedExtension_nestedStringExtension() {
- clearExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension)
- }
- var Proto2Unittest_TestRequired_single: Proto2Unittest_TestRequired {
- get {return getExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.single) ?? Proto2Unittest_TestRequired()}
- set {setExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.single, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestRequired.Extensions.single`
- /// has been explicitly set.
- var hasProto2Unittest_TestRequired_single: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.single)
- }
- /// Clears the value of extension `Proto2Unittest_TestRequired.Extensions.single`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestRequired_single() {
- clearExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.single)
- }
- var Proto2Unittest_TestRequired_multi: [Proto2Unittest_TestRequired] {
- get {return getExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.multi) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_TestRequired.Extensions.multi, value: newValue)}
- }
- }
- extension Proto2Unittest_TestExtensionInsideTable {
- var Proto2Unittest_testExtensionInsideTableExtension: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_test_extension_inside_table_extension) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_test_extension_inside_table_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_test_extension_inside_table_extension`
- /// has been explicitly set.
- var hasProto2Unittest_testExtensionInsideTableExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_test_extension_inside_table_extension)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_test_extension_inside_table_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_testExtensionInsideTableExtension() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_test_extension_inside_table_extension)
- }
- }
- extension Proto2Unittest_TestExtensionRangeSerialize {
- var Proto2Unittest_TestExtensionRangeSerialize_barOne: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionRangeSerialize_barOne: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionRangeSerialize_barOne() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one)
- }
- var Proto2Unittest_TestExtensionRangeSerialize_barTwo: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionRangeSerialize_barTwo: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionRangeSerialize_barTwo() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two)
- }
- var Proto2Unittest_TestExtensionRangeSerialize_barThree: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionRangeSerialize_barThree: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionRangeSerialize_barThree() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three)
- }
- var Proto2Unittest_TestExtensionRangeSerialize_barFour: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionRangeSerialize_barFour: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionRangeSerialize_barFour() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four)
- }
- var Proto2Unittest_TestExtensionRangeSerialize_barFive: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionRangeSerialize_barFive: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionRangeSerialize_barFive() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five)
- }
- }
- extension Proto2Unittest_TestFieldOrderings {
- var Proto2Unittest_myExtensionString: String {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_my_extension_string) ?? String()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_my_extension_string, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_my_extension_string`
- /// has been explicitly set.
- var hasProto2Unittest_myExtensionString: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_my_extension_string)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_my_extension_string`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_myExtensionString() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_my_extension_string)
- }
- var Proto2Unittest_myExtensionInt: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_my_extension_int) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_my_extension_int, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_my_extension_int`
- /// has been explicitly set.
- var hasProto2Unittest_myExtensionInt: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_my_extension_int)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_my_extension_int`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_myExtensionInt() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_my_extension_int)
- }
- var Proto2Unittest_TestExtensionOrderings1_testExtOrderings1: Proto2Unittest_TestExtensionOrderings1 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1) ?? Proto2Unittest_TestExtensionOrderings1()}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionOrderings1_testExtOrderings1: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionOrderings1_testExtOrderings1() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1)
- }
- var Proto2Unittest_TestExtensionOrderings2_testExtOrderings2: Proto2Unittest_TestExtensionOrderings2 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2) ?? Proto2Unittest_TestExtensionOrderings2()}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionOrderings2_testExtOrderings2: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionOrderings2_testExtOrderings2() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2)
- }
- var Proto2Unittest_TestExtensionOrderings2_TestExtensionOrderings3_testExtOrderings3: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3 {
- get {return getExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3) ?? Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3()}
- set {setExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3`
- /// has been explicitly set.
- var hasProto2Unittest_TestExtensionOrderings2_TestExtensionOrderings3_testExtOrderings3: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3)
- }
- /// Clears the value of extension `Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestExtensionOrderings2_TestExtensionOrderings3_testExtOrderings3() {
- clearExtensionValue(ext: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3)
- }
- }
- extension Proto2Unittest_TestGroupExtension {
- var Proto2Unittest_TestNestedExtension_optionalGroupExtension: Proto2Unittest_TestNestedExtension.OptionalGroup_extension {
- get {return getExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension) ?? Proto2Unittest_TestNestedExtension.OptionalGroup_extension()}
- set {setExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension`
- /// has been explicitly set.
- var hasProto2Unittest_TestNestedExtension_optionalGroupExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension)
- }
- /// Clears the value of extension `Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestNestedExtension_optionalGroupExtension() {
- clearExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension)
- }
- var Proto2Unittest_TestNestedExtension_optionalForeignEnumExtension: Proto2Unittest_ForeignEnum {
- get {return getExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension) ?? .foreignFoo}
- set {setExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension`
- /// has been explicitly set.
- var hasProto2Unittest_TestNestedExtension_optionalForeignEnumExtension: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension)
- }
- /// Clears the value of extension `Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestNestedExtension_optionalForeignEnumExtension() {
- clearExtensionValue(ext: Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension)
- }
- }
- extension Proto2Unittest_TestHugeFieldNumbers {
- var Proto2Unittest_testAllTypes: Proto2Unittest_TestAllTypes {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_test_all_types) ?? Proto2Unittest_TestAllTypes()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_test_all_types, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_test_all_types`
- /// has been explicitly set.
- var hasProto2Unittest_testAllTypes: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_test_all_types)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_test_all_types`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_testAllTypes() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_test_all_types)
- }
- }
- extension Proto2Unittest_TestMixedFieldsAndExtensions {
- var Proto2Unittest_TestMixedFieldsAndExtensions_c: Int32 {
- get {return getExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c) ?? 0}
- set {setExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c`
- /// has been explicitly set.
- var hasProto2Unittest_TestMixedFieldsAndExtensions_c: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c)
- }
- /// Clears the value of extension `Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestMixedFieldsAndExtensions_c() {
- clearExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c)
- }
- var Proto2Unittest_TestMixedFieldsAndExtensions_d: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.d) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.d, value: newValue)}
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup {
- var Proto2Unittest_inner: Proto2Unittest_TestNestedGroupExtensionInnerExtension {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_inner) ?? Proto2Unittest_TestNestedGroupExtensionInnerExtension()}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_inner, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_Extensions_inner`
- /// has been explicitly set.
- var hasProto2Unittest_inner: Bool {
- return hasExtensionValue(ext: Proto2Unittest_Extensions_inner)
- }
- /// Clears the value of extension `Proto2Unittest_Extensions_inner`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_inner() {
- clearExtensionValue(ext: Proto2Unittest_Extensions_inner)
- }
- }
- extension Proto2Unittest_TestPackedExtensions {
- var Proto2Unittest_packedInt32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_int32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_int32_extension, value: newValue)}
- }
- var Proto2Unittest_packedInt64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_int64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_int64_extension, value: newValue)}
- }
- var Proto2Unittest_packedUint32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_uint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_uint32_extension, value: newValue)}
- }
- var Proto2Unittest_packedUint64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_uint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_uint64_extension, value: newValue)}
- }
- var Proto2Unittest_packedSint32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_sint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_sint32_extension, value: newValue)}
- }
- var Proto2Unittest_packedSint64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_sint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_sint64_extension, value: newValue)}
- }
- var Proto2Unittest_packedFixed32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_fixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_fixed32_extension, value: newValue)}
- }
- var Proto2Unittest_packedFixed64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_fixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_fixed64_extension, value: newValue)}
- }
- var Proto2Unittest_packedSfixed32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_sfixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_sfixed32_extension, value: newValue)}
- }
- var Proto2Unittest_packedSfixed64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_sfixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_sfixed64_extension, value: newValue)}
- }
- var Proto2Unittest_packedFloatExtension: [Float] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_float_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_float_extension, value: newValue)}
- }
- var Proto2Unittest_packedDoubleExtension: [Double] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_double_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_double_extension, value: newValue)}
- }
- var Proto2Unittest_packedBoolExtension: [Bool] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_bool_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_bool_extension, value: newValue)}
- }
- var Proto2Unittest_packedEnumExtension: [Proto2Unittest_ForeignEnum] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_packed_enum_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_packed_enum_extension, value: newValue)}
- }
- }
- extension Proto2Unittest_TestParsingMerge {
- var Proto2Unittest_TestParsingMerge_optionalExt: Proto2Unittest_TestAllTypes {
- get {return getExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.optional_ext) ?? Proto2Unittest_TestAllTypes()}
- set {setExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.optional_ext, value: newValue)}
- }
- /// Returns true if extension `Proto2Unittest_TestParsingMerge.Extensions.optional_ext`
- /// has been explicitly set.
- var hasProto2Unittest_TestParsingMerge_optionalExt: Bool {
- return hasExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.optional_ext)
- }
- /// Clears the value of extension `Proto2Unittest_TestParsingMerge.Extensions.optional_ext`.
- /// Subsequent reads from it will return its default value.
- mutating func clearProto2Unittest_TestParsingMerge_optionalExt() {
- clearExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.optional_ext)
- }
- var Proto2Unittest_TestParsingMerge_repeatedExt: [Proto2Unittest_TestAllTypes] {
- get {return getExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.repeated_ext) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_TestParsingMerge.Extensions.repeated_ext, value: newValue)}
- }
- }
- extension Proto2Unittest_TestUnpackedExtensions {
- var Proto2Unittest_unpackedInt32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_int32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_int32_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedInt64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_int64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_int64_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedUint32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_uint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_uint32_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedUint64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_uint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_uint64_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedSint32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sint32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sint32_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedSint64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sint64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sint64_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedFixed32Extension: [UInt32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_fixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_fixed32_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedFixed64Extension: [UInt64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_fixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_fixed64_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedSfixed32Extension: [Int32] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sfixed32_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sfixed32_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedSfixed64Extension: [Int64] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sfixed64_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_sfixed64_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedFloatExtension: [Float] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_float_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_float_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedDoubleExtension: [Double] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_double_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_double_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedBoolExtension: [Bool] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_bool_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_bool_extension, value: newValue)}
- }
- var Proto2Unittest_unpackedEnumExtension: [Proto2Unittest_ForeignEnum] {
- get {return getExtensionValue(ext: Proto2Unittest_Extensions_unpacked_enum_extension) ?? []}
- set {setExtensionValue(ext: Proto2Unittest_Extensions_unpacked_enum_extension, value: newValue)}
- }
- }
- // MARK: - File's ExtensionMap: Proto2Unittest_Unittest_Extensions
- /// A `SwiftProtobuf.SimpleExtensionMap` that includes all of the extensions defined by
- /// this .proto file. It can be used any place an `SwiftProtobuf.ExtensionMap` is needed
- /// in parsing, or it can be combined with other `SwiftProtobuf.SimpleExtensionMap`s to create
- /// a larger `SwiftProtobuf.SimpleExtensionMap`.
- let Proto2Unittest_Unittest_Extensions: SwiftProtobuf.SimpleExtensionMap = [
- Proto2Unittest_Extensions_optional_int32_extension,
- Proto2Unittest_Extensions_optional_int64_extension,
- Proto2Unittest_Extensions_optional_uint32_extension,
- Proto2Unittest_Extensions_optional_uint64_extension,
- Proto2Unittest_Extensions_optional_sint32_extension,
- Proto2Unittest_Extensions_optional_sint64_extension,
- Proto2Unittest_Extensions_optional_fixed32_extension,
- Proto2Unittest_Extensions_optional_fixed64_extension,
- Proto2Unittest_Extensions_optional_sfixed32_extension,
- Proto2Unittest_Extensions_optional_sfixed64_extension,
- Proto2Unittest_Extensions_optional_float_extension,
- Proto2Unittest_Extensions_optional_double_extension,
- Proto2Unittest_Extensions_optional_bool_extension,
- Proto2Unittest_Extensions_optional_string_extension,
- Proto2Unittest_Extensions_optional_bytes_extension,
- Proto2Unittest_Extensions_OptionalGroup_extension,
- Proto2Unittest_Extensions_optional_nested_message_extension,
- Proto2Unittest_Extensions_optional_foreign_message_extension,
- Proto2Unittest_Extensions_optional_import_message_extension,
- Proto2Unittest_Extensions_optional_nested_enum_extension,
- Proto2Unittest_Extensions_optional_foreign_enum_extension,
- Proto2Unittest_Extensions_optional_import_enum_extension,
- Proto2Unittest_Extensions_optional_string_piece_extension,
- Proto2Unittest_Extensions_optional_cord_extension,
- Proto2Unittest_Extensions_optional_bytes_cord_extension,
- Proto2Unittest_Extensions_optional_public_import_message_extension,
- Proto2Unittest_Extensions_optional_lazy_message_extension,
- Proto2Unittest_Extensions_optional_unverified_lazy_message_extension,
- Proto2Unittest_Extensions_repeated_int32_extension,
- Proto2Unittest_Extensions_repeated_int64_extension,
- Proto2Unittest_Extensions_repeated_uint32_extension,
- Proto2Unittest_Extensions_repeated_uint64_extension,
- Proto2Unittest_Extensions_repeated_sint32_extension,
- Proto2Unittest_Extensions_repeated_sint64_extension,
- Proto2Unittest_Extensions_repeated_fixed32_extension,
- Proto2Unittest_Extensions_repeated_fixed64_extension,
- Proto2Unittest_Extensions_repeated_sfixed32_extension,
- Proto2Unittest_Extensions_repeated_sfixed64_extension,
- Proto2Unittest_Extensions_repeated_float_extension,
- Proto2Unittest_Extensions_repeated_double_extension,
- Proto2Unittest_Extensions_repeated_bool_extension,
- Proto2Unittest_Extensions_repeated_string_extension,
- Proto2Unittest_Extensions_repeated_bytes_extension,
- Proto2Unittest_Extensions_RepeatedGroup_extension,
- Proto2Unittest_Extensions_repeated_nested_message_extension,
- Proto2Unittest_Extensions_repeated_foreign_message_extension,
- Proto2Unittest_Extensions_repeated_import_message_extension,
- Proto2Unittest_Extensions_repeated_nested_enum_extension,
- Proto2Unittest_Extensions_repeated_foreign_enum_extension,
- Proto2Unittest_Extensions_repeated_import_enum_extension,
- Proto2Unittest_Extensions_repeated_string_piece_extension,
- Proto2Unittest_Extensions_repeated_cord_extension,
- Proto2Unittest_Extensions_repeated_lazy_message_extension,
- Proto2Unittest_Extensions_default_int32_extension,
- Proto2Unittest_Extensions_default_int64_extension,
- Proto2Unittest_Extensions_default_uint32_extension,
- Proto2Unittest_Extensions_default_uint64_extension,
- Proto2Unittest_Extensions_default_sint32_extension,
- Proto2Unittest_Extensions_default_sint64_extension,
- Proto2Unittest_Extensions_default_fixed32_extension,
- Proto2Unittest_Extensions_default_fixed64_extension,
- Proto2Unittest_Extensions_default_sfixed32_extension,
- Proto2Unittest_Extensions_default_sfixed64_extension,
- Proto2Unittest_Extensions_default_float_extension,
- Proto2Unittest_Extensions_default_double_extension,
- Proto2Unittest_Extensions_default_bool_extension,
- Proto2Unittest_Extensions_default_string_extension,
- Proto2Unittest_Extensions_default_bytes_extension,
- Proto2Unittest_Extensions_default_nested_enum_extension,
- Proto2Unittest_Extensions_default_foreign_enum_extension,
- Proto2Unittest_Extensions_default_import_enum_extension,
- Proto2Unittest_Extensions_default_string_piece_extension,
- Proto2Unittest_Extensions_default_cord_extension,
- Proto2Unittest_Extensions_oneof_uint32_extension,
- Proto2Unittest_Extensions_oneof_nested_message_extension,
- Proto2Unittest_Extensions_oneof_string_extension,
- Proto2Unittest_Extensions_oneof_bytes_extension,
- Proto2Unittest_Extensions_optional_utf8_string_extension,
- Proto2Unittest_Extensions_repeated_utf8_string_extension,
- Proto2Unittest_Extensions_required_message_extension,
- Proto2Unittest_Extensions_my_extension_string,
- Proto2Unittest_Extensions_my_extension_int,
- Proto2Unittest_Extensions_packed_int32_extension,
- Proto2Unittest_Extensions_packed_int64_extension,
- Proto2Unittest_Extensions_packed_uint32_extension,
- Proto2Unittest_Extensions_packed_uint64_extension,
- Proto2Unittest_Extensions_packed_sint32_extension,
- Proto2Unittest_Extensions_packed_sint64_extension,
- Proto2Unittest_Extensions_packed_fixed32_extension,
- Proto2Unittest_Extensions_packed_fixed64_extension,
- Proto2Unittest_Extensions_packed_sfixed32_extension,
- Proto2Unittest_Extensions_packed_sfixed64_extension,
- Proto2Unittest_Extensions_packed_float_extension,
- Proto2Unittest_Extensions_packed_double_extension,
- Proto2Unittest_Extensions_packed_bool_extension,
- Proto2Unittest_Extensions_packed_enum_extension,
- Proto2Unittest_Extensions_unpacked_int32_extension,
- Proto2Unittest_Extensions_unpacked_int64_extension,
- Proto2Unittest_Extensions_unpacked_uint32_extension,
- Proto2Unittest_Extensions_unpacked_uint64_extension,
- Proto2Unittest_Extensions_unpacked_sint32_extension,
- Proto2Unittest_Extensions_unpacked_sint64_extension,
- Proto2Unittest_Extensions_unpacked_fixed32_extension,
- Proto2Unittest_Extensions_unpacked_fixed64_extension,
- Proto2Unittest_Extensions_unpacked_sfixed32_extension,
- Proto2Unittest_Extensions_unpacked_sfixed64_extension,
- Proto2Unittest_Extensions_unpacked_float_extension,
- Proto2Unittest_Extensions_unpacked_double_extension,
- Proto2Unittest_Extensions_unpacked_bool_extension,
- Proto2Unittest_Extensions_unpacked_enum_extension,
- Proto2Unittest_Extensions_test_all_types,
- Proto2Unittest_Extensions_test_extension_inside_table_extension,
- Proto2Unittest_Extensions_inner,
- Proto2Unittest_Extensions_redacted_extension,
- Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.c,
- Proto2Unittest_TestMixedFieldsAndExtensions.Extensions.d,
- Proto2Unittest_TestNestedExtension.Extensions.test,
- Proto2Unittest_TestNestedExtension.Extensions.nested_string_extension,
- Proto2Unittest_TestNestedExtension.Extensions.OptionalGroup_extension,
- Proto2Unittest_TestNestedExtension.Extensions.optional_foreign_enum_extension,
- Proto2Unittest_TestRequired.Extensions.single,
- Proto2Unittest_TestRequired.Extensions.multi,
- Proto2Unittest_TestExtensionOrderings1.Extensions.test_ext_orderings1,
- Proto2Unittest_TestExtensionOrderings2.Extensions.test_ext_orderings2,
- Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3.Extensions.test_ext_orderings3,
- Proto2Unittest_TestParsingMerge.Extensions.optional_ext,
- Proto2Unittest_TestParsingMerge.Extensions.repeated_ext,
- Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_one,
- Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_two,
- Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_three,
- Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_four,
- Proto2Unittest_TestExtensionRangeSerialize.Extensions.bar_five,
- Proto2Unittest_EnumParseTester.Extensions.optional_arbitrary_ext,
- Proto2Unittest_EnumParseTester.Extensions.repeated_arbitrary_ext,
- Proto2Unittest_EnumParseTester.Extensions.packed_arbitrary_ext,
- Proto2Unittest_BoolParseTester.Extensions.optional_bool_ext,
- Proto2Unittest_BoolParseTester.Extensions.repeated_bool_ext,
- Proto2Unittest_BoolParseTester.Extensions.packed_bool_ext,
- Proto2Unittest_Int32ParseTester.Extensions.optional_int32_ext,
- Proto2Unittest_Int32ParseTester.Extensions.repeated_int32_ext,
- Proto2Unittest_Int32ParseTester.Extensions.packed_int32_ext,
- Proto2Unittest_Int64ParseTester.Extensions.optional_int64_ext,
- Proto2Unittest_Int64ParseTester.Extensions.repeated_int64_ext,
- Proto2Unittest_Int64ParseTester.Extensions.packed_int64_ext,
- Proto2Unittest_StringParseTester.Extensions.optional_string_ext,
- Proto2Unittest_StringParseTester.Extensions.repeated_string_ext
- ]
- // Extension Objects - The only reason these might be needed is when manually
- // constructing a `SimpleExtensionMap`, otherwise, use the above _Extension Properties_
- // accessors for the extension fields on the messages directly.
- /// Singular
- let Proto2Unittest_Extensions_optional_int32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 1,
- fieldName: "proto2_unittest.optional_int32_extension"
- )
- let Proto2Unittest_Extensions_optional_int64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 2,
- fieldName: "proto2_unittest.optional_int64_extension"
- )
- let Proto2Unittest_Extensions_optional_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 3,
- fieldName: "proto2_unittest.optional_uint32_extension"
- )
- let Proto2Unittest_Extensions_optional_uint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufUInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 4,
- fieldName: "proto2_unittest.optional_uint64_extension"
- )
- let Proto2Unittest_Extensions_optional_sint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 5,
- fieldName: "proto2_unittest.optional_sint32_extension"
- )
- let Proto2Unittest_Extensions_optional_sint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 6,
- fieldName: "proto2_unittest.optional_sint64_extension"
- )
- let Proto2Unittest_Extensions_optional_fixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 7,
- fieldName: "proto2_unittest.optional_fixed32_extension"
- )
- let Proto2Unittest_Extensions_optional_fixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 8,
- fieldName: "proto2_unittest.optional_fixed64_extension"
- )
- let Proto2Unittest_Extensions_optional_sfixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 9,
- fieldName: "proto2_unittest.optional_sfixed32_extension"
- )
- let Proto2Unittest_Extensions_optional_sfixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 10,
- fieldName: "proto2_unittest.optional_sfixed64_extension"
- )
- let Proto2Unittest_Extensions_optional_float_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFloat>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 11,
- fieldName: "proto2_unittest.optional_float_extension"
- )
- let Proto2Unittest_Extensions_optional_double_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufDouble>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 12,
- fieldName: "proto2_unittest.optional_double_extension"
- )
- let Proto2Unittest_Extensions_optional_bool_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 13,
- fieldName: "proto2_unittest.optional_bool_extension"
- )
- let Proto2Unittest_Extensions_optional_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 14,
- fieldName: "proto2_unittest.optional_string_extension"
- )
- let Proto2Unittest_Extensions_optional_bytes_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBytes>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 15,
- fieldName: "proto2_unittest.optional_bytes_extension"
- )
- let Proto2Unittest_Extensions_OptionalGroup_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalGroupExtensionField<Proto2Unittest_OptionalGroup_extension>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 16,
- fieldName: "proto2_unittest.optionalgroup_extension"
- )
- let Proto2Unittest_Extensions_optional_nested_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 18,
- fieldName: "proto2_unittest.optional_nested_message_extension"
- )
- let Proto2Unittest_Extensions_optional_foreign_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_ForeignMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 19,
- fieldName: "proto2_unittest.optional_foreign_message_extension"
- )
- let Proto2Unittest_Extensions_optional_import_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2UnittestImport_ImportMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 20,
- fieldName: "proto2_unittest.optional_import_message_extension"
- )
- let Proto2Unittest_Extensions_optional_nested_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_TestAllTypes.NestedEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 21,
- fieldName: "proto2_unittest.optional_nested_enum_extension"
- )
- let Proto2Unittest_Extensions_optional_foreign_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 22,
- fieldName: "proto2_unittest.optional_foreign_enum_extension"
- )
- let Proto2Unittest_Extensions_optional_import_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2UnittestImport_ImportEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 23,
- fieldName: "proto2_unittest.optional_import_enum_extension"
- )
- let Proto2Unittest_Extensions_optional_string_piece_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 24,
- fieldName: "proto2_unittest.optional_string_piece_extension"
- )
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- let Proto2Unittest_Extensions_optional_cord_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 25,
- fieldName: "proto2_unittest.optional_cord_extension"
- )
- let Proto2Unittest_Extensions_optional_bytes_cord_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBytes>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 86,
- fieldName: "proto2_unittest.optional_bytes_cord_extension"
- )
- let Proto2Unittest_Extensions_optional_public_import_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2UnittestImport_PublicImportMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 26,
- fieldName: "proto2_unittest.optional_public_import_message_extension"
- )
- let Proto2Unittest_Extensions_optional_lazy_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 27,
- fieldName: "proto2_unittest.optional_lazy_message_extension"
- )
- let Proto2Unittest_Extensions_optional_unverified_lazy_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 28,
- fieldName: "proto2_unittest.optional_unverified_lazy_message_extension"
- )
- /// Repeated
- let Proto2Unittest_Extensions_repeated_int32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 31,
- fieldName: "proto2_unittest.repeated_int32_extension"
- )
- let Proto2Unittest_Extensions_repeated_int64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 32,
- fieldName: "proto2_unittest.repeated_int64_extension"
- )
- let Proto2Unittest_Extensions_repeated_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 33,
- fieldName: "proto2_unittest.repeated_uint32_extension"
- )
- let Proto2Unittest_Extensions_repeated_uint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufUInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 34,
- fieldName: "proto2_unittest.repeated_uint64_extension"
- )
- let Proto2Unittest_Extensions_repeated_sint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 35,
- fieldName: "proto2_unittest.repeated_sint32_extension"
- )
- let Proto2Unittest_Extensions_repeated_sint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 36,
- fieldName: "proto2_unittest.repeated_sint64_extension"
- )
- let Proto2Unittest_Extensions_repeated_fixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 37,
- fieldName: "proto2_unittest.repeated_fixed32_extension"
- )
- let Proto2Unittest_Extensions_repeated_fixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 38,
- fieldName: "proto2_unittest.repeated_fixed64_extension"
- )
- let Proto2Unittest_Extensions_repeated_sfixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 39,
- fieldName: "proto2_unittest.repeated_sfixed32_extension"
- )
- let Proto2Unittest_Extensions_repeated_sfixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 40,
- fieldName: "proto2_unittest.repeated_sfixed64_extension"
- )
- let Proto2Unittest_Extensions_repeated_float_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFloat>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 41,
- fieldName: "proto2_unittest.repeated_float_extension"
- )
- let Proto2Unittest_Extensions_repeated_double_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufDouble>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 42,
- fieldName: "proto2_unittest.repeated_double_extension"
- )
- let Proto2Unittest_Extensions_repeated_bool_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 43,
- fieldName: "proto2_unittest.repeated_bool_extension"
- )
- let Proto2Unittest_Extensions_repeated_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 44,
- fieldName: "proto2_unittest.repeated_string_extension"
- )
- let Proto2Unittest_Extensions_repeated_bytes_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufBytes>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 45,
- fieldName: "proto2_unittest.repeated_bytes_extension"
- )
- let Proto2Unittest_Extensions_RepeatedGroup_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedGroupExtensionField<Proto2Unittest_RepeatedGroup_extension>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 46,
- fieldName: "proto2_unittest.repeatedgroup_extension"
- )
- let Proto2Unittest_Extensions_repeated_nested_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 48,
- fieldName: "proto2_unittest.repeated_nested_message_extension"
- )
- let Proto2Unittest_Extensions_repeated_foreign_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2Unittest_ForeignMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 49,
- fieldName: "proto2_unittest.repeated_foreign_message_extension"
- )
- let Proto2Unittest_Extensions_repeated_import_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2UnittestImport_ImportMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 50,
- fieldName: "proto2_unittest.repeated_import_message_extension"
- )
- let Proto2Unittest_Extensions_repeated_nested_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedEnumExtensionField<Proto2Unittest_TestAllTypes.NestedEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 51,
- fieldName: "proto2_unittest.repeated_nested_enum_extension"
- )
- let Proto2Unittest_Extensions_repeated_foreign_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 52,
- fieldName: "proto2_unittest.repeated_foreign_enum_extension"
- )
- let Proto2Unittest_Extensions_repeated_import_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedEnumExtensionField<Proto2UnittestImport_ImportEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 53,
- fieldName: "proto2_unittest.repeated_import_enum_extension"
- )
- let Proto2Unittest_Extensions_repeated_string_piece_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 54,
- fieldName: "proto2_unittest.repeated_string_piece_extension"
- )
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- let Proto2Unittest_Extensions_repeated_cord_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 55,
- fieldName: "proto2_unittest.repeated_cord_extension"
- )
- let Proto2Unittest_Extensions_repeated_lazy_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 57,
- fieldName: "proto2_unittest.repeated_lazy_message_extension"
- )
- /// Singular with defaults
- let Proto2Unittest_Extensions_default_int32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 61,
- fieldName: "proto2_unittest.default_int32_extension"
- )
- let Proto2Unittest_Extensions_default_int64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 62,
- fieldName: "proto2_unittest.default_int64_extension"
- )
- let Proto2Unittest_Extensions_default_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 63,
- fieldName: "proto2_unittest.default_uint32_extension"
- )
- let Proto2Unittest_Extensions_default_uint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufUInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 64,
- fieldName: "proto2_unittest.default_uint64_extension"
- )
- let Proto2Unittest_Extensions_default_sint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 65,
- fieldName: "proto2_unittest.default_sint32_extension"
- )
- let Proto2Unittest_Extensions_default_sint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSInt64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 66,
- fieldName: "proto2_unittest.default_sint64_extension"
- )
- let Proto2Unittest_Extensions_default_fixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 67,
- fieldName: "proto2_unittest.default_fixed32_extension"
- )
- let Proto2Unittest_Extensions_default_fixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 68,
- fieldName: "proto2_unittest.default_fixed64_extension"
- )
- let Proto2Unittest_Extensions_default_sfixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSFixed32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 69,
- fieldName: "proto2_unittest.default_sfixed32_extension"
- )
- let Proto2Unittest_Extensions_default_sfixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufSFixed64>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 70,
- fieldName: "proto2_unittest.default_sfixed64_extension"
- )
- let Proto2Unittest_Extensions_default_float_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufFloat>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 71,
- fieldName: "proto2_unittest.default_float_extension"
- )
- let Proto2Unittest_Extensions_default_double_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufDouble>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 72,
- fieldName: "proto2_unittest.default_double_extension"
- )
- let Proto2Unittest_Extensions_default_bool_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 73,
- fieldName: "proto2_unittest.default_bool_extension"
- )
- let Proto2Unittest_Extensions_default_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 74,
- fieldName: "proto2_unittest.default_string_extension"
- )
- let Proto2Unittest_Extensions_default_bytes_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBytes>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 75,
- fieldName: "proto2_unittest.default_bytes_extension"
- )
- let Proto2Unittest_Extensions_default_nested_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_TestAllTypes.NestedEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 81,
- fieldName: "proto2_unittest.default_nested_enum_extension"
- )
- let Proto2Unittest_Extensions_default_foreign_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 82,
- fieldName: "proto2_unittest.default_foreign_enum_extension"
- )
- let Proto2Unittest_Extensions_default_import_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2UnittestImport_ImportEnum>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 83,
- fieldName: "proto2_unittest.default_import_enum_extension"
- )
- let Proto2Unittest_Extensions_default_string_piece_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 84,
- fieldName: "proto2_unittest.default_string_piece_extension"
- )
- /// TODO: ctype=CORD is not supported for extension. Add
- /// ctype=CORD option back after it is supported.
- let Proto2Unittest_Extensions_default_cord_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 85,
- fieldName: "proto2_unittest.default_cord_extension"
- )
- /// For oneof test
- let Proto2Unittest_Extensions_oneof_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 111,
- fieldName: "proto2_unittest.oneof_uint32_extension"
- )
- let Proto2Unittest_Extensions_oneof_nested_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes.NestedMessage>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 112,
- fieldName: "proto2_unittest.oneof_nested_message_extension"
- )
- let Proto2Unittest_Extensions_oneof_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 113,
- fieldName: "proto2_unittest.oneof_string_extension"
- )
- let Proto2Unittest_Extensions_oneof_bytes_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBytes>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 114,
- fieldName: "proto2_unittest.oneof_bytes_extension"
- )
- let Proto2Unittest_Extensions_optional_utf8_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 115,
- fieldName: "proto2_unittest.optional_utf8_string_extension"
- )
- let Proto2Unittest_Extensions_repeated_utf8_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 116,
- fieldName: "proto2_unittest.repeated_utf8_string_extension"
- )
- /// Singular message containing required fields; used to test initialization.
- let Proto2Unittest_Extensions_required_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestRequired>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 117,
- fieldName: "proto2_unittest.required_message_extension"
- )
- let Proto2Unittest_Extensions_my_extension_string = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestFieldOrderings>(
- _protobuf_fieldNumber: 50,
- fieldName: "proto2_unittest.my_extension_string"
- )
- let Proto2Unittest_Extensions_my_extension_int = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestFieldOrderings>(
- _protobuf_fieldNumber: 5,
- fieldName: "proto2_unittest.my_extension_int"
- )
- let Proto2Unittest_Extensions_packed_int32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 90,
- fieldName: "proto2_unittest.packed_int32_extension"
- )
- let Proto2Unittest_Extensions_packed_int64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 91,
- fieldName: "proto2_unittest.packed_int64_extension"
- )
- let Proto2Unittest_Extensions_packed_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 92,
- fieldName: "proto2_unittest.packed_uint32_extension"
- )
- let Proto2Unittest_Extensions_packed_uint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufUInt64>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 93,
- fieldName: "proto2_unittest.packed_uint64_extension"
- )
- let Proto2Unittest_Extensions_packed_sint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufSInt32>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 94,
- fieldName: "proto2_unittest.packed_sint32_extension"
- )
- let Proto2Unittest_Extensions_packed_sint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufSInt64>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 95,
- fieldName: "proto2_unittest.packed_sint64_extension"
- )
- let Proto2Unittest_Extensions_packed_fixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 96,
- fieldName: "proto2_unittest.packed_fixed32_extension"
- )
- let Proto2Unittest_Extensions_packed_fixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufFixed64>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 97,
- fieldName: "proto2_unittest.packed_fixed64_extension"
- )
- let Proto2Unittest_Extensions_packed_sfixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufSFixed32>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 98,
- fieldName: "proto2_unittest.packed_sfixed32_extension"
- )
- let Proto2Unittest_Extensions_packed_sfixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufSFixed64>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 99,
- fieldName: "proto2_unittest.packed_sfixed64_extension"
- )
- let Proto2Unittest_Extensions_packed_float_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufFloat>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 100,
- fieldName: "proto2_unittest.packed_float_extension"
- )
- let Proto2Unittest_Extensions_packed_double_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufDouble>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 101,
- fieldName: "proto2_unittest.packed_double_extension"
- )
- let Proto2Unittest_Extensions_packed_bool_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 102,
- fieldName: "proto2_unittest.packed_bool_extension"
- )
- let Proto2Unittest_Extensions_packed_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestPackedExtensions>(
- _protobuf_fieldNumber: 103,
- fieldName: "proto2_unittest.packed_enum_extension"
- )
- let Proto2Unittest_Extensions_unpacked_int32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 90,
- fieldName: "proto2_unittest.unpacked_int32_extension"
- )
- let Proto2Unittest_Extensions_unpacked_int64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 91,
- fieldName: "proto2_unittest.unpacked_int64_extension"
- )
- let Proto2Unittest_Extensions_unpacked_uint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufUInt32>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 92,
- fieldName: "proto2_unittest.unpacked_uint32_extension"
- )
- let Proto2Unittest_Extensions_unpacked_uint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufUInt64>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 93,
- fieldName: "proto2_unittest.unpacked_uint64_extension"
- )
- let Proto2Unittest_Extensions_unpacked_sint32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSInt32>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 94,
- fieldName: "proto2_unittest.unpacked_sint32_extension"
- )
- let Proto2Unittest_Extensions_unpacked_sint64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSInt64>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 95,
- fieldName: "proto2_unittest.unpacked_sint64_extension"
- )
- let Proto2Unittest_Extensions_unpacked_fixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 96,
- fieldName: "proto2_unittest.unpacked_fixed32_extension"
- )
- let Proto2Unittest_Extensions_unpacked_fixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFixed64>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 97,
- fieldName: "proto2_unittest.unpacked_fixed64_extension"
- )
- let Proto2Unittest_Extensions_unpacked_sfixed32_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSFixed32>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 98,
- fieldName: "proto2_unittest.unpacked_sfixed32_extension"
- )
- let Proto2Unittest_Extensions_unpacked_sfixed64_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufSFixed64>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 99,
- fieldName: "proto2_unittest.unpacked_sfixed64_extension"
- )
- let Proto2Unittest_Extensions_unpacked_float_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFloat>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 100,
- fieldName: "proto2_unittest.unpacked_float_extension"
- )
- let Proto2Unittest_Extensions_unpacked_double_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufDouble>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 101,
- fieldName: "proto2_unittest.unpacked_double_extension"
- )
- let Proto2Unittest_Extensions_unpacked_bool_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 102,
- fieldName: "proto2_unittest.unpacked_bool_extension"
- )
- let Proto2Unittest_Extensions_unpacked_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestUnpackedExtensions>(
- _protobuf_fieldNumber: 103,
- fieldName: "proto2_unittest.unpacked_enum_extension"
- )
- let Proto2Unittest_Extensions_test_all_types = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes>, Proto2Unittest_TestHugeFieldNumbers>(
- _protobuf_fieldNumber: 536860000,
- fieldName: "proto2_unittest.test_all_types"
- )
- let Proto2Unittest_Extensions_test_extension_inside_table_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionInsideTable>(
- _protobuf_fieldNumber: 5,
- fieldName: "proto2_unittest.test_extension_inside_table_extension"
- )
- let Proto2Unittest_Extensions_inner = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestNestedGroupExtensionInnerExtension>, Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup>(
- _protobuf_fieldNumber: 3,
- fieldName: "proto2_unittest.inner"
- )
- let Proto2Unittest_Extensions_redacted_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_RedactedFields>(
- _protobuf_fieldNumber: 20,
- fieldName: "proto2_unittest.redacted_extension"
- )
- extension Proto2Unittest_TestMixedFieldsAndExtensions {
- enum Extensions {
- static let c = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestMixedFieldsAndExtensions>(
- _protobuf_fieldNumber: 2,
- fieldName: "proto2_unittest.TestMixedFieldsAndExtensions.c"
- )
- static let d = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufFixed32>, Proto2Unittest_TestMixedFieldsAndExtensions>(
- _protobuf_fieldNumber: 4,
- fieldName: "proto2_unittest.TestMixedFieldsAndExtensions.d"
- )
- }
- }
- extension Proto2Unittest_TestNestedExtension {
- enum Extensions {
- /// Check for bug where string extensions declared in tested scope did not
- /// compile.
- static let test = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 1002,
- fieldName: "proto2_unittest.TestNestedExtension.test"
- )
- /// Used to test if generated extension name is correct when there are
- /// underscores.
- static let nested_string_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 1003,
- fieldName: "proto2_unittest.TestNestedExtension.nested_string_extension"
- )
- static let OptionalGroup_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalGroupExtensionField<Proto2Unittest_TestNestedExtension.OptionalGroup_extension>, Proto2Unittest_TestGroupExtension>(
- _protobuf_fieldNumber: 16,
- fieldName: "proto2_unittest.TestNestedExtension.optionalgroup_extension"
- )
- static let optional_foreign_enum_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_ForeignEnum>, Proto2Unittest_TestGroupExtension>(
- _protobuf_fieldNumber: 22,
- fieldName: "proto2_unittest.TestNestedExtension.optional_foreign_enum_extension"
- )
- }
- }
- extension Proto2Unittest_TestRequired {
- enum Extensions {
- static let single = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestRequired>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 1000,
- fieldName: "proto2_unittest.TestRequired.single"
- )
- static let multi = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2Unittest_TestRequired>, Proto2Unittest_TestAllExtensions>(
- _protobuf_fieldNumber: 1001,
- fieldName: "proto2_unittest.TestRequired.multi"
- )
- }
- }
- extension Proto2Unittest_TestExtensionOrderings1 {
- enum Extensions {
- static let test_ext_orderings1 = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestExtensionOrderings1>, Proto2Unittest_TestFieldOrderings>(
- _protobuf_fieldNumber: 13,
- fieldName: "proto2_unittest.TestExtensionOrderings1.test_ext_orderings1"
- )
- }
- }
- extension Proto2Unittest_TestExtensionOrderings2 {
- enum Extensions {
- static let test_ext_orderings2 = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestExtensionOrderings2>, Proto2Unittest_TestFieldOrderings>(
- _protobuf_fieldNumber: 12,
- fieldName: "proto2_unittest.TestExtensionOrderings2.test_ext_orderings2"
- )
- }
- }
- extension Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3 {
- enum Extensions {
- static let test_ext_orderings3 = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3>, Proto2Unittest_TestFieldOrderings>(
- _protobuf_fieldNumber: 14,
- fieldName: "proto2_unittest.TestExtensionOrderings2.TestExtensionOrderings3.test_ext_orderings3"
- )
- }
- }
- extension Proto2Unittest_TestParsingMerge {
- enum Extensions {
- static let optional_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<Proto2Unittest_TestAllTypes>, Proto2Unittest_TestParsingMerge>(
- _protobuf_fieldNumber: 1000,
- fieldName: "proto2_unittest.TestParsingMerge.optional_ext"
- )
- static let repeated_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedMessageExtensionField<Proto2Unittest_TestAllTypes>, Proto2Unittest_TestParsingMerge>(
- _protobuf_fieldNumber: 1001,
- fieldName: "proto2_unittest.TestParsingMerge.repeated_ext"
- )
- }
- }
- extension Proto2Unittest_TestExtensionRangeSerialize {
- enum Extensions {
- static let bar_one = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionRangeSerialize>(
- _protobuf_fieldNumber: 2,
- fieldName: "proto2_unittest.TestExtensionRangeSerialize.bar_one"
- )
- static let bar_two = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionRangeSerialize>(
- _protobuf_fieldNumber: 4,
- fieldName: "proto2_unittest.TestExtensionRangeSerialize.bar_two"
- )
- static let bar_three = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionRangeSerialize>(
- _protobuf_fieldNumber: 10,
- fieldName: "proto2_unittest.TestExtensionRangeSerialize.bar_three"
- )
- static let bar_four = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionRangeSerialize>(
- _protobuf_fieldNumber: 15,
- fieldName: "proto2_unittest.TestExtensionRangeSerialize.bar_four"
- )
- static let bar_five = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_TestExtensionRangeSerialize>(
- _protobuf_fieldNumber: 19,
- fieldName: "proto2_unittest.TestExtensionRangeSerialize.bar_five"
- )
- }
- }
- extension Proto2Unittest_EnumParseTester {
- enum Extensions {
- static let optional_arbitrary_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalEnumExtensionField<Proto2Unittest_EnumParseTester.Arbitrary>, Proto2Unittest_EnumParseTester>(
- _protobuf_fieldNumber: 2000000,
- fieldName: "proto2_unittest.EnumParseTester.optional_arbitrary_ext"
- )
- static let repeated_arbitrary_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedEnumExtensionField<Proto2Unittest_EnumParseTester.Arbitrary>, Proto2Unittest_EnumParseTester>(
- _protobuf_fieldNumber: 2000001,
- fieldName: "proto2_unittest.EnumParseTester.repeated_arbitrary_ext"
- )
- static let packed_arbitrary_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedEnumExtensionField<Proto2Unittest_EnumParseTester.Arbitrary>, Proto2Unittest_EnumParseTester>(
- _protobuf_fieldNumber: 2000002,
- fieldName: "proto2_unittest.EnumParseTester.packed_arbitrary_ext"
- )
- }
- }
- extension Proto2Unittest_BoolParseTester {
- enum Extensions {
- static let optional_bool_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_BoolParseTester>(
- _protobuf_fieldNumber: 2000000,
- fieldName: "proto2_unittest.BoolParseTester.optional_bool_ext"
- )
- static let repeated_bool_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_BoolParseTester>(
- _protobuf_fieldNumber: 2000001,
- fieldName: "proto2_unittest.BoolParseTester.repeated_bool_ext"
- )
- static let packed_bool_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufBool>, Proto2Unittest_BoolParseTester>(
- _protobuf_fieldNumber: 2000002,
- fieldName: "proto2_unittest.BoolParseTester.packed_bool_ext"
- )
- }
- }
- extension Proto2Unittest_Int32ParseTester {
- enum Extensions {
- static let optional_int32_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_Int32ParseTester>(
- _protobuf_fieldNumber: 2000000,
- fieldName: "proto2_unittest.Int32ParseTester.optional_int32_ext"
- )
- static let repeated_int32_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_Int32ParseTester>(
- _protobuf_fieldNumber: 2000001,
- fieldName: "proto2_unittest.Int32ParseTester.repeated_int32_ext"
- )
- static let packed_int32_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufInt32>, Proto2Unittest_Int32ParseTester>(
- _protobuf_fieldNumber: 2000002,
- fieldName: "proto2_unittest.Int32ParseTester.packed_int32_ext"
- )
- }
- }
- extension Proto2Unittest_Int64ParseTester {
- enum Extensions {
- static let optional_int64_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_Int64ParseTester>(
- _protobuf_fieldNumber: 2000000,
- fieldName: "proto2_unittest.Int64ParseTester.optional_int64_ext"
- )
- static let repeated_int64_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_Int64ParseTester>(
- _protobuf_fieldNumber: 2000001,
- fieldName: "proto2_unittest.Int64ParseTester.repeated_int64_ext"
- )
- static let packed_int64_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.PackedExtensionField<SwiftProtobuf.ProtobufInt64>, Proto2Unittest_Int64ParseTester>(
- _protobuf_fieldNumber: 2000002,
- fieldName: "proto2_unittest.Int64ParseTester.packed_int64_ext"
- )
- }
- }
- extension Proto2Unittest_StringParseTester {
- enum Extensions {
- static let optional_string_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_StringParseTester>(
- _protobuf_fieldNumber: 2000000,
- fieldName: "proto2_unittest.StringParseTester.optional_string_ext"
- )
- static let repeated_string_ext = SwiftProtobuf.MessageExtension<SwiftProtobuf.RepeatedExtensionField<SwiftProtobuf.ProtobufString>, Proto2Unittest_StringParseTester>(
- _protobuf_fieldNumber: 2000001,
- fieldName: "proto2_unittest.StringParseTester.repeated_string_ext"
- )
- }
- }
- // MARK: - Code below here is support for the SwiftProtobuf runtime.
- fileprivate let _protobuf_package = "proto2_unittest"
- extension Proto2Unittest_ForeignEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 4: .same(proto: "FOREIGN_FOO"),
- 5: .same(proto: "FOREIGN_BAR"),
- 6: .same(proto: "FOREIGN_BAZ"),
- 32: .same(proto: "FOREIGN_BAX"),
- 123456: .same(proto: "FOREIGN_LARGE"),
- ]
- }
- extension Proto2Unittest_TestReservedEnumFields: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "UNKNOWN"),
- ]
- }
- extension Proto2Unittest_ForeignOpenEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "FOREIGN_OPEN_UNKNOWN"),
- 4: .same(proto: "FOREIGN_OPEN_FOO"),
- 5: .same(proto: "FOREIGN_OPEN_BAR"),
- 6: .same(proto: "FOREIGN_OPEN_BAZ"),
- 32: .same(proto: "FOREIGN_OPEN_BAX"),
- ]
- }
- extension Proto2Unittest_TestEnumWithDupValue: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .aliased(proto: "FOO1", aliases: ["FOO2"]),
- 2: .aliased(proto: "BAR1", aliases: ["BAR2"]),
- 3: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestSparseEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- -53452: .same(proto: "SPARSE_E"),
- -15: .same(proto: "SPARSE_D"),
- 0: .same(proto: "SPARSE_F"),
- 2: .same(proto: "SPARSE_G"),
- 123: .same(proto: "SPARSE_A"),
- 62374: .same(proto: "SPARSE_B"),
- 12589234: .same(proto: "SPARSE_C"),
- ]
- }
- extension Proto2Unittest_VeryLargeEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "ENUM_LABEL_DEFAULT"),
- 1: .same(proto: "ENUM_LABEL_1"),
- 2: .same(proto: "ENUM_LABEL_2"),
- 3: .same(proto: "ENUM_LABEL_3"),
- 4: .same(proto: "ENUM_LABEL_4"),
- 5: .same(proto: "ENUM_LABEL_5"),
- 6: .same(proto: "ENUM_LABEL_6"),
- 7: .same(proto: "ENUM_LABEL_7"),
- 8: .same(proto: "ENUM_LABEL_8"),
- 9: .same(proto: "ENUM_LABEL_9"),
- 10: .same(proto: "ENUM_LABEL_10"),
- 11: .same(proto: "ENUM_LABEL_11"),
- 12: .same(proto: "ENUM_LABEL_12"),
- 13: .same(proto: "ENUM_LABEL_13"),
- 14: .same(proto: "ENUM_LABEL_14"),
- 15: .same(proto: "ENUM_LABEL_15"),
- 16: .same(proto: "ENUM_LABEL_16"),
- 17: .same(proto: "ENUM_LABEL_17"),
- 18: .same(proto: "ENUM_LABEL_18"),
- 19: .same(proto: "ENUM_LABEL_19"),
- 20: .same(proto: "ENUM_LABEL_20"),
- 21: .same(proto: "ENUM_LABEL_21"),
- 22: .same(proto: "ENUM_LABEL_22"),
- 23: .same(proto: "ENUM_LABEL_23"),
- 24: .same(proto: "ENUM_LABEL_24"),
- 25: .same(proto: "ENUM_LABEL_25"),
- 26: .same(proto: "ENUM_LABEL_26"),
- 27: .same(proto: "ENUM_LABEL_27"),
- 28: .same(proto: "ENUM_LABEL_28"),
- 29: .same(proto: "ENUM_LABEL_29"),
- 30: .same(proto: "ENUM_LABEL_30"),
- 31: .same(proto: "ENUM_LABEL_31"),
- 32: .same(proto: "ENUM_LABEL_32"),
- 33: .same(proto: "ENUM_LABEL_33"),
- 34: .same(proto: "ENUM_LABEL_34"),
- 35: .same(proto: "ENUM_LABEL_35"),
- 36: .same(proto: "ENUM_LABEL_36"),
- 37: .same(proto: "ENUM_LABEL_37"),
- 38: .same(proto: "ENUM_LABEL_38"),
- 39: .same(proto: "ENUM_LABEL_39"),
- 40: .same(proto: "ENUM_LABEL_40"),
- 41: .same(proto: "ENUM_LABEL_41"),
- 42: .same(proto: "ENUM_LABEL_42"),
- 43: .same(proto: "ENUM_LABEL_43"),
- 44: .same(proto: "ENUM_LABEL_44"),
- 45: .same(proto: "ENUM_LABEL_45"),
- 46: .same(proto: "ENUM_LABEL_46"),
- 47: .same(proto: "ENUM_LABEL_47"),
- 48: .same(proto: "ENUM_LABEL_48"),
- 49: .same(proto: "ENUM_LABEL_49"),
- 50: .same(proto: "ENUM_LABEL_50"),
- 51: .same(proto: "ENUM_LABEL_51"),
- 52: .same(proto: "ENUM_LABEL_52"),
- 53: .same(proto: "ENUM_LABEL_53"),
- 54: .same(proto: "ENUM_LABEL_54"),
- 55: .same(proto: "ENUM_LABEL_55"),
- 56: .same(proto: "ENUM_LABEL_56"),
- 57: .same(proto: "ENUM_LABEL_57"),
- 58: .same(proto: "ENUM_LABEL_58"),
- 59: .same(proto: "ENUM_LABEL_59"),
- 60: .same(proto: "ENUM_LABEL_60"),
- 61: .same(proto: "ENUM_LABEL_61"),
- 62: .same(proto: "ENUM_LABEL_62"),
- 63: .same(proto: "ENUM_LABEL_63"),
- 64: .same(proto: "ENUM_LABEL_64"),
- 65: .same(proto: "ENUM_LABEL_65"),
- 66: .same(proto: "ENUM_LABEL_66"),
- 67: .same(proto: "ENUM_LABEL_67"),
- 68: .same(proto: "ENUM_LABEL_68"),
- 69: .same(proto: "ENUM_LABEL_69"),
- 70: .same(proto: "ENUM_LABEL_70"),
- 71: .same(proto: "ENUM_LABEL_71"),
- 72: .same(proto: "ENUM_LABEL_72"),
- 73: .same(proto: "ENUM_LABEL_73"),
- 74: .same(proto: "ENUM_LABEL_74"),
- 75: .same(proto: "ENUM_LABEL_75"),
- 76: .same(proto: "ENUM_LABEL_76"),
- 77: .same(proto: "ENUM_LABEL_77"),
- 78: .same(proto: "ENUM_LABEL_78"),
- 79: .same(proto: "ENUM_LABEL_79"),
- 80: .same(proto: "ENUM_LABEL_80"),
- 81: .same(proto: "ENUM_LABEL_81"),
- 82: .same(proto: "ENUM_LABEL_82"),
- 83: .same(proto: "ENUM_LABEL_83"),
- 84: .same(proto: "ENUM_LABEL_84"),
- 85: .same(proto: "ENUM_LABEL_85"),
- 86: .same(proto: "ENUM_LABEL_86"),
- 87: .same(proto: "ENUM_LABEL_87"),
- 88: .same(proto: "ENUM_LABEL_88"),
- 89: .same(proto: "ENUM_LABEL_89"),
- 90: .same(proto: "ENUM_LABEL_90"),
- 91: .same(proto: "ENUM_LABEL_91"),
- 92: .same(proto: "ENUM_LABEL_92"),
- 93: .same(proto: "ENUM_LABEL_93"),
- 94: .same(proto: "ENUM_LABEL_94"),
- 95: .same(proto: "ENUM_LABEL_95"),
- 96: .same(proto: "ENUM_LABEL_96"),
- 97: .same(proto: "ENUM_LABEL_97"),
- 98: .same(proto: "ENUM_LABEL_98"),
- 99: .same(proto: "ENUM_LABEL_99"),
- 100: .same(proto: "ENUM_LABEL_100"),
- ]
- }
- extension Proto2Unittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestAllTypes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_int32"),
- 2: .standard(proto: "optional_int64"),
- 3: .standard(proto: "optional_uint32"),
- 4: .standard(proto: "optional_uint64"),
- 5: .standard(proto: "optional_sint32"),
- 6: .standard(proto: "optional_sint64"),
- 7: .standard(proto: "optional_fixed32"),
- 8: .standard(proto: "optional_fixed64"),
- 9: .standard(proto: "optional_sfixed32"),
- 10: .standard(proto: "optional_sfixed64"),
- 11: .standard(proto: "optional_float"),
- 12: .standard(proto: "optional_double"),
- 13: .standard(proto: "optional_bool"),
- 14: .standard(proto: "optional_string"),
- 15: .standard(proto: "optional_bytes"),
- 16: .same(proto: "optionalgroup"),
- 16: .unique(proto: "OptionalGroup", json: "optionalgroup"),
- 18: .standard(proto: "optional_nested_message"),
- 19: .standard(proto: "optional_foreign_message"),
- 20: .standard(proto: "optional_import_message"),
- 21: .standard(proto: "optional_nested_enum"),
- 22: .standard(proto: "optional_foreign_enum"),
- 23: .standard(proto: "optional_import_enum"),
- 24: .standard(proto: "optional_string_piece"),
- 25: .standard(proto: "optional_cord"),
- 86: .standard(proto: "optional_bytes_cord"),
- 26: .standard(proto: "optional_public_import_message"),
- 27: .standard(proto: "optional_lazy_message"),
- 28: .standard(proto: "optional_unverified_lazy_message"),
- 31: .standard(proto: "repeated_int32"),
- 32: .standard(proto: "repeated_int64"),
- 33: .standard(proto: "repeated_uint32"),
- 34: .standard(proto: "repeated_uint64"),
- 35: .standard(proto: "repeated_sint32"),
- 36: .standard(proto: "repeated_sint64"),
- 37: .standard(proto: "repeated_fixed32"),
- 38: .standard(proto: "repeated_fixed64"),
- 39: .standard(proto: "repeated_sfixed32"),
- 40: .standard(proto: "repeated_sfixed64"),
- 41: .standard(proto: "repeated_float"),
- 42: .standard(proto: "repeated_double"),
- 43: .standard(proto: "repeated_bool"),
- 44: .standard(proto: "repeated_string"),
- 45: .standard(proto: "repeated_bytes"),
- 46: .same(proto: "repeatedgroup"),
- 46: .unique(proto: "RepeatedGroup", json: "repeatedgroup"),
- 48: .standard(proto: "repeated_nested_message"),
- 49: .standard(proto: "repeated_foreign_message"),
- 50: .standard(proto: "repeated_import_message"),
- 51: .standard(proto: "repeated_nested_enum"),
- 52: .standard(proto: "repeated_foreign_enum"),
- 53: .standard(proto: "repeated_import_enum"),
- 54: .standard(proto: "repeated_string_piece"),
- 55: .standard(proto: "repeated_cord"),
- 57: .standard(proto: "repeated_lazy_message"),
- 61: .standard(proto: "default_int32"),
- 62: .standard(proto: "default_int64"),
- 63: .standard(proto: "default_uint32"),
- 64: .standard(proto: "default_uint64"),
- 65: .standard(proto: "default_sint32"),
- 66: .standard(proto: "default_sint64"),
- 67: .standard(proto: "default_fixed32"),
- 68: .standard(proto: "default_fixed64"),
- 69: .standard(proto: "default_sfixed32"),
- 70: .standard(proto: "default_sfixed64"),
- 71: .standard(proto: "default_float"),
- 72: .standard(proto: "default_double"),
- 73: .standard(proto: "default_bool"),
- 74: .standard(proto: "default_string"),
- 75: .standard(proto: "default_bytes"),
- 81: .standard(proto: "default_nested_enum"),
- 82: .standard(proto: "default_foreign_enum"),
- 83: .standard(proto: "default_import_enum"),
- 84: .standard(proto: "default_string_piece"),
- 85: .standard(proto: "default_cord"),
- 111: .standard(proto: "oneof_uint32"),
- 112: .standard(proto: "oneof_nested_message"),
- 113: .standard(proto: "oneof_string"),
- 114: .standard(proto: "oneof_bytes"),
- 115: .standard(proto: "oneof_cord"),
- 116: .standard(proto: "oneof_string_piece"),
- 117: .standard(proto: "oneof_lazy_nested_message"),
- ]
- fileprivate class _StorageClass {
- var _optionalInt32: Int32? = nil
- var _optionalInt64: Int64? = nil
- var _optionalUint32: UInt32? = nil
- var _optionalUint64: UInt64? = nil
- var _optionalSint32: Int32? = nil
- var _optionalSint64: Int64? = nil
- var _optionalFixed32: UInt32? = nil
- var _optionalFixed64: UInt64? = nil
- var _optionalSfixed32: Int32? = nil
- var _optionalSfixed64: Int64? = nil
- var _optionalFloat: Float? = nil
- var _optionalDouble: Double? = nil
- var _optionalBool: Bool? = nil
- var _optionalString: String? = nil
- var _optionalBytes: Data? = nil
- var _optionalGroup: Proto2Unittest_TestAllTypes.OptionalGroup? = nil
- var _optionalNestedMessage: Proto2Unittest_TestAllTypes.NestedMessage? = nil
- var _optionalForeignMessage: Proto2Unittest_ForeignMessage? = nil
- var _optionalImportMessage: Proto2UnittestImport_ImportMessage? = nil
- var _optionalNestedEnum: Proto2Unittest_TestAllTypes.NestedEnum? = nil
- var _optionalForeignEnum: Proto2Unittest_ForeignEnum? = nil
- var _optionalImportEnum: Proto2UnittestImport_ImportEnum? = nil
- var _optionalStringPiece: String? = nil
- var _optionalCord: String? = nil
- var _optionalBytesCord: Data? = nil
- var _optionalPublicImportMessage: Proto2UnittestImport_PublicImportMessage? = nil
- var _optionalLazyMessage: Proto2Unittest_TestAllTypes.NestedMessage? = nil
- var _optionalUnverifiedLazyMessage: Proto2Unittest_TestAllTypes.NestedMessage? = nil
- var _repeatedInt32: [Int32] = []
- var _repeatedInt64: [Int64] = []
- var _repeatedUint32: [UInt32] = []
- var _repeatedUint64: [UInt64] = []
- var _repeatedSint32: [Int32] = []
- var _repeatedSint64: [Int64] = []
- var _repeatedFixed32: [UInt32] = []
- var _repeatedFixed64: [UInt64] = []
- var _repeatedSfixed32: [Int32] = []
- var _repeatedSfixed64: [Int64] = []
- var _repeatedFloat: [Float] = []
- var _repeatedDouble: [Double] = []
- var _repeatedBool: [Bool] = []
- var _repeatedString: [String] = []
- var _repeatedBytes: [Data] = []
- var _repeatedGroup: [Proto2Unittest_TestAllTypes.RepeatedGroup] = []
- var _repeatedNestedMessage: [Proto2Unittest_TestAllTypes.NestedMessage] = []
- var _repeatedForeignMessage: [Proto2Unittest_ForeignMessage] = []
- var _repeatedImportMessage: [Proto2UnittestImport_ImportMessage] = []
- var _repeatedNestedEnum: [Proto2Unittest_TestAllTypes.NestedEnum] = []
- var _repeatedForeignEnum: [Proto2Unittest_ForeignEnum] = []
- var _repeatedImportEnum: [Proto2UnittestImport_ImportEnum] = []
- var _repeatedStringPiece: [String] = []
- var _repeatedCord: [String] = []
- var _repeatedLazyMessage: [Proto2Unittest_TestAllTypes.NestedMessage] = []
- var _defaultInt32: Int32? = nil
- var _defaultInt64: Int64? = nil
- var _defaultUint32: UInt32? = nil
- var _defaultUint64: UInt64? = nil
- var _defaultSint32: Int32? = nil
- var _defaultSint64: Int64? = nil
- var _defaultFixed32: UInt32? = nil
- var _defaultFixed64: UInt64? = nil
- var _defaultSfixed32: Int32? = nil
- var _defaultSfixed64: Int64? = nil
- var _defaultFloat: Float? = nil
- var _defaultDouble: Double? = nil
- var _defaultBool: Bool? = nil
- var _defaultString: String? = nil
- var _defaultBytes: Data? = nil
- var _defaultNestedEnum: Proto2Unittest_TestAllTypes.NestedEnum? = nil
- var _defaultForeignEnum: Proto2Unittest_ForeignEnum? = nil
- var _defaultImportEnum: Proto2UnittestImport_ImportEnum? = nil
- var _defaultStringPiece: String? = nil
- var _defaultCord: String? = nil
- var _oneofField: Proto2Unittest_TestAllTypes.OneOf_OneofField?
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _optionalInt32 = source._optionalInt32
- _optionalInt64 = source._optionalInt64
- _optionalUint32 = source._optionalUint32
- _optionalUint64 = source._optionalUint64
- _optionalSint32 = source._optionalSint32
- _optionalSint64 = source._optionalSint64
- _optionalFixed32 = source._optionalFixed32
- _optionalFixed64 = source._optionalFixed64
- _optionalSfixed32 = source._optionalSfixed32
- _optionalSfixed64 = source._optionalSfixed64
- _optionalFloat = source._optionalFloat
- _optionalDouble = source._optionalDouble
- _optionalBool = source._optionalBool
- _optionalString = source._optionalString
- _optionalBytes = source._optionalBytes
- _optionalGroup = source._optionalGroup
- _optionalNestedMessage = source._optionalNestedMessage
- _optionalForeignMessage = source._optionalForeignMessage
- _optionalImportMessage = source._optionalImportMessage
- _optionalNestedEnum = source._optionalNestedEnum
- _optionalForeignEnum = source._optionalForeignEnum
- _optionalImportEnum = source._optionalImportEnum
- _optionalStringPiece = source._optionalStringPiece
- _optionalCord = source._optionalCord
- _optionalBytesCord = source._optionalBytesCord
- _optionalPublicImportMessage = source._optionalPublicImportMessage
- _optionalLazyMessage = source._optionalLazyMessage
- _optionalUnverifiedLazyMessage = source._optionalUnverifiedLazyMessage
- _repeatedInt32 = source._repeatedInt32
- _repeatedInt64 = source._repeatedInt64
- _repeatedUint32 = source._repeatedUint32
- _repeatedUint64 = source._repeatedUint64
- _repeatedSint32 = source._repeatedSint32
- _repeatedSint64 = source._repeatedSint64
- _repeatedFixed32 = source._repeatedFixed32
- _repeatedFixed64 = source._repeatedFixed64
- _repeatedSfixed32 = source._repeatedSfixed32
- _repeatedSfixed64 = source._repeatedSfixed64
- _repeatedFloat = source._repeatedFloat
- _repeatedDouble = source._repeatedDouble
- _repeatedBool = source._repeatedBool
- _repeatedString = source._repeatedString
- _repeatedBytes = source._repeatedBytes
- _repeatedGroup = source._repeatedGroup
- _repeatedNestedMessage = source._repeatedNestedMessage
- _repeatedForeignMessage = source._repeatedForeignMessage
- _repeatedImportMessage = source._repeatedImportMessage
- _repeatedNestedEnum = source._repeatedNestedEnum
- _repeatedForeignEnum = source._repeatedForeignEnum
- _repeatedImportEnum = source._repeatedImportEnum
- _repeatedStringPiece = source._repeatedStringPiece
- _repeatedCord = source._repeatedCord
- _repeatedLazyMessage = source._repeatedLazyMessage
- _defaultInt32 = source._defaultInt32
- _defaultInt64 = source._defaultInt64
- _defaultUint32 = source._defaultUint32
- _defaultUint64 = source._defaultUint64
- _defaultSint32 = source._defaultSint32
- _defaultSint64 = source._defaultSint64
- _defaultFixed32 = source._defaultFixed32
- _defaultFixed64 = source._defaultFixed64
- _defaultSfixed32 = source._defaultSfixed32
- _defaultSfixed64 = source._defaultSfixed64
- _defaultFloat = source._defaultFloat
- _defaultDouble = source._defaultDouble
- _defaultBool = source._defaultBool
- _defaultString = source._defaultString
- _defaultBytes = source._defaultBytes
- _defaultNestedEnum = source._defaultNestedEnum
- _defaultForeignEnum = source._defaultForeignEnum
- _defaultImportEnum = source._defaultImportEnum
- _defaultStringPiece = source._defaultStringPiece
- _defaultCord = source._defaultCord
- _oneofField = source._oneofField
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &_storage._optionalInt32) }()
- case 2: try { try decoder.decodeSingularInt64Field(value: &_storage._optionalInt64) }()
- case 3: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint32) }()
- case 4: try { try decoder.decodeSingularUInt64Field(value: &_storage._optionalUint64) }()
- case 5: try { try decoder.decodeSingularSInt32Field(value: &_storage._optionalSint32) }()
- case 6: try { try decoder.decodeSingularSInt64Field(value: &_storage._optionalSint64) }()
- case 7: try { try decoder.decodeSingularFixed32Field(value: &_storage._optionalFixed32) }()
- case 8: try { try decoder.decodeSingularFixed64Field(value: &_storage._optionalFixed64) }()
- case 9: try { try decoder.decodeSingularSFixed32Field(value: &_storage._optionalSfixed32) }()
- case 10: try { try decoder.decodeSingularSFixed64Field(value: &_storage._optionalSfixed64) }()
- case 11: try { try decoder.decodeSingularFloatField(value: &_storage._optionalFloat) }()
- case 12: try { try decoder.decodeSingularDoubleField(value: &_storage._optionalDouble) }()
- case 13: try { try decoder.decodeSingularBoolField(value: &_storage._optionalBool) }()
- case 14: try { try decoder.decodeSingularStringField(value: &_storage._optionalString) }()
- case 15: try { try decoder.decodeSingularBytesField(value: &_storage._optionalBytes) }()
- case 16: try { try decoder.decodeSingularGroupField(value: &_storage._optionalGroup) }()
- case 18: try { try decoder.decodeSingularMessageField(value: &_storage._optionalNestedMessage) }()
- case 19: try { try decoder.decodeSingularMessageField(value: &_storage._optionalForeignMessage) }()
- case 20: try { try decoder.decodeSingularMessageField(value: &_storage._optionalImportMessage) }()
- case 21: try { try decoder.decodeSingularEnumField(value: &_storage._optionalNestedEnum) }()
- case 22: try { try decoder.decodeSingularEnumField(value: &_storage._optionalForeignEnum) }()
- case 23: try { try decoder.decodeSingularEnumField(value: &_storage._optionalImportEnum) }()
- case 24: try { try decoder.decodeSingularStringField(value: &_storage._optionalStringPiece) }()
- case 25: try { try decoder.decodeSingularStringField(value: &_storage._optionalCord) }()
- case 26: try { try decoder.decodeSingularMessageField(value: &_storage._optionalPublicImportMessage) }()
- case 27: try { try decoder.decodeSingularMessageField(value: &_storage._optionalLazyMessage) }()
- case 28: try { try decoder.decodeSingularMessageField(value: &_storage._optionalUnverifiedLazyMessage) }()
- case 31: try { try decoder.decodeRepeatedInt32Field(value: &_storage._repeatedInt32) }()
- case 32: try { try decoder.decodeRepeatedInt64Field(value: &_storage._repeatedInt64) }()
- case 33: try { try decoder.decodeRepeatedUInt32Field(value: &_storage._repeatedUint32) }()
- case 34: try { try decoder.decodeRepeatedUInt64Field(value: &_storage._repeatedUint64) }()
- case 35: try { try decoder.decodeRepeatedSInt32Field(value: &_storage._repeatedSint32) }()
- case 36: try { try decoder.decodeRepeatedSInt64Field(value: &_storage._repeatedSint64) }()
- case 37: try { try decoder.decodeRepeatedFixed32Field(value: &_storage._repeatedFixed32) }()
- case 38: try { try decoder.decodeRepeatedFixed64Field(value: &_storage._repeatedFixed64) }()
- case 39: try { try decoder.decodeRepeatedSFixed32Field(value: &_storage._repeatedSfixed32) }()
- case 40: try { try decoder.decodeRepeatedSFixed64Field(value: &_storage._repeatedSfixed64) }()
- case 41: try { try decoder.decodeRepeatedFloatField(value: &_storage._repeatedFloat) }()
- case 42: try { try decoder.decodeRepeatedDoubleField(value: &_storage._repeatedDouble) }()
- case 43: try { try decoder.decodeRepeatedBoolField(value: &_storage._repeatedBool) }()
- case 44: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString) }()
- case 45: try { try decoder.decodeRepeatedBytesField(value: &_storage._repeatedBytes) }()
- case 46: try { try decoder.decodeRepeatedGroupField(value: &_storage._repeatedGroup) }()
- case 48: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedNestedMessage) }()
- case 49: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedForeignMessage) }()
- case 50: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedImportMessage) }()
- case 51: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedNestedEnum) }()
- case 52: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedForeignEnum) }()
- case 53: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedImportEnum) }()
- case 54: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedStringPiece) }()
- case 55: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedCord) }()
- case 57: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedLazyMessage) }()
- case 61: try { try decoder.decodeSingularInt32Field(value: &_storage._defaultInt32) }()
- case 62: try { try decoder.decodeSingularInt64Field(value: &_storage._defaultInt64) }()
- case 63: try { try decoder.decodeSingularUInt32Field(value: &_storage._defaultUint32) }()
- case 64: try { try decoder.decodeSingularUInt64Field(value: &_storage._defaultUint64) }()
- case 65: try { try decoder.decodeSingularSInt32Field(value: &_storage._defaultSint32) }()
- case 66: try { try decoder.decodeSingularSInt64Field(value: &_storage._defaultSint64) }()
- case 67: try { try decoder.decodeSingularFixed32Field(value: &_storage._defaultFixed32) }()
- case 68: try { try decoder.decodeSingularFixed64Field(value: &_storage._defaultFixed64) }()
- case 69: try { try decoder.decodeSingularSFixed32Field(value: &_storage._defaultSfixed32) }()
- case 70: try { try decoder.decodeSingularSFixed64Field(value: &_storage._defaultSfixed64) }()
- case 71: try { try decoder.decodeSingularFloatField(value: &_storage._defaultFloat) }()
- case 72: try { try decoder.decodeSingularDoubleField(value: &_storage._defaultDouble) }()
- case 73: try { try decoder.decodeSingularBoolField(value: &_storage._defaultBool) }()
- case 74: try { try decoder.decodeSingularStringField(value: &_storage._defaultString) }()
- case 75: try { try decoder.decodeSingularBytesField(value: &_storage._defaultBytes) }()
- case 81: try { try decoder.decodeSingularEnumField(value: &_storage._defaultNestedEnum) }()
- case 82: try { try decoder.decodeSingularEnumField(value: &_storage._defaultForeignEnum) }()
- case 83: try { try decoder.decodeSingularEnumField(value: &_storage._defaultImportEnum) }()
- case 84: try { try decoder.decodeSingularStringField(value: &_storage._defaultStringPiece) }()
- case 85: try { try decoder.decodeSingularStringField(value: &_storage._defaultCord) }()
- case 86: try { try decoder.decodeSingularBytesField(value: &_storage._optionalBytesCord) }()
- case 111: try {
- var v: UInt32?
- try decoder.decodeSingularUInt32Field(value: &v)
- if let v = v {
- if _storage._oneofField != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofUint32(v)
- }
- }()
- case 112: try {
- var v: Proto2Unittest_TestAllTypes.NestedMessage?
- var hadOneofValue = false
- if let current = _storage._oneofField {
- hadOneofValue = true
- if case .oneofNestedMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofNestedMessage(v)
- }
- }()
- case 113: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if _storage._oneofField != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofString(v)
- }
- }()
- case 114: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if _storage._oneofField != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofBytes(v)
- }
- }()
- case 115: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if _storage._oneofField != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofCord(v)
- }
- }()
- case 116: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if _storage._oneofField != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofStringPiece(v)
- }
- }()
- case 117: try {
- var v: Proto2Unittest_TestAllTypes.NestedMessage?
- var hadOneofValue = false
- if let current = _storage._oneofField {
- hadOneofValue = true
- if case .oneofLazyNestedMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- _storage._oneofField = .oneofLazyNestedMessage(v)
- }
- }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._optionalInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._optionalInt64 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._optionalUint32 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._optionalUint64 {
- try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._optionalSint32 {
- try visitor.visitSingularSInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._optionalSint64 {
- try visitor.visitSingularSInt64Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._optionalFixed32 {
- try visitor.visitSingularFixed32Field(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._optionalFixed64 {
- try visitor.visitSingularFixed64Field(value: v, fieldNumber: 8)
- } }()
- try { if let v = _storage._optionalSfixed32 {
- try visitor.visitSingularSFixed32Field(value: v, fieldNumber: 9)
- } }()
- try { if let v = _storage._optionalSfixed64 {
- try visitor.visitSingularSFixed64Field(value: v, fieldNumber: 10)
- } }()
- try { if let v = _storage._optionalFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 11)
- } }()
- try { if let v = _storage._optionalDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 12)
- } }()
- try { if let v = _storage._optionalBool {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 13)
- } }()
- try { if let v = _storage._optionalString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 14)
- } }()
- try { if let v = _storage._optionalBytes {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 15)
- } }()
- try { if let v = _storage._optionalGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 16)
- } }()
- try { if let v = _storage._optionalNestedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 18)
- } }()
- try { if let v = _storage._optionalForeignMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 19)
- } }()
- try { if let v = _storage._optionalImportMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 20)
- } }()
- try { if let v = _storage._optionalNestedEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 21)
- } }()
- try { if let v = _storage._optionalForeignEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 22)
- } }()
- try { if let v = _storage._optionalImportEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 23)
- } }()
- try { if let v = _storage._optionalStringPiece {
- try visitor.visitSingularStringField(value: v, fieldNumber: 24)
- } }()
- try { if let v = _storage._optionalCord {
- try visitor.visitSingularStringField(value: v, fieldNumber: 25)
- } }()
- try { if let v = _storage._optionalPublicImportMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 26)
- } }()
- try { if let v = _storage._optionalLazyMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 27)
- } }()
- try { if let v = _storage._optionalUnverifiedLazyMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 28)
- } }()
- if !_storage._repeatedInt32.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._repeatedInt32, fieldNumber: 31)
- }
- if !_storage._repeatedInt64.isEmpty {
- try visitor.visitRepeatedInt64Field(value: _storage._repeatedInt64, fieldNumber: 32)
- }
- if !_storage._repeatedUint32.isEmpty {
- try visitor.visitRepeatedUInt32Field(value: _storage._repeatedUint32, fieldNumber: 33)
- }
- if !_storage._repeatedUint64.isEmpty {
- try visitor.visitRepeatedUInt64Field(value: _storage._repeatedUint64, fieldNumber: 34)
- }
- if !_storage._repeatedSint32.isEmpty {
- try visitor.visitRepeatedSInt32Field(value: _storage._repeatedSint32, fieldNumber: 35)
- }
- if !_storage._repeatedSint64.isEmpty {
- try visitor.visitRepeatedSInt64Field(value: _storage._repeatedSint64, fieldNumber: 36)
- }
- if !_storage._repeatedFixed32.isEmpty {
- try visitor.visitRepeatedFixed32Field(value: _storage._repeatedFixed32, fieldNumber: 37)
- }
- if !_storage._repeatedFixed64.isEmpty {
- try visitor.visitRepeatedFixed64Field(value: _storage._repeatedFixed64, fieldNumber: 38)
- }
- if !_storage._repeatedSfixed32.isEmpty {
- try visitor.visitRepeatedSFixed32Field(value: _storage._repeatedSfixed32, fieldNumber: 39)
- }
- if !_storage._repeatedSfixed64.isEmpty {
- try visitor.visitRepeatedSFixed64Field(value: _storage._repeatedSfixed64, fieldNumber: 40)
- }
- if !_storage._repeatedFloat.isEmpty {
- try visitor.visitRepeatedFloatField(value: _storage._repeatedFloat, fieldNumber: 41)
- }
- if !_storage._repeatedDouble.isEmpty {
- try visitor.visitRepeatedDoubleField(value: _storage._repeatedDouble, fieldNumber: 42)
- }
- if !_storage._repeatedBool.isEmpty {
- try visitor.visitRepeatedBoolField(value: _storage._repeatedBool, fieldNumber: 43)
- }
- if !_storage._repeatedString.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString, fieldNumber: 44)
- }
- if !_storage._repeatedBytes.isEmpty {
- try visitor.visitRepeatedBytesField(value: _storage._repeatedBytes, fieldNumber: 45)
- }
- if !_storage._repeatedGroup.isEmpty {
- try visitor.visitRepeatedGroupField(value: _storage._repeatedGroup, fieldNumber: 46)
- }
- if !_storage._repeatedNestedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedNestedMessage, fieldNumber: 48)
- }
- if !_storage._repeatedForeignMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedForeignMessage, fieldNumber: 49)
- }
- if !_storage._repeatedImportMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedImportMessage, fieldNumber: 50)
- }
- if !_storage._repeatedNestedEnum.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedNestedEnum, fieldNumber: 51)
- }
- if !_storage._repeatedForeignEnum.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedForeignEnum, fieldNumber: 52)
- }
- if !_storage._repeatedImportEnum.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedImportEnum, fieldNumber: 53)
- }
- if !_storage._repeatedStringPiece.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedStringPiece, fieldNumber: 54)
- }
- if !_storage._repeatedCord.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedCord, fieldNumber: 55)
- }
- if !_storage._repeatedLazyMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedLazyMessage, fieldNumber: 57)
- }
- try { if let v = _storage._defaultInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 61)
- } }()
- try { if let v = _storage._defaultInt64 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 62)
- } }()
- try { if let v = _storage._defaultUint32 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = _storage._defaultUint64 {
- try visitor.visitSingularUInt64Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = _storage._defaultSint32 {
- try visitor.visitSingularSInt32Field(value: v, fieldNumber: 65)
- } }()
- try { if let v = _storage._defaultSint64 {
- try visitor.visitSingularSInt64Field(value: v, fieldNumber: 66)
- } }()
- try { if let v = _storage._defaultFixed32 {
- try visitor.visitSingularFixed32Field(value: v, fieldNumber: 67)
- } }()
- try { if let v = _storage._defaultFixed64 {
- try visitor.visitSingularFixed64Field(value: v, fieldNumber: 68)
- } }()
- try { if let v = _storage._defaultSfixed32 {
- try visitor.visitSingularSFixed32Field(value: v, fieldNumber: 69)
- } }()
- try { if let v = _storage._defaultSfixed64 {
- try visitor.visitSingularSFixed64Field(value: v, fieldNumber: 70)
- } }()
- try { if let v = _storage._defaultFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 71)
- } }()
- try { if let v = _storage._defaultDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 72)
- } }()
- try { if let v = _storage._defaultBool {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 73)
- } }()
- try { if let v = _storage._defaultString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 74)
- } }()
- try { if let v = _storage._defaultBytes {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 75)
- } }()
- try { if let v = _storage._defaultNestedEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 81)
- } }()
- try { if let v = _storage._defaultForeignEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 82)
- } }()
- try { if let v = _storage._defaultImportEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 83)
- } }()
- try { if let v = _storage._defaultStringPiece {
- try visitor.visitSingularStringField(value: v, fieldNumber: 84)
- } }()
- try { if let v = _storage._defaultCord {
- try visitor.visitSingularStringField(value: v, fieldNumber: 85)
- } }()
- try { if let v = _storage._optionalBytesCord {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 86)
- } }()
- switch _storage._oneofField {
- case .oneofUint32?: try {
- guard case .oneofUint32(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 111)
- }()
- case .oneofNestedMessage?: try {
- guard case .oneofNestedMessage(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 112)
- }()
- case .oneofString?: try {
- guard case .oneofString(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 113)
- }()
- case .oneofBytes?: try {
- guard case .oneofBytes(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularBytesField(value: v, fieldNumber: 114)
- }()
- case .oneofCord?: try {
- guard case .oneofCord(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 115)
- }()
- case .oneofStringPiece?: try {
- guard case .oneofStringPiece(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 116)
- }()
- case .oneofLazyNestedMessage?: try {
- guard case .oneofLazyNestedMessage(let v)? = _storage._oneofField else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 117)
- }()
- case nil: break
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestAllTypes, rhs: Proto2Unittest_TestAllTypes) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._optionalInt32 != rhs_storage._optionalInt32 {return false}
- if _storage._optionalInt64 != rhs_storage._optionalInt64 {return false}
- if _storage._optionalUint32 != rhs_storage._optionalUint32 {return false}
- if _storage._optionalUint64 != rhs_storage._optionalUint64 {return false}
- if _storage._optionalSint32 != rhs_storage._optionalSint32 {return false}
- if _storage._optionalSint64 != rhs_storage._optionalSint64 {return false}
- if _storage._optionalFixed32 != rhs_storage._optionalFixed32 {return false}
- if _storage._optionalFixed64 != rhs_storage._optionalFixed64 {return false}
- if _storage._optionalSfixed32 != rhs_storage._optionalSfixed32 {return false}
- if _storage._optionalSfixed64 != rhs_storage._optionalSfixed64 {return false}
- if _storage._optionalFloat != rhs_storage._optionalFloat {return false}
- if _storage._optionalDouble != rhs_storage._optionalDouble {return false}
- if _storage._optionalBool != rhs_storage._optionalBool {return false}
- if _storage._optionalString != rhs_storage._optionalString {return false}
- if _storage._optionalBytes != rhs_storage._optionalBytes {return false}
- if _storage._optionalGroup != rhs_storage._optionalGroup {return false}
- if _storage._optionalNestedMessage != rhs_storage._optionalNestedMessage {return false}
- if _storage._optionalForeignMessage != rhs_storage._optionalForeignMessage {return false}
- if _storage._optionalImportMessage != rhs_storage._optionalImportMessage {return false}
- if _storage._optionalNestedEnum != rhs_storage._optionalNestedEnum {return false}
- if _storage._optionalForeignEnum != rhs_storage._optionalForeignEnum {return false}
- if _storage._optionalImportEnum != rhs_storage._optionalImportEnum {return false}
- if _storage._optionalStringPiece != rhs_storage._optionalStringPiece {return false}
- if _storage._optionalCord != rhs_storage._optionalCord {return false}
- if _storage._optionalBytesCord != rhs_storage._optionalBytesCord {return false}
- if _storage._optionalPublicImportMessage != rhs_storage._optionalPublicImportMessage {return false}
- if _storage._optionalLazyMessage != rhs_storage._optionalLazyMessage {return false}
- if _storage._optionalUnverifiedLazyMessage != rhs_storage._optionalUnverifiedLazyMessage {return false}
- if _storage._repeatedInt32 != rhs_storage._repeatedInt32 {return false}
- if _storage._repeatedInt64 != rhs_storage._repeatedInt64 {return false}
- if _storage._repeatedUint32 != rhs_storage._repeatedUint32 {return false}
- if _storage._repeatedUint64 != rhs_storage._repeatedUint64 {return false}
- if _storage._repeatedSint32 != rhs_storage._repeatedSint32 {return false}
- if _storage._repeatedSint64 != rhs_storage._repeatedSint64 {return false}
- if _storage._repeatedFixed32 != rhs_storage._repeatedFixed32 {return false}
- if _storage._repeatedFixed64 != rhs_storage._repeatedFixed64 {return false}
- if _storage._repeatedSfixed32 != rhs_storage._repeatedSfixed32 {return false}
- if _storage._repeatedSfixed64 != rhs_storage._repeatedSfixed64 {return false}
- if _storage._repeatedFloat != rhs_storage._repeatedFloat {return false}
- if _storage._repeatedDouble != rhs_storage._repeatedDouble {return false}
- if _storage._repeatedBool != rhs_storage._repeatedBool {return false}
- if _storage._repeatedString != rhs_storage._repeatedString {return false}
- if _storage._repeatedBytes != rhs_storage._repeatedBytes {return false}
- if _storage._repeatedGroup != rhs_storage._repeatedGroup {return false}
- if _storage._repeatedNestedMessage != rhs_storage._repeatedNestedMessage {return false}
- if _storage._repeatedForeignMessage != rhs_storage._repeatedForeignMessage {return false}
- if _storage._repeatedImportMessage != rhs_storage._repeatedImportMessage {return false}
- if _storage._repeatedNestedEnum != rhs_storage._repeatedNestedEnum {return false}
- if _storage._repeatedForeignEnum != rhs_storage._repeatedForeignEnum {return false}
- if _storage._repeatedImportEnum != rhs_storage._repeatedImportEnum {return false}
- if _storage._repeatedStringPiece != rhs_storage._repeatedStringPiece {return false}
- if _storage._repeatedCord != rhs_storage._repeatedCord {return false}
- if _storage._repeatedLazyMessage != rhs_storage._repeatedLazyMessage {return false}
- if _storage._defaultInt32 != rhs_storage._defaultInt32 {return false}
- if _storage._defaultInt64 != rhs_storage._defaultInt64 {return false}
- if _storage._defaultUint32 != rhs_storage._defaultUint32 {return false}
- if _storage._defaultUint64 != rhs_storage._defaultUint64 {return false}
- if _storage._defaultSint32 != rhs_storage._defaultSint32 {return false}
- if _storage._defaultSint64 != rhs_storage._defaultSint64 {return false}
- if _storage._defaultFixed32 != rhs_storage._defaultFixed32 {return false}
- if _storage._defaultFixed64 != rhs_storage._defaultFixed64 {return false}
- if _storage._defaultSfixed32 != rhs_storage._defaultSfixed32 {return false}
- if _storage._defaultSfixed64 != rhs_storage._defaultSfixed64 {return false}
- if _storage._defaultFloat != rhs_storage._defaultFloat {return false}
- if _storage._defaultDouble != rhs_storage._defaultDouble {return false}
- if _storage._defaultBool != rhs_storage._defaultBool {return false}
- if _storage._defaultString != rhs_storage._defaultString {return false}
- if _storage._defaultBytes != rhs_storage._defaultBytes {return false}
- if _storage._defaultNestedEnum != rhs_storage._defaultNestedEnum {return false}
- if _storage._defaultForeignEnum != rhs_storage._defaultForeignEnum {return false}
- if _storage._defaultImportEnum != rhs_storage._defaultImportEnum {return false}
- if _storage._defaultStringPiece != rhs_storage._defaultStringPiece {return false}
- if _storage._defaultCord != rhs_storage._defaultCord {return false}
- if _storage._oneofField != rhs_storage._oneofField {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestAllTypes.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- -1: .same(proto: "NEG"),
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 3: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestAllTypes.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestAllTypes.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "bb"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._bb) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._bb {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestAllTypes.NestedMessage, rhs: Proto2Unittest_TestAllTypes.NestedMessage) -> Bool {
- if lhs._bb != rhs._bb {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestAllTypes.OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestAllTypes.protoMessageName + ".OptionalGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 17: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 17: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 17)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestAllTypes.OptionalGroup, rhs: Proto2Unittest_TestAllTypes.OptionalGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestAllTypes.RepeatedGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestAllTypes.protoMessageName + ".RepeatedGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 47: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 47: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 47)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestAllTypes.RepeatedGroup, rhs: Proto2Unittest_TestAllTypes.RepeatedGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_NestedTestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".NestedTestAllTypes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "child"),
- 2: .same(proto: "payload"),
- 3: .standard(proto: "repeated_child"),
- 4: .standard(proto: "lazy_child"),
- 5: .standard(proto: "eager_child"),
- ]
- fileprivate class _StorageClass {
- var _child: Proto2Unittest_NestedTestAllTypes? = nil
- var _payload: Proto2Unittest_TestAllTypes? = nil
- var _repeatedChild: [Proto2Unittest_NestedTestAllTypes] = []
- var _lazyChild: Proto2Unittest_NestedTestAllTypes? = nil
- var _eagerChild: Proto2Unittest_TestAllTypes? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _child = source._child
- _payload = source._payload
- _repeatedChild = source._repeatedChild
- _lazyChild = source._lazyChild
- _eagerChild = source._eagerChild
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._child) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &_storage._payload) }()
- case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedChild) }()
- case 4: try { try decoder.decodeSingularMessageField(value: &_storage._lazyChild) }()
- case 5: try { try decoder.decodeSingularMessageField(value: &_storage._eagerChild) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._child {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._payload {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- if !_storage._repeatedChild.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedChild, fieldNumber: 3)
- }
- try { if let v = _storage._lazyChild {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._eagerChild {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_NestedTestAllTypes, rhs: Proto2Unittest_NestedTestAllTypes) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._child != rhs_storage._child {return false}
- if _storage._payload != rhs_storage._payload {return false}
- if _storage._repeatedChild != rhs_storage._repeatedChild {return false}
- if _storage._lazyChild != rhs_storage._lazyChild {return false}
- if _storage._eagerChild != rhs_storage._eagerChild {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDeprecatedFields: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestDeprecatedFields"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "deprecated_int32"),
- 4: .standard(proto: "deprecated_repeated_string"),
- 3: .standard(proto: "deprecated_message"),
- 2: .standard(proto: "deprecated_int32_in_oneof"),
- 5: .same(proto: "nested"),
- ]
- fileprivate class _StorageClass {
- var _deprecatedInt32: Int32? = nil
- var _deprecatedRepeatedString: [String] = []
- var _deprecatedMessage: Proto2Unittest_TestAllTypes.NestedMessage? = nil
- var _oneofFields: Proto2Unittest_TestDeprecatedFields.OneOf_OneofFields?
- var _nested: Proto2Unittest_TestDeprecatedFields? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _deprecatedInt32 = source._deprecatedInt32
- _deprecatedRepeatedString = source._deprecatedRepeatedString
- _deprecatedMessage = source._deprecatedMessage
- _oneofFields = source._oneofFields
- _nested = source._nested
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &_storage._deprecatedInt32) }()
- case 2: try {
- var v: Int32?
- try decoder.decodeSingularInt32Field(value: &v)
- if let v = v {
- if _storage._oneofFields != nil {try decoder.handleConflictingOneOf()}
- _storage._oneofFields = .deprecatedInt32InOneof(v)
- }
- }()
- case 3: try { try decoder.decodeSingularMessageField(value: &_storage._deprecatedMessage) }()
- case 4: try { try decoder.decodeRepeatedStringField(value: &_storage._deprecatedRepeatedString) }()
- case 5: try { try decoder.decodeSingularMessageField(value: &_storage._nested) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._deprecatedInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if case .deprecatedInt32InOneof(let v)? = _storage._oneofFields {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._deprecatedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- if !_storage._deprecatedRepeatedString.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._deprecatedRepeatedString, fieldNumber: 4)
- }
- try { if let v = _storage._nested {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDeprecatedFields, rhs: Proto2Unittest_TestDeprecatedFields) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._deprecatedInt32 != rhs_storage._deprecatedInt32 {return false}
- if _storage._deprecatedRepeatedString != rhs_storage._deprecatedRepeatedString {return false}
- if _storage._deprecatedMessage != rhs_storage._deprecatedMessage {return false}
- if _storage._oneofFields != rhs_storage._oneofFields {return false}
- if _storage._nested != rhs_storage._nested {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDeprecatedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestDeprecatedMessage"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDeprecatedMessage, rhs: Proto2Unittest_TestDeprecatedMessage) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_ForeignMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".ForeignMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "c"),
- 2: .same(proto: "d"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._c) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._d) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._c {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._d {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_ForeignMessage, rhs: Proto2Unittest_ForeignMessage) -> Bool {
- if lhs._c != rhs._c {return false}
- if lhs._d != rhs._d {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestReservedFields: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestReservedFields"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestReservedFields, rhs: Proto2Unittest_TestReservedFields) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestAllExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestAllExtensions"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (1 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestAllExtensions.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestAllExtensions, rhs: Proto2Unittest_TestAllExtensions) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_OptionalGroup_extension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".OptionalGroup_extension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 17: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 17: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 17)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_OptionalGroup_extension, rhs: Proto2Unittest_OptionalGroup_extension) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_RepeatedGroup_extension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".RepeatedGroup_extension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 47: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 47: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 47)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_RepeatedGroup_extension, rhs: Proto2Unittest_RepeatedGroup_extension) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMixedFieldsAndExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMixedFieldsAndExtensions"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 3: .same(proto: "b"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 3: try { try decoder.decodeRepeatedFixed32Field(value: &self.b) }()
- case 2, 4:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestMixedFieldsAndExtensions.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2, end: 3)
- if !self.b.isEmpty {
- try visitor.visitRepeatedFixed32Field(value: self.b, fieldNumber: 3)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 4, end: 5)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMixedFieldsAndExtensions, rhs: Proto2Unittest_TestMixedFieldsAndExtensions) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.b != rhs.b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 16: .same(proto: "optionalgroup"),
- 16: .unique(proto: "OptionalGroup", json: "optionalgroup"),
- 22: .standard(proto: "optional_foreign_enum"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 16: try { try decoder.decodeSingularGroupField(value: &self._optionalGroup) }()
- case 22: try { try decoder.decodeSingularEnumField(value: &self._optionalForeignEnum) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 16)
- } }()
- try { if let v = self._optionalForeignEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 22)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestGroup, rhs: Proto2Unittest_TestGroup) -> Bool {
- if lhs._optionalGroup != rhs._optionalGroup {return false}
- if lhs._optionalForeignEnum != rhs._optionalForeignEnum {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestGroup.OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestGroup.protoMessageName + ".OptionalGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 17: .same(proto: "a"),
- 89: .same(proto: "zz"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 17: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 89: try { try decoder.decodeSingularInt32Field(value: &self._zz) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 17)
- } }()
- try { if let v = self._zz {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 89)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestGroup.OptionalGroup, rhs: Proto2Unittest_TestGroup.OptionalGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._zz != rhs._zz {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestGroupExtension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestGroupExtension"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (1 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestGroupExtension.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestGroupExtension, rhs: Proto2Unittest_TestGroupExtension) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedExtension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedExtension"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedExtension, rhs: Proto2Unittest_TestNestedExtension) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedExtension.OptionalGroup_extension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestNestedExtension.protoMessageName + ".OptionalGroup_extension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 17: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 17: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 17)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedExtension.OptionalGroup_extension, rhs: Proto2Unittest_TestNestedExtension.OptionalGroup_extension) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestChildExtension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestChildExtension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "b"),
- 3: .standard(proto: "optional_extension"),
- ]
- public var isInitialized: Bool {
- if let v = self._optionalExtension, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._a) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._b) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._optionalExtension) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalExtension {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestChildExtension, rhs: Proto2Unittest_TestChildExtension) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs._optionalExtension != rhs._optionalExtension {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestChildExtensionData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestChildExtensionData"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "b"),
- 3: .standard(proto: "optional_extension"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._a) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._b) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._optionalExtension) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalExtension {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestChildExtensionData, rhs: Proto2Unittest_TestChildExtensionData) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs._optionalExtension != rhs._optionalExtension {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestChildExtensionData.protoMessageName + ".NestedTestAllExtensionsData"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 409707008: .same(proto: "dynamic"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 409707008: try { try decoder.decodeSingularMessageField(value: &self._dynamic) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._dynamic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 409707008)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData, rhs: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData) -> Bool {
- if lhs._dynamic != rhs._dynamic {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.protoMessageName + ".NestedDynamicExtensions"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "b"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._b) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions, rhs: Proto2Unittest_TestChildExtensionData.NestedTestAllExtensionsData.NestedDynamicExtensions) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedChildExtension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedChildExtension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "child"),
- ]
- public var isInitialized: Bool {
- if let v = self._child, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._child) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._child {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedChildExtension, rhs: Proto2Unittest_TestNestedChildExtension) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._child != rhs._child {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedChildExtensionData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedChildExtensionData"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "child"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._child) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._child {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedChildExtensionData, rhs: Proto2Unittest_TestNestedChildExtensionData) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._child != rhs._child {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredEnum: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredEnum"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "required_enum"),
- 2: .same(proto: "a"),
- ]
- public var isInitialized: Bool {
- if self._requiredEnum == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredEnum, rhs: Proto2Unittest_TestRequiredEnum) -> Bool {
- if lhs._requiredEnum != rhs._requiredEnum {return false}
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredOpenEnum: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredOpenEnum"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "required_enum"),
- 2: .same(proto: "a"),
- ]
- public var isInitialized: Bool {
- if self._requiredEnum == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredOpenEnum, rhs: Proto2Unittest_TestRequiredOpenEnum) -> Bool {
- if lhs._requiredEnum != rhs._requiredEnum {return false}
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredEnumNoMask: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredEnumNoMask"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "required_enum"),
- 2: .same(proto: "a"),
- ]
- public var isInitialized: Bool {
- if self._requiredEnum == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredEnumNoMask, rhs: Proto2Unittest_TestRequiredEnumNoMask) -> Bool {
- if lhs._requiredEnum != rhs._requiredEnum {return false}
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredEnumNoMask.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- -1: .same(proto: "BAZ"),
- 0: .same(proto: "UNSPECIFIED"),
- 2: .same(proto: "FOO"),
- 100: .same(proto: "BAR"),
- ]
- }
- extension Proto2Unittest_TestRequiredEnumMulti: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredEnumMulti"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 4: .standard(proto: "required_enum_4"),
- 3: .standard(proto: "a_3"),
- 2: .standard(proto: "required_enum_2"),
- 1: .standard(proto: "required_enum_1"),
- ]
- public var isInitialized: Bool {
- if self._requiredEnum4 == nil {return false}
- if self._requiredEnum2 == nil {return false}
- if self._requiredEnum1 == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum1) }()
- case 2: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._a3) }()
- case 4: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum4) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredEnum1 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._requiredEnum2 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._a3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._requiredEnum4 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredEnumMulti, rhs: Proto2Unittest_TestRequiredEnumMulti) -> Bool {
- if lhs._requiredEnum4 != rhs._requiredEnum4 {return false}
- if lhs._a3 != rhs._a3 {return false}
- if lhs._requiredEnum2 != rhs._requiredEnum2 {return false}
- if lhs._requiredEnum1 != rhs._requiredEnum1 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredEnumMulti.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "UNSPECIFIED"),
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 100: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestRequiredNoMaskMulti: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredNoMaskMulti"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 80: .standard(proto: "required_fixed32_80"),
- 70: .standard(proto: "required_fixed32_70"),
- 64: .standard(proto: "required_enum_64"),
- 4: .standard(proto: "required_enum_4"),
- 3: .standard(proto: "a_3"),
- 2: .standard(proto: "required_enum_2"),
- 1: .standard(proto: "required_enum_1"),
- ]
- public var isInitialized: Bool {
- if self._requiredFixed3280 == nil {return false}
- if self._requiredFixed3270 == nil {return false}
- if self._requiredEnum64 == nil {return false}
- if self._requiredEnum4 == nil {return false}
- if self._requiredEnum2 == nil {return false}
- if self._requiredEnum1 == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum1) }()
- case 2: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._a3) }()
- case 4: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum4) }()
- case 64: try { try decoder.decodeSingularEnumField(value: &self._requiredEnum64) }()
- case 70: try { try decoder.decodeSingularFixed32Field(value: &self._requiredFixed3270) }()
- case 80: try { try decoder.decodeSingularFixed32Field(value: &self._requiredFixed3280) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredEnum1 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._requiredEnum2 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._a3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._requiredEnum4 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._requiredEnum64 {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 64)
- } }()
- try { if let v = self._requiredFixed3270 {
- try visitor.visitSingularFixed32Field(value: v, fieldNumber: 70)
- } }()
- try { if let v = self._requiredFixed3280 {
- try visitor.visitSingularFixed32Field(value: v, fieldNumber: 80)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredNoMaskMulti, rhs: Proto2Unittest_TestRequiredNoMaskMulti) -> Bool {
- if lhs._requiredFixed3280 != rhs._requiredFixed3280 {return false}
- if lhs._requiredFixed3270 != rhs._requiredFixed3270 {return false}
- if lhs._requiredEnum64 != rhs._requiredEnum64 {return false}
- if lhs._requiredEnum4 != rhs._requiredEnum4 {return false}
- if lhs._a3 != rhs._a3 {return false}
- if lhs._requiredEnum2 != rhs._requiredEnum2 {return false}
- if lhs._requiredEnum1 != rhs._requiredEnum1 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredNoMaskMulti.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "UNSPECIFIED"),
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 100: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestRequired: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequired"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "dummy2"),
- 3: .same(proto: "b"),
- 4: .same(proto: "dummy4"),
- 5: .same(proto: "dummy5"),
- 6: .same(proto: "dummy6"),
- 7: .same(proto: "dummy7"),
- 8: .same(proto: "dummy8"),
- 9: .same(proto: "dummy9"),
- 10: .same(proto: "dummy10"),
- 11: .same(proto: "dummy11"),
- 12: .same(proto: "dummy12"),
- 13: .same(proto: "dummy13"),
- 14: .same(proto: "dummy14"),
- 15: .same(proto: "dummy15"),
- 16: .same(proto: "dummy16"),
- 17: .same(proto: "dummy17"),
- 18: .same(proto: "dummy18"),
- 19: .same(proto: "dummy19"),
- 20: .same(proto: "dummy20"),
- 21: .same(proto: "dummy21"),
- 22: .same(proto: "dummy22"),
- 23: .same(proto: "dummy23"),
- 24: .same(proto: "dummy24"),
- 25: .same(proto: "dummy25"),
- 26: .same(proto: "dummy26"),
- 27: .same(proto: "dummy27"),
- 28: .same(proto: "dummy28"),
- 29: .same(proto: "dummy29"),
- 30: .same(proto: "dummy30"),
- 31: .same(proto: "dummy31"),
- 32: .same(proto: "dummy32"),
- 33: .same(proto: "c"),
- 34: .standard(proto: "optional_foreign"),
- ]
- fileprivate class _StorageClass {
- var _a: Int32? = nil
- var _dummy2: Int32? = nil
- var _b: Int32? = nil
- var _dummy4: Int32? = nil
- var _dummy5: Int32? = nil
- var _dummy6: Int32? = nil
- var _dummy7: Int32? = nil
- var _dummy8: Int32? = nil
- var _dummy9: Int32? = nil
- var _dummy10: Int32? = nil
- var _dummy11: Int32? = nil
- var _dummy12: Int32? = nil
- var _dummy13: Int32? = nil
- var _dummy14: Int32? = nil
- var _dummy15: Int32? = nil
- var _dummy16: Int32? = nil
- var _dummy17: Int32? = nil
- var _dummy18: Int32? = nil
- var _dummy19: Int32? = nil
- var _dummy20: Int32? = nil
- var _dummy21: Int32? = nil
- var _dummy22: Int32? = nil
- var _dummy23: Int32? = nil
- var _dummy24: Int32? = nil
- var _dummy25: Int32? = nil
- var _dummy26: Int32? = nil
- var _dummy27: Int32? = nil
- var _dummy28: Int32? = nil
- var _dummy29: Int32? = nil
- var _dummy30: Int32? = nil
- var _dummy31: Int32? = nil
- var _dummy32: Int32? = nil
- var _c: Int32? = nil
- var _optionalForeign: Proto2Unittest_ForeignMessage? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _a = source._a
- _dummy2 = source._dummy2
- _b = source._b
- _dummy4 = source._dummy4
- _dummy5 = source._dummy5
- _dummy6 = source._dummy6
- _dummy7 = source._dummy7
- _dummy8 = source._dummy8
- _dummy9 = source._dummy9
- _dummy10 = source._dummy10
- _dummy11 = source._dummy11
- _dummy12 = source._dummy12
- _dummy13 = source._dummy13
- _dummy14 = source._dummy14
- _dummy15 = source._dummy15
- _dummy16 = source._dummy16
- _dummy17 = source._dummy17
- _dummy18 = source._dummy18
- _dummy19 = source._dummy19
- _dummy20 = source._dummy20
- _dummy21 = source._dummy21
- _dummy22 = source._dummy22
- _dummy23 = source._dummy23
- _dummy24 = source._dummy24
- _dummy25 = source._dummy25
- _dummy26 = source._dummy26
- _dummy27 = source._dummy27
- _dummy28 = source._dummy28
- _dummy29 = source._dummy29
- _dummy30 = source._dummy30
- _dummy31 = source._dummy31
- _dummy32 = source._dummy32
- _c = source._c
- _optionalForeign = source._optionalForeign
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- public var isInitialized: Bool {
- return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- if _storage._a == nil {return false}
- if _storage._b == nil {return false}
- if _storage._c == nil {return false}
- return true
- }
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &_storage._a) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &_storage._b) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy4) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy5) }()
- case 6: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy6) }()
- case 7: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy7) }()
- case 8: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy8) }()
- case 9: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy9) }()
- case 10: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy10) }()
- case 11: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy11) }()
- case 12: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy12) }()
- case 13: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy13) }()
- case 14: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy14) }()
- case 15: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy15) }()
- case 16: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy16) }()
- case 17: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy17) }()
- case 18: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy18) }()
- case 19: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy19) }()
- case 20: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy20) }()
- case 21: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy21) }()
- case 22: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy22) }()
- case 23: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy23) }()
- case 24: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy24) }()
- case 25: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy25) }()
- case 26: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy26) }()
- case 27: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy27) }()
- case 28: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy28) }()
- case 29: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy29) }()
- case 30: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy30) }()
- case 31: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy31) }()
- case 32: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy32) }()
- case 33: try { try decoder.decodeSingularInt32Field(value: &_storage._c) }()
- case 34: try { try decoder.decodeSingularMessageField(value: &_storage._optionalForeign) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._dummy2 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._b {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._dummy4 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._dummy5 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._dummy6 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._dummy7 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._dummy8 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 8)
- } }()
- try { if let v = _storage._dummy9 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
- } }()
- try { if let v = _storage._dummy10 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 10)
- } }()
- try { if let v = _storage._dummy11 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 11)
- } }()
- try { if let v = _storage._dummy12 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 12)
- } }()
- try { if let v = _storage._dummy13 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 13)
- } }()
- try { if let v = _storage._dummy14 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 14)
- } }()
- try { if let v = _storage._dummy15 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 15)
- } }()
- try { if let v = _storage._dummy16 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 16)
- } }()
- try { if let v = _storage._dummy17 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 17)
- } }()
- try { if let v = _storage._dummy18 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 18)
- } }()
- try { if let v = _storage._dummy19 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 19)
- } }()
- try { if let v = _storage._dummy20 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 20)
- } }()
- try { if let v = _storage._dummy21 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 21)
- } }()
- try { if let v = _storage._dummy22 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 22)
- } }()
- try { if let v = _storage._dummy23 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 23)
- } }()
- try { if let v = _storage._dummy24 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 24)
- } }()
- try { if let v = _storage._dummy25 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 25)
- } }()
- try { if let v = _storage._dummy26 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 26)
- } }()
- try { if let v = _storage._dummy27 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 27)
- } }()
- try { if let v = _storage._dummy28 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 28)
- } }()
- try { if let v = _storage._dummy29 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 29)
- } }()
- try { if let v = _storage._dummy30 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 30)
- } }()
- try { if let v = _storage._dummy31 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 31)
- } }()
- try { if let v = _storage._dummy32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 32)
- } }()
- try { if let v = _storage._c {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 33)
- } }()
- try { if let v = _storage._optionalForeign {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 34)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequired, rhs: Proto2Unittest_TestRequired) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._a != rhs_storage._a {return false}
- if _storage._dummy2 != rhs_storage._dummy2 {return false}
- if _storage._b != rhs_storage._b {return false}
- if _storage._dummy4 != rhs_storage._dummy4 {return false}
- if _storage._dummy5 != rhs_storage._dummy5 {return false}
- if _storage._dummy6 != rhs_storage._dummy6 {return false}
- if _storage._dummy7 != rhs_storage._dummy7 {return false}
- if _storage._dummy8 != rhs_storage._dummy8 {return false}
- if _storage._dummy9 != rhs_storage._dummy9 {return false}
- if _storage._dummy10 != rhs_storage._dummy10 {return false}
- if _storage._dummy11 != rhs_storage._dummy11 {return false}
- if _storage._dummy12 != rhs_storage._dummy12 {return false}
- if _storage._dummy13 != rhs_storage._dummy13 {return false}
- if _storage._dummy14 != rhs_storage._dummy14 {return false}
- if _storage._dummy15 != rhs_storage._dummy15 {return false}
- if _storage._dummy16 != rhs_storage._dummy16 {return false}
- if _storage._dummy17 != rhs_storage._dummy17 {return false}
- if _storage._dummy18 != rhs_storage._dummy18 {return false}
- if _storage._dummy19 != rhs_storage._dummy19 {return false}
- if _storage._dummy20 != rhs_storage._dummy20 {return false}
- if _storage._dummy21 != rhs_storage._dummy21 {return false}
- if _storage._dummy22 != rhs_storage._dummy22 {return false}
- if _storage._dummy23 != rhs_storage._dummy23 {return false}
- if _storage._dummy24 != rhs_storage._dummy24 {return false}
- if _storage._dummy25 != rhs_storage._dummy25 {return false}
- if _storage._dummy26 != rhs_storage._dummy26 {return false}
- if _storage._dummy27 != rhs_storage._dummy27 {return false}
- if _storage._dummy28 != rhs_storage._dummy28 {return false}
- if _storage._dummy29 != rhs_storage._dummy29 {return false}
- if _storage._dummy30 != rhs_storage._dummy30 {return false}
- if _storage._dummy31 != rhs_storage._dummy31 {return false}
- if _storage._dummy32 != rhs_storage._dummy32 {return false}
- if _storage._c != rhs_storage._c {return false}
- if _storage._optionalForeign != rhs_storage._optionalForeign {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredForeign: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredForeign"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_message"),
- 2: .standard(proto: "repeated_message"),
- 3: .same(proto: "dummy"),
- 4: .standard(proto: "optional_lazy_message"),
- ]
- public var isInitialized: Bool {
- if let v = self._optionalMessage, !v.isInitialized {return false}
- if !SwiftProtobuf.Internal.areAllInitialized(self.repeatedMessage) {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._optionalMessage) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedMessage) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._dummy) }()
- case 4: try { try decoder.decodeSingularMessageField(value: &self._optionalLazyMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedMessage, fieldNumber: 2)
- }
- try { if let v = self._dummy {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._optionalLazyMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredForeign, rhs: Proto2Unittest_TestRequiredForeign) -> Bool {
- if lhs._optionalMessage != rhs._optionalMessage {return false}
- if lhs.repeatedMessage != rhs.repeatedMessage {return false}
- if lhs._dummy != rhs._dummy {return false}
- if lhs._optionalLazyMessage != rhs._optionalLazyMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_message"),
- 2: .standard(proto: "repeated_message"),
- 3: .standard(proto: "required_message"),
- ]
- public var isInitialized: Bool {
- if self._requiredMessage == nil {return false}
- if let v = self._optionalMessage, !v.isInitialized {return false}
- if !SwiftProtobuf.Internal.areAllInitialized(self.repeatedMessage) {return false}
- if let v = self._requiredMessage, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._optionalMessage) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedMessage) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._requiredMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedMessage, fieldNumber: 2)
- }
- try { if let v = self._requiredMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredMessage, rhs: Proto2Unittest_TestRequiredMessage) -> Bool {
- if lhs._optionalMessage != rhs._optionalMessage {return false}
- if lhs.repeatedMessage != rhs.repeatedMessage {return false}
- if lhs._requiredMessage != rhs._requiredMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedRequiredForeign: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedRequiredForeign"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "child"),
- 2: .same(proto: "payload"),
- 3: .same(proto: "dummy"),
- 5: .standard(proto: "required_enum"),
- 6: .standard(proto: "required_enum_no_mask"),
- 7: .standard(proto: "required_enum_multi"),
- 9: .standard(proto: "required_no_mask"),
- ]
- fileprivate class _StorageClass {
- var _child: Proto2Unittest_TestNestedRequiredForeign? = nil
- var _payload: Proto2Unittest_TestRequiredForeign? = nil
- var _dummy: Int32? = nil
- var _requiredEnum: Proto2Unittest_TestRequiredEnum? = nil
- var _requiredEnumNoMask: Proto2Unittest_TestRequiredEnumNoMask? = nil
- var _requiredEnumMulti: Proto2Unittest_TestRequiredEnumMulti? = nil
- var _requiredNoMask: Proto2Unittest_TestRequiredNoMaskMulti? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _child = source._child
- _payload = source._payload
- _dummy = source._dummy
- _requiredEnum = source._requiredEnum
- _requiredEnumNoMask = source._requiredEnumNoMask
- _requiredEnumMulti = source._requiredEnumMulti
- _requiredNoMask = source._requiredNoMask
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- public var isInitialized: Bool {
- return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- if let v = _storage._child, !v.isInitialized {return false}
- if let v = _storage._payload, !v.isInitialized {return false}
- if let v = _storage._requiredEnum, !v.isInitialized {return false}
- if let v = _storage._requiredEnumNoMask, !v.isInitialized {return false}
- if let v = _storage._requiredEnumMulti, !v.isInitialized {return false}
- if let v = _storage._requiredNoMask, !v.isInitialized {return false}
- return true
- }
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._child) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &_storage._payload) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &_storage._dummy) }()
- case 5: try { try decoder.decodeSingularMessageField(value: &_storage._requiredEnum) }()
- case 6: try { try decoder.decodeSingularMessageField(value: &_storage._requiredEnumNoMask) }()
- case 7: try { try decoder.decodeSingularMessageField(value: &_storage._requiredEnumMulti) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &_storage._requiredNoMask) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._child {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._payload {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._dummy {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._requiredEnum {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._requiredEnumNoMask {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._requiredEnumMulti {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._requiredNoMask {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedRequiredForeign, rhs: Proto2Unittest_TestNestedRequiredForeign) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._child != rhs_storage._child {return false}
- if _storage._payload != rhs_storage._payload {return false}
- if _storage._dummy != rhs_storage._dummy {return false}
- if _storage._requiredEnum != rhs_storage._requiredEnum {return false}
- if _storage._requiredEnumNoMask != rhs_storage._requiredEnumNoMask {return false}
- if _storage._requiredEnumMulti != rhs_storage._requiredEnumMulti {return false}
- if _storage._requiredNoMask != rhs_storage._requiredNoMask {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestForeignNested: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestForeignNested"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foreign_nested"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._foreignNested) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._foreignNested {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestForeignNested, rhs: Proto2Unittest_TestForeignNested) -> Bool {
- if lhs._foreignNested != rhs._foreignNested {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEmptyMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestEmptyMessage"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEmptyMessage, rhs: Proto2Unittest_TestEmptyMessage) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEmptyMessageWithExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestEmptyMessageWithExtensions"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (1 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestEmptyMessageWithExtensions.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEmptyMessageWithExtensions, rhs: Proto2Unittest_TestEmptyMessageWithExtensions) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPickleNestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestPickleNestedMessage"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPickleNestedMessage, rhs: Proto2Unittest_TestPickleNestedMessage) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPickleNestedMessage.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestPickleNestedMessage.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "bb"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._bb) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._bb {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPickleNestedMessage.NestedMessage, rhs: Proto2Unittest_TestPickleNestedMessage.NestedMessage) -> Bool {
- if lhs._bb != rhs._bb {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPickleNestedMessage.NestedMessage.NestedNestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestPickleNestedMessage.NestedMessage.protoMessageName + ".NestedNestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "cc"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._cc) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._cc {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPickleNestedMessage.NestedMessage.NestedNestedMessage, rhs: Proto2Unittest_TestPickleNestedMessage.NestedMessage.NestedNestedMessage) -> Bool {
- if lhs._cc != rhs._cc {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMultipleExtensionRanges: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMultipleExtensionRanges"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (42 == fieldNumber) || (4143 <= fieldNumber && fieldNumber < 4244) || (65536 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestMultipleExtensionRanges.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 42, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMultipleExtensionRanges, rhs: Proto2Unittest_TestMultipleExtensionRanges) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestReallyLargeTagNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestReallyLargeTagNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 268435455: .same(proto: "bb"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 268435455: try { try decoder.decodeSingularInt32Field(value: &self._bb) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._bb {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 268435455)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestReallyLargeTagNumber, rhs: Proto2Unittest_TestReallyLargeTagNumber) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._bb != rhs._bb {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRecursiveMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRecursiveMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "i"),
- ]
- fileprivate class _StorageClass {
- var _a: Proto2Unittest_TestRecursiveMessage? = nil
- var _i: Int32? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _a = source._a
- _i = source._i
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._a) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &_storage._i) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._a {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._i {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRecursiveMessage, rhs: Proto2Unittest_TestRecursiveMessage) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._a != rhs_storage._a {return false}
- if _storage._i != rhs_storage._i {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMutualRecursionA: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMutualRecursionA"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "bb"),
- 2: .same(proto: "subgroup"),
- 2: .unique(proto: "SubGroup", json: "subgroup"),
- 5: .same(proto: "subgroupr"),
- 5: .unique(proto: "SubGroupR", json: "subgroupr"),
- ]
- fileprivate class _StorageClass {
- var _bb: Proto2Unittest_TestMutualRecursionB? = nil
- var _subGroup: Proto2Unittest_TestMutualRecursionA.SubGroup? = nil
- var _subGroupR: [Proto2Unittest_TestMutualRecursionA.SubGroupR] = []
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _bb = source._bb
- _subGroup = source._subGroup
- _subGroupR = source._subGroupR
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._bb) }()
- case 2: try { try decoder.decodeSingularGroupField(value: &_storage._subGroup) }()
- case 5: try { try decoder.decodeRepeatedGroupField(value: &_storage._subGroupR) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._bb {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._subGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 2)
- } }()
- if !_storage._subGroupR.isEmpty {
- try visitor.visitRepeatedGroupField(value: _storage._subGroupR, fieldNumber: 5)
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMutualRecursionA, rhs: Proto2Unittest_TestMutualRecursionA) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._bb != rhs_storage._bb {return false}
- if _storage._subGroup != rhs_storage._subGroup {return false}
- if _storage._subGroupR != rhs_storage._subGroupR {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMutualRecursionA.SubMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestMutualRecursionA.protoMessageName + ".SubMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "b"),
- ]
- fileprivate class _StorageClass {
- var _b: Proto2Unittest_TestMutualRecursionB? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _b = source._b
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._b) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._b {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMutualRecursionA.SubMessage, rhs: Proto2Unittest_TestMutualRecursionA.SubMessage) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._b != rhs_storage._b {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMutualRecursionA.SubGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestMutualRecursionA.protoMessageName + ".SubGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 3: .standard(proto: "sub_message"),
- 4: .standard(proto: "not_in_this_scc"),
- ]
- fileprivate class _StorageClass {
- var _subMessage: Proto2Unittest_TestMutualRecursionA.SubMessage? = nil
- var _notInThisScc: Proto2Unittest_TestAllTypes? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _subMessage = source._subMessage
- _notInThisScc = source._notInThisScc
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 3: try { try decoder.decodeSingularMessageField(value: &_storage._subMessage) }()
- case 4: try { try decoder.decodeSingularMessageField(value: &_storage._notInThisScc) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._subMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._notInThisScc {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMutualRecursionA.SubGroup, rhs: Proto2Unittest_TestMutualRecursionA.SubGroup) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._subMessage != rhs_storage._subMessage {return false}
- if _storage._notInThisScc != rhs_storage._notInThisScc {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMutualRecursionA.SubGroupR: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestMutualRecursionA.protoMessageName + ".SubGroupR"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 6: .same(proto: "payload"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 6: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._payload {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMutualRecursionA.SubGroupR, rhs: Proto2Unittest_TestMutualRecursionA.SubGroupR) -> Bool {
- if lhs._payload != rhs._payload {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMutualRecursionB: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMutualRecursionB"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .standard(proto: "optional_int32"),
- ]
- fileprivate class _StorageClass {
- var _a: Proto2Unittest_TestMutualRecursionA? = nil
- var _optionalInt32: Int32? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _a = source._a
- _optionalInt32 = source._optionalInt32
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &_storage._a) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &_storage._optionalInt32) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._a {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._optionalInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMutualRecursionB, rhs: Proto2Unittest_TestMutualRecursionB) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._a != rhs_storage._a {return false}
- if _storage._optionalInt32 != rhs_storage._optionalInt32 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestIsInitialized: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestIsInitialized"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "sub_message"),
- ]
- public var isInitialized: Bool {
- if let v = self._subMessage, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._subMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._subMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestIsInitialized, rhs: Proto2Unittest_TestIsInitialized) -> Bool {
- if lhs._subMessage != rhs._subMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestIsInitialized.SubMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestIsInitialized.protoMessageName + ".SubMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "subgroup"),
- 1: .unique(proto: "SubGroup", json: "subgroup"),
- ]
- public var isInitialized: Bool {
- if let v = self._subGroup, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularGroupField(value: &self._subGroup) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._subGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestIsInitialized.SubMessage, rhs: Proto2Unittest_TestIsInitialized.SubMessage) -> Bool {
- if lhs._subGroup != rhs._subGroup {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestIsInitialized.SubMessage.SubGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestIsInitialized.SubMessage.protoMessageName + ".SubGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2: .same(proto: "i"),
- ]
- public var isInitialized: Bool {
- if self._i == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._i) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._i {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestIsInitialized.SubMessage.SubGroup, rhs: Proto2Unittest_TestIsInitialized.SubMessage.SubGroup) -> Bool {
- if lhs._i != rhs._i {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDupFieldNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestDupFieldNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "foo"),
- 2: .unique(proto: "Foo", json: "foo"),
- 3: .same(proto: "bar"),
- 3: .unique(proto: "Bar", json: "bar"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 2: try { try decoder.decodeSingularGroupField(value: &self._foo) }()
- case 3: try { try decoder.decodeSingularGroupField(value: &self._bar) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._foo {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._bar {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDupFieldNumber, rhs: Proto2Unittest_TestDupFieldNumber) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._foo != rhs._foo {return false}
- if lhs._bar != rhs._bar {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDupFieldNumber.Foo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestDupFieldNumber.protoMessageName + ".Foo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDupFieldNumber.Foo, rhs: Proto2Unittest_TestDupFieldNumber.Foo) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDupFieldNumber.Bar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestDupFieldNumber.protoMessageName + ".Bar"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDupFieldNumber.Bar, rhs: Proto2Unittest_TestDupFieldNumber.Bar) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEagerMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestEagerMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "sub_message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._subMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._subMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEagerMessage, rhs: Proto2Unittest_TestEagerMessage) -> Bool {
- if lhs._subMessage != rhs._subMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestLazyMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestLazyMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "sub_message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._subMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._subMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestLazyMessage, rhs: Proto2Unittest_TestLazyMessage) -> Bool {
- if lhs._subMessage != rhs._subMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestLazyMessageRepeated: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestLazyMessageRepeated"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "repeated_message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.repeatedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedMessage, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestLazyMessageRepeated, rhs: Proto2Unittest_TestLazyMessageRepeated) -> Bool {
- if lhs.repeatedMessage != rhs.repeatedMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEagerMaybeLazy: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestEagerMaybeLazy"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "message_foo"),
- 2: .standard(proto: "message_bar"),
- 3: .standard(proto: "message_baz"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._messageFoo) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._messageBar) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._messageBaz) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._messageFoo {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._messageBar {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._messageBaz {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEagerMaybeLazy, rhs: Proto2Unittest_TestEagerMaybeLazy) -> Bool {
- if lhs._messageFoo != rhs._messageFoo {return false}
- if lhs._messageBar != rhs._messageBar {return false}
- if lhs._messageBaz != rhs._messageBaz {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEagerMaybeLazy.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestEagerMaybeLazy.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "packed"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._packed) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._packed {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEagerMaybeLazy.NestedMessage, rhs: Proto2Unittest_TestEagerMaybeLazy.NestedMessage) -> Bool {
- if lhs._packed != rhs._packed {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedMessageHasBits: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedMessageHasBits"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_nested_message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._optionalNestedMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalNestedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedMessageHasBits, rhs: Proto2Unittest_TestNestedMessageHasBits) -> Bool {
- if lhs._optionalNestedMessage != rhs._optionalNestedMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedMessageHasBits.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestNestedMessageHasBits.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "nestedmessage_repeated_int32"),
- 2: .standard(proto: "nestedmessage_repeated_foreignmessage"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedInt32Field(value: &self.nestedmessageRepeatedInt32) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.nestedmessageRepeatedForeignmessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.nestedmessageRepeatedInt32.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.nestedmessageRepeatedInt32, fieldNumber: 1)
- }
- if !self.nestedmessageRepeatedForeignmessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.nestedmessageRepeatedForeignmessage, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedMessageHasBits.NestedMessage, rhs: Proto2Unittest_TestNestedMessageHasBits.NestedMessage) -> Bool {
- if lhs.nestedmessageRepeatedInt32 != rhs.nestedmessageRepeatedInt32 {return false}
- if lhs.nestedmessageRepeatedForeignmessage != rhs.nestedmessageRepeatedForeignmessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestCamelCaseFieldNames: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestCamelCaseFieldNames"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "PrimitiveField"),
- 2: .same(proto: "StringField"),
- 3: .same(proto: "EnumField"),
- 4: .same(proto: "MessageField"),
- 5: .same(proto: "StringPieceField"),
- 6: .same(proto: "CordField"),
- 7: .same(proto: "RepeatedPrimitiveField"),
- 8: .same(proto: "RepeatedStringField"),
- 9: .same(proto: "RepeatedEnumField"),
- 10: .same(proto: "RepeatedMessageField"),
- 11: .same(proto: "RepeatedStringPieceField"),
- 12: .same(proto: "RepeatedCordField"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._primitiveField) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._stringField) }()
- case 3: try { try decoder.decodeSingularEnumField(value: &self._enumField) }()
- case 4: try { try decoder.decodeSingularMessageField(value: &self._messageField) }()
- case 5: try { try decoder.decodeSingularStringField(value: &self._stringPieceField) }()
- case 6: try { try decoder.decodeSingularStringField(value: &self._cordField) }()
- case 7: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedPrimitiveField) }()
- case 8: try { try decoder.decodeRepeatedStringField(value: &self.repeatedStringField) }()
- case 9: try { try decoder.decodeRepeatedEnumField(value: &self.repeatedEnumField) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedMessageField) }()
- case 11: try { try decoder.decodeRepeatedStringField(value: &self.repeatedStringPieceField) }()
- case 12: try { try decoder.decodeRepeatedStringField(value: &self.repeatedCordField) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._primitiveField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._stringField {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._enumField {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._messageField {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._stringPieceField {
- try visitor.visitSingularStringField(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._cordField {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- if !self.repeatedPrimitiveField.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedPrimitiveField, fieldNumber: 7)
- }
- if !self.repeatedStringField.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedStringField, fieldNumber: 8)
- }
- if !self.repeatedEnumField.isEmpty {
- try visitor.visitRepeatedEnumField(value: self.repeatedEnumField, fieldNumber: 9)
- }
- if !self.repeatedMessageField.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedMessageField, fieldNumber: 10)
- }
- if !self.repeatedStringPieceField.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedStringPieceField, fieldNumber: 11)
- }
- if !self.repeatedCordField.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedCordField, fieldNumber: 12)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestCamelCaseFieldNames, rhs: Proto2Unittest_TestCamelCaseFieldNames) -> Bool {
- if lhs._primitiveField != rhs._primitiveField {return false}
- if lhs._stringField != rhs._stringField {return false}
- if lhs._enumField != rhs._enumField {return false}
- if lhs._messageField != rhs._messageField {return false}
- if lhs._stringPieceField != rhs._stringPieceField {return false}
- if lhs._cordField != rhs._cordField {return false}
- if lhs.repeatedPrimitiveField != rhs.repeatedPrimitiveField {return false}
- if lhs.repeatedStringField != rhs.repeatedStringField {return false}
- if lhs.repeatedEnumField != rhs.repeatedEnumField {return false}
- if lhs.repeatedMessageField != rhs.repeatedMessageField {return false}
- if lhs.repeatedStringPieceField != rhs.repeatedStringPieceField {return false}
- if lhs.repeatedCordField != rhs.repeatedCordField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestFieldOrderings: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestFieldOrderings"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 11: .standard(proto: "my_string"),
- 1: .standard(proto: "my_int"),
- 101: .standard(proto: "my_float"),
- 200: .standard(proto: "optional_nested_message"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt64Field(value: &self._myInt) }()
- case 11: try { try decoder.decodeSingularStringField(value: &self._myString) }()
- case 101: try { try decoder.decodeSingularFloatField(value: &self._myFloat) }()
- case 200: try { try decoder.decodeSingularMessageField(value: &self._optionalNestedMessage) }()
- case 2..<11, 12..<101:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestFieldOrderings.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._myInt {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2, end: 11)
- try { if let v = self._myString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 11)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 12, end: 101)
- try { if let v = self._myFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 101)
- } }()
- try { if let v = self._optionalNestedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 200)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestFieldOrderings, rhs: Proto2Unittest_TestFieldOrderings) -> Bool {
- if lhs._myString != rhs._myString {return false}
- if lhs._myInt != rhs._myInt {return false}
- if lhs._myFloat != rhs._myFloat {return false}
- if lhs._optionalNestedMessage != rhs._optionalNestedMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestFieldOrderings.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestFieldOrderings.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2: .same(proto: "oo"),
- 1: .same(proto: "bb"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._bb) }()
- case 2: try { try decoder.decodeSingularInt64Field(value: &self._oo) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._bb {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._oo {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestFieldOrderings.NestedMessage, rhs: Proto2Unittest_TestFieldOrderings.NestedMessage) -> Bool {
- if lhs._oo != rhs._oo {return false}
- if lhs._bb != rhs._bb {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtensionOrderings1: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestExtensionOrderings1"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "my_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._myString) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._myString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtensionOrderings1, rhs: Proto2Unittest_TestExtensionOrderings1) -> Bool {
- if lhs._myString != rhs._myString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtensionOrderings2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestExtensionOrderings2"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "my_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._myString) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._myString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtensionOrderings2, rhs: Proto2Unittest_TestExtensionOrderings2) -> Bool {
- if lhs._myString != rhs._myString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestExtensionOrderings2.protoMessageName + ".TestExtensionOrderings3"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "my_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._myString) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._myString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3, rhs: Proto2Unittest_TestExtensionOrderings2.TestExtensionOrderings3) -> Bool {
- if lhs._myString != rhs._myString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtremeDefaultValues: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestExtremeDefaultValues"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "escaped_bytes"),
- 2: .standard(proto: "large_uint32"),
- 3: .standard(proto: "large_uint64"),
- 4: .standard(proto: "small_int32"),
- 5: .standard(proto: "small_int64"),
- 21: .standard(proto: "really_small_int32"),
- 22: .standard(proto: "really_small_int64"),
- 6: .standard(proto: "utf8_string"),
- 7: .standard(proto: "zero_float"),
- 8: .standard(proto: "one_float"),
- 9: .standard(proto: "small_float"),
- 10: .standard(proto: "negative_one_float"),
- 11: .standard(proto: "negative_float"),
- 12: .standard(proto: "large_float"),
- 13: .standard(proto: "small_negative_float"),
- 14: .standard(proto: "inf_double"),
- 15: .standard(proto: "neg_inf_double"),
- 16: .standard(proto: "nan_double"),
- 17: .standard(proto: "inf_float"),
- 18: .standard(proto: "neg_inf_float"),
- 19: .standard(proto: "nan_float"),
- 20: .standard(proto: "cpp_trigraph"),
- 23: .standard(proto: "string_with_zero"),
- 24: .standard(proto: "bytes_with_zero"),
- 25: .standard(proto: "string_piece_with_zero"),
- 26: .standard(proto: "cord_with_zero"),
- 27: .standard(proto: "replacement_string"),
- ]
- fileprivate class _StorageClass {
- var _escapedBytes: Data? = nil
- var _largeUint32: UInt32? = nil
- var _largeUint64: UInt64? = nil
- var _smallInt32: Int32? = nil
- var _smallInt64: Int64? = nil
- var _reallySmallInt32: Int32? = nil
- var _reallySmallInt64: Int64? = nil
- var _utf8String: String? = nil
- var _zeroFloat: Float? = nil
- var _oneFloat: Float? = nil
- var _smallFloat: Float? = nil
- var _negativeOneFloat: Float? = nil
- var _negativeFloat: Float? = nil
- var _largeFloat: Float? = nil
- var _smallNegativeFloat: Float? = nil
- var _infDouble: Double? = nil
- var _negInfDouble: Double? = nil
- var _nanDouble: Double? = nil
- var _infFloat: Float? = nil
- var _negInfFloat: Float? = nil
- var _nanFloat: Float? = nil
- var _cppTrigraph: String? = nil
- var _stringWithZero: String? = nil
- var _bytesWithZero: Data? = nil
- var _stringPieceWithZero: String? = nil
- var _cordWithZero: String? = nil
- var _replacementString: String? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _escapedBytes = source._escapedBytes
- _largeUint32 = source._largeUint32
- _largeUint64 = source._largeUint64
- _smallInt32 = source._smallInt32
- _smallInt64 = source._smallInt64
- _reallySmallInt32 = source._reallySmallInt32
- _reallySmallInt64 = source._reallySmallInt64
- _utf8String = source._utf8String
- _zeroFloat = source._zeroFloat
- _oneFloat = source._oneFloat
- _smallFloat = source._smallFloat
- _negativeOneFloat = source._negativeOneFloat
- _negativeFloat = source._negativeFloat
- _largeFloat = source._largeFloat
- _smallNegativeFloat = source._smallNegativeFloat
- _infDouble = source._infDouble
- _negInfDouble = source._negInfDouble
- _nanDouble = source._nanDouble
- _infFloat = source._infFloat
- _negInfFloat = source._negInfFloat
- _nanFloat = source._nanFloat
- _cppTrigraph = source._cppTrigraph
- _stringWithZero = source._stringWithZero
- _bytesWithZero = source._bytesWithZero
- _stringPieceWithZero = source._stringPieceWithZero
- _cordWithZero = source._cordWithZero
- _replacementString = source._replacementString
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBytesField(value: &_storage._escapedBytes) }()
- case 2: try { try decoder.decodeSingularUInt32Field(value: &_storage._largeUint32) }()
- case 3: try { try decoder.decodeSingularUInt64Field(value: &_storage._largeUint64) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &_storage._smallInt32) }()
- case 5: try { try decoder.decodeSingularInt64Field(value: &_storage._smallInt64) }()
- case 6: try { try decoder.decodeSingularStringField(value: &_storage._utf8String) }()
- case 7: try { try decoder.decodeSingularFloatField(value: &_storage._zeroFloat) }()
- case 8: try { try decoder.decodeSingularFloatField(value: &_storage._oneFloat) }()
- case 9: try { try decoder.decodeSingularFloatField(value: &_storage._smallFloat) }()
- case 10: try { try decoder.decodeSingularFloatField(value: &_storage._negativeOneFloat) }()
- case 11: try { try decoder.decodeSingularFloatField(value: &_storage._negativeFloat) }()
- case 12: try { try decoder.decodeSingularFloatField(value: &_storage._largeFloat) }()
- case 13: try { try decoder.decodeSingularFloatField(value: &_storage._smallNegativeFloat) }()
- case 14: try { try decoder.decodeSingularDoubleField(value: &_storage._infDouble) }()
- case 15: try { try decoder.decodeSingularDoubleField(value: &_storage._negInfDouble) }()
- case 16: try { try decoder.decodeSingularDoubleField(value: &_storage._nanDouble) }()
- case 17: try { try decoder.decodeSingularFloatField(value: &_storage._infFloat) }()
- case 18: try { try decoder.decodeSingularFloatField(value: &_storage._negInfFloat) }()
- case 19: try { try decoder.decodeSingularFloatField(value: &_storage._nanFloat) }()
- case 20: try { try decoder.decodeSingularStringField(value: &_storage._cppTrigraph) }()
- case 21: try { try decoder.decodeSingularInt32Field(value: &_storage._reallySmallInt32) }()
- case 22: try { try decoder.decodeSingularInt64Field(value: &_storage._reallySmallInt64) }()
- case 23: try { try decoder.decodeSingularStringField(value: &_storage._stringWithZero) }()
- case 24: try { try decoder.decodeSingularBytesField(value: &_storage._bytesWithZero) }()
- case 25: try { try decoder.decodeSingularStringField(value: &_storage._stringPieceWithZero) }()
- case 26: try { try decoder.decodeSingularStringField(value: &_storage._cordWithZero) }()
- case 27: try { try decoder.decodeSingularStringField(value: &_storage._replacementString) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._escapedBytes {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._largeUint32 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._largeUint64 {
- try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._smallInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._smallInt64 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._utf8String {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._zeroFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._oneFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 8)
- } }()
- try { if let v = _storage._smallFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 9)
- } }()
- try { if let v = _storage._negativeOneFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 10)
- } }()
- try { if let v = _storage._negativeFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 11)
- } }()
- try { if let v = _storage._largeFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 12)
- } }()
- try { if let v = _storage._smallNegativeFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 13)
- } }()
- try { if let v = _storage._infDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 14)
- } }()
- try { if let v = _storage._negInfDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 15)
- } }()
- try { if let v = _storage._nanDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 16)
- } }()
- try { if let v = _storage._infFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 17)
- } }()
- try { if let v = _storage._negInfFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 18)
- } }()
- try { if let v = _storage._nanFloat {
- try visitor.visitSingularFloatField(value: v, fieldNumber: 19)
- } }()
- try { if let v = _storage._cppTrigraph {
- try visitor.visitSingularStringField(value: v, fieldNumber: 20)
- } }()
- try { if let v = _storage._reallySmallInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 21)
- } }()
- try { if let v = _storage._reallySmallInt64 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 22)
- } }()
- try { if let v = _storage._stringWithZero {
- try visitor.visitSingularStringField(value: v, fieldNumber: 23)
- } }()
- try { if let v = _storage._bytesWithZero {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 24)
- } }()
- try { if let v = _storage._stringPieceWithZero {
- try visitor.visitSingularStringField(value: v, fieldNumber: 25)
- } }()
- try { if let v = _storage._cordWithZero {
- try visitor.visitSingularStringField(value: v, fieldNumber: 26)
- } }()
- try { if let v = _storage._replacementString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 27)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtremeDefaultValues, rhs: Proto2Unittest_TestExtremeDefaultValues) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._escapedBytes != rhs_storage._escapedBytes {return false}
- if _storage._largeUint32 != rhs_storage._largeUint32 {return false}
- if _storage._largeUint64 != rhs_storage._largeUint64 {return false}
- if _storage._smallInt32 != rhs_storage._smallInt32 {return false}
- if _storage._smallInt64 != rhs_storage._smallInt64 {return false}
- if _storage._reallySmallInt32 != rhs_storage._reallySmallInt32 {return false}
- if _storage._reallySmallInt64 != rhs_storage._reallySmallInt64 {return false}
- if _storage._utf8String != rhs_storage._utf8String {return false}
- if _storage._zeroFloat != rhs_storage._zeroFloat {return false}
- if _storage._oneFloat != rhs_storage._oneFloat {return false}
- if _storage._smallFloat != rhs_storage._smallFloat {return false}
- if _storage._negativeOneFloat != rhs_storage._negativeOneFloat {return false}
- if _storage._negativeFloat != rhs_storage._negativeFloat {return false}
- if _storage._largeFloat != rhs_storage._largeFloat {return false}
- if _storage._smallNegativeFloat != rhs_storage._smallNegativeFloat {return false}
- if _storage._infDouble != rhs_storage._infDouble {return false}
- if _storage._negInfDouble != rhs_storage._negInfDouble {return false}
- if _storage._nanDouble != rhs_storage._nanDouble {return false}
- if _storage._infFloat != rhs_storage._infFloat {return false}
- if _storage._negInfFloat != rhs_storage._negInfFloat {return false}
- if _storage._nanFloat != rhs_storage._nanFloat {return false}
- if _storage._cppTrigraph != rhs_storage._cppTrigraph {return false}
- if _storage._stringWithZero != rhs_storage._stringWithZero {return false}
- if _storage._bytesWithZero != rhs_storage._bytesWithZero {return false}
- if _storage._stringPieceWithZero != rhs_storage._stringPieceWithZero {return false}
- if _storage._cordWithZero != rhs_storage._cordWithZero {return false}
- if _storage._replacementString != rhs_storage._replacementString {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_SparseEnumMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".SparseEnumMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "sparse_enum"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._sparseEnum) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._sparseEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_SparseEnumMessage, rhs: Proto2Unittest_SparseEnumMessage) -> Bool {
- if lhs._sparseEnum != rhs._sparseEnum {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_OneString: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".OneString"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_OneString, rhs: Proto2Unittest_OneString) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_MoreString: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".MoreString"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedStringField(value: &self.data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.data.isEmpty {
- try visitor.visitRepeatedStringField(value: self.data, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_MoreString, rhs: Proto2Unittest_MoreString) -> Bool {
- if lhs.data != rhs.data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_OneBytes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".OneBytes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBytesField(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_OneBytes, rhs: Proto2Unittest_OneBytes) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_MoreBytes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".MoreBytes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedBytesField(value: &self.data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.data.isEmpty {
- try visitor.visitRepeatedBytesField(value: self.data, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_MoreBytes, rhs: Proto2Unittest_MoreBytes) -> Bool {
- if lhs.data != rhs.data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_ManyOptionalString: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".ManyOptionalString"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "str1"),
- 2: .same(proto: "str2"),
- 3: .same(proto: "str3"),
- 4: .same(proto: "str4"),
- 5: .same(proto: "str5"),
- 6: .same(proto: "str6"),
- 7: .same(proto: "str7"),
- 8: .same(proto: "str8"),
- 9: .same(proto: "str9"),
- 10: .same(proto: "str10"),
- 11: .same(proto: "str11"),
- 12: .same(proto: "str12"),
- 13: .same(proto: "str13"),
- 14: .same(proto: "str14"),
- 15: .same(proto: "str15"),
- 16: .same(proto: "str16"),
- 17: .same(proto: "str17"),
- 18: .same(proto: "str18"),
- 19: .same(proto: "str19"),
- 20: .same(proto: "str20"),
- 21: .same(proto: "str21"),
- 22: .same(proto: "str22"),
- 23: .same(proto: "str23"),
- 24: .same(proto: "str24"),
- 25: .same(proto: "str25"),
- 26: .same(proto: "str26"),
- 27: .same(proto: "str27"),
- 28: .same(proto: "str28"),
- 29: .same(proto: "str29"),
- 30: .same(proto: "str30"),
- 31: .same(proto: "str31"),
- 32: .same(proto: "str32"),
- ]
- fileprivate class _StorageClass {
- var _str1: String? = nil
- var _str2: String? = nil
- var _str3: String? = nil
- var _str4: String? = nil
- var _str5: String? = nil
- var _str6: String? = nil
- var _str7: String? = nil
- var _str8: String? = nil
- var _str9: String? = nil
- var _str10: String? = nil
- var _str11: String? = nil
- var _str12: String? = nil
- var _str13: String? = nil
- var _str14: String? = nil
- var _str15: String? = nil
- var _str16: String? = nil
- var _str17: String? = nil
- var _str18: String? = nil
- var _str19: String? = nil
- var _str20: String? = nil
- var _str21: String? = nil
- var _str22: String? = nil
- var _str23: String? = nil
- var _str24: String? = nil
- var _str25: String? = nil
- var _str26: String? = nil
- var _str27: String? = nil
- var _str28: String? = nil
- var _str29: String? = nil
- var _str30: String? = nil
- var _str31: String? = nil
- var _str32: String? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _str1 = source._str1
- _str2 = source._str2
- _str3 = source._str3
- _str4 = source._str4
- _str5 = source._str5
- _str6 = source._str6
- _str7 = source._str7
- _str8 = source._str8
- _str9 = source._str9
- _str10 = source._str10
- _str11 = source._str11
- _str12 = source._str12
- _str13 = source._str13
- _str14 = source._str14
- _str15 = source._str15
- _str16 = source._str16
- _str17 = source._str17
- _str18 = source._str18
- _str19 = source._str19
- _str20 = source._str20
- _str21 = source._str21
- _str22 = source._str22
- _str23 = source._str23
- _str24 = source._str24
- _str25 = source._str25
- _str26 = source._str26
- _str27 = source._str27
- _str28 = source._str28
- _str29 = source._str29
- _str30 = source._str30
- _str31 = source._str31
- _str32 = source._str32
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &_storage._str1) }()
- case 2: try { try decoder.decodeSingularStringField(value: &_storage._str2) }()
- case 3: try { try decoder.decodeSingularStringField(value: &_storage._str3) }()
- case 4: try { try decoder.decodeSingularStringField(value: &_storage._str4) }()
- case 5: try { try decoder.decodeSingularStringField(value: &_storage._str5) }()
- case 6: try { try decoder.decodeSingularStringField(value: &_storage._str6) }()
- case 7: try { try decoder.decodeSingularStringField(value: &_storage._str7) }()
- case 8: try { try decoder.decodeSingularStringField(value: &_storage._str8) }()
- case 9: try { try decoder.decodeSingularStringField(value: &_storage._str9) }()
- case 10: try { try decoder.decodeSingularStringField(value: &_storage._str10) }()
- case 11: try { try decoder.decodeSingularStringField(value: &_storage._str11) }()
- case 12: try { try decoder.decodeSingularStringField(value: &_storage._str12) }()
- case 13: try { try decoder.decodeSingularStringField(value: &_storage._str13) }()
- case 14: try { try decoder.decodeSingularStringField(value: &_storage._str14) }()
- case 15: try { try decoder.decodeSingularStringField(value: &_storage._str15) }()
- case 16: try { try decoder.decodeSingularStringField(value: &_storage._str16) }()
- case 17: try { try decoder.decodeSingularStringField(value: &_storage._str17) }()
- case 18: try { try decoder.decodeSingularStringField(value: &_storage._str18) }()
- case 19: try { try decoder.decodeSingularStringField(value: &_storage._str19) }()
- case 20: try { try decoder.decodeSingularStringField(value: &_storage._str20) }()
- case 21: try { try decoder.decodeSingularStringField(value: &_storage._str21) }()
- case 22: try { try decoder.decodeSingularStringField(value: &_storage._str22) }()
- case 23: try { try decoder.decodeSingularStringField(value: &_storage._str23) }()
- case 24: try { try decoder.decodeSingularStringField(value: &_storage._str24) }()
- case 25: try { try decoder.decodeSingularStringField(value: &_storage._str25) }()
- case 26: try { try decoder.decodeSingularStringField(value: &_storage._str26) }()
- case 27: try { try decoder.decodeSingularStringField(value: &_storage._str27) }()
- case 28: try { try decoder.decodeSingularStringField(value: &_storage._str28) }()
- case 29: try { try decoder.decodeSingularStringField(value: &_storage._str29) }()
- case 30: try { try decoder.decodeSingularStringField(value: &_storage._str30) }()
- case 31: try { try decoder.decodeSingularStringField(value: &_storage._str31) }()
- case 32: try { try decoder.decodeSingularStringField(value: &_storage._str32) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._str1 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._str2 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._str3 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._str4 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._str5 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._str6 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._str7 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._str8 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 8)
- } }()
- try { if let v = _storage._str9 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 9)
- } }()
- try { if let v = _storage._str10 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 10)
- } }()
- try { if let v = _storage._str11 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 11)
- } }()
- try { if let v = _storage._str12 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 12)
- } }()
- try { if let v = _storage._str13 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 13)
- } }()
- try { if let v = _storage._str14 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 14)
- } }()
- try { if let v = _storage._str15 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 15)
- } }()
- try { if let v = _storage._str16 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 16)
- } }()
- try { if let v = _storage._str17 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 17)
- } }()
- try { if let v = _storage._str18 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 18)
- } }()
- try { if let v = _storage._str19 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 19)
- } }()
- try { if let v = _storage._str20 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 20)
- } }()
- try { if let v = _storage._str21 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 21)
- } }()
- try { if let v = _storage._str22 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 22)
- } }()
- try { if let v = _storage._str23 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 23)
- } }()
- try { if let v = _storage._str24 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 24)
- } }()
- try { if let v = _storage._str25 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 25)
- } }()
- try { if let v = _storage._str26 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 26)
- } }()
- try { if let v = _storage._str27 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 27)
- } }()
- try { if let v = _storage._str28 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 28)
- } }()
- try { if let v = _storage._str29 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 29)
- } }()
- try { if let v = _storage._str30 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 30)
- } }()
- try { if let v = _storage._str31 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 31)
- } }()
- try { if let v = _storage._str32 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 32)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_ManyOptionalString, rhs: Proto2Unittest_ManyOptionalString) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._str1 != rhs_storage._str1 {return false}
- if _storage._str2 != rhs_storage._str2 {return false}
- if _storage._str3 != rhs_storage._str3 {return false}
- if _storage._str4 != rhs_storage._str4 {return false}
- if _storage._str5 != rhs_storage._str5 {return false}
- if _storage._str6 != rhs_storage._str6 {return false}
- if _storage._str7 != rhs_storage._str7 {return false}
- if _storage._str8 != rhs_storage._str8 {return false}
- if _storage._str9 != rhs_storage._str9 {return false}
- if _storage._str10 != rhs_storage._str10 {return false}
- if _storage._str11 != rhs_storage._str11 {return false}
- if _storage._str12 != rhs_storage._str12 {return false}
- if _storage._str13 != rhs_storage._str13 {return false}
- if _storage._str14 != rhs_storage._str14 {return false}
- if _storage._str15 != rhs_storage._str15 {return false}
- if _storage._str16 != rhs_storage._str16 {return false}
- if _storage._str17 != rhs_storage._str17 {return false}
- if _storage._str18 != rhs_storage._str18 {return false}
- if _storage._str19 != rhs_storage._str19 {return false}
- if _storage._str20 != rhs_storage._str20 {return false}
- if _storage._str21 != rhs_storage._str21 {return false}
- if _storage._str22 != rhs_storage._str22 {return false}
- if _storage._str23 != rhs_storage._str23 {return false}
- if _storage._str24 != rhs_storage._str24 {return false}
- if _storage._str25 != rhs_storage._str25 {return false}
- if _storage._str26 != rhs_storage._str26 {return false}
- if _storage._str27 != rhs_storage._str27 {return false}
- if _storage._str28 != rhs_storage._str28 {return false}
- if _storage._str29 != rhs_storage._str29 {return false}
- if _storage._str30 != rhs_storage._str30 {return false}
- if _storage._str31 != rhs_storage._str31 {return false}
- if _storage._str32 != rhs_storage._str32 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_Int32Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Int32Message"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Int32Message, rhs: Proto2Unittest_Int32Message) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_Uint32Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Uint32Message"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Uint32Message, rhs: Proto2Unittest_Uint32Message) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_Int64Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Int64Message"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt64Field(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Int64Message, rhs: Proto2Unittest_Int64Message) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_Uint64Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Uint64Message"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt64Field(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Uint64Message, rhs: Proto2Unittest_Uint64Message) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_BoolMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".BoolMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBoolField(value: &self._data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_BoolMessage, rhs: Proto2Unittest_BoolMessage) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneof: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestOneof"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foo_int"),
- 2: .standard(proto: "foo_string"),
- 3: .standard(proto: "foo_message"),
- 4: .same(proto: "foogroup"),
- 4: .unique(proto: "FooGroup", json: "foogroup"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try {
- var v: Int32?
- try decoder.decodeSingularInt32Field(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooInt(v)
- }
- }()
- case 2: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooString(v)
- }
- }()
- case 3: try {
- var v: Proto2Unittest_TestAllTypes?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooMessage(v)
- }
- }()
- case 4: try {
- var v: Proto2Unittest_TestOneof.FooGroup?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooGroup(let m) = current {v = m}
- }
- try decoder.decodeSingularGroupField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooGroup(v)
- }
- }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- switch self.foo {
- case .fooInt?: try {
- guard case .fooInt(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- }()
- case .fooString?: try {
- guard case .fooString(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- }()
- case .fooMessage?: try {
- guard case .fooMessage(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }()
- case .fooGroup?: try {
- guard case .fooGroup(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularGroupField(value: v, fieldNumber: 4)
- }()
- case nil: break
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneof, rhs: Proto2Unittest_TestOneof) -> Bool {
- if lhs.foo != rhs.foo {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneof.FooGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestOneof.protoMessageName + ".FooGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 5: .same(proto: "a"),
- 6: .same(proto: "b"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 5: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 6: try { try decoder.decodeSingularStringField(value: &self._b) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneof.FooGroup, rhs: Proto2Unittest_TestOneof.FooGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneofBackwardsCompatible: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestOneofBackwardsCompatible"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foo_int"),
- 2: .standard(proto: "foo_string"),
- 3: .standard(proto: "foo_message"),
- 4: .same(proto: "foogroup"),
- 4: .unique(proto: "FooGroup", json: "foogroup"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._fooInt) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._fooString) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._fooMessage) }()
- case 4: try { try decoder.decodeSingularGroupField(value: &self._fooGroup) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._fooInt {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._fooString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._fooMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._fooGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 4)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneofBackwardsCompatible, rhs: Proto2Unittest_TestOneofBackwardsCompatible) -> Bool {
- if lhs._fooInt != rhs._fooInt {return false}
- if lhs._fooString != rhs._fooString {return false}
- if lhs._fooMessage != rhs._fooMessage {return false}
- if lhs._fooGroup != rhs._fooGroup {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneofBackwardsCompatible.FooGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestOneofBackwardsCompatible.protoMessageName + ".FooGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 5: .same(proto: "a"),
- 6: .same(proto: "b"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 5: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 6: try { try decoder.decodeSingularStringField(value: &self._b) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneofBackwardsCompatible.FooGroup, rhs: Proto2Unittest_TestOneofBackwardsCompatible.FooGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneof2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestOneof2"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foo_int"),
- 2: .standard(proto: "foo_string"),
- 3: .standard(proto: "foo_cord"),
- 4: .standard(proto: "foo_string_piece"),
- 5: .standard(proto: "foo_bytes"),
- 6: .standard(proto: "foo_enum"),
- 7: .standard(proto: "foo_message"),
- 8: .same(proto: "foogroup"),
- 8: .unique(proto: "FooGroup", json: "foogroup"),
- 11: .standard(proto: "foo_lazy_message"),
- 30: .standard(proto: "foo_bytes_cord"),
- 12: .standard(proto: "bar_int"),
- 13: .standard(proto: "bar_string"),
- 14: .standard(proto: "bar_cord"),
- 15: .standard(proto: "bar_string_piece"),
- 16: .standard(proto: "bar_bytes"),
- 17: .standard(proto: "bar_enum"),
- 20: .standard(proto: "bar_string_with_empty_default"),
- 21: .standard(proto: "bar_cord_with_empty_default"),
- 22: .standard(proto: "bar_string_piece_with_empty_default"),
- 23: .standard(proto: "bar_bytes_with_empty_default"),
- 18: .standard(proto: "baz_int"),
- 19: .standard(proto: "baz_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try {
- var v: Int32?
- try decoder.decodeSingularInt32Field(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooInt(v)
- }
- }()
- case 2: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooString(v)
- }
- }()
- case 3: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooCord(v)
- }
- }()
- case 4: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooStringPiece(v)
- }
- }()
- case 5: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooBytes(v)
- }
- }()
- case 6: try {
- var v: Proto2Unittest_TestOneof2.NestedEnum?
- try decoder.decodeSingularEnumField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooEnum(v)
- }
- }()
- case 7: try {
- var v: Proto2Unittest_TestOneof2.NestedMessage?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooMessage(v)
- }
- }()
- case 8: try {
- var v: Proto2Unittest_TestOneof2.FooGroup?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooGroup(let m) = current {v = m}
- }
- try decoder.decodeSingularGroupField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooGroup(v)
- }
- }()
- case 11: try {
- var v: Proto2Unittest_TestOneof2.NestedMessage?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooLazyMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooLazyMessage(v)
- }
- }()
- case 12: try {
- var v: Int32?
- try decoder.decodeSingularInt32Field(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barInt(v)
- }
- }()
- case 13: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barString(v)
- }
- }()
- case 14: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barCord(v)
- }
- }()
- case 15: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barStringPiece(v)
- }
- }()
- case 16: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barBytes(v)
- }
- }()
- case 17: try {
- var v: Proto2Unittest_TestOneof2.NestedEnum?
- try decoder.decodeSingularEnumField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barEnum(v)
- }
- }()
- case 18: try { try decoder.decodeSingularInt32Field(value: &self._bazInt) }()
- case 19: try { try decoder.decodeSingularStringField(value: &self._bazString) }()
- case 20: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barStringWithEmptyDefault(v)
- }
- }()
- case 21: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barCordWithEmptyDefault(v)
- }
- }()
- case 22: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barStringPieceWithEmptyDefault(v)
- }
- }()
- case 23: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if self.bar != nil {try decoder.handleConflictingOneOf()}
- self.bar = .barBytesWithEmptyDefault(v)
- }
- }()
- case 30: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooBytesCord(v)
- }
- }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- switch self.foo {
- case .fooInt?: try {
- guard case .fooInt(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- }()
- case .fooString?: try {
- guard case .fooString(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- }()
- case .fooCord?: try {
- guard case .fooCord(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 3)
- }()
- case .fooStringPiece?: try {
- guard case .fooStringPiece(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 4)
- }()
- case .fooBytes?: try {
- guard case .fooBytes(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
- }()
- case .fooEnum?: try {
- guard case .fooEnum(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularEnumField(value: v, fieldNumber: 6)
- }()
- case .fooMessage?: try {
- guard case .fooMessage(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
- }()
- case .fooGroup?: try {
- guard case .fooGroup(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularGroupField(value: v, fieldNumber: 8)
- }()
- case .fooLazyMessage?: try {
- guard case .fooLazyMessage(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
- }()
- default: break
- }
- switch self.bar {
- case .barInt?: try {
- guard case .barInt(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 12)
- }()
- case .barString?: try {
- guard case .barString(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 13)
- }()
- case .barCord?: try {
- guard case .barCord(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 14)
- }()
- case .barStringPiece?: try {
- guard case .barStringPiece(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 15)
- }()
- case .barBytes?: try {
- guard case .barBytes(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularBytesField(value: v, fieldNumber: 16)
- }()
- case .barEnum?: try {
- guard case .barEnum(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularEnumField(value: v, fieldNumber: 17)
- }()
- default: break
- }
- try { if let v = self._bazInt {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 18)
- } }()
- try { if let v = self._bazString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 19)
- } }()
- switch self.bar {
- case .barStringWithEmptyDefault?: try {
- guard case .barStringWithEmptyDefault(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 20)
- }()
- case .barCordWithEmptyDefault?: try {
- guard case .barCordWithEmptyDefault(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 21)
- }()
- case .barStringPieceWithEmptyDefault?: try {
- guard case .barStringPieceWithEmptyDefault(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 22)
- }()
- case .barBytesWithEmptyDefault?: try {
- guard case .barBytesWithEmptyDefault(let v)? = self.bar else { preconditionFailure() }
- try visitor.visitSingularBytesField(value: v, fieldNumber: 23)
- }()
- default: break
- }
- try { if case .fooBytesCord(let v)? = self.foo {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 30)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneof2, rhs: Proto2Unittest_TestOneof2) -> Bool {
- if lhs.foo != rhs.foo {return false}
- if lhs.bar != rhs.bar {return false}
- if lhs._bazInt != rhs._bazInt {return false}
- if lhs._bazString != rhs._bazString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneof2.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 3: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestOneof2.FooGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestOneof2.protoMessageName + ".FooGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 9: .same(proto: "a"),
- 10: .same(proto: "b"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 9: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 10: try { try decoder.decodeSingularStringField(value: &self._b) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularStringField(value: v, fieldNumber: 10)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneof2.FooGroup, rhs: Proto2Unittest_TestOneof2.FooGroup) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestOneof2.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestOneof2.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "moo_int"),
- 2: .standard(proto: "corge_int"),
- 3: .same(proto: "child"),
- ]
- fileprivate class _StorageClass {
- var _mooInt: Int64? = nil
- var _corgeInt: [Int32] = []
- var _child: Proto2Unittest_TestOneof2.NestedMessage? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _mooInt = source._mooInt
- _corgeInt = source._corgeInt
- _child = source._child
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt64Field(value: &_storage._mooInt) }()
- case 2: try { try decoder.decodeRepeatedInt32Field(value: &_storage._corgeInt) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &_storage._child) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._mooInt {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
- } }()
- if !_storage._corgeInt.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._corgeInt, fieldNumber: 2)
- }
- try { if let v = _storage._child {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestOneof2.NestedMessage, rhs: Proto2Unittest_TestOneof2.NestedMessage) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._mooInt != rhs_storage._mooInt {return false}
- if _storage._corgeInt != rhs_storage._corgeInt {return false}
- if _storage._child != rhs_storage._child {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredOneof: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRequiredOneof"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foo_int"),
- 2: .standard(proto: "foo_string"),
- 3: .standard(proto: "foo_message"),
- 4: .standard(proto: "foo_lazy_message"),
- ]
- public var isInitialized: Bool {
- if let v = self.foo, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try {
- var v: Int32?
- try decoder.decodeSingularInt32Field(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooInt(v)
- }
- }()
- case 2: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.foo != nil {try decoder.handleConflictingOneOf()}
- self.foo = .fooString(v)
- }
- }()
- case 3: try {
- var v: Proto2Unittest_TestRequiredOneof.NestedMessage?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooMessage(v)
- }
- }()
- case 4: try {
- var v: Proto2Unittest_TestRequiredOneof.NestedMessage?
- var hadOneofValue = false
- if let current = self.foo {
- hadOneofValue = true
- if case .fooLazyMessage(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.foo = .fooLazyMessage(v)
- }
- }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- switch self.foo {
- case .fooInt?: try {
- guard case .fooInt(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- }()
- case .fooString?: try {
- guard case .fooString(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- }()
- case .fooMessage?: try {
- guard case .fooMessage(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }()
- case .fooLazyMessage?: try {
- guard case .fooLazyMessage(let v)? = self.foo else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
- }()
- case nil: break
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredOneof, rhs: Proto2Unittest_TestRequiredOneof) -> Bool {
- if lhs.foo != rhs.foo {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRequiredOneof.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestRequiredOneof.protoMessageName + ".NestedMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "required_double"),
- ]
- public var isInitialized: Bool {
- if self._requiredDouble == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularDoubleField(value: &self._requiredDouble) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredDouble {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRequiredOneof.NestedMessage, rhs: Proto2Unittest_TestRequiredOneof.NestedMessage) -> Bool {
- if lhs._requiredDouble != rhs._requiredDouble {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPackedTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestPackedTypes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 90: .standard(proto: "packed_int32"),
- 91: .standard(proto: "packed_int64"),
- 92: .standard(proto: "packed_uint32"),
- 93: .standard(proto: "packed_uint64"),
- 94: .standard(proto: "packed_sint32"),
- 95: .standard(proto: "packed_sint64"),
- 96: .standard(proto: "packed_fixed32"),
- 97: .standard(proto: "packed_fixed64"),
- 98: .standard(proto: "packed_sfixed32"),
- 99: .standard(proto: "packed_sfixed64"),
- 100: .standard(proto: "packed_float"),
- 101: .standard(proto: "packed_double"),
- 102: .standard(proto: "packed_bool"),
- 103: .standard(proto: "packed_enum"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 90: try { try decoder.decodeRepeatedInt32Field(value: &self.packedInt32) }()
- case 91: try { try decoder.decodeRepeatedInt64Field(value: &self.packedInt64) }()
- case 92: try { try decoder.decodeRepeatedUInt32Field(value: &self.packedUint32) }()
- case 93: try { try decoder.decodeRepeatedUInt64Field(value: &self.packedUint64) }()
- case 94: try { try decoder.decodeRepeatedSInt32Field(value: &self.packedSint32) }()
- case 95: try { try decoder.decodeRepeatedSInt64Field(value: &self.packedSint64) }()
- case 96: try { try decoder.decodeRepeatedFixed32Field(value: &self.packedFixed32) }()
- case 97: try { try decoder.decodeRepeatedFixed64Field(value: &self.packedFixed64) }()
- case 98: try { try decoder.decodeRepeatedSFixed32Field(value: &self.packedSfixed32) }()
- case 99: try { try decoder.decodeRepeatedSFixed64Field(value: &self.packedSfixed64) }()
- case 100: try { try decoder.decodeRepeatedFloatField(value: &self.packedFloat) }()
- case 101: try { try decoder.decodeRepeatedDoubleField(value: &self.packedDouble) }()
- case 102: try { try decoder.decodeRepeatedBoolField(value: &self.packedBool) }()
- case 103: try { try decoder.decodeRepeatedEnumField(value: &self.packedEnum) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.packedInt32.isEmpty {
- try visitor.visitPackedInt32Field(value: self.packedInt32, fieldNumber: 90)
- }
- if !self.packedInt64.isEmpty {
- try visitor.visitPackedInt64Field(value: self.packedInt64, fieldNumber: 91)
- }
- if !self.packedUint32.isEmpty {
- try visitor.visitPackedUInt32Field(value: self.packedUint32, fieldNumber: 92)
- }
- if !self.packedUint64.isEmpty {
- try visitor.visitPackedUInt64Field(value: self.packedUint64, fieldNumber: 93)
- }
- if !self.packedSint32.isEmpty {
- try visitor.visitPackedSInt32Field(value: self.packedSint32, fieldNumber: 94)
- }
- if !self.packedSint64.isEmpty {
- try visitor.visitPackedSInt64Field(value: self.packedSint64, fieldNumber: 95)
- }
- if !self.packedFixed32.isEmpty {
- try visitor.visitPackedFixed32Field(value: self.packedFixed32, fieldNumber: 96)
- }
- if !self.packedFixed64.isEmpty {
- try visitor.visitPackedFixed64Field(value: self.packedFixed64, fieldNumber: 97)
- }
- if !self.packedSfixed32.isEmpty {
- try visitor.visitPackedSFixed32Field(value: self.packedSfixed32, fieldNumber: 98)
- }
- if !self.packedSfixed64.isEmpty {
- try visitor.visitPackedSFixed64Field(value: self.packedSfixed64, fieldNumber: 99)
- }
- if !self.packedFloat.isEmpty {
- try visitor.visitPackedFloatField(value: self.packedFloat, fieldNumber: 100)
- }
- if !self.packedDouble.isEmpty {
- try visitor.visitPackedDoubleField(value: self.packedDouble, fieldNumber: 101)
- }
- if !self.packedBool.isEmpty {
- try visitor.visitPackedBoolField(value: self.packedBool, fieldNumber: 102)
- }
- if !self.packedEnum.isEmpty {
- try visitor.visitPackedEnumField(value: self.packedEnum, fieldNumber: 103)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPackedTypes, rhs: Proto2Unittest_TestPackedTypes) -> Bool {
- if lhs.packedInt32 != rhs.packedInt32 {return false}
- if lhs.packedInt64 != rhs.packedInt64 {return false}
- if lhs.packedUint32 != rhs.packedUint32 {return false}
- if lhs.packedUint64 != rhs.packedUint64 {return false}
- if lhs.packedSint32 != rhs.packedSint32 {return false}
- if lhs.packedSint64 != rhs.packedSint64 {return false}
- if lhs.packedFixed32 != rhs.packedFixed32 {return false}
- if lhs.packedFixed64 != rhs.packedFixed64 {return false}
- if lhs.packedSfixed32 != rhs.packedSfixed32 {return false}
- if lhs.packedSfixed64 != rhs.packedSfixed64 {return false}
- if lhs.packedFloat != rhs.packedFloat {return false}
- if lhs.packedDouble != rhs.packedDouble {return false}
- if lhs.packedBool != rhs.packedBool {return false}
- if lhs.packedEnum != rhs.packedEnum {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestUnpackedTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestUnpackedTypes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 90: .standard(proto: "unpacked_int32"),
- 91: .standard(proto: "unpacked_int64"),
- 92: .standard(proto: "unpacked_uint32"),
- 93: .standard(proto: "unpacked_uint64"),
- 94: .standard(proto: "unpacked_sint32"),
- 95: .standard(proto: "unpacked_sint64"),
- 96: .standard(proto: "unpacked_fixed32"),
- 97: .standard(proto: "unpacked_fixed64"),
- 98: .standard(proto: "unpacked_sfixed32"),
- 99: .standard(proto: "unpacked_sfixed64"),
- 100: .standard(proto: "unpacked_float"),
- 101: .standard(proto: "unpacked_double"),
- 102: .standard(proto: "unpacked_bool"),
- 103: .standard(proto: "unpacked_enum"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 90: try { try decoder.decodeRepeatedInt32Field(value: &self.unpackedInt32) }()
- case 91: try { try decoder.decodeRepeatedInt64Field(value: &self.unpackedInt64) }()
- case 92: try { try decoder.decodeRepeatedUInt32Field(value: &self.unpackedUint32) }()
- case 93: try { try decoder.decodeRepeatedUInt64Field(value: &self.unpackedUint64) }()
- case 94: try { try decoder.decodeRepeatedSInt32Field(value: &self.unpackedSint32) }()
- case 95: try { try decoder.decodeRepeatedSInt64Field(value: &self.unpackedSint64) }()
- case 96: try { try decoder.decodeRepeatedFixed32Field(value: &self.unpackedFixed32) }()
- case 97: try { try decoder.decodeRepeatedFixed64Field(value: &self.unpackedFixed64) }()
- case 98: try { try decoder.decodeRepeatedSFixed32Field(value: &self.unpackedSfixed32) }()
- case 99: try { try decoder.decodeRepeatedSFixed64Field(value: &self.unpackedSfixed64) }()
- case 100: try { try decoder.decodeRepeatedFloatField(value: &self.unpackedFloat) }()
- case 101: try { try decoder.decodeRepeatedDoubleField(value: &self.unpackedDouble) }()
- case 102: try { try decoder.decodeRepeatedBoolField(value: &self.unpackedBool) }()
- case 103: try { try decoder.decodeRepeatedEnumField(value: &self.unpackedEnum) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.unpackedInt32.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.unpackedInt32, fieldNumber: 90)
- }
- if !self.unpackedInt64.isEmpty {
- try visitor.visitRepeatedInt64Field(value: self.unpackedInt64, fieldNumber: 91)
- }
- if !self.unpackedUint32.isEmpty {
- try visitor.visitRepeatedUInt32Field(value: self.unpackedUint32, fieldNumber: 92)
- }
- if !self.unpackedUint64.isEmpty {
- try visitor.visitRepeatedUInt64Field(value: self.unpackedUint64, fieldNumber: 93)
- }
- if !self.unpackedSint32.isEmpty {
- try visitor.visitRepeatedSInt32Field(value: self.unpackedSint32, fieldNumber: 94)
- }
- if !self.unpackedSint64.isEmpty {
- try visitor.visitRepeatedSInt64Field(value: self.unpackedSint64, fieldNumber: 95)
- }
- if !self.unpackedFixed32.isEmpty {
- try visitor.visitRepeatedFixed32Field(value: self.unpackedFixed32, fieldNumber: 96)
- }
- if !self.unpackedFixed64.isEmpty {
- try visitor.visitRepeatedFixed64Field(value: self.unpackedFixed64, fieldNumber: 97)
- }
- if !self.unpackedSfixed32.isEmpty {
- try visitor.visitRepeatedSFixed32Field(value: self.unpackedSfixed32, fieldNumber: 98)
- }
- if !self.unpackedSfixed64.isEmpty {
- try visitor.visitRepeatedSFixed64Field(value: self.unpackedSfixed64, fieldNumber: 99)
- }
- if !self.unpackedFloat.isEmpty {
- try visitor.visitRepeatedFloatField(value: self.unpackedFloat, fieldNumber: 100)
- }
- if !self.unpackedDouble.isEmpty {
- try visitor.visitRepeatedDoubleField(value: self.unpackedDouble, fieldNumber: 101)
- }
- if !self.unpackedBool.isEmpty {
- try visitor.visitRepeatedBoolField(value: self.unpackedBool, fieldNumber: 102)
- }
- if !self.unpackedEnum.isEmpty {
- try visitor.visitRepeatedEnumField(value: self.unpackedEnum, fieldNumber: 103)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestUnpackedTypes, rhs: Proto2Unittest_TestUnpackedTypes) -> Bool {
- if lhs.unpackedInt32 != rhs.unpackedInt32 {return false}
- if lhs.unpackedInt64 != rhs.unpackedInt64 {return false}
- if lhs.unpackedUint32 != rhs.unpackedUint32 {return false}
- if lhs.unpackedUint64 != rhs.unpackedUint64 {return false}
- if lhs.unpackedSint32 != rhs.unpackedSint32 {return false}
- if lhs.unpackedSint64 != rhs.unpackedSint64 {return false}
- if lhs.unpackedFixed32 != rhs.unpackedFixed32 {return false}
- if lhs.unpackedFixed64 != rhs.unpackedFixed64 {return false}
- if lhs.unpackedSfixed32 != rhs.unpackedSfixed32 {return false}
- if lhs.unpackedSfixed64 != rhs.unpackedSfixed64 {return false}
- if lhs.unpackedFloat != rhs.unpackedFloat {return false}
- if lhs.unpackedDouble != rhs.unpackedDouble {return false}
- if lhs.unpackedBool != rhs.unpackedBool {return false}
- if lhs.unpackedEnum != rhs.unpackedEnum {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPackedExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestPackedExtensions"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (1 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestPackedExtensions.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPackedExtensions, rhs: Proto2Unittest_TestPackedExtensions) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestUnpackedExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestUnpackedExtensions"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- if (1 <= fieldNumber && fieldNumber < 536870912) {
- try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestUnpackedExtensions.self, fieldNumber: fieldNumber)
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestUnpackedExtensions, rhs: Proto2Unittest_TestUnpackedExtensions) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDynamicExtensions: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestDynamicExtensions"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2000: .standard(proto: "scalar_extension"),
- 2001: .standard(proto: "enum_extension"),
- 2002: .standard(proto: "dynamic_enum_extension"),
- 2003: .standard(proto: "message_extension"),
- 2004: .standard(proto: "dynamic_message_extension"),
- 2005: .standard(proto: "repeated_extension"),
- 2006: .standard(proto: "packed_extension"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 2000: try { try decoder.decodeSingularFixed32Field(value: &self._scalarExtension) }()
- case 2001: try { try decoder.decodeSingularEnumField(value: &self._enumExtension) }()
- case 2002: try { try decoder.decodeSingularEnumField(value: &self._dynamicEnumExtension) }()
- case 2003: try { try decoder.decodeSingularMessageField(value: &self._messageExtension) }()
- case 2004: try { try decoder.decodeSingularMessageField(value: &self._dynamicMessageExtension) }()
- case 2005: try { try decoder.decodeRepeatedStringField(value: &self.repeatedExtension) }()
- case 2006: try { try decoder.decodeRepeatedSInt32Field(value: &self.packedExtension) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._scalarExtension {
- try visitor.visitSingularFixed32Field(value: v, fieldNumber: 2000)
- } }()
- try { if let v = self._enumExtension {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 2001)
- } }()
- try { if let v = self._dynamicEnumExtension {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 2002)
- } }()
- try { if let v = self._messageExtension {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2003)
- } }()
- try { if let v = self._dynamicMessageExtension {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2004)
- } }()
- if !self.repeatedExtension.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedExtension, fieldNumber: 2005)
- }
- if !self.packedExtension.isEmpty {
- try visitor.visitPackedSInt32Field(value: self.packedExtension, fieldNumber: 2006)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDynamicExtensions, rhs: Proto2Unittest_TestDynamicExtensions) -> Bool {
- if lhs._scalarExtension != rhs._scalarExtension {return false}
- if lhs._enumExtension != rhs._enumExtension {return false}
- if lhs._dynamicEnumExtension != rhs._dynamicEnumExtension {return false}
- if lhs._messageExtension != rhs._messageExtension {return false}
- if lhs._dynamicMessageExtension != rhs._dynamicMessageExtension {return false}
- if lhs.repeatedExtension != rhs.repeatedExtension {return false}
- if lhs.packedExtension != rhs.packedExtension {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestDynamicExtensions.DynamicEnumType: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2200: .same(proto: "DYNAMIC_FOO"),
- 2201: .same(proto: "DYNAMIC_BAR"),
- 2202: .same(proto: "DYNAMIC_BAZ"),
- ]
- }
- extension Proto2Unittest_TestDynamicExtensions.DynamicMessageType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestDynamicExtensions.protoMessageName + ".DynamicMessageType"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2100: .standard(proto: "dynamic_field"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 2100: try { try decoder.decodeSingularInt32Field(value: &self._dynamicField) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._dynamicField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2100)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestDynamicExtensions.DynamicMessageType, rhs: Proto2Unittest_TestDynamicExtensions.DynamicMessageType) -> Bool {
- if lhs._dynamicField != rhs._dynamicField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRepeatedString: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRepeatedString"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "repeated_string1"),
- 2: .standard(proto: "repeated_string2"),
- 11: .standard(proto: "repeated_bytes11"),
- 12: .standard(proto: "repeated_bytes12"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedStringField(value: &self.repeatedString1) }()
- case 2: try { try decoder.decodeRepeatedStringField(value: &self.repeatedString2) }()
- case 11: try { try decoder.decodeRepeatedBytesField(value: &self.repeatedBytes11) }()
- case 12: try { try decoder.decodeRepeatedBytesField(value: &self.repeatedBytes12) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.repeatedString1.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedString1, fieldNumber: 1)
- }
- if !self.repeatedString2.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedString2, fieldNumber: 2)
- }
- if !self.repeatedBytes11.isEmpty {
- try visitor.visitRepeatedBytesField(value: self.repeatedBytes11, fieldNumber: 11)
- }
- if !self.repeatedBytes12.isEmpty {
- try visitor.visitRepeatedBytesField(value: self.repeatedBytes12, fieldNumber: 12)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRepeatedString, rhs: Proto2Unittest_TestRepeatedString) -> Bool {
- if lhs.repeatedString1 != rhs.repeatedString1 {return false}
- if lhs.repeatedString2 != rhs.repeatedString2 {return false}
- if lhs.repeatedBytes11 != rhs.repeatedBytes11 {return false}
- if lhs.repeatedBytes12 != rhs.repeatedBytes12 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestRepeatedScalarDifferentTagSizes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestRepeatedScalarDifferentTagSizes"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 12: .standard(proto: "repeated_fixed32"),
- 13: .standard(proto: "repeated_int32"),
- 2046: .standard(proto: "repeated_fixed64"),
- 2047: .standard(proto: "repeated_int64"),
- 262142: .standard(proto: "repeated_float"),
- 262143: .standard(proto: "repeated_uint64"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 12: try { try decoder.decodeRepeatedFixed32Field(value: &self.repeatedFixed32) }()
- case 13: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32) }()
- case 2046: try { try decoder.decodeRepeatedFixed64Field(value: &self.repeatedFixed64) }()
- case 2047: try { try decoder.decodeRepeatedInt64Field(value: &self.repeatedInt64) }()
- case 262142: try { try decoder.decodeRepeatedFloatField(value: &self.repeatedFloat) }()
- case 262143: try { try decoder.decodeRepeatedUInt64Field(value: &self.repeatedUint64) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.repeatedFixed32.isEmpty {
- try visitor.visitRepeatedFixed32Field(value: self.repeatedFixed32, fieldNumber: 12)
- }
- if !self.repeatedInt32.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedInt32, fieldNumber: 13)
- }
- if !self.repeatedFixed64.isEmpty {
- try visitor.visitRepeatedFixed64Field(value: self.repeatedFixed64, fieldNumber: 2046)
- }
- if !self.repeatedInt64.isEmpty {
- try visitor.visitRepeatedInt64Field(value: self.repeatedInt64, fieldNumber: 2047)
- }
- if !self.repeatedFloat.isEmpty {
- try visitor.visitRepeatedFloatField(value: self.repeatedFloat, fieldNumber: 262142)
- }
- if !self.repeatedUint64.isEmpty {
- try visitor.visitRepeatedUInt64Field(value: self.repeatedUint64, fieldNumber: 262143)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestRepeatedScalarDifferentTagSizes, rhs: Proto2Unittest_TestRepeatedScalarDifferentTagSizes) -> Bool {
- if lhs.repeatedFixed32 != rhs.repeatedFixed32 {return false}
- if lhs.repeatedInt32 != rhs.repeatedInt32 {return false}
- if lhs.repeatedFixed64 != rhs.repeatedFixed64 {return false}
- if lhs.repeatedInt64 != rhs.repeatedInt64 {return false}
- if lhs.repeatedFloat != rhs.repeatedFloat {return false}
- if lhs.repeatedUint64 != rhs.repeatedUint64 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestParsingMerge"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "required_all_types"),
- 2: .standard(proto: "optional_all_types"),
- 3: .standard(proto: "repeated_all_types"),
- 10: .same(proto: "optionalgroup"),
- 10: .unique(proto: "OptionalGroup", json: "optionalgroup"),
- 20: .same(proto: "repeatedgroup"),
- 20: .unique(proto: "RepeatedGroup", json: "repeatedgroup"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- if self._requiredAllTypes == nil {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._requiredAllTypes) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 3: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 10: try { try decoder.decodeSingularGroupField(value: &self._optionalGroup) }()
- case 20: try { try decoder.decodeRepeatedGroupField(value: &self.repeatedGroup) }()
- case 1000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestParsingMerge.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._requiredAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 3)
- }
- try { if let v = self._optionalGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 10)
- } }()
- if !self.repeatedGroup.isEmpty {
- try visitor.visitRepeatedGroupField(value: self.repeatedGroup, fieldNumber: 20)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge, rhs: Proto2Unittest_TestParsingMerge) -> Bool {
- if lhs._requiredAllTypes != rhs._requiredAllTypes {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs._optionalGroup != rhs._optionalGroup {return false}
- if lhs.repeatedGroup != rhs.repeatedGroup {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestParsingMerge.protoMessageName + ".RepeatedFieldsGenerator"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "field1"),
- 2: .same(proto: "field2"),
- 3: .same(proto: "field3"),
- 10: .same(proto: "group1"),
- 10: .unique(proto: "Group1", json: "group1"),
- 20: .same(proto: "group2"),
- 20: .unique(proto: "Group2", json: "group2"),
- 1000: .same(proto: "ext1"),
- 1001: .same(proto: "ext2"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedMessageField(value: &self.field1) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.field2) }()
- case 3: try { try decoder.decodeRepeatedMessageField(value: &self.field3) }()
- case 10: try { try decoder.decodeRepeatedGroupField(value: &self.group1) }()
- case 20: try { try decoder.decodeRepeatedGroupField(value: &self.group2) }()
- case 1000: try { try decoder.decodeRepeatedMessageField(value: &self.ext1) }()
- case 1001: try { try decoder.decodeRepeatedMessageField(value: &self.ext2) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.field1.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.field1, fieldNumber: 1)
- }
- if !self.field2.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.field2, fieldNumber: 2)
- }
- if !self.field3.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.field3, fieldNumber: 3)
- }
- if !self.group1.isEmpty {
- try visitor.visitRepeatedGroupField(value: self.group1, fieldNumber: 10)
- }
- if !self.group2.isEmpty {
- try visitor.visitRepeatedGroupField(value: self.group2, fieldNumber: 20)
- }
- if !self.ext1.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.ext1, fieldNumber: 1000)
- }
- if !self.ext2.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.ext2, fieldNumber: 1001)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator, rhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator) -> Bool {
- if lhs.field1 != rhs.field1 {return false}
- if lhs.field2 != rhs.field2 {return false}
- if lhs.field3 != rhs.field3 {return false}
- if lhs.group1 != rhs.group1 {return false}
- if lhs.group2 != rhs.group2 {return false}
- if lhs.ext1 != rhs.ext1 {return false}
- if lhs.ext2 != rhs.ext2 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group1: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.protoMessageName + ".Group1"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 11: .same(proto: "field1"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 11: try { try decoder.decodeSingularMessageField(value: &self._field1) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._field1 {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group1, rhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group1) -> Bool {
- if lhs._field1 != rhs._field1 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.protoMessageName + ".Group2"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 21: .same(proto: "field1"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 21: try { try decoder.decodeSingularMessageField(value: &self._field1) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._field1 {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group2, rhs: Proto2Unittest_TestParsingMerge.RepeatedFieldsGenerator.Group2) -> Bool {
- if lhs._field1 != rhs._field1 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge.OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestParsingMerge.protoMessageName + ".OptionalGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 11: .standard(proto: "optional_group_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 11: try { try decoder.decodeSingularMessageField(value: &self._optionalGroupAllTypes) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalGroupAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge.OptionalGroup, rhs: Proto2Unittest_TestParsingMerge.OptionalGroup) -> Bool {
- if lhs._optionalGroupAllTypes != rhs._optionalGroupAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestParsingMerge.RepeatedGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestParsingMerge.protoMessageName + ".RepeatedGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 21: .standard(proto: "repeated_group_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 21: try { try decoder.decodeSingularMessageField(value: &self._repeatedGroupAllTypes) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._repeatedGroupAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestParsingMerge.RepeatedGroup, rhs: Proto2Unittest_TestParsingMerge.RepeatedGroup) -> Bool {
- if lhs._repeatedGroupAllTypes != rhs._repeatedGroupAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMergeException: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMergeException"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "all_extensions"),
- ]
- public var isInitialized: Bool {
- if let v = self._allExtensions, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._allExtensions) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._allExtensions {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMergeException, rhs: Proto2Unittest_TestMergeException) -> Bool {
- if lhs._allExtensions != rhs._allExtensions {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestCommentInjectionMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestCommentInjectionMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._a) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestCommentInjectionMessage, rhs: Proto2Unittest_TestCommentInjectionMessage) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMessageSize: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMessageSize"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "m1"),
- 2: .same(proto: "m2"),
- 3: .same(proto: "m3"),
- 4: .same(proto: "m4"),
- 5: .same(proto: "m5"),
- 6: .same(proto: "m6"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBoolField(value: &self._m1) }()
- case 2: try { try decoder.decodeSingularInt64Field(value: &self._m2) }()
- case 3: try { try decoder.decodeSingularBoolField(value: &self._m3) }()
- case 4: try { try decoder.decodeSingularStringField(value: &self._m4) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &self._m5) }()
- case 6: try { try decoder.decodeSingularInt64Field(value: &self._m6) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._m1 {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._m2 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._m3 {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._m4 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._m5 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._m6 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 6)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMessageSize, rhs: Proto2Unittest_TestMessageSize) -> Bool {
- if lhs._m1 != rhs._m1 {return false}
- if lhs._m2 != rhs._m2 {return false}
- if lhs._m3 != rhs._m3 {return false}
- if lhs._m4 != rhs._m4 {return false}
- if lhs._m5 != rhs._m5 {return false}
- if lhs._m6 != rhs._m6 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_OpenEnumMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".OpenEnumMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "opt_open"),
- 2: .standard(proto: "opt_closed"),
- 3: .standard(proto: "repeated_open"),
- 4: .standard(proto: "repeated_closed"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &self._optOpen) }()
- case 2: try { try decoder.decodeSingularEnumField(value: &self._optClosed) }()
- case 3: try { try decoder.decodeRepeatedEnumField(value: &self.repeatedOpen) }()
- case 4: try { try decoder.decodeRepeatedEnumField(value: &self.repeatedClosed) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optOpen {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optClosed {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
- } }()
- if !self.repeatedOpen.isEmpty {
- try visitor.visitRepeatedEnumField(value: self.repeatedOpen, fieldNumber: 3)
- }
- if !self.repeatedClosed.isEmpty {
- try visitor.visitRepeatedEnumField(value: self.repeatedClosed, fieldNumber: 4)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_OpenEnumMessage, rhs: Proto2Unittest_OpenEnumMessage) -> Bool {
- if lhs._optOpen != rhs._optOpen {return false}
- if lhs._optClosed != rhs._optClosed {return false}
- if lhs.repeatedOpen != rhs.repeatedOpen {return false}
- if lhs.repeatedClosed != rhs.repeatedClosed {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_OpenEnumMessage.TestEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "UNKNOWN"),
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 3: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_TestEagerlyVerifiedLazyMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestEagerlyVerifiedLazyMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "lazy_message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._lazyMessage) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._lazyMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEagerlyVerifiedLazyMessage, rhs: Proto2Unittest_TestEagerlyVerifiedLazyMessage) -> Bool {
- if lhs._lazyMessage != rhs._lazyMessage {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestEagerlyVerifiedLazyMessage.protoMessageName + ".LazyMessage"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "bytes_field"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBytesField(value: &self._bytesField) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._bytesField {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage, rhs: Proto2Unittest_TestEagerlyVerifiedLazyMessage.LazyMessage) -> Bool {
- if lhs._bytesField != rhs._bytesField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_FooRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".FooRequest"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_FooRequest, rhs: Proto2Unittest_FooRequest) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_FooResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".FooResponse"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_FooResponse, rhs: Proto2Unittest_FooResponse) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_FooClientMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".FooClientMessage"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_FooClientMessage, rhs: Proto2Unittest_FooClientMessage) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_FooServerMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".FooServerMessage"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_FooServerMessage, rhs: Proto2Unittest_FooServerMessage) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_BarRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".BarRequest"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_BarRequest, rhs: Proto2Unittest_BarRequest) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_BarResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".BarResponse"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_BarResponse, rhs: Proto2Unittest_BarResponse) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestJsonName: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestJsonName"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "field_name1"),
- 2: .same(proto: "fieldName2"),
- 3: .same(proto: "FieldName3"),
- 4: .standard(proto: "_field_name4"),
- 5: .standard(proto: "FIELD_NAME5"),
- 6: .unique(proto: "field_name6", json: "@type"),
- 7: .same(proto: "fieldname7"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._fieldName1) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._fieldName2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._fieldName3) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &self._fieldName4) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &self._fieldName5) }()
- case 6: try { try decoder.decodeSingularInt32Field(value: &self._fieldName6) }()
- case 7: try { try decoder.decodeSingularInt32Field(value: &self._fieldname7) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._fieldName1 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._fieldName2 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._fieldName3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._fieldName4 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._fieldName5 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._fieldName6 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = self._fieldname7 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestJsonName, rhs: Proto2Unittest_TestJsonName) -> Bool {
- if lhs._fieldName1 != rhs._fieldName1 {return false}
- if lhs._fieldName2 != rhs._fieldName2 {return false}
- if lhs._fieldName3 != rhs._fieldName3 {return false}
- if lhs._fieldName4 != rhs._fieldName4 {return false}
- if lhs._fieldName5 != rhs._fieldName5 {return false}
- if lhs._fieldName6 != rhs._fieldName6 {return false}
- if lhs._fieldname7 != rhs._fieldname7 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestHugeFieldNumbers: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestHugeFieldNumbers"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 536870000: .standard(proto: "optional_int32"),
- 536870001: .standard(proto: "fixed_32"),
- 536870002: .standard(proto: "repeated_int32"),
- 536870003: .standard(proto: "packed_int32"),
- 536870004: .standard(proto: "optional_enum"),
- 536870005: .standard(proto: "optional_string"),
- 536870006: .standard(proto: "optional_bytes"),
- 536870007: .standard(proto: "optional_message"),
- 536870008: .same(proto: "optionalgroup"),
- 536870008: .unique(proto: "OptionalGroup", json: "optionalgroup"),
- 536870010: .standard(proto: "string_string_map"),
- 536870011: .standard(proto: "oneof_uint32"),
- 536870012: .standard(proto: "oneof_test_all_types"),
- 536870013: .standard(proto: "oneof_string"),
- 536870014: .standard(proto: "oneof_bytes"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 536870000: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32) }()
- case 536870001: try { try decoder.decodeSingularInt32Field(value: &self._fixed32) }()
- case 536870002: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32) }()
- case 536870003: try { try decoder.decodeRepeatedInt32Field(value: &self.packedInt32) }()
- case 536870004: try { try decoder.decodeSingularEnumField(value: &self._optionalEnum) }()
- case 536870005: try { try decoder.decodeSingularStringField(value: &self._optionalString) }()
- case 536870006: try { try decoder.decodeSingularBytesField(value: &self._optionalBytes) }()
- case 536870007: try { try decoder.decodeSingularMessageField(value: &self._optionalMessage) }()
- case 536870008: try { try decoder.decodeSingularGroupField(value: &self._optionalGroup) }()
- case 536870010: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &self.stringStringMap) }()
- case 536870011: try {
- var v: UInt32?
- try decoder.decodeSingularUInt32Field(value: &v)
- if let v = v {
- if self.oneofField != nil {try decoder.handleConflictingOneOf()}
- self.oneofField = .oneofUint32(v)
- }
- }()
- case 536870012: try {
- var v: Proto2Unittest_TestAllTypes?
- var hadOneofValue = false
- if let current = self.oneofField {
- hadOneofValue = true
- if case .oneofTestAllTypes(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- self.oneofField = .oneofTestAllTypes(v)
- }
- }()
- case 536870013: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if self.oneofField != nil {try decoder.handleConflictingOneOf()}
- self.oneofField = .oneofString(v)
- }
- }()
- case 536870014: try {
- var v: Data?
- try decoder.decodeSingularBytesField(value: &v)
- if let v = v {
- if self.oneofField != nil {try decoder.handleConflictingOneOf()}
- self.oneofField = .oneofBytes(v)
- }
- }()
- case 536860000..<536870000:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestHugeFieldNumbers.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 536860000, end: 536870000)
- try { if let v = self._optionalInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 536870000)
- } }()
- try { if let v = self._fixed32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 536870001)
- } }()
- if !self.repeatedInt32.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedInt32, fieldNumber: 536870002)
- }
- if !self.packedInt32.isEmpty {
- try visitor.visitPackedInt32Field(value: self.packedInt32, fieldNumber: 536870003)
- }
- try { if let v = self._optionalEnum {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 536870004)
- } }()
- try { if let v = self._optionalString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 536870005)
- } }()
- try { if let v = self._optionalBytes {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 536870006)
- } }()
- try { if let v = self._optionalMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 536870007)
- } }()
- try { if let v = self._optionalGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 536870008)
- } }()
- if !self.stringStringMap.isEmpty {
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: self.stringStringMap, fieldNumber: 536870010)
- }
- switch self.oneofField {
- case .oneofUint32?: try {
- guard case .oneofUint32(let v)? = self.oneofField else { preconditionFailure() }
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 536870011)
- }()
- case .oneofTestAllTypes?: try {
- guard case .oneofTestAllTypes(let v)? = self.oneofField else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 536870012)
- }()
- case .oneofString?: try {
- guard case .oneofString(let v)? = self.oneofField else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 536870013)
- }()
- case .oneofBytes?: try {
- guard case .oneofBytes(let v)? = self.oneofField else { preconditionFailure() }
- try visitor.visitSingularBytesField(value: v, fieldNumber: 536870014)
- }()
- case nil: break
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestHugeFieldNumbers, rhs: Proto2Unittest_TestHugeFieldNumbers) -> Bool {
- if lhs._optionalInt32 != rhs._optionalInt32 {return false}
- if lhs._fixed32 != rhs._fixed32 {return false}
- if lhs.repeatedInt32 != rhs.repeatedInt32 {return false}
- if lhs.packedInt32 != rhs.packedInt32 {return false}
- if lhs._optionalEnum != rhs._optionalEnum {return false}
- if lhs._optionalString != rhs._optionalString {return false}
- if lhs._optionalBytes != rhs._optionalBytes {return false}
- if lhs._optionalMessage != rhs._optionalMessage {return false}
- if lhs._optionalGroup != rhs._optionalGroup {return false}
- if lhs.stringStringMap != rhs.stringStringMap {return false}
- if lhs.oneofField != rhs.oneofField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestHugeFieldNumbers.OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestHugeFieldNumbers.protoMessageName + ".OptionalGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 536870009: .standard(proto: "group_a"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 536870009: try { try decoder.decodeSingularInt32Field(value: &self._groupA) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._groupA {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 536870009)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestHugeFieldNumbers.OptionalGroup, rhs: Proto2Unittest_TestHugeFieldNumbers.OptionalGroup) -> Bool {
- if lhs._groupA != rhs._groupA {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtensionInsideTable: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestExtensionInsideTable"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "field1"),
- 2: .same(proto: "field2"),
- 3: .same(proto: "field3"),
- 4: .same(proto: "field4"),
- 6: .same(proto: "field6"),
- 7: .same(proto: "field7"),
- 8: .same(proto: "field8"),
- 9: .same(proto: "field9"),
- 10: .same(proto: "field10"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._field1) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._field2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._field3) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &self._field4) }()
- case 6: try { try decoder.decodeSingularInt32Field(value: &self._field6) }()
- case 7: try { try decoder.decodeSingularInt32Field(value: &self._field7) }()
- case 8: try { try decoder.decodeSingularInt32Field(value: &self._field8) }()
- case 9: try { try decoder.decodeSingularInt32Field(value: &self._field9) }()
- case 10: try { try decoder.decodeSingularInt32Field(value: &self._field10) }()
- case 5:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestExtensionInsideTable.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._field1 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._field2 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._field3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._field4 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 5, end: 6)
- try { if let v = self._field6 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = self._field7 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
- } }()
- try { if let v = self._field8 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 8)
- } }()
- try { if let v = self._field9 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
- } }()
- try { if let v = self._field10 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 10)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtensionInsideTable, rhs: Proto2Unittest_TestExtensionInsideTable) -> Bool {
- if lhs._field1 != rhs._field1 {return false}
- if lhs._field2 != rhs._field2 {return false}
- if lhs._field3 != rhs._field3 {return false}
- if lhs._field4 != rhs._field4 {return false}
- if lhs._field6 != rhs._field6 {return false}
- if lhs._field7 != rhs._field7 {return false}
- if lhs._field8 != rhs._field8 {return false}
- if lhs._field9 != rhs._field9 {return false}
- if lhs._field10 != rhs._field10 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionOuter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedGroupExtensionOuter"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "layer1optionalgroup"),
- 1: .unique(proto: "Layer1OptionalGroup", json: "layer1optionalgroup"),
- ]
- public var isInitialized: Bool {
- if let v = self._layer1OptionalGroup, !v.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularGroupField(value: &self._layer1OptionalGroup) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._layer1OptionalGroup {
- try visitor.visitSingularGroupField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedGroupExtensionOuter, rhs: Proto2Unittest_TestNestedGroupExtensionOuter) -> Bool {
- if lhs._layer1OptionalGroup != rhs._layer1OptionalGroup {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestNestedGroupExtensionOuter.protoMessageName + ".Layer1OptionalGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 2: .same(proto: "layer2repeatedgroup"),
- 2: .unique(proto: "Layer2RepeatedGroup", json: "layer2repeatedgroup"),
- 4: .same(proto: "layer2anotheroptionalrepeatedgroup"),
- 4: .unique(proto: "Layer2AnotherOptionalRepeatedGroup", json: "layer2anotheroptionalrepeatedgroup"),
- ]
- public var isInitialized: Bool {
- if !SwiftProtobuf.Internal.areAllInitialized(self.layer2RepeatedGroup) {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 2: try { try decoder.decodeRepeatedGroupField(value: &self.layer2RepeatedGroup) }()
- case 4: try { try decoder.decodeRepeatedGroupField(value: &self.layer2AnotherOptionalRepeatedGroup) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.layer2RepeatedGroup.isEmpty {
- try visitor.visitRepeatedGroupField(value: self.layer2RepeatedGroup, fieldNumber: 2)
- }
- if !self.layer2AnotherOptionalRepeatedGroup.isEmpty {
- try visitor.visitRepeatedGroupField(value: self.layer2AnotherOptionalRepeatedGroup, fieldNumber: 4)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup, rhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup) -> Bool {
- if lhs.layer2RepeatedGroup != rhs.layer2RepeatedGroup {return false}
- if lhs.layer2AnotherOptionalRepeatedGroup != rhs.layer2AnotherOptionalRepeatedGroup {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.protoMessageName + ".Layer2RepeatedGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 6: .standard(proto: "another_field"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 6: try { try decoder.decodeSingularStringField(value: &self._anotherField) }()
- case 3:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 3, end: 4)
- try { if let v = self._anotherField {
- try visitor.visitSingularStringField(value: v, fieldNumber: 6)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup, rhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup) -> Bool {
- if lhs._anotherField != rhs._anotherField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2AnotherOptionalRepeatedGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.protoMessageName + ".Layer2AnotherOptionalRepeatedGroup"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 5: .standard(proto: "but_why_tho"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 5: try { try decoder.decodeSingularStringField(value: &self._butWhyTho) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._butWhyTho {
- try visitor.visitSingularStringField(value: v, fieldNumber: 5)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2AnotherOptionalRepeatedGroup, rhs: Proto2Unittest_TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2AnotherOptionalRepeatedGroup) -> Bool {
- if lhs._butWhyTho != rhs._butWhyTho {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedGroupExtensionInnerExtension: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedGroupExtensionInnerExtension"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "inner_name"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._innerName) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._innerName {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedGroupExtensionInnerExtension, rhs: Proto2Unittest_TestNestedGroupExtensionInnerExtension) -> Bool {
- if lhs._innerName != rhs._innerName {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestExtensionRangeSerialize: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestExtensionRangeSerialize"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "foo_one"),
- 6: .standard(proto: "foo_two"),
- 7: .standard(proto: "foo_three"),
- 13: .standard(proto: "foo_four"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._fooOne) }()
- case 6: try { try decoder.decodeSingularInt32Field(value: &self._fooTwo) }()
- case 7: try { try decoder.decodeSingularInt32Field(value: &self._fooThree) }()
- case 13: try { try decoder.decodeSingularInt32Field(value: &self._fooFour) }()
- case 2..<5, 9..<11, 15, 17, 19:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_TestExtensionRangeSerialize.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._fooOne {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2, end: 5)
- try { if let v = self._fooTwo {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = self._fooThree {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 9, end: 11)
- try { if let v = self._fooFour {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 13)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 15, end: 20)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestExtensionRangeSerialize, rhs: Proto2Unittest_TestExtensionRangeSerialize) -> Bool {
- if lhs._fooOne != rhs._fooOne {return false}
- if lhs._fooTwo != rhs._fooTwo {return false}
- if lhs._fooThree != rhs._fooThree {return false}
- if lhs._fooFour != rhs._fooFour {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyInt32Simple: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyInt32Simple"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_int32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt321 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyInt32Simple, rhs: Proto2Unittest_TestVerifyInt32Simple) -> Bool {
- if lhs._optionalInt321 != rhs._optionalInt321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyInt32: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyInt32"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_int32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt321 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyInt32, rhs: Proto2Unittest_TestVerifyInt32) -> Bool {
- if lhs._optionalInt321 != rhs._optionalInt321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyMostlyInt32: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyMostlyInt32"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 30: .standard(proto: "optional_int64_30"),
- 1: .standard(proto: "optional_int32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 3: .standard(proto: "optional_int32_3"),
- 4: .standard(proto: "optional_int32_4"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt323) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt324) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 30: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt6430) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt321 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalInt323 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._optionalInt324 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt6430 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 30)
- } }()
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyMostlyInt32, rhs: Proto2Unittest_TestVerifyMostlyInt32) -> Bool {
- if lhs._optionalInt6430 != rhs._optionalInt6430 {return false}
- if lhs._optionalInt321 != rhs._optionalInt321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt323 != rhs._optionalInt323 {return false}
- if lhs._optionalInt324 != rhs._optionalInt324 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyMostlyInt32BigFieldNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyMostlyInt32BigFieldNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 30: .standard(proto: "optional_int64_30"),
- 300: .standard(proto: "optional_int32_300"),
- 1: .standard(proto: "optional_int32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 3: .standard(proto: "optional_int32_3"),
- 4: .standard(proto: "optional_int32_4"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt323) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt324) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 30: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt6430) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- case 300: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32300) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt321 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalInt323 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._optionalInt324 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt6430 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 30)
- } }()
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = self._optionalInt32300 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 300)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyMostlyInt32BigFieldNumber, rhs: Proto2Unittest_TestVerifyMostlyInt32BigFieldNumber) -> Bool {
- if lhs._optionalInt6430 != rhs._optionalInt6430 {return false}
- if lhs._optionalInt32300 != rhs._optionalInt32300 {return false}
- if lhs._optionalInt321 != rhs._optionalInt321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt323 != rhs._optionalInt323 {return false}
- if lhs._optionalInt324 != rhs._optionalInt324 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyUint32Simple: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyUint32Simple"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_uint32_1"),
- 2: .standard(proto: "optional_uint32_2"),
- 63: .standard(proto: "optional_uint32_63"),
- 64: .standard(proto: "optional_uint32_64"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint321) }()
- case 2: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint322) }()
- case 63: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3263) }()
- case 64: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalUint321 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalUint322 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalUint3263 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalUint3264 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyUint32Simple, rhs: Proto2Unittest_TestVerifyUint32Simple) -> Bool {
- if lhs._optionalUint321 != rhs._optionalUint321 {return false}
- if lhs._optionalUint322 != rhs._optionalUint322 {return false}
- if lhs._optionalUint3263 != rhs._optionalUint3263 {return false}
- if lhs._optionalUint3264 != rhs._optionalUint3264 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyUint32: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyUint32"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_uint32_1"),
- 2: .standard(proto: "optional_uint32_2"),
- 63: .standard(proto: "optional_uint32_63"),
- 64: .standard(proto: "optional_uint32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint321) }()
- case 2: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3263) }()
- case 64: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalUint321 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalUint322 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalUint3263 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalUint3264 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyUint32, rhs: Proto2Unittest_TestVerifyUint32) -> Bool {
- if lhs._optionalUint321 != rhs._optionalUint321 {return false}
- if lhs._optionalUint322 != rhs._optionalUint322 {return false}
- if lhs._optionalUint3263 != rhs._optionalUint3263 {return false}
- if lhs._optionalUint3264 != rhs._optionalUint3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyOneUint32: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyOneUint32"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_uint32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalUint321 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyOneUint32, rhs: Proto2Unittest_TestVerifyOneUint32) -> Bool {
- if lhs._optionalUint321 != rhs._optionalUint321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyOneInt32BigFieldNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyOneInt32BigFieldNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 65: .standard(proto: "optional_int32_65"),
- 1: .standard(proto: "optional_int64_1"),
- 2: .standard(proto: "optional_int64_2"),
- 63: .standard(proto: "optional_int64_63"),
- 64: .standard(proto: "optional_int64_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt641) }()
- case 2: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt642) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt6463) }()
- case 64: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt6464) }()
- case 65: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3265) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt641 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt642 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt6463 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt6464 {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = self._optionalInt3265 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 65)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyOneInt32BigFieldNumber, rhs: Proto2Unittest_TestVerifyOneInt32BigFieldNumber) -> Bool {
- if lhs._optionalInt3265 != rhs._optionalInt3265 {return false}
- if lhs._optionalInt641 != rhs._optionalInt641 {return false}
- if lhs._optionalInt642 != rhs._optionalInt642 {return false}
- if lhs._optionalInt6463 != rhs._optionalInt6463 {return false}
- if lhs._optionalInt6464 != rhs._optionalInt6464 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyInt32BigFieldNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyInt32BigFieldNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1000: .standard(proto: "optional_int32_1000"),
- 65: .standard(proto: "optional_int32_65"),
- 1: .standard(proto: "optional_int32_1"),
- 2: .standard(proto: "optional_int32_2"),
- 63: .standard(proto: "optional_int32_63"),
- 64: .standard(proto: "optional_int32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3263) }()
- case 64: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3264) }()
- case 65: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt3265) }()
- case 1000: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt321000) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt321 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalInt322 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalInt3263 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalInt3264 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = self._optionalInt3265 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 65)
- } }()
- try { if let v = self._optionalInt321000 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1000)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyInt32BigFieldNumber, rhs: Proto2Unittest_TestVerifyInt32BigFieldNumber) -> Bool {
- if lhs._optionalInt321000 != rhs._optionalInt321000 {return false}
- if lhs._optionalInt3265 != rhs._optionalInt3265 {return false}
- if lhs._optionalInt321 != rhs._optionalInt321 {return false}
- if lhs._optionalInt322 != rhs._optionalInt322 {return false}
- if lhs._optionalInt3263 != rhs._optionalInt3263 {return false}
- if lhs._optionalInt3264 != rhs._optionalInt3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyUint32BigFieldNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyUint32BigFieldNumber"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1000: .standard(proto: "optional_uint32_1000"),
- 65: .standard(proto: "optional_uint32_65"),
- 1: .standard(proto: "optional_uint32_1"),
- 2: .standard(proto: "optional_uint32_2"),
- 63: .standard(proto: "optional_uint32_63"),
- 64: .standard(proto: "optional_uint32_64"),
- 9: .standard(proto: "optional_all_types"),
- 10: .standard(proto: "repeated_all_types"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint321) }()
- case 2: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &self._optionalAllTypes) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedAllTypes) }()
- case 63: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3263) }()
- case 64: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3264) }()
- case 65: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint3265) }()
- case 1000: try { try decoder.decodeSingularUInt32Field(value: &self._optionalUint321000) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalUint321 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalUint322 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._optionalAllTypes {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !self.repeatedAllTypes.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedAllTypes, fieldNumber: 10)
- }
- try { if let v = self._optionalUint3263 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = self._optionalUint3264 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = self._optionalUint3265 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 65)
- } }()
- try { if let v = self._optionalUint321000 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1000)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyUint32BigFieldNumber, rhs: Proto2Unittest_TestVerifyUint32BigFieldNumber) -> Bool {
- if lhs._optionalUint321000 != rhs._optionalUint321000 {return false}
- if lhs._optionalUint3265 != rhs._optionalUint3265 {return false}
- if lhs._optionalUint321 != rhs._optionalUint321 {return false}
- if lhs._optionalUint322 != rhs._optionalUint322 {return false}
- if lhs._optionalUint3263 != rhs._optionalUint3263 {return false}
- if lhs._optionalUint3264 != rhs._optionalUint3264 {return false}
- if lhs._optionalAllTypes != rhs._optionalAllTypes {return false}
- if lhs.repeatedAllTypes != rhs.repeatedAllTypes {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyBigFieldNumberUint32: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestVerifyBigFieldNumberUint32"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_nested"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._optionalNested) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalNested {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyBigFieldNumberUint32, rhs: Proto2Unittest_TestVerifyBigFieldNumberUint32) -> Bool {
- if lhs._optionalNested != rhs._optionalNested {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = Proto2Unittest_TestVerifyBigFieldNumberUint32.protoMessageName + ".Nested"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 5000: .standard(proto: "optional_uint32_5000"),
- 1000: .standard(proto: "optional_uint32_1000"),
- 66: .standard(proto: "optional_uint32_66"),
- 65: .standard(proto: "optional_uint32_65"),
- 1: .standard(proto: "optional_uint32_1"),
- 2: .standard(proto: "optional_uint32_2"),
- 63: .standard(proto: "optional_uint32_63"),
- 64: .standard(proto: "optional_uint32_64"),
- 9: .standard(proto: "optional_nested"),
- 10: .standard(proto: "repeated_nested"),
- ]
- fileprivate class _StorageClass {
- var _optionalUint325000: UInt32? = nil
- var _optionalUint321000: UInt32? = nil
- var _optionalUint3266: UInt32? = nil
- var _optionalUint3265: UInt32? = nil
- var _optionalUint321: UInt32? = nil
- var _optionalUint322: UInt32? = nil
- var _optionalUint3263: UInt32? = nil
- var _optionalUint3264: UInt32? = nil
- var _optionalNested: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested? = nil
- var _repeatedNested: [Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested] = []
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _optionalUint325000 = source._optionalUint325000
- _optionalUint321000 = source._optionalUint321000
- _optionalUint3266 = source._optionalUint3266
- _optionalUint3265 = source._optionalUint3265
- _optionalUint321 = source._optionalUint321
- _optionalUint322 = source._optionalUint322
- _optionalUint3263 = source._optionalUint3263
- _optionalUint3264 = source._optionalUint3264
- _optionalNested = source._optionalNested
- _repeatedNested = source._repeatedNested
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint321) }()
- case 2: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint322) }()
- case 9: try { try decoder.decodeSingularMessageField(value: &_storage._optionalNested) }()
- case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._repeatedNested) }()
- case 63: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint3263) }()
- case 64: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint3264) }()
- case 65: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint3265) }()
- case 66: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint3266) }()
- case 1000: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint321000) }()
- case 5000: try { try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint325000) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._optionalUint321 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._optionalUint322 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._optionalNested {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
- } }()
- if !_storage._repeatedNested.isEmpty {
- try visitor.visitRepeatedMessageField(value: _storage._repeatedNested, fieldNumber: 10)
- }
- try { if let v = _storage._optionalUint3263 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 63)
- } }()
- try { if let v = _storage._optionalUint3264 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 64)
- } }()
- try { if let v = _storage._optionalUint3265 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 65)
- } }()
- try { if let v = _storage._optionalUint3266 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 66)
- } }()
- try { if let v = _storage._optionalUint321000 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1000)
- } }()
- try { if let v = _storage._optionalUint325000 {
- try visitor.visitSingularUInt32Field(value: v, fieldNumber: 5000)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested, rhs: Proto2Unittest_TestVerifyBigFieldNumberUint32.Nested) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._optionalUint325000 != rhs_storage._optionalUint325000 {return false}
- if _storage._optionalUint321000 != rhs_storage._optionalUint321000 {return false}
- if _storage._optionalUint3266 != rhs_storage._optionalUint3266 {return false}
- if _storage._optionalUint3265 != rhs_storage._optionalUint3265 {return false}
- if _storage._optionalUint321 != rhs_storage._optionalUint321 {return false}
- if _storage._optionalUint322 != rhs_storage._optionalUint322 {return false}
- if _storage._optionalUint3263 != rhs_storage._optionalUint3263 {return false}
- if _storage._optionalUint3264 != rhs_storage._optionalUint3264 {return false}
- if _storage._optionalNested != rhs_storage._optionalNested {return false}
- if _storage._repeatedNested != rhs_storage._repeatedNested {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_EnumParseTester: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".EnumParseTester"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_seq_small_0_lowfield"),
- 1001: .standard(proto: "optional_seq_small_0_midfield"),
- 1000001: .standard(proto: "optional_seq_small_0_hifield"),
- 2: .standard(proto: "repeated_seq_small_0_lowfield"),
- 1002: .standard(proto: "repeated_seq_small_0_midfield"),
- 1000002: .standard(proto: "repeated_seq_small_0_hifield"),
- 3: .standard(proto: "packed_seq_small_0_lowfield"),
- 1003: .standard(proto: "packed_seq_small_0_midfield"),
- 1000003: .standard(proto: "packed_seq_small_0_hifield"),
- 4: .standard(proto: "optional_seq_small_1_lowfield"),
- 1004: .standard(proto: "optional_seq_small_1_midfield"),
- 1000004: .standard(proto: "optional_seq_small_1_hifield"),
- 5: .standard(proto: "repeated_seq_small_1_lowfield"),
- 1005: .standard(proto: "repeated_seq_small_1_midfield"),
- 1000005: .standard(proto: "repeated_seq_small_1_hifield"),
- 6: .standard(proto: "packed_seq_small_1_lowfield"),
- 1006: .standard(proto: "packed_seq_small_1_midfield"),
- 1000006: .standard(proto: "packed_seq_small_1_hifield"),
- 7: .standard(proto: "optional_seq_large_lowfield"),
- 1007: .standard(proto: "optional_seq_large_midfield"),
- 1000007: .standard(proto: "optional_seq_large_hifield"),
- 8: .standard(proto: "repeated_seq_large_lowfield"),
- 1008: .standard(proto: "repeated_seq_large_midfield"),
- 1000008: .standard(proto: "repeated_seq_large_hifield"),
- 9: .standard(proto: "packed_seq_large_lowfield"),
- 1009: .standard(proto: "packed_seq_large_midfield"),
- 1000009: .standard(proto: "packed_seq_large_hifield"),
- 10: .standard(proto: "optional_arbitrary_lowfield"),
- 1010: .standard(proto: "optional_arbitrary_midfield"),
- 1000010: .standard(proto: "optional_arbitrary_hifield"),
- 11: .standard(proto: "repeated_arbitrary_lowfield"),
- 1011: .standard(proto: "repeated_arbitrary_midfield"),
- 1000011: .standard(proto: "repeated_arbitrary_hifield"),
- 12: .standard(proto: "packed_arbitrary_lowfield"),
- 1012: .standard(proto: "packed_arbitrary_midfield"),
- 1000012: .standard(proto: "packed_arbitrary_hifield"),
- 99: .standard(proto: "other_field"),
- ]
- fileprivate class _StorageClass {
- var _optionalSeqSmall0Lowfield: Proto2Unittest_EnumParseTester.SeqSmall0? = nil
- var _optionalSeqSmall0Midfield: Proto2Unittest_EnumParseTester.SeqSmall0? = nil
- var _optionalSeqSmall0Hifield: Proto2Unittest_EnumParseTester.SeqSmall0? = nil
- var _repeatedSeqSmall0Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _repeatedSeqSmall0Midfield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _repeatedSeqSmall0Hifield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _packedSeqSmall0Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _packedSeqSmall0Midfield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _packedSeqSmall0Hifield: [Proto2Unittest_EnumParseTester.SeqSmall0] = []
- var _optionalSeqSmall1Lowfield: Proto2Unittest_EnumParseTester.SeqSmall1? = nil
- var _optionalSeqSmall1Midfield: Proto2Unittest_EnumParseTester.SeqSmall1? = nil
- var _optionalSeqSmall1Hifield: Proto2Unittest_EnumParseTester.SeqSmall1? = nil
- var _repeatedSeqSmall1Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _repeatedSeqSmall1Midfield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _repeatedSeqSmall1Hifield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _packedSeqSmall1Lowfield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _packedSeqSmall1Midfield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _packedSeqSmall1Hifield: [Proto2Unittest_EnumParseTester.SeqSmall1] = []
- var _optionalSeqLargeLowfield: Proto2Unittest_EnumParseTester.SeqLarge? = nil
- var _optionalSeqLargeMidfield: Proto2Unittest_EnumParseTester.SeqLarge? = nil
- var _optionalSeqLargeHifield: Proto2Unittest_EnumParseTester.SeqLarge? = nil
- var _repeatedSeqLargeLowfield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _repeatedSeqLargeMidfield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _repeatedSeqLargeHifield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _packedSeqLargeLowfield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _packedSeqLargeMidfield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _packedSeqLargeHifield: [Proto2Unittest_EnumParseTester.SeqLarge] = []
- var _optionalArbitraryLowfield: Proto2Unittest_EnumParseTester.Arbitrary? = nil
- var _optionalArbitraryMidfield: Proto2Unittest_EnumParseTester.Arbitrary? = nil
- var _optionalArbitraryHifield: Proto2Unittest_EnumParseTester.Arbitrary? = nil
- var _repeatedArbitraryLowfield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _repeatedArbitraryMidfield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _repeatedArbitraryHifield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _packedArbitraryLowfield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _packedArbitraryMidfield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _packedArbitraryHifield: [Proto2Unittest_EnumParseTester.Arbitrary] = []
- var _otherField: Int32? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _optionalSeqSmall0Lowfield = source._optionalSeqSmall0Lowfield
- _optionalSeqSmall0Midfield = source._optionalSeqSmall0Midfield
- _optionalSeqSmall0Hifield = source._optionalSeqSmall0Hifield
- _repeatedSeqSmall0Lowfield = source._repeatedSeqSmall0Lowfield
- _repeatedSeqSmall0Midfield = source._repeatedSeqSmall0Midfield
- _repeatedSeqSmall0Hifield = source._repeatedSeqSmall0Hifield
- _packedSeqSmall0Lowfield = source._packedSeqSmall0Lowfield
- _packedSeqSmall0Midfield = source._packedSeqSmall0Midfield
- _packedSeqSmall0Hifield = source._packedSeqSmall0Hifield
- _optionalSeqSmall1Lowfield = source._optionalSeqSmall1Lowfield
- _optionalSeqSmall1Midfield = source._optionalSeqSmall1Midfield
- _optionalSeqSmall1Hifield = source._optionalSeqSmall1Hifield
- _repeatedSeqSmall1Lowfield = source._repeatedSeqSmall1Lowfield
- _repeatedSeqSmall1Midfield = source._repeatedSeqSmall1Midfield
- _repeatedSeqSmall1Hifield = source._repeatedSeqSmall1Hifield
- _packedSeqSmall1Lowfield = source._packedSeqSmall1Lowfield
- _packedSeqSmall1Midfield = source._packedSeqSmall1Midfield
- _packedSeqSmall1Hifield = source._packedSeqSmall1Hifield
- _optionalSeqLargeLowfield = source._optionalSeqLargeLowfield
- _optionalSeqLargeMidfield = source._optionalSeqLargeMidfield
- _optionalSeqLargeHifield = source._optionalSeqLargeHifield
- _repeatedSeqLargeLowfield = source._repeatedSeqLargeLowfield
- _repeatedSeqLargeMidfield = source._repeatedSeqLargeMidfield
- _repeatedSeqLargeHifield = source._repeatedSeqLargeHifield
- _packedSeqLargeLowfield = source._packedSeqLargeLowfield
- _packedSeqLargeMidfield = source._packedSeqLargeMidfield
- _packedSeqLargeHifield = source._packedSeqLargeHifield
- _optionalArbitraryLowfield = source._optionalArbitraryLowfield
- _optionalArbitraryMidfield = source._optionalArbitraryMidfield
- _optionalArbitraryHifield = source._optionalArbitraryHifield
- _repeatedArbitraryLowfield = source._repeatedArbitraryLowfield
- _repeatedArbitraryMidfield = source._repeatedArbitraryMidfield
- _repeatedArbitraryHifield = source._repeatedArbitraryHifield
- _packedArbitraryLowfield = source._packedArbitraryLowfield
- _packedArbitraryMidfield = source._packedArbitraryMidfield
- _packedArbitraryHifield = source._packedArbitraryHifield
- _otherField = source._otherField
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall0Lowfield) }()
- case 2: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall0Lowfield) }()
- case 3: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall0Lowfield) }()
- case 4: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall1Lowfield) }()
- case 5: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall1Lowfield) }()
- case 6: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall1Lowfield) }()
- case 7: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqLargeLowfield) }()
- case 8: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqLargeLowfield) }()
- case 9: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqLargeLowfield) }()
- case 10: try { try decoder.decodeSingularEnumField(value: &_storage._optionalArbitraryLowfield) }()
- case 11: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedArbitraryLowfield) }()
- case 12: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedArbitraryLowfield) }()
- case 99: try { try decoder.decodeSingularInt32Field(value: &_storage._otherField) }()
- case 1001: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall0Midfield) }()
- case 1002: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall0Midfield) }()
- case 1003: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall0Midfield) }()
- case 1004: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall1Midfield) }()
- case 1005: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall1Midfield) }()
- case 1006: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall1Midfield) }()
- case 1007: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqLargeMidfield) }()
- case 1008: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqLargeMidfield) }()
- case 1009: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqLargeMidfield) }()
- case 1010: try { try decoder.decodeSingularEnumField(value: &_storage._optionalArbitraryMidfield) }()
- case 1011: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedArbitraryMidfield) }()
- case 1012: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedArbitraryMidfield) }()
- case 1000001: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall0Hifield) }()
- case 1000002: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall0Hifield) }()
- case 1000003: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall0Hifield) }()
- case 1000004: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqSmall1Hifield) }()
- case 1000005: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqSmall1Hifield) }()
- case 1000006: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqSmall1Hifield) }()
- case 1000007: try { try decoder.decodeSingularEnumField(value: &_storage._optionalSeqLargeHifield) }()
- case 1000008: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedSeqLargeHifield) }()
- case 1000009: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedSeqLargeHifield) }()
- case 1000010: try { try decoder.decodeSingularEnumField(value: &_storage._optionalArbitraryHifield) }()
- case 1000011: try { try decoder.decodeRepeatedEnumField(value: &_storage._repeatedArbitraryHifield) }()
- case 1000012: try { try decoder.decodeRepeatedEnumField(value: &_storage._packedArbitraryHifield) }()
- case 2000000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_EnumParseTester.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._optionalSeqSmall0Lowfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
- } }()
- if !_storage._repeatedSeqSmall0Lowfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall0Lowfield, fieldNumber: 2)
- }
- if !_storage._packedSeqSmall0Lowfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall0Lowfield, fieldNumber: 3)
- }
- try { if let v = _storage._optionalSeqSmall1Lowfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
- } }()
- if !_storage._repeatedSeqSmall1Lowfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall1Lowfield, fieldNumber: 5)
- }
- if !_storage._packedSeqSmall1Lowfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall1Lowfield, fieldNumber: 6)
- }
- try { if let v = _storage._optionalSeqLargeLowfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 7)
- } }()
- if !_storage._repeatedSeqLargeLowfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqLargeLowfield, fieldNumber: 8)
- }
- if !_storage._packedSeqLargeLowfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqLargeLowfield, fieldNumber: 9)
- }
- try { if let v = _storage._optionalArbitraryLowfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 10)
- } }()
- if !_storage._repeatedArbitraryLowfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedArbitraryLowfield, fieldNumber: 11)
- }
- if !_storage._packedArbitraryLowfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedArbitraryLowfield, fieldNumber: 12)
- }
- try { if let v = _storage._otherField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 99)
- } }()
- try { if let v = _storage._optionalSeqSmall0Midfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1001)
- } }()
- if !_storage._repeatedSeqSmall0Midfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall0Midfield, fieldNumber: 1002)
- }
- if !_storage._packedSeqSmall0Midfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall0Midfield, fieldNumber: 1003)
- }
- try { if let v = _storage._optionalSeqSmall1Midfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1004)
- } }()
- if !_storage._repeatedSeqSmall1Midfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall1Midfield, fieldNumber: 1005)
- }
- if !_storage._packedSeqSmall1Midfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall1Midfield, fieldNumber: 1006)
- }
- try { if let v = _storage._optionalSeqLargeMidfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1007)
- } }()
- if !_storage._repeatedSeqLargeMidfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqLargeMidfield, fieldNumber: 1008)
- }
- if !_storage._packedSeqLargeMidfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqLargeMidfield, fieldNumber: 1009)
- }
- try { if let v = _storage._optionalArbitraryMidfield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1010)
- } }()
- if !_storage._repeatedArbitraryMidfield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedArbitraryMidfield, fieldNumber: 1011)
- }
- if !_storage._packedArbitraryMidfield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedArbitraryMidfield, fieldNumber: 1012)
- }
- try { if let v = _storage._optionalSeqSmall0Hifield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1000001)
- } }()
- if !_storage._repeatedSeqSmall0Hifield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall0Hifield, fieldNumber: 1000002)
- }
- if !_storage._packedSeqSmall0Hifield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall0Hifield, fieldNumber: 1000003)
- }
- try { if let v = _storage._optionalSeqSmall1Hifield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1000004)
- } }()
- if !_storage._repeatedSeqSmall1Hifield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqSmall1Hifield, fieldNumber: 1000005)
- }
- if !_storage._packedSeqSmall1Hifield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqSmall1Hifield, fieldNumber: 1000006)
- }
- try { if let v = _storage._optionalSeqLargeHifield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1000007)
- } }()
- if !_storage._repeatedSeqLargeHifield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedSeqLargeHifield, fieldNumber: 1000008)
- }
- if !_storage._packedSeqLargeHifield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedSeqLargeHifield, fieldNumber: 1000009)
- }
- try { if let v = _storage._optionalArbitraryHifield {
- try visitor.visitSingularEnumField(value: v, fieldNumber: 1000010)
- } }()
- if !_storage._repeatedArbitraryHifield.isEmpty {
- try visitor.visitRepeatedEnumField(value: _storage._repeatedArbitraryHifield, fieldNumber: 1000011)
- }
- if !_storage._packedArbitraryHifield.isEmpty {
- try visitor.visitPackedEnumField(value: _storage._packedArbitraryHifield, fieldNumber: 1000012)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2000000, end: 536870912)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_EnumParseTester, rhs: Proto2Unittest_EnumParseTester) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._optionalSeqSmall0Lowfield != rhs_storage._optionalSeqSmall0Lowfield {return false}
- if _storage._optionalSeqSmall0Midfield != rhs_storage._optionalSeqSmall0Midfield {return false}
- if _storage._optionalSeqSmall0Hifield != rhs_storage._optionalSeqSmall0Hifield {return false}
- if _storage._repeatedSeqSmall0Lowfield != rhs_storage._repeatedSeqSmall0Lowfield {return false}
- if _storage._repeatedSeqSmall0Midfield != rhs_storage._repeatedSeqSmall0Midfield {return false}
- if _storage._repeatedSeqSmall0Hifield != rhs_storage._repeatedSeqSmall0Hifield {return false}
- if _storage._packedSeqSmall0Lowfield != rhs_storage._packedSeqSmall0Lowfield {return false}
- if _storage._packedSeqSmall0Midfield != rhs_storage._packedSeqSmall0Midfield {return false}
- if _storage._packedSeqSmall0Hifield != rhs_storage._packedSeqSmall0Hifield {return false}
- if _storage._optionalSeqSmall1Lowfield != rhs_storage._optionalSeqSmall1Lowfield {return false}
- if _storage._optionalSeqSmall1Midfield != rhs_storage._optionalSeqSmall1Midfield {return false}
- if _storage._optionalSeqSmall1Hifield != rhs_storage._optionalSeqSmall1Hifield {return false}
- if _storage._repeatedSeqSmall1Lowfield != rhs_storage._repeatedSeqSmall1Lowfield {return false}
- if _storage._repeatedSeqSmall1Midfield != rhs_storage._repeatedSeqSmall1Midfield {return false}
- if _storage._repeatedSeqSmall1Hifield != rhs_storage._repeatedSeqSmall1Hifield {return false}
- if _storage._packedSeqSmall1Lowfield != rhs_storage._packedSeqSmall1Lowfield {return false}
- if _storage._packedSeqSmall1Midfield != rhs_storage._packedSeqSmall1Midfield {return false}
- if _storage._packedSeqSmall1Hifield != rhs_storage._packedSeqSmall1Hifield {return false}
- if _storage._optionalSeqLargeLowfield != rhs_storage._optionalSeqLargeLowfield {return false}
- if _storage._optionalSeqLargeMidfield != rhs_storage._optionalSeqLargeMidfield {return false}
- if _storage._optionalSeqLargeHifield != rhs_storage._optionalSeqLargeHifield {return false}
- if _storage._repeatedSeqLargeLowfield != rhs_storage._repeatedSeqLargeLowfield {return false}
- if _storage._repeatedSeqLargeMidfield != rhs_storage._repeatedSeqLargeMidfield {return false}
- if _storage._repeatedSeqLargeHifield != rhs_storage._repeatedSeqLargeHifield {return false}
- if _storage._packedSeqLargeLowfield != rhs_storage._packedSeqLargeLowfield {return false}
- if _storage._packedSeqLargeMidfield != rhs_storage._packedSeqLargeMidfield {return false}
- if _storage._packedSeqLargeHifield != rhs_storage._packedSeqLargeHifield {return false}
- if _storage._optionalArbitraryLowfield != rhs_storage._optionalArbitraryLowfield {return false}
- if _storage._optionalArbitraryMidfield != rhs_storage._optionalArbitraryMidfield {return false}
- if _storage._optionalArbitraryHifield != rhs_storage._optionalArbitraryHifield {return false}
- if _storage._repeatedArbitraryLowfield != rhs_storage._repeatedArbitraryLowfield {return false}
- if _storage._repeatedArbitraryMidfield != rhs_storage._repeatedArbitraryMidfield {return false}
- if _storage._repeatedArbitraryHifield != rhs_storage._repeatedArbitraryHifield {return false}
- if _storage._packedArbitraryLowfield != rhs_storage._packedArbitraryLowfield {return false}
- if _storage._packedArbitraryMidfield != rhs_storage._packedArbitraryMidfield {return false}
- if _storage._packedArbitraryHifield != rhs_storage._packedArbitraryHifield {return false}
- if _storage._otherField != rhs_storage._otherField {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_EnumParseTester.SeqSmall0: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "SEQ_SMALL_0_DEFAULT"),
- 1: .same(proto: "SEQ_SMALL_0_1"),
- 2: .same(proto: "SEQ_SMALL_0_2"),
- ]
- }
- extension Proto2Unittest_EnumParseTester.SeqSmall1: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "SEQ_SMALL_1_DEFAULT"),
- 2: .same(proto: "SEQ_SMALL_1_2"),
- 3: .same(proto: "SEQ_SMALL_1_3"),
- ]
- }
- extension Proto2Unittest_EnumParseTester.SeqLarge: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- -1: .same(proto: "SEQ_LARGE_DEFAULT"),
- 0: .same(proto: "SEQ_LARGE_0"),
- 1: .same(proto: "SEQ_LARGE_1"),
- 2: .same(proto: "SEQ_LARGE_2"),
- 3: .same(proto: "SEQ_LARGE_3"),
- 4: .same(proto: "SEQ_LARGE_4"),
- 5: .same(proto: "SEQ_LARGE_5"),
- 6: .same(proto: "SEQ_LARGE_6"),
- 7: .same(proto: "SEQ_LARGE_7"),
- 8: .same(proto: "SEQ_LARGE_8"),
- 9: .same(proto: "SEQ_LARGE_9"),
- 10: .same(proto: "SEQ_LARGE_10"),
- 11: .same(proto: "SEQ_LARGE_11"),
- 12: .same(proto: "SEQ_LARGE_12"),
- 13: .same(proto: "SEQ_LARGE_13"),
- 14: .same(proto: "SEQ_LARGE_14"),
- 15: .same(proto: "SEQ_LARGE_15"),
- 16: .same(proto: "SEQ_LARGE_16"),
- 17: .same(proto: "SEQ_LARGE_17"),
- 18: .same(proto: "SEQ_LARGE_18"),
- 19: .same(proto: "SEQ_LARGE_19"),
- 20: .same(proto: "SEQ_LARGE_20"),
- 21: .same(proto: "SEQ_LARGE_21"),
- 22: .same(proto: "SEQ_LARGE_22"),
- 23: .same(proto: "SEQ_LARGE_23"),
- 24: .same(proto: "SEQ_LARGE_24"),
- 25: .same(proto: "SEQ_LARGE_25"),
- 26: .same(proto: "SEQ_LARGE_26"),
- 27: .same(proto: "SEQ_LARGE_27"),
- 28: .same(proto: "SEQ_LARGE_28"),
- 29: .same(proto: "SEQ_LARGE_29"),
- 30: .same(proto: "SEQ_LARGE_30"),
- 31: .same(proto: "SEQ_LARGE_31"),
- 32: .same(proto: "SEQ_LARGE_32"),
- 33: .same(proto: "SEQ_LARGE_33"),
- ]
- }
- extension Proto2Unittest_EnumParseTester.Arbitrary: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- -2147483648: .same(proto: "ARBITRARY_MIN"),
- -123123: .same(proto: "ARBITRARY_DEFAULT"),
- -123: .same(proto: "ARBITRARY_1"),
- 213: .same(proto: "ARBITRARY_2"),
- 213213: .same(proto: "ARBITRARY_3"),
- 2147483647: .same(proto: "ARBITRARY_MAX"),
- ]
- }
- extension Proto2Unittest_BoolParseTester: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".BoolParseTester"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_bool_lowfield"),
- 1001: .standard(proto: "optional_bool_midfield"),
- 1000001: .standard(proto: "optional_bool_hifield"),
- 2: .standard(proto: "repeated_bool_lowfield"),
- 1002: .standard(proto: "repeated_bool_midfield"),
- 1000002: .standard(proto: "repeated_bool_hifield"),
- 3: .standard(proto: "packed_bool_lowfield"),
- 1003: .standard(proto: "packed_bool_midfield"),
- 1000003: .standard(proto: "packed_bool_hifield"),
- 99: .standard(proto: "other_field"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBoolField(value: &self._optionalBoolLowfield) }()
- case 2: try { try decoder.decodeRepeatedBoolField(value: &self.repeatedBoolLowfield) }()
- case 3: try { try decoder.decodeRepeatedBoolField(value: &self.packedBoolLowfield) }()
- case 99: try { try decoder.decodeSingularInt32Field(value: &self._otherField) }()
- case 1001: try { try decoder.decodeSingularBoolField(value: &self._optionalBoolMidfield) }()
- case 1002: try { try decoder.decodeRepeatedBoolField(value: &self.repeatedBoolMidfield) }()
- case 1003: try { try decoder.decodeRepeatedBoolField(value: &self.packedBoolMidfield) }()
- case 1000001: try { try decoder.decodeSingularBoolField(value: &self._optionalBoolHifield) }()
- case 1000002: try { try decoder.decodeRepeatedBoolField(value: &self.repeatedBoolHifield) }()
- case 1000003: try { try decoder.decodeRepeatedBoolField(value: &self.packedBoolHifield) }()
- case 2000000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_BoolParseTester.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalBoolLowfield {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedBoolLowfield.isEmpty {
- try visitor.visitRepeatedBoolField(value: self.repeatedBoolLowfield, fieldNumber: 2)
- }
- if !self.packedBoolLowfield.isEmpty {
- try visitor.visitPackedBoolField(value: self.packedBoolLowfield, fieldNumber: 3)
- }
- try { if let v = self._otherField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 99)
- } }()
- try { if let v = self._optionalBoolMidfield {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 1001)
- } }()
- if !self.repeatedBoolMidfield.isEmpty {
- try visitor.visitRepeatedBoolField(value: self.repeatedBoolMidfield, fieldNumber: 1002)
- }
- if !self.packedBoolMidfield.isEmpty {
- try visitor.visitPackedBoolField(value: self.packedBoolMidfield, fieldNumber: 1003)
- }
- try { if let v = self._optionalBoolHifield {
- try visitor.visitSingularBoolField(value: v, fieldNumber: 1000001)
- } }()
- if !self.repeatedBoolHifield.isEmpty {
- try visitor.visitRepeatedBoolField(value: self.repeatedBoolHifield, fieldNumber: 1000002)
- }
- if !self.packedBoolHifield.isEmpty {
- try visitor.visitPackedBoolField(value: self.packedBoolHifield, fieldNumber: 1000003)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2000000, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_BoolParseTester, rhs: Proto2Unittest_BoolParseTester) -> Bool {
- if lhs._optionalBoolLowfield != rhs._optionalBoolLowfield {return false}
- if lhs._optionalBoolMidfield != rhs._optionalBoolMidfield {return false}
- if lhs._optionalBoolHifield != rhs._optionalBoolHifield {return false}
- if lhs.repeatedBoolLowfield != rhs.repeatedBoolLowfield {return false}
- if lhs.repeatedBoolMidfield != rhs.repeatedBoolMidfield {return false}
- if lhs.repeatedBoolHifield != rhs.repeatedBoolHifield {return false}
- if lhs.packedBoolLowfield != rhs.packedBoolLowfield {return false}
- if lhs.packedBoolMidfield != rhs.packedBoolMidfield {return false}
- if lhs.packedBoolHifield != rhs.packedBoolHifield {return false}
- if lhs._otherField != rhs._otherField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_Int32ParseTester: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Int32ParseTester"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_int32_lowfield"),
- 1001: .standard(proto: "optional_int32_midfield"),
- 1000001: .standard(proto: "optional_int32_hifield"),
- 2: .standard(proto: "repeated_int32_lowfield"),
- 1002: .standard(proto: "repeated_int32_midfield"),
- 1000002: .standard(proto: "repeated_int32_hifield"),
- 3: .standard(proto: "packed_int32_lowfield"),
- 1003: .standard(proto: "packed_int32_midfield"),
- 1000003: .standard(proto: "packed_int32_hifield"),
- 99: .standard(proto: "other_field"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32Lowfield) }()
- case 2: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32Lowfield) }()
- case 3: try { try decoder.decodeRepeatedInt32Field(value: &self.packedInt32Lowfield) }()
- case 99: try { try decoder.decodeSingularInt32Field(value: &self._otherField) }()
- case 1001: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32Midfield) }()
- case 1002: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32Midfield) }()
- case 1003: try { try decoder.decodeRepeatedInt32Field(value: &self.packedInt32Midfield) }()
- case 1000001: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32Hifield) }()
- case 1000002: try { try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32Hifield) }()
- case 1000003: try { try decoder.decodeRepeatedInt32Field(value: &self.packedInt32Hifield) }()
- case 2000000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_Int32ParseTester.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt32Lowfield {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedInt32Lowfield.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedInt32Lowfield, fieldNumber: 2)
- }
- if !self.packedInt32Lowfield.isEmpty {
- try visitor.visitPackedInt32Field(value: self.packedInt32Lowfield, fieldNumber: 3)
- }
- try { if let v = self._otherField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 99)
- } }()
- try { if let v = self._optionalInt32Midfield {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1001)
- } }()
- if !self.repeatedInt32Midfield.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedInt32Midfield, fieldNumber: 1002)
- }
- if !self.packedInt32Midfield.isEmpty {
- try visitor.visitPackedInt32Field(value: self.packedInt32Midfield, fieldNumber: 1003)
- }
- try { if let v = self._optionalInt32Hifield {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1000001)
- } }()
- if !self.repeatedInt32Hifield.isEmpty {
- try visitor.visitRepeatedInt32Field(value: self.repeatedInt32Hifield, fieldNumber: 1000002)
- }
- if !self.packedInt32Hifield.isEmpty {
- try visitor.visitPackedInt32Field(value: self.packedInt32Hifield, fieldNumber: 1000003)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2000000, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Int32ParseTester, rhs: Proto2Unittest_Int32ParseTester) -> Bool {
- if lhs._optionalInt32Lowfield != rhs._optionalInt32Lowfield {return false}
- if lhs._optionalInt32Midfield != rhs._optionalInt32Midfield {return false}
- if lhs._optionalInt32Hifield != rhs._optionalInt32Hifield {return false}
- if lhs.repeatedInt32Lowfield != rhs.repeatedInt32Lowfield {return false}
- if lhs.repeatedInt32Midfield != rhs.repeatedInt32Midfield {return false}
- if lhs.repeatedInt32Hifield != rhs.repeatedInt32Hifield {return false}
- if lhs.packedInt32Lowfield != rhs.packedInt32Lowfield {return false}
- if lhs.packedInt32Midfield != rhs.packedInt32Midfield {return false}
- if lhs.packedInt32Hifield != rhs.packedInt32Hifield {return false}
- if lhs._otherField != rhs._otherField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_Int64ParseTester: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".Int64ParseTester"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_int64_lowfield"),
- 1001: .standard(proto: "optional_int64_midfield"),
- 1000001: .standard(proto: "optional_int64_hifield"),
- 2: .standard(proto: "repeated_int64_lowfield"),
- 1002: .standard(proto: "repeated_int64_midfield"),
- 1000002: .standard(proto: "repeated_int64_hifield"),
- 3: .standard(proto: "packed_int64_lowfield"),
- 1003: .standard(proto: "packed_int64_midfield"),
- 1000003: .standard(proto: "packed_int64_hifield"),
- 99: .standard(proto: "other_field"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt64Lowfield) }()
- case 2: try { try decoder.decodeRepeatedInt64Field(value: &self.repeatedInt64Lowfield) }()
- case 3: try { try decoder.decodeRepeatedInt64Field(value: &self.packedInt64Lowfield) }()
- case 99: try { try decoder.decodeSingularInt32Field(value: &self._otherField) }()
- case 1001: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt64Midfield) }()
- case 1002: try { try decoder.decodeRepeatedInt64Field(value: &self.repeatedInt64Midfield) }()
- case 1003: try { try decoder.decodeRepeatedInt64Field(value: &self.packedInt64Midfield) }()
- case 1000001: try { try decoder.decodeSingularInt64Field(value: &self._optionalInt64Hifield) }()
- case 1000002: try { try decoder.decodeRepeatedInt64Field(value: &self.repeatedInt64Hifield) }()
- case 1000003: try { try decoder.decodeRepeatedInt64Field(value: &self.packedInt64Hifield) }()
- case 2000000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_Int64ParseTester.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt64Lowfield {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedInt64Lowfield.isEmpty {
- try visitor.visitRepeatedInt64Field(value: self.repeatedInt64Lowfield, fieldNumber: 2)
- }
- if !self.packedInt64Lowfield.isEmpty {
- try visitor.visitPackedInt64Field(value: self.packedInt64Lowfield, fieldNumber: 3)
- }
- try { if let v = self._otherField {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 99)
- } }()
- try { if let v = self._optionalInt64Midfield {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1001)
- } }()
- if !self.repeatedInt64Midfield.isEmpty {
- try visitor.visitRepeatedInt64Field(value: self.repeatedInt64Midfield, fieldNumber: 1002)
- }
- if !self.packedInt64Midfield.isEmpty {
- try visitor.visitPackedInt64Field(value: self.packedInt64Midfield, fieldNumber: 1003)
- }
- try { if let v = self._optionalInt64Hifield {
- try visitor.visitSingularInt64Field(value: v, fieldNumber: 1000001)
- } }()
- if !self.repeatedInt64Hifield.isEmpty {
- try visitor.visitRepeatedInt64Field(value: self.repeatedInt64Hifield, fieldNumber: 1000002)
- }
- if !self.packedInt64Hifield.isEmpty {
- try visitor.visitPackedInt64Field(value: self.packedInt64Hifield, fieldNumber: 1000003)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2000000, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_Int64ParseTester, rhs: Proto2Unittest_Int64ParseTester) -> Bool {
- if lhs._optionalInt64Lowfield != rhs._optionalInt64Lowfield {return false}
- if lhs._optionalInt64Midfield != rhs._optionalInt64Midfield {return false}
- if lhs._optionalInt64Hifield != rhs._optionalInt64Hifield {return false}
- if lhs.repeatedInt64Lowfield != rhs.repeatedInt64Lowfield {return false}
- if lhs.repeatedInt64Midfield != rhs.repeatedInt64Midfield {return false}
- if lhs.repeatedInt64Hifield != rhs.repeatedInt64Hifield {return false}
- if lhs.packedInt64Lowfield != rhs.packedInt64Lowfield {return false}
- if lhs.packedInt64Midfield != rhs.packedInt64Midfield {return false}
- if lhs.packedInt64Hifield != rhs.packedInt64Hifield {return false}
- if lhs._otherField != rhs._otherField {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_InlinedStringIdxRegressionProto: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".InlinedStringIdxRegressionProto"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "str1"),
- 2: .same(proto: "sub"),
- 3: .same(proto: "str2"),
- 4: .same(proto: "str3"),
- ]
- fileprivate class _StorageClass {
- var _str1: String? = nil
- var _sub: Proto2Unittest_InlinedStringIdxRegressionProto? = nil
- var _str2: String? = nil
- var _str3: Data? = nil
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _str1 = source._str1
- _sub = source._sub
- _str2 = source._str2
- _str3 = source._str3
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &_storage._str1) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &_storage._sub) }()
- case 3: try { try decoder.decodeSingularStringField(value: &_storage._str2) }()
- case 4: try { try decoder.decodeSingularBytesField(value: &_storage._str3) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._str1 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._sub {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._str2 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._str3 {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
- } }()
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_InlinedStringIdxRegressionProto, rhs: Proto2Unittest_InlinedStringIdxRegressionProto) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._str1 != rhs_storage._str1 {return false}
- if _storage._sub != rhs_storage._sub {return false}
- if _storage._str2 != rhs_storage._str2 {return false}
- if _storage._str3 != rhs_storage._str3 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_StringParseTester: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".StringParseTester"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_string_lowfield"),
- 1001: .standard(proto: "optional_string_midfield"),
- 1000001: .standard(proto: "optional_string_hifield"),
- 2: .standard(proto: "repeated_string_lowfield"),
- 1002: .standard(proto: "repeated_string_midfield"),
- 1000002: .standard(proto: "repeated_string_hifield"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._optionalStringLowfield) }()
- case 2: try { try decoder.decodeRepeatedStringField(value: &self.repeatedStringLowfield) }()
- case 1001: try { try decoder.decodeSingularStringField(value: &self._optionalStringMidfield) }()
- case 1002: try { try decoder.decodeRepeatedStringField(value: &self.repeatedStringMidfield) }()
- case 1000001: try { try decoder.decodeSingularStringField(value: &self._optionalStringHifield) }()
- case 1000002: try { try decoder.decodeRepeatedStringField(value: &self.repeatedStringHifield) }()
- case 2000000..<536870912:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_StringParseTester.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalStringLowfield {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- if !self.repeatedStringLowfield.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedStringLowfield, fieldNumber: 2)
- }
- try { if let v = self._optionalStringMidfield {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1001)
- } }()
- if !self.repeatedStringMidfield.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedStringMidfield, fieldNumber: 1002)
- }
- try { if let v = self._optionalStringHifield {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1000001)
- } }()
- if !self.repeatedStringHifield.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedStringHifield, fieldNumber: 1000002)
- }
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 2000000, end: 536870912)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_StringParseTester, rhs: Proto2Unittest_StringParseTester) -> Bool {
- if lhs._optionalStringLowfield != rhs._optionalStringLowfield {return false}
- if lhs._optionalStringMidfield != rhs._optionalStringMidfield {return false}
- if lhs._optionalStringHifield != rhs._optionalStringHifield {return false}
- if lhs.repeatedStringLowfield != rhs.repeatedStringLowfield {return false}
- if lhs.repeatedStringMidfield != rhs.repeatedStringMidfield {return false}
- if lhs.repeatedStringHifield != rhs.repeatedStringHifield {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_BadFieldNames: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".BadFieldNames"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "OptionalInt32"),
- 2: .same(proto: "for"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._optionalInt32) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._for) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalInt32 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._for {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_BadFieldNames, rhs: Proto2Unittest_BadFieldNames) -> Bool {
- if lhs._optionalInt32 != rhs._optionalInt32 {return false}
- if lhs._for != rhs._for {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestNestedMessageRedaction: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestNestedMessageRedaction"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_unredacted_nested_string"),
- 2: .standard(proto: "optional_redacted_nested_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._optionalUnredactedNestedString) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._optionalRedactedNestedString) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalUnredactedNestedString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalRedactedNestedString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestNestedMessageRedaction, rhs: Proto2Unittest_TestNestedMessageRedaction) -> Bool {
- if lhs._optionalUnredactedNestedString != rhs._optionalUnredactedNestedString {return false}
- if lhs._optionalRedactedNestedString != rhs._optionalRedactedNestedString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_RedactedFields: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".RedactedFields"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_redacted_string"),
- 2: .standard(proto: "optional_unredacted_string"),
- 3: .standard(proto: "repeated_redacted_string"),
- 4: .standard(proto: "repeated_unredacted_string"),
- 5: .standard(proto: "optional_redacted_message"),
- 6: .standard(proto: "optional_unredacted_message"),
- 7: .standard(proto: "repeated_redacted_message"),
- 8: .standard(proto: "repeated_unredacted_message"),
- 9: .standard(proto: "map_redacted_string"),
- 10: .standard(proto: "map_unredacted_string"),
- 11: .standard(proto: "optional_redacted_false_string"),
- ]
- public var isInitialized: Bool {
- if !_protobuf_extensionFieldValues.isInitialized {return false}
- return true
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._optionalRedactedString) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self._optionalUnredactedString) }()
- case 3: try { try decoder.decodeRepeatedStringField(value: &self.repeatedRedactedString) }()
- case 4: try { try decoder.decodeRepeatedStringField(value: &self.repeatedUnredactedString) }()
- case 5: try { try decoder.decodeSingularMessageField(value: &self._optionalRedactedMessage) }()
- case 6: try { try decoder.decodeSingularMessageField(value: &self._optionalUnredactedMessage) }()
- case 7: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedRedactedMessage) }()
- case 8: try { try decoder.decodeRepeatedMessageField(value: &self.repeatedUnredactedMessage) }()
- case 9: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &self.mapRedactedString) }()
- case 10: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &self.mapUnredactedString) }()
- case 11: try { try decoder.decodeSingularStringField(value: &self._optionalRedactedFalseString) }()
- case 20..<31:
- try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Proto2Unittest_RedactedFields.self, fieldNumber: fieldNumber) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalRedactedString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalUnredactedString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 2)
- } }()
- if !self.repeatedRedactedString.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedRedactedString, fieldNumber: 3)
- }
- if !self.repeatedUnredactedString.isEmpty {
- try visitor.visitRepeatedStringField(value: self.repeatedUnredactedString, fieldNumber: 4)
- }
- try { if let v = self._optionalRedactedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._optionalUnredactedMessage {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
- } }()
- if !self.repeatedRedactedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedRedactedMessage, fieldNumber: 7)
- }
- if !self.repeatedUnredactedMessage.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.repeatedUnredactedMessage, fieldNumber: 8)
- }
- if !self.mapRedactedString.isEmpty {
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: self.mapRedactedString, fieldNumber: 9)
- }
- if !self.mapUnredactedString.isEmpty {
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: self.mapUnredactedString, fieldNumber: 10)
- }
- try { if let v = self._optionalRedactedFalseString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 11)
- } }()
- try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 20, end: 31)
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_RedactedFields, rhs: Proto2Unittest_RedactedFields) -> Bool {
- if lhs._optionalRedactedString != rhs._optionalRedactedString {return false}
- if lhs._optionalUnredactedString != rhs._optionalUnredactedString {return false}
- if lhs.repeatedRedactedString != rhs.repeatedRedactedString {return false}
- if lhs.repeatedUnredactedString != rhs.repeatedUnredactedString {return false}
- if lhs._optionalRedactedMessage != rhs._optionalRedactedMessage {return false}
- if lhs._optionalUnredactedMessage != rhs._optionalUnredactedMessage {return false}
- if lhs.repeatedRedactedMessage != rhs.repeatedRedactedMessage {return false}
- if lhs.repeatedUnredactedMessage != rhs.repeatedUnredactedMessage {return false}
- if lhs.mapRedactedString != rhs.mapRedactedString {return false}
- if lhs.mapUnredactedString != rhs.mapUnredactedString {return false}
- if lhs._optionalRedactedFalseString != rhs._optionalRedactedFalseString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
- return true
- }
- }
- extension Proto2Unittest_TestString: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestString"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_string"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self._optionalString) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalString {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestString, rhs: Proto2Unittest_TestString) -> Bool {
- if lhs._optionalString != rhs._optionalString {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestCord: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestCord"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "optional_bytes_cord"),
- 2: .standard(proto: "optional_bytes_cord_default"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBytesField(value: &self._optionalBytesCord) }()
- case 2: try { try decoder.decodeSingularBytesField(value: &self._optionalBytesCordDefault) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._optionalBytesCord {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._optionalBytesCordDefault {
- try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestCord, rhs: Proto2Unittest_TestCord) -> Bool {
- if lhs._optionalBytesCord != rhs._optionalBytesCord {return false}
- if lhs._optionalBytesCordDefault != rhs._optionalBytesCordDefault {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPackedEnumSmallRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestPackedEnumSmallRange"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "vals"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedEnumField(value: &self.vals) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.vals.isEmpty {
- try visitor.visitPackedEnumField(value: self.vals, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestPackedEnumSmallRange, rhs: Proto2Unittest_TestPackedEnumSmallRange) -> Bool {
- if lhs.vals != rhs.vals {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestPackedEnumSmallRange.NestedEnum: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "UNSPECIFIED"),
- 1: .same(proto: "FOO"),
- 2: .same(proto: "BAR"),
- 3: .same(proto: "BAZ"),
- ]
- }
- extension Proto2Unittest_EnumsForBenchmark: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".EnumsForBenchmark"
- static let _protobuf_nameMap = SwiftProtobuf._NameMap()
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- // Load everything into unknown fields
- while try decoder.nextFieldNumber() != nil {}
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_EnumsForBenchmark, rhs: Proto2Unittest_EnumsForBenchmark) -> Bool {
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_EnumsForBenchmark.Flat: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "A0"),
- 1: .same(proto: "A1"),
- 2: .same(proto: "A2"),
- 3: .same(proto: "A3"),
- 4: .same(proto: "A4"),
- 5: .same(proto: "A5"),
- 6: .same(proto: "A6"),
- 7: .same(proto: "A7"),
- 8: .same(proto: "A8"),
- 9: .same(proto: "A9"),
- 10: .same(proto: "A10"),
- 11: .same(proto: "A11"),
- 12: .same(proto: "A12"),
- 13: .same(proto: "A13"),
- 14: .same(proto: "A14"),
- 15: .same(proto: "A15"),
- ]
- }
- extension Proto2Unittest_EnumsForBenchmark.AlmostFlat: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 0: .same(proto: "B0"),
- 1: .same(proto: "B1"),
- 2: .same(proto: "B2"),
- 3: .same(proto: "B3"),
- 5: .same(proto: "B5"),
- 6: .same(proto: "B6"),
- 7: .same(proto: "B7"),
- 8: .same(proto: "B8"),
- 9: .same(proto: "B9"),
- 11: .same(proto: "B11"),
- 12: .same(proto: "B12"),
- 13: .same(proto: "B13"),
- 14: .same(proto: "B14"),
- 15: .same(proto: "B15"),
- 17: .same(proto: "B17"),
- 19: .same(proto: "B19"),
- ]
- }
- extension Proto2Unittest_EnumsForBenchmark.Sparse: SwiftProtobuf._ProtoNameProviding {
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 536: .same(proto: "C536"),
- 8387: .same(proto: "C8387"),
- 9673: .same(proto: "C9673"),
- 10285: .same(proto: "C10285"),
- 13318: .same(proto: "C13318"),
- 15963: .same(proto: "C15963"),
- 16439: .same(proto: "C16439"),
- 18197: .same(proto: "C18197"),
- 19430: .same(proto: "C19430"),
- 20361: .same(proto: "C20361"),
- 20706: .same(proto: "C20706"),
- 21050: .same(proto: "C21050"),
- 21906: .same(proto: "C21906"),
- 27265: .same(proto: "C27265"),
- 30109: .same(proto: "C30109"),
- 31670: .same(proto: "C31670"),
- ]
- }
- extension Proto2Unittest_TestMessageWithManyRepeatedPtrFields: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMessageWithManyRepeatedPtrFields"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "repeated_string_1"),
- 2: .standard(proto: "repeated_string_2"),
- 3: .standard(proto: "repeated_string_3"),
- 4: .standard(proto: "repeated_string_4"),
- 5: .standard(proto: "repeated_string_5"),
- 6: .standard(proto: "repeated_string_6"),
- 7: .standard(proto: "repeated_string_7"),
- 8: .standard(proto: "repeated_string_8"),
- 9: .standard(proto: "repeated_string_9"),
- 10: .standard(proto: "repeated_string_10"),
- 11: .standard(proto: "repeated_string_11"),
- 12: .standard(proto: "repeated_string_12"),
- 13: .standard(proto: "repeated_string_13"),
- 14: .standard(proto: "repeated_string_14"),
- 15: .standard(proto: "repeated_string_15"),
- 16: .standard(proto: "repeated_string_16"),
- 17: .standard(proto: "repeated_string_17"),
- 18: .standard(proto: "repeated_string_18"),
- 19: .standard(proto: "repeated_string_19"),
- 20: .standard(proto: "repeated_string_20"),
- 21: .standard(proto: "repeated_string_21"),
- 22: .standard(proto: "repeated_string_22"),
- 23: .standard(proto: "repeated_string_23"),
- 24: .standard(proto: "repeated_string_24"),
- 25: .standard(proto: "repeated_string_25"),
- 26: .standard(proto: "repeated_string_26"),
- 27: .standard(proto: "repeated_string_27"),
- 28: .standard(proto: "repeated_string_28"),
- 29: .standard(proto: "repeated_string_29"),
- 30: .standard(proto: "repeated_string_30"),
- 31: .standard(proto: "repeated_string_31"),
- 32: .standard(proto: "repeated_string_32"),
- ]
- fileprivate class _StorageClass {
- var _repeatedString1: [String] = []
- var _repeatedString2: [String] = []
- var _repeatedString3: [String] = []
- var _repeatedString4: [String] = []
- var _repeatedString5: [String] = []
- var _repeatedString6: [String] = []
- var _repeatedString7: [String] = []
- var _repeatedString8: [String] = []
- var _repeatedString9: [String] = []
- var _repeatedString10: [String] = []
- var _repeatedString11: [String] = []
- var _repeatedString12: [String] = []
- var _repeatedString13: [String] = []
- var _repeatedString14: [String] = []
- var _repeatedString15: [String] = []
- var _repeatedString16: [String] = []
- var _repeatedString17: [String] = []
- var _repeatedString18: [String] = []
- var _repeatedString19: [String] = []
- var _repeatedString20: [String] = []
- var _repeatedString21: [String] = []
- var _repeatedString22: [String] = []
- var _repeatedString23: [String] = []
- var _repeatedString24: [String] = []
- var _repeatedString25: [String] = []
- var _repeatedString26: [String] = []
- var _repeatedString27: [String] = []
- var _repeatedString28: [String] = []
- var _repeatedString29: [String] = []
- var _repeatedString30: [String] = []
- var _repeatedString31: [String] = []
- var _repeatedString32: [String] = []
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _repeatedString1 = source._repeatedString1
- _repeatedString2 = source._repeatedString2
- _repeatedString3 = source._repeatedString3
- _repeatedString4 = source._repeatedString4
- _repeatedString5 = source._repeatedString5
- _repeatedString6 = source._repeatedString6
- _repeatedString7 = source._repeatedString7
- _repeatedString8 = source._repeatedString8
- _repeatedString9 = source._repeatedString9
- _repeatedString10 = source._repeatedString10
- _repeatedString11 = source._repeatedString11
- _repeatedString12 = source._repeatedString12
- _repeatedString13 = source._repeatedString13
- _repeatedString14 = source._repeatedString14
- _repeatedString15 = source._repeatedString15
- _repeatedString16 = source._repeatedString16
- _repeatedString17 = source._repeatedString17
- _repeatedString18 = source._repeatedString18
- _repeatedString19 = source._repeatedString19
- _repeatedString20 = source._repeatedString20
- _repeatedString21 = source._repeatedString21
- _repeatedString22 = source._repeatedString22
- _repeatedString23 = source._repeatedString23
- _repeatedString24 = source._repeatedString24
- _repeatedString25 = source._repeatedString25
- _repeatedString26 = source._repeatedString26
- _repeatedString27 = source._repeatedString27
- _repeatedString28 = source._repeatedString28
- _repeatedString29 = source._repeatedString29
- _repeatedString30 = source._repeatedString30
- _repeatedString31 = source._repeatedString31
- _repeatedString32 = source._repeatedString32
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString1) }()
- case 2: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString2) }()
- case 3: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString3) }()
- case 4: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString4) }()
- case 5: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString5) }()
- case 6: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString6) }()
- case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString7) }()
- case 8: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString8) }()
- case 9: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString9) }()
- case 10: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString10) }()
- case 11: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString11) }()
- case 12: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString12) }()
- case 13: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString13) }()
- case 14: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString14) }()
- case 15: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString15) }()
- case 16: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString16) }()
- case 17: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString17) }()
- case 18: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString18) }()
- case 19: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString19) }()
- case 20: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString20) }()
- case 21: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString21) }()
- case 22: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString22) }()
- case 23: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString23) }()
- case 24: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString24) }()
- case 25: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString25) }()
- case 26: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString26) }()
- case 27: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString27) }()
- case 28: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString28) }()
- case 29: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString29) }()
- case 30: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString30) }()
- case 31: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString31) }()
- case 32: try { try decoder.decodeRepeatedStringField(value: &_storage._repeatedString32) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- if !_storage._repeatedString1.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString1, fieldNumber: 1)
- }
- if !_storage._repeatedString2.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString2, fieldNumber: 2)
- }
- if !_storage._repeatedString3.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString3, fieldNumber: 3)
- }
- if !_storage._repeatedString4.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString4, fieldNumber: 4)
- }
- if !_storage._repeatedString5.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString5, fieldNumber: 5)
- }
- if !_storage._repeatedString6.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString6, fieldNumber: 6)
- }
- if !_storage._repeatedString7.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString7, fieldNumber: 7)
- }
- if !_storage._repeatedString8.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString8, fieldNumber: 8)
- }
- if !_storage._repeatedString9.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString9, fieldNumber: 9)
- }
- if !_storage._repeatedString10.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString10, fieldNumber: 10)
- }
- if !_storage._repeatedString11.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString11, fieldNumber: 11)
- }
- if !_storage._repeatedString12.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString12, fieldNumber: 12)
- }
- if !_storage._repeatedString13.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString13, fieldNumber: 13)
- }
- if !_storage._repeatedString14.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString14, fieldNumber: 14)
- }
- if !_storage._repeatedString15.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString15, fieldNumber: 15)
- }
- if !_storage._repeatedString16.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString16, fieldNumber: 16)
- }
- if !_storage._repeatedString17.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString17, fieldNumber: 17)
- }
- if !_storage._repeatedString18.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString18, fieldNumber: 18)
- }
- if !_storage._repeatedString19.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString19, fieldNumber: 19)
- }
- if !_storage._repeatedString20.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString20, fieldNumber: 20)
- }
- if !_storage._repeatedString21.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString21, fieldNumber: 21)
- }
- if !_storage._repeatedString22.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString22, fieldNumber: 22)
- }
- if !_storage._repeatedString23.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString23, fieldNumber: 23)
- }
- if !_storage._repeatedString24.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString24, fieldNumber: 24)
- }
- if !_storage._repeatedString25.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString25, fieldNumber: 25)
- }
- if !_storage._repeatedString26.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString26, fieldNumber: 26)
- }
- if !_storage._repeatedString27.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString27, fieldNumber: 27)
- }
- if !_storage._repeatedString28.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString28, fieldNumber: 28)
- }
- if !_storage._repeatedString29.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString29, fieldNumber: 29)
- }
- if !_storage._repeatedString30.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString30, fieldNumber: 30)
- }
- if !_storage._repeatedString31.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString31, fieldNumber: 31)
- }
- if !_storage._repeatedString32.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._repeatedString32, fieldNumber: 32)
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMessageWithManyRepeatedPtrFields, rhs: Proto2Unittest_TestMessageWithManyRepeatedPtrFields) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._repeatedString1 != rhs_storage._repeatedString1 {return false}
- if _storage._repeatedString2 != rhs_storage._repeatedString2 {return false}
- if _storage._repeatedString3 != rhs_storage._repeatedString3 {return false}
- if _storage._repeatedString4 != rhs_storage._repeatedString4 {return false}
- if _storage._repeatedString5 != rhs_storage._repeatedString5 {return false}
- if _storage._repeatedString6 != rhs_storage._repeatedString6 {return false}
- if _storage._repeatedString7 != rhs_storage._repeatedString7 {return false}
- if _storage._repeatedString8 != rhs_storage._repeatedString8 {return false}
- if _storage._repeatedString9 != rhs_storage._repeatedString9 {return false}
- if _storage._repeatedString10 != rhs_storage._repeatedString10 {return false}
- if _storage._repeatedString11 != rhs_storage._repeatedString11 {return false}
- if _storage._repeatedString12 != rhs_storage._repeatedString12 {return false}
- if _storage._repeatedString13 != rhs_storage._repeatedString13 {return false}
- if _storage._repeatedString14 != rhs_storage._repeatedString14 {return false}
- if _storage._repeatedString15 != rhs_storage._repeatedString15 {return false}
- if _storage._repeatedString16 != rhs_storage._repeatedString16 {return false}
- if _storage._repeatedString17 != rhs_storage._repeatedString17 {return false}
- if _storage._repeatedString18 != rhs_storage._repeatedString18 {return false}
- if _storage._repeatedString19 != rhs_storage._repeatedString19 {return false}
- if _storage._repeatedString20 != rhs_storage._repeatedString20 {return false}
- if _storage._repeatedString21 != rhs_storage._repeatedString21 {return false}
- if _storage._repeatedString22 != rhs_storage._repeatedString22 {return false}
- if _storage._repeatedString23 != rhs_storage._repeatedString23 {return false}
- if _storage._repeatedString24 != rhs_storage._repeatedString24 {return false}
- if _storage._repeatedString25 != rhs_storage._repeatedString25 {return false}
- if _storage._repeatedString26 != rhs_storage._repeatedString26 {return false}
- if _storage._repeatedString27 != rhs_storage._repeatedString27 {return false}
- if _storage._repeatedString28 != rhs_storage._repeatedString28 {return false}
- if _storage._repeatedString29 != rhs_storage._repeatedString29 {return false}
- if _storage._repeatedString30 != rhs_storage._repeatedString30 {return false}
- if _storage._repeatedString31 != rhs_storage._repeatedString31 {return false}
- if _storage._repeatedString32 != rhs_storage._repeatedString32 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_MessageCreatorZeroInit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".MessageCreatorZeroInit"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "i"),
- 2: .same(proto: "d"),
- 3: .same(proto: "m"),
- 10: .same(proto: "os"),
- 11: .same(proto: "oc"),
- 12: .same(proto: "of"),
- 13: .same(proto: "ol"),
- ]
- fileprivate class _StorageClass {
- var _i: Int32? = nil
- var _d: Double? = nil
- var _m: Proto2Unittest_MessageCreatorZeroInit? = nil
- var _one: Proto2Unittest_MessageCreatorZeroInit.OneOf_One?
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _i = source._i
- _d = source._d
- _m = source._m
- _one = source._one
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &_storage._i) }()
- case 2: try { try decoder.decodeSingularDoubleField(value: &_storage._d) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &_storage._m) }()
- case 10: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if _storage._one != nil {try decoder.handleConflictingOneOf()}
- _storage._one = .os(v)
- }
- }()
- case 11: try {
- var v: String?
- try decoder.decodeSingularStringField(value: &v)
- if let v = v {
- if _storage._one != nil {try decoder.handleConflictingOneOf()}
- _storage._one = .oc(v)
- }
- }()
- case 12: try {
- var v: UInt64?
- try decoder.decodeSingularFixed64Field(value: &v)
- if let v = v {
- if _storage._one != nil {try decoder.handleConflictingOneOf()}
- _storage._one = .of(v)
- }
- }()
- case 13: try {
- var v: Proto2Unittest_MessageCreatorZeroInit?
- var hadOneofValue = false
- if let current = _storage._one {
- hadOneofValue = true
- if case .ol(let m) = current {v = m}
- }
- try decoder.decodeSingularMessageField(value: &v)
- if let v = v {
- if hadOneofValue {try decoder.handleConflictingOneOf()}
- _storage._one = .ol(v)
- }
- }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._i {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._d {
- try visitor.visitSingularDoubleField(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._m {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- switch _storage._one {
- case .os?: try {
- guard case .os(let v)? = _storage._one else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 10)
- }()
- case .oc?: try {
- guard case .oc(let v)? = _storage._one else { preconditionFailure() }
- try visitor.visitSingularStringField(value: v, fieldNumber: 11)
- }()
- case .of?: try {
- guard case .of(let v)? = _storage._one else { preconditionFailure() }
- try visitor.visitSingularFixed64Field(value: v, fieldNumber: 12)
- }()
- case .ol?: try {
- guard case .ol(let v)? = _storage._one else { preconditionFailure() }
- try visitor.visitSingularMessageField(value: v, fieldNumber: 13)
- }()
- case nil: break
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_MessageCreatorZeroInit, rhs: Proto2Unittest_MessageCreatorZeroInit) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._i != rhs_storage._i {return false}
- if _storage._d != rhs_storage._d {return false}
- if _storage._m != rhs_storage._m {return false}
- if _storage._one != rhs_storage._one {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_MessageCreatorMemcpy: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".MessageCreatorMemcpy"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "s"),
- 2: .same(proto: "i"),
- 3: .same(proto: "m"),
- 4: .same(proto: "m2"),
- ]
- fileprivate class _StorageClass {
- var _s: String? = nil
- var _i: [Int32] = []
- var _m: Proto2Unittest_MessageCreatorMemcpy? = nil
- var _m2: Dictionary<Int32,Int32> = [:]
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _s = source._s
- _i = source._i
- _m = source._m
- _m2 = source._m2
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &_storage._s) }()
- case 2: try { try decoder.decodeRepeatedInt32Field(value: &_storage._i) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &_storage._m) }()
- case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: &_storage._m2) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._s {
- try visitor.visitSingularStringField(value: v, fieldNumber: 1)
- } }()
- if !_storage._i.isEmpty {
- try visitor.visitPackedInt32Field(value: _storage._i, fieldNumber: 2)
- }
- try { if let v = _storage._m {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- if !_storage._m2.isEmpty {
- try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufInt32,SwiftProtobuf.ProtobufInt32>.self, value: _storage._m2, fieldNumber: 4)
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_MessageCreatorMemcpy, rhs: Proto2Unittest_MessageCreatorMemcpy) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._s != rhs_storage._s {return false}
- if _storage._i != rhs_storage._i {return false}
- if _storage._m != rhs_storage._m {return false}
- if _storage._m2 != rhs_storage._m2 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_MessageCreatorFunc: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".MessageCreatorFunc"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 3: .same(proto: "c"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 3: try { try decoder.decodeSingularStringField(value: &self._c) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._c {
- try visitor.visitSingularStringField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_MessageCreatorFunc, rhs: Proto2Unittest_MessageCreatorFunc) -> Bool {
- if lhs._c != rhs._c {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_FastParseTableCompression: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".FastParseTableCompression"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .standard(proto: "important_field_1"),
- 2: .standard(proto: "important_field_2"),
- 3: .standard(proto: "unimportant_field_3"),
- 4: .standard(proto: "unimportant_field_4"),
- 5: .standard(proto: "unimportant_field_5"),
- 9: .standard(proto: "unimportant_field_9"),
- 11: .standard(proto: "important_field_11"),
- 12: .standard(proto: "unimportant_field_12"),
- 14: .standard(proto: "important_field_14"),
- 15: .standard(proto: "unimportant_field_15"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._importantField1) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._importantField2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField3) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField4) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField5) }()
- case 9: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField9) }()
- case 11: try { try decoder.decodeSingularInt32Field(value: &self._importantField11) }()
- case 12: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField12) }()
- case 14: try { try decoder.decodeSingularInt32Field(value: &self._importantField14) }()
- case 15: try { try decoder.decodeSingularInt32Field(value: &self._unimportantField15) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._importantField1 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._importantField2 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = self._unimportantField3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = self._unimportantField4 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = self._unimportantField5 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = self._unimportantField9 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
- } }()
- try { if let v = self._importantField11 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 11)
- } }()
- try { if let v = self._unimportantField12 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 12)
- } }()
- try { if let v = self._importantField14 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 14)
- } }()
- try { if let v = self._unimportantField15 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 15)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_FastParseTableCompression, rhs: Proto2Unittest_FastParseTableCompression) -> Bool {
- if lhs._importantField1 != rhs._importantField1 {return false}
- if lhs._importantField2 != rhs._importantField2 {return false}
- if lhs._unimportantField3 != rhs._unimportantField3 {return false}
- if lhs._unimportantField4 != rhs._unimportantField4 {return false}
- if lhs._unimportantField5 != rhs._unimportantField5 {return false}
- if lhs._unimportantField9 != rhs._unimportantField9 {return false}
- if lhs._importantField11 != rhs._importantField11 {return false}
- if lhs._unimportantField12 != rhs._unimportantField12 {return false}
- if lhs._importantField14 != rhs._importantField14 {return false}
- if lhs._unimportantField15 != rhs._unimportantField15 {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMessageForMove_Small: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMessageForMove_Small"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a"),
- 2: .same(proto: "b"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self._a) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self._b) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._a {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = self._b {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMessageForMove_Small, rhs: Proto2Unittest_TestMessageForMove_Small) -> Bool {
- if lhs._a != rhs._a {return false}
- if lhs._b != rhs._b {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Proto2Unittest_TestMessageForMove_Large: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = _protobuf_package + ".TestMessageForMove_Large"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "a1"),
- 2: .same(proto: "a2"),
- 3: .same(proto: "a3"),
- 4: .same(proto: "a4"),
- 5: .same(proto: "a5"),
- 6: .same(proto: "a6"),
- 7: .same(proto: "a7"),
- 8: .same(proto: "a8"),
- 9: .same(proto: "a9"),
- 11: .same(proto: "a11"),
- 12: .same(proto: "a12"),
- 13: .same(proto: "a13"),
- 14: .same(proto: "a14"),
- 15: .same(proto: "a15"),
- 16: .same(proto: "a16"),
- 17: .same(proto: "a17"),
- 18: .same(proto: "a18"),
- 19: .same(proto: "a19"),
- 101: .same(proto: "s101"),
- 102: .same(proto: "s102"),
- 103: .same(proto: "s103"),
- 104: .same(proto: "s104"),
- 105: .same(proto: "s105"),
- 106: .same(proto: "s106"),
- 107: .same(proto: "s107"),
- 108: .same(proto: "s108"),
- 109: .same(proto: "s109"),
- 111: .same(proto: "s111"),
- 112: .same(proto: "s112"),
- 113: .same(proto: "s113"),
- 114: .same(proto: "s114"),
- 115: .same(proto: "s115"),
- 116: .same(proto: "s116"),
- 117: .same(proto: "s117"),
- 118: .same(proto: "s118"),
- 119: .same(proto: "s119"),
- ]
- fileprivate class _StorageClass {
- var _a1: Int32? = nil
- var _a2: Int32? = nil
- var _a3: Int32? = nil
- var _a4: Int32? = nil
- var _a5: Int32? = nil
- var _a6: Int32? = nil
- var _a7: Int32? = nil
- var _a8: Int32? = nil
- var _a9: Int32? = nil
- var _a11: [Int32] = []
- var _a12: [Int32] = []
- var _a13: [Int32] = []
- var _a14: [Int32] = []
- var _a15: [Int32] = []
- var _a16: [Int32] = []
- var _a17: [Int32] = []
- var _a18: [Int32] = []
- var _a19: [Int32] = []
- var _s101: String? = nil
- var _s102: String? = nil
- var _s103: String? = nil
- var _s104: String? = nil
- var _s105: String? = nil
- var _s106: String? = nil
- var _s107: String? = nil
- var _s108: String? = nil
- var _s109: String? = nil
- var _s111: [String] = []
- var _s112: [String] = []
- var _s113: [String] = []
- var _s114: [String] = []
- var _s115: [String] = []
- var _s116: [String] = []
- var _s117: [String] = []
- var _s118: [String] = []
- var _s119: [String] = []
- // This property is used as the initial default value for new instances of the type.
- // The type itself is protecting the reference to its storage via CoW semantics.
- // This will force a copy to be made of this reference when the first mutation occurs;
- // hence, it is safe to mark this as `nonisolated(unsafe)`.
- static nonisolated(unsafe) let defaultInstance = _StorageClass()
- private init() {}
- init(copying source: _StorageClass) {
- _a1 = source._a1
- _a2 = source._a2
- _a3 = source._a3
- _a4 = source._a4
- _a5 = source._a5
- _a6 = source._a6
- _a7 = source._a7
- _a8 = source._a8
- _a9 = source._a9
- _a11 = source._a11
- _a12 = source._a12
- _a13 = source._a13
- _a14 = source._a14
- _a15 = source._a15
- _a16 = source._a16
- _a17 = source._a17
- _a18 = source._a18
- _a19 = source._a19
- _s101 = source._s101
- _s102 = source._s102
- _s103 = source._s103
- _s104 = source._s104
- _s105 = source._s105
- _s106 = source._s106
- _s107 = source._s107
- _s108 = source._s108
- _s109 = source._s109
- _s111 = source._s111
- _s112 = source._s112
- _s113 = source._s113
- _s114 = source._s114
- _s115 = source._s115
- _s116 = source._s116
- _s117 = source._s117
- _s118 = source._s118
- _s119 = source._s119
- }
- }
- fileprivate mutating func _uniqueStorage() -> _StorageClass {
- if !isKnownUniquelyReferenced(&_storage) {
- _storage = _StorageClass(copying: _storage)
- }
- return _storage
- }
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- _ = _uniqueStorage()
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &_storage._a1) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &_storage._a2) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &_storage._a3) }()
- case 4: try { try decoder.decodeSingularInt32Field(value: &_storage._a4) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._a5) }()
- case 6: try { try decoder.decodeSingularInt32Field(value: &_storage._a6) }()
- case 7: try { try decoder.decodeSingularInt32Field(value: &_storage._a7) }()
- case 8: try { try decoder.decodeSingularInt32Field(value: &_storage._a8) }()
- case 9: try { try decoder.decodeSingularInt32Field(value: &_storage._a9) }()
- case 11: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a11) }()
- case 12: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a12) }()
- case 13: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a13) }()
- case 14: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a14) }()
- case 15: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a15) }()
- case 16: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a16) }()
- case 17: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a17) }()
- case 18: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a18) }()
- case 19: try { try decoder.decodeRepeatedInt32Field(value: &_storage._a19) }()
- case 101: try { try decoder.decodeSingularStringField(value: &_storage._s101) }()
- case 102: try { try decoder.decodeSingularStringField(value: &_storage._s102) }()
- case 103: try { try decoder.decodeSingularStringField(value: &_storage._s103) }()
- case 104: try { try decoder.decodeSingularStringField(value: &_storage._s104) }()
- case 105: try { try decoder.decodeSingularStringField(value: &_storage._s105) }()
- case 106: try { try decoder.decodeSingularStringField(value: &_storage._s106) }()
- case 107: try { try decoder.decodeSingularStringField(value: &_storage._s107) }()
- case 108: try { try decoder.decodeSingularStringField(value: &_storage._s108) }()
- case 109: try { try decoder.decodeSingularStringField(value: &_storage._s109) }()
- case 111: try { try decoder.decodeRepeatedStringField(value: &_storage._s111) }()
- case 112: try { try decoder.decodeRepeatedStringField(value: &_storage._s112) }()
- case 113: try { try decoder.decodeRepeatedStringField(value: &_storage._s113) }()
- case 114: try { try decoder.decodeRepeatedStringField(value: &_storage._s114) }()
- case 115: try { try decoder.decodeRepeatedStringField(value: &_storage._s115) }()
- case 116: try { try decoder.decodeRepeatedStringField(value: &_storage._s116) }()
- case 117: try { try decoder.decodeRepeatedStringField(value: &_storage._s117) }()
- case 118: try { try decoder.decodeRepeatedStringField(value: &_storage._s118) }()
- case 119: try { try decoder.decodeRepeatedStringField(value: &_storage._s119) }()
- default: break
- }
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = _storage._a1 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
- } }()
- try { if let v = _storage._a2 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
- } }()
- try { if let v = _storage._a3 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
- } }()
- try { if let v = _storage._a4 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
- } }()
- try { if let v = _storage._a5 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
- } }()
- try { if let v = _storage._a6 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 6)
- } }()
- try { if let v = _storage._a7 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
- } }()
- try { if let v = _storage._a8 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 8)
- } }()
- try { if let v = _storage._a9 {
- try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
- } }()
- if !_storage._a11.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a11, fieldNumber: 11)
- }
- if !_storage._a12.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a12, fieldNumber: 12)
- }
- if !_storage._a13.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a13, fieldNumber: 13)
- }
- if !_storage._a14.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a14, fieldNumber: 14)
- }
- if !_storage._a15.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a15, fieldNumber: 15)
- }
- if !_storage._a16.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a16, fieldNumber: 16)
- }
- if !_storage._a17.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a17, fieldNumber: 17)
- }
- if !_storage._a18.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a18, fieldNumber: 18)
- }
- if !_storage._a19.isEmpty {
- try visitor.visitRepeatedInt32Field(value: _storage._a19, fieldNumber: 19)
- }
- try { if let v = _storage._s101 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 101)
- } }()
- try { if let v = _storage._s102 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 102)
- } }()
- try { if let v = _storage._s103 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 103)
- } }()
- try { if let v = _storage._s104 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 104)
- } }()
- try { if let v = _storage._s105 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 105)
- } }()
- try { if let v = _storage._s106 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 106)
- } }()
- try { if let v = _storage._s107 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 107)
- } }()
- try { if let v = _storage._s108 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 108)
- } }()
- try { if let v = _storage._s109 {
- try visitor.visitSingularStringField(value: v, fieldNumber: 109)
- } }()
- if !_storage._s111.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s111, fieldNumber: 111)
- }
- if !_storage._s112.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s112, fieldNumber: 112)
- }
- if !_storage._s113.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s113, fieldNumber: 113)
- }
- if !_storage._s114.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s114, fieldNumber: 114)
- }
- if !_storage._s115.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s115, fieldNumber: 115)
- }
- if !_storage._s116.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s116, fieldNumber: 116)
- }
- if !_storage._s117.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s117, fieldNumber: 117)
- }
- if !_storage._s118.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s118, fieldNumber: 118)
- }
- if !_storage._s119.isEmpty {
- try visitor.visitRepeatedStringField(value: _storage._s119, fieldNumber: 119)
- }
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Proto2Unittest_TestMessageForMove_Large, rhs: Proto2Unittest_TestMessageForMove_Large) -> Bool {
- if lhs._storage !== rhs._storage {
- let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
- let _storage = _args.0
- let rhs_storage = _args.1
- if _storage._a1 != rhs_storage._a1 {return false}
- if _storage._a2 != rhs_storage._a2 {return false}
- if _storage._a3 != rhs_storage._a3 {return false}
- if _storage._a4 != rhs_storage._a4 {return false}
- if _storage._a5 != rhs_storage._a5 {return false}
- if _storage._a6 != rhs_storage._a6 {return false}
- if _storage._a7 != rhs_storage._a7 {return false}
- if _storage._a8 != rhs_storage._a8 {return false}
- if _storage._a9 != rhs_storage._a9 {return false}
- if _storage._a11 != rhs_storage._a11 {return false}
- if _storage._a12 != rhs_storage._a12 {return false}
- if _storage._a13 != rhs_storage._a13 {return false}
- if _storage._a14 != rhs_storage._a14 {return false}
- if _storage._a15 != rhs_storage._a15 {return false}
- if _storage._a16 != rhs_storage._a16 {return false}
- if _storage._a17 != rhs_storage._a17 {return false}
- if _storage._a18 != rhs_storage._a18 {return false}
- if _storage._a19 != rhs_storage._a19 {return false}
- if _storage._s101 != rhs_storage._s101 {return false}
- if _storage._s102 != rhs_storage._s102 {return false}
- if _storage._s103 != rhs_storage._s103 {return false}
- if _storage._s104 != rhs_storage._s104 {return false}
- if _storage._s105 != rhs_storage._s105 {return false}
- if _storage._s106 != rhs_storage._s106 {return false}
- if _storage._s107 != rhs_storage._s107 {return false}
- if _storage._s108 != rhs_storage._s108 {return false}
- if _storage._s109 != rhs_storage._s109 {return false}
- if _storage._s111 != rhs_storage._s111 {return false}
- if _storage._s112 != rhs_storage._s112 {return false}
- if _storage._s113 != rhs_storage._s113 {return false}
- if _storage._s114 != rhs_storage._s114 {return false}
- if _storage._s115 != rhs_storage._s115 {return false}
- if _storage._s116 != rhs_storage._s116 {return false}
- if _storage._s117 != rhs_storage._s117 {return false}
- if _storage._s118 != rhs_storage._s118 {return false}
- if _storage._s119 != rhs_storage._s119 {return false}
- return true
- }
- if !storagesAreEqual {return false}
- }
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
|