Descriptor.cs 328 KB

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