Descriptor.cs 312 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/descriptor.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Google.Protobuf.Reflection {
  12. /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary>
  13. internal static partial class DescriptorReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static DescriptorReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy",
  24. "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
  25. "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl",
  26. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS",
  27. "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo",
  28. "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg",
  29. "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt",
  30. "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ",
  31. "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp",
  32. "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
  33. "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB",
  34. "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv",
  35. "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m",
  36. "bxIOCgZzeW50YXgYDCABKAkiqQUKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
  37. "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
  38. "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w",
  39. "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD",
  40. "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51",
  41. "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y",
  42. "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
  43. "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k",
  44. "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy",
  45. "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn",
  46. "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv",
  47. "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2",
  48. "ZWRfbmFtZRgKIAMoCRplCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo",
  49. "BRILCgNlbmQYAiABKAUSNwoHb3B0aW9ucxgDIAEoCzImLmdvb2dsZS5wcm90",
  50. "b2J1Zi5FeHRlbnNpb25SYW5nZU9wdGlvbnMaKwoNUmVzZXJ2ZWRSYW5nZRIN",
  51. "CgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUiZwoVRXh0ZW5zaW9uUmFuZ2VP",
  52. "cHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2ds",
  53. "ZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIivAUK",
  54. "FEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVy",
  55. "GAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
  56. "RGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5cGUYBSABKA4yKi5nb29nbGUu",
  57. "cHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8uVHlwZRIRCgl0eXBlX25h",
  58. "bWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkSFQoNZGVmYXVsdF92YWx1ZRgH",
  59. "IAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIRCglqc29uX25hbWUYCiABKAkS",
  60. "LgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv",
  61. "bnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQARIOCgpUWVBFX0ZMT0FUEAIS",
  62. "DgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlOVDY0EAQSDgoKVFlQRV9JTlQz",
  63. "MhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZUEVfRklYRUQzMhAHEg0KCVRZ",
  64. "UEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkSDgoKVFlQRV9HUk9VUBAKEhAK",
  65. "DFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllURVMQDBIPCgtUWVBFX1VJTlQz",
  66. "MhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVfU0ZJWEVEMzIQDxIRCg1UWVBF",
  67. "X1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQERIPCgtUWVBFX1NJTlQ2NBAS",
  68. "IkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFMEAESEgoOTEFCRUxfUkVRVUlS",
  69. "RUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQKFE9uZW9mRGVzY3JpcHRvclBy",
  70. "b3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9ucxgCIAEoCzIdLmdvb2dsZS5w",
  71. "cm90b2J1Zi5PbmVvZk9wdGlvbnMipAIKE0VudW1EZXNjcmlwdG9yUHJvdG8S",
  72. "DAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIpLmdvb2dsZS5wcm90b2J1",
  73. "Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoHb3B0aW9ucxgDIAEoCzIc",
  74. "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucxJOCg5yZXNlcnZlZF9yYW5n",
  75. "ZRgEIAMoCzI2Lmdvb2dsZS5wcm90b2J1Zi5FbnVtRGVzY3JpcHRvclByb3Rv",
  76. "LkVudW1SZXNlcnZlZFJhbmdlEhUKDXJlc2VydmVkX25hbWUYBSADKAkaLwoR",
  77. "RW51bVJlc2VydmVkUmFuZ2USDQoFc3RhcnQYASABKAUSCwoDZW5kGAIgASgF",
  78. "ImwKGEVudW1WYWx1ZURlc2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg4K",
  79. "Bm51bWJlchgCIAEoBRIyCgdvcHRpb25zGAMgASgLMiEuZ29vZ2xlLnByb3Rv",
  80. "YnVmLkVudW1WYWx1ZU9wdGlvbnMikAEKFlNlcnZpY2VEZXNjcmlwdG9yUHJv",
  81. "dG8SDAoEbmFtZRgBIAEoCRI2CgZtZXRob2QYAiADKAsyJi5nb29nbGUucHJv",
  82. "dG9idWYuTWV0aG9kRGVzY3JpcHRvclByb3RvEjAKB29wdGlvbnMYAyABKAsy",
  83. "Hy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMiwQEKFU1ldGhvZERl",
  84. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEhIKCmlucHV0X3R5cGUYAiAB",
  85. "KAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0aW9ucxgEIAEoCzIeLmdv",
  86. "b2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zEh8KEGNsaWVudF9zdHJlYW1p",
  87. "bmcYBSABKAg6BWZhbHNlEh8KEHNlcnZlcl9zdHJlYW1pbmcYBiABKAg6BWZh",
  88. "bHNlIqYGCgtGaWxlT3B0aW9ucxIUCgxqYXZhX3BhY2thZ2UYASABKAkSHAoU",
  89. "amF2YV9vdXRlcl9jbGFzc25hbWUYCCABKAkSIgoTamF2YV9tdWx0aXBsZV9m",
  90. "aWxlcxgKIAEoCDoFZmFsc2USKQodamF2YV9nZW5lcmF0ZV9lcXVhbHNfYW5k",
  91. "X2hhc2gYFCABKAhCAhgBEiUKFmphdmFfc3RyaW5nX2NoZWNrX3V0ZjgYGyAB",
  92. "KAg6BWZhbHNlEkYKDG9wdGltaXplX2ZvchgJIAEoDjIpLmdvb2dsZS5wcm90",
  93. "b2J1Zi5GaWxlT3B0aW9ucy5PcHRpbWl6ZU1vZGU6BVNQRUVEEhIKCmdvX3Bh",
  94. "Y2thZ2UYCyABKAkSIgoTY2NfZ2VuZXJpY19zZXJ2aWNlcxgQIAEoCDoFZmFs",
  95. "c2USJAoVamF2YV9nZW5lcmljX3NlcnZpY2VzGBEgASgIOgVmYWxzZRIiChNw",
  96. "eV9nZW5lcmljX3NlcnZpY2VzGBIgASgIOgVmYWxzZRIjChRwaHBfZ2VuZXJp",
  97. "Y19zZXJ2aWNlcxgqIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgXIAEoCDoF",
  98. "ZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFsc2USGQoRb2Jq",
  99. "Y19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVzcGFjZRglIAEo",
  100. "CRIUCgxzd2lmdF9wcmVmaXgYJyABKAkSGAoQcGhwX2NsYXNzX3ByZWZpeBgo",
  101. "IAEoCRIVCg1waHBfbmFtZXNwYWNlGCkgASgJEh4KFnBocF9tZXRhZGF0YV9u",
  102. "YW1lc3BhY2UYLCABKAkSFAoMcnVieV9wYWNrYWdlGC0gASgJEkMKFHVuaW50",
  103. "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
  104. "dGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9kZRIJCgVTUEVFRBABEg0K",
  105. "CUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRADKgkI6AcQgICAgAJKBAgm",
  106. "ECci8gEKDk1lc3NhZ2VPcHRpb25zEiYKF21lc3NhZ2Vfc2V0X3dpcmVfZm9y",
  107. "bWF0GAEgASgIOgVmYWxzZRIuCh9ub19zdGFuZGFyZF9kZXNjcmlwdG9yX2Fj",
  108. "Y2Vzc29yGAIgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxz",
  109. "ZRIRCgltYXBfZW50cnkYByABKAgSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y",
  110. "5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24q",
  111. "CQjoBxCAgICAAkoECAgQCUoECAkQCiKeAwoMRmllbGRPcHRpb25zEjoKBWN0",
  112. "eXBlGAEgASgOMiMuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5DVHlw",
  113. "ZToGU1RSSU5HEg4KBnBhY2tlZBgCIAEoCBI/CgZqc3R5cGUYBiABKA4yJC5n",
  114. "b29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkpTVHlwZToJSlNfTk9STUFM",
  115. "EhMKBGxhenkYBSABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZh",
  116. "bHNlEhMKBHdlYWsYCiABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0",
  117. "aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0",
  118. "aW9uIi8KBUNUeXBlEgoKBlNUUklORxAAEggKBENPUkQQARIQCgxTVFJJTkdf",
  119. "UElFQ0UQAiI1CgZKU1R5cGUSDQoJSlNfTk9STUFMEAASDQoJSlNfU1RSSU5H",
  120. "EAESDQoJSlNfTlVNQkVSEAIqCQjoBxCAgICAAkoECAQQBSJeCgxPbmVvZk9w",
  121. "dGlvbnMSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xl",
  122. "LnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKTAQoL",
  123. "RW51bU9wdGlvbnMSEwoLYWxsb3dfYWxpYXMYAiABKAgSGQoKZGVwcmVjYXRl",
  124. "ZBgDIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygL",
  125. "MiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCA",
  126. "gICAAkoECAUQBiJ9ChBFbnVtVmFsdWVPcHRpb25zEhkKCmRlcHJlY2F0ZWQY",
  127. "ASABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIk",
  128. "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICA",
  129. "gAIiewoOU2VydmljZU9wdGlvbnMSGQoKZGVwcmVjYXRlZBghIAEoCDoFZmFs",
  130. "c2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy",
  131. "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKtAgoNTWV0",
  132. "aG9kT3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJfChFpZGVt",
  133. "cG90ZW5jeV9sZXZlbBgiIAEoDjIvLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RP",
  134. "cHRpb25zLklkZW1wb3RlbmN5TGV2ZWw6E0lERU1QT1RFTkNZX1VOS05PV04S",
  135. "QwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3Rv",
  136. "YnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iUAoQSWRlbXBvdGVuY3lMZXZlbBIX",
  137. "ChNJREVNUE9URU5DWV9VTktOT1dOEAASEwoPTk9fU0lERV9FRkZFQ1RTEAES",
  138. "DgoKSURFTVBPVEVOVBACKgkI6AcQgICAgAIingIKE1VuaW50ZXJwcmV0ZWRP",
  139. "cHRpb24SOwoEbmFtZRgCIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5VbmludGVy",
  140. "cHJldGVkT3B0aW9uLk5hbWVQYXJ0EhgKEGlkZW50aWZpZXJfdmFsdWUYAyAB",
  141. "KAkSGgoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEEhoKEm5lZ2F0aXZlX2lu",
  142. "dF92YWx1ZRgFIAEoAxIUCgxkb3VibGVfdmFsdWUYBiABKAESFAoMc3RyaW5n",
  143. "X3ZhbHVlGAcgASgMEhcKD2FnZ3JlZ2F0ZV92YWx1ZRgIIAEoCRozCghOYW1l",
  144. "UGFydBIRCgluYW1lX3BhcnQYASACKAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigI",
  145. "ItUBCg5Tb3VyY2VDb2RlSW5mbxI6Cghsb2NhdGlvbhgBIAMoCzIoLmdvb2ds",
  146. "ZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5mby5Mb2NhdGlvbhqGAQoITG9jYXRp",
  147. "b24SEAoEcGF0aBgBIAMoBUICEAESEAoEc3BhbhgCIAMoBUICEAESGAoQbGVh",
  148. "ZGluZ19jb21tZW50cxgDIAEoCRIZChF0cmFpbGluZ19jb21tZW50cxgEIAEo",
  149. "CRIhChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJIqcBChFHZW5l",
  150. "cmF0ZWRDb2RlSW5mbxJBCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnBy",
  151. "b3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb24aTwoKQW5ub3Rh",
  152. "dGlvbhIQCgRwYXRoGAEgAygFQgIQARITCgtzb3VyY2VfZmlsZRgCIAEoCRIN",
  153. "CgViZWdpbhgDIAEoBRILCgNlbmQYBCABKAVCjwEKE2NvbS5nb29nbGUucHJv",
  154. "dG9idWZCEERlc2NyaXB0b3JQcm90b3NIAVo+Z2l0aHViLmNvbS9nb2xhbmcv",
  155. "cHJvdG9idWYvcHJvdG9jLWdlbi1nby9kZXNjcmlwdG9yO2Rlc2NyaXB0b3L4",
  156. "AQGiAgNHUEKqAhpHb29nbGUuUHJvdG9idWYuUmVmbGVjdGlvbg=="));
  157. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  158. new pbr::FileDescriptor[] { },
  159. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  160. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null),
  161. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null),
  162. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End", "Options" }, null, null, null),
  163. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, null)}),
  164. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ExtensionRangeOptions), global::Google.Protobuf.Reflection.ExtensionRangeOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null),
  165. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null),
  166. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name", "Options" }, null, null, null),
  167. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange), global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange.Parser, new[]{ "Start", "End" }, null, null, null)}),
  168. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
  169. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
  170. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
  171. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "PhpMetadataNamespace", "RubyPackage", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
  172. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
  173. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
  174. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null),
  175. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
  176. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  177. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  178. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "IdempotencyLevel", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) }, null),
  179. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
  180. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)}),
  181. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)})
  182. }));
  183. }
  184. #endregion
  185. }
  186. #region Messages
  187. /// <summary>
  188. /// The protocol compiler can output a FileDescriptorSet containing the .proto
  189. /// files it parses.
  190. /// </summary>
  191. internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
  192. private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
  193. private pb::UnknownFieldSet _unknownFields;
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. public static pbr::MessageDescriptor Descriptor {
  198. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  201. pbr::MessageDescriptor pb::IMessage.Descriptor {
  202. get { return Descriptor; }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  205. public FileDescriptorSet() {
  206. OnConstruction();
  207. }
  208. partial void OnConstruction();
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  210. public FileDescriptorSet(FileDescriptorSet other) : this() {
  211. file_ = other.file_.Clone();
  212. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  215. public FileDescriptorSet Clone() {
  216. return new FileDescriptorSet(this);
  217. }
  218. /// <summary>Field number for the "file" field.</summary>
  219. public const int FileFieldNumber = 1;
  220. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
  221. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
  222. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  224. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
  225. get { return file_; }
  226. }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  228. public override bool Equals(object other) {
  229. return Equals(other as FileDescriptorSet);
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. public bool Equals(FileDescriptorSet other) {
  233. if (ReferenceEquals(other, null)) {
  234. return false;
  235. }
  236. if (ReferenceEquals(other, this)) {
  237. return true;
  238. }
  239. if(!file_.Equals(other.file_)) return false;
  240. return Equals(_unknownFields, other._unknownFields);
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. public override int GetHashCode() {
  244. int hash = 1;
  245. hash ^= file_.GetHashCode();
  246. if (_unknownFields != null) {
  247. hash ^= _unknownFields.GetHashCode();
  248. }
  249. return hash;
  250. }
  251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  252. public override string ToString() {
  253. return pb::JsonFormatter.ToDiagnosticString(this);
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public void WriteTo(pb::CodedOutputStream output) {
  257. file_.WriteTo(output, _repeated_file_codec);
  258. if (_unknownFields != null) {
  259. _unknownFields.WriteTo(output);
  260. }
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  263. public int CalculateSize() {
  264. int size = 0;
  265. size += file_.CalculateSize(_repeated_file_codec);
  266. if (_unknownFields != null) {
  267. size += _unknownFields.CalculateSize();
  268. }
  269. return size;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  272. public void MergeFrom(FileDescriptorSet other) {
  273. if (other == null) {
  274. return;
  275. }
  276. file_.Add(other.file_);
  277. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public void MergeFrom(pb::CodedInputStream input) {
  281. uint tag;
  282. while ((tag = input.ReadTag()) != 0) {
  283. switch(tag) {
  284. default:
  285. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  286. return;
  287. }
  288. break;
  289. case 10: {
  290. file_.AddEntriesFrom(input, _repeated_file_codec);
  291. break;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. /// <summary>
  298. /// Describes a complete .proto file.
  299. /// </summary>
  300. internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
  301. private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
  302. private pb::UnknownFieldSet _unknownFields;
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  304. public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  306. public static pbr::MessageDescriptor Descriptor {
  307. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  310. pbr::MessageDescriptor pb::IMessage.Descriptor {
  311. get { return Descriptor; }
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  314. public FileDescriptorProto() {
  315. OnConstruction();
  316. }
  317. partial void OnConstruction();
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  319. public FileDescriptorProto(FileDescriptorProto other) : this() {
  320. name_ = other.name_;
  321. package_ = other.package_;
  322. dependency_ = other.dependency_.Clone();
  323. publicDependency_ = other.publicDependency_.Clone();
  324. weakDependency_ = other.weakDependency_.Clone();
  325. messageType_ = other.messageType_.Clone();
  326. enumType_ = other.enumType_.Clone();
  327. service_ = other.service_.Clone();
  328. extension_ = other.extension_.Clone();
  329. options_ = other.HasOptions ? other.options_.Clone() : null;
  330. sourceCodeInfo_ = other.HasSourceCodeInfo ? other.sourceCodeInfo_.Clone() : null;
  331. syntax_ = other.syntax_;
  332. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. public FileDescriptorProto Clone() {
  336. return new FileDescriptorProto(this);
  337. }
  338. /// <summary>Field number for the "name" field.</summary>
  339. public const int NameFieldNumber = 1;
  340. private readonly static string NameDefaultValue = "";
  341. private string name_;
  342. /// <summary>
  343. /// file name, relative to root of source tree
  344. /// </summary>
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  346. public string Name {
  347. get { return name_ ?? NameDefaultValue; }
  348. set {
  349. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  350. }
  351. }
  352. /// <summary>Gets whether the "name" field is set</summary>
  353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  354. public bool HasName {
  355. get { return name_ != null; }
  356. }
  357. /// <summary>Clears the value of the "name" field</summary>
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. public void ClearName() {
  360. name_ = null;
  361. }
  362. /// <summary>Field number for the "package" field.</summary>
  363. public const int PackageFieldNumber = 2;
  364. private readonly static string PackageDefaultValue = "";
  365. private string package_;
  366. /// <summary>
  367. /// e.g. "foo", "foo.bar", etc.
  368. /// </summary>
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  370. public string Package {
  371. get { return package_ ?? PackageDefaultValue; }
  372. set {
  373. package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  374. }
  375. }
  376. /// <summary>Gets whether the "package" field is set</summary>
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. public bool HasPackage {
  379. get { return package_ != null; }
  380. }
  381. /// <summary>Clears the value of the "package" field</summary>
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public void ClearPackage() {
  384. package_ = null;
  385. }
  386. /// <summary>Field number for the "dependency" field.</summary>
  387. public const int DependencyFieldNumber = 3;
  388. private static readonly pb::FieldCodec<string> _repeated_dependency_codec
  389. = pb::FieldCodec.ForString(26);
  390. private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
  391. /// <summary>
  392. /// Names of files imported by this file.
  393. /// </summary>
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  395. public pbc::RepeatedField<string> Dependency {
  396. get { return dependency_; }
  397. }
  398. /// <summary>Field number for the "public_dependency" field.</summary>
  399. public const int PublicDependencyFieldNumber = 10;
  400. private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
  401. = pb::FieldCodec.ForInt32(80);
  402. private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
  403. /// <summary>
  404. /// Indexes of the public imported files in the dependency list above.
  405. /// </summary>
  406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  407. public pbc::RepeatedField<int> PublicDependency {
  408. get { return publicDependency_; }
  409. }
  410. /// <summary>Field number for the "weak_dependency" field.</summary>
  411. public const int WeakDependencyFieldNumber = 11;
  412. private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
  413. = pb::FieldCodec.ForInt32(88);
  414. private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
  415. /// <summary>
  416. /// Indexes of the weak imported files in the dependency list.
  417. /// For Google-internal migration only. Do not use.
  418. /// </summary>
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  420. public pbc::RepeatedField<int> WeakDependency {
  421. get { return weakDependency_; }
  422. }
  423. /// <summary>Field number for the "message_type" field.</summary>
  424. public const int MessageTypeFieldNumber = 4;
  425. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
  426. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  427. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  428. /// <summary>
  429. /// All top-level definitions in this file.
  430. /// </summary>
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  432. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
  433. get { return messageType_; }
  434. }
  435. /// <summary>Field number for the "enum_type" field.</summary>
  436. public const int EnumTypeFieldNumber = 5;
  437. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  438. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  439. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  441. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  442. get { return enumType_; }
  443. }
  444. /// <summary>Field number for the "service" field.</summary>
  445. public const int ServiceFieldNumber = 6;
  446. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
  447. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
  448. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
  449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  450. public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
  451. get { return service_; }
  452. }
  453. /// <summary>Field number for the "extension" field.</summary>
  454. public const int ExtensionFieldNumber = 7;
  455. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  456. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  457. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  459. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  460. get { return extension_; }
  461. }
  462. /// <summary>Field number for the "options" field.</summary>
  463. public const int OptionsFieldNumber = 8;
  464. private global::Google.Protobuf.Reflection.FileOptions options_;
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. public global::Google.Protobuf.Reflection.FileOptions Options {
  467. get { return options_; }
  468. set {
  469. options_ = value;
  470. }
  471. }
  472. /// <summary>Gets whether the options field is set</summary>
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  474. public bool HasOptions {
  475. get { return options_ != null; }
  476. }
  477. /// <summary>Clears the value of the options field</summary>
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public void ClearOptions() {
  480. options_ = null;
  481. }
  482. /// <summary>Field number for the "source_code_info" field.</summary>
  483. public const int SourceCodeInfoFieldNumber = 9;
  484. private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
  485. /// <summary>
  486. /// This field contains optional information about the original source code.
  487. /// You may safely remove this entire field without harming runtime
  488. /// functionality of the descriptors -- the information is needed only by
  489. /// development tools.
  490. /// </summary>
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
  493. get { return sourceCodeInfo_; }
  494. set {
  495. sourceCodeInfo_ = value;
  496. }
  497. }
  498. /// <summary>Gets whether the source_code_info field is set</summary>
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  500. public bool HasSourceCodeInfo {
  501. get { return sourceCodeInfo_ != null; }
  502. }
  503. /// <summary>Clears the value of the source_code_info field</summary>
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. public void ClearSourceCodeInfo() {
  506. sourceCodeInfo_ = null;
  507. }
  508. /// <summary>Field number for the "syntax" field.</summary>
  509. public const int SyntaxFieldNumber = 12;
  510. private readonly static string SyntaxDefaultValue = "";
  511. private string syntax_;
  512. /// <summary>
  513. /// The syntax of the proto file.
  514. /// The supported values are "proto2" and "proto3".
  515. /// </summary>
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  517. public string Syntax {
  518. get { return syntax_ ?? SyntaxDefaultValue; }
  519. set {
  520. syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  521. }
  522. }
  523. /// <summary>Gets whether the "syntax" field is set</summary>
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  525. public bool HasSyntax {
  526. get { return syntax_ != null; }
  527. }
  528. /// <summary>Clears the value of the "syntax" field</summary>
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public void ClearSyntax() {
  531. syntax_ = null;
  532. }
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  534. public override bool Equals(object other) {
  535. return Equals(other as FileDescriptorProto);
  536. }
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  538. public bool Equals(FileDescriptorProto other) {
  539. if (ReferenceEquals(other, null)) {
  540. return false;
  541. }
  542. if (ReferenceEquals(other, this)) {
  543. return true;
  544. }
  545. if (Name != other.Name) return false;
  546. if (Package != other.Package) return false;
  547. if(!dependency_.Equals(other.dependency_)) return false;
  548. if(!publicDependency_.Equals(other.publicDependency_)) return false;
  549. if(!weakDependency_.Equals(other.weakDependency_)) return false;
  550. if(!messageType_.Equals(other.messageType_)) return false;
  551. if(!enumType_.Equals(other.enumType_)) return false;
  552. if(!service_.Equals(other.service_)) return false;
  553. if(!extension_.Equals(other.extension_)) return false;
  554. if (!object.Equals(Options, other.Options)) return false;
  555. if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
  556. if (Syntax != other.Syntax) return false;
  557. return Equals(_unknownFields, other._unknownFields);
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  560. public override int GetHashCode() {
  561. int hash = 1;
  562. if (HasName) hash ^= Name.GetHashCode();
  563. if (HasPackage) hash ^= Package.GetHashCode();
  564. hash ^= dependency_.GetHashCode();
  565. hash ^= publicDependency_.GetHashCode();
  566. hash ^= weakDependency_.GetHashCode();
  567. hash ^= messageType_.GetHashCode();
  568. hash ^= enumType_.GetHashCode();
  569. hash ^= service_.GetHashCode();
  570. hash ^= extension_.GetHashCode();
  571. if (HasOptions) hash ^= Options.GetHashCode();
  572. if (HasSourceCodeInfo) hash ^= SourceCodeInfo.GetHashCode();
  573. if (HasSyntax) hash ^= Syntax.GetHashCode();
  574. if (_unknownFields != null) {
  575. hash ^= _unknownFields.GetHashCode();
  576. }
  577. return hash;
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  580. public override string ToString() {
  581. return pb::JsonFormatter.ToDiagnosticString(this);
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. public void WriteTo(pb::CodedOutputStream output) {
  585. if (HasName) {
  586. output.WriteRawTag(10);
  587. output.WriteString(Name);
  588. }
  589. if (HasPackage) {
  590. output.WriteRawTag(18);
  591. output.WriteString(Package);
  592. }
  593. dependency_.WriteTo(output, _repeated_dependency_codec);
  594. messageType_.WriteTo(output, _repeated_messageType_codec);
  595. enumType_.WriteTo(output, _repeated_enumType_codec);
  596. service_.WriteTo(output, _repeated_service_codec);
  597. extension_.WriteTo(output, _repeated_extension_codec);
  598. if (HasOptions) {
  599. output.WriteRawTag(66);
  600. output.WriteMessage(Options);
  601. }
  602. if (HasSourceCodeInfo) {
  603. output.WriteRawTag(74);
  604. output.WriteMessage(SourceCodeInfo);
  605. }
  606. publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
  607. weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
  608. if (HasSyntax) {
  609. output.WriteRawTag(98);
  610. output.WriteString(Syntax);
  611. }
  612. if (_unknownFields != null) {
  613. _unknownFields.WriteTo(output);
  614. }
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public int CalculateSize() {
  618. int size = 0;
  619. if (HasName) {
  620. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  621. }
  622. if (HasPackage) {
  623. size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
  624. }
  625. size += dependency_.CalculateSize(_repeated_dependency_codec);
  626. size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
  627. size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
  628. size += messageType_.CalculateSize(_repeated_messageType_codec);
  629. size += enumType_.CalculateSize(_repeated_enumType_codec);
  630. size += service_.CalculateSize(_repeated_service_codec);
  631. size += extension_.CalculateSize(_repeated_extension_codec);
  632. if (HasOptions) {
  633. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  634. }
  635. if (HasSourceCodeInfo) {
  636. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
  637. }
  638. if (HasSyntax) {
  639. size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
  640. }
  641. if (_unknownFields != null) {
  642. size += _unknownFields.CalculateSize();
  643. }
  644. return size;
  645. }
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  647. public void MergeFrom(FileDescriptorProto other) {
  648. if (other == null) {
  649. return;
  650. }
  651. if (other.HasName) {
  652. Name = other.Name;
  653. }
  654. if (other.HasPackage) {
  655. Package = other.Package;
  656. }
  657. dependency_.Add(other.dependency_);
  658. publicDependency_.Add(other.publicDependency_);
  659. weakDependency_.Add(other.weakDependency_);
  660. messageType_.Add(other.messageType_);
  661. enumType_.Add(other.enumType_);
  662. service_.Add(other.service_);
  663. extension_.Add(other.extension_);
  664. if (other.HasOptions) {
  665. if (!HasOptions) {
  666. Options = new global::Google.Protobuf.Reflection.FileOptions();
  667. }
  668. Options.MergeFrom(other.Options);
  669. }
  670. if (other.HasSourceCodeInfo) {
  671. if (!HasSourceCodeInfo) {
  672. SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  673. }
  674. SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
  675. }
  676. if (other.HasSyntax) {
  677. Syntax = other.Syntax;
  678. }
  679. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  682. public void MergeFrom(pb::CodedInputStream input) {
  683. uint tag;
  684. while ((tag = input.ReadTag()) != 0) {
  685. switch(tag) {
  686. default:
  687. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  688. return;
  689. }
  690. break;
  691. case 10: {
  692. Name = input.ReadString();
  693. break;
  694. }
  695. case 18: {
  696. Package = input.ReadString();
  697. break;
  698. }
  699. case 26: {
  700. dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
  701. break;
  702. }
  703. case 34: {
  704. messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
  705. break;
  706. }
  707. case 42: {
  708. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  709. break;
  710. }
  711. case 50: {
  712. service_.AddEntriesFrom(input, _repeated_service_codec);
  713. break;
  714. }
  715. case 58: {
  716. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  717. break;
  718. }
  719. case 66: {
  720. if (!HasOptions) {
  721. Options = new global::Google.Protobuf.Reflection.FileOptions();
  722. }
  723. input.ReadMessage(Options);
  724. break;
  725. }
  726. case 74: {
  727. if (!HasSourceCodeInfo) {
  728. SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  729. }
  730. input.ReadMessage(SourceCodeInfo);
  731. break;
  732. }
  733. case 82:
  734. case 80: {
  735. publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
  736. break;
  737. }
  738. case 90:
  739. case 88: {
  740. weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
  741. break;
  742. }
  743. case 98: {
  744. Syntax = input.ReadString();
  745. break;
  746. }
  747. }
  748. }
  749. }
  750. }
  751. /// <summary>
  752. /// Describes a message type.
  753. /// </summary>
  754. internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
  755. private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
  756. private pb::UnknownFieldSet _unknownFields;
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  758. public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  760. public static pbr::MessageDescriptor Descriptor {
  761. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  764. pbr::MessageDescriptor pb::IMessage.Descriptor {
  765. get { return Descriptor; }
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  768. public DescriptorProto() {
  769. OnConstruction();
  770. }
  771. partial void OnConstruction();
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  773. public DescriptorProto(DescriptorProto other) : this() {
  774. name_ = other.name_;
  775. field_ = other.field_.Clone();
  776. extension_ = other.extension_.Clone();
  777. nestedType_ = other.nestedType_.Clone();
  778. enumType_ = other.enumType_.Clone();
  779. extensionRange_ = other.extensionRange_.Clone();
  780. oneofDecl_ = other.oneofDecl_.Clone();
  781. options_ = other.HasOptions ? other.options_.Clone() : null;
  782. reservedRange_ = other.reservedRange_.Clone();
  783. reservedName_ = other.reservedName_.Clone();
  784. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. public DescriptorProto Clone() {
  788. return new DescriptorProto(this);
  789. }
  790. /// <summary>Field number for the "name" field.</summary>
  791. public const int NameFieldNumber = 1;
  792. private readonly static string NameDefaultValue = "";
  793. private string name_;
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  795. public string Name {
  796. get { return name_ ?? NameDefaultValue; }
  797. set {
  798. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  799. }
  800. }
  801. /// <summary>Gets whether the "name" field is set</summary>
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  803. public bool HasName {
  804. get { return name_ != null; }
  805. }
  806. /// <summary>Clears the value of the "name" field</summary>
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  808. public void ClearName() {
  809. name_ = null;
  810. }
  811. /// <summary>Field number for the "field" field.</summary>
  812. public const int FieldFieldNumber = 2;
  813. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
  814. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  815. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  817. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
  818. get { return field_; }
  819. }
  820. /// <summary>Field number for the "extension" field.</summary>
  821. public const int ExtensionFieldNumber = 6;
  822. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  823. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  824. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  826. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  827. get { return extension_; }
  828. }
  829. /// <summary>Field number for the "nested_type" field.</summary>
  830. public const int NestedTypeFieldNumber = 3;
  831. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
  832. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  833. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  835. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
  836. get { return nestedType_; }
  837. }
  838. /// <summary>Field number for the "enum_type" field.</summary>
  839. public const int EnumTypeFieldNumber = 4;
  840. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  841. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  842. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  844. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  845. get { return enumType_; }
  846. }
  847. /// <summary>Field number for the "extension_range" field.</summary>
  848. public const int ExtensionRangeFieldNumber = 5;
  849. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
  850. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
  851. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  853. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
  854. get { return extensionRange_; }
  855. }
  856. /// <summary>Field number for the "oneof_decl" field.</summary>
  857. public const int OneofDeclFieldNumber = 8;
  858. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
  859. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
  860. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  862. public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
  863. get { return oneofDecl_; }
  864. }
  865. /// <summary>Field number for the "options" field.</summary>
  866. public const int OptionsFieldNumber = 7;
  867. private global::Google.Protobuf.Reflection.MessageOptions options_;
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  869. public global::Google.Protobuf.Reflection.MessageOptions Options {
  870. get { return options_; }
  871. set {
  872. options_ = value;
  873. }
  874. }
  875. /// <summary>Gets whether the options field is set</summary>
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  877. public bool HasOptions {
  878. get { return options_ != null; }
  879. }
  880. /// <summary>Clears the value of the options field</summary>
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  882. public void ClearOptions() {
  883. options_ = null;
  884. }
  885. /// <summary>Field number for the "reserved_range" field.</summary>
  886. public const int ReservedRangeFieldNumber = 9;
  887. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
  888. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
  889. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  891. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
  892. get { return reservedRange_; }
  893. }
  894. /// <summary>Field number for the "reserved_name" field.</summary>
  895. public const int ReservedNameFieldNumber = 10;
  896. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  897. = pb::FieldCodec.ForString(82);
  898. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  899. /// <summary>
  900. /// Reserved field names, which may not be used by fields in the same message.
  901. /// A given name may only be reserved once.
  902. /// </summary>
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  904. public pbc::RepeatedField<string> ReservedName {
  905. get { return reservedName_; }
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. public override bool Equals(object other) {
  909. return Equals(other as DescriptorProto);
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  912. public bool Equals(DescriptorProto other) {
  913. if (ReferenceEquals(other, null)) {
  914. return false;
  915. }
  916. if (ReferenceEquals(other, this)) {
  917. return true;
  918. }
  919. if (Name != other.Name) return false;
  920. if(!field_.Equals(other.field_)) return false;
  921. if(!extension_.Equals(other.extension_)) return false;
  922. if(!nestedType_.Equals(other.nestedType_)) return false;
  923. if(!enumType_.Equals(other.enumType_)) return false;
  924. if(!extensionRange_.Equals(other.extensionRange_)) return false;
  925. if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
  926. if (!object.Equals(Options, other.Options)) return false;
  927. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  928. if(!reservedName_.Equals(other.reservedName_)) return false;
  929. return Equals(_unknownFields, other._unknownFields);
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  932. public override int GetHashCode() {
  933. int hash = 1;
  934. if (HasName) hash ^= Name.GetHashCode();
  935. hash ^= field_.GetHashCode();
  936. hash ^= extension_.GetHashCode();
  937. hash ^= nestedType_.GetHashCode();
  938. hash ^= enumType_.GetHashCode();
  939. hash ^= extensionRange_.GetHashCode();
  940. hash ^= oneofDecl_.GetHashCode();
  941. if (HasOptions) hash ^= Options.GetHashCode();
  942. hash ^= reservedRange_.GetHashCode();
  943. hash ^= reservedName_.GetHashCode();
  944. if (_unknownFields != null) {
  945. hash ^= _unknownFields.GetHashCode();
  946. }
  947. return hash;
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  950. public override string ToString() {
  951. return pb::JsonFormatter.ToDiagnosticString(this);
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. public void WriteTo(pb::CodedOutputStream output) {
  955. if (HasName) {
  956. output.WriteRawTag(10);
  957. output.WriteString(Name);
  958. }
  959. field_.WriteTo(output, _repeated_field_codec);
  960. nestedType_.WriteTo(output, _repeated_nestedType_codec);
  961. enumType_.WriteTo(output, _repeated_enumType_codec);
  962. extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
  963. extension_.WriteTo(output, _repeated_extension_codec);
  964. if (HasOptions) {
  965. output.WriteRawTag(58);
  966. output.WriteMessage(Options);
  967. }
  968. oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
  969. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  970. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  971. if (_unknownFields != null) {
  972. _unknownFields.WriteTo(output);
  973. }
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  976. public int CalculateSize() {
  977. int size = 0;
  978. if (HasName) {
  979. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  980. }
  981. size += field_.CalculateSize(_repeated_field_codec);
  982. size += extension_.CalculateSize(_repeated_extension_codec);
  983. size += nestedType_.CalculateSize(_repeated_nestedType_codec);
  984. size += enumType_.CalculateSize(_repeated_enumType_codec);
  985. size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
  986. size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
  987. if (HasOptions) {
  988. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  989. }
  990. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  991. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  992. if (_unknownFields != null) {
  993. size += _unknownFields.CalculateSize();
  994. }
  995. return size;
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  998. public void MergeFrom(DescriptorProto other) {
  999. if (other == null) {
  1000. return;
  1001. }
  1002. if (other.HasName) {
  1003. Name = other.Name;
  1004. }
  1005. field_.Add(other.field_);
  1006. extension_.Add(other.extension_);
  1007. nestedType_.Add(other.nestedType_);
  1008. enumType_.Add(other.enumType_);
  1009. extensionRange_.Add(other.extensionRange_);
  1010. oneofDecl_.Add(other.oneofDecl_);
  1011. if (other.HasOptions) {
  1012. if (!HasOptions) {
  1013. Options = new global::Google.Protobuf.Reflection.MessageOptions();
  1014. }
  1015. Options.MergeFrom(other.Options);
  1016. }
  1017. reservedRange_.Add(other.reservedRange_);
  1018. reservedName_.Add(other.reservedName_);
  1019. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1022. public void MergeFrom(pb::CodedInputStream input) {
  1023. uint tag;
  1024. while ((tag = input.ReadTag()) != 0) {
  1025. switch(tag) {
  1026. default:
  1027. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  1028. return;
  1029. }
  1030. break;
  1031. case 10: {
  1032. Name = input.ReadString();
  1033. break;
  1034. }
  1035. case 18: {
  1036. field_.AddEntriesFrom(input, _repeated_field_codec);
  1037. break;
  1038. }
  1039. case 26: {
  1040. nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
  1041. break;
  1042. }
  1043. case 34: {
  1044. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  1045. break;
  1046. }
  1047. case 42: {
  1048. extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
  1049. break;
  1050. }
  1051. case 50: {
  1052. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  1053. break;
  1054. }
  1055. case 58: {
  1056. if (!HasOptions) {
  1057. Options = new global::Google.Protobuf.Reflection.MessageOptions();
  1058. }
  1059. input.ReadMessage(Options);
  1060. break;
  1061. }
  1062. case 66: {
  1063. oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
  1064. break;
  1065. }
  1066. case 74: {
  1067. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  1068. break;
  1069. }
  1070. case 82: {
  1071. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  1072. break;
  1073. }
  1074. }
  1075. }
  1076. }
  1077. #region Nested types
  1078. /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
  1079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1080. public static partial class Types {
  1081. internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
  1082. private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
  1083. private pb::UnknownFieldSet _unknownFields;
  1084. private int _hasBits0;
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1086. public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1088. public static pbr::MessageDescriptor Descriptor {
  1089. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1092. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1093. get { return Descriptor; }
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1096. public ExtensionRange() {
  1097. OnConstruction();
  1098. }
  1099. partial void OnConstruction();
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1101. public ExtensionRange(ExtensionRange other) : this() {
  1102. _hasBits0 = other._hasBits0;
  1103. start_ = other.start_;
  1104. end_ = other.end_;
  1105. options_ = other.HasOptions ? other.options_.Clone() : null;
  1106. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1109. public ExtensionRange Clone() {
  1110. return new ExtensionRange(this);
  1111. }
  1112. /// <summary>Field number for the "start" field.</summary>
  1113. public const int StartFieldNumber = 1;
  1114. private readonly static int StartDefaultValue = 0;
  1115. private int start_;
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1117. public int Start {
  1118. get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
  1119. set {
  1120. _hasBits0 |= 1;
  1121. start_ = value;
  1122. }
  1123. }
  1124. /// <summary>Gets whether the "start" field is set</summary>
  1125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1126. public bool HasStart {
  1127. get { return (_hasBits0 & 1) != 0; }
  1128. }
  1129. /// <summary>Clears the value of the "start" field</summary>
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1131. public void ClearStart() {
  1132. _hasBits0 &= ~1;
  1133. }
  1134. /// <summary>Field number for the "end" field.</summary>
  1135. public const int EndFieldNumber = 2;
  1136. private readonly static int EndDefaultValue = 0;
  1137. private int end_;
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1139. public int End {
  1140. get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
  1141. set {
  1142. _hasBits0 |= 2;
  1143. end_ = value;
  1144. }
  1145. }
  1146. /// <summary>Gets whether the "end" field is set</summary>
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1148. public bool HasEnd {
  1149. get { return (_hasBits0 & 2) != 0; }
  1150. }
  1151. /// <summary>Clears the value of the "end" field</summary>
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1153. public void ClearEnd() {
  1154. _hasBits0 &= ~2;
  1155. }
  1156. /// <summary>Field number for the "options" field.</summary>
  1157. public const int OptionsFieldNumber = 3;
  1158. private global::Google.Protobuf.Reflection.ExtensionRangeOptions options_;
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1160. public global::Google.Protobuf.Reflection.ExtensionRangeOptions Options {
  1161. get { return options_; }
  1162. set {
  1163. options_ = value;
  1164. }
  1165. }
  1166. /// <summary>Gets whether the options field is set</summary>
  1167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1168. public bool HasOptions {
  1169. get { return options_ != null; }
  1170. }
  1171. /// <summary>Clears the value of the options field</summary>
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1173. public void ClearOptions() {
  1174. options_ = null;
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1177. public override bool Equals(object other) {
  1178. return Equals(other as ExtensionRange);
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1181. public bool Equals(ExtensionRange other) {
  1182. if (ReferenceEquals(other, null)) {
  1183. return false;
  1184. }
  1185. if (ReferenceEquals(other, this)) {
  1186. return true;
  1187. }
  1188. if (Start != other.Start) return false;
  1189. if (End != other.End) return false;
  1190. if (!object.Equals(Options, other.Options)) return false;
  1191. return Equals(_unknownFields, other._unknownFields);
  1192. }
  1193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1194. public override int GetHashCode() {
  1195. int hash = 1;
  1196. if (HasStart) hash ^= Start.GetHashCode();
  1197. if (HasEnd) hash ^= End.GetHashCode();
  1198. if (HasOptions) hash ^= Options.GetHashCode();
  1199. if (_unknownFields != null) {
  1200. hash ^= _unknownFields.GetHashCode();
  1201. }
  1202. return hash;
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1205. public override string ToString() {
  1206. return pb::JsonFormatter.ToDiagnosticString(this);
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1209. public void WriteTo(pb::CodedOutputStream output) {
  1210. if (HasStart) {
  1211. output.WriteRawTag(8);
  1212. output.WriteInt32(Start);
  1213. }
  1214. if (HasEnd) {
  1215. output.WriteRawTag(16);
  1216. output.WriteInt32(End);
  1217. }
  1218. if (HasOptions) {
  1219. output.WriteRawTag(26);
  1220. output.WriteMessage(Options);
  1221. }
  1222. if (_unknownFields != null) {
  1223. _unknownFields.WriteTo(output);
  1224. }
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1227. public int CalculateSize() {
  1228. int size = 0;
  1229. if (HasStart) {
  1230. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1231. }
  1232. if (HasEnd) {
  1233. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1234. }
  1235. if (HasOptions) {
  1236. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1237. }
  1238. if (_unknownFields != null) {
  1239. size += _unknownFields.CalculateSize();
  1240. }
  1241. return size;
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1244. public void MergeFrom(ExtensionRange other) {
  1245. if (other == null) {
  1246. return;
  1247. }
  1248. if (other.HasStart) {
  1249. Start = other.Start;
  1250. }
  1251. if (other.HasEnd) {
  1252. End = other.End;
  1253. }
  1254. if (other.HasOptions) {
  1255. if (!HasOptions) {
  1256. Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
  1257. }
  1258. Options.MergeFrom(other.Options);
  1259. }
  1260. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1263. public void MergeFrom(pb::CodedInputStream input) {
  1264. uint tag;
  1265. while ((tag = input.ReadTag()) != 0) {
  1266. switch(tag) {
  1267. default:
  1268. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  1269. return;
  1270. }
  1271. break;
  1272. case 8: {
  1273. Start = input.ReadInt32();
  1274. break;
  1275. }
  1276. case 16: {
  1277. End = input.ReadInt32();
  1278. break;
  1279. }
  1280. case 26: {
  1281. if (!HasOptions) {
  1282. Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
  1283. }
  1284. input.ReadMessage(Options);
  1285. break;
  1286. }
  1287. }
  1288. }
  1289. }
  1290. }
  1291. /// <summary>
  1292. /// Range of reserved tag numbers. Reserved tag numbers may not be used by
  1293. /// fields or extension ranges in the same message. Reserved ranges may
  1294. /// not overlap.
  1295. /// </summary>
  1296. internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
  1297. private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
  1298. private pb::UnknownFieldSet _unknownFields;
  1299. private int _hasBits0;
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1301. public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
  1302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1303. public static pbr::MessageDescriptor Descriptor {
  1304. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1307. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1308. get { return Descriptor; }
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1311. public ReservedRange() {
  1312. OnConstruction();
  1313. }
  1314. partial void OnConstruction();
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1316. public ReservedRange(ReservedRange other) : this() {
  1317. _hasBits0 = other._hasBits0;
  1318. start_ = other.start_;
  1319. end_ = other.end_;
  1320. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1323. public ReservedRange Clone() {
  1324. return new ReservedRange(this);
  1325. }
  1326. /// <summary>Field number for the "start" field.</summary>
  1327. public const int StartFieldNumber = 1;
  1328. private readonly static int StartDefaultValue = 0;
  1329. private int start_;
  1330. /// <summary>
  1331. /// Inclusive.
  1332. /// </summary>
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1334. public int Start {
  1335. get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
  1336. set {
  1337. _hasBits0 |= 1;
  1338. start_ = value;
  1339. }
  1340. }
  1341. /// <summary>Gets whether the "start" field is set</summary>
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1343. public bool HasStart {
  1344. get { return (_hasBits0 & 1) != 0; }
  1345. }
  1346. /// <summary>Clears the value of the "start" field</summary>
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1348. public void ClearStart() {
  1349. _hasBits0 &= ~1;
  1350. }
  1351. /// <summary>Field number for the "end" field.</summary>
  1352. public const int EndFieldNumber = 2;
  1353. private readonly static int EndDefaultValue = 0;
  1354. private int end_;
  1355. /// <summary>
  1356. /// Exclusive.
  1357. /// </summary>
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1359. public int End {
  1360. get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
  1361. set {
  1362. _hasBits0 |= 2;
  1363. end_ = value;
  1364. }
  1365. }
  1366. /// <summary>Gets whether the "end" field is set</summary>
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1368. public bool HasEnd {
  1369. get { return (_hasBits0 & 2) != 0; }
  1370. }
  1371. /// <summary>Clears the value of the "end" field</summary>
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1373. public void ClearEnd() {
  1374. _hasBits0 &= ~2;
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1377. public override bool Equals(object other) {
  1378. return Equals(other as ReservedRange);
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1381. public bool Equals(ReservedRange other) {
  1382. if (ReferenceEquals(other, null)) {
  1383. return false;
  1384. }
  1385. if (ReferenceEquals(other, this)) {
  1386. return true;
  1387. }
  1388. if (Start != other.Start) return false;
  1389. if (End != other.End) return false;
  1390. return Equals(_unknownFields, other._unknownFields);
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1393. public override int GetHashCode() {
  1394. int hash = 1;
  1395. if (HasStart) hash ^= Start.GetHashCode();
  1396. if (HasEnd) hash ^= End.GetHashCode();
  1397. if (_unknownFields != null) {
  1398. hash ^= _unknownFields.GetHashCode();
  1399. }
  1400. return hash;
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1403. public override string ToString() {
  1404. return pb::JsonFormatter.ToDiagnosticString(this);
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1407. public void WriteTo(pb::CodedOutputStream output) {
  1408. if (HasStart) {
  1409. output.WriteRawTag(8);
  1410. output.WriteInt32(Start);
  1411. }
  1412. if (HasEnd) {
  1413. output.WriteRawTag(16);
  1414. output.WriteInt32(End);
  1415. }
  1416. if (_unknownFields != null) {
  1417. _unknownFields.WriteTo(output);
  1418. }
  1419. }
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1421. public int CalculateSize() {
  1422. int size = 0;
  1423. if (HasStart) {
  1424. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1425. }
  1426. if (HasEnd) {
  1427. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1428. }
  1429. if (_unknownFields != null) {
  1430. size += _unknownFields.CalculateSize();
  1431. }
  1432. return size;
  1433. }
  1434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1435. public void MergeFrom(ReservedRange other) {
  1436. if (other == null) {
  1437. return;
  1438. }
  1439. if (other.HasStart) {
  1440. Start = other.Start;
  1441. }
  1442. if (other.HasEnd) {
  1443. End = other.End;
  1444. }
  1445. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1448. public void MergeFrom(pb::CodedInputStream input) {
  1449. uint tag;
  1450. while ((tag = input.ReadTag()) != 0) {
  1451. switch(tag) {
  1452. default:
  1453. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  1454. return;
  1455. }
  1456. break;
  1457. case 8: {
  1458. Start = input.ReadInt32();
  1459. break;
  1460. }
  1461. case 16: {
  1462. End = input.ReadInt32();
  1463. break;
  1464. }
  1465. }
  1466. }
  1467. }
  1468. }
  1469. }
  1470. #endregion
  1471. }
  1472. internal sealed partial class ExtensionRangeOptions : pb::IMessage<ExtensionRangeOptions> {
  1473. private static readonly pb::MessageParser<ExtensionRangeOptions> _parser = new pb::MessageParser<ExtensionRangeOptions>(() => new ExtensionRangeOptions());
  1474. private pb::UnknownFieldSet _unknownFields;
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1476. public static pb::MessageParser<ExtensionRangeOptions> Parser { get { return _parser; } }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1478. public static pbr::MessageDescriptor Descriptor {
  1479. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1482. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1483. get { return Descriptor; }
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1486. public ExtensionRangeOptions() {
  1487. OnConstruction();
  1488. }
  1489. partial void OnConstruction();
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1491. public ExtensionRangeOptions(ExtensionRangeOptions other) : this() {
  1492. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  1493. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1496. public ExtensionRangeOptions Clone() {
  1497. return new ExtensionRangeOptions(this);
  1498. }
  1499. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  1500. public const int UninterpretedOptionFieldNumber = 999;
  1501. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  1502. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  1503. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  1504. /// <summary>
  1505. /// The parser stores options it doesn't recognize here. See above.
  1506. /// </summary>
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1508. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  1509. get { return uninterpretedOption_; }
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1512. public override bool Equals(object other) {
  1513. return Equals(other as ExtensionRangeOptions);
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1516. public bool Equals(ExtensionRangeOptions other) {
  1517. if (ReferenceEquals(other, null)) {
  1518. return false;
  1519. }
  1520. if (ReferenceEquals(other, this)) {
  1521. return true;
  1522. }
  1523. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  1524. return Equals(_unknownFields, other._unknownFields);
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1527. public override int GetHashCode() {
  1528. int hash = 1;
  1529. hash ^= uninterpretedOption_.GetHashCode();
  1530. if (_unknownFields != null) {
  1531. hash ^= _unknownFields.GetHashCode();
  1532. }
  1533. return hash;
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1536. public override string ToString() {
  1537. return pb::JsonFormatter.ToDiagnosticString(this);
  1538. }
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1540. public void WriteTo(pb::CodedOutputStream output) {
  1541. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  1542. if (_unknownFields != null) {
  1543. _unknownFields.WriteTo(output);
  1544. }
  1545. }
  1546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1547. public int CalculateSize() {
  1548. int size = 0;
  1549. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  1550. if (_unknownFields != null) {
  1551. size += _unknownFields.CalculateSize();
  1552. }
  1553. return size;
  1554. }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1556. public void MergeFrom(ExtensionRangeOptions other) {
  1557. if (other == null) {
  1558. return;
  1559. }
  1560. uninterpretedOption_.Add(other.uninterpretedOption_);
  1561. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1564. public void MergeFrom(pb::CodedInputStream input) {
  1565. uint tag;
  1566. while ((tag = input.ReadTag()) != 0) {
  1567. switch(tag) {
  1568. default:
  1569. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  1570. return;
  1571. }
  1572. break;
  1573. case 7994: {
  1574. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  1575. break;
  1576. }
  1577. }
  1578. }
  1579. }
  1580. }
  1581. /// <summary>
  1582. /// Describes a field within a message.
  1583. /// </summary>
  1584. internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
  1585. private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
  1586. private pb::UnknownFieldSet _unknownFields;
  1587. private int _hasBits0;
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1589. public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1591. public static pbr::MessageDescriptor Descriptor {
  1592. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1595. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1596. get { return Descriptor; }
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1599. public FieldDescriptorProto() {
  1600. OnConstruction();
  1601. }
  1602. partial void OnConstruction();
  1603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1604. public FieldDescriptorProto(FieldDescriptorProto other) : this() {
  1605. _hasBits0 = other._hasBits0;
  1606. name_ = other.name_;
  1607. number_ = other.number_;
  1608. label_ = other.label_;
  1609. type_ = other.type_;
  1610. typeName_ = other.typeName_;
  1611. extendee_ = other.extendee_;
  1612. defaultValue_ = other.defaultValue_;
  1613. oneofIndex_ = other.oneofIndex_;
  1614. jsonName_ = other.jsonName_;
  1615. options_ = other.HasOptions ? other.options_.Clone() : null;
  1616. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1619. public FieldDescriptorProto Clone() {
  1620. return new FieldDescriptorProto(this);
  1621. }
  1622. /// <summary>Field number for the "name" field.</summary>
  1623. public const int NameFieldNumber = 1;
  1624. private readonly static string NameDefaultValue = "";
  1625. private string name_;
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1627. public string Name {
  1628. get { return name_ ?? NameDefaultValue; }
  1629. set {
  1630. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1631. }
  1632. }
  1633. /// <summary>Gets whether the "name" field is set</summary>
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1635. public bool HasName {
  1636. get { return name_ != null; }
  1637. }
  1638. /// <summary>Clears the value of the "name" field</summary>
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1640. public void ClearName() {
  1641. name_ = null;
  1642. }
  1643. /// <summary>Field number for the "number" field.</summary>
  1644. public const int NumberFieldNumber = 3;
  1645. private readonly static int NumberDefaultValue = 0;
  1646. private int number_;
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1648. public int Number {
  1649. get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
  1650. set {
  1651. _hasBits0 |= 1;
  1652. number_ = value;
  1653. }
  1654. }
  1655. /// <summary>Gets whether the "number" field is set</summary>
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1657. public bool HasNumber {
  1658. get { return (_hasBits0 & 1) != 0; }
  1659. }
  1660. /// <summary>Clears the value of the "number" field</summary>
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1662. public void ClearNumber() {
  1663. _hasBits0 &= ~1;
  1664. }
  1665. /// <summary>Field number for the "label" field.</summary>
  1666. public const int LabelFieldNumber = 4;
  1667. private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label LabelDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.Optional;
  1668. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_;
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1670. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
  1671. get { if ((_hasBits0 & 2) != 0) { return label_; } else { return LabelDefaultValue; } }
  1672. set {
  1673. _hasBits0 |= 2;
  1674. label_ = value;
  1675. }
  1676. }
  1677. /// <summary>Gets whether the "label" field is set</summary>
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1679. public bool HasLabel {
  1680. get { return (_hasBits0 & 2) != 0; }
  1681. }
  1682. /// <summary>Clears the value of the "label" field</summary>
  1683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1684. public void ClearLabel() {
  1685. _hasBits0 &= ~2;
  1686. }
  1687. /// <summary>Field number for the "type" field.</summary>
  1688. public const int TypeFieldNumber = 5;
  1689. private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type TypeDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.Double;
  1690. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_;
  1691. /// <summary>
  1692. /// If type_name is set, this need not be set. If both this and type_name
  1693. /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
  1694. /// </summary>
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1696. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
  1697. get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } }
  1698. set {
  1699. _hasBits0 |= 4;
  1700. type_ = value;
  1701. }
  1702. }
  1703. /// <summary>Gets whether the "type" field is set</summary>
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1705. public bool HasType {
  1706. get { return (_hasBits0 & 4) != 0; }
  1707. }
  1708. /// <summary>Clears the value of the "type" field</summary>
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1710. public void ClearType() {
  1711. _hasBits0 &= ~4;
  1712. }
  1713. /// <summary>Field number for the "type_name" field.</summary>
  1714. public const int TypeNameFieldNumber = 6;
  1715. private readonly static string TypeNameDefaultValue = "";
  1716. private string typeName_;
  1717. /// <summary>
  1718. /// For message and enum types, this is the name of the type. If the name
  1719. /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
  1720. /// rules are used to find the type (i.e. first the nested types within this
  1721. /// message are searched, then within the parent, on up to the root
  1722. /// namespace).
  1723. /// </summary>
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1725. public string TypeName {
  1726. get { return typeName_ ?? TypeNameDefaultValue; }
  1727. set {
  1728. typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1729. }
  1730. }
  1731. /// <summary>Gets whether the "type_name" field is set</summary>
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1733. public bool HasTypeName {
  1734. get { return typeName_ != null; }
  1735. }
  1736. /// <summary>Clears the value of the "type_name" field</summary>
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1738. public void ClearTypeName() {
  1739. typeName_ = null;
  1740. }
  1741. /// <summary>Field number for the "extendee" field.</summary>
  1742. public const int ExtendeeFieldNumber = 2;
  1743. private readonly static string ExtendeeDefaultValue = "";
  1744. private string extendee_;
  1745. /// <summary>
  1746. /// For extensions, this is the name of the type being extended. It is
  1747. /// resolved in the same manner as type_name.
  1748. /// </summary>
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1750. public string Extendee {
  1751. get { return extendee_ ?? ExtendeeDefaultValue; }
  1752. set {
  1753. extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1754. }
  1755. }
  1756. /// <summary>Gets whether the "extendee" field is set</summary>
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1758. public bool HasExtendee {
  1759. get { return extendee_ != null; }
  1760. }
  1761. /// <summary>Clears the value of the "extendee" field</summary>
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1763. public void ClearExtendee() {
  1764. extendee_ = null;
  1765. }
  1766. /// <summary>Field number for the "default_value" field.</summary>
  1767. public const int DefaultValueFieldNumber = 7;
  1768. private readonly static string DefaultValueDefaultValue = "";
  1769. private string defaultValue_;
  1770. /// <summary>
  1771. /// For numeric types, contains the original text representation of the value.
  1772. /// For booleans, "true" or "false".
  1773. /// For strings, contains the default text contents (not escaped in any way).
  1774. /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
  1775. /// TODO(kenton): Base-64 encode?
  1776. /// </summary>
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1778. public string DefaultValue {
  1779. get { return defaultValue_ ?? DefaultValueDefaultValue; }
  1780. set {
  1781. defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1782. }
  1783. }
  1784. /// <summary>Gets whether the "default_value" field is set</summary>
  1785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1786. public bool HasDefaultValue {
  1787. get { return defaultValue_ != null; }
  1788. }
  1789. /// <summary>Clears the value of the "default_value" field</summary>
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1791. public void ClearDefaultValue() {
  1792. defaultValue_ = null;
  1793. }
  1794. /// <summary>Field number for the "oneof_index" field.</summary>
  1795. public const int OneofIndexFieldNumber = 9;
  1796. private readonly static int OneofIndexDefaultValue = 0;
  1797. private int oneofIndex_;
  1798. /// <summary>
  1799. /// If set, gives the index of a oneof in the containing type's oneof_decl
  1800. /// list. This field is a member of that oneof.
  1801. /// </summary>
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1803. public int OneofIndex {
  1804. get { if ((_hasBits0 & 8) != 0) { return oneofIndex_; } else { return OneofIndexDefaultValue; } }
  1805. set {
  1806. _hasBits0 |= 8;
  1807. oneofIndex_ = value;
  1808. }
  1809. }
  1810. /// <summary>Gets whether the "oneof_index" field is set</summary>
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1812. public bool HasOneofIndex {
  1813. get { return (_hasBits0 & 8) != 0; }
  1814. }
  1815. /// <summary>Clears the value of the "oneof_index" field</summary>
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1817. public void ClearOneofIndex() {
  1818. _hasBits0 &= ~8;
  1819. }
  1820. /// <summary>Field number for the "json_name" field.</summary>
  1821. public const int JsonNameFieldNumber = 10;
  1822. private readonly static string JsonNameDefaultValue = "";
  1823. private string jsonName_;
  1824. /// <summary>
  1825. /// JSON name of this field. The value is set by protocol compiler. If the
  1826. /// user has set a "json_name" option on this field, that option's value
  1827. /// will be used. Otherwise, it's deduced from the field's name by converting
  1828. /// it to camelCase.
  1829. /// </summary>
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1831. public string JsonName {
  1832. get { return jsonName_ ?? JsonNameDefaultValue; }
  1833. set {
  1834. jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1835. }
  1836. }
  1837. /// <summary>Gets whether the "json_name" field is set</summary>
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1839. public bool HasJsonName {
  1840. get { return jsonName_ != null; }
  1841. }
  1842. /// <summary>Clears the value of the "json_name" field</summary>
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1844. public void ClearJsonName() {
  1845. jsonName_ = null;
  1846. }
  1847. /// <summary>Field number for the "options" field.</summary>
  1848. public const int OptionsFieldNumber = 8;
  1849. private global::Google.Protobuf.Reflection.FieldOptions options_;
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1851. public global::Google.Protobuf.Reflection.FieldOptions Options {
  1852. get { return options_; }
  1853. set {
  1854. options_ = value;
  1855. }
  1856. }
  1857. /// <summary>Gets whether the options field is set</summary>
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1859. public bool HasOptions {
  1860. get { return options_ != null; }
  1861. }
  1862. /// <summary>Clears the value of the options field</summary>
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1864. public void ClearOptions() {
  1865. options_ = null;
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1868. public override bool Equals(object other) {
  1869. return Equals(other as FieldDescriptorProto);
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1872. public bool Equals(FieldDescriptorProto other) {
  1873. if (ReferenceEquals(other, null)) {
  1874. return false;
  1875. }
  1876. if (ReferenceEquals(other, this)) {
  1877. return true;
  1878. }
  1879. if (Name != other.Name) return false;
  1880. if (Number != other.Number) return false;
  1881. if (Label != other.Label) return false;
  1882. if (Type != other.Type) return false;
  1883. if (TypeName != other.TypeName) return false;
  1884. if (Extendee != other.Extendee) return false;
  1885. if (DefaultValue != other.DefaultValue) return false;
  1886. if (OneofIndex != other.OneofIndex) return false;
  1887. if (JsonName != other.JsonName) return false;
  1888. if (!object.Equals(Options, other.Options)) return false;
  1889. return Equals(_unknownFields, other._unknownFields);
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1892. public override int GetHashCode() {
  1893. int hash = 1;
  1894. if (HasName) hash ^= Name.GetHashCode();
  1895. if (HasNumber) hash ^= Number.GetHashCode();
  1896. if (HasLabel) hash ^= Label.GetHashCode();
  1897. if (HasType) hash ^= Type.GetHashCode();
  1898. if (HasTypeName) hash ^= TypeName.GetHashCode();
  1899. if (HasExtendee) hash ^= Extendee.GetHashCode();
  1900. if (HasDefaultValue) hash ^= DefaultValue.GetHashCode();
  1901. if (HasOneofIndex) hash ^= OneofIndex.GetHashCode();
  1902. if (HasJsonName) hash ^= JsonName.GetHashCode();
  1903. if (HasOptions) hash ^= Options.GetHashCode();
  1904. if (_unknownFields != null) {
  1905. hash ^= _unknownFields.GetHashCode();
  1906. }
  1907. return hash;
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1910. public override string ToString() {
  1911. return pb::JsonFormatter.ToDiagnosticString(this);
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1914. public void WriteTo(pb::CodedOutputStream output) {
  1915. if (HasName) {
  1916. output.WriteRawTag(10);
  1917. output.WriteString(Name);
  1918. }
  1919. if (HasExtendee) {
  1920. output.WriteRawTag(18);
  1921. output.WriteString(Extendee);
  1922. }
  1923. if (HasNumber) {
  1924. output.WriteRawTag(24);
  1925. output.WriteInt32(Number);
  1926. }
  1927. if (HasLabel) {
  1928. output.WriteRawTag(32);
  1929. output.WriteEnum((int) Label);
  1930. }
  1931. if (HasType) {
  1932. output.WriteRawTag(40);
  1933. output.WriteEnum((int) Type);
  1934. }
  1935. if (HasTypeName) {
  1936. output.WriteRawTag(50);
  1937. output.WriteString(TypeName);
  1938. }
  1939. if (HasDefaultValue) {
  1940. output.WriteRawTag(58);
  1941. output.WriteString(DefaultValue);
  1942. }
  1943. if (HasOptions) {
  1944. output.WriteRawTag(66);
  1945. output.WriteMessage(Options);
  1946. }
  1947. if (HasOneofIndex) {
  1948. output.WriteRawTag(72);
  1949. output.WriteInt32(OneofIndex);
  1950. }
  1951. if (HasJsonName) {
  1952. output.WriteRawTag(82);
  1953. output.WriteString(JsonName);
  1954. }
  1955. if (_unknownFields != null) {
  1956. _unknownFields.WriteTo(output);
  1957. }
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1960. public int CalculateSize() {
  1961. int size = 0;
  1962. if (HasName) {
  1963. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1964. }
  1965. if (HasNumber) {
  1966. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1967. }
  1968. if (HasLabel) {
  1969. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
  1970. }
  1971. if (HasType) {
  1972. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  1973. }
  1974. if (HasTypeName) {
  1975. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
  1976. }
  1977. if (HasExtendee) {
  1978. size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
  1979. }
  1980. if (HasDefaultValue) {
  1981. size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
  1982. }
  1983. if (HasOneofIndex) {
  1984. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
  1985. }
  1986. if (HasJsonName) {
  1987. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
  1988. }
  1989. if (HasOptions) {
  1990. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1991. }
  1992. if (_unknownFields != null) {
  1993. size += _unknownFields.CalculateSize();
  1994. }
  1995. return size;
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1998. public void MergeFrom(FieldDescriptorProto other) {
  1999. if (other == null) {
  2000. return;
  2001. }
  2002. if (other.HasName) {
  2003. Name = other.Name;
  2004. }
  2005. if (other.HasNumber) {
  2006. Number = other.Number;
  2007. }
  2008. if (other.HasLabel) {
  2009. Label = other.Label;
  2010. }
  2011. if (other.HasType) {
  2012. Type = other.Type;
  2013. }
  2014. if (other.HasTypeName) {
  2015. TypeName = other.TypeName;
  2016. }
  2017. if (other.HasExtendee) {
  2018. Extendee = other.Extendee;
  2019. }
  2020. if (other.HasDefaultValue) {
  2021. DefaultValue = other.DefaultValue;
  2022. }
  2023. if (other.HasOneofIndex) {
  2024. OneofIndex = other.OneofIndex;
  2025. }
  2026. if (other.HasJsonName) {
  2027. JsonName = other.JsonName;
  2028. }
  2029. if (other.HasOptions) {
  2030. if (!HasOptions) {
  2031. Options = new global::Google.Protobuf.Reflection.FieldOptions();
  2032. }
  2033. Options.MergeFrom(other.Options);
  2034. }
  2035. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2038. public void MergeFrom(pb::CodedInputStream input) {
  2039. uint tag;
  2040. while ((tag = input.ReadTag()) != 0) {
  2041. switch(tag) {
  2042. default:
  2043. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2044. return;
  2045. }
  2046. break;
  2047. case 10: {
  2048. Name = input.ReadString();
  2049. break;
  2050. }
  2051. case 18: {
  2052. Extendee = input.ReadString();
  2053. break;
  2054. }
  2055. case 24: {
  2056. Number = input.ReadInt32();
  2057. break;
  2058. }
  2059. case 32: {
  2060. Label = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
  2061. break;
  2062. }
  2063. case 40: {
  2064. Type = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
  2065. break;
  2066. }
  2067. case 50: {
  2068. TypeName = input.ReadString();
  2069. break;
  2070. }
  2071. case 58: {
  2072. DefaultValue = input.ReadString();
  2073. break;
  2074. }
  2075. case 66: {
  2076. if (!HasOptions) {
  2077. Options = new global::Google.Protobuf.Reflection.FieldOptions();
  2078. }
  2079. input.ReadMessage(Options);
  2080. break;
  2081. }
  2082. case 72: {
  2083. OneofIndex = input.ReadInt32();
  2084. break;
  2085. }
  2086. case 82: {
  2087. JsonName = input.ReadString();
  2088. break;
  2089. }
  2090. }
  2091. }
  2092. }
  2093. #region Nested types
  2094. /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2096. public static partial class Types {
  2097. internal enum Type {
  2098. /// <summary>
  2099. /// 0 is reserved for errors.
  2100. /// Order is weird for historical reasons.
  2101. /// </summary>
  2102. [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
  2103. [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
  2104. /// <summary>
  2105. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
  2106. /// negative values are likely.
  2107. /// </summary>
  2108. [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
  2109. [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
  2110. /// <summary>
  2111. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
  2112. /// negative values are likely.
  2113. /// </summary>
  2114. [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
  2115. [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
  2116. [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
  2117. [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
  2118. [pbr::OriginalName("TYPE_STRING")] String = 9,
  2119. /// <summary>
  2120. /// Tag-delimited aggregate.
  2121. /// Group type is deprecated and not supported in proto3. However, Proto3
  2122. /// implementations should still be able to parse the group wire format and
  2123. /// treat group fields as unknown fields.
  2124. /// </summary>
  2125. [pbr::OriginalName("TYPE_GROUP")] Group = 10,
  2126. /// <summary>
  2127. /// Length-delimited aggregate.
  2128. /// </summary>
  2129. [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
  2130. /// <summary>
  2131. /// New in version 2.
  2132. /// </summary>
  2133. [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
  2134. [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
  2135. [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
  2136. [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
  2137. [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
  2138. /// <summary>
  2139. /// Uses ZigZag encoding.
  2140. /// </summary>
  2141. [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
  2142. /// <summary>
  2143. /// Uses ZigZag encoding.
  2144. /// </summary>
  2145. [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
  2146. }
  2147. internal enum Label {
  2148. /// <summary>
  2149. /// 0 is reserved for errors
  2150. /// </summary>
  2151. [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
  2152. [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
  2153. [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
  2154. }
  2155. }
  2156. #endregion
  2157. }
  2158. /// <summary>
  2159. /// Describes a oneof.
  2160. /// </summary>
  2161. internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
  2162. private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
  2163. private pb::UnknownFieldSet _unknownFields;
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2165. public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2167. public static pbr::MessageDescriptor Descriptor {
  2168. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
  2169. }
  2170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2171. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2172. get { return Descriptor; }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2175. public OneofDescriptorProto() {
  2176. OnConstruction();
  2177. }
  2178. partial void OnConstruction();
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2180. public OneofDescriptorProto(OneofDescriptorProto other) : this() {
  2181. name_ = other.name_;
  2182. options_ = other.HasOptions ? other.options_.Clone() : null;
  2183. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2186. public OneofDescriptorProto Clone() {
  2187. return new OneofDescriptorProto(this);
  2188. }
  2189. /// <summary>Field number for the "name" field.</summary>
  2190. public const int NameFieldNumber = 1;
  2191. private readonly static string NameDefaultValue = "";
  2192. private string name_;
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2194. public string Name {
  2195. get { return name_ ?? NameDefaultValue; }
  2196. set {
  2197. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2198. }
  2199. }
  2200. /// <summary>Gets whether the "name" field is set</summary>
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2202. public bool HasName {
  2203. get { return name_ != null; }
  2204. }
  2205. /// <summary>Clears the value of the "name" field</summary>
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2207. public void ClearName() {
  2208. name_ = null;
  2209. }
  2210. /// <summary>Field number for the "options" field.</summary>
  2211. public const int OptionsFieldNumber = 2;
  2212. private global::Google.Protobuf.Reflection.OneofOptions options_;
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2214. public global::Google.Protobuf.Reflection.OneofOptions Options {
  2215. get { return options_; }
  2216. set {
  2217. options_ = value;
  2218. }
  2219. }
  2220. /// <summary>Gets whether the options field is set</summary>
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2222. public bool HasOptions {
  2223. get { return options_ != null; }
  2224. }
  2225. /// <summary>Clears the value of the options field</summary>
  2226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2227. public void ClearOptions() {
  2228. options_ = null;
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2231. public override bool Equals(object other) {
  2232. return Equals(other as OneofDescriptorProto);
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2235. public bool Equals(OneofDescriptorProto other) {
  2236. if (ReferenceEquals(other, null)) {
  2237. return false;
  2238. }
  2239. if (ReferenceEquals(other, this)) {
  2240. return true;
  2241. }
  2242. if (Name != other.Name) return false;
  2243. if (!object.Equals(Options, other.Options)) return false;
  2244. return Equals(_unknownFields, other._unknownFields);
  2245. }
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2247. public override int GetHashCode() {
  2248. int hash = 1;
  2249. if (HasName) hash ^= Name.GetHashCode();
  2250. if (HasOptions) hash ^= Options.GetHashCode();
  2251. if (_unknownFields != null) {
  2252. hash ^= _unknownFields.GetHashCode();
  2253. }
  2254. return hash;
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2257. public override string ToString() {
  2258. return pb::JsonFormatter.ToDiagnosticString(this);
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2261. public void WriteTo(pb::CodedOutputStream output) {
  2262. if (HasName) {
  2263. output.WriteRawTag(10);
  2264. output.WriteString(Name);
  2265. }
  2266. if (HasOptions) {
  2267. output.WriteRawTag(18);
  2268. output.WriteMessage(Options);
  2269. }
  2270. if (_unknownFields != null) {
  2271. _unknownFields.WriteTo(output);
  2272. }
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2275. public int CalculateSize() {
  2276. int size = 0;
  2277. if (HasName) {
  2278. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2279. }
  2280. if (HasOptions) {
  2281. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2282. }
  2283. if (_unknownFields != null) {
  2284. size += _unknownFields.CalculateSize();
  2285. }
  2286. return size;
  2287. }
  2288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2289. public void MergeFrom(OneofDescriptorProto other) {
  2290. if (other == null) {
  2291. return;
  2292. }
  2293. if (other.HasName) {
  2294. Name = other.Name;
  2295. }
  2296. if (other.HasOptions) {
  2297. if (!HasOptions) {
  2298. Options = new global::Google.Protobuf.Reflection.OneofOptions();
  2299. }
  2300. Options.MergeFrom(other.Options);
  2301. }
  2302. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2305. public void MergeFrom(pb::CodedInputStream input) {
  2306. uint tag;
  2307. while ((tag = input.ReadTag()) != 0) {
  2308. switch(tag) {
  2309. default:
  2310. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2311. return;
  2312. }
  2313. break;
  2314. case 10: {
  2315. Name = input.ReadString();
  2316. break;
  2317. }
  2318. case 18: {
  2319. if (!HasOptions) {
  2320. Options = new global::Google.Protobuf.Reflection.OneofOptions();
  2321. }
  2322. input.ReadMessage(Options);
  2323. break;
  2324. }
  2325. }
  2326. }
  2327. }
  2328. }
  2329. /// <summary>
  2330. /// Describes an enum type.
  2331. /// </summary>
  2332. internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
  2333. private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
  2334. private pb::UnknownFieldSet _unknownFields;
  2335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2336. public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2338. public static pbr::MessageDescriptor Descriptor {
  2339. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
  2340. }
  2341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2342. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2343. get { return Descriptor; }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2346. public EnumDescriptorProto() {
  2347. OnConstruction();
  2348. }
  2349. partial void OnConstruction();
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2351. public EnumDescriptorProto(EnumDescriptorProto other) : this() {
  2352. name_ = other.name_;
  2353. value_ = other.value_.Clone();
  2354. options_ = other.HasOptions ? other.options_.Clone() : null;
  2355. reservedRange_ = other.reservedRange_.Clone();
  2356. reservedName_ = other.reservedName_.Clone();
  2357. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2360. public EnumDescriptorProto Clone() {
  2361. return new EnumDescriptorProto(this);
  2362. }
  2363. /// <summary>Field number for the "name" field.</summary>
  2364. public const int NameFieldNumber = 1;
  2365. private readonly static string NameDefaultValue = "";
  2366. private string name_;
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2368. public string Name {
  2369. get { return name_ ?? NameDefaultValue; }
  2370. set {
  2371. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2372. }
  2373. }
  2374. /// <summary>Gets whether the "name" field is set</summary>
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2376. public bool HasName {
  2377. get { return name_ != null; }
  2378. }
  2379. /// <summary>Clears the value of the "name" field</summary>
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2381. public void ClearName() {
  2382. name_ = null;
  2383. }
  2384. /// <summary>Field number for the "value" field.</summary>
  2385. public const int ValueFieldNumber = 2;
  2386. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
  2387. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
  2388. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2390. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
  2391. get { return value_; }
  2392. }
  2393. /// <summary>Field number for the "options" field.</summary>
  2394. public const int OptionsFieldNumber = 3;
  2395. private global::Google.Protobuf.Reflection.EnumOptions options_;
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2397. public global::Google.Protobuf.Reflection.EnumOptions Options {
  2398. get { return options_; }
  2399. set {
  2400. options_ = value;
  2401. }
  2402. }
  2403. /// <summary>Gets whether the options field is set</summary>
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2405. public bool HasOptions {
  2406. get { return options_ != null; }
  2407. }
  2408. /// <summary>Clears the value of the options field</summary>
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2410. public void ClearOptions() {
  2411. options_ = null;
  2412. }
  2413. /// <summary>Field number for the "reserved_range" field.</summary>
  2414. public const int ReservedRangeFieldNumber = 4;
  2415. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> _repeated_reservedRange_codec
  2416. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange.Parser);
  2417. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange>();
  2418. /// <summary>
  2419. /// Range of reserved numeric values. Reserved numeric values may not be used
  2420. /// by enum values in the same enum declaration. Reserved ranges may not
  2421. /// overlap.
  2422. /// </summary>
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2424. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> ReservedRange {
  2425. get { return reservedRange_; }
  2426. }
  2427. /// <summary>Field number for the "reserved_name" field.</summary>
  2428. public const int ReservedNameFieldNumber = 5;
  2429. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  2430. = pb::FieldCodec.ForString(42);
  2431. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  2432. /// <summary>
  2433. /// Reserved enum value names, which may not be reused. A given name may only
  2434. /// be reserved once.
  2435. /// </summary>
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2437. public pbc::RepeatedField<string> ReservedName {
  2438. get { return reservedName_; }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2441. public override bool Equals(object other) {
  2442. return Equals(other as EnumDescriptorProto);
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2445. public bool Equals(EnumDescriptorProto other) {
  2446. if (ReferenceEquals(other, null)) {
  2447. return false;
  2448. }
  2449. if (ReferenceEquals(other, this)) {
  2450. return true;
  2451. }
  2452. if (Name != other.Name) return false;
  2453. if(!value_.Equals(other.value_)) return false;
  2454. if (!object.Equals(Options, other.Options)) return false;
  2455. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  2456. if(!reservedName_.Equals(other.reservedName_)) return false;
  2457. return Equals(_unknownFields, other._unknownFields);
  2458. }
  2459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2460. public override int GetHashCode() {
  2461. int hash = 1;
  2462. if (HasName) hash ^= Name.GetHashCode();
  2463. hash ^= value_.GetHashCode();
  2464. if (HasOptions) hash ^= Options.GetHashCode();
  2465. hash ^= reservedRange_.GetHashCode();
  2466. hash ^= reservedName_.GetHashCode();
  2467. if (_unknownFields != null) {
  2468. hash ^= _unknownFields.GetHashCode();
  2469. }
  2470. return hash;
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2473. public override string ToString() {
  2474. return pb::JsonFormatter.ToDiagnosticString(this);
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2477. public void WriteTo(pb::CodedOutputStream output) {
  2478. if (HasName) {
  2479. output.WriteRawTag(10);
  2480. output.WriteString(Name);
  2481. }
  2482. value_.WriteTo(output, _repeated_value_codec);
  2483. if (HasOptions) {
  2484. output.WriteRawTag(26);
  2485. output.WriteMessage(Options);
  2486. }
  2487. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  2488. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  2489. if (_unknownFields != null) {
  2490. _unknownFields.WriteTo(output);
  2491. }
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2494. public int CalculateSize() {
  2495. int size = 0;
  2496. if (HasName) {
  2497. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2498. }
  2499. size += value_.CalculateSize(_repeated_value_codec);
  2500. if (HasOptions) {
  2501. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2502. }
  2503. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  2504. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  2505. if (_unknownFields != null) {
  2506. size += _unknownFields.CalculateSize();
  2507. }
  2508. return size;
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2511. public void MergeFrom(EnumDescriptorProto other) {
  2512. if (other == null) {
  2513. return;
  2514. }
  2515. if (other.HasName) {
  2516. Name = other.Name;
  2517. }
  2518. value_.Add(other.value_);
  2519. if (other.HasOptions) {
  2520. if (!HasOptions) {
  2521. Options = new global::Google.Protobuf.Reflection.EnumOptions();
  2522. }
  2523. Options.MergeFrom(other.Options);
  2524. }
  2525. reservedRange_.Add(other.reservedRange_);
  2526. reservedName_.Add(other.reservedName_);
  2527. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2528. }
  2529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2530. public void MergeFrom(pb::CodedInputStream input) {
  2531. uint tag;
  2532. while ((tag = input.ReadTag()) != 0) {
  2533. switch(tag) {
  2534. default:
  2535. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2536. return;
  2537. }
  2538. break;
  2539. case 10: {
  2540. Name = input.ReadString();
  2541. break;
  2542. }
  2543. case 18: {
  2544. value_.AddEntriesFrom(input, _repeated_value_codec);
  2545. break;
  2546. }
  2547. case 26: {
  2548. if (!HasOptions) {
  2549. Options = new global::Google.Protobuf.Reflection.EnumOptions();
  2550. }
  2551. input.ReadMessage(Options);
  2552. break;
  2553. }
  2554. case 34: {
  2555. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  2556. break;
  2557. }
  2558. case 42: {
  2559. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  2560. break;
  2561. }
  2562. }
  2563. }
  2564. }
  2565. #region Nested types
  2566. /// <summary>Container for nested types declared in the EnumDescriptorProto message type.</summary>
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2568. public static partial class Types {
  2569. /// <summary>
  2570. /// Range of reserved numeric values. Reserved values may not be used by
  2571. /// entries in the same enum. Reserved ranges may not overlap.
  2572. ///
  2573. /// Note that this is distinct from DescriptorProto.ReservedRange in that it
  2574. /// is inclusive such that it can appropriately represent the entire int32
  2575. /// domain.
  2576. /// </summary>
  2577. internal sealed partial class EnumReservedRange : pb::IMessage<EnumReservedRange> {
  2578. private static readonly pb::MessageParser<EnumReservedRange> _parser = new pb::MessageParser<EnumReservedRange>(() => new EnumReservedRange());
  2579. private pb::UnknownFieldSet _unknownFields;
  2580. private int _hasBits0;
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2582. public static pb::MessageParser<EnumReservedRange> Parser { get { return _parser; } }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2584. public static pbr::MessageDescriptor Descriptor {
  2585. get { return global::Google.Protobuf.Reflection.EnumDescriptorProto.Descriptor.NestedTypes[0]; }
  2586. }
  2587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2588. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2589. get { return Descriptor; }
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2592. public EnumReservedRange() {
  2593. OnConstruction();
  2594. }
  2595. partial void OnConstruction();
  2596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2597. public EnumReservedRange(EnumReservedRange other) : this() {
  2598. _hasBits0 = other._hasBits0;
  2599. start_ = other.start_;
  2600. end_ = other.end_;
  2601. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2604. public EnumReservedRange Clone() {
  2605. return new EnumReservedRange(this);
  2606. }
  2607. /// <summary>Field number for the "start" field.</summary>
  2608. public const int StartFieldNumber = 1;
  2609. private readonly static int StartDefaultValue = 0;
  2610. private int start_;
  2611. /// <summary>
  2612. /// Inclusive.
  2613. /// </summary>
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2615. public int Start {
  2616. get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
  2617. set {
  2618. _hasBits0 |= 1;
  2619. start_ = value;
  2620. }
  2621. }
  2622. /// <summary>Gets whether the "start" field is set</summary>
  2623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2624. public bool HasStart {
  2625. get { return (_hasBits0 & 1) != 0; }
  2626. }
  2627. /// <summary>Clears the value of the "start" field</summary>
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2629. public void ClearStart() {
  2630. _hasBits0 &= ~1;
  2631. }
  2632. /// <summary>Field number for the "end" field.</summary>
  2633. public const int EndFieldNumber = 2;
  2634. private readonly static int EndDefaultValue = 0;
  2635. private int end_;
  2636. /// <summary>
  2637. /// Inclusive.
  2638. /// </summary>
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2640. public int End {
  2641. get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
  2642. set {
  2643. _hasBits0 |= 2;
  2644. end_ = value;
  2645. }
  2646. }
  2647. /// <summary>Gets whether the "end" field is set</summary>
  2648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2649. public bool HasEnd {
  2650. get { return (_hasBits0 & 2) != 0; }
  2651. }
  2652. /// <summary>Clears the value of the "end" field</summary>
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2654. public void ClearEnd() {
  2655. _hasBits0 &= ~2;
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2658. public override bool Equals(object other) {
  2659. return Equals(other as EnumReservedRange);
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2662. public bool Equals(EnumReservedRange other) {
  2663. if (ReferenceEquals(other, null)) {
  2664. return false;
  2665. }
  2666. if (ReferenceEquals(other, this)) {
  2667. return true;
  2668. }
  2669. if (Start != other.Start) return false;
  2670. if (End != other.End) return false;
  2671. return Equals(_unknownFields, other._unknownFields);
  2672. }
  2673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2674. public override int GetHashCode() {
  2675. int hash = 1;
  2676. if (HasStart) hash ^= Start.GetHashCode();
  2677. if (HasEnd) hash ^= End.GetHashCode();
  2678. if (_unknownFields != null) {
  2679. hash ^= _unknownFields.GetHashCode();
  2680. }
  2681. return hash;
  2682. }
  2683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2684. public override string ToString() {
  2685. return pb::JsonFormatter.ToDiagnosticString(this);
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2688. public void WriteTo(pb::CodedOutputStream output) {
  2689. if (HasStart) {
  2690. output.WriteRawTag(8);
  2691. output.WriteInt32(Start);
  2692. }
  2693. if (HasEnd) {
  2694. output.WriteRawTag(16);
  2695. output.WriteInt32(End);
  2696. }
  2697. if (_unknownFields != null) {
  2698. _unknownFields.WriteTo(output);
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2702. public int CalculateSize() {
  2703. int size = 0;
  2704. if (HasStart) {
  2705. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  2706. }
  2707. if (HasEnd) {
  2708. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  2709. }
  2710. if (_unknownFields != null) {
  2711. size += _unknownFields.CalculateSize();
  2712. }
  2713. return size;
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2716. public void MergeFrom(EnumReservedRange other) {
  2717. if (other == null) {
  2718. return;
  2719. }
  2720. if (other.HasStart) {
  2721. Start = other.Start;
  2722. }
  2723. if (other.HasEnd) {
  2724. End = other.End;
  2725. }
  2726. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2729. public void MergeFrom(pb::CodedInputStream input) {
  2730. uint tag;
  2731. while ((tag = input.ReadTag()) != 0) {
  2732. switch(tag) {
  2733. default:
  2734. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2735. return;
  2736. }
  2737. break;
  2738. case 8: {
  2739. Start = input.ReadInt32();
  2740. break;
  2741. }
  2742. case 16: {
  2743. End = input.ReadInt32();
  2744. break;
  2745. }
  2746. }
  2747. }
  2748. }
  2749. }
  2750. }
  2751. #endregion
  2752. }
  2753. /// <summary>
  2754. /// Describes a value within an enum.
  2755. /// </summary>
  2756. internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
  2757. private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
  2758. private pb::UnknownFieldSet _unknownFields;
  2759. private int _hasBits0;
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2761. public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2763. public static pbr::MessageDescriptor Descriptor {
  2764. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2767. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2768. get { return Descriptor; }
  2769. }
  2770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2771. public EnumValueDescriptorProto() {
  2772. OnConstruction();
  2773. }
  2774. partial void OnConstruction();
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2776. public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
  2777. _hasBits0 = other._hasBits0;
  2778. name_ = other.name_;
  2779. number_ = other.number_;
  2780. options_ = other.HasOptions ? other.options_.Clone() : null;
  2781. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2784. public EnumValueDescriptorProto Clone() {
  2785. return new EnumValueDescriptorProto(this);
  2786. }
  2787. /// <summary>Field number for the "name" field.</summary>
  2788. public const int NameFieldNumber = 1;
  2789. private readonly static string NameDefaultValue = "";
  2790. private string name_;
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2792. public string Name {
  2793. get { return name_ ?? NameDefaultValue; }
  2794. set {
  2795. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2796. }
  2797. }
  2798. /// <summary>Gets whether the "name" field is set</summary>
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2800. public bool HasName {
  2801. get { return name_ != null; }
  2802. }
  2803. /// <summary>Clears the value of the "name" field</summary>
  2804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2805. public void ClearName() {
  2806. name_ = null;
  2807. }
  2808. /// <summary>Field number for the "number" field.</summary>
  2809. public const int NumberFieldNumber = 2;
  2810. private readonly static int NumberDefaultValue = 0;
  2811. private int number_;
  2812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2813. public int Number {
  2814. get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
  2815. set {
  2816. _hasBits0 |= 1;
  2817. number_ = value;
  2818. }
  2819. }
  2820. /// <summary>Gets whether the "number" field is set</summary>
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2822. public bool HasNumber {
  2823. get { return (_hasBits0 & 1) != 0; }
  2824. }
  2825. /// <summary>Clears the value of the "number" field</summary>
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2827. public void ClearNumber() {
  2828. _hasBits0 &= ~1;
  2829. }
  2830. /// <summary>Field number for the "options" field.</summary>
  2831. public const int OptionsFieldNumber = 3;
  2832. private global::Google.Protobuf.Reflection.EnumValueOptions options_;
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2834. public global::Google.Protobuf.Reflection.EnumValueOptions Options {
  2835. get { return options_; }
  2836. set {
  2837. options_ = value;
  2838. }
  2839. }
  2840. /// <summary>Gets whether the options field is set</summary>
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2842. public bool HasOptions {
  2843. get { return options_ != null; }
  2844. }
  2845. /// <summary>Clears the value of the options field</summary>
  2846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2847. public void ClearOptions() {
  2848. options_ = null;
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2851. public override bool Equals(object other) {
  2852. return Equals(other as EnumValueDescriptorProto);
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2855. public bool Equals(EnumValueDescriptorProto other) {
  2856. if (ReferenceEquals(other, null)) {
  2857. return false;
  2858. }
  2859. if (ReferenceEquals(other, this)) {
  2860. return true;
  2861. }
  2862. if (Name != other.Name) return false;
  2863. if (Number != other.Number) return false;
  2864. if (!object.Equals(Options, other.Options)) return false;
  2865. return Equals(_unknownFields, other._unknownFields);
  2866. }
  2867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2868. public override int GetHashCode() {
  2869. int hash = 1;
  2870. if (HasName) hash ^= Name.GetHashCode();
  2871. if (HasNumber) hash ^= Number.GetHashCode();
  2872. if (HasOptions) hash ^= Options.GetHashCode();
  2873. if (_unknownFields != null) {
  2874. hash ^= _unknownFields.GetHashCode();
  2875. }
  2876. return hash;
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2879. public override string ToString() {
  2880. return pb::JsonFormatter.ToDiagnosticString(this);
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2883. public void WriteTo(pb::CodedOutputStream output) {
  2884. if (HasName) {
  2885. output.WriteRawTag(10);
  2886. output.WriteString(Name);
  2887. }
  2888. if (HasNumber) {
  2889. output.WriteRawTag(16);
  2890. output.WriteInt32(Number);
  2891. }
  2892. if (HasOptions) {
  2893. output.WriteRawTag(26);
  2894. output.WriteMessage(Options);
  2895. }
  2896. if (_unknownFields != null) {
  2897. _unknownFields.WriteTo(output);
  2898. }
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2901. public int CalculateSize() {
  2902. int size = 0;
  2903. if (HasName) {
  2904. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2905. }
  2906. if (HasNumber) {
  2907. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  2908. }
  2909. if (HasOptions) {
  2910. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2911. }
  2912. if (_unknownFields != null) {
  2913. size += _unknownFields.CalculateSize();
  2914. }
  2915. return size;
  2916. }
  2917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2918. public void MergeFrom(EnumValueDescriptorProto other) {
  2919. if (other == null) {
  2920. return;
  2921. }
  2922. if (other.HasName) {
  2923. Name = other.Name;
  2924. }
  2925. if (other.HasNumber) {
  2926. Number = other.Number;
  2927. }
  2928. if (other.HasOptions) {
  2929. if (!HasOptions) {
  2930. Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
  2931. }
  2932. Options.MergeFrom(other.Options);
  2933. }
  2934. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2935. }
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2937. public void MergeFrom(pb::CodedInputStream input) {
  2938. uint tag;
  2939. while ((tag = input.ReadTag()) != 0) {
  2940. switch(tag) {
  2941. default:
  2942. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2943. return;
  2944. }
  2945. break;
  2946. case 10: {
  2947. Name = input.ReadString();
  2948. break;
  2949. }
  2950. case 16: {
  2951. Number = input.ReadInt32();
  2952. break;
  2953. }
  2954. case 26: {
  2955. if (!HasOptions) {
  2956. Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
  2957. }
  2958. input.ReadMessage(Options);
  2959. break;
  2960. }
  2961. }
  2962. }
  2963. }
  2964. }
  2965. /// <summary>
  2966. /// Describes a service.
  2967. /// </summary>
  2968. internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
  2969. private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
  2970. private pb::UnknownFieldSet _unknownFields;
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2972. public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
  2973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2974. public static pbr::MessageDescriptor Descriptor {
  2975. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2978. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2979. get { return Descriptor; }
  2980. }
  2981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2982. public ServiceDescriptorProto() {
  2983. OnConstruction();
  2984. }
  2985. partial void OnConstruction();
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2987. public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
  2988. name_ = other.name_;
  2989. method_ = other.method_.Clone();
  2990. options_ = other.HasOptions ? other.options_.Clone() : null;
  2991. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2994. public ServiceDescriptorProto Clone() {
  2995. return new ServiceDescriptorProto(this);
  2996. }
  2997. /// <summary>Field number for the "name" field.</summary>
  2998. public const int NameFieldNumber = 1;
  2999. private readonly static string NameDefaultValue = "";
  3000. private string name_;
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3002. public string Name {
  3003. get { return name_ ?? NameDefaultValue; }
  3004. set {
  3005. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3006. }
  3007. }
  3008. /// <summary>Gets whether the "name" field is set</summary>
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3010. public bool HasName {
  3011. get { return name_ != null; }
  3012. }
  3013. /// <summary>Clears the value of the "name" field</summary>
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3015. public void ClearName() {
  3016. name_ = null;
  3017. }
  3018. /// <summary>Field number for the "method" field.</summary>
  3019. public const int MethodFieldNumber = 2;
  3020. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
  3021. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
  3022. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
  3023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3024. public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
  3025. get { return method_; }
  3026. }
  3027. /// <summary>Field number for the "options" field.</summary>
  3028. public const int OptionsFieldNumber = 3;
  3029. private global::Google.Protobuf.Reflection.ServiceOptions options_;
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3031. public global::Google.Protobuf.Reflection.ServiceOptions Options {
  3032. get { return options_; }
  3033. set {
  3034. options_ = value;
  3035. }
  3036. }
  3037. /// <summary>Gets whether the options field is set</summary>
  3038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3039. public bool HasOptions {
  3040. get { return options_ != null; }
  3041. }
  3042. /// <summary>Clears the value of the options field</summary>
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3044. public void ClearOptions() {
  3045. options_ = null;
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3048. public override bool Equals(object other) {
  3049. return Equals(other as ServiceDescriptorProto);
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3052. public bool Equals(ServiceDescriptorProto other) {
  3053. if (ReferenceEquals(other, null)) {
  3054. return false;
  3055. }
  3056. if (ReferenceEquals(other, this)) {
  3057. return true;
  3058. }
  3059. if (Name != other.Name) return false;
  3060. if(!method_.Equals(other.method_)) return false;
  3061. if (!object.Equals(Options, other.Options)) return false;
  3062. return Equals(_unknownFields, other._unknownFields);
  3063. }
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3065. public override int GetHashCode() {
  3066. int hash = 1;
  3067. if (HasName) hash ^= Name.GetHashCode();
  3068. hash ^= method_.GetHashCode();
  3069. if (HasOptions) hash ^= Options.GetHashCode();
  3070. if (_unknownFields != null) {
  3071. hash ^= _unknownFields.GetHashCode();
  3072. }
  3073. return hash;
  3074. }
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3076. public override string ToString() {
  3077. return pb::JsonFormatter.ToDiagnosticString(this);
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3080. public void WriteTo(pb::CodedOutputStream output) {
  3081. if (HasName) {
  3082. output.WriteRawTag(10);
  3083. output.WriteString(Name);
  3084. }
  3085. method_.WriteTo(output, _repeated_method_codec);
  3086. if (HasOptions) {
  3087. output.WriteRawTag(26);
  3088. output.WriteMessage(Options);
  3089. }
  3090. if (_unknownFields != null) {
  3091. _unknownFields.WriteTo(output);
  3092. }
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3095. public int CalculateSize() {
  3096. int size = 0;
  3097. if (HasName) {
  3098. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  3099. }
  3100. size += method_.CalculateSize(_repeated_method_codec);
  3101. if (HasOptions) {
  3102. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  3103. }
  3104. if (_unknownFields != null) {
  3105. size += _unknownFields.CalculateSize();
  3106. }
  3107. return size;
  3108. }
  3109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3110. public void MergeFrom(ServiceDescriptorProto other) {
  3111. if (other == null) {
  3112. return;
  3113. }
  3114. if (other.HasName) {
  3115. Name = other.Name;
  3116. }
  3117. method_.Add(other.method_);
  3118. if (other.HasOptions) {
  3119. if (!HasOptions) {
  3120. Options = new global::Google.Protobuf.Reflection.ServiceOptions();
  3121. }
  3122. Options.MergeFrom(other.Options);
  3123. }
  3124. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3127. public void MergeFrom(pb::CodedInputStream input) {
  3128. uint tag;
  3129. while ((tag = input.ReadTag()) != 0) {
  3130. switch(tag) {
  3131. default:
  3132. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  3133. return;
  3134. }
  3135. break;
  3136. case 10: {
  3137. Name = input.ReadString();
  3138. break;
  3139. }
  3140. case 18: {
  3141. method_.AddEntriesFrom(input, _repeated_method_codec);
  3142. break;
  3143. }
  3144. case 26: {
  3145. if (!HasOptions) {
  3146. Options = new global::Google.Protobuf.Reflection.ServiceOptions();
  3147. }
  3148. input.ReadMessage(Options);
  3149. break;
  3150. }
  3151. }
  3152. }
  3153. }
  3154. }
  3155. /// <summary>
  3156. /// Describes a method of a service.
  3157. /// </summary>
  3158. internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
  3159. private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
  3160. private pb::UnknownFieldSet _unknownFields;
  3161. private int _hasBits0;
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3163. public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3165. public static pbr::MessageDescriptor Descriptor {
  3166. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3169. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3170. get { return Descriptor; }
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3173. public MethodDescriptorProto() {
  3174. OnConstruction();
  3175. }
  3176. partial void OnConstruction();
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3178. public MethodDescriptorProto(MethodDescriptorProto other) : this() {
  3179. _hasBits0 = other._hasBits0;
  3180. name_ = other.name_;
  3181. inputType_ = other.inputType_;
  3182. outputType_ = other.outputType_;
  3183. options_ = other.HasOptions ? other.options_.Clone() : null;
  3184. clientStreaming_ = other.clientStreaming_;
  3185. serverStreaming_ = other.serverStreaming_;
  3186. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3189. public MethodDescriptorProto Clone() {
  3190. return new MethodDescriptorProto(this);
  3191. }
  3192. /// <summary>Field number for the "name" field.</summary>
  3193. public const int NameFieldNumber = 1;
  3194. private readonly static string NameDefaultValue = "";
  3195. private string name_;
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3197. public string Name {
  3198. get { return name_ ?? NameDefaultValue; }
  3199. set {
  3200. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3201. }
  3202. }
  3203. /// <summary>Gets whether the "name" field is set</summary>
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3205. public bool HasName {
  3206. get { return name_ != null; }
  3207. }
  3208. /// <summary>Clears the value of the "name" field</summary>
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3210. public void ClearName() {
  3211. name_ = null;
  3212. }
  3213. /// <summary>Field number for the "input_type" field.</summary>
  3214. public const int InputTypeFieldNumber = 2;
  3215. private readonly static string InputTypeDefaultValue = "";
  3216. private string inputType_;
  3217. /// <summary>
  3218. /// Input and output type names. These are resolved in the same way as
  3219. /// FieldDescriptorProto.type_name, but must refer to a message type.
  3220. /// </summary>
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3222. public string InputType {
  3223. get { return inputType_ ?? InputTypeDefaultValue; }
  3224. set {
  3225. inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3226. }
  3227. }
  3228. /// <summary>Gets whether the "input_type" field is set</summary>
  3229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3230. public bool HasInputType {
  3231. get { return inputType_ != null; }
  3232. }
  3233. /// <summary>Clears the value of the "input_type" field</summary>
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3235. public void ClearInputType() {
  3236. inputType_ = null;
  3237. }
  3238. /// <summary>Field number for the "output_type" field.</summary>
  3239. public const int OutputTypeFieldNumber = 3;
  3240. private readonly static string OutputTypeDefaultValue = "";
  3241. private string outputType_;
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3243. public string OutputType {
  3244. get { return outputType_ ?? OutputTypeDefaultValue; }
  3245. set {
  3246. outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3247. }
  3248. }
  3249. /// <summary>Gets whether the "output_type" field is set</summary>
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3251. public bool HasOutputType {
  3252. get { return outputType_ != null; }
  3253. }
  3254. /// <summary>Clears the value of the "output_type" field</summary>
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3256. public void ClearOutputType() {
  3257. outputType_ = null;
  3258. }
  3259. /// <summary>Field number for the "options" field.</summary>
  3260. public const int OptionsFieldNumber = 4;
  3261. private global::Google.Protobuf.Reflection.MethodOptions options_;
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3263. public global::Google.Protobuf.Reflection.MethodOptions Options {
  3264. get { return options_; }
  3265. set {
  3266. options_ = value;
  3267. }
  3268. }
  3269. /// <summary>Gets whether the options field is set</summary>
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3271. public bool HasOptions {
  3272. get { return options_ != null; }
  3273. }
  3274. /// <summary>Clears the value of the options field</summary>
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3276. public void ClearOptions() {
  3277. options_ = null;
  3278. }
  3279. /// <summary>Field number for the "client_streaming" field.</summary>
  3280. public const int ClientStreamingFieldNumber = 5;
  3281. private readonly static bool ClientStreamingDefaultValue = false;
  3282. private bool clientStreaming_;
  3283. /// <summary>
  3284. /// Identifies if client streams multiple client messages
  3285. /// </summary>
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3287. public bool ClientStreaming {
  3288. get { if ((_hasBits0 & 1) != 0) { return clientStreaming_; } else { return ClientStreamingDefaultValue; } }
  3289. set {
  3290. _hasBits0 |= 1;
  3291. clientStreaming_ = value;
  3292. }
  3293. }
  3294. /// <summary>Gets whether the "client_streaming" field is set</summary>
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3296. public bool HasClientStreaming {
  3297. get { return (_hasBits0 & 1) != 0; }
  3298. }
  3299. /// <summary>Clears the value of the "client_streaming" field</summary>
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3301. public void ClearClientStreaming() {
  3302. _hasBits0 &= ~1;
  3303. }
  3304. /// <summary>Field number for the "server_streaming" field.</summary>
  3305. public const int ServerStreamingFieldNumber = 6;
  3306. private readonly static bool ServerStreamingDefaultValue = false;
  3307. private bool serverStreaming_;
  3308. /// <summary>
  3309. /// Identifies if server streams multiple server messages
  3310. /// </summary>
  3311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3312. public bool ServerStreaming {
  3313. get { if ((_hasBits0 & 2) != 0) { return serverStreaming_; } else { return ServerStreamingDefaultValue; } }
  3314. set {
  3315. _hasBits0 |= 2;
  3316. serverStreaming_ = value;
  3317. }
  3318. }
  3319. /// <summary>Gets whether the "server_streaming" field is set</summary>
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3321. public bool HasServerStreaming {
  3322. get { return (_hasBits0 & 2) != 0; }
  3323. }
  3324. /// <summary>Clears the value of the "server_streaming" field</summary>
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3326. public void ClearServerStreaming() {
  3327. _hasBits0 &= ~2;
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3330. public override bool Equals(object other) {
  3331. return Equals(other as MethodDescriptorProto);
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3334. public bool Equals(MethodDescriptorProto other) {
  3335. if (ReferenceEquals(other, null)) {
  3336. return false;
  3337. }
  3338. if (ReferenceEquals(other, this)) {
  3339. return true;
  3340. }
  3341. if (Name != other.Name) return false;
  3342. if (InputType != other.InputType) return false;
  3343. if (OutputType != other.OutputType) return false;
  3344. if (!object.Equals(Options, other.Options)) return false;
  3345. if (ClientStreaming != other.ClientStreaming) return false;
  3346. if (ServerStreaming != other.ServerStreaming) return false;
  3347. return Equals(_unknownFields, other._unknownFields);
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3350. public override int GetHashCode() {
  3351. int hash = 1;
  3352. if (HasName) hash ^= Name.GetHashCode();
  3353. if (HasInputType) hash ^= InputType.GetHashCode();
  3354. if (HasOutputType) hash ^= OutputType.GetHashCode();
  3355. if (HasOptions) hash ^= Options.GetHashCode();
  3356. if (HasClientStreaming) hash ^= ClientStreaming.GetHashCode();
  3357. if (HasServerStreaming) hash ^= ServerStreaming.GetHashCode();
  3358. if (_unknownFields != null) {
  3359. hash ^= _unknownFields.GetHashCode();
  3360. }
  3361. return hash;
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3364. public override string ToString() {
  3365. return pb::JsonFormatter.ToDiagnosticString(this);
  3366. }
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3368. public void WriteTo(pb::CodedOutputStream output) {
  3369. if (HasName) {
  3370. output.WriteRawTag(10);
  3371. output.WriteString(Name);
  3372. }
  3373. if (HasInputType) {
  3374. output.WriteRawTag(18);
  3375. output.WriteString(InputType);
  3376. }
  3377. if (HasOutputType) {
  3378. output.WriteRawTag(26);
  3379. output.WriteString(OutputType);
  3380. }
  3381. if (HasOptions) {
  3382. output.WriteRawTag(34);
  3383. output.WriteMessage(Options);
  3384. }
  3385. if (HasClientStreaming) {
  3386. output.WriteRawTag(40);
  3387. output.WriteBool(ClientStreaming);
  3388. }
  3389. if (HasServerStreaming) {
  3390. output.WriteRawTag(48);
  3391. output.WriteBool(ServerStreaming);
  3392. }
  3393. if (_unknownFields != null) {
  3394. _unknownFields.WriteTo(output);
  3395. }
  3396. }
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3398. public int CalculateSize() {
  3399. int size = 0;
  3400. if (HasName) {
  3401. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  3402. }
  3403. if (HasInputType) {
  3404. size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
  3405. }
  3406. if (HasOutputType) {
  3407. size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
  3408. }
  3409. if (HasOptions) {
  3410. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  3411. }
  3412. if (HasClientStreaming) {
  3413. size += 1 + 1;
  3414. }
  3415. if (HasServerStreaming) {
  3416. size += 1 + 1;
  3417. }
  3418. if (_unknownFields != null) {
  3419. size += _unknownFields.CalculateSize();
  3420. }
  3421. return size;
  3422. }
  3423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3424. public void MergeFrom(MethodDescriptorProto other) {
  3425. if (other == null) {
  3426. return;
  3427. }
  3428. if (other.HasName) {
  3429. Name = other.Name;
  3430. }
  3431. if (other.HasInputType) {
  3432. InputType = other.InputType;
  3433. }
  3434. if (other.HasOutputType) {
  3435. OutputType = other.OutputType;
  3436. }
  3437. if (other.HasOptions) {
  3438. if (!HasOptions) {
  3439. Options = new global::Google.Protobuf.Reflection.MethodOptions();
  3440. }
  3441. Options.MergeFrom(other.Options);
  3442. }
  3443. if (other.HasClientStreaming) {
  3444. ClientStreaming = other.ClientStreaming;
  3445. }
  3446. if (other.HasServerStreaming) {
  3447. ServerStreaming = other.ServerStreaming;
  3448. }
  3449. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3450. }
  3451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3452. public void MergeFrom(pb::CodedInputStream input) {
  3453. uint tag;
  3454. while ((tag = input.ReadTag()) != 0) {
  3455. switch(tag) {
  3456. default:
  3457. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  3458. return;
  3459. }
  3460. break;
  3461. case 10: {
  3462. Name = input.ReadString();
  3463. break;
  3464. }
  3465. case 18: {
  3466. InputType = input.ReadString();
  3467. break;
  3468. }
  3469. case 26: {
  3470. OutputType = input.ReadString();
  3471. break;
  3472. }
  3473. case 34: {
  3474. if (!HasOptions) {
  3475. Options = new global::Google.Protobuf.Reflection.MethodOptions();
  3476. }
  3477. input.ReadMessage(Options);
  3478. break;
  3479. }
  3480. case 40: {
  3481. ClientStreaming = input.ReadBool();
  3482. break;
  3483. }
  3484. case 48: {
  3485. ServerStreaming = input.ReadBool();
  3486. break;
  3487. }
  3488. }
  3489. }
  3490. }
  3491. }
  3492. internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
  3493. private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
  3494. private pb::UnknownFieldSet _unknownFields;
  3495. private int _hasBits0;
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3497. public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
  3498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3499. public static pbr::MessageDescriptor Descriptor {
  3500. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
  3501. }
  3502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3503. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3504. get { return Descriptor; }
  3505. }
  3506. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3508. public FileOptions() {
  3509. OnConstruction();
  3510. }
  3511. partial void OnConstruction();
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3513. public FileOptions(FileOptions other) : this() {
  3514. _hasBits0 = other._hasBits0;
  3515. javaPackage_ = other.javaPackage_;
  3516. javaOuterClassname_ = other.javaOuterClassname_;
  3517. javaMultipleFiles_ = other.javaMultipleFiles_;
  3518. javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
  3519. javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
  3520. optimizeFor_ = other.optimizeFor_;
  3521. goPackage_ = other.goPackage_;
  3522. ccGenericServices_ = other.ccGenericServices_;
  3523. javaGenericServices_ = other.javaGenericServices_;
  3524. pyGenericServices_ = other.pyGenericServices_;
  3525. phpGenericServices_ = other.phpGenericServices_;
  3526. deprecated_ = other.deprecated_;
  3527. ccEnableArenas_ = other.ccEnableArenas_;
  3528. objcClassPrefix_ = other.objcClassPrefix_;
  3529. csharpNamespace_ = other.csharpNamespace_;
  3530. swiftPrefix_ = other.swiftPrefix_;
  3531. phpClassPrefix_ = other.phpClassPrefix_;
  3532. phpNamespace_ = other.phpNamespace_;
  3533. phpMetadataNamespace_ = other.phpMetadataNamespace_;
  3534. rubyPackage_ = other.rubyPackage_;
  3535. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3536. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3539. public FileOptions Clone() {
  3540. return new FileOptions(this);
  3541. }
  3542. /// <summary>Field number for the "java_package" field.</summary>
  3543. public const int JavaPackageFieldNumber = 1;
  3544. private readonly static string JavaPackageDefaultValue = "";
  3545. private string javaPackage_;
  3546. /// <summary>
  3547. /// Sets the Java package where classes generated from this .proto will be
  3548. /// placed. By default, the proto package is used, but this is often
  3549. /// inappropriate because proto packages do not normally start with backwards
  3550. /// domain names.
  3551. /// </summary>
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3553. public string JavaPackage {
  3554. get { return javaPackage_ ?? JavaPackageDefaultValue; }
  3555. set {
  3556. javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3557. }
  3558. }
  3559. /// <summary>Gets whether the "java_package" field is set</summary>
  3560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3561. public bool HasJavaPackage {
  3562. get { return javaPackage_ != null; }
  3563. }
  3564. /// <summary>Clears the value of the "java_package" field</summary>
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3566. public void ClearJavaPackage() {
  3567. javaPackage_ = null;
  3568. }
  3569. /// <summary>Field number for the "java_outer_classname" field.</summary>
  3570. public const int JavaOuterClassnameFieldNumber = 8;
  3571. private readonly static string JavaOuterClassnameDefaultValue = "";
  3572. private string javaOuterClassname_;
  3573. /// <summary>
  3574. /// If set, all the classes from the .proto file are wrapped in a single
  3575. /// outer class with the given name. This applies to both Proto1
  3576. /// (equivalent to the old "--one_java_file" option) and Proto2 (where
  3577. /// a .proto always translates to a single class, but you may want to
  3578. /// explicitly choose the class name).
  3579. /// </summary>
  3580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3581. public string JavaOuterClassname {
  3582. get { return javaOuterClassname_ ?? JavaOuterClassnameDefaultValue; }
  3583. set {
  3584. javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3585. }
  3586. }
  3587. /// <summary>Gets whether the "java_outer_classname" field is set</summary>
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3589. public bool HasJavaOuterClassname {
  3590. get { return javaOuterClassname_ != null; }
  3591. }
  3592. /// <summary>Clears the value of the "java_outer_classname" field</summary>
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3594. public void ClearJavaOuterClassname() {
  3595. javaOuterClassname_ = null;
  3596. }
  3597. /// <summary>Field number for the "java_multiple_files" field.</summary>
  3598. public const int JavaMultipleFilesFieldNumber = 10;
  3599. private readonly static bool JavaMultipleFilesDefaultValue = false;
  3600. private bool javaMultipleFiles_;
  3601. /// <summary>
  3602. /// If set true, then the Java code generator will generate a separate .java
  3603. /// file for each top-level message, enum, and service defined in the .proto
  3604. /// file. Thus, these types will *not* be nested inside the outer class
  3605. /// named by java_outer_classname. However, the outer class will still be
  3606. /// generated to contain the file's getDescriptor() method as well as any
  3607. /// top-level extensions defined in the file.
  3608. /// </summary>
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3610. public bool JavaMultipleFiles {
  3611. get { if ((_hasBits0 & 2) != 0) { return javaMultipleFiles_; } else { return JavaMultipleFilesDefaultValue; } }
  3612. set {
  3613. _hasBits0 |= 2;
  3614. javaMultipleFiles_ = value;
  3615. }
  3616. }
  3617. /// <summary>Gets whether the "java_multiple_files" field is set</summary>
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3619. public bool HasJavaMultipleFiles {
  3620. get { return (_hasBits0 & 2) != 0; }
  3621. }
  3622. /// <summary>Clears the value of the "java_multiple_files" field</summary>
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3624. public void ClearJavaMultipleFiles() {
  3625. _hasBits0 &= ~2;
  3626. }
  3627. /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
  3628. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  3629. private readonly static bool JavaGenerateEqualsAndHashDefaultValue = false;
  3630. private bool javaGenerateEqualsAndHash_;
  3631. /// <summary>
  3632. /// This option does nothing.
  3633. /// </summary>
  3634. [global::System.ObsoleteAttribute]
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3636. public bool JavaGenerateEqualsAndHash {
  3637. get { if ((_hasBits0 & 32) != 0) { return javaGenerateEqualsAndHash_; } else { return JavaGenerateEqualsAndHashDefaultValue; } }
  3638. set {
  3639. _hasBits0 |= 32;
  3640. javaGenerateEqualsAndHash_ = value;
  3641. }
  3642. }
  3643. /// <summary>Gets whether the "java_generate_equals_and_hash" field is set</summary>
  3644. [global::System.ObsoleteAttribute]
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3646. public bool HasJavaGenerateEqualsAndHash {
  3647. get { return (_hasBits0 & 32) != 0; }
  3648. }
  3649. /// <summary>Clears the value of the "java_generate_equals_and_hash" field</summary>
  3650. [global::System.ObsoleteAttribute]
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3652. public void ClearJavaGenerateEqualsAndHash() {
  3653. _hasBits0 &= ~32;
  3654. }
  3655. /// <summary>Field number for the "java_string_check_utf8" field.</summary>
  3656. public const int JavaStringCheckUtf8FieldNumber = 27;
  3657. private readonly static bool JavaStringCheckUtf8DefaultValue = false;
  3658. private bool javaStringCheckUtf8_;
  3659. /// <summary>
  3660. /// If set true, then the Java2 code generator will generate code that
  3661. /// throws an exception whenever an attempt is made to assign a non-UTF-8
  3662. /// byte sequence to a string field.
  3663. /// Message reflection will do the same.
  3664. /// However, an extension field still accepts non-UTF-8 byte sequences.
  3665. /// This option has no effect on when used with the lite runtime.
  3666. /// </summary>
  3667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3668. public bool JavaStringCheckUtf8 {
  3669. get { if ((_hasBits0 & 128) != 0) { return javaStringCheckUtf8_; } else { return JavaStringCheckUtf8DefaultValue; } }
  3670. set {
  3671. _hasBits0 |= 128;
  3672. javaStringCheckUtf8_ = value;
  3673. }
  3674. }
  3675. /// <summary>Gets whether the "java_string_check_utf8" field is set</summary>
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3677. public bool HasJavaStringCheckUtf8 {
  3678. get { return (_hasBits0 & 128) != 0; }
  3679. }
  3680. /// <summary>Clears the value of the "java_string_check_utf8" field</summary>
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3682. public void ClearJavaStringCheckUtf8() {
  3683. _hasBits0 &= ~128;
  3684. }
  3685. /// <summary>Field number for the "optimize_for" field.</summary>
  3686. public const int OptimizeForFieldNumber = 9;
  3687. private readonly static global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeForDefaultValue = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.Speed;
  3688. private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_;
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3690. public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
  3691. get { if ((_hasBits0 & 1) != 0) { return optimizeFor_; } else { return OptimizeForDefaultValue; } }
  3692. set {
  3693. _hasBits0 |= 1;
  3694. optimizeFor_ = value;
  3695. }
  3696. }
  3697. /// <summary>Gets whether the "optimize_for" field is set</summary>
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3699. public bool HasOptimizeFor {
  3700. get { return (_hasBits0 & 1) != 0; }
  3701. }
  3702. /// <summary>Clears the value of the "optimize_for" field</summary>
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3704. public void ClearOptimizeFor() {
  3705. _hasBits0 &= ~1;
  3706. }
  3707. /// <summary>Field number for the "go_package" field.</summary>
  3708. public const int GoPackageFieldNumber = 11;
  3709. private readonly static string GoPackageDefaultValue = "";
  3710. private string goPackage_;
  3711. /// <summary>
  3712. /// Sets the Go package where structs generated from this .proto will be
  3713. /// placed. If omitted, the Go package will be derived from the following:
  3714. /// - The basename of the package import path, if provided.
  3715. /// - Otherwise, the package statement in the .proto file, if present.
  3716. /// - Otherwise, the basename of the .proto file, without extension.
  3717. /// </summary>
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3719. public string GoPackage {
  3720. get { return goPackage_ ?? GoPackageDefaultValue; }
  3721. set {
  3722. goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3723. }
  3724. }
  3725. /// <summary>Gets whether the "go_package" field is set</summary>
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3727. public bool HasGoPackage {
  3728. get { return goPackage_ != null; }
  3729. }
  3730. /// <summary>Clears the value of the "go_package" field</summary>
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3732. public void ClearGoPackage() {
  3733. goPackage_ = null;
  3734. }
  3735. /// <summary>Field number for the "cc_generic_services" field.</summary>
  3736. public const int CcGenericServicesFieldNumber = 16;
  3737. private readonly static bool CcGenericServicesDefaultValue = false;
  3738. private bool ccGenericServices_;
  3739. /// <summary>
  3740. /// Should generic services be generated in each language? "Generic" services
  3741. /// are not specific to any particular RPC system. They are generated by the
  3742. /// main code generators in each language (without additional plugins).
  3743. /// Generic services were the only kind of service generation supported by
  3744. /// early versions of google.protobuf.
  3745. ///
  3746. /// Generic services are now considered deprecated in favor of using plugins
  3747. /// that generate code specific to your particular RPC system. Therefore,
  3748. /// these default to false. Old code which depends on generic services should
  3749. /// explicitly set them to true.
  3750. /// </summary>
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3752. public bool CcGenericServices {
  3753. get { if ((_hasBits0 & 4) != 0) { return ccGenericServices_; } else { return CcGenericServicesDefaultValue; } }
  3754. set {
  3755. _hasBits0 |= 4;
  3756. ccGenericServices_ = value;
  3757. }
  3758. }
  3759. /// <summary>Gets whether the "cc_generic_services" field is set</summary>
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3761. public bool HasCcGenericServices {
  3762. get { return (_hasBits0 & 4) != 0; }
  3763. }
  3764. /// <summary>Clears the value of the "cc_generic_services" field</summary>
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3766. public void ClearCcGenericServices() {
  3767. _hasBits0 &= ~4;
  3768. }
  3769. /// <summary>Field number for the "java_generic_services" field.</summary>
  3770. public const int JavaGenericServicesFieldNumber = 17;
  3771. private readonly static bool JavaGenericServicesDefaultValue = false;
  3772. private bool javaGenericServices_;
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3774. public bool JavaGenericServices {
  3775. get { if ((_hasBits0 & 8) != 0) { return javaGenericServices_; } else { return JavaGenericServicesDefaultValue; } }
  3776. set {
  3777. _hasBits0 |= 8;
  3778. javaGenericServices_ = value;
  3779. }
  3780. }
  3781. /// <summary>Gets whether the "java_generic_services" field is set</summary>
  3782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3783. public bool HasJavaGenericServices {
  3784. get { return (_hasBits0 & 8) != 0; }
  3785. }
  3786. /// <summary>Clears the value of the "java_generic_services" field</summary>
  3787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3788. public void ClearJavaGenericServices() {
  3789. _hasBits0 &= ~8;
  3790. }
  3791. /// <summary>Field number for the "py_generic_services" field.</summary>
  3792. public const int PyGenericServicesFieldNumber = 18;
  3793. private readonly static bool PyGenericServicesDefaultValue = false;
  3794. private bool pyGenericServices_;
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3796. public bool PyGenericServices {
  3797. get { if ((_hasBits0 & 16) != 0) { return pyGenericServices_; } else { return PyGenericServicesDefaultValue; } }
  3798. set {
  3799. _hasBits0 |= 16;
  3800. pyGenericServices_ = value;
  3801. }
  3802. }
  3803. /// <summary>Gets whether the "py_generic_services" field is set</summary>
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3805. public bool HasPyGenericServices {
  3806. get { return (_hasBits0 & 16) != 0; }
  3807. }
  3808. /// <summary>Clears the value of the "py_generic_services" field</summary>
  3809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3810. public void ClearPyGenericServices() {
  3811. _hasBits0 &= ~16;
  3812. }
  3813. /// <summary>Field number for the "php_generic_services" field.</summary>
  3814. public const int PhpGenericServicesFieldNumber = 42;
  3815. private readonly static bool PhpGenericServicesDefaultValue = false;
  3816. private bool phpGenericServices_;
  3817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3818. public bool PhpGenericServices {
  3819. get { if ((_hasBits0 & 512) != 0) { return phpGenericServices_; } else { return PhpGenericServicesDefaultValue; } }
  3820. set {
  3821. _hasBits0 |= 512;
  3822. phpGenericServices_ = value;
  3823. }
  3824. }
  3825. /// <summary>Gets whether the "php_generic_services" field is set</summary>
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3827. public bool HasPhpGenericServices {
  3828. get { return (_hasBits0 & 512) != 0; }
  3829. }
  3830. /// <summary>Clears the value of the "php_generic_services" field</summary>
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3832. public void ClearPhpGenericServices() {
  3833. _hasBits0 &= ~512;
  3834. }
  3835. /// <summary>Field number for the "deprecated" field.</summary>
  3836. public const int DeprecatedFieldNumber = 23;
  3837. private readonly static bool DeprecatedDefaultValue = false;
  3838. private bool deprecated_;
  3839. /// <summary>
  3840. /// Is this file deprecated?
  3841. /// Depending on the target platform, this can emit Deprecated annotations
  3842. /// for everything in the file, or it will be completely ignored; in the very
  3843. /// least, this is a formalization for deprecating files.
  3844. /// </summary>
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3846. public bool Deprecated {
  3847. get { if ((_hasBits0 & 64) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  3848. set {
  3849. _hasBits0 |= 64;
  3850. deprecated_ = value;
  3851. }
  3852. }
  3853. /// <summary>Gets whether the "deprecated" field is set</summary>
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3855. public bool HasDeprecated {
  3856. get { return (_hasBits0 & 64) != 0; }
  3857. }
  3858. /// <summary>Clears the value of the "deprecated" field</summary>
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3860. public void ClearDeprecated() {
  3861. _hasBits0 &= ~64;
  3862. }
  3863. /// <summary>Field number for the "cc_enable_arenas" field.</summary>
  3864. public const int CcEnableArenasFieldNumber = 31;
  3865. private readonly static bool CcEnableArenasDefaultValue = false;
  3866. private bool ccEnableArenas_;
  3867. /// <summary>
  3868. /// Enables the use of arenas for the proto messages in this file. This applies
  3869. /// only to generated classes for C++.
  3870. /// </summary>
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3872. public bool CcEnableArenas {
  3873. get { if ((_hasBits0 & 256) != 0) { return ccEnableArenas_; } else { return CcEnableArenasDefaultValue; } }
  3874. set {
  3875. _hasBits0 |= 256;
  3876. ccEnableArenas_ = value;
  3877. }
  3878. }
  3879. /// <summary>Gets whether the "cc_enable_arenas" field is set</summary>
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3881. public bool HasCcEnableArenas {
  3882. get { return (_hasBits0 & 256) != 0; }
  3883. }
  3884. /// <summary>Clears the value of the "cc_enable_arenas" field</summary>
  3885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3886. public void ClearCcEnableArenas() {
  3887. _hasBits0 &= ~256;
  3888. }
  3889. /// <summary>Field number for the "objc_class_prefix" field.</summary>
  3890. public const int ObjcClassPrefixFieldNumber = 36;
  3891. private readonly static string ObjcClassPrefixDefaultValue = "";
  3892. private string objcClassPrefix_;
  3893. /// <summary>
  3894. /// Sets the objective c class prefix which is prepended to all objective c
  3895. /// generated classes from this .proto. There is no default.
  3896. /// </summary>
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3898. public string ObjcClassPrefix {
  3899. get { return objcClassPrefix_ ?? ObjcClassPrefixDefaultValue; }
  3900. set {
  3901. objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3902. }
  3903. }
  3904. /// <summary>Gets whether the "objc_class_prefix" field is set</summary>
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3906. public bool HasObjcClassPrefix {
  3907. get { return objcClassPrefix_ != null; }
  3908. }
  3909. /// <summary>Clears the value of the "objc_class_prefix" field</summary>
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3911. public void ClearObjcClassPrefix() {
  3912. objcClassPrefix_ = null;
  3913. }
  3914. /// <summary>Field number for the "csharp_namespace" field.</summary>
  3915. public const int CsharpNamespaceFieldNumber = 37;
  3916. private readonly static string CsharpNamespaceDefaultValue = "";
  3917. private string csharpNamespace_;
  3918. /// <summary>
  3919. /// Namespace for generated classes; defaults to the package.
  3920. /// </summary>
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3922. public string CsharpNamespace {
  3923. get { return csharpNamespace_ ?? CsharpNamespaceDefaultValue; }
  3924. set {
  3925. csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3926. }
  3927. }
  3928. /// <summary>Gets whether the "csharp_namespace" field is set</summary>
  3929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3930. public bool HasCsharpNamespace {
  3931. get { return csharpNamespace_ != null; }
  3932. }
  3933. /// <summary>Clears the value of the "csharp_namespace" field</summary>
  3934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3935. public void ClearCsharpNamespace() {
  3936. csharpNamespace_ = null;
  3937. }
  3938. /// <summary>Field number for the "swift_prefix" field.</summary>
  3939. public const int SwiftPrefixFieldNumber = 39;
  3940. private readonly static string SwiftPrefixDefaultValue = "";
  3941. private string swiftPrefix_;
  3942. /// <summary>
  3943. /// By default Swift generators will take the proto package and CamelCase it
  3944. /// replacing '.' with underscore and use that to prefix the types/symbols
  3945. /// defined. When this options is provided, they will use this value instead
  3946. /// to prefix the types/symbols defined.
  3947. /// </summary>
  3948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3949. public string SwiftPrefix {
  3950. get { return swiftPrefix_ ?? SwiftPrefixDefaultValue; }
  3951. set {
  3952. swiftPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3953. }
  3954. }
  3955. /// <summary>Gets whether the "swift_prefix" field is set</summary>
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3957. public bool HasSwiftPrefix {
  3958. get { return swiftPrefix_ != null; }
  3959. }
  3960. /// <summary>Clears the value of the "swift_prefix" field</summary>
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3962. public void ClearSwiftPrefix() {
  3963. swiftPrefix_ = null;
  3964. }
  3965. /// <summary>Field number for the "php_class_prefix" field.</summary>
  3966. public const int PhpClassPrefixFieldNumber = 40;
  3967. private readonly static string PhpClassPrefixDefaultValue = "";
  3968. private string phpClassPrefix_;
  3969. /// <summary>
  3970. /// Sets the php class prefix which is prepended to all php generated classes
  3971. /// from this .proto. Default is empty.
  3972. /// </summary>
  3973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3974. public string PhpClassPrefix {
  3975. get { return phpClassPrefix_ ?? PhpClassPrefixDefaultValue; }
  3976. set {
  3977. phpClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3978. }
  3979. }
  3980. /// <summary>Gets whether the "php_class_prefix" field is set</summary>
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3982. public bool HasPhpClassPrefix {
  3983. get { return phpClassPrefix_ != null; }
  3984. }
  3985. /// <summary>Clears the value of the "php_class_prefix" field</summary>
  3986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3987. public void ClearPhpClassPrefix() {
  3988. phpClassPrefix_ = null;
  3989. }
  3990. /// <summary>Field number for the "php_namespace" field.</summary>
  3991. public const int PhpNamespaceFieldNumber = 41;
  3992. private readonly static string PhpNamespaceDefaultValue = "";
  3993. private string phpNamespace_;
  3994. /// <summary>
  3995. /// Use this option to change the namespace of php generated classes. Default
  3996. /// is empty. When this option is empty, the package name will be used for
  3997. /// determining the namespace.
  3998. /// </summary>
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4000. public string PhpNamespace {
  4001. get { return phpNamespace_ ?? PhpNamespaceDefaultValue; }
  4002. set {
  4003. phpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4004. }
  4005. }
  4006. /// <summary>Gets whether the "php_namespace" field is set</summary>
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4008. public bool HasPhpNamespace {
  4009. get { return phpNamespace_ != null; }
  4010. }
  4011. /// <summary>Clears the value of the "php_namespace" field</summary>
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4013. public void ClearPhpNamespace() {
  4014. phpNamespace_ = null;
  4015. }
  4016. /// <summary>Field number for the "php_metadata_namespace" field.</summary>
  4017. public const int PhpMetadataNamespaceFieldNumber = 44;
  4018. private readonly static string PhpMetadataNamespaceDefaultValue = "";
  4019. private string phpMetadataNamespace_;
  4020. /// <summary>
  4021. /// Use this option to change the namespace of php generated metadata classes.
  4022. /// Default is empty. When this option is empty, the proto file name will be used
  4023. /// for determining the namespace.
  4024. /// </summary>
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4026. public string PhpMetadataNamespace {
  4027. get { return phpMetadataNamespace_ ?? PhpMetadataNamespaceDefaultValue; }
  4028. set {
  4029. phpMetadataNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4030. }
  4031. }
  4032. /// <summary>Gets whether the "php_metadata_namespace" field is set</summary>
  4033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4034. public bool HasPhpMetadataNamespace {
  4035. get { return phpMetadataNamespace_ != null; }
  4036. }
  4037. /// <summary>Clears the value of the "php_metadata_namespace" field</summary>
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4039. public void ClearPhpMetadataNamespace() {
  4040. phpMetadataNamespace_ = null;
  4041. }
  4042. /// <summary>Field number for the "ruby_package" field.</summary>
  4043. public const int RubyPackageFieldNumber = 45;
  4044. private readonly static string RubyPackageDefaultValue = "";
  4045. private string rubyPackage_;
  4046. /// <summary>
  4047. /// Use this option to change the package of ruby generated classes. Default
  4048. /// is empty. When this option is not set, the package name will be used for
  4049. /// determining the ruby package.
  4050. /// </summary>
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4052. public string RubyPackage {
  4053. get { return rubyPackage_ ?? RubyPackageDefaultValue; }
  4054. set {
  4055. rubyPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4056. }
  4057. }
  4058. /// <summary>Gets whether the "ruby_package" field is set</summary>
  4059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4060. public bool HasRubyPackage {
  4061. get { return rubyPackage_ != null; }
  4062. }
  4063. /// <summary>Clears the value of the "ruby_package" field</summary>
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4065. public void ClearRubyPackage() {
  4066. rubyPackage_ = null;
  4067. }
  4068. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  4069. public const int UninterpretedOptionFieldNumber = 999;
  4070. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  4071. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  4072. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  4073. /// <summary>
  4074. /// The parser stores options it doesn't recognize here.
  4075. /// See the documentation for the "Options" section above.
  4076. /// </summary>
  4077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4078. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  4079. get { return uninterpretedOption_; }
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4082. public override bool Equals(object other) {
  4083. return Equals(other as FileOptions);
  4084. }
  4085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4086. public bool Equals(FileOptions other) {
  4087. if (ReferenceEquals(other, null)) {
  4088. return false;
  4089. }
  4090. if (ReferenceEquals(other, this)) {
  4091. return true;
  4092. }
  4093. if (JavaPackage != other.JavaPackage) return false;
  4094. if (JavaOuterClassname != other.JavaOuterClassname) return false;
  4095. if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
  4096. if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
  4097. if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
  4098. if (OptimizeFor != other.OptimizeFor) return false;
  4099. if (GoPackage != other.GoPackage) return false;
  4100. if (CcGenericServices != other.CcGenericServices) return false;
  4101. if (JavaGenericServices != other.JavaGenericServices) return false;
  4102. if (PyGenericServices != other.PyGenericServices) return false;
  4103. if (PhpGenericServices != other.PhpGenericServices) return false;
  4104. if (Deprecated != other.Deprecated) return false;
  4105. if (CcEnableArenas != other.CcEnableArenas) return false;
  4106. if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
  4107. if (CsharpNamespace != other.CsharpNamespace) return false;
  4108. if (SwiftPrefix != other.SwiftPrefix) return false;
  4109. if (PhpClassPrefix != other.PhpClassPrefix) return false;
  4110. if (PhpNamespace != other.PhpNamespace) return false;
  4111. if (PhpMetadataNamespace != other.PhpMetadataNamespace) return false;
  4112. if (RubyPackage != other.RubyPackage) return false;
  4113. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  4114. return Equals(_unknownFields, other._unknownFields);
  4115. }
  4116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4117. public override int GetHashCode() {
  4118. int hash = 1;
  4119. if (HasJavaPackage) hash ^= JavaPackage.GetHashCode();
  4120. if (HasJavaOuterClassname) hash ^= JavaOuterClassname.GetHashCode();
  4121. if (HasJavaMultipleFiles) hash ^= JavaMultipleFiles.GetHashCode();
  4122. if (HasJavaGenerateEqualsAndHash) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
  4123. if (HasJavaStringCheckUtf8) hash ^= JavaStringCheckUtf8.GetHashCode();
  4124. if (HasOptimizeFor) hash ^= OptimizeFor.GetHashCode();
  4125. if (HasGoPackage) hash ^= GoPackage.GetHashCode();
  4126. if (HasCcGenericServices) hash ^= CcGenericServices.GetHashCode();
  4127. if (HasJavaGenericServices) hash ^= JavaGenericServices.GetHashCode();
  4128. if (HasPyGenericServices) hash ^= PyGenericServices.GetHashCode();
  4129. if (HasPhpGenericServices) hash ^= PhpGenericServices.GetHashCode();
  4130. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  4131. if (HasCcEnableArenas) hash ^= CcEnableArenas.GetHashCode();
  4132. if (HasObjcClassPrefix) hash ^= ObjcClassPrefix.GetHashCode();
  4133. if (HasCsharpNamespace) hash ^= CsharpNamespace.GetHashCode();
  4134. if (HasSwiftPrefix) hash ^= SwiftPrefix.GetHashCode();
  4135. if (HasPhpClassPrefix) hash ^= PhpClassPrefix.GetHashCode();
  4136. if (HasPhpNamespace) hash ^= PhpNamespace.GetHashCode();
  4137. if (HasPhpMetadataNamespace) hash ^= PhpMetadataNamespace.GetHashCode();
  4138. if (HasRubyPackage) hash ^= RubyPackage.GetHashCode();
  4139. hash ^= uninterpretedOption_.GetHashCode();
  4140. if (_unknownFields != null) {
  4141. hash ^= _unknownFields.GetHashCode();
  4142. }
  4143. return hash;
  4144. }
  4145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4146. public override string ToString() {
  4147. return pb::JsonFormatter.ToDiagnosticString(this);
  4148. }
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4150. public void WriteTo(pb::CodedOutputStream output) {
  4151. if (HasJavaPackage) {
  4152. output.WriteRawTag(10);
  4153. output.WriteString(JavaPackage);
  4154. }
  4155. if (HasJavaOuterClassname) {
  4156. output.WriteRawTag(66);
  4157. output.WriteString(JavaOuterClassname);
  4158. }
  4159. if (HasOptimizeFor) {
  4160. output.WriteRawTag(72);
  4161. output.WriteEnum((int) OptimizeFor);
  4162. }
  4163. if (HasJavaMultipleFiles) {
  4164. output.WriteRawTag(80);
  4165. output.WriteBool(JavaMultipleFiles);
  4166. }
  4167. if (HasGoPackage) {
  4168. output.WriteRawTag(90);
  4169. output.WriteString(GoPackage);
  4170. }
  4171. if (HasCcGenericServices) {
  4172. output.WriteRawTag(128, 1);
  4173. output.WriteBool(CcGenericServices);
  4174. }
  4175. if (HasJavaGenericServices) {
  4176. output.WriteRawTag(136, 1);
  4177. output.WriteBool(JavaGenericServices);
  4178. }
  4179. if (HasPyGenericServices) {
  4180. output.WriteRawTag(144, 1);
  4181. output.WriteBool(PyGenericServices);
  4182. }
  4183. if (HasJavaGenerateEqualsAndHash) {
  4184. output.WriteRawTag(160, 1);
  4185. output.WriteBool(JavaGenerateEqualsAndHash);
  4186. }
  4187. if (HasDeprecated) {
  4188. output.WriteRawTag(184, 1);
  4189. output.WriteBool(Deprecated);
  4190. }
  4191. if (HasJavaStringCheckUtf8) {
  4192. output.WriteRawTag(216, 1);
  4193. output.WriteBool(JavaStringCheckUtf8);
  4194. }
  4195. if (HasCcEnableArenas) {
  4196. output.WriteRawTag(248, 1);
  4197. output.WriteBool(CcEnableArenas);
  4198. }
  4199. if (HasObjcClassPrefix) {
  4200. output.WriteRawTag(162, 2);
  4201. output.WriteString(ObjcClassPrefix);
  4202. }
  4203. if (HasCsharpNamespace) {
  4204. output.WriteRawTag(170, 2);
  4205. output.WriteString(CsharpNamespace);
  4206. }
  4207. if (HasSwiftPrefix) {
  4208. output.WriteRawTag(186, 2);
  4209. output.WriteString(SwiftPrefix);
  4210. }
  4211. if (HasPhpClassPrefix) {
  4212. output.WriteRawTag(194, 2);
  4213. output.WriteString(PhpClassPrefix);
  4214. }
  4215. if (HasPhpNamespace) {
  4216. output.WriteRawTag(202, 2);
  4217. output.WriteString(PhpNamespace);
  4218. }
  4219. if (HasPhpGenericServices) {
  4220. output.WriteRawTag(208, 2);
  4221. output.WriteBool(PhpGenericServices);
  4222. }
  4223. if (HasPhpMetadataNamespace) {
  4224. output.WriteRawTag(226, 2);
  4225. output.WriteString(PhpMetadataNamespace);
  4226. }
  4227. if (HasRubyPackage) {
  4228. output.WriteRawTag(234, 2);
  4229. output.WriteString(RubyPackage);
  4230. }
  4231. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4232. if (_unknownFields != null) {
  4233. _unknownFields.WriteTo(output);
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4237. public int CalculateSize() {
  4238. int size = 0;
  4239. if (HasJavaPackage) {
  4240. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
  4241. }
  4242. if (HasJavaOuterClassname) {
  4243. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
  4244. }
  4245. if (HasJavaMultipleFiles) {
  4246. size += 1 + 1;
  4247. }
  4248. if (HasJavaGenerateEqualsAndHash) {
  4249. size += 2 + 1;
  4250. }
  4251. if (HasJavaStringCheckUtf8) {
  4252. size += 2 + 1;
  4253. }
  4254. if (HasOptimizeFor) {
  4255. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
  4256. }
  4257. if (HasGoPackage) {
  4258. size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
  4259. }
  4260. if (HasCcGenericServices) {
  4261. size += 2 + 1;
  4262. }
  4263. if (HasJavaGenericServices) {
  4264. size += 2 + 1;
  4265. }
  4266. if (HasPyGenericServices) {
  4267. size += 2 + 1;
  4268. }
  4269. if (HasPhpGenericServices) {
  4270. size += 2 + 1;
  4271. }
  4272. if (HasDeprecated) {
  4273. size += 2 + 1;
  4274. }
  4275. if (HasCcEnableArenas) {
  4276. size += 2 + 1;
  4277. }
  4278. if (HasObjcClassPrefix) {
  4279. size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
  4280. }
  4281. if (HasCsharpNamespace) {
  4282. size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
  4283. }
  4284. if (HasSwiftPrefix) {
  4285. size += 2 + pb::CodedOutputStream.ComputeStringSize(SwiftPrefix);
  4286. }
  4287. if (HasPhpClassPrefix) {
  4288. size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpClassPrefix);
  4289. }
  4290. if (HasPhpNamespace) {
  4291. size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace);
  4292. }
  4293. if (HasPhpMetadataNamespace) {
  4294. size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpMetadataNamespace);
  4295. }
  4296. if (HasRubyPackage) {
  4297. size += 2 + pb::CodedOutputStream.ComputeStringSize(RubyPackage);
  4298. }
  4299. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4300. if (_unknownFields != null) {
  4301. size += _unknownFields.CalculateSize();
  4302. }
  4303. return size;
  4304. }
  4305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4306. public void MergeFrom(FileOptions other) {
  4307. if (other == null) {
  4308. return;
  4309. }
  4310. if (other.HasJavaPackage) {
  4311. JavaPackage = other.JavaPackage;
  4312. }
  4313. if (other.HasJavaOuterClassname) {
  4314. JavaOuterClassname = other.JavaOuterClassname;
  4315. }
  4316. if (other.HasJavaMultipleFiles) {
  4317. JavaMultipleFiles = other.JavaMultipleFiles;
  4318. }
  4319. if (other.HasJavaGenerateEqualsAndHash) {
  4320. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  4321. }
  4322. if (other.HasJavaStringCheckUtf8) {
  4323. JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
  4324. }
  4325. if (other.HasOptimizeFor) {
  4326. OptimizeFor = other.OptimizeFor;
  4327. }
  4328. if (other.HasGoPackage) {
  4329. GoPackage = other.GoPackage;
  4330. }
  4331. if (other.HasCcGenericServices) {
  4332. CcGenericServices = other.CcGenericServices;
  4333. }
  4334. if (other.HasJavaGenericServices) {
  4335. JavaGenericServices = other.JavaGenericServices;
  4336. }
  4337. if (other.HasPyGenericServices) {
  4338. PyGenericServices = other.PyGenericServices;
  4339. }
  4340. if (other.HasPhpGenericServices) {
  4341. PhpGenericServices = other.PhpGenericServices;
  4342. }
  4343. if (other.HasDeprecated) {
  4344. Deprecated = other.Deprecated;
  4345. }
  4346. if (other.HasCcEnableArenas) {
  4347. CcEnableArenas = other.CcEnableArenas;
  4348. }
  4349. if (other.HasObjcClassPrefix) {
  4350. ObjcClassPrefix = other.ObjcClassPrefix;
  4351. }
  4352. if (other.HasCsharpNamespace) {
  4353. CsharpNamespace = other.CsharpNamespace;
  4354. }
  4355. if (other.HasSwiftPrefix) {
  4356. SwiftPrefix = other.SwiftPrefix;
  4357. }
  4358. if (other.HasPhpClassPrefix) {
  4359. PhpClassPrefix = other.PhpClassPrefix;
  4360. }
  4361. if (other.HasPhpNamespace) {
  4362. PhpNamespace = other.PhpNamespace;
  4363. }
  4364. if (other.HasPhpMetadataNamespace) {
  4365. PhpMetadataNamespace = other.PhpMetadataNamespace;
  4366. }
  4367. if (other.HasRubyPackage) {
  4368. RubyPackage = other.RubyPackage;
  4369. }
  4370. uninterpretedOption_.Add(other.uninterpretedOption_);
  4371. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4374. public void MergeFrom(pb::CodedInputStream input) {
  4375. uint tag;
  4376. while ((tag = input.ReadTag()) != 0) {
  4377. switch(tag) {
  4378. default:
  4379. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4380. break;
  4381. case 10: {
  4382. JavaPackage = input.ReadString();
  4383. break;
  4384. }
  4385. case 66: {
  4386. JavaOuterClassname = input.ReadString();
  4387. break;
  4388. }
  4389. case 72: {
  4390. OptimizeFor = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
  4391. break;
  4392. }
  4393. case 80: {
  4394. JavaMultipleFiles = input.ReadBool();
  4395. break;
  4396. }
  4397. case 90: {
  4398. GoPackage = input.ReadString();
  4399. break;
  4400. }
  4401. case 128: {
  4402. CcGenericServices = input.ReadBool();
  4403. break;
  4404. }
  4405. case 136: {
  4406. JavaGenericServices = input.ReadBool();
  4407. break;
  4408. }
  4409. case 144: {
  4410. PyGenericServices = input.ReadBool();
  4411. break;
  4412. }
  4413. case 160: {
  4414. JavaGenerateEqualsAndHash = input.ReadBool();
  4415. break;
  4416. }
  4417. case 184: {
  4418. Deprecated = input.ReadBool();
  4419. break;
  4420. }
  4421. case 216: {
  4422. JavaStringCheckUtf8 = input.ReadBool();
  4423. break;
  4424. }
  4425. case 248: {
  4426. CcEnableArenas = input.ReadBool();
  4427. break;
  4428. }
  4429. case 290: {
  4430. ObjcClassPrefix = input.ReadString();
  4431. break;
  4432. }
  4433. case 298: {
  4434. CsharpNamespace = input.ReadString();
  4435. break;
  4436. }
  4437. case 314: {
  4438. SwiftPrefix = input.ReadString();
  4439. break;
  4440. }
  4441. case 322: {
  4442. PhpClassPrefix = input.ReadString();
  4443. break;
  4444. }
  4445. case 330: {
  4446. PhpNamespace = input.ReadString();
  4447. break;
  4448. }
  4449. case 336: {
  4450. PhpGenericServices = input.ReadBool();
  4451. break;
  4452. }
  4453. case 354: {
  4454. PhpMetadataNamespace = input.ReadString();
  4455. break;
  4456. }
  4457. case 362: {
  4458. RubyPackage = input.ReadString();
  4459. break;
  4460. }
  4461. case 7994: {
  4462. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4463. break;
  4464. }
  4465. }
  4466. }
  4467. }
  4468. #region Nested types
  4469. /// <summary>Container for nested types declared in the FileOptions message type.</summary>
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4471. public static partial class Types {
  4472. /// <summary>
  4473. /// Generated classes can be optimized for speed or code size.
  4474. /// </summary>
  4475. internal enum OptimizeMode {
  4476. /// <summary>
  4477. /// Generate complete code for parsing, serialization,
  4478. /// </summary>
  4479. [pbr::OriginalName("SPEED")] Speed = 1,
  4480. /// <summary>
  4481. /// etc.
  4482. /// </summary>
  4483. [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
  4484. /// <summary>
  4485. /// Generate code using MessageLite and the lite runtime.
  4486. /// </summary>
  4487. [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
  4488. }
  4489. }
  4490. #endregion
  4491. }
  4492. internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
  4493. private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
  4494. private pb::UnknownFieldSet _unknownFields;
  4495. private int _hasBits0;
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4497. public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
  4498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4499. public static pbr::MessageDescriptor Descriptor {
  4500. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
  4501. }
  4502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4503. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4504. get { return Descriptor; }
  4505. }
  4506. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4508. public MessageOptions() {
  4509. OnConstruction();
  4510. }
  4511. partial void OnConstruction();
  4512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4513. public MessageOptions(MessageOptions other) : this() {
  4514. _hasBits0 = other._hasBits0;
  4515. messageSetWireFormat_ = other.messageSetWireFormat_;
  4516. noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
  4517. deprecated_ = other.deprecated_;
  4518. mapEntry_ = other.mapEntry_;
  4519. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  4520. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4523. public MessageOptions Clone() {
  4524. return new MessageOptions(this);
  4525. }
  4526. /// <summary>Field number for the "message_set_wire_format" field.</summary>
  4527. public const int MessageSetWireFormatFieldNumber = 1;
  4528. private readonly static bool MessageSetWireFormatDefaultValue = false;
  4529. private bool messageSetWireFormat_;
  4530. /// <summary>
  4531. /// Set true to use the old proto1 MessageSet wire format for extensions.
  4532. /// This is provided for backwards-compatibility with the MessageSet wire
  4533. /// format. You should not use this for any other reason: It's less
  4534. /// efficient, has fewer features, and is more complicated.
  4535. ///
  4536. /// The message must be defined exactly as follows:
  4537. /// message Foo {
  4538. /// option message_set_wire_format = true;
  4539. /// extensions 4 to max;
  4540. /// }
  4541. /// Note that the message cannot have any defined fields; MessageSets only
  4542. /// have extensions.
  4543. ///
  4544. /// All extensions of your type must be singular messages; e.g. they cannot
  4545. /// be int32s, enums, or repeated messages.
  4546. ///
  4547. /// Because this is an option, the above two restrictions are not enforced by
  4548. /// the protocol compiler.
  4549. /// </summary>
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4551. public bool MessageSetWireFormat {
  4552. get { if ((_hasBits0 & 1) != 0) { return messageSetWireFormat_; } else { return MessageSetWireFormatDefaultValue; } }
  4553. set {
  4554. _hasBits0 |= 1;
  4555. messageSetWireFormat_ = value;
  4556. }
  4557. }
  4558. /// <summary>Gets whether the "message_set_wire_format" field is set</summary>
  4559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4560. public bool HasMessageSetWireFormat {
  4561. get { return (_hasBits0 & 1) != 0; }
  4562. }
  4563. /// <summary>Clears the value of the "message_set_wire_format" field</summary>
  4564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4565. public void ClearMessageSetWireFormat() {
  4566. _hasBits0 &= ~1;
  4567. }
  4568. /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
  4569. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  4570. private readonly static bool NoStandardDescriptorAccessorDefaultValue = false;
  4571. private bool noStandardDescriptorAccessor_;
  4572. /// <summary>
  4573. /// Disables the generation of the standard "descriptor()" accessor, which can
  4574. /// conflict with a field of the same name. This is meant to make migration
  4575. /// from proto1 easier; new code should avoid fields named "descriptor".
  4576. /// </summary>
  4577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4578. public bool NoStandardDescriptorAccessor {
  4579. get { if ((_hasBits0 & 2) != 0) { return noStandardDescriptorAccessor_; } else { return NoStandardDescriptorAccessorDefaultValue; } }
  4580. set {
  4581. _hasBits0 |= 2;
  4582. noStandardDescriptorAccessor_ = value;
  4583. }
  4584. }
  4585. /// <summary>Gets whether the "no_standard_descriptor_accessor" field is set</summary>
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4587. public bool HasNoStandardDescriptorAccessor {
  4588. get { return (_hasBits0 & 2) != 0; }
  4589. }
  4590. /// <summary>Clears the value of the "no_standard_descriptor_accessor" field</summary>
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4592. public void ClearNoStandardDescriptorAccessor() {
  4593. _hasBits0 &= ~2;
  4594. }
  4595. /// <summary>Field number for the "deprecated" field.</summary>
  4596. public const int DeprecatedFieldNumber = 3;
  4597. private readonly static bool DeprecatedDefaultValue = false;
  4598. private bool deprecated_;
  4599. /// <summary>
  4600. /// Is this message deprecated?
  4601. /// Depending on the target platform, this can emit Deprecated annotations
  4602. /// for the message, or it will be completely ignored; in the very least,
  4603. /// this is a formalization for deprecating messages.
  4604. /// </summary>
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4606. public bool Deprecated {
  4607. get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  4608. set {
  4609. _hasBits0 |= 4;
  4610. deprecated_ = value;
  4611. }
  4612. }
  4613. /// <summary>Gets whether the "deprecated" field is set</summary>
  4614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4615. public bool HasDeprecated {
  4616. get { return (_hasBits0 & 4) != 0; }
  4617. }
  4618. /// <summary>Clears the value of the "deprecated" field</summary>
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4620. public void ClearDeprecated() {
  4621. _hasBits0 &= ~4;
  4622. }
  4623. /// <summary>Field number for the "map_entry" field.</summary>
  4624. public const int MapEntryFieldNumber = 7;
  4625. private readonly static bool MapEntryDefaultValue = false;
  4626. private bool mapEntry_;
  4627. /// <summary>
  4628. /// Whether the message is an automatically generated map entry type for the
  4629. /// maps field.
  4630. ///
  4631. /// For maps fields:
  4632. /// map&lt;KeyType, ValueType> map_field = 1;
  4633. /// The parsed descriptor looks like:
  4634. /// message MapFieldEntry {
  4635. /// option map_entry = true;
  4636. /// optional KeyType key = 1;
  4637. /// optional ValueType value = 2;
  4638. /// }
  4639. /// repeated MapFieldEntry map_field = 1;
  4640. ///
  4641. /// Implementations may choose not to generate the map_entry=true message, but
  4642. /// use a native map in the target language to hold the keys and values.
  4643. /// The reflection APIs in such implementions still need to work as
  4644. /// if the field is a repeated message field.
  4645. ///
  4646. /// NOTE: Do not set the option in .proto files. Always use the maps syntax
  4647. /// instead. The option should only be implicitly set by the proto compiler
  4648. /// parser.
  4649. /// </summary>
  4650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4651. public bool MapEntry {
  4652. get { if ((_hasBits0 & 8) != 0) { return mapEntry_; } else { return MapEntryDefaultValue; } }
  4653. set {
  4654. _hasBits0 |= 8;
  4655. mapEntry_ = value;
  4656. }
  4657. }
  4658. /// <summary>Gets whether the "map_entry" field is set</summary>
  4659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4660. public bool HasMapEntry {
  4661. get { return (_hasBits0 & 8) != 0; }
  4662. }
  4663. /// <summary>Clears the value of the "map_entry" field</summary>
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4665. public void ClearMapEntry() {
  4666. _hasBits0 &= ~8;
  4667. }
  4668. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  4669. public const int UninterpretedOptionFieldNumber = 999;
  4670. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  4671. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  4672. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  4673. /// <summary>
  4674. /// The parser stores options it doesn't recognize here. See above.
  4675. /// </summary>
  4676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4677. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  4678. get { return uninterpretedOption_; }
  4679. }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4681. public override bool Equals(object other) {
  4682. return Equals(other as MessageOptions);
  4683. }
  4684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4685. public bool Equals(MessageOptions other) {
  4686. if (ReferenceEquals(other, null)) {
  4687. return false;
  4688. }
  4689. if (ReferenceEquals(other, this)) {
  4690. return true;
  4691. }
  4692. if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
  4693. if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
  4694. if (Deprecated != other.Deprecated) return false;
  4695. if (MapEntry != other.MapEntry) return false;
  4696. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  4697. return Equals(_unknownFields, other._unknownFields);
  4698. }
  4699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4700. public override int GetHashCode() {
  4701. int hash = 1;
  4702. if (HasMessageSetWireFormat) hash ^= MessageSetWireFormat.GetHashCode();
  4703. if (HasNoStandardDescriptorAccessor) hash ^= NoStandardDescriptorAccessor.GetHashCode();
  4704. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  4705. if (HasMapEntry) hash ^= MapEntry.GetHashCode();
  4706. hash ^= uninterpretedOption_.GetHashCode();
  4707. if (_unknownFields != null) {
  4708. hash ^= _unknownFields.GetHashCode();
  4709. }
  4710. return hash;
  4711. }
  4712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4713. public override string ToString() {
  4714. return pb::JsonFormatter.ToDiagnosticString(this);
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4717. public void WriteTo(pb::CodedOutputStream output) {
  4718. if (HasMessageSetWireFormat) {
  4719. output.WriteRawTag(8);
  4720. output.WriteBool(MessageSetWireFormat);
  4721. }
  4722. if (HasNoStandardDescriptorAccessor) {
  4723. output.WriteRawTag(16);
  4724. output.WriteBool(NoStandardDescriptorAccessor);
  4725. }
  4726. if (HasDeprecated) {
  4727. output.WriteRawTag(24);
  4728. output.WriteBool(Deprecated);
  4729. }
  4730. if (HasMapEntry) {
  4731. output.WriteRawTag(56);
  4732. output.WriteBool(MapEntry);
  4733. }
  4734. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4735. if (_unknownFields != null) {
  4736. _unknownFields.WriteTo(output);
  4737. }
  4738. }
  4739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4740. public int CalculateSize() {
  4741. int size = 0;
  4742. if (HasMessageSetWireFormat) {
  4743. size += 1 + 1;
  4744. }
  4745. if (HasNoStandardDescriptorAccessor) {
  4746. size += 1 + 1;
  4747. }
  4748. if (HasDeprecated) {
  4749. size += 1 + 1;
  4750. }
  4751. if (HasMapEntry) {
  4752. size += 1 + 1;
  4753. }
  4754. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4755. if (_unknownFields != null) {
  4756. size += _unknownFields.CalculateSize();
  4757. }
  4758. return size;
  4759. }
  4760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4761. public void MergeFrom(MessageOptions other) {
  4762. if (other == null) {
  4763. return;
  4764. }
  4765. if (other.HasMessageSetWireFormat) {
  4766. MessageSetWireFormat = other.MessageSetWireFormat;
  4767. }
  4768. if (other.HasNoStandardDescriptorAccessor) {
  4769. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  4770. }
  4771. if (other.HasDeprecated) {
  4772. Deprecated = other.Deprecated;
  4773. }
  4774. if (other.HasMapEntry) {
  4775. MapEntry = other.MapEntry;
  4776. }
  4777. uninterpretedOption_.Add(other.uninterpretedOption_);
  4778. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4781. public void MergeFrom(pb::CodedInputStream input) {
  4782. uint tag;
  4783. while ((tag = input.ReadTag()) != 0) {
  4784. switch(tag) {
  4785. default:
  4786. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4787. break;
  4788. case 8: {
  4789. MessageSetWireFormat = input.ReadBool();
  4790. break;
  4791. }
  4792. case 16: {
  4793. NoStandardDescriptorAccessor = input.ReadBool();
  4794. break;
  4795. }
  4796. case 24: {
  4797. Deprecated = input.ReadBool();
  4798. break;
  4799. }
  4800. case 56: {
  4801. MapEntry = input.ReadBool();
  4802. break;
  4803. }
  4804. case 7994: {
  4805. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4806. break;
  4807. }
  4808. }
  4809. }
  4810. }
  4811. }
  4812. internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
  4813. private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
  4814. private pb::UnknownFieldSet _unknownFields;
  4815. private int _hasBits0;
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4817. public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4819. public static pbr::MessageDescriptor Descriptor {
  4820. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4823. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4824. get { return Descriptor; }
  4825. }
  4826. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  4827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4828. public FieldOptions() {
  4829. OnConstruction();
  4830. }
  4831. partial void OnConstruction();
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4833. public FieldOptions(FieldOptions other) : this() {
  4834. _hasBits0 = other._hasBits0;
  4835. ctype_ = other.ctype_;
  4836. packed_ = other.packed_;
  4837. jstype_ = other.jstype_;
  4838. lazy_ = other.lazy_;
  4839. deprecated_ = other.deprecated_;
  4840. weak_ = other.weak_;
  4841. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  4842. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4843. }
  4844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4845. public FieldOptions Clone() {
  4846. return new FieldOptions(this);
  4847. }
  4848. /// <summary>Field number for the "ctype" field.</summary>
  4849. public const int CtypeFieldNumber = 1;
  4850. private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.CType CtypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.String;
  4851. private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_;
  4852. /// <summary>
  4853. /// The ctype option instructs the C++ code generator to use a different
  4854. /// representation of the field than it normally would. See the specific
  4855. /// options below. This option is not yet implemented in the open source
  4856. /// release -- sorry, we'll try to include it in a future version!
  4857. /// </summary>
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4859. public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
  4860. get { if ((_hasBits0 & 1) != 0) { return ctype_; } else { return CtypeDefaultValue; } }
  4861. set {
  4862. _hasBits0 |= 1;
  4863. ctype_ = value;
  4864. }
  4865. }
  4866. /// <summary>Gets whether the "ctype" field is set</summary>
  4867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4868. public bool HasCtype {
  4869. get { return (_hasBits0 & 1) != 0; }
  4870. }
  4871. /// <summary>Clears the value of the "ctype" field</summary>
  4872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4873. public void ClearCtype() {
  4874. _hasBits0 &= ~1;
  4875. }
  4876. /// <summary>Field number for the "packed" field.</summary>
  4877. public const int PackedFieldNumber = 2;
  4878. private readonly static bool PackedDefaultValue = false;
  4879. private bool packed_;
  4880. /// <summary>
  4881. /// The packed option can be enabled for repeated primitive fields to enable
  4882. /// a more efficient representation on the wire. Rather than repeatedly
  4883. /// writing the tag and type for each element, the entire array is encoded as
  4884. /// a single length-delimited blob. In proto3, only explicit setting it to
  4885. /// false will avoid using packed encoding.
  4886. /// </summary>
  4887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4888. public bool Packed {
  4889. get { if ((_hasBits0 & 2) != 0) { return packed_; } else { return PackedDefaultValue; } }
  4890. set {
  4891. _hasBits0 |= 2;
  4892. packed_ = value;
  4893. }
  4894. }
  4895. /// <summary>Gets whether the "packed" field is set</summary>
  4896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4897. public bool HasPacked {
  4898. get { return (_hasBits0 & 2) != 0; }
  4899. }
  4900. /// <summary>Clears the value of the "packed" field</summary>
  4901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4902. public void ClearPacked() {
  4903. _hasBits0 &= ~2;
  4904. }
  4905. /// <summary>Field number for the "jstype" field.</summary>
  4906. public const int JstypeFieldNumber = 6;
  4907. private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.JSType JstypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JsNormal;
  4908. private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_;
  4909. /// <summary>
  4910. /// The jstype option determines the JavaScript type used for values of the
  4911. /// field. The option is permitted only for 64 bit integral and fixed types
  4912. /// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
  4913. /// is represented as JavaScript string, which avoids loss of precision that
  4914. /// can happen when a large value is converted to a floating point JavaScript.
  4915. /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
  4916. /// use the JavaScript "number" type. The behavior of the default option
  4917. /// JS_NORMAL is implementation dependent.
  4918. ///
  4919. /// This option is an enum to permit additional types to be added, e.g.
  4920. /// goog.math.Integer.
  4921. /// </summary>
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4923. public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
  4924. get { if ((_hasBits0 & 16) != 0) { return jstype_; } else { return JstypeDefaultValue; } }
  4925. set {
  4926. _hasBits0 |= 16;
  4927. jstype_ = value;
  4928. }
  4929. }
  4930. /// <summary>Gets whether the "jstype" field is set</summary>
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4932. public bool HasJstype {
  4933. get { return (_hasBits0 & 16) != 0; }
  4934. }
  4935. /// <summary>Clears the value of the "jstype" field</summary>
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4937. public void ClearJstype() {
  4938. _hasBits0 &= ~16;
  4939. }
  4940. /// <summary>Field number for the "lazy" field.</summary>
  4941. public const int LazyFieldNumber = 5;
  4942. private readonly static bool LazyDefaultValue = false;
  4943. private bool lazy_;
  4944. /// <summary>
  4945. /// Should this field be parsed lazily? Lazy applies only to message-type
  4946. /// fields. It means that when the outer message is initially parsed, the
  4947. /// inner message's contents will not be parsed but instead stored in encoded
  4948. /// form. The inner message will actually be parsed when it is first accessed.
  4949. ///
  4950. /// This is only a hint. Implementations are free to choose whether to use
  4951. /// eager or lazy parsing regardless of the value of this option. However,
  4952. /// setting this option true suggests that the protocol author believes that
  4953. /// using lazy parsing on this field is worth the additional bookkeeping
  4954. /// overhead typically needed to implement it.
  4955. ///
  4956. /// This option does not affect the public interface of any generated code;
  4957. /// all method signatures remain the same. Furthermore, thread-safety of the
  4958. /// interface is not affected by this option; const methods remain safe to
  4959. /// call from multiple threads concurrently, while non-const methods continue
  4960. /// to require exclusive access.
  4961. ///
  4962. /// Note that implementations may choose not to check required fields within
  4963. /// a lazy sub-message. That is, calling IsInitialized() on the outer message
  4964. /// may return true even if the inner message has missing required fields.
  4965. /// This is necessary because otherwise the inner message would have to be
  4966. /// parsed in order to perform the check, defeating the purpose of lazy
  4967. /// parsing. An implementation which chooses not to check required fields
  4968. /// must be consistent about it. That is, for any particular sub-message, the
  4969. /// implementation must either *always* check its required fields, or *never*
  4970. /// check its required fields, regardless of whether or not the message has
  4971. /// been parsed.
  4972. /// </summary>
  4973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4974. public bool Lazy {
  4975. get { if ((_hasBits0 & 8) != 0) { return lazy_; } else { return LazyDefaultValue; } }
  4976. set {
  4977. _hasBits0 |= 8;
  4978. lazy_ = value;
  4979. }
  4980. }
  4981. /// <summary>Gets whether the "lazy" field is set</summary>
  4982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4983. public bool HasLazy {
  4984. get { return (_hasBits0 & 8) != 0; }
  4985. }
  4986. /// <summary>Clears the value of the "lazy" field</summary>
  4987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4988. public void ClearLazy() {
  4989. _hasBits0 &= ~8;
  4990. }
  4991. /// <summary>Field number for the "deprecated" field.</summary>
  4992. public const int DeprecatedFieldNumber = 3;
  4993. private readonly static bool DeprecatedDefaultValue = false;
  4994. private bool deprecated_;
  4995. /// <summary>
  4996. /// Is this field deprecated?
  4997. /// Depending on the target platform, this can emit Deprecated annotations
  4998. /// for accessors, or it will be completely ignored; in the very least, this
  4999. /// is a formalization for deprecating fields.
  5000. /// </summary>
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5002. public bool Deprecated {
  5003. get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  5004. set {
  5005. _hasBits0 |= 4;
  5006. deprecated_ = value;
  5007. }
  5008. }
  5009. /// <summary>Gets whether the "deprecated" field is set</summary>
  5010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5011. public bool HasDeprecated {
  5012. get { return (_hasBits0 & 4) != 0; }
  5013. }
  5014. /// <summary>Clears the value of the "deprecated" field</summary>
  5015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5016. public void ClearDeprecated() {
  5017. _hasBits0 &= ~4;
  5018. }
  5019. /// <summary>Field number for the "weak" field.</summary>
  5020. public const int WeakFieldNumber = 10;
  5021. private readonly static bool WeakDefaultValue = false;
  5022. private bool weak_;
  5023. /// <summary>
  5024. /// For Google-internal migration only. Do not use.
  5025. /// </summary>
  5026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5027. public bool Weak {
  5028. get { if ((_hasBits0 & 32) != 0) { return weak_; } else { return WeakDefaultValue; } }
  5029. set {
  5030. _hasBits0 |= 32;
  5031. weak_ = value;
  5032. }
  5033. }
  5034. /// <summary>Gets whether the "weak" field is set</summary>
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5036. public bool HasWeak {
  5037. get { return (_hasBits0 & 32) != 0; }
  5038. }
  5039. /// <summary>Clears the value of the "weak" field</summary>
  5040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5041. public void ClearWeak() {
  5042. _hasBits0 &= ~32;
  5043. }
  5044. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5045. public const int UninterpretedOptionFieldNumber = 999;
  5046. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5047. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5048. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5049. /// <summary>
  5050. /// The parser stores options it doesn't recognize here. See above.
  5051. /// </summary>
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5053. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5054. get { return uninterpretedOption_; }
  5055. }
  5056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5057. public override bool Equals(object other) {
  5058. return Equals(other as FieldOptions);
  5059. }
  5060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5061. public bool Equals(FieldOptions other) {
  5062. if (ReferenceEquals(other, null)) {
  5063. return false;
  5064. }
  5065. if (ReferenceEquals(other, this)) {
  5066. return true;
  5067. }
  5068. if (Ctype != other.Ctype) return false;
  5069. if (Packed != other.Packed) return false;
  5070. if (Jstype != other.Jstype) return false;
  5071. if (Lazy != other.Lazy) return false;
  5072. if (Deprecated != other.Deprecated) return false;
  5073. if (Weak != other.Weak) return false;
  5074. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5075. return Equals(_unknownFields, other._unknownFields);
  5076. }
  5077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5078. public override int GetHashCode() {
  5079. int hash = 1;
  5080. if (HasCtype) hash ^= Ctype.GetHashCode();
  5081. if (HasPacked) hash ^= Packed.GetHashCode();
  5082. if (HasJstype) hash ^= Jstype.GetHashCode();
  5083. if (HasLazy) hash ^= Lazy.GetHashCode();
  5084. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  5085. if (HasWeak) hash ^= Weak.GetHashCode();
  5086. hash ^= uninterpretedOption_.GetHashCode();
  5087. if (_unknownFields != null) {
  5088. hash ^= _unknownFields.GetHashCode();
  5089. }
  5090. return hash;
  5091. }
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5093. public override string ToString() {
  5094. return pb::JsonFormatter.ToDiagnosticString(this);
  5095. }
  5096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5097. public void WriteTo(pb::CodedOutputStream output) {
  5098. if (HasCtype) {
  5099. output.WriteRawTag(8);
  5100. output.WriteEnum((int) Ctype);
  5101. }
  5102. if (HasPacked) {
  5103. output.WriteRawTag(16);
  5104. output.WriteBool(Packed);
  5105. }
  5106. if (HasDeprecated) {
  5107. output.WriteRawTag(24);
  5108. output.WriteBool(Deprecated);
  5109. }
  5110. if (HasLazy) {
  5111. output.WriteRawTag(40);
  5112. output.WriteBool(Lazy);
  5113. }
  5114. if (HasJstype) {
  5115. output.WriteRawTag(48);
  5116. output.WriteEnum((int) Jstype);
  5117. }
  5118. if (HasWeak) {
  5119. output.WriteRawTag(80);
  5120. output.WriteBool(Weak);
  5121. }
  5122. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  5123. if (_unknownFields != null) {
  5124. _unknownFields.WriteTo(output);
  5125. }
  5126. }
  5127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5128. public int CalculateSize() {
  5129. int size = 0;
  5130. if (HasCtype) {
  5131. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
  5132. }
  5133. if (HasPacked) {
  5134. size += 1 + 1;
  5135. }
  5136. if (HasJstype) {
  5137. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
  5138. }
  5139. if (HasLazy) {
  5140. size += 1 + 1;
  5141. }
  5142. if (HasDeprecated) {
  5143. size += 1 + 1;
  5144. }
  5145. if (HasWeak) {
  5146. size += 1 + 1;
  5147. }
  5148. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  5149. if (_unknownFields != null) {
  5150. size += _unknownFields.CalculateSize();
  5151. }
  5152. return size;
  5153. }
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5155. public void MergeFrom(FieldOptions other) {
  5156. if (other == null) {
  5157. return;
  5158. }
  5159. if (other.HasCtype) {
  5160. Ctype = other.Ctype;
  5161. }
  5162. if (other.HasPacked) {
  5163. Packed = other.Packed;
  5164. }
  5165. if (other.HasJstype) {
  5166. Jstype = other.Jstype;
  5167. }
  5168. if (other.HasLazy) {
  5169. Lazy = other.Lazy;
  5170. }
  5171. if (other.HasDeprecated) {
  5172. Deprecated = other.Deprecated;
  5173. }
  5174. if (other.HasWeak) {
  5175. Weak = other.Weak;
  5176. }
  5177. uninterpretedOption_.Add(other.uninterpretedOption_);
  5178. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5179. }
  5180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5181. public void MergeFrom(pb::CodedInputStream input) {
  5182. uint tag;
  5183. while ((tag = input.ReadTag()) != 0) {
  5184. switch(tag) {
  5185. default:
  5186. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  5187. break;
  5188. case 8: {
  5189. Ctype = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
  5190. break;
  5191. }
  5192. case 16: {
  5193. Packed = input.ReadBool();
  5194. break;
  5195. }
  5196. case 24: {
  5197. Deprecated = input.ReadBool();
  5198. break;
  5199. }
  5200. case 40: {
  5201. Lazy = input.ReadBool();
  5202. break;
  5203. }
  5204. case 48: {
  5205. Jstype = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
  5206. break;
  5207. }
  5208. case 80: {
  5209. Weak = input.ReadBool();
  5210. break;
  5211. }
  5212. case 7994: {
  5213. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  5214. break;
  5215. }
  5216. }
  5217. }
  5218. }
  5219. #region Nested types
  5220. /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
  5221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5222. public static partial class Types {
  5223. internal enum CType {
  5224. /// <summary>
  5225. /// Default mode.
  5226. /// </summary>
  5227. [pbr::OriginalName("STRING")] String = 0,
  5228. [pbr::OriginalName("CORD")] Cord = 1,
  5229. [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
  5230. }
  5231. internal enum JSType {
  5232. /// <summary>
  5233. /// Use the default type.
  5234. /// </summary>
  5235. [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
  5236. /// <summary>
  5237. /// Use JavaScript strings.
  5238. /// </summary>
  5239. [pbr::OriginalName("JS_STRING")] JsString = 1,
  5240. /// <summary>
  5241. /// Use JavaScript numbers.
  5242. /// </summary>
  5243. [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
  5244. }
  5245. }
  5246. #endregion
  5247. }
  5248. internal sealed partial class OneofOptions : pb::IMessage<OneofOptions> {
  5249. private static readonly pb::MessageParser<OneofOptions> _parser = new pb::MessageParser<OneofOptions>(() => new OneofOptions());
  5250. private pb::UnknownFieldSet _unknownFields;
  5251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5252. public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } }
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5254. public static pbr::MessageDescriptor Descriptor {
  5255. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
  5256. }
  5257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5258. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5259. get { return Descriptor; }
  5260. }
  5261. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  5262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5263. public OneofOptions() {
  5264. OnConstruction();
  5265. }
  5266. partial void OnConstruction();
  5267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5268. public OneofOptions(OneofOptions other) : this() {
  5269. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  5270. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5273. public OneofOptions Clone() {
  5274. return new OneofOptions(this);
  5275. }
  5276. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5277. public const int UninterpretedOptionFieldNumber = 999;
  5278. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5279. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5280. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5281. /// <summary>
  5282. /// The parser stores options it doesn't recognize here. See above.
  5283. /// </summary>
  5284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5285. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5286. get { return uninterpretedOption_; }
  5287. }
  5288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5289. public override bool Equals(object other) {
  5290. return Equals(other as OneofOptions);
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5293. public bool Equals(OneofOptions other) {
  5294. if (ReferenceEquals(other, null)) {
  5295. return false;
  5296. }
  5297. if (ReferenceEquals(other, this)) {
  5298. return true;
  5299. }
  5300. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5301. return Equals(_unknownFields, other._unknownFields);
  5302. }
  5303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5304. public override int GetHashCode() {
  5305. int hash = 1;
  5306. hash ^= uninterpretedOption_.GetHashCode();
  5307. if (_unknownFields != null) {
  5308. hash ^= _unknownFields.GetHashCode();
  5309. }
  5310. return hash;
  5311. }
  5312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5313. public override string ToString() {
  5314. return pb::JsonFormatter.ToDiagnosticString(this);
  5315. }
  5316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5317. public void WriteTo(pb::CodedOutputStream output) {
  5318. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  5319. if (_unknownFields != null) {
  5320. _unknownFields.WriteTo(output);
  5321. }
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5324. public int CalculateSize() {
  5325. int size = 0;
  5326. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  5327. if (_unknownFields != null) {
  5328. size += _unknownFields.CalculateSize();
  5329. }
  5330. return size;
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5333. public void MergeFrom(OneofOptions other) {
  5334. if (other == null) {
  5335. return;
  5336. }
  5337. uninterpretedOption_.Add(other.uninterpretedOption_);
  5338. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5341. public void MergeFrom(pb::CodedInputStream input) {
  5342. uint tag;
  5343. while ((tag = input.ReadTag()) != 0) {
  5344. switch(tag) {
  5345. default:
  5346. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  5347. break;
  5348. case 7994: {
  5349. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  5350. break;
  5351. }
  5352. }
  5353. }
  5354. }
  5355. }
  5356. internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
  5357. private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
  5358. private pb::UnknownFieldSet _unknownFields;
  5359. private int _hasBits0;
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5361. public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
  5362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5363. public static pbr::MessageDescriptor Descriptor {
  5364. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5367. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5368. get { return Descriptor; }
  5369. }
  5370. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5372. public EnumOptions() {
  5373. OnConstruction();
  5374. }
  5375. partial void OnConstruction();
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5377. public EnumOptions(EnumOptions other) : this() {
  5378. _hasBits0 = other._hasBits0;
  5379. allowAlias_ = other.allowAlias_;
  5380. deprecated_ = other.deprecated_;
  5381. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  5382. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5383. }
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5385. public EnumOptions Clone() {
  5386. return new EnumOptions(this);
  5387. }
  5388. /// <summary>Field number for the "allow_alias" field.</summary>
  5389. public const int AllowAliasFieldNumber = 2;
  5390. private readonly static bool AllowAliasDefaultValue = false;
  5391. private bool allowAlias_;
  5392. /// <summary>
  5393. /// Set this option to true to allow mapping different tag names to the same
  5394. /// value.
  5395. /// </summary>
  5396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5397. public bool AllowAlias {
  5398. get { if ((_hasBits0 & 1) != 0) { return allowAlias_; } else { return AllowAliasDefaultValue; } }
  5399. set {
  5400. _hasBits0 |= 1;
  5401. allowAlias_ = value;
  5402. }
  5403. }
  5404. /// <summary>Gets whether the "allow_alias" field is set</summary>
  5405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5406. public bool HasAllowAlias {
  5407. get { return (_hasBits0 & 1) != 0; }
  5408. }
  5409. /// <summary>Clears the value of the "allow_alias" field</summary>
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5411. public void ClearAllowAlias() {
  5412. _hasBits0 &= ~1;
  5413. }
  5414. /// <summary>Field number for the "deprecated" field.</summary>
  5415. public const int DeprecatedFieldNumber = 3;
  5416. private readonly static bool DeprecatedDefaultValue = false;
  5417. private bool deprecated_;
  5418. /// <summary>
  5419. /// Is this enum deprecated?
  5420. /// Depending on the target platform, this can emit Deprecated annotations
  5421. /// for the enum, or it will be completely ignored; in the very least, this
  5422. /// is a formalization for deprecating enums.
  5423. /// </summary>
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5425. public bool Deprecated {
  5426. get { if ((_hasBits0 & 2) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  5427. set {
  5428. _hasBits0 |= 2;
  5429. deprecated_ = value;
  5430. }
  5431. }
  5432. /// <summary>Gets whether the "deprecated" field is set</summary>
  5433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5434. public bool HasDeprecated {
  5435. get { return (_hasBits0 & 2) != 0; }
  5436. }
  5437. /// <summary>Clears the value of the "deprecated" field</summary>
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5439. public void ClearDeprecated() {
  5440. _hasBits0 &= ~2;
  5441. }
  5442. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5443. public const int UninterpretedOptionFieldNumber = 999;
  5444. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5445. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5446. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5447. /// <summary>
  5448. /// The parser stores options it doesn't recognize here. See above.
  5449. /// </summary>
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5451. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5452. get { return uninterpretedOption_; }
  5453. }
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5455. public override bool Equals(object other) {
  5456. return Equals(other as EnumOptions);
  5457. }
  5458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5459. public bool Equals(EnumOptions other) {
  5460. if (ReferenceEquals(other, null)) {
  5461. return false;
  5462. }
  5463. if (ReferenceEquals(other, this)) {
  5464. return true;
  5465. }
  5466. if (AllowAlias != other.AllowAlias) return false;
  5467. if (Deprecated != other.Deprecated) return false;
  5468. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5469. return Equals(_unknownFields, other._unknownFields);
  5470. }
  5471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5472. public override int GetHashCode() {
  5473. int hash = 1;
  5474. if (HasAllowAlias) hash ^= AllowAlias.GetHashCode();
  5475. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  5476. hash ^= uninterpretedOption_.GetHashCode();
  5477. if (_unknownFields != null) {
  5478. hash ^= _unknownFields.GetHashCode();
  5479. }
  5480. return hash;
  5481. }
  5482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5483. public override string ToString() {
  5484. return pb::JsonFormatter.ToDiagnosticString(this);
  5485. }
  5486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5487. public void WriteTo(pb::CodedOutputStream output) {
  5488. if (HasAllowAlias) {
  5489. output.WriteRawTag(16);
  5490. output.WriteBool(AllowAlias);
  5491. }
  5492. if (HasDeprecated) {
  5493. output.WriteRawTag(24);
  5494. output.WriteBool(Deprecated);
  5495. }
  5496. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  5497. if (_unknownFields != null) {
  5498. _unknownFields.WriteTo(output);
  5499. }
  5500. }
  5501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5502. public int CalculateSize() {
  5503. int size = 0;
  5504. if (HasAllowAlias) {
  5505. size += 1 + 1;
  5506. }
  5507. if (HasDeprecated) {
  5508. size += 1 + 1;
  5509. }
  5510. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  5511. if (_unknownFields != null) {
  5512. size += _unknownFields.CalculateSize();
  5513. }
  5514. return size;
  5515. }
  5516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5517. public void MergeFrom(EnumOptions other) {
  5518. if (other == null) {
  5519. return;
  5520. }
  5521. if (other.HasAllowAlias) {
  5522. AllowAlias = other.AllowAlias;
  5523. }
  5524. if (other.HasDeprecated) {
  5525. Deprecated = other.Deprecated;
  5526. }
  5527. uninterpretedOption_.Add(other.uninterpretedOption_);
  5528. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5531. public void MergeFrom(pb::CodedInputStream input) {
  5532. uint tag;
  5533. while ((tag = input.ReadTag()) != 0) {
  5534. switch(tag) {
  5535. default:
  5536. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  5537. break;
  5538. case 16: {
  5539. AllowAlias = input.ReadBool();
  5540. break;
  5541. }
  5542. case 24: {
  5543. Deprecated = input.ReadBool();
  5544. break;
  5545. }
  5546. case 7994: {
  5547. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  5548. break;
  5549. }
  5550. }
  5551. }
  5552. }
  5553. }
  5554. internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
  5555. private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
  5556. private pb::UnknownFieldSet _unknownFields;
  5557. private int _hasBits0;
  5558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5559. public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
  5560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5561. public static pbr::MessageDescriptor Descriptor {
  5562. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
  5563. }
  5564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5565. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5566. get { return Descriptor; }
  5567. }
  5568. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  5569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5570. public EnumValueOptions() {
  5571. OnConstruction();
  5572. }
  5573. partial void OnConstruction();
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5575. public EnumValueOptions(EnumValueOptions other) : this() {
  5576. _hasBits0 = other._hasBits0;
  5577. deprecated_ = other.deprecated_;
  5578. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  5579. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5580. }
  5581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5582. public EnumValueOptions Clone() {
  5583. return new EnumValueOptions(this);
  5584. }
  5585. /// <summary>Field number for the "deprecated" field.</summary>
  5586. public const int DeprecatedFieldNumber = 1;
  5587. private readonly static bool DeprecatedDefaultValue = false;
  5588. private bool deprecated_;
  5589. /// <summary>
  5590. /// Is this enum value deprecated?
  5591. /// Depending on the target platform, this can emit Deprecated annotations
  5592. /// for the enum value, or it will be completely ignored; in the very least,
  5593. /// this is a formalization for deprecating enum values.
  5594. /// </summary>
  5595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5596. public bool Deprecated {
  5597. get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  5598. set {
  5599. _hasBits0 |= 1;
  5600. deprecated_ = value;
  5601. }
  5602. }
  5603. /// <summary>Gets whether the "deprecated" field is set</summary>
  5604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5605. public bool HasDeprecated {
  5606. get { return (_hasBits0 & 1) != 0; }
  5607. }
  5608. /// <summary>Clears the value of the "deprecated" field</summary>
  5609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5610. public void ClearDeprecated() {
  5611. _hasBits0 &= ~1;
  5612. }
  5613. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5614. public const int UninterpretedOptionFieldNumber = 999;
  5615. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5616. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5617. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5618. /// <summary>
  5619. /// The parser stores options it doesn't recognize here. See above.
  5620. /// </summary>
  5621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5622. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5623. get { return uninterpretedOption_; }
  5624. }
  5625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5626. public override bool Equals(object other) {
  5627. return Equals(other as EnumValueOptions);
  5628. }
  5629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5630. public bool Equals(EnumValueOptions other) {
  5631. if (ReferenceEquals(other, null)) {
  5632. return false;
  5633. }
  5634. if (ReferenceEquals(other, this)) {
  5635. return true;
  5636. }
  5637. if (Deprecated != other.Deprecated) return false;
  5638. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5639. return Equals(_unknownFields, other._unknownFields);
  5640. }
  5641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5642. public override int GetHashCode() {
  5643. int hash = 1;
  5644. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  5645. hash ^= uninterpretedOption_.GetHashCode();
  5646. if (_unknownFields != null) {
  5647. hash ^= _unknownFields.GetHashCode();
  5648. }
  5649. return hash;
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5652. public override string ToString() {
  5653. return pb::JsonFormatter.ToDiagnosticString(this);
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5656. public void WriteTo(pb::CodedOutputStream output) {
  5657. if (HasDeprecated) {
  5658. output.WriteRawTag(8);
  5659. output.WriteBool(Deprecated);
  5660. }
  5661. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  5662. if (_unknownFields != null) {
  5663. _unknownFields.WriteTo(output);
  5664. }
  5665. }
  5666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5667. public int CalculateSize() {
  5668. int size = 0;
  5669. if (HasDeprecated) {
  5670. size += 1 + 1;
  5671. }
  5672. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  5673. if (_unknownFields != null) {
  5674. size += _unknownFields.CalculateSize();
  5675. }
  5676. return size;
  5677. }
  5678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5679. public void MergeFrom(EnumValueOptions other) {
  5680. if (other == null) {
  5681. return;
  5682. }
  5683. if (other.HasDeprecated) {
  5684. Deprecated = other.Deprecated;
  5685. }
  5686. uninterpretedOption_.Add(other.uninterpretedOption_);
  5687. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5688. }
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5690. public void MergeFrom(pb::CodedInputStream input) {
  5691. uint tag;
  5692. while ((tag = input.ReadTag()) != 0) {
  5693. switch(tag) {
  5694. default:
  5695. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  5696. break;
  5697. case 8: {
  5698. Deprecated = input.ReadBool();
  5699. break;
  5700. }
  5701. case 7994: {
  5702. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  5703. break;
  5704. }
  5705. }
  5706. }
  5707. }
  5708. }
  5709. internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
  5710. private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
  5711. private pb::UnknownFieldSet _unknownFields;
  5712. private int _hasBits0;
  5713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5714. public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
  5715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5716. public static pbr::MessageDescriptor Descriptor {
  5717. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
  5718. }
  5719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5720. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5721. get { return Descriptor; }
  5722. }
  5723. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  5724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5725. public ServiceOptions() {
  5726. OnConstruction();
  5727. }
  5728. partial void OnConstruction();
  5729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5730. public ServiceOptions(ServiceOptions other) : this() {
  5731. _hasBits0 = other._hasBits0;
  5732. deprecated_ = other.deprecated_;
  5733. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  5734. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5735. }
  5736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5737. public ServiceOptions Clone() {
  5738. return new ServiceOptions(this);
  5739. }
  5740. /// <summary>Field number for the "deprecated" field.</summary>
  5741. public const int DeprecatedFieldNumber = 33;
  5742. private readonly static bool DeprecatedDefaultValue = false;
  5743. private bool deprecated_;
  5744. /// <summary>
  5745. /// Is this service deprecated?
  5746. /// Depending on the target platform, this can emit Deprecated annotations
  5747. /// for the service, or it will be completely ignored; in the very least,
  5748. /// this is a formalization for deprecating services.
  5749. /// </summary>
  5750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5751. public bool Deprecated {
  5752. get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  5753. set {
  5754. _hasBits0 |= 1;
  5755. deprecated_ = value;
  5756. }
  5757. }
  5758. /// <summary>Gets whether the "deprecated" field is set</summary>
  5759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5760. public bool HasDeprecated {
  5761. get { return (_hasBits0 & 1) != 0; }
  5762. }
  5763. /// <summary>Clears the value of the "deprecated" field</summary>
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5765. public void ClearDeprecated() {
  5766. _hasBits0 &= ~1;
  5767. }
  5768. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5769. public const int UninterpretedOptionFieldNumber = 999;
  5770. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5771. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5772. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5773. /// <summary>
  5774. /// The parser stores options it doesn't recognize here. See above.
  5775. /// </summary>
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5777. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5778. get { return uninterpretedOption_; }
  5779. }
  5780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5781. public override bool Equals(object other) {
  5782. return Equals(other as ServiceOptions);
  5783. }
  5784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5785. public bool Equals(ServiceOptions other) {
  5786. if (ReferenceEquals(other, null)) {
  5787. return false;
  5788. }
  5789. if (ReferenceEquals(other, this)) {
  5790. return true;
  5791. }
  5792. if (Deprecated != other.Deprecated) return false;
  5793. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5794. return Equals(_unknownFields, other._unknownFields);
  5795. }
  5796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5797. public override int GetHashCode() {
  5798. int hash = 1;
  5799. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  5800. hash ^= uninterpretedOption_.GetHashCode();
  5801. if (_unknownFields != null) {
  5802. hash ^= _unknownFields.GetHashCode();
  5803. }
  5804. return hash;
  5805. }
  5806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5807. public override string ToString() {
  5808. return pb::JsonFormatter.ToDiagnosticString(this);
  5809. }
  5810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5811. public void WriteTo(pb::CodedOutputStream output) {
  5812. if (HasDeprecated) {
  5813. output.WriteRawTag(136, 2);
  5814. output.WriteBool(Deprecated);
  5815. }
  5816. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  5817. if (_unknownFields != null) {
  5818. _unknownFields.WriteTo(output);
  5819. }
  5820. }
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5822. public int CalculateSize() {
  5823. int size = 0;
  5824. if (HasDeprecated) {
  5825. size += 2 + 1;
  5826. }
  5827. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  5828. if (_unknownFields != null) {
  5829. size += _unknownFields.CalculateSize();
  5830. }
  5831. return size;
  5832. }
  5833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5834. public void MergeFrom(ServiceOptions other) {
  5835. if (other == null) {
  5836. return;
  5837. }
  5838. if (other.HasDeprecated) {
  5839. Deprecated = other.Deprecated;
  5840. }
  5841. uninterpretedOption_.Add(other.uninterpretedOption_);
  5842. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5843. }
  5844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5845. public void MergeFrom(pb::CodedInputStream input) {
  5846. uint tag;
  5847. while ((tag = input.ReadTag()) != 0) {
  5848. switch(tag) {
  5849. default:
  5850. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  5851. break;
  5852. case 264: {
  5853. Deprecated = input.ReadBool();
  5854. break;
  5855. }
  5856. case 7994: {
  5857. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  5858. break;
  5859. }
  5860. }
  5861. }
  5862. }
  5863. }
  5864. internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
  5865. private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
  5866. private pb::UnknownFieldSet _unknownFields;
  5867. private int _hasBits0;
  5868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5869. public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
  5870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5871. public static pbr::MessageDescriptor Descriptor {
  5872. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5875. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5876. get { return Descriptor; }
  5877. }
  5878. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  5879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5880. public MethodOptions() {
  5881. OnConstruction();
  5882. }
  5883. partial void OnConstruction();
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5885. public MethodOptions(MethodOptions other) : this() {
  5886. _hasBits0 = other._hasBits0;
  5887. deprecated_ = other.deprecated_;
  5888. idempotencyLevel_ = other.idempotencyLevel_;
  5889. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  5890. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5891. }
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5893. public MethodOptions Clone() {
  5894. return new MethodOptions(this);
  5895. }
  5896. /// <summary>Field number for the "deprecated" field.</summary>
  5897. public const int DeprecatedFieldNumber = 33;
  5898. private readonly static bool DeprecatedDefaultValue = false;
  5899. private bool deprecated_;
  5900. /// <summary>
  5901. /// Is this method deprecated?
  5902. /// Depending on the target platform, this can emit Deprecated annotations
  5903. /// for the method, or it will be completely ignored; in the very least,
  5904. /// this is a formalization for deprecating methods.
  5905. /// </summary>
  5906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5907. public bool Deprecated {
  5908. get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
  5909. set {
  5910. _hasBits0 |= 1;
  5911. deprecated_ = value;
  5912. }
  5913. }
  5914. /// <summary>Gets whether the "deprecated" field is set</summary>
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5916. public bool HasDeprecated {
  5917. get { return (_hasBits0 & 1) != 0; }
  5918. }
  5919. /// <summary>Clears the value of the "deprecated" field</summary>
  5920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5921. public void ClearDeprecated() {
  5922. _hasBits0 &= ~1;
  5923. }
  5924. /// <summary>Field number for the "idempotency_level" field.</summary>
  5925. public const int IdempotencyLevelFieldNumber = 34;
  5926. private readonly static global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevelDefaultValue = global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel.IdempotencyUnknown;
  5927. private global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel idempotencyLevel_;
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5929. public global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevel {
  5930. get { if ((_hasBits0 & 2) != 0) { return idempotencyLevel_; } else { return IdempotencyLevelDefaultValue; } }
  5931. set {
  5932. _hasBits0 |= 2;
  5933. idempotencyLevel_ = value;
  5934. }
  5935. }
  5936. /// <summary>Gets whether the "idempotency_level" field is set</summary>
  5937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5938. public bool HasIdempotencyLevel {
  5939. get { return (_hasBits0 & 2) != 0; }
  5940. }
  5941. /// <summary>Clears the value of the "idempotency_level" field</summary>
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5943. public void ClearIdempotencyLevel() {
  5944. _hasBits0 &= ~2;
  5945. }
  5946. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  5947. public const int UninterpretedOptionFieldNumber = 999;
  5948. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  5949. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  5950. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  5951. /// <summary>
  5952. /// The parser stores options it doesn't recognize here. See above.
  5953. /// </summary>
  5954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5955. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  5956. get { return uninterpretedOption_; }
  5957. }
  5958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5959. public override bool Equals(object other) {
  5960. return Equals(other as MethodOptions);
  5961. }
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5963. public bool Equals(MethodOptions other) {
  5964. if (ReferenceEquals(other, null)) {
  5965. return false;
  5966. }
  5967. if (ReferenceEquals(other, this)) {
  5968. return true;
  5969. }
  5970. if (Deprecated != other.Deprecated) return false;
  5971. if (IdempotencyLevel != other.IdempotencyLevel) return false;
  5972. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  5973. return Equals(_unknownFields, other._unknownFields);
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5976. public override int GetHashCode() {
  5977. int hash = 1;
  5978. if (HasDeprecated) hash ^= Deprecated.GetHashCode();
  5979. if (HasIdempotencyLevel) hash ^= IdempotencyLevel.GetHashCode();
  5980. hash ^= uninterpretedOption_.GetHashCode();
  5981. if (_unknownFields != null) {
  5982. hash ^= _unknownFields.GetHashCode();
  5983. }
  5984. return hash;
  5985. }
  5986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5987. public override string ToString() {
  5988. return pb::JsonFormatter.ToDiagnosticString(this);
  5989. }
  5990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5991. public void WriteTo(pb::CodedOutputStream output) {
  5992. if (HasDeprecated) {
  5993. output.WriteRawTag(136, 2);
  5994. output.WriteBool(Deprecated);
  5995. }
  5996. if (HasIdempotencyLevel) {
  5997. output.WriteRawTag(144, 2);
  5998. output.WriteEnum((int) IdempotencyLevel);
  5999. }
  6000. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  6001. if (_unknownFields != null) {
  6002. _unknownFields.WriteTo(output);
  6003. }
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6006. public int CalculateSize() {
  6007. int size = 0;
  6008. if (HasDeprecated) {
  6009. size += 2 + 1;
  6010. }
  6011. if (HasIdempotencyLevel) {
  6012. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdempotencyLevel);
  6013. }
  6014. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  6015. if (_unknownFields != null) {
  6016. size += _unknownFields.CalculateSize();
  6017. }
  6018. return size;
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6021. public void MergeFrom(MethodOptions other) {
  6022. if (other == null) {
  6023. return;
  6024. }
  6025. if (other.HasDeprecated) {
  6026. Deprecated = other.Deprecated;
  6027. }
  6028. if (other.HasIdempotencyLevel) {
  6029. IdempotencyLevel = other.IdempotencyLevel;
  6030. }
  6031. uninterpretedOption_.Add(other.uninterpretedOption_);
  6032. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  6033. }
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6035. public void MergeFrom(pb::CodedInputStream input) {
  6036. uint tag;
  6037. while ((tag = input.ReadTag()) != 0) {
  6038. switch(tag) {
  6039. default:
  6040. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  6041. break;
  6042. case 264: {
  6043. Deprecated = input.ReadBool();
  6044. break;
  6045. }
  6046. case 272: {
  6047. IdempotencyLevel = (global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) input.ReadEnum();
  6048. break;
  6049. }
  6050. case 7994: {
  6051. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  6052. break;
  6053. }
  6054. }
  6055. }
  6056. }
  6057. #region Nested types
  6058. /// <summary>Container for nested types declared in the MethodOptions message type.</summary>
  6059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6060. public static partial class Types {
  6061. /// <summary>
  6062. /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  6063. /// or neither? HTTP based RPC implementation may choose GET verb for safe
  6064. /// methods, and PUT verb for idempotent methods instead of the default POST.
  6065. /// </summary>
  6066. internal enum IdempotencyLevel {
  6067. [pbr::OriginalName("IDEMPOTENCY_UNKNOWN")] IdempotencyUnknown = 0,
  6068. /// <summary>
  6069. /// implies idempotent
  6070. /// </summary>
  6071. [pbr::OriginalName("NO_SIDE_EFFECTS")] NoSideEffects = 1,
  6072. /// <summary>
  6073. /// idempotent, but may have side effects
  6074. /// </summary>
  6075. [pbr::OriginalName("IDEMPOTENT")] Idempotent = 2,
  6076. }
  6077. }
  6078. #endregion
  6079. }
  6080. /// <summary>
  6081. /// A message representing a option the parser does not recognize. This only
  6082. /// appears in options protos created by the compiler::Parser class.
  6083. /// DescriptorPool resolves these when building Descriptor objects. Therefore,
  6084. /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
  6085. /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  6086. /// in them.
  6087. /// </summary>
  6088. internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
  6089. private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
  6090. private pb::UnknownFieldSet _unknownFields;
  6091. private int _hasBits0;
  6092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6093. public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
  6094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6095. public static pbr::MessageDescriptor Descriptor {
  6096. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
  6097. }
  6098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6099. pbr::MessageDescriptor pb::IMessage.Descriptor {
  6100. get { return Descriptor; }
  6101. }
  6102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6103. public UninterpretedOption() {
  6104. OnConstruction();
  6105. }
  6106. partial void OnConstruction();
  6107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6108. public UninterpretedOption(UninterpretedOption other) : this() {
  6109. _hasBits0 = other._hasBits0;
  6110. name_ = other.name_.Clone();
  6111. identifierValue_ = other.identifierValue_;
  6112. positiveIntValue_ = other.positiveIntValue_;
  6113. negativeIntValue_ = other.negativeIntValue_;
  6114. doubleValue_ = other.doubleValue_;
  6115. stringValue_ = other.stringValue_;
  6116. aggregateValue_ = other.aggregateValue_;
  6117. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  6118. }
  6119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6120. public UninterpretedOption Clone() {
  6121. return new UninterpretedOption(this);
  6122. }
  6123. /// <summary>Field number for the "name" field.</summary>
  6124. public const int NameFieldNumber = 2;
  6125. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
  6126. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
  6127. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
  6128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6129. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
  6130. get { return name_; }
  6131. }
  6132. /// <summary>Field number for the "identifier_value" field.</summary>
  6133. public const int IdentifierValueFieldNumber = 3;
  6134. private readonly static string IdentifierValueDefaultValue = "";
  6135. private string identifierValue_;
  6136. /// <summary>
  6137. /// The value of the uninterpreted option, in whatever type the tokenizer
  6138. /// identified it as during parsing. Exactly one of these should be set.
  6139. /// </summary>
  6140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6141. public string IdentifierValue {
  6142. get { return identifierValue_ ?? IdentifierValueDefaultValue; }
  6143. set {
  6144. identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6145. }
  6146. }
  6147. /// <summary>Gets whether the "identifier_value" field is set</summary>
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6149. public bool HasIdentifierValue {
  6150. get { return identifierValue_ != null; }
  6151. }
  6152. /// <summary>Clears the value of the "identifier_value" field</summary>
  6153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6154. public void ClearIdentifierValue() {
  6155. identifierValue_ = null;
  6156. }
  6157. /// <summary>Field number for the "positive_int_value" field.</summary>
  6158. public const int PositiveIntValueFieldNumber = 4;
  6159. private readonly static ulong PositiveIntValueDefaultValue = 0UL;
  6160. private ulong positiveIntValue_;
  6161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6162. public ulong PositiveIntValue {
  6163. get { if ((_hasBits0 & 1) != 0) { return positiveIntValue_; } else { return PositiveIntValueDefaultValue; } }
  6164. set {
  6165. _hasBits0 |= 1;
  6166. positiveIntValue_ = value;
  6167. }
  6168. }
  6169. /// <summary>Gets whether the "positive_int_value" field is set</summary>
  6170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6171. public bool HasPositiveIntValue {
  6172. get { return (_hasBits0 & 1) != 0; }
  6173. }
  6174. /// <summary>Clears the value of the "positive_int_value" field</summary>
  6175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6176. public void ClearPositiveIntValue() {
  6177. _hasBits0 &= ~1;
  6178. }
  6179. /// <summary>Field number for the "negative_int_value" field.</summary>
  6180. public const int NegativeIntValueFieldNumber = 5;
  6181. private readonly static long NegativeIntValueDefaultValue = 0L;
  6182. private long negativeIntValue_;
  6183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6184. public long NegativeIntValue {
  6185. get { if ((_hasBits0 & 2) != 0) { return negativeIntValue_; } else { return NegativeIntValueDefaultValue; } }
  6186. set {
  6187. _hasBits0 |= 2;
  6188. negativeIntValue_ = value;
  6189. }
  6190. }
  6191. /// <summary>Gets whether the "negative_int_value" field is set</summary>
  6192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6193. public bool HasNegativeIntValue {
  6194. get { return (_hasBits0 & 2) != 0; }
  6195. }
  6196. /// <summary>Clears the value of the "negative_int_value" field</summary>
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6198. public void ClearNegativeIntValue() {
  6199. _hasBits0 &= ~2;
  6200. }
  6201. /// <summary>Field number for the "double_value" field.</summary>
  6202. public const int DoubleValueFieldNumber = 6;
  6203. private readonly static double DoubleValueDefaultValue = 0D;
  6204. private double doubleValue_;
  6205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6206. public double DoubleValue {
  6207. get { if ((_hasBits0 & 4) != 0) { return doubleValue_; } else { return DoubleValueDefaultValue; } }
  6208. set {
  6209. _hasBits0 |= 4;
  6210. doubleValue_ = value;
  6211. }
  6212. }
  6213. /// <summary>Gets whether the "double_value" field is set</summary>
  6214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6215. public bool HasDoubleValue {
  6216. get { return (_hasBits0 & 4) != 0; }
  6217. }
  6218. /// <summary>Clears the value of the "double_value" field</summary>
  6219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6220. public void ClearDoubleValue() {
  6221. _hasBits0 &= ~4;
  6222. }
  6223. /// <summary>Field number for the "string_value" field.</summary>
  6224. public const int StringValueFieldNumber = 7;
  6225. private readonly static pb::ByteString StringValueDefaultValue = pb::ByteString.Empty;
  6226. private pb::ByteString stringValue_;
  6227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6228. public pb::ByteString StringValue {
  6229. get { return stringValue_ ?? StringValueDefaultValue; }
  6230. set {
  6231. stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6232. }
  6233. }
  6234. /// <summary>Gets whether the "string_value" field is set</summary>
  6235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6236. public bool HasStringValue {
  6237. get { return stringValue_ != null; }
  6238. }
  6239. /// <summary>Clears the value of the "string_value" field</summary>
  6240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6241. public void ClearStringValue() {
  6242. stringValue_ = null;
  6243. }
  6244. /// <summary>Field number for the "aggregate_value" field.</summary>
  6245. public const int AggregateValueFieldNumber = 8;
  6246. private readonly static string AggregateValueDefaultValue = "";
  6247. private string aggregateValue_;
  6248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6249. public string AggregateValue {
  6250. get { return aggregateValue_ ?? AggregateValueDefaultValue; }
  6251. set {
  6252. aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6253. }
  6254. }
  6255. /// <summary>Gets whether the "aggregate_value" field is set</summary>
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6257. public bool HasAggregateValue {
  6258. get { return aggregateValue_ != null; }
  6259. }
  6260. /// <summary>Clears the value of the "aggregate_value" field</summary>
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6262. public void ClearAggregateValue() {
  6263. aggregateValue_ = null;
  6264. }
  6265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6266. public override bool Equals(object other) {
  6267. return Equals(other as UninterpretedOption);
  6268. }
  6269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6270. public bool Equals(UninterpretedOption other) {
  6271. if (ReferenceEquals(other, null)) {
  6272. return false;
  6273. }
  6274. if (ReferenceEquals(other, this)) {
  6275. return true;
  6276. }
  6277. if(!name_.Equals(other.name_)) return false;
  6278. if (IdentifierValue != other.IdentifierValue) return false;
  6279. if (PositiveIntValue != other.PositiveIntValue) return false;
  6280. if (NegativeIntValue != other.NegativeIntValue) return false;
  6281. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
  6282. if (StringValue != other.StringValue) return false;
  6283. if (AggregateValue != other.AggregateValue) return false;
  6284. return Equals(_unknownFields, other._unknownFields);
  6285. }
  6286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6287. public override int GetHashCode() {
  6288. int hash = 1;
  6289. hash ^= name_.GetHashCode();
  6290. if (HasIdentifierValue) hash ^= IdentifierValue.GetHashCode();
  6291. if (HasPositiveIntValue) hash ^= PositiveIntValue.GetHashCode();
  6292. if (HasNegativeIntValue) hash ^= NegativeIntValue.GetHashCode();
  6293. if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue);
  6294. if (HasStringValue) hash ^= StringValue.GetHashCode();
  6295. if (HasAggregateValue) hash ^= AggregateValue.GetHashCode();
  6296. if (_unknownFields != null) {
  6297. hash ^= _unknownFields.GetHashCode();
  6298. }
  6299. return hash;
  6300. }
  6301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6302. public override string ToString() {
  6303. return pb::JsonFormatter.ToDiagnosticString(this);
  6304. }
  6305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6306. public void WriteTo(pb::CodedOutputStream output) {
  6307. name_.WriteTo(output, _repeated_name_codec);
  6308. if (HasIdentifierValue) {
  6309. output.WriteRawTag(26);
  6310. output.WriteString(IdentifierValue);
  6311. }
  6312. if (HasPositiveIntValue) {
  6313. output.WriteRawTag(32);
  6314. output.WriteUInt64(PositiveIntValue);
  6315. }
  6316. if (HasNegativeIntValue) {
  6317. output.WriteRawTag(40);
  6318. output.WriteInt64(NegativeIntValue);
  6319. }
  6320. if (HasDoubleValue) {
  6321. output.WriteRawTag(49);
  6322. output.WriteDouble(DoubleValue);
  6323. }
  6324. if (HasStringValue) {
  6325. output.WriteRawTag(58);
  6326. output.WriteBytes(StringValue);
  6327. }
  6328. if (HasAggregateValue) {
  6329. output.WriteRawTag(66);
  6330. output.WriteString(AggregateValue);
  6331. }
  6332. if (_unknownFields != null) {
  6333. _unknownFields.WriteTo(output);
  6334. }
  6335. }
  6336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6337. public int CalculateSize() {
  6338. int size = 0;
  6339. size += name_.CalculateSize(_repeated_name_codec);
  6340. if (HasIdentifierValue) {
  6341. size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
  6342. }
  6343. if (HasPositiveIntValue) {
  6344. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
  6345. }
  6346. if (HasNegativeIntValue) {
  6347. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
  6348. }
  6349. if (HasDoubleValue) {
  6350. size += 1 + 8;
  6351. }
  6352. if (HasStringValue) {
  6353. size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
  6354. }
  6355. if (HasAggregateValue) {
  6356. size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
  6357. }
  6358. if (_unknownFields != null) {
  6359. size += _unknownFields.CalculateSize();
  6360. }
  6361. return size;
  6362. }
  6363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6364. public void MergeFrom(UninterpretedOption other) {
  6365. if (other == null) {
  6366. return;
  6367. }
  6368. name_.Add(other.name_);
  6369. if (other.HasIdentifierValue) {
  6370. IdentifierValue = other.IdentifierValue;
  6371. }
  6372. if (other.HasPositiveIntValue) {
  6373. PositiveIntValue = other.PositiveIntValue;
  6374. }
  6375. if (other.HasNegativeIntValue) {
  6376. NegativeIntValue = other.NegativeIntValue;
  6377. }
  6378. if (other.HasDoubleValue) {
  6379. DoubleValue = other.DoubleValue;
  6380. }
  6381. if (other.HasStringValue) {
  6382. StringValue = other.StringValue;
  6383. }
  6384. if (other.HasAggregateValue) {
  6385. AggregateValue = other.AggregateValue;
  6386. }
  6387. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6390. public void MergeFrom(pb::CodedInputStream input) {
  6391. uint tag;
  6392. while ((tag = input.ReadTag()) != 0) {
  6393. switch(tag) {
  6394. default:
  6395. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  6396. return;
  6397. }
  6398. break;
  6399. case 18: {
  6400. name_.AddEntriesFrom(input, _repeated_name_codec);
  6401. break;
  6402. }
  6403. case 26: {
  6404. IdentifierValue = input.ReadString();
  6405. break;
  6406. }
  6407. case 32: {
  6408. PositiveIntValue = input.ReadUInt64();
  6409. break;
  6410. }
  6411. case 40: {
  6412. NegativeIntValue = input.ReadInt64();
  6413. break;
  6414. }
  6415. case 49: {
  6416. DoubleValue = input.ReadDouble();
  6417. break;
  6418. }
  6419. case 58: {
  6420. StringValue = input.ReadBytes();
  6421. break;
  6422. }
  6423. case 66: {
  6424. AggregateValue = input.ReadString();
  6425. break;
  6426. }
  6427. }
  6428. }
  6429. }
  6430. #region Nested types
  6431. /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
  6432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6433. public static partial class Types {
  6434. /// <summary>
  6435. /// The name of the uninterpreted option. Each string represents a segment in
  6436. /// a dot-separated name. is_extension is true iff a segment represents an
  6437. /// extension (denoted with parentheses in options specs in .proto files).
  6438. /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
  6439. /// "foo.(bar.baz).qux".
  6440. /// </summary>
  6441. internal sealed partial class NamePart : pb::IMessage<NamePart> {
  6442. private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
  6443. private pb::UnknownFieldSet _unknownFields;
  6444. private int _hasBits0;
  6445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6446. public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
  6447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6448. public static pbr::MessageDescriptor Descriptor {
  6449. get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
  6450. }
  6451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6452. pbr::MessageDescriptor pb::IMessage.Descriptor {
  6453. get { return Descriptor; }
  6454. }
  6455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6456. public NamePart() {
  6457. OnConstruction();
  6458. }
  6459. partial void OnConstruction();
  6460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6461. public NamePart(NamePart other) : this() {
  6462. _hasBits0 = other._hasBits0;
  6463. namePart_ = other.namePart_;
  6464. isExtension_ = other.isExtension_;
  6465. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  6466. }
  6467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6468. public NamePart Clone() {
  6469. return new NamePart(this);
  6470. }
  6471. /// <summary>Field number for the "name_part" field.</summary>
  6472. public const int NamePart_FieldNumber = 1;
  6473. private readonly static string NamePart_DefaultValue = "";
  6474. private string namePart_;
  6475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6476. public string NamePart_ {
  6477. get { return namePart_ ?? NamePart_DefaultValue; }
  6478. set {
  6479. namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6480. }
  6481. }
  6482. /// <summary>Gets whether the "name_part" field is set</summary>
  6483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6484. public bool HasNamePart_ {
  6485. get { return namePart_ != null; }
  6486. }
  6487. /// <summary>Clears the value of the "name_part" field</summary>
  6488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6489. public void ClearNamePart_() {
  6490. namePart_ = null;
  6491. }
  6492. /// <summary>Field number for the "is_extension" field.</summary>
  6493. public const int IsExtensionFieldNumber = 2;
  6494. private readonly static bool IsExtensionDefaultValue = false;
  6495. private bool isExtension_;
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6497. public bool IsExtension {
  6498. get { if ((_hasBits0 & 1) != 0) { return isExtension_; } else { return IsExtensionDefaultValue; } }
  6499. set {
  6500. _hasBits0 |= 1;
  6501. isExtension_ = value;
  6502. }
  6503. }
  6504. /// <summary>Gets whether the "is_extension" field is set</summary>
  6505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6506. public bool HasIsExtension {
  6507. get { return (_hasBits0 & 1) != 0; }
  6508. }
  6509. /// <summary>Clears the value of the "is_extension" field</summary>
  6510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6511. public void ClearIsExtension() {
  6512. _hasBits0 &= ~1;
  6513. }
  6514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6515. public override bool Equals(object other) {
  6516. return Equals(other as NamePart);
  6517. }
  6518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6519. public bool Equals(NamePart other) {
  6520. if (ReferenceEquals(other, null)) {
  6521. return false;
  6522. }
  6523. if (ReferenceEquals(other, this)) {
  6524. return true;
  6525. }
  6526. if (NamePart_ != other.NamePart_) return false;
  6527. if (IsExtension != other.IsExtension) return false;
  6528. return Equals(_unknownFields, other._unknownFields);
  6529. }
  6530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6531. public override int GetHashCode() {
  6532. int hash = 1;
  6533. if (HasNamePart_) hash ^= NamePart_.GetHashCode();
  6534. if (HasIsExtension) hash ^= IsExtension.GetHashCode();
  6535. if (_unknownFields != null) {
  6536. hash ^= _unknownFields.GetHashCode();
  6537. }
  6538. return hash;
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6541. public override string ToString() {
  6542. return pb::JsonFormatter.ToDiagnosticString(this);
  6543. }
  6544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6545. public void WriteTo(pb::CodedOutputStream output) {
  6546. if (HasNamePart_) {
  6547. output.WriteRawTag(10);
  6548. output.WriteString(NamePart_);
  6549. }
  6550. if (HasIsExtension) {
  6551. output.WriteRawTag(16);
  6552. output.WriteBool(IsExtension);
  6553. }
  6554. if (_unknownFields != null) {
  6555. _unknownFields.WriteTo(output);
  6556. }
  6557. }
  6558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6559. public int CalculateSize() {
  6560. int size = 0;
  6561. if (HasNamePart_) {
  6562. size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
  6563. }
  6564. if (HasIsExtension) {
  6565. size += 1 + 1;
  6566. }
  6567. if (_unknownFields != null) {
  6568. size += _unknownFields.CalculateSize();
  6569. }
  6570. return size;
  6571. }
  6572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6573. public void MergeFrom(NamePart other) {
  6574. if (other == null) {
  6575. return;
  6576. }
  6577. if (other.HasNamePart_) {
  6578. NamePart_ = other.NamePart_;
  6579. }
  6580. if (other.HasIsExtension) {
  6581. IsExtension = other.IsExtension;
  6582. }
  6583. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  6584. }
  6585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6586. public void MergeFrom(pb::CodedInputStream input) {
  6587. uint tag;
  6588. while ((tag = input.ReadTag()) != 0) {
  6589. switch(tag) {
  6590. default:
  6591. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  6592. return;
  6593. }
  6594. break;
  6595. case 10: {
  6596. NamePart_ = input.ReadString();
  6597. break;
  6598. }
  6599. case 16: {
  6600. IsExtension = input.ReadBool();
  6601. break;
  6602. }
  6603. }
  6604. }
  6605. }
  6606. }
  6607. }
  6608. #endregion
  6609. }
  6610. /// <summary>
  6611. /// Encapsulates information about the original source file from which a
  6612. /// FileDescriptorProto was generated.
  6613. /// </summary>
  6614. internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
  6615. private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
  6616. private pb::UnknownFieldSet _unknownFields;
  6617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6618. public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
  6619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6620. public static pbr::MessageDescriptor Descriptor {
  6621. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[19]; }
  6622. }
  6623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6624. pbr::MessageDescriptor pb::IMessage.Descriptor {
  6625. get { return Descriptor; }
  6626. }
  6627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6628. public SourceCodeInfo() {
  6629. OnConstruction();
  6630. }
  6631. partial void OnConstruction();
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6633. public SourceCodeInfo(SourceCodeInfo other) : this() {
  6634. location_ = other.location_.Clone();
  6635. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  6636. }
  6637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6638. public SourceCodeInfo Clone() {
  6639. return new SourceCodeInfo(this);
  6640. }
  6641. /// <summary>Field number for the "location" field.</summary>
  6642. public const int LocationFieldNumber = 1;
  6643. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
  6644. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
  6645. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
  6646. /// <summary>
  6647. /// A Location identifies a piece of source code in a .proto file which
  6648. /// corresponds to a particular definition. This information is intended
  6649. /// to be useful to IDEs, code indexers, documentation generators, and similar
  6650. /// tools.
  6651. ///
  6652. /// For example, say we have a file like:
  6653. /// message Foo {
  6654. /// optional string foo = 1;
  6655. /// }
  6656. /// Let's look at just the field definition:
  6657. /// optional string foo = 1;
  6658. /// ^ ^^ ^^ ^ ^^^
  6659. /// a bc de f ghi
  6660. /// We have the following locations:
  6661. /// span path represents
  6662. /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
  6663. /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
  6664. /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
  6665. /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
  6666. /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
  6667. ///
  6668. /// Notes:
  6669. /// - A location may refer to a repeated field itself (i.e. not to any
  6670. /// particular index within it). This is used whenever a set of elements are
  6671. /// logically enclosed in a single code segment. For example, an entire
  6672. /// extend block (possibly containing multiple extension definitions) will
  6673. /// have an outer location whose path refers to the "extensions" repeated
  6674. /// field without an index.
  6675. /// - Multiple locations may have the same path. This happens when a single
  6676. /// logical declaration is spread out across multiple places. The most
  6677. /// obvious example is the "extend" block again -- there may be multiple
  6678. /// extend blocks in the same scope, each of which will have the same path.
  6679. /// - A location's span is not always a subset of its parent's span. For
  6680. /// example, the "extendee" of an extension declaration appears at the
  6681. /// beginning of the "extend" block and is shared by all extensions within
  6682. /// the block.
  6683. /// - Just because a location's span is a subset of some other location's span
  6684. /// does not mean that it is a descendent. For example, a "group" defines
  6685. /// both a type and a field in a single declaration. Thus, the locations
  6686. /// corresponding to the type and field and their components will overlap.
  6687. /// - Code which tries to interpret locations should probably be designed to
  6688. /// ignore those that it doesn't understand, as more types of locations could
  6689. /// be recorded in the future.
  6690. /// </summary>
  6691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6692. public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
  6693. get { return location_; }
  6694. }
  6695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6696. public override bool Equals(object other) {
  6697. return Equals(other as SourceCodeInfo);
  6698. }
  6699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6700. public bool Equals(SourceCodeInfo other) {
  6701. if (ReferenceEquals(other, null)) {
  6702. return false;
  6703. }
  6704. if (ReferenceEquals(other, this)) {
  6705. return true;
  6706. }
  6707. if(!location_.Equals(other.location_)) return false;
  6708. return Equals(_unknownFields, other._unknownFields);
  6709. }
  6710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6711. public override int GetHashCode() {
  6712. int hash = 1;
  6713. hash ^= location_.GetHashCode();
  6714. if (_unknownFields != null) {
  6715. hash ^= _unknownFields.GetHashCode();
  6716. }
  6717. return hash;
  6718. }
  6719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6720. public override string ToString() {
  6721. return pb::JsonFormatter.ToDiagnosticString(this);
  6722. }
  6723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6724. public void WriteTo(pb::CodedOutputStream output) {
  6725. location_.WriteTo(output, _repeated_location_codec);
  6726. if (_unknownFields != null) {
  6727. _unknownFields.WriteTo(output);
  6728. }
  6729. }
  6730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6731. public int CalculateSize() {
  6732. int size = 0;
  6733. size += location_.CalculateSize(_repeated_location_codec);
  6734. if (_unknownFields != null) {
  6735. size += _unknownFields.CalculateSize();
  6736. }
  6737. return size;
  6738. }
  6739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6740. public void MergeFrom(SourceCodeInfo other) {
  6741. if (other == null) {
  6742. return;
  6743. }
  6744. location_.Add(other.location_);
  6745. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  6746. }
  6747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6748. public void MergeFrom(pb::CodedInputStream input) {
  6749. uint tag;
  6750. while ((tag = input.ReadTag()) != 0) {
  6751. switch(tag) {
  6752. default:
  6753. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  6754. return;
  6755. }
  6756. break;
  6757. case 10: {
  6758. location_.AddEntriesFrom(input, _repeated_location_codec);
  6759. break;
  6760. }
  6761. }
  6762. }
  6763. }
  6764. #region Nested types
  6765. /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
  6766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6767. public static partial class Types {
  6768. internal sealed partial class Location : pb::IMessage<Location> {
  6769. private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
  6770. private pb::UnknownFieldSet _unknownFields;
  6771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6772. public static pb::MessageParser<Location> Parser { get { return _parser; } }
  6773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6774. public static pbr::MessageDescriptor Descriptor {
  6775. get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
  6776. }
  6777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6778. pbr::MessageDescriptor pb::IMessage.Descriptor {
  6779. get { return Descriptor; }
  6780. }
  6781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6782. public Location() {
  6783. OnConstruction();
  6784. }
  6785. partial void OnConstruction();
  6786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6787. public Location(Location other) : this() {
  6788. path_ = other.path_.Clone();
  6789. span_ = other.span_.Clone();
  6790. leadingComments_ = other.leadingComments_;
  6791. trailingComments_ = other.trailingComments_;
  6792. leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
  6793. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  6794. }
  6795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6796. public Location Clone() {
  6797. return new Location(this);
  6798. }
  6799. /// <summary>Field number for the "path" field.</summary>
  6800. public const int PathFieldNumber = 1;
  6801. private static readonly pb::FieldCodec<int> _repeated_path_codec
  6802. = pb::FieldCodec.ForInt32(10);
  6803. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  6804. /// <summary>
  6805. /// Identifies which part of the FileDescriptorProto was defined at this
  6806. /// location.
  6807. ///
  6808. /// Each element is a field number or an index. They form a path from
  6809. /// the root FileDescriptorProto to the place where the definition. For
  6810. /// example, this path:
  6811. /// [ 4, 3, 2, 7, 1 ]
  6812. /// refers to:
  6813. /// file.message_type(3) // 4, 3
  6814. /// .field(7) // 2, 7
  6815. /// .name() // 1
  6816. /// This is because FileDescriptorProto.message_type has field number 4:
  6817. /// repeated DescriptorProto message_type = 4;
  6818. /// and DescriptorProto.field has field number 2:
  6819. /// repeated FieldDescriptorProto field = 2;
  6820. /// and FieldDescriptorProto.name has field number 1:
  6821. /// optional string name = 1;
  6822. ///
  6823. /// Thus, the above path gives the location of a field name. If we removed
  6824. /// the last element:
  6825. /// [ 4, 3, 2, 7 ]
  6826. /// this path refers to the whole field declaration (from the beginning
  6827. /// of the label to the terminating semicolon).
  6828. /// </summary>
  6829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6830. public pbc::RepeatedField<int> Path {
  6831. get { return path_; }
  6832. }
  6833. /// <summary>Field number for the "span" field.</summary>
  6834. public const int SpanFieldNumber = 2;
  6835. private static readonly pb::FieldCodec<int> _repeated_span_codec
  6836. = pb::FieldCodec.ForInt32(18);
  6837. private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
  6838. /// <summary>
  6839. /// Always has exactly three or four elements: start line, start column,
  6840. /// end line (optional, otherwise assumed same as start line), end column.
  6841. /// These are packed into a single field for efficiency. Note that line
  6842. /// and column numbers are zero-based -- typically you will want to add
  6843. /// 1 to each before displaying to a user.
  6844. /// </summary>
  6845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6846. public pbc::RepeatedField<int> Span {
  6847. get { return span_; }
  6848. }
  6849. /// <summary>Field number for the "leading_comments" field.</summary>
  6850. public const int LeadingCommentsFieldNumber = 3;
  6851. private readonly static string LeadingCommentsDefaultValue = "";
  6852. private string leadingComments_;
  6853. /// <summary>
  6854. /// If this SourceCodeInfo represents a complete declaration, these are any
  6855. /// comments appearing before and after the declaration which appear to be
  6856. /// attached to the declaration.
  6857. ///
  6858. /// A series of line comments appearing on consecutive lines, with no other
  6859. /// tokens appearing on those lines, will be treated as a single comment.
  6860. ///
  6861. /// leading_detached_comments will keep paragraphs of comments that appear
  6862. /// before (but not connected to) the current element. Each paragraph,
  6863. /// separated by empty lines, will be one comment element in the repeated
  6864. /// field.
  6865. ///
  6866. /// Only the comment content is provided; comment markers (e.g. //) are
  6867. /// stripped out. For block comments, leading whitespace and an asterisk
  6868. /// will be stripped from the beginning of each line other than the first.
  6869. /// Newlines are included in the output.
  6870. ///
  6871. /// Examples:
  6872. ///
  6873. /// optional int32 foo = 1; // Comment attached to foo.
  6874. /// // Comment attached to bar.
  6875. /// optional int32 bar = 2;
  6876. ///
  6877. /// optional string baz = 3;
  6878. /// // Comment attached to baz.
  6879. /// // Another line attached to baz.
  6880. ///
  6881. /// // Comment attached to qux.
  6882. /// //
  6883. /// // Another line attached to qux.
  6884. /// optional double qux = 4;
  6885. ///
  6886. /// // Detached comment for corge. This is not leading or trailing comments
  6887. /// // to qux or corge because there are blank lines separating it from
  6888. /// // both.
  6889. ///
  6890. /// // Detached comment for corge paragraph 2.
  6891. ///
  6892. /// optional string corge = 5;
  6893. /// /* Block comment attached
  6894. /// * to corge. Leading asterisks
  6895. /// * will be removed. */
  6896. /// /* Block comment attached to
  6897. /// * grault. */
  6898. /// optional int32 grault = 6;
  6899. ///
  6900. /// // ignored detached comments.
  6901. /// </summary>
  6902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6903. public string LeadingComments {
  6904. get { return leadingComments_ ?? LeadingCommentsDefaultValue; }
  6905. set {
  6906. leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6907. }
  6908. }
  6909. /// <summary>Gets whether the "leading_comments" field is set</summary>
  6910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6911. public bool HasLeadingComments {
  6912. get { return leadingComments_ != null; }
  6913. }
  6914. /// <summary>Clears the value of the "leading_comments" field</summary>
  6915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6916. public void ClearLeadingComments() {
  6917. leadingComments_ = null;
  6918. }
  6919. /// <summary>Field number for the "trailing_comments" field.</summary>
  6920. public const int TrailingCommentsFieldNumber = 4;
  6921. private readonly static string TrailingCommentsDefaultValue = "";
  6922. private string trailingComments_;
  6923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6924. public string TrailingComments {
  6925. get { return trailingComments_ ?? TrailingCommentsDefaultValue; }
  6926. set {
  6927. trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  6928. }
  6929. }
  6930. /// <summary>Gets whether the "trailing_comments" field is set</summary>
  6931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6932. public bool HasTrailingComments {
  6933. get { return trailingComments_ != null; }
  6934. }
  6935. /// <summary>Clears the value of the "trailing_comments" field</summary>
  6936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6937. public void ClearTrailingComments() {
  6938. trailingComments_ = null;
  6939. }
  6940. /// <summary>Field number for the "leading_detached_comments" field.</summary>
  6941. public const int LeadingDetachedCommentsFieldNumber = 6;
  6942. private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
  6943. = pb::FieldCodec.ForString(50);
  6944. private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
  6945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6946. public pbc::RepeatedField<string> LeadingDetachedComments {
  6947. get { return leadingDetachedComments_; }
  6948. }
  6949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6950. public override bool Equals(object other) {
  6951. return Equals(other as Location);
  6952. }
  6953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6954. public bool Equals(Location other) {
  6955. if (ReferenceEquals(other, null)) {
  6956. return false;
  6957. }
  6958. if (ReferenceEquals(other, this)) {
  6959. return true;
  6960. }
  6961. if(!path_.Equals(other.path_)) return false;
  6962. if(!span_.Equals(other.span_)) return false;
  6963. if (LeadingComments != other.LeadingComments) return false;
  6964. if (TrailingComments != other.TrailingComments) return false;
  6965. if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
  6966. return Equals(_unknownFields, other._unknownFields);
  6967. }
  6968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6969. public override int GetHashCode() {
  6970. int hash = 1;
  6971. hash ^= path_.GetHashCode();
  6972. hash ^= span_.GetHashCode();
  6973. if (HasLeadingComments) hash ^= LeadingComments.GetHashCode();
  6974. if (HasTrailingComments) hash ^= TrailingComments.GetHashCode();
  6975. hash ^= leadingDetachedComments_.GetHashCode();
  6976. if (_unknownFields != null) {
  6977. hash ^= _unknownFields.GetHashCode();
  6978. }
  6979. return hash;
  6980. }
  6981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6982. public override string ToString() {
  6983. return pb::JsonFormatter.ToDiagnosticString(this);
  6984. }
  6985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6986. public void WriteTo(pb::CodedOutputStream output) {
  6987. path_.WriteTo(output, _repeated_path_codec);
  6988. span_.WriteTo(output, _repeated_span_codec);
  6989. if (HasLeadingComments) {
  6990. output.WriteRawTag(26);
  6991. output.WriteString(LeadingComments);
  6992. }
  6993. if (HasTrailingComments) {
  6994. output.WriteRawTag(34);
  6995. output.WriteString(TrailingComments);
  6996. }
  6997. leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
  6998. if (_unknownFields != null) {
  6999. _unknownFields.WriteTo(output);
  7000. }
  7001. }
  7002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7003. public int CalculateSize() {
  7004. int size = 0;
  7005. size += path_.CalculateSize(_repeated_path_codec);
  7006. size += span_.CalculateSize(_repeated_span_codec);
  7007. if (HasLeadingComments) {
  7008. size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
  7009. }
  7010. if (HasTrailingComments) {
  7011. size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
  7012. }
  7013. size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
  7014. if (_unknownFields != null) {
  7015. size += _unknownFields.CalculateSize();
  7016. }
  7017. return size;
  7018. }
  7019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7020. public void MergeFrom(Location other) {
  7021. if (other == null) {
  7022. return;
  7023. }
  7024. path_.Add(other.path_);
  7025. span_.Add(other.span_);
  7026. if (other.HasLeadingComments) {
  7027. LeadingComments = other.LeadingComments;
  7028. }
  7029. if (other.HasTrailingComments) {
  7030. TrailingComments = other.TrailingComments;
  7031. }
  7032. leadingDetachedComments_.Add(other.leadingDetachedComments_);
  7033. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7034. }
  7035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7036. public void MergeFrom(pb::CodedInputStream input) {
  7037. uint tag;
  7038. while ((tag = input.ReadTag()) != 0) {
  7039. switch(tag) {
  7040. default:
  7041. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  7042. return;
  7043. }
  7044. break;
  7045. case 10:
  7046. case 8: {
  7047. path_.AddEntriesFrom(input, _repeated_path_codec);
  7048. break;
  7049. }
  7050. case 18:
  7051. case 16: {
  7052. span_.AddEntriesFrom(input, _repeated_span_codec);
  7053. break;
  7054. }
  7055. case 26: {
  7056. LeadingComments = input.ReadString();
  7057. break;
  7058. }
  7059. case 34: {
  7060. TrailingComments = input.ReadString();
  7061. break;
  7062. }
  7063. case 50: {
  7064. leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
  7065. break;
  7066. }
  7067. }
  7068. }
  7069. }
  7070. }
  7071. }
  7072. #endregion
  7073. }
  7074. /// <summary>
  7075. /// Describes the relationship between generated code and its original source
  7076. /// file. A GeneratedCodeInfo message is associated with only one generated
  7077. /// source file, but may contain references to different source .proto files.
  7078. /// </summary>
  7079. internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> {
  7080. private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
  7081. private pb::UnknownFieldSet _unknownFields;
  7082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7083. public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
  7084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7085. public static pbr::MessageDescriptor Descriptor {
  7086. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[20]; }
  7087. }
  7088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7089. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7090. get { return Descriptor; }
  7091. }
  7092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7093. public GeneratedCodeInfo() {
  7094. OnConstruction();
  7095. }
  7096. partial void OnConstruction();
  7097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7098. public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
  7099. annotation_ = other.annotation_.Clone();
  7100. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7101. }
  7102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7103. public GeneratedCodeInfo Clone() {
  7104. return new GeneratedCodeInfo(this);
  7105. }
  7106. /// <summary>Field number for the "annotation" field.</summary>
  7107. public const int AnnotationFieldNumber = 1;
  7108. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
  7109. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
  7110. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
  7111. /// <summary>
  7112. /// An Annotation connects some span of text in generated code to an element
  7113. /// of its generating .proto file.
  7114. /// </summary>
  7115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7116. public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
  7117. get { return annotation_; }
  7118. }
  7119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7120. public override bool Equals(object other) {
  7121. return Equals(other as GeneratedCodeInfo);
  7122. }
  7123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7124. public bool Equals(GeneratedCodeInfo other) {
  7125. if (ReferenceEquals(other, null)) {
  7126. return false;
  7127. }
  7128. if (ReferenceEquals(other, this)) {
  7129. return true;
  7130. }
  7131. if(!annotation_.Equals(other.annotation_)) return false;
  7132. return Equals(_unknownFields, other._unknownFields);
  7133. }
  7134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7135. public override int GetHashCode() {
  7136. int hash = 1;
  7137. hash ^= annotation_.GetHashCode();
  7138. if (_unknownFields != null) {
  7139. hash ^= _unknownFields.GetHashCode();
  7140. }
  7141. return hash;
  7142. }
  7143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7144. public override string ToString() {
  7145. return pb::JsonFormatter.ToDiagnosticString(this);
  7146. }
  7147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7148. public void WriteTo(pb::CodedOutputStream output) {
  7149. annotation_.WriteTo(output, _repeated_annotation_codec);
  7150. if (_unknownFields != null) {
  7151. _unknownFields.WriteTo(output);
  7152. }
  7153. }
  7154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7155. public int CalculateSize() {
  7156. int size = 0;
  7157. size += annotation_.CalculateSize(_repeated_annotation_codec);
  7158. if (_unknownFields != null) {
  7159. size += _unknownFields.CalculateSize();
  7160. }
  7161. return size;
  7162. }
  7163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7164. public void MergeFrom(GeneratedCodeInfo other) {
  7165. if (other == null) {
  7166. return;
  7167. }
  7168. annotation_.Add(other.annotation_);
  7169. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7170. }
  7171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7172. public void MergeFrom(pb::CodedInputStream input) {
  7173. uint tag;
  7174. while ((tag = input.ReadTag()) != 0) {
  7175. switch(tag) {
  7176. default:
  7177. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  7178. return;
  7179. }
  7180. break;
  7181. case 10: {
  7182. annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
  7183. break;
  7184. }
  7185. }
  7186. }
  7187. }
  7188. #region Nested types
  7189. /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
  7190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7191. public static partial class Types {
  7192. internal sealed partial class Annotation : pb::IMessage<Annotation> {
  7193. private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
  7194. private pb::UnknownFieldSet _unknownFields;
  7195. private int _hasBits0;
  7196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7197. public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
  7198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7199. public static pbr::MessageDescriptor Descriptor {
  7200. get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
  7201. }
  7202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7203. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7204. get { return Descriptor; }
  7205. }
  7206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7207. public Annotation() {
  7208. OnConstruction();
  7209. }
  7210. partial void OnConstruction();
  7211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7212. public Annotation(Annotation other) : this() {
  7213. _hasBits0 = other._hasBits0;
  7214. path_ = other.path_.Clone();
  7215. sourceFile_ = other.sourceFile_;
  7216. begin_ = other.begin_;
  7217. end_ = other.end_;
  7218. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7219. }
  7220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7221. public Annotation Clone() {
  7222. return new Annotation(this);
  7223. }
  7224. /// <summary>Field number for the "path" field.</summary>
  7225. public const int PathFieldNumber = 1;
  7226. private static readonly pb::FieldCodec<int> _repeated_path_codec
  7227. = pb::FieldCodec.ForInt32(10);
  7228. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  7229. /// <summary>
  7230. /// Identifies the element in the original source .proto file. This field
  7231. /// is formatted the same as SourceCodeInfo.Location.path.
  7232. /// </summary>
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7234. public pbc::RepeatedField<int> Path {
  7235. get { return path_; }
  7236. }
  7237. /// <summary>Field number for the "source_file" field.</summary>
  7238. public const int SourceFileFieldNumber = 2;
  7239. private readonly static string SourceFileDefaultValue = "";
  7240. private string sourceFile_;
  7241. /// <summary>
  7242. /// Identifies the filesystem path to the original source .proto.
  7243. /// </summary>
  7244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7245. public string SourceFile {
  7246. get { return sourceFile_ ?? SourceFileDefaultValue; }
  7247. set {
  7248. sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  7249. }
  7250. }
  7251. /// <summary>Gets whether the "source_file" field is set</summary>
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7253. public bool HasSourceFile {
  7254. get { return sourceFile_ != null; }
  7255. }
  7256. /// <summary>Clears the value of the "source_file" field</summary>
  7257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7258. public void ClearSourceFile() {
  7259. sourceFile_ = null;
  7260. }
  7261. /// <summary>Field number for the "begin" field.</summary>
  7262. public const int BeginFieldNumber = 3;
  7263. private readonly static int BeginDefaultValue = 0;
  7264. private int begin_;
  7265. /// <summary>
  7266. /// Identifies the starting offset in bytes in the generated code
  7267. /// that relates to the identified object.
  7268. /// </summary>
  7269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7270. public int Begin {
  7271. get { if ((_hasBits0 & 1) != 0) { return begin_; } else { return BeginDefaultValue; } }
  7272. set {
  7273. _hasBits0 |= 1;
  7274. begin_ = value;
  7275. }
  7276. }
  7277. /// <summary>Gets whether the "begin" field is set</summary>
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7279. public bool HasBegin {
  7280. get { return (_hasBits0 & 1) != 0; }
  7281. }
  7282. /// <summary>Clears the value of the "begin" field</summary>
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7284. public void ClearBegin() {
  7285. _hasBits0 &= ~1;
  7286. }
  7287. /// <summary>Field number for the "end" field.</summary>
  7288. public const int EndFieldNumber = 4;
  7289. private readonly static int EndDefaultValue = 0;
  7290. private int end_;
  7291. /// <summary>
  7292. /// Identifies the ending offset in bytes in the generated code that
  7293. /// relates to the identified offset. The end offset should be one past
  7294. /// the last relevant byte (so the length of the text = end - begin).
  7295. /// </summary>
  7296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7297. public int End {
  7298. get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
  7299. set {
  7300. _hasBits0 |= 2;
  7301. end_ = value;
  7302. }
  7303. }
  7304. /// <summary>Gets whether the "end" field is set</summary>
  7305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7306. public bool HasEnd {
  7307. get { return (_hasBits0 & 2) != 0; }
  7308. }
  7309. /// <summary>Clears the value of the "end" field</summary>
  7310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7311. public void ClearEnd() {
  7312. _hasBits0 &= ~2;
  7313. }
  7314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7315. public override bool Equals(object other) {
  7316. return Equals(other as Annotation);
  7317. }
  7318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7319. public bool Equals(Annotation other) {
  7320. if (ReferenceEquals(other, null)) {
  7321. return false;
  7322. }
  7323. if (ReferenceEquals(other, this)) {
  7324. return true;
  7325. }
  7326. if(!path_.Equals(other.path_)) return false;
  7327. if (SourceFile != other.SourceFile) return false;
  7328. if (Begin != other.Begin) return false;
  7329. if (End != other.End) return false;
  7330. return Equals(_unknownFields, other._unknownFields);
  7331. }
  7332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7333. public override int GetHashCode() {
  7334. int hash = 1;
  7335. hash ^= path_.GetHashCode();
  7336. if (HasSourceFile) hash ^= SourceFile.GetHashCode();
  7337. if (HasBegin) hash ^= Begin.GetHashCode();
  7338. if (HasEnd) hash ^= End.GetHashCode();
  7339. if (_unknownFields != null) {
  7340. hash ^= _unknownFields.GetHashCode();
  7341. }
  7342. return hash;
  7343. }
  7344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7345. public override string ToString() {
  7346. return pb::JsonFormatter.ToDiagnosticString(this);
  7347. }
  7348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7349. public void WriteTo(pb::CodedOutputStream output) {
  7350. path_.WriteTo(output, _repeated_path_codec);
  7351. if (HasSourceFile) {
  7352. output.WriteRawTag(18);
  7353. output.WriteString(SourceFile);
  7354. }
  7355. if (HasBegin) {
  7356. output.WriteRawTag(24);
  7357. output.WriteInt32(Begin);
  7358. }
  7359. if (HasEnd) {
  7360. output.WriteRawTag(32);
  7361. output.WriteInt32(End);
  7362. }
  7363. if (_unknownFields != null) {
  7364. _unknownFields.WriteTo(output);
  7365. }
  7366. }
  7367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7368. public int CalculateSize() {
  7369. int size = 0;
  7370. size += path_.CalculateSize(_repeated_path_codec);
  7371. if (HasSourceFile) {
  7372. size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
  7373. }
  7374. if (HasBegin) {
  7375. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
  7376. }
  7377. if (HasEnd) {
  7378. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  7379. }
  7380. if (_unknownFields != null) {
  7381. size += _unknownFields.CalculateSize();
  7382. }
  7383. return size;
  7384. }
  7385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7386. public void MergeFrom(Annotation other) {
  7387. if (other == null) {
  7388. return;
  7389. }
  7390. path_.Add(other.path_);
  7391. if (other.HasSourceFile) {
  7392. SourceFile = other.SourceFile;
  7393. }
  7394. if (other.HasBegin) {
  7395. Begin = other.Begin;
  7396. }
  7397. if (other.HasEnd) {
  7398. End = other.End;
  7399. }
  7400. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7401. }
  7402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7403. public void MergeFrom(pb::CodedInputStream input) {
  7404. uint tag;
  7405. while ((tag = input.ReadTag()) != 0) {
  7406. switch(tag) {
  7407. default:
  7408. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  7409. return;
  7410. }
  7411. break;
  7412. case 10:
  7413. case 8: {
  7414. path_.AddEntriesFrom(input, _repeated_path_codec);
  7415. break;
  7416. }
  7417. case 18: {
  7418. SourceFile = input.ReadString();
  7419. break;
  7420. }
  7421. case 24: {
  7422. Begin = input.ReadInt32();
  7423. break;
  7424. }
  7425. case 32: {
  7426. End = input.ReadInt32();
  7427. break;
  7428. }
  7429. }
  7430. }
  7431. }
  7432. }
  7433. }
  7434. #endregion
  7435. }
  7436. #endregion
  7437. }
  7438. #endregion Designer generated code