Descriptor.cs 233 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Google.Protobuf.Reflection {
  10. /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary>
  11. internal static partial class DescriptorReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static DescriptorReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy",
  22. "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
  23. "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl",
  24. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS",
  25. "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo",
  26. "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg",
  27. "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt",
  28. "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ",
  29. "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp",
  30. "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
  31. "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB",
  32. "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv",
  33. "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m",
  34. "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
  35. "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
  36. "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w",
  37. "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD",
  38. "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51",
  39. "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y",
  40. "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
  41. "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k",
  42. "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy",
  43. "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn",
  44. "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv",
  45. "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2",
  46. "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo",
  47. "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo",
  48. "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h",
  49. "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v",
  50. "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5",
  51. "cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv",
  52. "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS",
  53. "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR",
  54. "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w",
  55. "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ",
  56. "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO",
  57. "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ",
  58. "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS",
  59. "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU",
  60. "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf",
  61. "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ",
  62. "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM",
  63. "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQK",
  64. "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9u",
  65. "cxgCIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMijAEKE0Vu",
  66. "dW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMo",
  67. "CzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8S",
  68. "LQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u",
  69. "cyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIO",
  70. "CgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90",
  71. "b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclBy",
  72. "b3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnBy",
  73. "b3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgL",
  74. "Mh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2RE",
  75. "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIg",
  76. "ASgJEhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5n",
  77. "b29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFt",
  78. "aW5nGAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVm",
  79. "YWxzZSLLBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwK",
  80. "FGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVf",
  81. "ZmlsZXMYCiABKAg6BWZhbHNlEikKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2Fu",
  82. "ZF9oYXNoGBQgASgIQgIYARIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg",
  83. "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv",
  84. "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w",
  85. "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh",
  86. "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT",
  87. "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl",
  88. "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs",
  89. "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz",
  90. "cGFjZRglIAEoCRIUCgxzd2lmdF9wcmVmaXgYJyABKAkSGAoQcGhwX2NsYXNz",
  91. "X3ByZWZpeBgoIAEoCRIVCg1waHBfbmFtZXNwYWNlGCkgASgJEkMKFHVuaW50",
  92. "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
  93. "dGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9kZRIJCgVTUEVFRBABEg0K",
  94. "CUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRADKgkI6AcQgICAgAJKBAgm",
  95. "ECci8gEKDk1lc3NhZ2VPcHRpb25zEiYKF21lc3NhZ2Vfc2V0X3dpcmVfZm9y",
  96. "bWF0GAEgASgIOgVmYWxzZRIuCh9ub19zdGFuZGFyZF9kZXNjcmlwdG9yX2Fj",
  97. "Y2Vzc29yGAIgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxz",
  98. "ZRIRCgltYXBfZW50cnkYByABKAgSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y",
  99. "5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24q",
  100. "CQjoBxCAgICAAkoECAgQCUoECAkQCiKeAwoMRmllbGRPcHRpb25zEjoKBWN0",
  101. "eXBlGAEgASgOMiMuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5DVHlw",
  102. "ZToGU1RSSU5HEg4KBnBhY2tlZBgCIAEoCBI/CgZqc3R5cGUYBiABKA4yJC5n",
  103. "b29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkpTVHlwZToJSlNfTk9STUFM",
  104. "EhMKBGxhenkYBSABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZh",
  105. "bHNlEhMKBHdlYWsYCiABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0",
  106. "aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0",
  107. "aW9uIi8KBUNUeXBlEgoKBlNUUklORxAAEggKBENPUkQQARIQCgxTVFJJTkdf",
  108. "UElFQ0UQAiI1CgZKU1R5cGUSDQoJSlNfTk9STUFMEAASDQoJSlNfU1RSSU5H",
  109. "EAESDQoJSlNfTlVNQkVSEAIqCQjoBxCAgICAAkoECAQQBSJeCgxPbmVvZk9w",
  110. "dGlvbnMSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xl",
  111. "LnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKTAQoL",
  112. "RW51bU9wdGlvbnMSEwoLYWxsb3dfYWxpYXMYAiABKAgSGQoKZGVwcmVjYXRl",
  113. "ZBgDIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygL",
  114. "MiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCA",
  115. "gICAAkoECAUQBiJ9ChBFbnVtVmFsdWVPcHRpb25zEhkKCmRlcHJlY2F0ZWQY",
  116. "ASABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIk",
  117. "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICA",
  118. "gAIiewoOU2VydmljZU9wdGlvbnMSGQoKZGVwcmVjYXRlZBghIAEoCDoFZmFs",
  119. "c2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy",
  120. "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKtAgoNTWV0",
  121. "aG9kT3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJfChFpZGVt",
  122. "cG90ZW5jeV9sZXZlbBgiIAEoDjIvLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RP",
  123. "cHRpb25zLklkZW1wb3RlbmN5TGV2ZWw6E0lERU1QT1RFTkNZX1VOS05PV04S",
  124. "QwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3Rv",
  125. "YnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iUAoQSWRlbXBvdGVuY3lMZXZlbBIX",
  126. "ChNJREVNUE9URU5DWV9VTktOT1dOEAASEwoPTk9fU0lERV9FRkZFQ1RTEAES",
  127. "DgoKSURFTVBPVEVOVBACKgkI6AcQgICAgAIingIKE1VuaW50ZXJwcmV0ZWRP",
  128. "cHRpb24SOwoEbmFtZRgCIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5VbmludGVy",
  129. "cHJldGVkT3B0aW9uLk5hbWVQYXJ0EhgKEGlkZW50aWZpZXJfdmFsdWUYAyAB",
  130. "KAkSGgoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEEhoKEm5lZ2F0aXZlX2lu",
  131. "dF92YWx1ZRgFIAEoAxIUCgxkb3VibGVfdmFsdWUYBiABKAESFAoMc3RyaW5n",
  132. "X3ZhbHVlGAcgASgMEhcKD2FnZ3JlZ2F0ZV92YWx1ZRgIIAEoCRozCghOYW1l",
  133. "UGFydBIRCgluYW1lX3BhcnQYASACKAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigI",
  134. "ItUBCg5Tb3VyY2VDb2RlSW5mbxI6Cghsb2NhdGlvbhgBIAMoCzIoLmdvb2ds",
  135. "ZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5mby5Mb2NhdGlvbhqGAQoITG9jYXRp",
  136. "b24SEAoEcGF0aBgBIAMoBUICEAESEAoEc3BhbhgCIAMoBUICEAESGAoQbGVh",
  137. "ZGluZ19jb21tZW50cxgDIAEoCRIZChF0cmFpbGluZ19jb21tZW50cxgEIAEo",
  138. "CRIhChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJIqcBChFHZW5l",
  139. "cmF0ZWRDb2RlSW5mbxJBCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnBy",
  140. "b3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb24aTwoKQW5ub3Rh",
  141. "dGlvbhIQCgRwYXRoGAEgAygFQgIQARITCgtzb3VyY2VfZmlsZRgCIAEoCRIN",
  142. "CgViZWdpbhgDIAEoBRILCgNlbmQYBCABKAVCjAEKE2NvbS5nb29nbGUucHJv",
  143. "dG9idWZCEERlc2NyaXB0b3JQcm90b3NIAVo+Z2l0aHViLmNvbS9nb2xhbmcv",
  144. "cHJvdG9idWYvcHJvdG9jLWdlbi1nby9kZXNjcmlwdG9yO2Rlc2NyaXB0b3Ki",
  145. "AgNHUEKqAhpHb29nbGUuUHJvdG9idWYuUmVmbGVjdGlvbg=="));
  146. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  147. new pbr::FileDescriptor[] { },
  148. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  149. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null),
  150. 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),
  151. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null),
  152. 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)}),
  153. 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),
  154. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name", "Options" }, null, null, null),
  155. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options" }, null, null, null),
  156. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
  157. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
  158. 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),
  159. 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", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
  160. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
  161. 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),
  162. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null),
  163. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
  164. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  165. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  166. 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),
  167. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
  168. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)}),
  169. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)})
  170. }));
  171. }
  172. #endregion
  173. }
  174. #region Messages
  175. /// <summary>
  176. /// The protocol compiler can output a FileDescriptorSet containing the .proto
  177. /// files it parses.
  178. /// </summary>
  179. internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
  180. private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public static pbr::MessageDescriptor Descriptor {
  185. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  188. pbr::MessageDescriptor pb::IMessage.Descriptor {
  189. get { return Descriptor; }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  192. public FileDescriptorSet() {
  193. OnConstruction();
  194. }
  195. partial void OnConstruction();
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. public FileDescriptorSet(FileDescriptorSet other) : this() {
  198. file_ = other.file_.Clone();
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  201. public FileDescriptorSet Clone() {
  202. return new FileDescriptorSet(this);
  203. }
  204. /// <summary>Field number for the "file" field.</summary>
  205. public const int FileFieldNumber = 1;
  206. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
  207. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
  208. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  210. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
  211. get { return file_; }
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public override bool Equals(object other) {
  215. return Equals(other as FileDescriptorSet);
  216. }
  217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  218. public bool Equals(FileDescriptorSet other) {
  219. if (ReferenceEquals(other, null)) {
  220. return false;
  221. }
  222. if (ReferenceEquals(other, this)) {
  223. return true;
  224. }
  225. if(!file_.Equals(other.file_)) return false;
  226. return true;
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  229. public override int GetHashCode() {
  230. int hash = 1;
  231. hash ^= file_.GetHashCode();
  232. return hash;
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. public override string ToString() {
  236. return pb::JsonFormatter.ToDiagnosticString(this);
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. public void WriteTo(pb::CodedOutputStream output) {
  240. file_.WriteTo(output, _repeated_file_codec);
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. public int CalculateSize() {
  244. int size = 0;
  245. size += file_.CalculateSize(_repeated_file_codec);
  246. return size;
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  249. public void MergeFrom(FileDescriptorSet other) {
  250. if (other == null) {
  251. return;
  252. }
  253. file_.Add(other.file_);
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public void MergeFrom(pb::CodedInputStream input) {
  257. uint tag;
  258. while ((tag = input.ReadTag()) != 0) {
  259. switch(tag) {
  260. default:
  261. input.SkipLastField();
  262. break;
  263. case 10: {
  264. file_.AddEntriesFrom(input, _repeated_file_codec);
  265. break;
  266. }
  267. }
  268. }
  269. }
  270. }
  271. /// <summary>
  272. /// Describes a complete .proto file.
  273. /// </summary>
  274. internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
  275. private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  277. public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  279. public static pbr::MessageDescriptor Descriptor {
  280. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  283. pbr::MessageDescriptor pb::IMessage.Descriptor {
  284. get { return Descriptor; }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  287. public FileDescriptorProto() {
  288. OnConstruction();
  289. }
  290. partial void OnConstruction();
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  292. public FileDescriptorProto(FileDescriptorProto other) : this() {
  293. name_ = other.name_;
  294. package_ = other.package_;
  295. dependency_ = other.dependency_.Clone();
  296. publicDependency_ = other.publicDependency_.Clone();
  297. weakDependency_ = other.weakDependency_.Clone();
  298. messageType_ = other.messageType_.Clone();
  299. enumType_ = other.enumType_.Clone();
  300. service_ = other.service_.Clone();
  301. extension_ = other.extension_.Clone();
  302. Options = other.options_ != null ? other.Options.Clone() : null;
  303. SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null;
  304. syntax_ = other.syntax_;
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public FileDescriptorProto Clone() {
  308. return new FileDescriptorProto(this);
  309. }
  310. /// <summary>Field number for the "name" field.</summary>
  311. public const int NameFieldNumber = 1;
  312. private string name_ = "";
  313. /// <summary>
  314. /// file name, relative to root of source tree
  315. /// </summary>
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  317. public string Name {
  318. get { return name_; }
  319. set {
  320. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  321. }
  322. }
  323. /// <summary>Field number for the "package" field.</summary>
  324. public const int PackageFieldNumber = 2;
  325. private string package_ = "";
  326. /// <summary>
  327. /// e.g. "foo", "foo.bar", etc.
  328. /// </summary>
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  330. public string Package {
  331. get { return package_; }
  332. set {
  333. package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  334. }
  335. }
  336. /// <summary>Field number for the "dependency" field.</summary>
  337. public const int DependencyFieldNumber = 3;
  338. private static readonly pb::FieldCodec<string> _repeated_dependency_codec
  339. = pb::FieldCodec.ForString(26);
  340. private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
  341. /// <summary>
  342. /// Names of files imported by this file.
  343. /// </summary>
  344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  345. public pbc::RepeatedField<string> Dependency {
  346. get { return dependency_; }
  347. }
  348. /// <summary>Field number for the "public_dependency" field.</summary>
  349. public const int PublicDependencyFieldNumber = 10;
  350. private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
  351. = pb::FieldCodec.ForInt32(80);
  352. private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
  353. /// <summary>
  354. /// Indexes of the public imported files in the dependency list above.
  355. /// </summary>
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  357. public pbc::RepeatedField<int> PublicDependency {
  358. get { return publicDependency_; }
  359. }
  360. /// <summary>Field number for the "weak_dependency" field.</summary>
  361. public const int WeakDependencyFieldNumber = 11;
  362. private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
  363. = pb::FieldCodec.ForInt32(88);
  364. private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
  365. /// <summary>
  366. /// Indexes of the weak imported files in the dependency list.
  367. /// For Google-internal migration only. Do not use.
  368. /// </summary>
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  370. public pbc::RepeatedField<int> WeakDependency {
  371. get { return weakDependency_; }
  372. }
  373. /// <summary>Field number for the "message_type" field.</summary>
  374. public const int MessageTypeFieldNumber = 4;
  375. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
  376. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  377. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  378. /// <summary>
  379. /// All top-level definitions in this file.
  380. /// </summary>
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  382. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
  383. get { return messageType_; }
  384. }
  385. /// <summary>Field number for the "enum_type" field.</summary>
  386. public const int EnumTypeFieldNumber = 5;
  387. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  388. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  389. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  391. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  392. get { return enumType_; }
  393. }
  394. /// <summary>Field number for the "service" field.</summary>
  395. public const int ServiceFieldNumber = 6;
  396. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
  397. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
  398. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
  401. get { return service_; }
  402. }
  403. /// <summary>Field number for the "extension" field.</summary>
  404. public const int ExtensionFieldNumber = 7;
  405. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  406. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  407. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  410. get { return extension_; }
  411. }
  412. /// <summary>Field number for the "options" field.</summary>
  413. public const int OptionsFieldNumber = 8;
  414. private global::Google.Protobuf.Reflection.FileOptions options_;
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public global::Google.Protobuf.Reflection.FileOptions Options {
  417. get { return options_; }
  418. set {
  419. options_ = value;
  420. }
  421. }
  422. /// <summary>Field number for the "source_code_info" field.</summary>
  423. public const int SourceCodeInfoFieldNumber = 9;
  424. private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
  425. /// <summary>
  426. /// This field contains optional information about the original source code.
  427. /// You may safely remove this entire field without harming runtime
  428. /// functionality of the descriptors -- the information is needed only by
  429. /// development tools.
  430. /// </summary>
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  432. public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
  433. get { return sourceCodeInfo_; }
  434. set {
  435. sourceCodeInfo_ = value;
  436. }
  437. }
  438. /// <summary>Field number for the "syntax" field.</summary>
  439. public const int SyntaxFieldNumber = 12;
  440. private string syntax_ = "";
  441. /// <summary>
  442. /// The syntax of the proto file.
  443. /// The supported values are "proto2" and "proto3".
  444. /// </summary>
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  446. public string Syntax {
  447. get { return syntax_; }
  448. set {
  449. syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  453. public override bool Equals(object other) {
  454. return Equals(other as FileDescriptorProto);
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  457. public bool Equals(FileDescriptorProto other) {
  458. if (ReferenceEquals(other, null)) {
  459. return false;
  460. }
  461. if (ReferenceEquals(other, this)) {
  462. return true;
  463. }
  464. if (Name != other.Name) return false;
  465. if (Package != other.Package) return false;
  466. if(!dependency_.Equals(other.dependency_)) return false;
  467. if(!publicDependency_.Equals(other.publicDependency_)) return false;
  468. if(!weakDependency_.Equals(other.weakDependency_)) return false;
  469. if(!messageType_.Equals(other.messageType_)) return false;
  470. if(!enumType_.Equals(other.enumType_)) return false;
  471. if(!service_.Equals(other.service_)) return false;
  472. if(!extension_.Equals(other.extension_)) return false;
  473. if (!object.Equals(Options, other.Options)) return false;
  474. if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
  475. if (Syntax != other.Syntax) return false;
  476. return true;
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public override int GetHashCode() {
  480. int hash = 1;
  481. if (Name.Length != 0) hash ^= Name.GetHashCode();
  482. if (Package.Length != 0) hash ^= Package.GetHashCode();
  483. hash ^= dependency_.GetHashCode();
  484. hash ^= publicDependency_.GetHashCode();
  485. hash ^= weakDependency_.GetHashCode();
  486. hash ^= messageType_.GetHashCode();
  487. hash ^= enumType_.GetHashCode();
  488. hash ^= service_.GetHashCode();
  489. hash ^= extension_.GetHashCode();
  490. if (options_ != null) hash ^= Options.GetHashCode();
  491. if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
  492. if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
  493. return hash;
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  496. public override string ToString() {
  497. return pb::JsonFormatter.ToDiagnosticString(this);
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  500. public void WriteTo(pb::CodedOutputStream output) {
  501. if (Name.Length != 0) {
  502. output.WriteRawTag(10);
  503. output.WriteString(Name);
  504. }
  505. if (Package.Length != 0) {
  506. output.WriteRawTag(18);
  507. output.WriteString(Package);
  508. }
  509. dependency_.WriteTo(output, _repeated_dependency_codec);
  510. messageType_.WriteTo(output, _repeated_messageType_codec);
  511. enumType_.WriteTo(output, _repeated_enumType_codec);
  512. service_.WriteTo(output, _repeated_service_codec);
  513. extension_.WriteTo(output, _repeated_extension_codec);
  514. if (options_ != null) {
  515. output.WriteRawTag(66);
  516. output.WriteMessage(Options);
  517. }
  518. if (sourceCodeInfo_ != null) {
  519. output.WriteRawTag(74);
  520. output.WriteMessage(SourceCodeInfo);
  521. }
  522. publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
  523. weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
  524. if (Syntax.Length != 0) {
  525. output.WriteRawTag(98);
  526. output.WriteString(Syntax);
  527. }
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public int CalculateSize() {
  531. int size = 0;
  532. if (Name.Length != 0) {
  533. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  534. }
  535. if (Package.Length != 0) {
  536. size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
  537. }
  538. size += dependency_.CalculateSize(_repeated_dependency_codec);
  539. size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
  540. size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
  541. size += messageType_.CalculateSize(_repeated_messageType_codec);
  542. size += enumType_.CalculateSize(_repeated_enumType_codec);
  543. size += service_.CalculateSize(_repeated_service_codec);
  544. size += extension_.CalculateSize(_repeated_extension_codec);
  545. if (options_ != null) {
  546. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  547. }
  548. if (sourceCodeInfo_ != null) {
  549. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
  550. }
  551. if (Syntax.Length != 0) {
  552. size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
  553. }
  554. return size;
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  557. public void MergeFrom(FileDescriptorProto other) {
  558. if (other == null) {
  559. return;
  560. }
  561. if (other.Name.Length != 0) {
  562. Name = other.Name;
  563. }
  564. if (other.Package.Length != 0) {
  565. Package = other.Package;
  566. }
  567. dependency_.Add(other.dependency_);
  568. publicDependency_.Add(other.publicDependency_);
  569. weakDependency_.Add(other.weakDependency_);
  570. messageType_.Add(other.messageType_);
  571. enumType_.Add(other.enumType_);
  572. service_.Add(other.service_);
  573. extension_.Add(other.extension_);
  574. if (other.options_ != null) {
  575. if (options_ == null) {
  576. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  577. }
  578. Options.MergeFrom(other.Options);
  579. }
  580. if (other.sourceCodeInfo_ != null) {
  581. if (sourceCodeInfo_ == null) {
  582. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  583. }
  584. SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
  585. }
  586. if (other.Syntax.Length != 0) {
  587. Syntax = other.Syntax;
  588. }
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  591. public void MergeFrom(pb::CodedInputStream input) {
  592. uint tag;
  593. while ((tag = input.ReadTag()) != 0) {
  594. switch(tag) {
  595. default:
  596. input.SkipLastField();
  597. break;
  598. case 10: {
  599. Name = input.ReadString();
  600. break;
  601. }
  602. case 18: {
  603. Package = input.ReadString();
  604. break;
  605. }
  606. case 26: {
  607. dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
  608. break;
  609. }
  610. case 34: {
  611. messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
  612. break;
  613. }
  614. case 42: {
  615. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  616. break;
  617. }
  618. case 50: {
  619. service_.AddEntriesFrom(input, _repeated_service_codec);
  620. break;
  621. }
  622. case 58: {
  623. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  624. break;
  625. }
  626. case 66: {
  627. if (options_ == null) {
  628. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  629. }
  630. input.ReadMessage(options_);
  631. break;
  632. }
  633. case 74: {
  634. if (sourceCodeInfo_ == null) {
  635. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  636. }
  637. input.ReadMessage(sourceCodeInfo_);
  638. break;
  639. }
  640. case 82:
  641. case 80: {
  642. publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
  643. break;
  644. }
  645. case 90:
  646. case 88: {
  647. weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
  648. break;
  649. }
  650. case 98: {
  651. Syntax = input.ReadString();
  652. break;
  653. }
  654. }
  655. }
  656. }
  657. }
  658. /// <summary>
  659. /// Describes a message type.
  660. /// </summary>
  661. internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
  662. private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  664. public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
  665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  666. public static pbr::MessageDescriptor Descriptor {
  667. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. pbr::MessageDescriptor pb::IMessage.Descriptor {
  671. get { return Descriptor; }
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  674. public DescriptorProto() {
  675. OnConstruction();
  676. }
  677. partial void OnConstruction();
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  679. public DescriptorProto(DescriptorProto other) : this() {
  680. name_ = other.name_;
  681. field_ = other.field_.Clone();
  682. extension_ = other.extension_.Clone();
  683. nestedType_ = other.nestedType_.Clone();
  684. enumType_ = other.enumType_.Clone();
  685. extensionRange_ = other.extensionRange_.Clone();
  686. oneofDecl_ = other.oneofDecl_.Clone();
  687. Options = other.options_ != null ? other.Options.Clone() : null;
  688. reservedRange_ = other.reservedRange_.Clone();
  689. reservedName_ = other.reservedName_.Clone();
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  692. public DescriptorProto Clone() {
  693. return new DescriptorProto(this);
  694. }
  695. /// <summary>Field number for the "name" field.</summary>
  696. public const int NameFieldNumber = 1;
  697. private string name_ = "";
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  699. public string Name {
  700. get { return name_; }
  701. set {
  702. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  703. }
  704. }
  705. /// <summary>Field number for the "field" field.</summary>
  706. public const int FieldFieldNumber = 2;
  707. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
  708. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  709. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
  712. get { return field_; }
  713. }
  714. /// <summary>Field number for the "extension" field.</summary>
  715. public const int ExtensionFieldNumber = 6;
  716. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  717. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  718. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  720. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  721. get { return extension_; }
  722. }
  723. /// <summary>Field number for the "nested_type" field.</summary>
  724. public const int NestedTypeFieldNumber = 3;
  725. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
  726. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  727. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  729. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
  730. get { return nestedType_; }
  731. }
  732. /// <summary>Field number for the "enum_type" field.</summary>
  733. public const int EnumTypeFieldNumber = 4;
  734. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  735. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  736. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  738. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  739. get { return enumType_; }
  740. }
  741. /// <summary>Field number for the "extension_range" field.</summary>
  742. public const int ExtensionRangeFieldNumber = 5;
  743. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
  744. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
  745. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  747. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
  748. get { return extensionRange_; }
  749. }
  750. /// <summary>Field number for the "oneof_decl" field.</summary>
  751. public const int OneofDeclFieldNumber = 8;
  752. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
  753. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
  754. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  756. public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
  757. get { return oneofDecl_; }
  758. }
  759. /// <summary>Field number for the "options" field.</summary>
  760. public const int OptionsFieldNumber = 7;
  761. private global::Google.Protobuf.Reflection.MessageOptions options_;
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  763. public global::Google.Protobuf.Reflection.MessageOptions Options {
  764. get { return options_; }
  765. set {
  766. options_ = value;
  767. }
  768. }
  769. /// <summary>Field number for the "reserved_range" field.</summary>
  770. public const int ReservedRangeFieldNumber = 9;
  771. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
  772. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
  773. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  775. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
  776. get { return reservedRange_; }
  777. }
  778. /// <summary>Field number for the "reserved_name" field.</summary>
  779. public const int ReservedNameFieldNumber = 10;
  780. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  781. = pb::FieldCodec.ForString(82);
  782. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  783. /// <summary>
  784. /// Reserved field names, which may not be used by fields in the same message.
  785. /// A given name may only be reserved once.
  786. /// </summary>
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  788. public pbc::RepeatedField<string> ReservedName {
  789. get { return reservedName_; }
  790. }
  791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  792. public override bool Equals(object other) {
  793. return Equals(other as DescriptorProto);
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  796. public bool Equals(DescriptorProto other) {
  797. if (ReferenceEquals(other, null)) {
  798. return false;
  799. }
  800. if (ReferenceEquals(other, this)) {
  801. return true;
  802. }
  803. if (Name != other.Name) return false;
  804. if(!field_.Equals(other.field_)) return false;
  805. if(!extension_.Equals(other.extension_)) return false;
  806. if(!nestedType_.Equals(other.nestedType_)) return false;
  807. if(!enumType_.Equals(other.enumType_)) return false;
  808. if(!extensionRange_.Equals(other.extensionRange_)) return false;
  809. if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
  810. if (!object.Equals(Options, other.Options)) return false;
  811. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  812. if(!reservedName_.Equals(other.reservedName_)) return false;
  813. return true;
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  816. public override int GetHashCode() {
  817. int hash = 1;
  818. if (Name.Length != 0) hash ^= Name.GetHashCode();
  819. hash ^= field_.GetHashCode();
  820. hash ^= extension_.GetHashCode();
  821. hash ^= nestedType_.GetHashCode();
  822. hash ^= enumType_.GetHashCode();
  823. hash ^= extensionRange_.GetHashCode();
  824. hash ^= oneofDecl_.GetHashCode();
  825. if (options_ != null) hash ^= Options.GetHashCode();
  826. hash ^= reservedRange_.GetHashCode();
  827. hash ^= reservedName_.GetHashCode();
  828. return hash;
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  831. public override string ToString() {
  832. return pb::JsonFormatter.ToDiagnosticString(this);
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  835. public void WriteTo(pb::CodedOutputStream output) {
  836. if (Name.Length != 0) {
  837. output.WriteRawTag(10);
  838. output.WriteString(Name);
  839. }
  840. field_.WriteTo(output, _repeated_field_codec);
  841. nestedType_.WriteTo(output, _repeated_nestedType_codec);
  842. enumType_.WriteTo(output, _repeated_enumType_codec);
  843. extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
  844. extension_.WriteTo(output, _repeated_extension_codec);
  845. if (options_ != null) {
  846. output.WriteRawTag(58);
  847. output.WriteMessage(Options);
  848. }
  849. oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
  850. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  851. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  854. public int CalculateSize() {
  855. int size = 0;
  856. if (Name.Length != 0) {
  857. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  858. }
  859. size += field_.CalculateSize(_repeated_field_codec);
  860. size += extension_.CalculateSize(_repeated_extension_codec);
  861. size += nestedType_.CalculateSize(_repeated_nestedType_codec);
  862. size += enumType_.CalculateSize(_repeated_enumType_codec);
  863. size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
  864. size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
  865. if (options_ != null) {
  866. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  867. }
  868. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  869. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  870. return size;
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  873. public void MergeFrom(DescriptorProto other) {
  874. if (other == null) {
  875. return;
  876. }
  877. if (other.Name.Length != 0) {
  878. Name = other.Name;
  879. }
  880. field_.Add(other.field_);
  881. extension_.Add(other.extension_);
  882. nestedType_.Add(other.nestedType_);
  883. enumType_.Add(other.enumType_);
  884. extensionRange_.Add(other.extensionRange_);
  885. oneofDecl_.Add(other.oneofDecl_);
  886. if (other.options_ != null) {
  887. if (options_ == null) {
  888. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  889. }
  890. Options.MergeFrom(other.Options);
  891. }
  892. reservedRange_.Add(other.reservedRange_);
  893. reservedName_.Add(other.reservedName_);
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  896. public void MergeFrom(pb::CodedInputStream input) {
  897. uint tag;
  898. while ((tag = input.ReadTag()) != 0) {
  899. switch(tag) {
  900. default:
  901. input.SkipLastField();
  902. break;
  903. case 10: {
  904. Name = input.ReadString();
  905. break;
  906. }
  907. case 18: {
  908. field_.AddEntriesFrom(input, _repeated_field_codec);
  909. break;
  910. }
  911. case 26: {
  912. nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
  913. break;
  914. }
  915. case 34: {
  916. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  917. break;
  918. }
  919. case 42: {
  920. extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
  921. break;
  922. }
  923. case 50: {
  924. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  925. break;
  926. }
  927. case 58: {
  928. if (options_ == null) {
  929. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  930. }
  931. input.ReadMessage(options_);
  932. break;
  933. }
  934. case 66: {
  935. oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
  936. break;
  937. }
  938. case 74: {
  939. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  940. break;
  941. }
  942. case 82: {
  943. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  944. break;
  945. }
  946. }
  947. }
  948. }
  949. #region Nested types
  950. /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
  951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  952. public static partial class Types {
  953. internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
  954. private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  956. public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  958. public static pbr::MessageDescriptor Descriptor {
  959. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. pbr::MessageDescriptor pb::IMessage.Descriptor {
  963. get { return Descriptor; }
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public ExtensionRange() {
  967. OnConstruction();
  968. }
  969. partial void OnConstruction();
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  971. public ExtensionRange(ExtensionRange other) : this() {
  972. start_ = other.start_;
  973. end_ = other.end_;
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  976. public ExtensionRange Clone() {
  977. return new ExtensionRange(this);
  978. }
  979. /// <summary>Field number for the "start" field.</summary>
  980. public const int StartFieldNumber = 1;
  981. private int start_;
  982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  983. public int Start {
  984. get { return start_; }
  985. set {
  986. start_ = value;
  987. }
  988. }
  989. /// <summary>Field number for the "end" field.</summary>
  990. public const int EndFieldNumber = 2;
  991. private int end_;
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  993. public int End {
  994. get { return end_; }
  995. set {
  996. end_ = value;
  997. }
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1000. public override bool Equals(object other) {
  1001. return Equals(other as ExtensionRange);
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1004. public bool Equals(ExtensionRange other) {
  1005. if (ReferenceEquals(other, null)) {
  1006. return false;
  1007. }
  1008. if (ReferenceEquals(other, this)) {
  1009. return true;
  1010. }
  1011. if (Start != other.Start) return false;
  1012. if (End != other.End) return false;
  1013. return true;
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1016. public override int GetHashCode() {
  1017. int hash = 1;
  1018. if (Start != 0) hash ^= Start.GetHashCode();
  1019. if (End != 0) hash ^= End.GetHashCode();
  1020. return hash;
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1023. public override string ToString() {
  1024. return pb::JsonFormatter.ToDiagnosticString(this);
  1025. }
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1027. public void WriteTo(pb::CodedOutputStream output) {
  1028. if (Start != 0) {
  1029. output.WriteRawTag(8);
  1030. output.WriteInt32(Start);
  1031. }
  1032. if (End != 0) {
  1033. output.WriteRawTag(16);
  1034. output.WriteInt32(End);
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1038. public int CalculateSize() {
  1039. int size = 0;
  1040. if (Start != 0) {
  1041. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1042. }
  1043. if (End != 0) {
  1044. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1045. }
  1046. return size;
  1047. }
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1049. public void MergeFrom(ExtensionRange other) {
  1050. if (other == null) {
  1051. return;
  1052. }
  1053. if (other.Start != 0) {
  1054. Start = other.Start;
  1055. }
  1056. if (other.End != 0) {
  1057. End = other.End;
  1058. }
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1061. public void MergeFrom(pb::CodedInputStream input) {
  1062. uint tag;
  1063. while ((tag = input.ReadTag()) != 0) {
  1064. switch(tag) {
  1065. default:
  1066. input.SkipLastField();
  1067. break;
  1068. case 8: {
  1069. Start = input.ReadInt32();
  1070. break;
  1071. }
  1072. case 16: {
  1073. End = input.ReadInt32();
  1074. break;
  1075. }
  1076. }
  1077. }
  1078. }
  1079. }
  1080. /// <summary>
  1081. /// Range of reserved tag numbers. Reserved tag numbers may not be used by
  1082. /// fields or extension ranges in the same message. Reserved ranges may
  1083. /// not overlap.
  1084. /// </summary>
  1085. internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
  1086. private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1088. public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1090. public static pbr::MessageDescriptor Descriptor {
  1091. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1094. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1095. get { return Descriptor; }
  1096. }
  1097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1098. public ReservedRange() {
  1099. OnConstruction();
  1100. }
  1101. partial void OnConstruction();
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1103. public ReservedRange(ReservedRange other) : this() {
  1104. start_ = other.start_;
  1105. end_ = other.end_;
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1108. public ReservedRange Clone() {
  1109. return new ReservedRange(this);
  1110. }
  1111. /// <summary>Field number for the "start" field.</summary>
  1112. public const int StartFieldNumber = 1;
  1113. private int start_;
  1114. /// <summary>
  1115. /// Inclusive.
  1116. /// </summary>
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1118. public int Start {
  1119. get { return start_; }
  1120. set {
  1121. start_ = value;
  1122. }
  1123. }
  1124. /// <summary>Field number for the "end" field.</summary>
  1125. public const int EndFieldNumber = 2;
  1126. private int end_;
  1127. /// <summary>
  1128. /// Exclusive.
  1129. /// </summary>
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1131. public int End {
  1132. get { return end_; }
  1133. set {
  1134. end_ = value;
  1135. }
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1138. public override bool Equals(object other) {
  1139. return Equals(other as ReservedRange);
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1142. public bool Equals(ReservedRange other) {
  1143. if (ReferenceEquals(other, null)) {
  1144. return false;
  1145. }
  1146. if (ReferenceEquals(other, this)) {
  1147. return true;
  1148. }
  1149. if (Start != other.Start) return false;
  1150. if (End != other.End) return false;
  1151. return true;
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1154. public override int GetHashCode() {
  1155. int hash = 1;
  1156. if (Start != 0) hash ^= Start.GetHashCode();
  1157. if (End != 0) hash ^= End.GetHashCode();
  1158. return hash;
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1161. public override string ToString() {
  1162. return pb::JsonFormatter.ToDiagnosticString(this);
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1165. public void WriteTo(pb::CodedOutputStream output) {
  1166. if (Start != 0) {
  1167. output.WriteRawTag(8);
  1168. output.WriteInt32(Start);
  1169. }
  1170. if (End != 0) {
  1171. output.WriteRawTag(16);
  1172. output.WriteInt32(End);
  1173. }
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1176. public int CalculateSize() {
  1177. int size = 0;
  1178. if (Start != 0) {
  1179. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1180. }
  1181. if (End != 0) {
  1182. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1183. }
  1184. return size;
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1187. public void MergeFrom(ReservedRange other) {
  1188. if (other == null) {
  1189. return;
  1190. }
  1191. if (other.Start != 0) {
  1192. Start = other.Start;
  1193. }
  1194. if (other.End != 0) {
  1195. End = other.End;
  1196. }
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1199. public void MergeFrom(pb::CodedInputStream input) {
  1200. uint tag;
  1201. while ((tag = input.ReadTag()) != 0) {
  1202. switch(tag) {
  1203. default:
  1204. input.SkipLastField();
  1205. break;
  1206. case 8: {
  1207. Start = input.ReadInt32();
  1208. break;
  1209. }
  1210. case 16: {
  1211. End = input.ReadInt32();
  1212. break;
  1213. }
  1214. }
  1215. }
  1216. }
  1217. }
  1218. }
  1219. #endregion
  1220. }
  1221. /// <summary>
  1222. /// Describes a field within a message.
  1223. /// </summary>
  1224. internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
  1225. private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1227. public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1229. public static pbr::MessageDescriptor Descriptor {
  1230. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1234. get { return Descriptor; }
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1237. public FieldDescriptorProto() {
  1238. OnConstruction();
  1239. }
  1240. partial void OnConstruction();
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1242. public FieldDescriptorProto(FieldDescriptorProto other) : this() {
  1243. name_ = other.name_;
  1244. number_ = other.number_;
  1245. label_ = other.label_;
  1246. type_ = other.type_;
  1247. typeName_ = other.typeName_;
  1248. extendee_ = other.extendee_;
  1249. defaultValue_ = other.defaultValue_;
  1250. oneofIndex_ = other.oneofIndex_;
  1251. jsonName_ = other.jsonName_;
  1252. Options = other.options_ != null ? other.Options.Clone() : null;
  1253. }
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1255. public FieldDescriptorProto Clone() {
  1256. return new FieldDescriptorProto(this);
  1257. }
  1258. /// <summary>Field number for the "name" field.</summary>
  1259. public const int NameFieldNumber = 1;
  1260. private string name_ = "";
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1262. public string Name {
  1263. get { return name_; }
  1264. set {
  1265. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1266. }
  1267. }
  1268. /// <summary>Field number for the "number" field.</summary>
  1269. public const int NumberFieldNumber = 3;
  1270. private int number_;
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1272. public int Number {
  1273. get { return number_; }
  1274. set {
  1275. number_ = value;
  1276. }
  1277. }
  1278. /// <summary>Field number for the "label" field.</summary>
  1279. public const int LabelFieldNumber = 4;
  1280. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0;
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1282. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
  1283. get { return label_; }
  1284. set {
  1285. label_ = value;
  1286. }
  1287. }
  1288. /// <summary>Field number for the "type" field.</summary>
  1289. public const int TypeFieldNumber = 5;
  1290. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = 0;
  1291. /// <summary>
  1292. /// If type_name is set, this need not be set. If both this and type_name
  1293. /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
  1294. /// </summary>
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1296. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
  1297. get { return type_; }
  1298. set {
  1299. type_ = value;
  1300. }
  1301. }
  1302. /// <summary>Field number for the "type_name" field.</summary>
  1303. public const int TypeNameFieldNumber = 6;
  1304. private string typeName_ = "";
  1305. /// <summary>
  1306. /// For message and enum types, this is the name of the type. If the name
  1307. /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
  1308. /// rules are used to find the type (i.e. first the nested types within this
  1309. /// message are searched, then within the parent, on up to the root
  1310. /// namespace).
  1311. /// </summary>
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1313. public string TypeName {
  1314. get { return typeName_; }
  1315. set {
  1316. typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1317. }
  1318. }
  1319. /// <summary>Field number for the "extendee" field.</summary>
  1320. public const int ExtendeeFieldNumber = 2;
  1321. private string extendee_ = "";
  1322. /// <summary>
  1323. /// For extensions, this is the name of the type being extended. It is
  1324. /// resolved in the same manner as type_name.
  1325. /// </summary>
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1327. public string Extendee {
  1328. get { return extendee_; }
  1329. set {
  1330. extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1331. }
  1332. }
  1333. /// <summary>Field number for the "default_value" field.</summary>
  1334. public const int DefaultValueFieldNumber = 7;
  1335. private string defaultValue_ = "";
  1336. /// <summary>
  1337. /// For numeric types, contains the original text representation of the value.
  1338. /// For booleans, "true" or "false".
  1339. /// For strings, contains the default text contents (not escaped in any way).
  1340. /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
  1341. /// TODO(kenton): Base-64 encode?
  1342. /// </summary>
  1343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1344. public string DefaultValue {
  1345. get { return defaultValue_; }
  1346. set {
  1347. defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1348. }
  1349. }
  1350. /// <summary>Field number for the "oneof_index" field.</summary>
  1351. public const int OneofIndexFieldNumber = 9;
  1352. private int oneofIndex_;
  1353. /// <summary>
  1354. /// If set, gives the index of a oneof in the containing type's oneof_decl
  1355. /// list. This field is a member of that oneof.
  1356. /// </summary>
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1358. public int OneofIndex {
  1359. get { return oneofIndex_; }
  1360. set {
  1361. oneofIndex_ = value;
  1362. }
  1363. }
  1364. /// <summary>Field number for the "json_name" field.</summary>
  1365. public const int JsonNameFieldNumber = 10;
  1366. private string jsonName_ = "";
  1367. /// <summary>
  1368. /// JSON name of this field. The value is set by protocol compiler. If the
  1369. /// user has set a "json_name" option on this field, that option's value
  1370. /// will be used. Otherwise, it's deduced from the field's name by converting
  1371. /// it to camelCase.
  1372. /// </summary>
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1374. public string JsonName {
  1375. get { return jsonName_; }
  1376. set {
  1377. jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1378. }
  1379. }
  1380. /// <summary>Field number for the "options" field.</summary>
  1381. public const int OptionsFieldNumber = 8;
  1382. private global::Google.Protobuf.Reflection.FieldOptions options_;
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1384. public global::Google.Protobuf.Reflection.FieldOptions Options {
  1385. get { return options_; }
  1386. set {
  1387. options_ = value;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1391. public override bool Equals(object other) {
  1392. return Equals(other as FieldDescriptorProto);
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1395. public bool Equals(FieldDescriptorProto other) {
  1396. if (ReferenceEquals(other, null)) {
  1397. return false;
  1398. }
  1399. if (ReferenceEquals(other, this)) {
  1400. return true;
  1401. }
  1402. if (Name != other.Name) return false;
  1403. if (Number != other.Number) return false;
  1404. if (Label != other.Label) return false;
  1405. if (Type != other.Type) return false;
  1406. if (TypeName != other.TypeName) return false;
  1407. if (Extendee != other.Extendee) return false;
  1408. if (DefaultValue != other.DefaultValue) return false;
  1409. if (OneofIndex != other.OneofIndex) return false;
  1410. if (JsonName != other.JsonName) return false;
  1411. if (!object.Equals(Options, other.Options)) return false;
  1412. return true;
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1415. public override int GetHashCode() {
  1416. int hash = 1;
  1417. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1418. if (Number != 0) hash ^= Number.GetHashCode();
  1419. if (Label != 0) hash ^= Label.GetHashCode();
  1420. if (Type != 0) hash ^= Type.GetHashCode();
  1421. if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
  1422. if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
  1423. if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
  1424. if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
  1425. if (JsonName.Length != 0) hash ^= JsonName.GetHashCode();
  1426. if (options_ != null) hash ^= Options.GetHashCode();
  1427. return hash;
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1430. public override string ToString() {
  1431. return pb::JsonFormatter.ToDiagnosticString(this);
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1434. public void WriteTo(pb::CodedOutputStream output) {
  1435. if (Name.Length != 0) {
  1436. output.WriteRawTag(10);
  1437. output.WriteString(Name);
  1438. }
  1439. if (Extendee.Length != 0) {
  1440. output.WriteRawTag(18);
  1441. output.WriteString(Extendee);
  1442. }
  1443. if (Number != 0) {
  1444. output.WriteRawTag(24);
  1445. output.WriteInt32(Number);
  1446. }
  1447. if (Label != 0) {
  1448. output.WriteRawTag(32);
  1449. output.WriteEnum((int) Label);
  1450. }
  1451. if (Type != 0) {
  1452. output.WriteRawTag(40);
  1453. output.WriteEnum((int) Type);
  1454. }
  1455. if (TypeName.Length != 0) {
  1456. output.WriteRawTag(50);
  1457. output.WriteString(TypeName);
  1458. }
  1459. if (DefaultValue.Length != 0) {
  1460. output.WriteRawTag(58);
  1461. output.WriteString(DefaultValue);
  1462. }
  1463. if (options_ != null) {
  1464. output.WriteRawTag(66);
  1465. output.WriteMessage(Options);
  1466. }
  1467. if (OneofIndex != 0) {
  1468. output.WriteRawTag(72);
  1469. output.WriteInt32(OneofIndex);
  1470. }
  1471. if (JsonName.Length != 0) {
  1472. output.WriteRawTag(82);
  1473. output.WriteString(JsonName);
  1474. }
  1475. }
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1477. public int CalculateSize() {
  1478. int size = 0;
  1479. if (Name.Length != 0) {
  1480. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1481. }
  1482. if (Number != 0) {
  1483. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1484. }
  1485. if (Label != 0) {
  1486. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
  1487. }
  1488. if (Type != 0) {
  1489. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  1490. }
  1491. if (TypeName.Length != 0) {
  1492. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
  1493. }
  1494. if (Extendee.Length != 0) {
  1495. size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
  1496. }
  1497. if (DefaultValue.Length != 0) {
  1498. size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
  1499. }
  1500. if (OneofIndex != 0) {
  1501. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
  1502. }
  1503. if (JsonName.Length != 0) {
  1504. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
  1505. }
  1506. if (options_ != null) {
  1507. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1508. }
  1509. return size;
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1512. public void MergeFrom(FieldDescriptorProto other) {
  1513. if (other == null) {
  1514. return;
  1515. }
  1516. if (other.Name.Length != 0) {
  1517. Name = other.Name;
  1518. }
  1519. if (other.Number != 0) {
  1520. Number = other.Number;
  1521. }
  1522. if (other.Label != 0) {
  1523. Label = other.Label;
  1524. }
  1525. if (other.Type != 0) {
  1526. Type = other.Type;
  1527. }
  1528. if (other.TypeName.Length != 0) {
  1529. TypeName = other.TypeName;
  1530. }
  1531. if (other.Extendee.Length != 0) {
  1532. Extendee = other.Extendee;
  1533. }
  1534. if (other.DefaultValue.Length != 0) {
  1535. DefaultValue = other.DefaultValue;
  1536. }
  1537. if (other.OneofIndex != 0) {
  1538. OneofIndex = other.OneofIndex;
  1539. }
  1540. if (other.JsonName.Length != 0) {
  1541. JsonName = other.JsonName;
  1542. }
  1543. if (other.options_ != null) {
  1544. if (options_ == null) {
  1545. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1546. }
  1547. Options.MergeFrom(other.Options);
  1548. }
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1551. public void MergeFrom(pb::CodedInputStream input) {
  1552. uint tag;
  1553. while ((tag = input.ReadTag()) != 0) {
  1554. switch(tag) {
  1555. default:
  1556. input.SkipLastField();
  1557. break;
  1558. case 10: {
  1559. Name = input.ReadString();
  1560. break;
  1561. }
  1562. case 18: {
  1563. Extendee = input.ReadString();
  1564. break;
  1565. }
  1566. case 24: {
  1567. Number = input.ReadInt32();
  1568. break;
  1569. }
  1570. case 32: {
  1571. label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
  1572. break;
  1573. }
  1574. case 40: {
  1575. type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
  1576. break;
  1577. }
  1578. case 50: {
  1579. TypeName = input.ReadString();
  1580. break;
  1581. }
  1582. case 58: {
  1583. DefaultValue = input.ReadString();
  1584. break;
  1585. }
  1586. case 66: {
  1587. if (options_ == null) {
  1588. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1589. }
  1590. input.ReadMessage(options_);
  1591. break;
  1592. }
  1593. case 72: {
  1594. OneofIndex = input.ReadInt32();
  1595. break;
  1596. }
  1597. case 82: {
  1598. JsonName = input.ReadString();
  1599. break;
  1600. }
  1601. }
  1602. }
  1603. }
  1604. #region Nested types
  1605. /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1607. public static partial class Types {
  1608. internal enum Type {
  1609. /// <summary>
  1610. /// 0 is reserved for errors.
  1611. /// Order is weird for historical reasons.
  1612. /// </summary>
  1613. [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
  1614. [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
  1615. /// <summary>
  1616. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
  1617. /// negative values are likely.
  1618. /// </summary>
  1619. [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
  1620. [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
  1621. /// <summary>
  1622. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
  1623. /// negative values are likely.
  1624. /// </summary>
  1625. [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
  1626. [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
  1627. [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
  1628. [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
  1629. [pbr::OriginalName("TYPE_STRING")] String = 9,
  1630. /// <summary>
  1631. /// Tag-delimited aggregate.
  1632. /// Group type is deprecated and not supported in proto3. However, Proto3
  1633. /// implementations should still be able to parse the group wire format and
  1634. /// treat group fields as unknown fields.
  1635. /// </summary>
  1636. [pbr::OriginalName("TYPE_GROUP")] Group = 10,
  1637. /// <summary>
  1638. /// Length-delimited aggregate.
  1639. /// </summary>
  1640. [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
  1641. /// <summary>
  1642. /// New in version 2.
  1643. /// </summary>
  1644. [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
  1645. [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
  1646. [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
  1647. [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
  1648. [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
  1649. /// <summary>
  1650. /// Uses ZigZag encoding.
  1651. /// </summary>
  1652. [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
  1653. /// <summary>
  1654. /// Uses ZigZag encoding.
  1655. /// </summary>
  1656. [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
  1657. }
  1658. internal enum Label {
  1659. /// <summary>
  1660. /// 0 is reserved for errors
  1661. /// </summary>
  1662. [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
  1663. [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
  1664. [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
  1665. }
  1666. }
  1667. #endregion
  1668. }
  1669. /// <summary>
  1670. /// Describes a oneof.
  1671. /// </summary>
  1672. internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
  1673. private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1675. public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1677. public static pbr::MessageDescriptor Descriptor {
  1678. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1681. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1682. get { return Descriptor; }
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1685. public OneofDescriptorProto() {
  1686. OnConstruction();
  1687. }
  1688. partial void OnConstruction();
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1690. public OneofDescriptorProto(OneofDescriptorProto other) : this() {
  1691. name_ = other.name_;
  1692. Options = other.options_ != null ? other.Options.Clone() : null;
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1695. public OneofDescriptorProto Clone() {
  1696. return new OneofDescriptorProto(this);
  1697. }
  1698. /// <summary>Field number for the "name" field.</summary>
  1699. public const int NameFieldNumber = 1;
  1700. private string name_ = "";
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1702. public string Name {
  1703. get { return name_; }
  1704. set {
  1705. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1706. }
  1707. }
  1708. /// <summary>Field number for the "options" field.</summary>
  1709. public const int OptionsFieldNumber = 2;
  1710. private global::Google.Protobuf.Reflection.OneofOptions options_;
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1712. public global::Google.Protobuf.Reflection.OneofOptions Options {
  1713. get { return options_; }
  1714. set {
  1715. options_ = value;
  1716. }
  1717. }
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1719. public override bool Equals(object other) {
  1720. return Equals(other as OneofDescriptorProto);
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1723. public bool Equals(OneofDescriptorProto other) {
  1724. if (ReferenceEquals(other, null)) {
  1725. return false;
  1726. }
  1727. if (ReferenceEquals(other, this)) {
  1728. return true;
  1729. }
  1730. if (Name != other.Name) return false;
  1731. if (!object.Equals(Options, other.Options)) return false;
  1732. return true;
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1735. public override int GetHashCode() {
  1736. int hash = 1;
  1737. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1738. if (options_ != null) hash ^= Options.GetHashCode();
  1739. return hash;
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1742. public override string ToString() {
  1743. return pb::JsonFormatter.ToDiagnosticString(this);
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1746. public void WriteTo(pb::CodedOutputStream output) {
  1747. if (Name.Length != 0) {
  1748. output.WriteRawTag(10);
  1749. output.WriteString(Name);
  1750. }
  1751. if (options_ != null) {
  1752. output.WriteRawTag(18);
  1753. output.WriteMessage(Options);
  1754. }
  1755. }
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1757. public int CalculateSize() {
  1758. int size = 0;
  1759. if (Name.Length != 0) {
  1760. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1761. }
  1762. if (options_ != null) {
  1763. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1764. }
  1765. return size;
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1768. public void MergeFrom(OneofDescriptorProto other) {
  1769. if (other == null) {
  1770. return;
  1771. }
  1772. if (other.Name.Length != 0) {
  1773. Name = other.Name;
  1774. }
  1775. if (other.options_ != null) {
  1776. if (options_ == null) {
  1777. options_ = new global::Google.Protobuf.Reflection.OneofOptions();
  1778. }
  1779. Options.MergeFrom(other.Options);
  1780. }
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1783. public void MergeFrom(pb::CodedInputStream input) {
  1784. uint tag;
  1785. while ((tag = input.ReadTag()) != 0) {
  1786. switch(tag) {
  1787. default:
  1788. input.SkipLastField();
  1789. break;
  1790. case 10: {
  1791. Name = input.ReadString();
  1792. break;
  1793. }
  1794. case 18: {
  1795. if (options_ == null) {
  1796. options_ = new global::Google.Protobuf.Reflection.OneofOptions();
  1797. }
  1798. input.ReadMessage(options_);
  1799. break;
  1800. }
  1801. }
  1802. }
  1803. }
  1804. }
  1805. /// <summary>
  1806. /// Describes an enum type.
  1807. /// </summary>
  1808. internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
  1809. private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1811. public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1813. public static pbr::MessageDescriptor Descriptor {
  1814. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1817. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1818. get { return Descriptor; }
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1821. public EnumDescriptorProto() {
  1822. OnConstruction();
  1823. }
  1824. partial void OnConstruction();
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1826. public EnumDescriptorProto(EnumDescriptorProto other) : this() {
  1827. name_ = other.name_;
  1828. value_ = other.value_.Clone();
  1829. Options = other.options_ != null ? other.Options.Clone() : null;
  1830. }
  1831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1832. public EnumDescriptorProto Clone() {
  1833. return new EnumDescriptorProto(this);
  1834. }
  1835. /// <summary>Field number for the "name" field.</summary>
  1836. public const int NameFieldNumber = 1;
  1837. private string name_ = "";
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1839. public string Name {
  1840. get { return name_; }
  1841. set {
  1842. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1843. }
  1844. }
  1845. /// <summary>Field number for the "value" field.</summary>
  1846. public const int ValueFieldNumber = 2;
  1847. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
  1848. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
  1849. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1851. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
  1852. get { return value_; }
  1853. }
  1854. /// <summary>Field number for the "options" field.</summary>
  1855. public const int OptionsFieldNumber = 3;
  1856. private global::Google.Protobuf.Reflection.EnumOptions options_;
  1857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1858. public global::Google.Protobuf.Reflection.EnumOptions Options {
  1859. get { return options_; }
  1860. set {
  1861. options_ = value;
  1862. }
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1865. public override bool Equals(object other) {
  1866. return Equals(other as EnumDescriptorProto);
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1869. public bool Equals(EnumDescriptorProto other) {
  1870. if (ReferenceEquals(other, null)) {
  1871. return false;
  1872. }
  1873. if (ReferenceEquals(other, this)) {
  1874. return true;
  1875. }
  1876. if (Name != other.Name) return false;
  1877. if(!value_.Equals(other.value_)) return false;
  1878. if (!object.Equals(Options, other.Options)) return false;
  1879. return true;
  1880. }
  1881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1882. public override int GetHashCode() {
  1883. int hash = 1;
  1884. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1885. hash ^= value_.GetHashCode();
  1886. if (options_ != null) hash ^= Options.GetHashCode();
  1887. return hash;
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1890. public override string ToString() {
  1891. return pb::JsonFormatter.ToDiagnosticString(this);
  1892. }
  1893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1894. public void WriteTo(pb::CodedOutputStream output) {
  1895. if (Name.Length != 0) {
  1896. output.WriteRawTag(10);
  1897. output.WriteString(Name);
  1898. }
  1899. value_.WriteTo(output, _repeated_value_codec);
  1900. if (options_ != null) {
  1901. output.WriteRawTag(26);
  1902. output.WriteMessage(Options);
  1903. }
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1906. public int CalculateSize() {
  1907. int size = 0;
  1908. if (Name.Length != 0) {
  1909. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1910. }
  1911. size += value_.CalculateSize(_repeated_value_codec);
  1912. if (options_ != null) {
  1913. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1914. }
  1915. return size;
  1916. }
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1918. public void MergeFrom(EnumDescriptorProto other) {
  1919. if (other == null) {
  1920. return;
  1921. }
  1922. if (other.Name.Length != 0) {
  1923. Name = other.Name;
  1924. }
  1925. value_.Add(other.value_);
  1926. if (other.options_ != null) {
  1927. if (options_ == null) {
  1928. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1929. }
  1930. Options.MergeFrom(other.Options);
  1931. }
  1932. }
  1933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1934. public void MergeFrom(pb::CodedInputStream input) {
  1935. uint tag;
  1936. while ((tag = input.ReadTag()) != 0) {
  1937. switch(tag) {
  1938. default:
  1939. input.SkipLastField();
  1940. break;
  1941. case 10: {
  1942. Name = input.ReadString();
  1943. break;
  1944. }
  1945. case 18: {
  1946. value_.AddEntriesFrom(input, _repeated_value_codec);
  1947. break;
  1948. }
  1949. case 26: {
  1950. if (options_ == null) {
  1951. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1952. }
  1953. input.ReadMessage(options_);
  1954. break;
  1955. }
  1956. }
  1957. }
  1958. }
  1959. }
  1960. /// <summary>
  1961. /// Describes a value within an enum.
  1962. /// </summary>
  1963. internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
  1964. private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1966. public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1968. public static pbr::MessageDescriptor Descriptor {
  1969. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1972. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1973. get { return Descriptor; }
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1976. public EnumValueDescriptorProto() {
  1977. OnConstruction();
  1978. }
  1979. partial void OnConstruction();
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1981. public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
  1982. name_ = other.name_;
  1983. number_ = other.number_;
  1984. Options = other.options_ != null ? other.Options.Clone() : null;
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1987. public EnumValueDescriptorProto Clone() {
  1988. return new EnumValueDescriptorProto(this);
  1989. }
  1990. /// <summary>Field number for the "name" field.</summary>
  1991. public const int NameFieldNumber = 1;
  1992. private string name_ = "";
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1994. public string Name {
  1995. get { return name_; }
  1996. set {
  1997. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1998. }
  1999. }
  2000. /// <summary>Field number for the "number" field.</summary>
  2001. public const int NumberFieldNumber = 2;
  2002. private int number_;
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2004. public int Number {
  2005. get { return number_; }
  2006. set {
  2007. number_ = value;
  2008. }
  2009. }
  2010. /// <summary>Field number for the "options" field.</summary>
  2011. public const int OptionsFieldNumber = 3;
  2012. private global::Google.Protobuf.Reflection.EnumValueOptions options_;
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2014. public global::Google.Protobuf.Reflection.EnumValueOptions Options {
  2015. get { return options_; }
  2016. set {
  2017. options_ = value;
  2018. }
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2021. public override bool Equals(object other) {
  2022. return Equals(other as EnumValueDescriptorProto);
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2025. public bool Equals(EnumValueDescriptorProto other) {
  2026. if (ReferenceEquals(other, null)) {
  2027. return false;
  2028. }
  2029. if (ReferenceEquals(other, this)) {
  2030. return true;
  2031. }
  2032. if (Name != other.Name) return false;
  2033. if (Number != other.Number) return false;
  2034. if (!object.Equals(Options, other.Options)) return false;
  2035. return true;
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2038. public override int GetHashCode() {
  2039. int hash = 1;
  2040. if (Name.Length != 0) hash ^= Name.GetHashCode();
  2041. if (Number != 0) hash ^= Number.GetHashCode();
  2042. if (options_ != null) hash ^= Options.GetHashCode();
  2043. return hash;
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2046. public override string ToString() {
  2047. return pb::JsonFormatter.ToDiagnosticString(this);
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2050. public void WriteTo(pb::CodedOutputStream output) {
  2051. if (Name.Length != 0) {
  2052. output.WriteRawTag(10);
  2053. output.WriteString(Name);
  2054. }
  2055. if (Number != 0) {
  2056. output.WriteRawTag(16);
  2057. output.WriteInt32(Number);
  2058. }
  2059. if (options_ != null) {
  2060. output.WriteRawTag(26);
  2061. output.WriteMessage(Options);
  2062. }
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2065. public int CalculateSize() {
  2066. int size = 0;
  2067. if (Name.Length != 0) {
  2068. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2069. }
  2070. if (Number != 0) {
  2071. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  2072. }
  2073. if (options_ != null) {
  2074. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2075. }
  2076. return size;
  2077. }
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2079. public void MergeFrom(EnumValueDescriptorProto other) {
  2080. if (other == null) {
  2081. return;
  2082. }
  2083. if (other.Name.Length != 0) {
  2084. Name = other.Name;
  2085. }
  2086. if (other.Number != 0) {
  2087. Number = other.Number;
  2088. }
  2089. if (other.options_ != null) {
  2090. if (options_ == null) {
  2091. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  2092. }
  2093. Options.MergeFrom(other.Options);
  2094. }
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2097. public void MergeFrom(pb::CodedInputStream input) {
  2098. uint tag;
  2099. while ((tag = input.ReadTag()) != 0) {
  2100. switch(tag) {
  2101. default:
  2102. input.SkipLastField();
  2103. break;
  2104. case 10: {
  2105. Name = input.ReadString();
  2106. break;
  2107. }
  2108. case 16: {
  2109. Number = input.ReadInt32();
  2110. break;
  2111. }
  2112. case 26: {
  2113. if (options_ == null) {
  2114. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  2115. }
  2116. input.ReadMessage(options_);
  2117. break;
  2118. }
  2119. }
  2120. }
  2121. }
  2122. }
  2123. /// <summary>
  2124. /// Describes a service.
  2125. /// </summary>
  2126. internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
  2127. private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2129. public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2131. public static pbr::MessageDescriptor Descriptor {
  2132. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2135. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2136. get { return Descriptor; }
  2137. }
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2139. public ServiceDescriptorProto() {
  2140. OnConstruction();
  2141. }
  2142. partial void OnConstruction();
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2144. public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
  2145. name_ = other.name_;
  2146. method_ = other.method_.Clone();
  2147. Options = other.options_ != null ? other.Options.Clone() : null;
  2148. }
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2150. public ServiceDescriptorProto Clone() {
  2151. return new ServiceDescriptorProto(this);
  2152. }
  2153. /// <summary>Field number for the "name" field.</summary>
  2154. public const int NameFieldNumber = 1;
  2155. private string name_ = "";
  2156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2157. public string Name {
  2158. get { return name_; }
  2159. set {
  2160. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2161. }
  2162. }
  2163. /// <summary>Field number for the "method" field.</summary>
  2164. public const int MethodFieldNumber = 2;
  2165. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
  2166. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
  2167. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
  2168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2169. public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
  2170. get { return method_; }
  2171. }
  2172. /// <summary>Field number for the "options" field.</summary>
  2173. public const int OptionsFieldNumber = 3;
  2174. private global::Google.Protobuf.Reflection.ServiceOptions options_;
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2176. public global::Google.Protobuf.Reflection.ServiceOptions Options {
  2177. get { return options_; }
  2178. set {
  2179. options_ = value;
  2180. }
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2183. public override bool Equals(object other) {
  2184. return Equals(other as ServiceDescriptorProto);
  2185. }
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2187. public bool Equals(ServiceDescriptorProto other) {
  2188. if (ReferenceEquals(other, null)) {
  2189. return false;
  2190. }
  2191. if (ReferenceEquals(other, this)) {
  2192. return true;
  2193. }
  2194. if (Name != other.Name) return false;
  2195. if(!method_.Equals(other.method_)) return false;
  2196. if (!object.Equals(Options, other.Options)) return false;
  2197. return true;
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2200. public override int GetHashCode() {
  2201. int hash = 1;
  2202. if (Name.Length != 0) hash ^= Name.GetHashCode();
  2203. hash ^= method_.GetHashCode();
  2204. if (options_ != null) hash ^= Options.GetHashCode();
  2205. return hash;
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2208. public override string ToString() {
  2209. return pb::JsonFormatter.ToDiagnosticString(this);
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2212. public void WriteTo(pb::CodedOutputStream output) {
  2213. if (Name.Length != 0) {
  2214. output.WriteRawTag(10);
  2215. output.WriteString(Name);
  2216. }
  2217. method_.WriteTo(output, _repeated_method_codec);
  2218. if (options_ != null) {
  2219. output.WriteRawTag(26);
  2220. output.WriteMessage(Options);
  2221. }
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2224. public int CalculateSize() {
  2225. int size = 0;
  2226. if (Name.Length != 0) {
  2227. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2228. }
  2229. size += method_.CalculateSize(_repeated_method_codec);
  2230. if (options_ != null) {
  2231. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2232. }
  2233. return size;
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2236. public void MergeFrom(ServiceDescriptorProto other) {
  2237. if (other == null) {
  2238. return;
  2239. }
  2240. if (other.Name.Length != 0) {
  2241. Name = other.Name;
  2242. }
  2243. method_.Add(other.method_);
  2244. if (other.options_ != null) {
  2245. if (options_ == null) {
  2246. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  2247. }
  2248. Options.MergeFrom(other.Options);
  2249. }
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2252. public void MergeFrom(pb::CodedInputStream input) {
  2253. uint tag;
  2254. while ((tag = input.ReadTag()) != 0) {
  2255. switch(tag) {
  2256. default:
  2257. input.SkipLastField();
  2258. break;
  2259. case 10: {
  2260. Name = input.ReadString();
  2261. break;
  2262. }
  2263. case 18: {
  2264. method_.AddEntriesFrom(input, _repeated_method_codec);
  2265. break;
  2266. }
  2267. case 26: {
  2268. if (options_ == null) {
  2269. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  2270. }
  2271. input.ReadMessage(options_);
  2272. break;
  2273. }
  2274. }
  2275. }
  2276. }
  2277. }
  2278. /// <summary>
  2279. /// Describes a method of a service.
  2280. /// </summary>
  2281. internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
  2282. private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2284. public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2286. public static pbr::MessageDescriptor Descriptor {
  2287. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2290. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2291. get { return Descriptor; }
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2294. public MethodDescriptorProto() {
  2295. OnConstruction();
  2296. }
  2297. partial void OnConstruction();
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2299. public MethodDescriptorProto(MethodDescriptorProto other) : this() {
  2300. name_ = other.name_;
  2301. inputType_ = other.inputType_;
  2302. outputType_ = other.outputType_;
  2303. Options = other.options_ != null ? other.Options.Clone() : null;
  2304. clientStreaming_ = other.clientStreaming_;
  2305. serverStreaming_ = other.serverStreaming_;
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2308. public MethodDescriptorProto Clone() {
  2309. return new MethodDescriptorProto(this);
  2310. }
  2311. /// <summary>Field number for the "name" field.</summary>
  2312. public const int NameFieldNumber = 1;
  2313. private string name_ = "";
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2315. public string Name {
  2316. get { return name_; }
  2317. set {
  2318. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2319. }
  2320. }
  2321. /// <summary>Field number for the "input_type" field.</summary>
  2322. public const int InputTypeFieldNumber = 2;
  2323. private string inputType_ = "";
  2324. /// <summary>
  2325. /// Input and output type names. These are resolved in the same way as
  2326. /// FieldDescriptorProto.type_name, but must refer to a message type.
  2327. /// </summary>
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2329. public string InputType {
  2330. get { return inputType_; }
  2331. set {
  2332. inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2333. }
  2334. }
  2335. /// <summary>Field number for the "output_type" field.</summary>
  2336. public const int OutputTypeFieldNumber = 3;
  2337. private string outputType_ = "";
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2339. public string OutputType {
  2340. get { return outputType_; }
  2341. set {
  2342. outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2343. }
  2344. }
  2345. /// <summary>Field number for the "options" field.</summary>
  2346. public const int OptionsFieldNumber = 4;
  2347. private global::Google.Protobuf.Reflection.MethodOptions options_;
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2349. public global::Google.Protobuf.Reflection.MethodOptions Options {
  2350. get { return options_; }
  2351. set {
  2352. options_ = value;
  2353. }
  2354. }
  2355. /// <summary>Field number for the "client_streaming" field.</summary>
  2356. public const int ClientStreamingFieldNumber = 5;
  2357. private bool clientStreaming_;
  2358. /// <summary>
  2359. /// Identifies if client streams multiple client messages
  2360. /// </summary>
  2361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2362. public bool ClientStreaming {
  2363. get { return clientStreaming_; }
  2364. set {
  2365. clientStreaming_ = value;
  2366. }
  2367. }
  2368. /// <summary>Field number for the "server_streaming" field.</summary>
  2369. public const int ServerStreamingFieldNumber = 6;
  2370. private bool serverStreaming_;
  2371. /// <summary>
  2372. /// Identifies if server streams multiple server messages
  2373. /// </summary>
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2375. public bool ServerStreaming {
  2376. get { return serverStreaming_; }
  2377. set {
  2378. serverStreaming_ = value;
  2379. }
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2382. public override bool Equals(object other) {
  2383. return Equals(other as MethodDescriptorProto);
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2386. public bool Equals(MethodDescriptorProto other) {
  2387. if (ReferenceEquals(other, null)) {
  2388. return false;
  2389. }
  2390. if (ReferenceEquals(other, this)) {
  2391. return true;
  2392. }
  2393. if (Name != other.Name) return false;
  2394. if (InputType != other.InputType) return false;
  2395. if (OutputType != other.OutputType) return false;
  2396. if (!object.Equals(Options, other.Options)) return false;
  2397. if (ClientStreaming != other.ClientStreaming) return false;
  2398. if (ServerStreaming != other.ServerStreaming) return false;
  2399. return true;
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2402. public override int GetHashCode() {
  2403. int hash = 1;
  2404. if (Name.Length != 0) hash ^= Name.GetHashCode();
  2405. if (InputType.Length != 0) hash ^= InputType.GetHashCode();
  2406. if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
  2407. if (options_ != null) hash ^= Options.GetHashCode();
  2408. if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
  2409. if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
  2410. return hash;
  2411. }
  2412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2413. public override string ToString() {
  2414. return pb::JsonFormatter.ToDiagnosticString(this);
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2417. public void WriteTo(pb::CodedOutputStream output) {
  2418. if (Name.Length != 0) {
  2419. output.WriteRawTag(10);
  2420. output.WriteString(Name);
  2421. }
  2422. if (InputType.Length != 0) {
  2423. output.WriteRawTag(18);
  2424. output.WriteString(InputType);
  2425. }
  2426. if (OutputType.Length != 0) {
  2427. output.WriteRawTag(26);
  2428. output.WriteString(OutputType);
  2429. }
  2430. if (options_ != null) {
  2431. output.WriteRawTag(34);
  2432. output.WriteMessage(Options);
  2433. }
  2434. if (ClientStreaming != false) {
  2435. output.WriteRawTag(40);
  2436. output.WriteBool(ClientStreaming);
  2437. }
  2438. if (ServerStreaming != false) {
  2439. output.WriteRawTag(48);
  2440. output.WriteBool(ServerStreaming);
  2441. }
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2444. public int CalculateSize() {
  2445. int size = 0;
  2446. if (Name.Length != 0) {
  2447. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2448. }
  2449. if (InputType.Length != 0) {
  2450. size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
  2451. }
  2452. if (OutputType.Length != 0) {
  2453. size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
  2454. }
  2455. if (options_ != null) {
  2456. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2457. }
  2458. if (ClientStreaming != false) {
  2459. size += 1 + 1;
  2460. }
  2461. if (ServerStreaming != false) {
  2462. size += 1 + 1;
  2463. }
  2464. return size;
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2467. public void MergeFrom(MethodDescriptorProto other) {
  2468. if (other == null) {
  2469. return;
  2470. }
  2471. if (other.Name.Length != 0) {
  2472. Name = other.Name;
  2473. }
  2474. if (other.InputType.Length != 0) {
  2475. InputType = other.InputType;
  2476. }
  2477. if (other.OutputType.Length != 0) {
  2478. OutputType = other.OutputType;
  2479. }
  2480. if (other.options_ != null) {
  2481. if (options_ == null) {
  2482. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2483. }
  2484. Options.MergeFrom(other.Options);
  2485. }
  2486. if (other.ClientStreaming != false) {
  2487. ClientStreaming = other.ClientStreaming;
  2488. }
  2489. if (other.ServerStreaming != false) {
  2490. ServerStreaming = other.ServerStreaming;
  2491. }
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2494. public void MergeFrom(pb::CodedInputStream input) {
  2495. uint tag;
  2496. while ((tag = input.ReadTag()) != 0) {
  2497. switch(tag) {
  2498. default:
  2499. input.SkipLastField();
  2500. break;
  2501. case 10: {
  2502. Name = input.ReadString();
  2503. break;
  2504. }
  2505. case 18: {
  2506. InputType = input.ReadString();
  2507. break;
  2508. }
  2509. case 26: {
  2510. OutputType = input.ReadString();
  2511. break;
  2512. }
  2513. case 34: {
  2514. if (options_ == null) {
  2515. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2516. }
  2517. input.ReadMessage(options_);
  2518. break;
  2519. }
  2520. case 40: {
  2521. ClientStreaming = input.ReadBool();
  2522. break;
  2523. }
  2524. case 48: {
  2525. ServerStreaming = input.ReadBool();
  2526. break;
  2527. }
  2528. }
  2529. }
  2530. }
  2531. }
  2532. internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
  2533. private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2535. public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
  2536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2537. public static pbr::MessageDescriptor Descriptor {
  2538. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
  2539. }
  2540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2541. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2542. get { return Descriptor; }
  2543. }
  2544. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  2545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2546. public FileOptions() {
  2547. OnConstruction();
  2548. }
  2549. partial void OnConstruction();
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2551. public FileOptions(FileOptions other) : this() {
  2552. javaPackage_ = other.javaPackage_;
  2553. javaOuterClassname_ = other.javaOuterClassname_;
  2554. javaMultipleFiles_ = other.javaMultipleFiles_;
  2555. javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
  2556. javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
  2557. optimizeFor_ = other.optimizeFor_;
  2558. goPackage_ = other.goPackage_;
  2559. ccGenericServices_ = other.ccGenericServices_;
  2560. javaGenericServices_ = other.javaGenericServices_;
  2561. pyGenericServices_ = other.pyGenericServices_;
  2562. deprecated_ = other.deprecated_;
  2563. ccEnableArenas_ = other.ccEnableArenas_;
  2564. objcClassPrefix_ = other.objcClassPrefix_;
  2565. csharpNamespace_ = other.csharpNamespace_;
  2566. swiftPrefix_ = other.swiftPrefix_;
  2567. phpClassPrefix_ = other.phpClassPrefix_;
  2568. phpNamespace_ = other.phpNamespace_;
  2569. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2572. public FileOptions Clone() {
  2573. return new FileOptions(this);
  2574. }
  2575. /// <summary>Field number for the "java_package" field.</summary>
  2576. public const int JavaPackageFieldNumber = 1;
  2577. private string javaPackage_ = "";
  2578. /// <summary>
  2579. /// Sets the Java package where classes generated from this .proto will be
  2580. /// placed. By default, the proto package is used, but this is often
  2581. /// inappropriate because proto packages do not normally start with backwards
  2582. /// domain names.
  2583. /// </summary>
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2585. public string JavaPackage {
  2586. get { return javaPackage_; }
  2587. set {
  2588. javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2589. }
  2590. }
  2591. /// <summary>Field number for the "java_outer_classname" field.</summary>
  2592. public const int JavaOuterClassnameFieldNumber = 8;
  2593. private string javaOuterClassname_ = "";
  2594. /// <summary>
  2595. /// If set, all the classes from the .proto file are wrapped in a single
  2596. /// outer class with the given name. This applies to both Proto1
  2597. /// (equivalent to the old "--one_java_file" option) and Proto2 (where
  2598. /// a .proto always translates to a single class, but you may want to
  2599. /// explicitly choose the class name).
  2600. /// </summary>
  2601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2602. public string JavaOuterClassname {
  2603. get { return javaOuterClassname_; }
  2604. set {
  2605. javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2606. }
  2607. }
  2608. /// <summary>Field number for the "java_multiple_files" field.</summary>
  2609. public const int JavaMultipleFilesFieldNumber = 10;
  2610. private bool javaMultipleFiles_;
  2611. /// <summary>
  2612. /// If set true, then the Java code generator will generate a separate .java
  2613. /// file for each top-level message, enum, and service defined in the .proto
  2614. /// file. Thus, these types will *not* be nested inside the outer class
  2615. /// named by java_outer_classname. However, the outer class will still be
  2616. /// generated to contain the file's getDescriptor() method as well as any
  2617. /// top-level extensions defined in the file.
  2618. /// </summary>
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2620. public bool JavaMultipleFiles {
  2621. get { return javaMultipleFiles_; }
  2622. set {
  2623. javaMultipleFiles_ = value;
  2624. }
  2625. }
  2626. /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
  2627. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  2628. private bool javaGenerateEqualsAndHash_;
  2629. /// <summary>
  2630. /// This option does nothing.
  2631. /// </summary>
  2632. [global::System.ObsoleteAttribute]
  2633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2634. public bool JavaGenerateEqualsAndHash {
  2635. get { return javaGenerateEqualsAndHash_; }
  2636. set {
  2637. javaGenerateEqualsAndHash_ = value;
  2638. }
  2639. }
  2640. /// <summary>Field number for the "java_string_check_utf8" field.</summary>
  2641. public const int JavaStringCheckUtf8FieldNumber = 27;
  2642. private bool javaStringCheckUtf8_;
  2643. /// <summary>
  2644. /// If set true, then the Java2 code generator will generate code that
  2645. /// throws an exception whenever an attempt is made to assign a non-UTF-8
  2646. /// byte sequence to a string field.
  2647. /// Message reflection will do the same.
  2648. /// However, an extension field still accepts non-UTF-8 byte sequences.
  2649. /// This option has no effect on when used with the lite runtime.
  2650. /// </summary>
  2651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2652. public bool JavaStringCheckUtf8 {
  2653. get { return javaStringCheckUtf8_; }
  2654. set {
  2655. javaStringCheckUtf8_ = value;
  2656. }
  2657. }
  2658. /// <summary>Field number for the "optimize_for" field.</summary>
  2659. public const int OptimizeForFieldNumber = 9;
  2660. private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = 0;
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2662. public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
  2663. get { return optimizeFor_; }
  2664. set {
  2665. optimizeFor_ = value;
  2666. }
  2667. }
  2668. /// <summary>Field number for the "go_package" field.</summary>
  2669. public const int GoPackageFieldNumber = 11;
  2670. private string goPackage_ = "";
  2671. /// <summary>
  2672. /// Sets the Go package where structs generated from this .proto will be
  2673. /// placed. If omitted, the Go package will be derived from the following:
  2674. /// - The basename of the package import path, if provided.
  2675. /// - Otherwise, the package statement in the .proto file, if present.
  2676. /// - Otherwise, the basename of the .proto file, without extension.
  2677. /// </summary>
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2679. public string GoPackage {
  2680. get { return goPackage_; }
  2681. set {
  2682. goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2683. }
  2684. }
  2685. /// <summary>Field number for the "cc_generic_services" field.</summary>
  2686. public const int CcGenericServicesFieldNumber = 16;
  2687. private bool ccGenericServices_;
  2688. /// <summary>
  2689. /// Should generic services be generated in each language? "Generic" services
  2690. /// are not specific to any particular RPC system. They are generated by the
  2691. /// main code generators in each language (without additional plugins).
  2692. /// Generic services were the only kind of service generation supported by
  2693. /// early versions of google.protobuf.
  2694. ///
  2695. /// Generic services are now considered deprecated in favor of using plugins
  2696. /// that generate code specific to your particular RPC system. Therefore,
  2697. /// these default to false. Old code which depends on generic services should
  2698. /// explicitly set them to true.
  2699. /// </summary>
  2700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2701. public bool CcGenericServices {
  2702. get { return ccGenericServices_; }
  2703. set {
  2704. ccGenericServices_ = value;
  2705. }
  2706. }
  2707. /// <summary>Field number for the "java_generic_services" field.</summary>
  2708. public const int JavaGenericServicesFieldNumber = 17;
  2709. private bool javaGenericServices_;
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2711. public bool JavaGenericServices {
  2712. get { return javaGenericServices_; }
  2713. set {
  2714. javaGenericServices_ = value;
  2715. }
  2716. }
  2717. /// <summary>Field number for the "py_generic_services" field.</summary>
  2718. public const int PyGenericServicesFieldNumber = 18;
  2719. private bool pyGenericServices_;
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2721. public bool PyGenericServices {
  2722. get { return pyGenericServices_; }
  2723. set {
  2724. pyGenericServices_ = value;
  2725. }
  2726. }
  2727. /// <summary>Field number for the "deprecated" field.</summary>
  2728. public const int DeprecatedFieldNumber = 23;
  2729. private bool deprecated_;
  2730. /// <summary>
  2731. /// Is this file deprecated?
  2732. /// Depending on the target platform, this can emit Deprecated annotations
  2733. /// for everything in the file, or it will be completely ignored; in the very
  2734. /// least, this is a formalization for deprecating files.
  2735. /// </summary>
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2737. public bool Deprecated {
  2738. get { return deprecated_; }
  2739. set {
  2740. deprecated_ = value;
  2741. }
  2742. }
  2743. /// <summary>Field number for the "cc_enable_arenas" field.</summary>
  2744. public const int CcEnableArenasFieldNumber = 31;
  2745. private bool ccEnableArenas_;
  2746. /// <summary>
  2747. /// Enables the use of arenas for the proto messages in this file. This applies
  2748. /// only to generated classes for C++.
  2749. /// </summary>
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2751. public bool CcEnableArenas {
  2752. get { return ccEnableArenas_; }
  2753. set {
  2754. ccEnableArenas_ = value;
  2755. }
  2756. }
  2757. /// <summary>Field number for the "objc_class_prefix" field.</summary>
  2758. public const int ObjcClassPrefixFieldNumber = 36;
  2759. private string objcClassPrefix_ = "";
  2760. /// <summary>
  2761. /// Sets the objective c class prefix which is prepended to all objective c
  2762. /// generated classes from this .proto. There is no default.
  2763. /// </summary>
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2765. public string ObjcClassPrefix {
  2766. get { return objcClassPrefix_; }
  2767. set {
  2768. objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2769. }
  2770. }
  2771. /// <summary>Field number for the "csharp_namespace" field.</summary>
  2772. public const int CsharpNamespaceFieldNumber = 37;
  2773. private string csharpNamespace_ = "";
  2774. /// <summary>
  2775. /// Namespace for generated classes; defaults to the package.
  2776. /// </summary>
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2778. public string CsharpNamespace {
  2779. get { return csharpNamespace_; }
  2780. set {
  2781. csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2782. }
  2783. }
  2784. /// <summary>Field number for the "swift_prefix" field.</summary>
  2785. public const int SwiftPrefixFieldNumber = 39;
  2786. private string swiftPrefix_ = "";
  2787. /// <summary>
  2788. /// By default Swift generators will take the proto package and CamelCase it
  2789. /// replacing '.' with underscore and use that to prefix the types/symbols
  2790. /// defined. When this options is provided, they will use this value instead
  2791. /// to prefix the types/symbols defined.
  2792. /// </summary>
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2794. public string SwiftPrefix {
  2795. get { return swiftPrefix_; }
  2796. set {
  2797. swiftPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2798. }
  2799. }
  2800. /// <summary>Field number for the "php_class_prefix" field.</summary>
  2801. public const int PhpClassPrefixFieldNumber = 40;
  2802. private string phpClassPrefix_ = "";
  2803. /// <summary>
  2804. /// Sets the php class prefix which is prepended to all php generated classes
  2805. /// from this .proto. Default is empty.
  2806. /// </summary>
  2807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2808. public string PhpClassPrefix {
  2809. get { return phpClassPrefix_; }
  2810. set {
  2811. phpClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2812. }
  2813. }
  2814. /// <summary>Field number for the "php_namespace" field.</summary>
  2815. public const int PhpNamespaceFieldNumber = 41;
  2816. private string phpNamespace_ = "";
  2817. /// <summary>
  2818. /// Use this option to change the namespace of php generated classes. Default
  2819. /// is empty. When this option is empty, the package name will be used for
  2820. /// determining the namespace.
  2821. /// </summary>
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2823. public string PhpNamespace {
  2824. get { return phpNamespace_; }
  2825. set {
  2826. phpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2827. }
  2828. }
  2829. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  2830. public const int UninterpretedOptionFieldNumber = 999;
  2831. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2832. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2833. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2834. /// <summary>
  2835. /// The parser stores options it doesn't recognize here. See above.
  2836. /// </summary>
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2838. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2839. get { return uninterpretedOption_; }
  2840. }
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2842. public override bool Equals(object other) {
  2843. return Equals(other as FileOptions);
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2846. public bool Equals(FileOptions other) {
  2847. if (ReferenceEquals(other, null)) {
  2848. return false;
  2849. }
  2850. if (ReferenceEquals(other, this)) {
  2851. return true;
  2852. }
  2853. if (JavaPackage != other.JavaPackage) return false;
  2854. if (JavaOuterClassname != other.JavaOuterClassname) return false;
  2855. if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
  2856. if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
  2857. if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
  2858. if (OptimizeFor != other.OptimizeFor) return false;
  2859. if (GoPackage != other.GoPackage) return false;
  2860. if (CcGenericServices != other.CcGenericServices) return false;
  2861. if (JavaGenericServices != other.JavaGenericServices) return false;
  2862. if (PyGenericServices != other.PyGenericServices) return false;
  2863. if (Deprecated != other.Deprecated) return false;
  2864. if (CcEnableArenas != other.CcEnableArenas) return false;
  2865. if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
  2866. if (CsharpNamespace != other.CsharpNamespace) return false;
  2867. if (SwiftPrefix != other.SwiftPrefix) return false;
  2868. if (PhpClassPrefix != other.PhpClassPrefix) return false;
  2869. if (PhpNamespace != other.PhpNamespace) return false;
  2870. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2871. return true;
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2874. public override int GetHashCode() {
  2875. int hash = 1;
  2876. if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
  2877. if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
  2878. if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
  2879. if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
  2880. if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
  2881. if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode();
  2882. if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
  2883. if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
  2884. if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode();
  2885. if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
  2886. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2887. if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
  2888. if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
  2889. if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
  2890. if (SwiftPrefix.Length != 0) hash ^= SwiftPrefix.GetHashCode();
  2891. if (PhpClassPrefix.Length != 0) hash ^= PhpClassPrefix.GetHashCode();
  2892. if (PhpNamespace.Length != 0) hash ^= PhpNamespace.GetHashCode();
  2893. hash ^= uninterpretedOption_.GetHashCode();
  2894. return hash;
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2897. public override string ToString() {
  2898. return pb::JsonFormatter.ToDiagnosticString(this);
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2901. public void WriteTo(pb::CodedOutputStream output) {
  2902. if (JavaPackage.Length != 0) {
  2903. output.WriteRawTag(10);
  2904. output.WriteString(JavaPackage);
  2905. }
  2906. if (JavaOuterClassname.Length != 0) {
  2907. output.WriteRawTag(66);
  2908. output.WriteString(JavaOuterClassname);
  2909. }
  2910. if (OptimizeFor != 0) {
  2911. output.WriteRawTag(72);
  2912. output.WriteEnum((int) OptimizeFor);
  2913. }
  2914. if (JavaMultipleFiles != false) {
  2915. output.WriteRawTag(80);
  2916. output.WriteBool(JavaMultipleFiles);
  2917. }
  2918. if (GoPackage.Length != 0) {
  2919. output.WriteRawTag(90);
  2920. output.WriteString(GoPackage);
  2921. }
  2922. if (CcGenericServices != false) {
  2923. output.WriteRawTag(128, 1);
  2924. output.WriteBool(CcGenericServices);
  2925. }
  2926. if (JavaGenericServices != false) {
  2927. output.WriteRawTag(136, 1);
  2928. output.WriteBool(JavaGenericServices);
  2929. }
  2930. if (PyGenericServices != false) {
  2931. output.WriteRawTag(144, 1);
  2932. output.WriteBool(PyGenericServices);
  2933. }
  2934. if (JavaGenerateEqualsAndHash != false) {
  2935. output.WriteRawTag(160, 1);
  2936. output.WriteBool(JavaGenerateEqualsAndHash);
  2937. }
  2938. if (Deprecated != false) {
  2939. output.WriteRawTag(184, 1);
  2940. output.WriteBool(Deprecated);
  2941. }
  2942. if (JavaStringCheckUtf8 != false) {
  2943. output.WriteRawTag(216, 1);
  2944. output.WriteBool(JavaStringCheckUtf8);
  2945. }
  2946. if (CcEnableArenas != false) {
  2947. output.WriteRawTag(248, 1);
  2948. output.WriteBool(CcEnableArenas);
  2949. }
  2950. if (ObjcClassPrefix.Length != 0) {
  2951. output.WriteRawTag(162, 2);
  2952. output.WriteString(ObjcClassPrefix);
  2953. }
  2954. if (CsharpNamespace.Length != 0) {
  2955. output.WriteRawTag(170, 2);
  2956. output.WriteString(CsharpNamespace);
  2957. }
  2958. if (SwiftPrefix.Length != 0) {
  2959. output.WriteRawTag(186, 2);
  2960. output.WriteString(SwiftPrefix);
  2961. }
  2962. if (PhpClassPrefix.Length != 0) {
  2963. output.WriteRawTag(194, 2);
  2964. output.WriteString(PhpClassPrefix);
  2965. }
  2966. if (PhpNamespace.Length != 0) {
  2967. output.WriteRawTag(202, 2);
  2968. output.WriteString(PhpNamespace);
  2969. }
  2970. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2973. public int CalculateSize() {
  2974. int size = 0;
  2975. if (JavaPackage.Length != 0) {
  2976. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
  2977. }
  2978. if (JavaOuterClassname.Length != 0) {
  2979. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
  2980. }
  2981. if (JavaMultipleFiles != false) {
  2982. size += 1 + 1;
  2983. }
  2984. if (JavaGenerateEqualsAndHash != false) {
  2985. size += 2 + 1;
  2986. }
  2987. if (JavaStringCheckUtf8 != false) {
  2988. size += 2 + 1;
  2989. }
  2990. if (OptimizeFor != 0) {
  2991. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
  2992. }
  2993. if (GoPackage.Length != 0) {
  2994. size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
  2995. }
  2996. if (CcGenericServices != false) {
  2997. size += 2 + 1;
  2998. }
  2999. if (JavaGenericServices != false) {
  3000. size += 2 + 1;
  3001. }
  3002. if (PyGenericServices != false) {
  3003. size += 2 + 1;
  3004. }
  3005. if (Deprecated != false) {
  3006. size += 2 + 1;
  3007. }
  3008. if (CcEnableArenas != false) {
  3009. size += 2 + 1;
  3010. }
  3011. if (ObjcClassPrefix.Length != 0) {
  3012. size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
  3013. }
  3014. if (CsharpNamespace.Length != 0) {
  3015. size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
  3016. }
  3017. if (SwiftPrefix.Length != 0) {
  3018. size += 2 + pb::CodedOutputStream.ComputeStringSize(SwiftPrefix);
  3019. }
  3020. if (PhpClassPrefix.Length != 0) {
  3021. size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpClassPrefix);
  3022. }
  3023. if (PhpNamespace.Length != 0) {
  3024. size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace);
  3025. }
  3026. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3027. return size;
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3030. public void MergeFrom(FileOptions other) {
  3031. if (other == null) {
  3032. return;
  3033. }
  3034. if (other.JavaPackage.Length != 0) {
  3035. JavaPackage = other.JavaPackage;
  3036. }
  3037. if (other.JavaOuterClassname.Length != 0) {
  3038. JavaOuterClassname = other.JavaOuterClassname;
  3039. }
  3040. if (other.JavaMultipleFiles != false) {
  3041. JavaMultipleFiles = other.JavaMultipleFiles;
  3042. }
  3043. if (other.JavaGenerateEqualsAndHash != false) {
  3044. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  3045. }
  3046. if (other.JavaStringCheckUtf8 != false) {
  3047. JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
  3048. }
  3049. if (other.OptimizeFor != 0) {
  3050. OptimizeFor = other.OptimizeFor;
  3051. }
  3052. if (other.GoPackage.Length != 0) {
  3053. GoPackage = other.GoPackage;
  3054. }
  3055. if (other.CcGenericServices != false) {
  3056. CcGenericServices = other.CcGenericServices;
  3057. }
  3058. if (other.JavaGenericServices != false) {
  3059. JavaGenericServices = other.JavaGenericServices;
  3060. }
  3061. if (other.PyGenericServices != false) {
  3062. PyGenericServices = other.PyGenericServices;
  3063. }
  3064. if (other.Deprecated != false) {
  3065. Deprecated = other.Deprecated;
  3066. }
  3067. if (other.CcEnableArenas != false) {
  3068. CcEnableArenas = other.CcEnableArenas;
  3069. }
  3070. if (other.ObjcClassPrefix.Length != 0) {
  3071. ObjcClassPrefix = other.ObjcClassPrefix;
  3072. }
  3073. if (other.CsharpNamespace.Length != 0) {
  3074. CsharpNamespace = other.CsharpNamespace;
  3075. }
  3076. if (other.SwiftPrefix.Length != 0) {
  3077. SwiftPrefix = other.SwiftPrefix;
  3078. }
  3079. if (other.PhpClassPrefix.Length != 0) {
  3080. PhpClassPrefix = other.PhpClassPrefix;
  3081. }
  3082. if (other.PhpNamespace.Length != 0) {
  3083. PhpNamespace = other.PhpNamespace;
  3084. }
  3085. uninterpretedOption_.Add(other.uninterpretedOption_);
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3088. public void MergeFrom(pb::CodedInputStream input) {
  3089. uint tag;
  3090. while ((tag = input.ReadTag()) != 0) {
  3091. switch(tag) {
  3092. default:
  3093. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  3094. break;
  3095. case 10: {
  3096. JavaPackage = input.ReadString();
  3097. break;
  3098. }
  3099. case 66: {
  3100. JavaOuterClassname = input.ReadString();
  3101. break;
  3102. }
  3103. case 72: {
  3104. optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
  3105. break;
  3106. }
  3107. case 80: {
  3108. JavaMultipleFiles = input.ReadBool();
  3109. break;
  3110. }
  3111. case 90: {
  3112. GoPackage = input.ReadString();
  3113. break;
  3114. }
  3115. case 128: {
  3116. CcGenericServices = input.ReadBool();
  3117. break;
  3118. }
  3119. case 136: {
  3120. JavaGenericServices = input.ReadBool();
  3121. break;
  3122. }
  3123. case 144: {
  3124. PyGenericServices = input.ReadBool();
  3125. break;
  3126. }
  3127. case 160: {
  3128. JavaGenerateEqualsAndHash = input.ReadBool();
  3129. break;
  3130. }
  3131. case 184: {
  3132. Deprecated = input.ReadBool();
  3133. break;
  3134. }
  3135. case 216: {
  3136. JavaStringCheckUtf8 = input.ReadBool();
  3137. break;
  3138. }
  3139. case 248: {
  3140. CcEnableArenas = input.ReadBool();
  3141. break;
  3142. }
  3143. case 290: {
  3144. ObjcClassPrefix = input.ReadString();
  3145. break;
  3146. }
  3147. case 298: {
  3148. CsharpNamespace = input.ReadString();
  3149. break;
  3150. }
  3151. case 314: {
  3152. SwiftPrefix = input.ReadString();
  3153. break;
  3154. }
  3155. case 322: {
  3156. PhpClassPrefix = input.ReadString();
  3157. break;
  3158. }
  3159. case 330: {
  3160. PhpNamespace = input.ReadString();
  3161. break;
  3162. }
  3163. case 7994: {
  3164. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3165. break;
  3166. }
  3167. }
  3168. }
  3169. }
  3170. #region Nested types
  3171. /// <summary>Container for nested types declared in the FileOptions message type.</summary>
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3173. public static partial class Types {
  3174. /// <summary>
  3175. /// Generated classes can be optimized for speed or code size.
  3176. /// </summary>
  3177. internal enum OptimizeMode {
  3178. /// <summary>
  3179. /// Generate complete code for parsing, serialization,
  3180. /// </summary>
  3181. [pbr::OriginalName("SPEED")] Speed = 1,
  3182. /// <summary>
  3183. /// etc.
  3184. /// </summary>
  3185. [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
  3186. /// <summary>
  3187. /// Generate code using MessageLite and the lite runtime.
  3188. /// </summary>
  3189. [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
  3190. }
  3191. }
  3192. #endregion
  3193. }
  3194. internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
  3195. private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3197. public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3199. public static pbr::MessageDescriptor Descriptor {
  3200. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3203. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3204. get { return Descriptor; }
  3205. }
  3206. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  3207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3208. public MessageOptions() {
  3209. OnConstruction();
  3210. }
  3211. partial void OnConstruction();
  3212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3213. public MessageOptions(MessageOptions other) : this() {
  3214. messageSetWireFormat_ = other.messageSetWireFormat_;
  3215. noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
  3216. deprecated_ = other.deprecated_;
  3217. mapEntry_ = other.mapEntry_;
  3218. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3219. }
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3221. public MessageOptions Clone() {
  3222. return new MessageOptions(this);
  3223. }
  3224. /// <summary>Field number for the "message_set_wire_format" field.</summary>
  3225. public const int MessageSetWireFormatFieldNumber = 1;
  3226. private bool messageSetWireFormat_;
  3227. /// <summary>
  3228. /// Set true to use the old proto1 MessageSet wire format for extensions.
  3229. /// This is provided for backwards-compatibility with the MessageSet wire
  3230. /// format. You should not use this for any other reason: It's less
  3231. /// efficient, has fewer features, and is more complicated.
  3232. ///
  3233. /// The message must be defined exactly as follows:
  3234. /// message Foo {
  3235. /// option message_set_wire_format = true;
  3236. /// extensions 4 to max;
  3237. /// }
  3238. /// Note that the message cannot have any defined fields; MessageSets only
  3239. /// have extensions.
  3240. ///
  3241. /// All extensions of your type must be singular messages; e.g. they cannot
  3242. /// be int32s, enums, or repeated messages.
  3243. ///
  3244. /// Because this is an option, the above two restrictions are not enforced by
  3245. /// the protocol compiler.
  3246. /// </summary>
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3248. public bool MessageSetWireFormat {
  3249. get { return messageSetWireFormat_; }
  3250. set {
  3251. messageSetWireFormat_ = value;
  3252. }
  3253. }
  3254. /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
  3255. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  3256. private bool noStandardDescriptorAccessor_;
  3257. /// <summary>
  3258. /// Disables the generation of the standard "descriptor()" accessor, which can
  3259. /// conflict with a field of the same name. This is meant to make migration
  3260. /// from proto1 easier; new code should avoid fields named "descriptor".
  3261. /// </summary>
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3263. public bool NoStandardDescriptorAccessor {
  3264. get { return noStandardDescriptorAccessor_; }
  3265. set {
  3266. noStandardDescriptorAccessor_ = value;
  3267. }
  3268. }
  3269. /// <summary>Field number for the "deprecated" field.</summary>
  3270. public const int DeprecatedFieldNumber = 3;
  3271. private bool deprecated_;
  3272. /// <summary>
  3273. /// Is this message deprecated?
  3274. /// Depending on the target platform, this can emit Deprecated annotations
  3275. /// for the message, or it will be completely ignored; in the very least,
  3276. /// this is a formalization for deprecating messages.
  3277. /// </summary>
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3279. public bool Deprecated {
  3280. get { return deprecated_; }
  3281. set {
  3282. deprecated_ = value;
  3283. }
  3284. }
  3285. /// <summary>Field number for the "map_entry" field.</summary>
  3286. public const int MapEntryFieldNumber = 7;
  3287. private bool mapEntry_;
  3288. /// <summary>
  3289. /// Whether the message is an automatically generated map entry type for the
  3290. /// maps field.
  3291. ///
  3292. /// For maps fields:
  3293. /// map&lt;KeyType, ValueType> map_field = 1;
  3294. /// The parsed descriptor looks like:
  3295. /// message MapFieldEntry {
  3296. /// option map_entry = true;
  3297. /// optional KeyType key = 1;
  3298. /// optional ValueType value = 2;
  3299. /// }
  3300. /// repeated MapFieldEntry map_field = 1;
  3301. ///
  3302. /// Implementations may choose not to generate the map_entry=true message, but
  3303. /// use a native map in the target language to hold the keys and values.
  3304. /// The reflection APIs in such implementions still need to work as
  3305. /// if the field is a repeated message field.
  3306. ///
  3307. /// NOTE: Do not set the option in .proto files. Always use the maps syntax
  3308. /// instead. The option should only be implicitly set by the proto compiler
  3309. /// parser.
  3310. /// </summary>
  3311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3312. public bool MapEntry {
  3313. get { return mapEntry_; }
  3314. set {
  3315. mapEntry_ = value;
  3316. }
  3317. }
  3318. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3319. public const int UninterpretedOptionFieldNumber = 999;
  3320. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3321. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3322. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3323. /// <summary>
  3324. /// The parser stores options it doesn't recognize here. See above.
  3325. /// </summary>
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3327. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3328. get { return uninterpretedOption_; }
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3331. public override bool Equals(object other) {
  3332. return Equals(other as MessageOptions);
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3335. public bool Equals(MessageOptions other) {
  3336. if (ReferenceEquals(other, null)) {
  3337. return false;
  3338. }
  3339. if (ReferenceEquals(other, this)) {
  3340. return true;
  3341. }
  3342. if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
  3343. if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
  3344. if (Deprecated != other.Deprecated) return false;
  3345. if (MapEntry != other.MapEntry) return false;
  3346. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3347. return true;
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3350. public override int GetHashCode() {
  3351. int hash = 1;
  3352. if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
  3353. if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
  3354. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3355. if (MapEntry != false) hash ^= MapEntry.GetHashCode();
  3356. hash ^= uninterpretedOption_.GetHashCode();
  3357. return hash;
  3358. }
  3359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3360. public override string ToString() {
  3361. return pb::JsonFormatter.ToDiagnosticString(this);
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3364. public void WriteTo(pb::CodedOutputStream output) {
  3365. if (MessageSetWireFormat != false) {
  3366. output.WriteRawTag(8);
  3367. output.WriteBool(MessageSetWireFormat);
  3368. }
  3369. if (NoStandardDescriptorAccessor != false) {
  3370. output.WriteRawTag(16);
  3371. output.WriteBool(NoStandardDescriptorAccessor);
  3372. }
  3373. if (Deprecated != false) {
  3374. output.WriteRawTag(24);
  3375. output.WriteBool(Deprecated);
  3376. }
  3377. if (MapEntry != false) {
  3378. output.WriteRawTag(56);
  3379. output.WriteBool(MapEntry);
  3380. }
  3381. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3382. }
  3383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3384. public int CalculateSize() {
  3385. int size = 0;
  3386. if (MessageSetWireFormat != false) {
  3387. size += 1 + 1;
  3388. }
  3389. if (NoStandardDescriptorAccessor != false) {
  3390. size += 1 + 1;
  3391. }
  3392. if (Deprecated != false) {
  3393. size += 1 + 1;
  3394. }
  3395. if (MapEntry != false) {
  3396. size += 1 + 1;
  3397. }
  3398. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3399. return size;
  3400. }
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3402. public void MergeFrom(MessageOptions other) {
  3403. if (other == null) {
  3404. return;
  3405. }
  3406. if (other.MessageSetWireFormat != false) {
  3407. MessageSetWireFormat = other.MessageSetWireFormat;
  3408. }
  3409. if (other.NoStandardDescriptorAccessor != false) {
  3410. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  3411. }
  3412. if (other.Deprecated != false) {
  3413. Deprecated = other.Deprecated;
  3414. }
  3415. if (other.MapEntry != false) {
  3416. MapEntry = other.MapEntry;
  3417. }
  3418. uninterpretedOption_.Add(other.uninterpretedOption_);
  3419. }
  3420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3421. public void MergeFrom(pb::CodedInputStream input) {
  3422. uint tag;
  3423. while ((tag = input.ReadTag()) != 0) {
  3424. switch(tag) {
  3425. default:
  3426. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  3427. break;
  3428. case 8: {
  3429. MessageSetWireFormat = input.ReadBool();
  3430. break;
  3431. }
  3432. case 16: {
  3433. NoStandardDescriptorAccessor = input.ReadBool();
  3434. break;
  3435. }
  3436. case 24: {
  3437. Deprecated = input.ReadBool();
  3438. break;
  3439. }
  3440. case 56: {
  3441. MapEntry = input.ReadBool();
  3442. break;
  3443. }
  3444. case 7994: {
  3445. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3446. break;
  3447. }
  3448. }
  3449. }
  3450. }
  3451. }
  3452. internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
  3453. private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3455. public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3457. public static pbr::MessageDescriptor Descriptor {
  3458. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
  3459. }
  3460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3461. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3462. get { return Descriptor; }
  3463. }
  3464. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3466. public FieldOptions() {
  3467. OnConstruction();
  3468. }
  3469. partial void OnConstruction();
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3471. public FieldOptions(FieldOptions other) : this() {
  3472. ctype_ = other.ctype_;
  3473. packed_ = other.packed_;
  3474. jstype_ = other.jstype_;
  3475. lazy_ = other.lazy_;
  3476. deprecated_ = other.deprecated_;
  3477. weak_ = other.weak_;
  3478. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3481. public FieldOptions Clone() {
  3482. return new FieldOptions(this);
  3483. }
  3484. /// <summary>Field number for the "ctype" field.</summary>
  3485. public const int CtypeFieldNumber = 1;
  3486. private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0;
  3487. /// <summary>
  3488. /// The ctype option instructs the C++ code generator to use a different
  3489. /// representation of the field than it normally would. See the specific
  3490. /// options below. This option is not yet implemented in the open source
  3491. /// release -- sorry, we'll try to include it in a future version!
  3492. /// </summary>
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3494. public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
  3495. get { return ctype_; }
  3496. set {
  3497. ctype_ = value;
  3498. }
  3499. }
  3500. /// <summary>Field number for the "packed" field.</summary>
  3501. public const int PackedFieldNumber = 2;
  3502. private bool packed_;
  3503. /// <summary>
  3504. /// The packed option can be enabled for repeated primitive fields to enable
  3505. /// a more efficient representation on the wire. Rather than repeatedly
  3506. /// writing the tag and type for each element, the entire array is encoded as
  3507. /// a single length-delimited blob. In proto3, only explicit setting it to
  3508. /// false will avoid using packed encoding.
  3509. /// </summary>
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3511. public bool Packed {
  3512. get { return packed_; }
  3513. set {
  3514. packed_ = value;
  3515. }
  3516. }
  3517. /// <summary>Field number for the "jstype" field.</summary>
  3518. public const int JstypeFieldNumber = 6;
  3519. private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0;
  3520. /// <summary>
  3521. /// The jstype option determines the JavaScript type used for values of the
  3522. /// field. The option is permitted only for 64 bit integral and fixed types
  3523. /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
  3524. /// represented as JavaScript strings. This avoids loss of precision that can
  3525. /// happen when a large value is converted to a floating point JavaScript
  3526. /// numbers. Specifying JS_NUMBER for the jstype causes the generated
  3527. /// JavaScript code to use the JavaScript "number" type instead of strings.
  3528. /// This option is an enum to permit additional types to be added,
  3529. /// e.g. goog.math.Integer.
  3530. /// </summary>
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3532. public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
  3533. get { return jstype_; }
  3534. set {
  3535. jstype_ = value;
  3536. }
  3537. }
  3538. /// <summary>Field number for the "lazy" field.</summary>
  3539. public const int LazyFieldNumber = 5;
  3540. private bool lazy_;
  3541. /// <summary>
  3542. /// Should this field be parsed lazily? Lazy applies only to message-type
  3543. /// fields. It means that when the outer message is initially parsed, the
  3544. /// inner message's contents will not be parsed but instead stored in encoded
  3545. /// form. The inner message will actually be parsed when it is first accessed.
  3546. ///
  3547. /// This is only a hint. Implementations are free to choose whether to use
  3548. /// eager or lazy parsing regardless of the value of this option. However,
  3549. /// setting this option true suggests that the protocol author believes that
  3550. /// using lazy parsing on this field is worth the additional bookkeeping
  3551. /// overhead typically needed to implement it.
  3552. ///
  3553. /// This option does not affect the public interface of any generated code;
  3554. /// all method signatures remain the same. Furthermore, thread-safety of the
  3555. /// interface is not affected by this option; const methods remain safe to
  3556. /// call from multiple threads concurrently, while non-const methods continue
  3557. /// to require exclusive access.
  3558. ///
  3559. /// Note that implementations may choose not to check required fields within
  3560. /// a lazy sub-message. That is, calling IsInitialized() on the outer message
  3561. /// may return true even if the inner message has missing required fields.
  3562. /// This is necessary because otherwise the inner message would have to be
  3563. /// parsed in order to perform the check, defeating the purpose of lazy
  3564. /// parsing. An implementation which chooses not to check required fields
  3565. /// must be consistent about it. That is, for any particular sub-message, the
  3566. /// implementation must either *always* check its required fields, or *never*
  3567. /// check its required fields, regardless of whether or not the message has
  3568. /// been parsed.
  3569. /// </summary>
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3571. public bool Lazy {
  3572. get { return lazy_; }
  3573. set {
  3574. lazy_ = value;
  3575. }
  3576. }
  3577. /// <summary>Field number for the "deprecated" field.</summary>
  3578. public const int DeprecatedFieldNumber = 3;
  3579. private bool deprecated_;
  3580. /// <summary>
  3581. /// Is this field deprecated?
  3582. /// Depending on the target platform, this can emit Deprecated annotations
  3583. /// for accessors, or it will be completely ignored; in the very least, this
  3584. /// is a formalization for deprecating fields.
  3585. /// </summary>
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3587. public bool Deprecated {
  3588. get { return deprecated_; }
  3589. set {
  3590. deprecated_ = value;
  3591. }
  3592. }
  3593. /// <summary>Field number for the "weak" field.</summary>
  3594. public const int WeakFieldNumber = 10;
  3595. private bool weak_;
  3596. /// <summary>
  3597. /// For Google-internal migration only. Do not use.
  3598. /// </summary>
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3600. public bool Weak {
  3601. get { return weak_; }
  3602. set {
  3603. weak_ = value;
  3604. }
  3605. }
  3606. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3607. public const int UninterpretedOptionFieldNumber = 999;
  3608. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3609. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3610. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3611. /// <summary>
  3612. /// The parser stores options it doesn't recognize here. See above.
  3613. /// </summary>
  3614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3615. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3616. get { return uninterpretedOption_; }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3619. public override bool Equals(object other) {
  3620. return Equals(other as FieldOptions);
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3623. public bool Equals(FieldOptions other) {
  3624. if (ReferenceEquals(other, null)) {
  3625. return false;
  3626. }
  3627. if (ReferenceEquals(other, this)) {
  3628. return true;
  3629. }
  3630. if (Ctype != other.Ctype) return false;
  3631. if (Packed != other.Packed) return false;
  3632. if (Jstype != other.Jstype) return false;
  3633. if (Lazy != other.Lazy) return false;
  3634. if (Deprecated != other.Deprecated) return false;
  3635. if (Weak != other.Weak) return false;
  3636. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3637. return true;
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3640. public override int GetHashCode() {
  3641. int hash = 1;
  3642. if (Ctype != 0) hash ^= Ctype.GetHashCode();
  3643. if (Packed != false) hash ^= Packed.GetHashCode();
  3644. if (Jstype != 0) hash ^= Jstype.GetHashCode();
  3645. if (Lazy != false) hash ^= Lazy.GetHashCode();
  3646. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3647. if (Weak != false) hash ^= Weak.GetHashCode();
  3648. hash ^= uninterpretedOption_.GetHashCode();
  3649. return hash;
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3652. public override string ToString() {
  3653. return pb::JsonFormatter.ToDiagnosticString(this);
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3656. public void WriteTo(pb::CodedOutputStream output) {
  3657. if (Ctype != 0) {
  3658. output.WriteRawTag(8);
  3659. output.WriteEnum((int) Ctype);
  3660. }
  3661. if (Packed != false) {
  3662. output.WriteRawTag(16);
  3663. output.WriteBool(Packed);
  3664. }
  3665. if (Deprecated != false) {
  3666. output.WriteRawTag(24);
  3667. output.WriteBool(Deprecated);
  3668. }
  3669. if (Lazy != false) {
  3670. output.WriteRawTag(40);
  3671. output.WriteBool(Lazy);
  3672. }
  3673. if (Jstype != 0) {
  3674. output.WriteRawTag(48);
  3675. output.WriteEnum((int) Jstype);
  3676. }
  3677. if (Weak != false) {
  3678. output.WriteRawTag(80);
  3679. output.WriteBool(Weak);
  3680. }
  3681. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3684. public int CalculateSize() {
  3685. int size = 0;
  3686. if (Ctype != 0) {
  3687. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
  3688. }
  3689. if (Packed != false) {
  3690. size += 1 + 1;
  3691. }
  3692. if (Jstype != 0) {
  3693. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
  3694. }
  3695. if (Lazy != false) {
  3696. size += 1 + 1;
  3697. }
  3698. if (Deprecated != false) {
  3699. size += 1 + 1;
  3700. }
  3701. if (Weak != false) {
  3702. size += 1 + 1;
  3703. }
  3704. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3705. return size;
  3706. }
  3707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3708. public void MergeFrom(FieldOptions other) {
  3709. if (other == null) {
  3710. return;
  3711. }
  3712. if (other.Ctype != 0) {
  3713. Ctype = other.Ctype;
  3714. }
  3715. if (other.Packed != false) {
  3716. Packed = other.Packed;
  3717. }
  3718. if (other.Jstype != 0) {
  3719. Jstype = other.Jstype;
  3720. }
  3721. if (other.Lazy != false) {
  3722. Lazy = other.Lazy;
  3723. }
  3724. if (other.Deprecated != false) {
  3725. Deprecated = other.Deprecated;
  3726. }
  3727. if (other.Weak != false) {
  3728. Weak = other.Weak;
  3729. }
  3730. uninterpretedOption_.Add(other.uninterpretedOption_);
  3731. }
  3732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3733. public void MergeFrom(pb::CodedInputStream input) {
  3734. uint tag;
  3735. while ((tag = input.ReadTag()) != 0) {
  3736. switch(tag) {
  3737. default:
  3738. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  3739. break;
  3740. case 8: {
  3741. ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
  3742. break;
  3743. }
  3744. case 16: {
  3745. Packed = input.ReadBool();
  3746. break;
  3747. }
  3748. case 24: {
  3749. Deprecated = input.ReadBool();
  3750. break;
  3751. }
  3752. case 40: {
  3753. Lazy = input.ReadBool();
  3754. break;
  3755. }
  3756. case 48: {
  3757. jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
  3758. break;
  3759. }
  3760. case 80: {
  3761. Weak = input.ReadBool();
  3762. break;
  3763. }
  3764. case 7994: {
  3765. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3766. break;
  3767. }
  3768. }
  3769. }
  3770. }
  3771. #region Nested types
  3772. /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3774. public static partial class Types {
  3775. internal enum CType {
  3776. /// <summary>
  3777. /// Default mode.
  3778. /// </summary>
  3779. [pbr::OriginalName("STRING")] String = 0,
  3780. [pbr::OriginalName("CORD")] Cord = 1,
  3781. [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
  3782. }
  3783. internal enum JSType {
  3784. /// <summary>
  3785. /// Use the default type.
  3786. /// </summary>
  3787. [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
  3788. /// <summary>
  3789. /// Use JavaScript strings.
  3790. /// </summary>
  3791. [pbr::OriginalName("JS_STRING")] JsString = 1,
  3792. /// <summary>
  3793. /// Use JavaScript numbers.
  3794. /// </summary>
  3795. [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
  3796. }
  3797. }
  3798. #endregion
  3799. }
  3800. internal sealed partial class OneofOptions : pb::IMessage<OneofOptions> {
  3801. private static readonly pb::MessageParser<OneofOptions> _parser = new pb::MessageParser<OneofOptions>(() => new OneofOptions());
  3802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3803. public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } }
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3805. public static pbr::MessageDescriptor Descriptor {
  3806. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3809. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3810. get { return Descriptor; }
  3811. }
  3812. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  3813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3814. public OneofOptions() {
  3815. OnConstruction();
  3816. }
  3817. partial void OnConstruction();
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3819. public OneofOptions(OneofOptions other) : this() {
  3820. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3823. public OneofOptions Clone() {
  3824. return new OneofOptions(this);
  3825. }
  3826. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3827. public const int UninterpretedOptionFieldNumber = 999;
  3828. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3829. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3830. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3831. /// <summary>
  3832. /// The parser stores options it doesn't recognize here. See above.
  3833. /// </summary>
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3835. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3836. get { return uninterpretedOption_; }
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3839. public override bool Equals(object other) {
  3840. return Equals(other as OneofOptions);
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3843. public bool Equals(OneofOptions other) {
  3844. if (ReferenceEquals(other, null)) {
  3845. return false;
  3846. }
  3847. if (ReferenceEquals(other, this)) {
  3848. return true;
  3849. }
  3850. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3851. return true;
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3854. public override int GetHashCode() {
  3855. int hash = 1;
  3856. hash ^= uninterpretedOption_.GetHashCode();
  3857. return hash;
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3860. public override string ToString() {
  3861. return pb::JsonFormatter.ToDiagnosticString(this);
  3862. }
  3863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3864. public void WriteTo(pb::CodedOutputStream output) {
  3865. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3866. }
  3867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3868. public int CalculateSize() {
  3869. int size = 0;
  3870. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3871. return size;
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3874. public void MergeFrom(OneofOptions other) {
  3875. if (other == null) {
  3876. return;
  3877. }
  3878. uninterpretedOption_.Add(other.uninterpretedOption_);
  3879. }
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3881. public void MergeFrom(pb::CodedInputStream input) {
  3882. uint tag;
  3883. while ((tag = input.ReadTag()) != 0) {
  3884. switch(tag) {
  3885. default:
  3886. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  3887. break;
  3888. case 7994: {
  3889. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3890. break;
  3891. }
  3892. }
  3893. }
  3894. }
  3895. }
  3896. internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
  3897. private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
  3898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3899. public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3901. public static pbr::MessageDescriptor Descriptor {
  3902. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
  3903. }
  3904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3905. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3906. get { return Descriptor; }
  3907. }
  3908. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3910. public EnumOptions() {
  3911. OnConstruction();
  3912. }
  3913. partial void OnConstruction();
  3914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3915. public EnumOptions(EnumOptions other) : this() {
  3916. allowAlias_ = other.allowAlias_;
  3917. deprecated_ = other.deprecated_;
  3918. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3921. public EnumOptions Clone() {
  3922. return new EnumOptions(this);
  3923. }
  3924. /// <summary>Field number for the "allow_alias" field.</summary>
  3925. public const int AllowAliasFieldNumber = 2;
  3926. private bool allowAlias_;
  3927. /// <summary>
  3928. /// Set this option to true to allow mapping different tag names to the same
  3929. /// value.
  3930. /// </summary>
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3932. public bool AllowAlias {
  3933. get { return allowAlias_; }
  3934. set {
  3935. allowAlias_ = value;
  3936. }
  3937. }
  3938. /// <summary>Field number for the "deprecated" field.</summary>
  3939. public const int DeprecatedFieldNumber = 3;
  3940. private bool deprecated_;
  3941. /// <summary>
  3942. /// Is this enum deprecated?
  3943. /// Depending on the target platform, this can emit Deprecated annotations
  3944. /// for the enum, or it will be completely ignored; in the very least, this
  3945. /// is a formalization for deprecating enums.
  3946. /// </summary>
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3948. public bool Deprecated {
  3949. get { return deprecated_; }
  3950. set {
  3951. deprecated_ = value;
  3952. }
  3953. }
  3954. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3955. public const int UninterpretedOptionFieldNumber = 999;
  3956. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3957. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3958. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3959. /// <summary>
  3960. /// The parser stores options it doesn't recognize here. See above.
  3961. /// </summary>
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3963. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3964. get { return uninterpretedOption_; }
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3967. public override bool Equals(object other) {
  3968. return Equals(other as EnumOptions);
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3971. public bool Equals(EnumOptions other) {
  3972. if (ReferenceEquals(other, null)) {
  3973. return false;
  3974. }
  3975. if (ReferenceEquals(other, this)) {
  3976. return true;
  3977. }
  3978. if (AllowAlias != other.AllowAlias) return false;
  3979. if (Deprecated != other.Deprecated) return false;
  3980. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3981. return true;
  3982. }
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3984. public override int GetHashCode() {
  3985. int hash = 1;
  3986. if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
  3987. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3988. hash ^= uninterpretedOption_.GetHashCode();
  3989. return hash;
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3992. public override string ToString() {
  3993. return pb::JsonFormatter.ToDiagnosticString(this);
  3994. }
  3995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3996. public void WriteTo(pb::CodedOutputStream output) {
  3997. if (AllowAlias != false) {
  3998. output.WriteRawTag(16);
  3999. output.WriteBool(AllowAlias);
  4000. }
  4001. if (Deprecated != false) {
  4002. output.WriteRawTag(24);
  4003. output.WriteBool(Deprecated);
  4004. }
  4005. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4006. }
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4008. public int CalculateSize() {
  4009. int size = 0;
  4010. if (AllowAlias != false) {
  4011. size += 1 + 1;
  4012. }
  4013. if (Deprecated != false) {
  4014. size += 1 + 1;
  4015. }
  4016. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4017. return size;
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4020. public void MergeFrom(EnumOptions other) {
  4021. if (other == null) {
  4022. return;
  4023. }
  4024. if (other.AllowAlias != false) {
  4025. AllowAlias = other.AllowAlias;
  4026. }
  4027. if (other.Deprecated != false) {
  4028. Deprecated = other.Deprecated;
  4029. }
  4030. uninterpretedOption_.Add(other.uninterpretedOption_);
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4033. public void MergeFrom(pb::CodedInputStream input) {
  4034. uint tag;
  4035. while ((tag = input.ReadTag()) != 0) {
  4036. switch(tag) {
  4037. default:
  4038. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4039. break;
  4040. case 16: {
  4041. AllowAlias = input.ReadBool();
  4042. break;
  4043. }
  4044. case 24: {
  4045. Deprecated = input.ReadBool();
  4046. break;
  4047. }
  4048. case 7994: {
  4049. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4050. break;
  4051. }
  4052. }
  4053. }
  4054. }
  4055. }
  4056. internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
  4057. private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4059. public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4061. public static pbr::MessageDescriptor Descriptor {
  4062. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4065. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4066. get { return Descriptor; }
  4067. }
  4068. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  4069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4070. public EnumValueOptions() {
  4071. OnConstruction();
  4072. }
  4073. partial void OnConstruction();
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4075. public EnumValueOptions(EnumValueOptions other) : this() {
  4076. deprecated_ = other.deprecated_;
  4077. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4080. public EnumValueOptions Clone() {
  4081. return new EnumValueOptions(this);
  4082. }
  4083. /// <summary>Field number for the "deprecated" field.</summary>
  4084. public const int DeprecatedFieldNumber = 1;
  4085. private bool deprecated_;
  4086. /// <summary>
  4087. /// Is this enum value deprecated?
  4088. /// Depending on the target platform, this can emit Deprecated annotations
  4089. /// for the enum value, or it will be completely ignored; in the very least,
  4090. /// this is a formalization for deprecating enum values.
  4091. /// </summary>
  4092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4093. public bool Deprecated {
  4094. get { return deprecated_; }
  4095. set {
  4096. deprecated_ = value;
  4097. }
  4098. }
  4099. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  4100. public const int UninterpretedOptionFieldNumber = 999;
  4101. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  4102. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  4103. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  4104. /// <summary>
  4105. /// The parser stores options it doesn't recognize here. See above.
  4106. /// </summary>
  4107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4108. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  4109. get { return uninterpretedOption_; }
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4112. public override bool Equals(object other) {
  4113. return Equals(other as EnumValueOptions);
  4114. }
  4115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4116. public bool Equals(EnumValueOptions other) {
  4117. if (ReferenceEquals(other, null)) {
  4118. return false;
  4119. }
  4120. if (ReferenceEquals(other, this)) {
  4121. return true;
  4122. }
  4123. if (Deprecated != other.Deprecated) return false;
  4124. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  4125. return true;
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4128. public override int GetHashCode() {
  4129. int hash = 1;
  4130. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  4131. hash ^= uninterpretedOption_.GetHashCode();
  4132. return hash;
  4133. }
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4135. public override string ToString() {
  4136. return pb::JsonFormatter.ToDiagnosticString(this);
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4139. public void WriteTo(pb::CodedOutputStream output) {
  4140. if (Deprecated != false) {
  4141. output.WriteRawTag(8);
  4142. output.WriteBool(Deprecated);
  4143. }
  4144. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4145. }
  4146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4147. public int CalculateSize() {
  4148. int size = 0;
  4149. if (Deprecated != false) {
  4150. size += 1 + 1;
  4151. }
  4152. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4153. return size;
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4156. public void MergeFrom(EnumValueOptions other) {
  4157. if (other == null) {
  4158. return;
  4159. }
  4160. if (other.Deprecated != false) {
  4161. Deprecated = other.Deprecated;
  4162. }
  4163. uninterpretedOption_.Add(other.uninterpretedOption_);
  4164. }
  4165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4166. public void MergeFrom(pb::CodedInputStream input) {
  4167. uint tag;
  4168. while ((tag = input.ReadTag()) != 0) {
  4169. switch(tag) {
  4170. default:
  4171. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4172. break;
  4173. case 8: {
  4174. Deprecated = input.ReadBool();
  4175. break;
  4176. }
  4177. case 7994: {
  4178. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4179. break;
  4180. }
  4181. }
  4182. }
  4183. }
  4184. }
  4185. internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
  4186. private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4188. public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4190. public static pbr::MessageDescriptor Descriptor {
  4191. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
  4192. }
  4193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4194. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4195. get { return Descriptor; }
  4196. }
  4197. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4199. public ServiceOptions() {
  4200. OnConstruction();
  4201. }
  4202. partial void OnConstruction();
  4203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4204. public ServiceOptions(ServiceOptions other) : this() {
  4205. deprecated_ = other.deprecated_;
  4206. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  4207. }
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4209. public ServiceOptions Clone() {
  4210. return new ServiceOptions(this);
  4211. }
  4212. /// <summary>Field number for the "deprecated" field.</summary>
  4213. public const int DeprecatedFieldNumber = 33;
  4214. private bool deprecated_;
  4215. /// <summary>
  4216. /// Is this service deprecated?
  4217. /// Depending on the target platform, this can emit Deprecated annotations
  4218. /// for the service, or it will be completely ignored; in the very least,
  4219. /// this is a formalization for deprecating services.
  4220. /// </summary>
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4222. public bool Deprecated {
  4223. get { return deprecated_; }
  4224. set {
  4225. deprecated_ = value;
  4226. }
  4227. }
  4228. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  4229. public const int UninterpretedOptionFieldNumber = 999;
  4230. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  4231. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  4232. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  4233. /// <summary>
  4234. /// The parser stores options it doesn't recognize here. See above.
  4235. /// </summary>
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4237. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  4238. get { return uninterpretedOption_; }
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4241. public override bool Equals(object other) {
  4242. return Equals(other as ServiceOptions);
  4243. }
  4244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4245. public bool Equals(ServiceOptions other) {
  4246. if (ReferenceEquals(other, null)) {
  4247. return false;
  4248. }
  4249. if (ReferenceEquals(other, this)) {
  4250. return true;
  4251. }
  4252. if (Deprecated != other.Deprecated) return false;
  4253. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  4254. return true;
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4257. public override int GetHashCode() {
  4258. int hash = 1;
  4259. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  4260. hash ^= uninterpretedOption_.GetHashCode();
  4261. return hash;
  4262. }
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4264. public override string ToString() {
  4265. return pb::JsonFormatter.ToDiagnosticString(this);
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4268. public void WriteTo(pb::CodedOutputStream output) {
  4269. if (Deprecated != false) {
  4270. output.WriteRawTag(136, 2);
  4271. output.WriteBool(Deprecated);
  4272. }
  4273. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4276. public int CalculateSize() {
  4277. int size = 0;
  4278. if (Deprecated != false) {
  4279. size += 2 + 1;
  4280. }
  4281. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4282. return size;
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4285. public void MergeFrom(ServiceOptions other) {
  4286. if (other == null) {
  4287. return;
  4288. }
  4289. if (other.Deprecated != false) {
  4290. Deprecated = other.Deprecated;
  4291. }
  4292. uninterpretedOption_.Add(other.uninterpretedOption_);
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4295. public void MergeFrom(pb::CodedInputStream input) {
  4296. uint tag;
  4297. while ((tag = input.ReadTag()) != 0) {
  4298. switch(tag) {
  4299. default:
  4300. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4301. break;
  4302. case 264: {
  4303. Deprecated = input.ReadBool();
  4304. break;
  4305. }
  4306. case 7994: {
  4307. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4308. break;
  4309. }
  4310. }
  4311. }
  4312. }
  4313. }
  4314. internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
  4315. private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4317. public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
  4318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4319. public static pbr::MessageDescriptor Descriptor {
  4320. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4323. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4324. get { return Descriptor; }
  4325. }
  4326. internal CustomOptions CustomOptions{ get; private set; } = CustomOptions.Empty;
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4328. public MethodOptions() {
  4329. OnConstruction();
  4330. }
  4331. partial void OnConstruction();
  4332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4333. public MethodOptions(MethodOptions other) : this() {
  4334. deprecated_ = other.deprecated_;
  4335. idempotencyLevel_ = other.idempotencyLevel_;
  4336. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  4337. }
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4339. public MethodOptions Clone() {
  4340. return new MethodOptions(this);
  4341. }
  4342. /// <summary>Field number for the "deprecated" field.</summary>
  4343. public const int DeprecatedFieldNumber = 33;
  4344. private bool deprecated_;
  4345. /// <summary>
  4346. /// Is this method deprecated?
  4347. /// Depending on the target platform, this can emit Deprecated annotations
  4348. /// for the method, or it will be completely ignored; in the very least,
  4349. /// this is a formalization for deprecating methods.
  4350. /// </summary>
  4351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4352. public bool Deprecated {
  4353. get { return deprecated_; }
  4354. set {
  4355. deprecated_ = value;
  4356. }
  4357. }
  4358. /// <summary>Field number for the "idempotency_level" field.</summary>
  4359. public const int IdempotencyLevelFieldNumber = 34;
  4360. private global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel idempotencyLevel_ = 0;
  4361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4362. public global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevel {
  4363. get { return idempotencyLevel_; }
  4364. set {
  4365. idempotencyLevel_ = value;
  4366. }
  4367. }
  4368. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  4369. public const int UninterpretedOptionFieldNumber = 999;
  4370. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  4371. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  4372. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  4373. /// <summary>
  4374. /// The parser stores options it doesn't recognize here. See above.
  4375. /// </summary>
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4377. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  4378. get { return uninterpretedOption_; }
  4379. }
  4380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4381. public override bool Equals(object other) {
  4382. return Equals(other as MethodOptions);
  4383. }
  4384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4385. public bool Equals(MethodOptions other) {
  4386. if (ReferenceEquals(other, null)) {
  4387. return false;
  4388. }
  4389. if (ReferenceEquals(other, this)) {
  4390. return true;
  4391. }
  4392. if (Deprecated != other.Deprecated) return false;
  4393. if (IdempotencyLevel != other.IdempotencyLevel) return false;
  4394. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  4395. return true;
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4398. public override int GetHashCode() {
  4399. int hash = 1;
  4400. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  4401. if (IdempotencyLevel != 0) hash ^= IdempotencyLevel.GetHashCode();
  4402. hash ^= uninterpretedOption_.GetHashCode();
  4403. return hash;
  4404. }
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4406. public override string ToString() {
  4407. return pb::JsonFormatter.ToDiagnosticString(this);
  4408. }
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4410. public void WriteTo(pb::CodedOutputStream output) {
  4411. if (Deprecated != false) {
  4412. output.WriteRawTag(136, 2);
  4413. output.WriteBool(Deprecated);
  4414. }
  4415. if (IdempotencyLevel != 0) {
  4416. output.WriteRawTag(144, 2);
  4417. output.WriteEnum((int) IdempotencyLevel);
  4418. }
  4419. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4422. public int CalculateSize() {
  4423. int size = 0;
  4424. if (Deprecated != false) {
  4425. size += 2 + 1;
  4426. }
  4427. if (IdempotencyLevel != 0) {
  4428. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdempotencyLevel);
  4429. }
  4430. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  4431. return size;
  4432. }
  4433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4434. public void MergeFrom(MethodOptions other) {
  4435. if (other == null) {
  4436. return;
  4437. }
  4438. if (other.Deprecated != false) {
  4439. Deprecated = other.Deprecated;
  4440. }
  4441. if (other.IdempotencyLevel != 0) {
  4442. IdempotencyLevel = other.IdempotencyLevel;
  4443. }
  4444. uninterpretedOption_.Add(other.uninterpretedOption_);
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4447. public void MergeFrom(pb::CodedInputStream input) {
  4448. uint tag;
  4449. while ((tag = input.ReadTag()) != 0) {
  4450. switch(tag) {
  4451. default:
  4452. CustomOptions = CustomOptions.ReadOrSkipUnknownField(input);
  4453. break;
  4454. case 264: {
  4455. Deprecated = input.ReadBool();
  4456. break;
  4457. }
  4458. case 272: {
  4459. idempotencyLevel_ = (global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) input.ReadEnum();
  4460. break;
  4461. }
  4462. case 7994: {
  4463. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  4464. break;
  4465. }
  4466. }
  4467. }
  4468. }
  4469. #region Nested types
  4470. /// <summary>Container for nested types declared in the MethodOptions message type.</summary>
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4472. public static partial class Types {
  4473. /// <summary>
  4474. /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  4475. /// or neither? HTTP based RPC implementation may choose GET verb for safe
  4476. /// methods, and PUT verb for idempotent methods instead of the default POST.
  4477. /// </summary>
  4478. internal enum IdempotencyLevel {
  4479. [pbr::OriginalName("IDEMPOTENCY_UNKNOWN")] IdempotencyUnknown = 0,
  4480. /// <summary>
  4481. /// implies idempotent
  4482. /// </summary>
  4483. [pbr::OriginalName("NO_SIDE_EFFECTS")] NoSideEffects = 1,
  4484. /// <summary>
  4485. /// idempotent, but may have side effects
  4486. /// </summary>
  4487. [pbr::OriginalName("IDEMPOTENT")] Idempotent = 2,
  4488. }
  4489. }
  4490. #endregion
  4491. }
  4492. /// <summary>
  4493. /// A message representing a option the parser does not recognize. This only
  4494. /// appears in options protos created by the compiler::Parser class.
  4495. /// DescriptorPool resolves these when building Descriptor objects. Therefore,
  4496. /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
  4497. /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  4498. /// in them.
  4499. /// </summary>
  4500. internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
  4501. private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
  4502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4503. public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4505. public static pbr::MessageDescriptor Descriptor {
  4506. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
  4507. }
  4508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4509. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4510. get { return Descriptor; }
  4511. }
  4512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4513. public UninterpretedOption() {
  4514. OnConstruction();
  4515. }
  4516. partial void OnConstruction();
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4518. public UninterpretedOption(UninterpretedOption other) : this() {
  4519. name_ = other.name_.Clone();
  4520. identifierValue_ = other.identifierValue_;
  4521. positiveIntValue_ = other.positiveIntValue_;
  4522. negativeIntValue_ = other.negativeIntValue_;
  4523. doubleValue_ = other.doubleValue_;
  4524. stringValue_ = other.stringValue_;
  4525. aggregateValue_ = other.aggregateValue_;
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4528. public UninterpretedOption Clone() {
  4529. return new UninterpretedOption(this);
  4530. }
  4531. /// <summary>Field number for the "name" field.</summary>
  4532. public const int NameFieldNumber = 2;
  4533. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
  4534. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
  4535. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4537. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
  4538. get { return name_; }
  4539. }
  4540. /// <summary>Field number for the "identifier_value" field.</summary>
  4541. public const int IdentifierValueFieldNumber = 3;
  4542. private string identifierValue_ = "";
  4543. /// <summary>
  4544. /// The value of the uninterpreted option, in whatever type the tokenizer
  4545. /// identified it as during parsing. Exactly one of these should be set.
  4546. /// </summary>
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4548. public string IdentifierValue {
  4549. get { return identifierValue_; }
  4550. set {
  4551. identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4552. }
  4553. }
  4554. /// <summary>Field number for the "positive_int_value" field.</summary>
  4555. public const int PositiveIntValueFieldNumber = 4;
  4556. private ulong positiveIntValue_;
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4558. public ulong PositiveIntValue {
  4559. get { return positiveIntValue_; }
  4560. set {
  4561. positiveIntValue_ = value;
  4562. }
  4563. }
  4564. /// <summary>Field number for the "negative_int_value" field.</summary>
  4565. public const int NegativeIntValueFieldNumber = 5;
  4566. private long negativeIntValue_;
  4567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4568. public long NegativeIntValue {
  4569. get { return negativeIntValue_; }
  4570. set {
  4571. negativeIntValue_ = value;
  4572. }
  4573. }
  4574. /// <summary>Field number for the "double_value" field.</summary>
  4575. public const int DoubleValueFieldNumber = 6;
  4576. private double doubleValue_;
  4577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4578. public double DoubleValue {
  4579. get { return doubleValue_; }
  4580. set {
  4581. doubleValue_ = value;
  4582. }
  4583. }
  4584. /// <summary>Field number for the "string_value" field.</summary>
  4585. public const int StringValueFieldNumber = 7;
  4586. private pb::ByteString stringValue_ = pb::ByteString.Empty;
  4587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4588. public pb::ByteString StringValue {
  4589. get { return stringValue_; }
  4590. set {
  4591. stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4592. }
  4593. }
  4594. /// <summary>Field number for the "aggregate_value" field.</summary>
  4595. public const int AggregateValueFieldNumber = 8;
  4596. private string aggregateValue_ = "";
  4597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4598. public string AggregateValue {
  4599. get { return aggregateValue_; }
  4600. set {
  4601. aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4605. public override bool Equals(object other) {
  4606. return Equals(other as UninterpretedOption);
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4609. public bool Equals(UninterpretedOption other) {
  4610. if (ReferenceEquals(other, null)) {
  4611. return false;
  4612. }
  4613. if (ReferenceEquals(other, this)) {
  4614. return true;
  4615. }
  4616. if(!name_.Equals(other.name_)) return false;
  4617. if (IdentifierValue != other.IdentifierValue) return false;
  4618. if (PositiveIntValue != other.PositiveIntValue) return false;
  4619. if (NegativeIntValue != other.NegativeIntValue) return false;
  4620. if (DoubleValue != other.DoubleValue) return false;
  4621. if (StringValue != other.StringValue) return false;
  4622. if (AggregateValue != other.AggregateValue) return false;
  4623. return true;
  4624. }
  4625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4626. public override int GetHashCode() {
  4627. int hash = 1;
  4628. hash ^= name_.GetHashCode();
  4629. if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
  4630. if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
  4631. if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
  4632. if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
  4633. if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
  4634. if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
  4635. return hash;
  4636. }
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4638. public override string ToString() {
  4639. return pb::JsonFormatter.ToDiagnosticString(this);
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4642. public void WriteTo(pb::CodedOutputStream output) {
  4643. name_.WriteTo(output, _repeated_name_codec);
  4644. if (IdentifierValue.Length != 0) {
  4645. output.WriteRawTag(26);
  4646. output.WriteString(IdentifierValue);
  4647. }
  4648. if (PositiveIntValue != 0UL) {
  4649. output.WriteRawTag(32);
  4650. output.WriteUInt64(PositiveIntValue);
  4651. }
  4652. if (NegativeIntValue != 0L) {
  4653. output.WriteRawTag(40);
  4654. output.WriteInt64(NegativeIntValue);
  4655. }
  4656. if (DoubleValue != 0D) {
  4657. output.WriteRawTag(49);
  4658. output.WriteDouble(DoubleValue);
  4659. }
  4660. if (StringValue.Length != 0) {
  4661. output.WriteRawTag(58);
  4662. output.WriteBytes(StringValue);
  4663. }
  4664. if (AggregateValue.Length != 0) {
  4665. output.WriteRawTag(66);
  4666. output.WriteString(AggregateValue);
  4667. }
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4670. public int CalculateSize() {
  4671. int size = 0;
  4672. size += name_.CalculateSize(_repeated_name_codec);
  4673. if (IdentifierValue.Length != 0) {
  4674. size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
  4675. }
  4676. if (PositiveIntValue != 0UL) {
  4677. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
  4678. }
  4679. if (NegativeIntValue != 0L) {
  4680. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
  4681. }
  4682. if (DoubleValue != 0D) {
  4683. size += 1 + 8;
  4684. }
  4685. if (StringValue.Length != 0) {
  4686. size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
  4687. }
  4688. if (AggregateValue.Length != 0) {
  4689. size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
  4690. }
  4691. return size;
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4694. public void MergeFrom(UninterpretedOption other) {
  4695. if (other == null) {
  4696. return;
  4697. }
  4698. name_.Add(other.name_);
  4699. if (other.IdentifierValue.Length != 0) {
  4700. IdentifierValue = other.IdentifierValue;
  4701. }
  4702. if (other.PositiveIntValue != 0UL) {
  4703. PositiveIntValue = other.PositiveIntValue;
  4704. }
  4705. if (other.NegativeIntValue != 0L) {
  4706. NegativeIntValue = other.NegativeIntValue;
  4707. }
  4708. if (other.DoubleValue != 0D) {
  4709. DoubleValue = other.DoubleValue;
  4710. }
  4711. if (other.StringValue.Length != 0) {
  4712. StringValue = other.StringValue;
  4713. }
  4714. if (other.AggregateValue.Length != 0) {
  4715. AggregateValue = other.AggregateValue;
  4716. }
  4717. }
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4719. public void MergeFrom(pb::CodedInputStream input) {
  4720. uint tag;
  4721. while ((tag = input.ReadTag()) != 0) {
  4722. switch(tag) {
  4723. default:
  4724. input.SkipLastField();
  4725. break;
  4726. case 18: {
  4727. name_.AddEntriesFrom(input, _repeated_name_codec);
  4728. break;
  4729. }
  4730. case 26: {
  4731. IdentifierValue = input.ReadString();
  4732. break;
  4733. }
  4734. case 32: {
  4735. PositiveIntValue = input.ReadUInt64();
  4736. break;
  4737. }
  4738. case 40: {
  4739. NegativeIntValue = input.ReadInt64();
  4740. break;
  4741. }
  4742. case 49: {
  4743. DoubleValue = input.ReadDouble();
  4744. break;
  4745. }
  4746. case 58: {
  4747. StringValue = input.ReadBytes();
  4748. break;
  4749. }
  4750. case 66: {
  4751. AggregateValue = input.ReadString();
  4752. break;
  4753. }
  4754. }
  4755. }
  4756. }
  4757. #region Nested types
  4758. /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
  4759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4760. public static partial class Types {
  4761. /// <summary>
  4762. /// The name of the uninterpreted option. Each string represents a segment in
  4763. /// a dot-separated name. is_extension is true iff a segment represents an
  4764. /// extension (denoted with parentheses in options specs in .proto files).
  4765. /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
  4766. /// "foo.(bar.baz).qux".
  4767. /// </summary>
  4768. internal sealed partial class NamePart : pb::IMessage<NamePart> {
  4769. private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
  4770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4771. public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4773. public static pbr::MessageDescriptor Descriptor {
  4774. get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
  4775. }
  4776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4777. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4778. get { return Descriptor; }
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4781. public NamePart() {
  4782. OnConstruction();
  4783. }
  4784. partial void OnConstruction();
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4786. public NamePart(NamePart other) : this() {
  4787. namePart_ = other.namePart_;
  4788. isExtension_ = other.isExtension_;
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4791. public NamePart Clone() {
  4792. return new NamePart(this);
  4793. }
  4794. /// <summary>Field number for the "name_part" field.</summary>
  4795. public const int NamePart_FieldNumber = 1;
  4796. private string namePart_ = "";
  4797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4798. public string NamePart_ {
  4799. get { return namePart_; }
  4800. set {
  4801. namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4802. }
  4803. }
  4804. /// <summary>Field number for the "is_extension" field.</summary>
  4805. public const int IsExtensionFieldNumber = 2;
  4806. private bool isExtension_;
  4807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4808. public bool IsExtension {
  4809. get { return isExtension_; }
  4810. set {
  4811. isExtension_ = value;
  4812. }
  4813. }
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4815. public override bool Equals(object other) {
  4816. return Equals(other as NamePart);
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4819. public bool Equals(NamePart other) {
  4820. if (ReferenceEquals(other, null)) {
  4821. return false;
  4822. }
  4823. if (ReferenceEquals(other, this)) {
  4824. return true;
  4825. }
  4826. if (NamePart_ != other.NamePart_) return false;
  4827. if (IsExtension != other.IsExtension) return false;
  4828. return true;
  4829. }
  4830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4831. public override int GetHashCode() {
  4832. int hash = 1;
  4833. if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
  4834. if (IsExtension != false) hash ^= IsExtension.GetHashCode();
  4835. return hash;
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4838. public override string ToString() {
  4839. return pb::JsonFormatter.ToDiagnosticString(this);
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4842. public void WriteTo(pb::CodedOutputStream output) {
  4843. if (NamePart_.Length != 0) {
  4844. output.WriteRawTag(10);
  4845. output.WriteString(NamePart_);
  4846. }
  4847. if (IsExtension != false) {
  4848. output.WriteRawTag(16);
  4849. output.WriteBool(IsExtension);
  4850. }
  4851. }
  4852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4853. public int CalculateSize() {
  4854. int size = 0;
  4855. if (NamePart_.Length != 0) {
  4856. size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
  4857. }
  4858. if (IsExtension != false) {
  4859. size += 1 + 1;
  4860. }
  4861. return size;
  4862. }
  4863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4864. public void MergeFrom(NamePart other) {
  4865. if (other == null) {
  4866. return;
  4867. }
  4868. if (other.NamePart_.Length != 0) {
  4869. NamePart_ = other.NamePart_;
  4870. }
  4871. if (other.IsExtension != false) {
  4872. IsExtension = other.IsExtension;
  4873. }
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4876. public void MergeFrom(pb::CodedInputStream input) {
  4877. uint tag;
  4878. while ((tag = input.ReadTag()) != 0) {
  4879. switch(tag) {
  4880. default:
  4881. input.SkipLastField();
  4882. break;
  4883. case 10: {
  4884. NamePart_ = input.ReadString();
  4885. break;
  4886. }
  4887. case 16: {
  4888. IsExtension = input.ReadBool();
  4889. break;
  4890. }
  4891. }
  4892. }
  4893. }
  4894. }
  4895. }
  4896. #endregion
  4897. }
  4898. /// <summary>
  4899. /// Encapsulates information about the original source file from which a
  4900. /// FileDescriptorProto was generated.
  4901. /// </summary>
  4902. internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
  4903. private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
  4904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4905. public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
  4906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4907. public static pbr::MessageDescriptor Descriptor {
  4908. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
  4909. }
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4911. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4912. get { return Descriptor; }
  4913. }
  4914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4915. public SourceCodeInfo() {
  4916. OnConstruction();
  4917. }
  4918. partial void OnConstruction();
  4919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4920. public SourceCodeInfo(SourceCodeInfo other) : this() {
  4921. location_ = other.location_.Clone();
  4922. }
  4923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4924. public SourceCodeInfo Clone() {
  4925. return new SourceCodeInfo(this);
  4926. }
  4927. /// <summary>Field number for the "location" field.</summary>
  4928. public const int LocationFieldNumber = 1;
  4929. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
  4930. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
  4931. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
  4932. /// <summary>
  4933. /// A Location identifies a piece of source code in a .proto file which
  4934. /// corresponds to a particular definition. This information is intended
  4935. /// to be useful to IDEs, code indexers, documentation generators, and similar
  4936. /// tools.
  4937. ///
  4938. /// For example, say we have a file like:
  4939. /// message Foo {
  4940. /// optional string foo = 1;
  4941. /// }
  4942. /// Let's look at just the field definition:
  4943. /// optional string foo = 1;
  4944. /// ^ ^^ ^^ ^ ^^^
  4945. /// a bc de f ghi
  4946. /// We have the following locations:
  4947. /// span path represents
  4948. /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
  4949. /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
  4950. /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
  4951. /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
  4952. /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
  4953. ///
  4954. /// Notes:
  4955. /// - A location may refer to a repeated field itself (i.e. not to any
  4956. /// particular index within it). This is used whenever a set of elements are
  4957. /// logically enclosed in a single code segment. For example, an entire
  4958. /// extend block (possibly containing multiple extension definitions) will
  4959. /// have an outer location whose path refers to the "extensions" repeated
  4960. /// field without an index.
  4961. /// - Multiple locations may have the same path. This happens when a single
  4962. /// logical declaration is spread out across multiple places. The most
  4963. /// obvious example is the "extend" block again -- there may be multiple
  4964. /// extend blocks in the same scope, each of which will have the same path.
  4965. /// - A location's span is not always a subset of its parent's span. For
  4966. /// example, the "extendee" of an extension declaration appears at the
  4967. /// beginning of the "extend" block and is shared by all extensions within
  4968. /// the block.
  4969. /// - Just because a location's span is a subset of some other location's span
  4970. /// does not mean that it is a descendent. For example, a "group" defines
  4971. /// both a type and a field in a single declaration. Thus, the locations
  4972. /// corresponding to the type and field and their components will overlap.
  4973. /// - Code which tries to interpret locations should probably be designed to
  4974. /// ignore those that it doesn't understand, as more types of locations could
  4975. /// be recorded in the future.
  4976. /// </summary>
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4978. public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
  4979. get { return location_; }
  4980. }
  4981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4982. public override bool Equals(object other) {
  4983. return Equals(other as SourceCodeInfo);
  4984. }
  4985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4986. public bool Equals(SourceCodeInfo other) {
  4987. if (ReferenceEquals(other, null)) {
  4988. return false;
  4989. }
  4990. if (ReferenceEquals(other, this)) {
  4991. return true;
  4992. }
  4993. if(!location_.Equals(other.location_)) return false;
  4994. return true;
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4997. public override int GetHashCode() {
  4998. int hash = 1;
  4999. hash ^= location_.GetHashCode();
  5000. return hash;
  5001. }
  5002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5003. public override string ToString() {
  5004. return pb::JsonFormatter.ToDiagnosticString(this);
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5007. public void WriteTo(pb::CodedOutputStream output) {
  5008. location_.WriteTo(output, _repeated_location_codec);
  5009. }
  5010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5011. public int CalculateSize() {
  5012. int size = 0;
  5013. size += location_.CalculateSize(_repeated_location_codec);
  5014. return size;
  5015. }
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5017. public void MergeFrom(SourceCodeInfo other) {
  5018. if (other == null) {
  5019. return;
  5020. }
  5021. location_.Add(other.location_);
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5024. public void MergeFrom(pb::CodedInputStream input) {
  5025. uint tag;
  5026. while ((tag = input.ReadTag()) != 0) {
  5027. switch(tag) {
  5028. default:
  5029. input.SkipLastField();
  5030. break;
  5031. case 10: {
  5032. location_.AddEntriesFrom(input, _repeated_location_codec);
  5033. break;
  5034. }
  5035. }
  5036. }
  5037. }
  5038. #region Nested types
  5039. /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
  5040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5041. public static partial class Types {
  5042. internal sealed partial class Location : pb::IMessage<Location> {
  5043. private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5045. public static pb::MessageParser<Location> Parser { get { return _parser; } }
  5046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5047. public static pbr::MessageDescriptor Descriptor {
  5048. get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
  5049. }
  5050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5051. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5052. get { return Descriptor; }
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5055. public Location() {
  5056. OnConstruction();
  5057. }
  5058. partial void OnConstruction();
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5060. public Location(Location other) : this() {
  5061. path_ = other.path_.Clone();
  5062. span_ = other.span_.Clone();
  5063. leadingComments_ = other.leadingComments_;
  5064. trailingComments_ = other.trailingComments_;
  5065. leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
  5066. }
  5067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5068. public Location Clone() {
  5069. return new Location(this);
  5070. }
  5071. /// <summary>Field number for the "path" field.</summary>
  5072. public const int PathFieldNumber = 1;
  5073. private static readonly pb::FieldCodec<int> _repeated_path_codec
  5074. = pb::FieldCodec.ForInt32(10);
  5075. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  5076. /// <summary>
  5077. /// Identifies which part of the FileDescriptorProto was defined at this
  5078. /// location.
  5079. ///
  5080. /// Each element is a field number or an index. They form a path from
  5081. /// the root FileDescriptorProto to the place where the definition. For
  5082. /// example, this path:
  5083. /// [ 4, 3, 2, 7, 1 ]
  5084. /// refers to:
  5085. /// file.message_type(3) // 4, 3
  5086. /// .field(7) // 2, 7
  5087. /// .name() // 1
  5088. /// This is because FileDescriptorProto.message_type has field number 4:
  5089. /// repeated DescriptorProto message_type = 4;
  5090. /// and DescriptorProto.field has field number 2:
  5091. /// repeated FieldDescriptorProto field = 2;
  5092. /// and FieldDescriptorProto.name has field number 1:
  5093. /// optional string name = 1;
  5094. ///
  5095. /// Thus, the above path gives the location of a field name. If we removed
  5096. /// the last element:
  5097. /// [ 4, 3, 2, 7 ]
  5098. /// this path refers to the whole field declaration (from the beginning
  5099. /// of the label to the terminating semicolon).
  5100. /// </summary>
  5101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5102. public pbc::RepeatedField<int> Path {
  5103. get { return path_; }
  5104. }
  5105. /// <summary>Field number for the "span" field.</summary>
  5106. public const int SpanFieldNumber = 2;
  5107. private static readonly pb::FieldCodec<int> _repeated_span_codec
  5108. = pb::FieldCodec.ForInt32(18);
  5109. private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
  5110. /// <summary>
  5111. /// Always has exactly three or four elements: start line, start column,
  5112. /// end line (optional, otherwise assumed same as start line), end column.
  5113. /// These are packed into a single field for efficiency. Note that line
  5114. /// and column numbers are zero-based -- typically you will want to add
  5115. /// 1 to each before displaying to a user.
  5116. /// </summary>
  5117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5118. public pbc::RepeatedField<int> Span {
  5119. get { return span_; }
  5120. }
  5121. /// <summary>Field number for the "leading_comments" field.</summary>
  5122. public const int LeadingCommentsFieldNumber = 3;
  5123. private string leadingComments_ = "";
  5124. /// <summary>
  5125. /// If this SourceCodeInfo represents a complete declaration, these are any
  5126. /// comments appearing before and after the declaration which appear to be
  5127. /// attached to the declaration.
  5128. ///
  5129. /// A series of line comments appearing on consecutive lines, with no other
  5130. /// tokens appearing on those lines, will be treated as a single comment.
  5131. ///
  5132. /// leading_detached_comments will keep paragraphs of comments that appear
  5133. /// before (but not connected to) the current element. Each paragraph,
  5134. /// separated by empty lines, will be one comment element in the repeated
  5135. /// field.
  5136. ///
  5137. /// Only the comment content is provided; comment markers (e.g. //) are
  5138. /// stripped out. For block comments, leading whitespace and an asterisk
  5139. /// will be stripped from the beginning of each line other than the first.
  5140. /// Newlines are included in the output.
  5141. ///
  5142. /// Examples:
  5143. ///
  5144. /// optional int32 foo = 1; // Comment attached to foo.
  5145. /// // Comment attached to bar.
  5146. /// optional int32 bar = 2;
  5147. ///
  5148. /// optional string baz = 3;
  5149. /// // Comment attached to baz.
  5150. /// // Another line attached to baz.
  5151. ///
  5152. /// // Comment attached to qux.
  5153. /// //
  5154. /// // Another line attached to qux.
  5155. /// optional double qux = 4;
  5156. ///
  5157. /// // Detached comment for corge. This is not leading or trailing comments
  5158. /// // to qux or corge because there are blank lines separating it from
  5159. /// // both.
  5160. ///
  5161. /// // Detached comment for corge paragraph 2.
  5162. ///
  5163. /// optional string corge = 5;
  5164. /// /* Block comment attached
  5165. /// * to corge. Leading asterisks
  5166. /// * will be removed. */
  5167. /// /* Block comment attached to
  5168. /// * grault. */
  5169. /// optional int32 grault = 6;
  5170. ///
  5171. /// // ignored detached comments.
  5172. /// </summary>
  5173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5174. public string LeadingComments {
  5175. get { return leadingComments_; }
  5176. set {
  5177. leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  5178. }
  5179. }
  5180. /// <summary>Field number for the "trailing_comments" field.</summary>
  5181. public const int TrailingCommentsFieldNumber = 4;
  5182. private string trailingComments_ = "";
  5183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5184. public string TrailingComments {
  5185. get { return trailingComments_; }
  5186. set {
  5187. trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  5188. }
  5189. }
  5190. /// <summary>Field number for the "leading_detached_comments" field.</summary>
  5191. public const int LeadingDetachedCommentsFieldNumber = 6;
  5192. private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
  5193. = pb::FieldCodec.ForString(50);
  5194. private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
  5195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5196. public pbc::RepeatedField<string> LeadingDetachedComments {
  5197. get { return leadingDetachedComments_; }
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5200. public override bool Equals(object other) {
  5201. return Equals(other as Location);
  5202. }
  5203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5204. public bool Equals(Location other) {
  5205. if (ReferenceEquals(other, null)) {
  5206. return false;
  5207. }
  5208. if (ReferenceEquals(other, this)) {
  5209. return true;
  5210. }
  5211. if(!path_.Equals(other.path_)) return false;
  5212. if(!span_.Equals(other.span_)) return false;
  5213. if (LeadingComments != other.LeadingComments) return false;
  5214. if (TrailingComments != other.TrailingComments) return false;
  5215. if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
  5216. return true;
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5219. public override int GetHashCode() {
  5220. int hash = 1;
  5221. hash ^= path_.GetHashCode();
  5222. hash ^= span_.GetHashCode();
  5223. if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
  5224. if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
  5225. hash ^= leadingDetachedComments_.GetHashCode();
  5226. return hash;
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5229. public override string ToString() {
  5230. return pb::JsonFormatter.ToDiagnosticString(this);
  5231. }
  5232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5233. public void WriteTo(pb::CodedOutputStream output) {
  5234. path_.WriteTo(output, _repeated_path_codec);
  5235. span_.WriteTo(output, _repeated_span_codec);
  5236. if (LeadingComments.Length != 0) {
  5237. output.WriteRawTag(26);
  5238. output.WriteString(LeadingComments);
  5239. }
  5240. if (TrailingComments.Length != 0) {
  5241. output.WriteRawTag(34);
  5242. output.WriteString(TrailingComments);
  5243. }
  5244. leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
  5245. }
  5246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5247. public int CalculateSize() {
  5248. int size = 0;
  5249. size += path_.CalculateSize(_repeated_path_codec);
  5250. size += span_.CalculateSize(_repeated_span_codec);
  5251. if (LeadingComments.Length != 0) {
  5252. size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
  5253. }
  5254. if (TrailingComments.Length != 0) {
  5255. size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
  5256. }
  5257. size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
  5258. return size;
  5259. }
  5260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5261. public void MergeFrom(Location other) {
  5262. if (other == null) {
  5263. return;
  5264. }
  5265. path_.Add(other.path_);
  5266. span_.Add(other.span_);
  5267. if (other.LeadingComments.Length != 0) {
  5268. LeadingComments = other.LeadingComments;
  5269. }
  5270. if (other.TrailingComments.Length != 0) {
  5271. TrailingComments = other.TrailingComments;
  5272. }
  5273. leadingDetachedComments_.Add(other.leadingDetachedComments_);
  5274. }
  5275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5276. public void MergeFrom(pb::CodedInputStream input) {
  5277. uint tag;
  5278. while ((tag = input.ReadTag()) != 0) {
  5279. switch(tag) {
  5280. default:
  5281. input.SkipLastField();
  5282. break;
  5283. case 10:
  5284. case 8: {
  5285. path_.AddEntriesFrom(input, _repeated_path_codec);
  5286. break;
  5287. }
  5288. case 18:
  5289. case 16: {
  5290. span_.AddEntriesFrom(input, _repeated_span_codec);
  5291. break;
  5292. }
  5293. case 26: {
  5294. LeadingComments = input.ReadString();
  5295. break;
  5296. }
  5297. case 34: {
  5298. TrailingComments = input.ReadString();
  5299. break;
  5300. }
  5301. case 50: {
  5302. leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
  5303. break;
  5304. }
  5305. }
  5306. }
  5307. }
  5308. }
  5309. }
  5310. #endregion
  5311. }
  5312. /// <summary>
  5313. /// Describes the relationship between generated code and its original source
  5314. /// file. A GeneratedCodeInfo message is associated with only one generated
  5315. /// source file, but may contain references to different source .proto files.
  5316. /// </summary>
  5317. internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> {
  5318. private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5320. public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
  5321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5322. public static pbr::MessageDescriptor Descriptor {
  5323. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[19]; }
  5324. }
  5325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5326. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5327. get { return Descriptor; }
  5328. }
  5329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5330. public GeneratedCodeInfo() {
  5331. OnConstruction();
  5332. }
  5333. partial void OnConstruction();
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5335. public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
  5336. annotation_ = other.annotation_.Clone();
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5339. public GeneratedCodeInfo Clone() {
  5340. return new GeneratedCodeInfo(this);
  5341. }
  5342. /// <summary>Field number for the "annotation" field.</summary>
  5343. public const int AnnotationFieldNumber = 1;
  5344. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
  5345. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
  5346. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
  5347. /// <summary>
  5348. /// An Annotation connects some span of text in generated code to an element
  5349. /// of its generating .proto file.
  5350. /// </summary>
  5351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5352. public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
  5353. get { return annotation_; }
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5356. public override bool Equals(object other) {
  5357. return Equals(other as GeneratedCodeInfo);
  5358. }
  5359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5360. public bool Equals(GeneratedCodeInfo other) {
  5361. if (ReferenceEquals(other, null)) {
  5362. return false;
  5363. }
  5364. if (ReferenceEquals(other, this)) {
  5365. return true;
  5366. }
  5367. if(!annotation_.Equals(other.annotation_)) return false;
  5368. return true;
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5371. public override int GetHashCode() {
  5372. int hash = 1;
  5373. hash ^= annotation_.GetHashCode();
  5374. return hash;
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5377. public override string ToString() {
  5378. return pb::JsonFormatter.ToDiagnosticString(this);
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5381. public void WriteTo(pb::CodedOutputStream output) {
  5382. annotation_.WriteTo(output, _repeated_annotation_codec);
  5383. }
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5385. public int CalculateSize() {
  5386. int size = 0;
  5387. size += annotation_.CalculateSize(_repeated_annotation_codec);
  5388. return size;
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5391. public void MergeFrom(GeneratedCodeInfo other) {
  5392. if (other == null) {
  5393. return;
  5394. }
  5395. annotation_.Add(other.annotation_);
  5396. }
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5398. public void MergeFrom(pb::CodedInputStream input) {
  5399. uint tag;
  5400. while ((tag = input.ReadTag()) != 0) {
  5401. switch(tag) {
  5402. default:
  5403. input.SkipLastField();
  5404. break;
  5405. case 10: {
  5406. annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
  5407. break;
  5408. }
  5409. }
  5410. }
  5411. }
  5412. #region Nested types
  5413. /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
  5414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5415. public static partial class Types {
  5416. internal sealed partial class Annotation : pb::IMessage<Annotation> {
  5417. private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
  5418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5419. public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5421. public static pbr::MessageDescriptor Descriptor {
  5422. get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
  5423. }
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5425. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5426. get { return Descriptor; }
  5427. }
  5428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5429. public Annotation() {
  5430. OnConstruction();
  5431. }
  5432. partial void OnConstruction();
  5433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5434. public Annotation(Annotation other) : this() {
  5435. path_ = other.path_.Clone();
  5436. sourceFile_ = other.sourceFile_;
  5437. begin_ = other.begin_;
  5438. end_ = other.end_;
  5439. }
  5440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5441. public Annotation Clone() {
  5442. return new Annotation(this);
  5443. }
  5444. /// <summary>Field number for the "path" field.</summary>
  5445. public const int PathFieldNumber = 1;
  5446. private static readonly pb::FieldCodec<int> _repeated_path_codec
  5447. = pb::FieldCodec.ForInt32(10);
  5448. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  5449. /// <summary>
  5450. /// Identifies the element in the original source .proto file. This field
  5451. /// is formatted the same as SourceCodeInfo.Location.path.
  5452. /// </summary>
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5454. public pbc::RepeatedField<int> Path {
  5455. get { return path_; }
  5456. }
  5457. /// <summary>Field number for the "source_file" field.</summary>
  5458. public const int SourceFileFieldNumber = 2;
  5459. private string sourceFile_ = "";
  5460. /// <summary>
  5461. /// Identifies the filesystem path to the original source .proto.
  5462. /// </summary>
  5463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5464. public string SourceFile {
  5465. get { return sourceFile_; }
  5466. set {
  5467. sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  5468. }
  5469. }
  5470. /// <summary>Field number for the "begin" field.</summary>
  5471. public const int BeginFieldNumber = 3;
  5472. private int begin_;
  5473. /// <summary>
  5474. /// Identifies the starting offset in bytes in the generated code
  5475. /// that relates to the identified object.
  5476. /// </summary>
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5478. public int Begin {
  5479. get { return begin_; }
  5480. set {
  5481. begin_ = value;
  5482. }
  5483. }
  5484. /// <summary>Field number for the "end" field.</summary>
  5485. public const int EndFieldNumber = 4;
  5486. private int end_;
  5487. /// <summary>
  5488. /// Identifies the ending offset in bytes in the generated code that
  5489. /// relates to the identified offset. The end offset should be one past
  5490. /// the last relevant byte (so the length of the text = end - begin).
  5491. /// </summary>
  5492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5493. public int End {
  5494. get { return end_; }
  5495. set {
  5496. end_ = value;
  5497. }
  5498. }
  5499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5500. public override bool Equals(object other) {
  5501. return Equals(other as Annotation);
  5502. }
  5503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5504. public bool Equals(Annotation other) {
  5505. if (ReferenceEquals(other, null)) {
  5506. return false;
  5507. }
  5508. if (ReferenceEquals(other, this)) {
  5509. return true;
  5510. }
  5511. if(!path_.Equals(other.path_)) return false;
  5512. if (SourceFile != other.SourceFile) return false;
  5513. if (Begin != other.Begin) return false;
  5514. if (End != other.End) return false;
  5515. return true;
  5516. }
  5517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5518. public override int GetHashCode() {
  5519. int hash = 1;
  5520. hash ^= path_.GetHashCode();
  5521. if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode();
  5522. if (Begin != 0) hash ^= Begin.GetHashCode();
  5523. if (End != 0) hash ^= End.GetHashCode();
  5524. return hash;
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5527. public override string ToString() {
  5528. return pb::JsonFormatter.ToDiagnosticString(this);
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5531. public void WriteTo(pb::CodedOutputStream output) {
  5532. path_.WriteTo(output, _repeated_path_codec);
  5533. if (SourceFile.Length != 0) {
  5534. output.WriteRawTag(18);
  5535. output.WriteString(SourceFile);
  5536. }
  5537. if (Begin != 0) {
  5538. output.WriteRawTag(24);
  5539. output.WriteInt32(Begin);
  5540. }
  5541. if (End != 0) {
  5542. output.WriteRawTag(32);
  5543. output.WriteInt32(End);
  5544. }
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5547. public int CalculateSize() {
  5548. int size = 0;
  5549. size += path_.CalculateSize(_repeated_path_codec);
  5550. if (SourceFile.Length != 0) {
  5551. size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
  5552. }
  5553. if (Begin != 0) {
  5554. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
  5555. }
  5556. if (End != 0) {
  5557. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  5558. }
  5559. return size;
  5560. }
  5561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5562. public void MergeFrom(Annotation other) {
  5563. if (other == null) {
  5564. return;
  5565. }
  5566. path_.Add(other.path_);
  5567. if (other.SourceFile.Length != 0) {
  5568. SourceFile = other.SourceFile;
  5569. }
  5570. if (other.Begin != 0) {
  5571. Begin = other.Begin;
  5572. }
  5573. if (other.End != 0) {
  5574. End = other.End;
  5575. }
  5576. }
  5577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5578. public void MergeFrom(pb::CodedInputStream input) {
  5579. uint tag;
  5580. while ((tag = input.ReadTag()) != 0) {
  5581. switch(tag) {
  5582. default:
  5583. input.SkipLastField();
  5584. break;
  5585. case 10:
  5586. case 8: {
  5587. path_.AddEntriesFrom(input, _repeated_path_codec);
  5588. break;
  5589. }
  5590. case 18: {
  5591. SourceFile = input.ReadString();
  5592. break;
  5593. }
  5594. case 24: {
  5595. Begin = input.ReadInt32();
  5596. break;
  5597. }
  5598. case 32: {
  5599. End = input.ReadInt32();
  5600. break;
  5601. }
  5602. }
  5603. }
  5604. }
  5605. }
  5606. }
  5607. #endregion
  5608. }
  5609. #endregion
  5610. }
  5611. #endregion Designer generated code