DescriptorProtoFile.cs 160 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor_proto_file.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. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. internal static partial class DescriptorProtoFile {
  12. #region Descriptor
  13. public static pbr::FileDescriptor Descriptor {
  14. get { return descriptor; }
  15. }
  16. private static pbr::FileDescriptor descriptor;
  17. static DescriptorProtoFile() {
  18. byte[] descriptorData = global::System.Convert.FromBase64String(
  19. string.Concat(
  20. "Citnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvcl9wcm90b19maWxlLnByb3Rv",
  21. "Eg9nb29nbGUucHJvdG9idWYiRwoRRmlsZURlc2NyaXB0b3JTZXQSMgoEZmls",
  22. "ZRgBIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3Rv",
  23. "ItsDChNGaWxlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDwoHcGFj",
  24. "a2FnZRgCIAEoCRISCgpkZXBlbmRlbmN5GAMgAygJEhkKEXB1YmxpY19kZXBl",
  25. "bmRlbmN5GAogAygFEhcKD3dlYWtfZGVwZW5kZW5jeRgLIAMoBRI2CgxtZXNz",
  26. "YWdlX3R5cGUYBCADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclBy",
  27. "b3RvEjcKCWVudW1fdHlwZRgFIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVt",
  28. "RGVzY3JpcHRvclByb3RvEjgKB3NlcnZpY2UYBiADKAsyJy5nb29nbGUucHJv",
  29. "dG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90bxI4CglleHRlbnNpb24YByAD",
  30. "KAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SLQoH",
  31. "b3B0aW9ucxgIIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxI5",
  32. "ChBzb3VyY2VfY29kZV9pbmZvGAkgASgLMh8uZ29vZ2xlLnByb3RvYnVmLlNv",
  33. "dXJjZUNvZGVJbmZvEg4KBnN5bnRheBgMIAEoCSLwBAoPRGVzY3JpcHRvclBy",
  34. "b3RvEgwKBG5hbWUYASABKAkSNAoFZmllbGQYAiADKAsyJS5nb29nbGUucHJv",
  35. "dG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAYgAygL",
  36. "MiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEjUKC25l",
  37. "c3RlZF90eXBlGAMgAygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQ",
  38. "cm90bxI3CgllbnVtX3R5cGUYBCADKAsyJC5nb29nbGUucHJvdG9idWYuRW51",
  39. "bURlc2NyaXB0b3JQcm90bxJICg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5n",
  40. "b29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdl",
  41. "EjkKCm9uZW9mX2RlY2wYCCADKAsyJS5nb29nbGUucHJvdG9idWYuT25lb2ZE",
  42. "ZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90",
  43. "b2J1Zi5NZXNzYWdlT3B0aW9ucxJGCg5yZXNlcnZlZF9yYW5nZRgJIAMoCzIu",
  44. "Lmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uUmVzZXJ2ZWRSYW5n",
  45. "ZRIVCg1yZXNlcnZlZF9uYW1lGAogAygJGiwKDkV4dGVuc2lvblJhbmdlEg0K",
  46. "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRorCg1SZXNlcnZlZFJhbmdlEg0K",
  47. "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBSKpBQoURmllbGREZXNjcmlwdG9y",
  48. "UHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAyABKAUSOgoFbGFiZWwY",
  49. "BCABKA4yKy5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8u",
  50. "TGFiZWwSOAoEdHlwZRgFIAEoDjIqLmdvb2dsZS5wcm90b2J1Zi5GaWVsZERl",
  51. "c2NyaXB0b3JQcm90by5UeXBlEhEKCXR5cGVfbmFtZRgGIAEoCRIQCghleHRl",
  52. "bmRlZRgCIAEoCRIVCg1kZWZhdWx0X3ZhbHVlGAcgASgJEhMKC29uZW9mX2lu",
  53. "ZGV4GAkgASgFEi4KB29wdGlvbnMYCCABKAsyHS5nb29nbGUucHJvdG9idWYu",
  54. "RmllbGRPcHRpb25zIrYCCgRUeXBlEg8KC1RZUEVfRE9VQkxFEAESDgoKVFlQ",
  55. "RV9GTE9BVBACEg4KClRZUEVfSU5UNjQQAxIPCgtUWVBFX1VJTlQ2NBAEEg4K",
  56. "ClRZUEVfSU5UMzIQBRIQCgxUWVBFX0ZJWEVENjQQBhIQCgxUWVBFX0ZJWEVE",
  57. "MzIQBxINCglUWVBFX0JPT0wQCBIPCgtUWVBFX1NUUklORxAJEg4KClRZUEVf",
  58. "R1JPVVAQChIQCgxUWVBFX01FU1NBR0UQCxIOCgpUWVBFX0JZVEVTEAwSDwoL",
  59. "VFlQRV9VSU5UMzIQDRINCglUWVBFX0VOVU0QDhIRCg1UWVBFX1NGSVhFRDMy",
  60. "EA8SEQoNVFlQRV9TRklYRUQ2NBAQEg8KC1RZUEVfU0lOVDMyEBESDwoLVFlQ",
  61. "RV9TSU5UNjQQEiJDCgVMYWJlbBISCg5MQUJFTF9PUFRJT05BTBABEhIKDkxB",
  62. "QkVMX1JFUVVJUkVEEAISEgoOTEFCRUxfUkVQRUFURUQQAyIkChRPbmVvZkRl",
  63. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJIowBChNFbnVtRGVzY3JpcHRv",
  64. "clByb3RvEgwKBG5hbWUYASABKAkSOAoFdmFsdWUYAiADKAsyKS5nb29nbGUu",
  65. "cHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMY",
  66. "AyABKAsyHC5nb29nbGUucHJvdG9idWYuRW51bU9wdGlvbnMibAoYRW51bVZh",
  67. "bHVlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAIg",
  68. "ASgFEjIKB29wdGlvbnMYAyABKAsyIS5nb29nbGUucHJvdG9idWYuRW51bVZh",
  69. "bHVlT3B0aW9ucyKQAQoWU2VydmljZURlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
  70. "GAEgASgJEjYKBm1ldGhvZBgCIAMoCzImLmdvb2dsZS5wcm90b2J1Zi5NZXRo",
  71. "b2REZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgDIAEoCzIfLmdvb2dsZS5w",
  72. "cm90b2J1Zi5TZXJ2aWNlT3B0aW9ucyLBAQoVTWV0aG9kRGVzY3JpcHRvclBy",
  73. "b3RvEgwKBG5hbWUYASABKAkSEgoKaW5wdXRfdHlwZRgCIAEoCRITCgtvdXRw",
  74. "dXRfdHlwZRgDIAEoCRIvCgdvcHRpb25zGAQgASgLMh4uZ29vZ2xlLnByb3Rv",
  75. "YnVmLk1ldGhvZE9wdGlvbnMSHwoQY2xpZW50X3N0cmVhbWluZxgFIAEoCDoF",
  76. "ZmFsc2USHwoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2UigQUKC0Zp",
  77. "bGVPcHRpb25zEhQKDGphdmFfcGFja2FnZRgBIAEoCRIcChRqYXZhX291dGVy",
  78. "X2NsYXNzbmFtZRgIIAEoCRIiChNqYXZhX211bHRpcGxlX2ZpbGVzGAogASgI",
  79. "OgVmYWxzZRIsCh1qYXZhX2dlbmVyYXRlX2VxdWFsc19hbmRfaGFzaBgUIAEo",
  80. "CDoFZmFsc2USJQoWamF2YV9zdHJpbmdfY2hlY2tfdXRmOBgbIAEoCDoFZmFs",
  81. "c2USRgoMb3B0aW1pemVfZm9yGAkgASgOMikuZ29vZ2xlLnByb3RvYnVmLkZp",
  82. "bGVPcHRpb25zLk9wdGltaXplTW9kZToFU1BFRUQSEgoKZ29fcGFja2FnZRgL",
  83. "IAEoCRIiChNjY19nZW5lcmljX3NlcnZpY2VzGBAgASgIOgVmYWxzZRIkChVq",
  84. "YXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlEiIKE3B5X2dlbmVy",
  85. "aWNfc2VydmljZXMYEiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6",
  86. "BWZhbHNlEh8KEGNjX2VuYWJsZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9i",
  87. "amNfY2xhc3NfcHJlZml4GCQgASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSAB",
  88. "KAkSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy",
  89. "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iOgoMT3B0aW1pemVNb2RlEgkK",
  90. "BVNQRUVEEAESDQoJQ09ERV9TSVpFEAISEAoMTElURV9SVU5USU1FEAMqCQjo",
  91. "BxCAgICAAiLmAQoOTWVzc2FnZU9wdGlvbnMSJgoXbWVzc2FnZV9zZXRfd2ly",
  92. "ZV9mb3JtYXQYASABKAg6BWZhbHNlEi4KH25vX3N0YW5kYXJkX2Rlc2NyaXB0",
  93. "b3JfYWNjZXNzb3IYAiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6",
  94. "BWZhbHNlEhEKCW1hcF9lbnRyeRgHIAEoCBJDChR1bmludGVycHJldGVkX29w",
  95. "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w",
  96. "dGlvbioJCOgHEICAgIACIpgDCgxGaWVsZE9wdGlvbnMSOgoFY3R5cGUYASAB",
  97. "KA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkNUeXBlOgZTVFJJ",
  98. "TkcSDgoGcGFja2VkGAIgASgIEj8KBmpzdHlwZRgGIAEoDjIkLmdvb2dsZS5w",
  99. "cm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1JNQUwSEwoEbGF6",
  100. "eRgFIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEwoE",
  101. "d2VhaxgKIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcg",
  102. "AygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iLwoF",
  103. "Q1R5cGUSCgoGU1RSSU5HEAASCAoEQ09SRBABEhAKDFNUUklOR19QSUVDRRAC",
  104. "IjUKBkpTVHlwZRINCglKU19OT1JNQUwQABINCglKU19TVFJJTkcQARINCglK",
  105. "U19OVU1CRVIQAioJCOgHEICAgIACIo0BCgtFbnVtT3B0aW9ucxITCgthbGxv",
  106. "d19hbGlhcxgCIAEoCBIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxzZRJDChR1",
  107. "bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYu",
  108. "VW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIn0KEEVudW1WYWx1ZU9w",
  109. "dGlvbnMSGQoKZGVwcmVjYXRlZBgBIAEoCDoFZmFsc2USQwoUdW5pbnRlcnBy",
  110. "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw",
  111. "cmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ7Cg5TZXJ2aWNlT3B0aW9ucxIZCgpk",
  112. "ZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlv",
  113. "bhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv",
  114. "bioJCOgHEICAgIACInoKDU1ldGhvZE9wdGlvbnMSGQoKZGVwcmVjYXRlZBgh",
  115. "IAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQu",
  116. "Z29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICA",
  117. "AiKeAgoTVW5pbnRlcnByZXRlZE9wdGlvbhI7CgRuYW1lGAIgAygLMi0uZ29v",
  118. "Z2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24uTmFtZVBhcnQSGAoQ",
  119. "aWRlbnRpZmllcl92YWx1ZRgDIAEoCRIaChJwb3NpdGl2ZV9pbnRfdmFsdWUY",
  120. "BCABKAQSGgoSbmVnYXRpdmVfaW50X3ZhbHVlGAUgASgDEhQKDGRvdWJsZV92",
  121. "YWx1ZRgGIAEoARIUCgxzdHJpbmdfdmFsdWUYByABKAwSFwoPYWdncmVnYXRl",
  122. "X3ZhbHVlGAggASgJGjMKCE5hbWVQYXJ0EhEKCW5hbWVfcGFydBgBIAIoCRIU",
  123. "Cgxpc19leHRlbnNpb24YAiACKAgi1QEKDlNvdXJjZUNvZGVJbmZvEjoKCGxv",
  124. "Y2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvZGVJbmZv",
  125. "LkxvY2F0aW9uGoYBCghMb2NhdGlvbhIQCgRwYXRoGAEgAygFQgIQARIQCgRz",
  126. "cGFuGAIgAygFQgIQARIYChBsZWFkaW5nX2NvbW1lbnRzGAMgASgJEhkKEXRy",
  127. "YWlsaW5nX2NvbW1lbnRzGAQgASgJEiEKGWxlYWRpbmdfZGV0YWNoZWRfY29t",
  128. "bWVudHMYBiADKAlCWAoTY29tLmdvb2dsZS5wcm90b2J1ZkIQRGVzY3JpcHRv",
  129. "clByb3Rvc0gBWgpkZXNjcmlwdG9yogIDR1BCqgIaR29vZ2xlLlByb3RvYnVm",
  130. "LlJlZmxlY3Rpb24="));
  131. descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  132. new pbr::FileDescriptor[] { },
  133. new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
  134. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), new[]{ "File" }, null, null, null),
  135. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null),
  136. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), new[]{ "Start", "End" }, null, null, null),
  137. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), new[]{ "Start", "End" }, null, null, null)}),
  138. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null),
  139. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), new[]{ "Name" }, null, null, null),
  140. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), new[]{ "Name", "Value", "Options" }, null, null, null),
  141. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), new[]{ "Name", "Number", "Options" }, null, null, null),
  142. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), new[]{ "Name", "Method", "Options" }, null, null, null),
  143. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
  144. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
  145. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
  146. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), 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),
  147. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
  148. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  149. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  150. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  151. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
  152. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), new[]{ "Location" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)})
  153. }));
  154. }
  155. #endregion
  156. }
  157. #region Messages
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  159. internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
  160. private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
  161. public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
  162. public static pbr::MessageDescriptor Descriptor {
  163. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[0]; }
  164. }
  165. pbr::MessageDescriptor pb::IMessage.Descriptor {
  166. get { return Descriptor; }
  167. }
  168. private bool _frozen = false;
  169. public bool IsFrozen { get { return _frozen; } }
  170. public FileDescriptorSet() {
  171. OnConstruction();
  172. }
  173. partial void OnConstruction();
  174. public FileDescriptorSet(FileDescriptorSet other) : this() {
  175. file_ = other.file_.Clone();
  176. }
  177. public FileDescriptorSet Clone() {
  178. return new FileDescriptorSet(this);
  179. }
  180. public void Freeze() {
  181. if (IsFrozen) {
  182. return;
  183. }
  184. _frozen = true;
  185. file_.Freeze();
  186. }
  187. public const int FileFieldNumber = 1;
  188. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
  189. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
  190. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
  191. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
  192. get { return file_; }
  193. }
  194. public override bool Equals(object other) {
  195. return Equals(other as FileDescriptorSet);
  196. }
  197. public bool Equals(FileDescriptorSet other) {
  198. if (ReferenceEquals(other, null)) {
  199. return false;
  200. }
  201. if (ReferenceEquals(other, this)) {
  202. return true;
  203. }
  204. if(!file_.Equals(other.file_)) return false;
  205. return true;
  206. }
  207. public override int GetHashCode() {
  208. int hash = 1;
  209. hash ^= file_.GetHashCode();
  210. return hash;
  211. }
  212. public override string ToString() {
  213. return pb::JsonFormatter.Default.Format(this);
  214. }
  215. public void WriteTo(pb::CodedOutputStream output) {
  216. file_.WriteTo(output, _repeated_file_codec);
  217. }
  218. public int CalculateSize() {
  219. int size = 0;
  220. size += file_.CalculateSize(_repeated_file_codec);
  221. return size;
  222. }
  223. public void MergeFrom(FileDescriptorSet other) {
  224. if (other == null) {
  225. return;
  226. }
  227. file_.Add(other.file_);
  228. }
  229. public void MergeFrom(pb::CodedInputStream input) {
  230. uint tag;
  231. while (input.ReadTag(out tag)) {
  232. switch(tag) {
  233. case 0:
  234. throw pb::InvalidProtocolBufferException.InvalidTag();
  235. default:
  236. if (pb::WireFormat.IsEndGroupTag(tag)) {
  237. return;
  238. }
  239. break;
  240. case 10: {
  241. file_.AddEntriesFrom(input, _repeated_file_codec);
  242. break;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
  250. private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
  251. public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
  252. public static pbr::MessageDescriptor Descriptor {
  253. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[1]; }
  254. }
  255. pbr::MessageDescriptor pb::IMessage.Descriptor {
  256. get { return Descriptor; }
  257. }
  258. private bool _frozen = false;
  259. public bool IsFrozen { get { return _frozen; } }
  260. public FileDescriptorProto() {
  261. OnConstruction();
  262. }
  263. partial void OnConstruction();
  264. public FileDescriptorProto(FileDescriptorProto other) : this() {
  265. name_ = other.name_;
  266. package_ = other.package_;
  267. dependency_ = other.dependency_.Clone();
  268. publicDependency_ = other.publicDependency_.Clone();
  269. weakDependency_ = other.weakDependency_.Clone();
  270. messageType_ = other.messageType_.Clone();
  271. enumType_ = other.enumType_.Clone();
  272. service_ = other.service_.Clone();
  273. extension_ = other.extension_.Clone();
  274. Options = other.options_ != null ? other.Options.Clone() : null;
  275. SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null;
  276. syntax_ = other.syntax_;
  277. }
  278. public FileDescriptorProto Clone() {
  279. return new FileDescriptorProto(this);
  280. }
  281. public void Freeze() {
  282. if (IsFrozen) {
  283. return;
  284. }
  285. _frozen = true;
  286. dependency_.Freeze();
  287. publicDependency_.Freeze();
  288. weakDependency_.Freeze();
  289. messageType_.Freeze();
  290. enumType_.Freeze();
  291. service_.Freeze();
  292. extension_.Freeze();
  293. if (options_ != null) Options.Freeze();
  294. if (sourceCodeInfo_ != null) SourceCodeInfo.Freeze();
  295. }
  296. public const int NameFieldNumber = 1;
  297. private string name_ = "";
  298. internal string Name {
  299. get { return name_; }
  300. set {
  301. pb::Freezable.CheckMutable(this);
  302. name_ = value ?? "";
  303. }
  304. }
  305. public const int PackageFieldNumber = 2;
  306. private string package_ = "";
  307. internal string Package {
  308. get { return package_; }
  309. set {
  310. pb::Freezable.CheckMutable(this);
  311. package_ = value ?? "";
  312. }
  313. }
  314. public const int DependencyFieldNumber = 3;
  315. private static readonly pb::FieldCodec<string> _repeated_dependency_codec
  316. = pb::FieldCodec.ForString(26);
  317. private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
  318. internal pbc::RepeatedField<string> Dependency {
  319. get { return dependency_; }
  320. }
  321. public const int PublicDependencyFieldNumber = 10;
  322. private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
  323. = pb::FieldCodec.ForInt32(80);
  324. private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
  325. internal pbc::RepeatedField<int> PublicDependency {
  326. get { return publicDependency_; }
  327. }
  328. public const int WeakDependencyFieldNumber = 11;
  329. private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
  330. = pb::FieldCodec.ForInt32(88);
  331. private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
  332. internal pbc::RepeatedField<int> WeakDependency {
  333. get { return weakDependency_; }
  334. }
  335. public const int MessageTypeFieldNumber = 4;
  336. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
  337. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  338. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  339. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
  340. get { return messageType_; }
  341. }
  342. public const int EnumTypeFieldNumber = 5;
  343. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  344. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  345. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  346. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  347. get { return enumType_; }
  348. }
  349. public const int ServiceFieldNumber = 6;
  350. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
  351. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
  352. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
  353. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
  354. get { return service_; }
  355. }
  356. public const int ExtensionFieldNumber = 7;
  357. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  358. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  359. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  360. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  361. get { return extension_; }
  362. }
  363. public const int OptionsFieldNumber = 8;
  364. private global::Google.Protobuf.Reflection.FileOptions options_;
  365. internal global::Google.Protobuf.Reflection.FileOptions Options {
  366. get { return options_; }
  367. set {
  368. pb::Freezable.CheckMutable(this);
  369. options_ = value;
  370. }
  371. }
  372. public const int SourceCodeInfoFieldNumber = 9;
  373. private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
  374. internal global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
  375. get { return sourceCodeInfo_; }
  376. set {
  377. pb::Freezable.CheckMutable(this);
  378. sourceCodeInfo_ = value;
  379. }
  380. }
  381. public const int SyntaxFieldNumber = 12;
  382. private string syntax_ = "";
  383. internal string Syntax {
  384. get { return syntax_; }
  385. set {
  386. pb::Freezable.CheckMutable(this);
  387. syntax_ = value ?? "";
  388. }
  389. }
  390. public override bool Equals(object other) {
  391. return Equals(other as FileDescriptorProto);
  392. }
  393. public bool Equals(FileDescriptorProto other) {
  394. if (ReferenceEquals(other, null)) {
  395. return false;
  396. }
  397. if (ReferenceEquals(other, this)) {
  398. return true;
  399. }
  400. if (Name != other.Name) return false;
  401. if (Package != other.Package) return false;
  402. if(!dependency_.Equals(other.dependency_)) return false;
  403. if(!publicDependency_.Equals(other.publicDependency_)) return false;
  404. if(!weakDependency_.Equals(other.weakDependency_)) return false;
  405. if(!messageType_.Equals(other.messageType_)) return false;
  406. if(!enumType_.Equals(other.enumType_)) return false;
  407. if(!service_.Equals(other.service_)) return false;
  408. if(!extension_.Equals(other.extension_)) return false;
  409. if (!object.Equals(Options, other.Options)) return false;
  410. if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
  411. if (Syntax != other.Syntax) return false;
  412. return true;
  413. }
  414. public override int GetHashCode() {
  415. int hash = 1;
  416. if (Name.Length != 0) hash ^= Name.GetHashCode();
  417. if (Package.Length != 0) hash ^= Package.GetHashCode();
  418. hash ^= dependency_.GetHashCode();
  419. hash ^= publicDependency_.GetHashCode();
  420. hash ^= weakDependency_.GetHashCode();
  421. hash ^= messageType_.GetHashCode();
  422. hash ^= enumType_.GetHashCode();
  423. hash ^= service_.GetHashCode();
  424. hash ^= extension_.GetHashCode();
  425. if (options_ != null) hash ^= Options.GetHashCode();
  426. if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
  427. if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
  428. return hash;
  429. }
  430. public override string ToString() {
  431. return pb::JsonFormatter.Default.Format(this);
  432. }
  433. public void WriteTo(pb::CodedOutputStream output) {
  434. if (Name.Length != 0) {
  435. output.WriteRawTag(10);
  436. output.WriteString(Name);
  437. }
  438. if (Package.Length != 0) {
  439. output.WriteRawTag(18);
  440. output.WriteString(Package);
  441. }
  442. dependency_.WriteTo(output, _repeated_dependency_codec);
  443. messageType_.WriteTo(output, _repeated_messageType_codec);
  444. enumType_.WriteTo(output, _repeated_enumType_codec);
  445. service_.WriteTo(output, _repeated_service_codec);
  446. extension_.WriteTo(output, _repeated_extension_codec);
  447. if (options_ != null) {
  448. output.WriteRawTag(66);
  449. output.WriteMessage(Options);
  450. }
  451. if (sourceCodeInfo_ != null) {
  452. output.WriteRawTag(74);
  453. output.WriteMessage(SourceCodeInfo);
  454. }
  455. publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
  456. weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
  457. if (Syntax.Length != 0) {
  458. output.WriteRawTag(98);
  459. output.WriteString(Syntax);
  460. }
  461. }
  462. public int CalculateSize() {
  463. int size = 0;
  464. if (Name.Length != 0) {
  465. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  466. }
  467. if (Package.Length != 0) {
  468. size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
  469. }
  470. size += dependency_.CalculateSize(_repeated_dependency_codec);
  471. size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
  472. size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
  473. size += messageType_.CalculateSize(_repeated_messageType_codec);
  474. size += enumType_.CalculateSize(_repeated_enumType_codec);
  475. size += service_.CalculateSize(_repeated_service_codec);
  476. size += extension_.CalculateSize(_repeated_extension_codec);
  477. if (options_ != null) {
  478. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  479. }
  480. if (sourceCodeInfo_ != null) {
  481. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
  482. }
  483. if (Syntax.Length != 0) {
  484. size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
  485. }
  486. return size;
  487. }
  488. public void MergeFrom(FileDescriptorProto other) {
  489. if (other == null) {
  490. return;
  491. }
  492. if (other.Name.Length != 0) {
  493. Name = other.Name;
  494. }
  495. if (other.Package.Length != 0) {
  496. Package = other.Package;
  497. }
  498. dependency_.Add(other.dependency_);
  499. publicDependency_.Add(other.publicDependency_);
  500. weakDependency_.Add(other.weakDependency_);
  501. messageType_.Add(other.messageType_);
  502. enumType_.Add(other.enumType_);
  503. service_.Add(other.service_);
  504. extension_.Add(other.extension_);
  505. if (other.options_ != null) {
  506. if (options_ == null) {
  507. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  508. }
  509. Options.MergeFrom(other.Options);
  510. }
  511. if (other.sourceCodeInfo_ != null) {
  512. if (sourceCodeInfo_ == null) {
  513. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  514. }
  515. SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
  516. }
  517. if (other.Syntax.Length != 0) {
  518. Syntax = other.Syntax;
  519. }
  520. }
  521. public void MergeFrom(pb::CodedInputStream input) {
  522. uint tag;
  523. while (input.ReadTag(out tag)) {
  524. switch(tag) {
  525. case 0:
  526. throw pb::InvalidProtocolBufferException.InvalidTag();
  527. default:
  528. if (pb::WireFormat.IsEndGroupTag(tag)) {
  529. return;
  530. }
  531. break;
  532. case 10: {
  533. Name = input.ReadString();
  534. break;
  535. }
  536. case 18: {
  537. Package = input.ReadString();
  538. break;
  539. }
  540. case 26: {
  541. dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
  542. break;
  543. }
  544. case 34: {
  545. messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
  546. break;
  547. }
  548. case 42: {
  549. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  550. break;
  551. }
  552. case 50: {
  553. service_.AddEntriesFrom(input, _repeated_service_codec);
  554. break;
  555. }
  556. case 58: {
  557. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  558. break;
  559. }
  560. case 66: {
  561. if (options_ == null) {
  562. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  563. }
  564. input.ReadMessage(options_);
  565. break;
  566. }
  567. case 74: {
  568. if (sourceCodeInfo_ == null) {
  569. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  570. }
  571. input.ReadMessage(sourceCodeInfo_);
  572. break;
  573. }
  574. case 82:
  575. case 80: {
  576. publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
  577. break;
  578. }
  579. case 90:
  580. case 88: {
  581. weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
  582. break;
  583. }
  584. case 98: {
  585. Syntax = input.ReadString();
  586. break;
  587. }
  588. }
  589. }
  590. }
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
  594. private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
  595. public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
  596. public static pbr::MessageDescriptor Descriptor {
  597. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[2]; }
  598. }
  599. pbr::MessageDescriptor pb::IMessage.Descriptor {
  600. get { return Descriptor; }
  601. }
  602. private bool _frozen = false;
  603. public bool IsFrozen { get { return _frozen; } }
  604. public DescriptorProto() {
  605. OnConstruction();
  606. }
  607. partial void OnConstruction();
  608. public DescriptorProto(DescriptorProto other) : this() {
  609. name_ = other.name_;
  610. field_ = other.field_.Clone();
  611. extension_ = other.extension_.Clone();
  612. nestedType_ = other.nestedType_.Clone();
  613. enumType_ = other.enumType_.Clone();
  614. extensionRange_ = other.extensionRange_.Clone();
  615. oneofDecl_ = other.oneofDecl_.Clone();
  616. Options = other.options_ != null ? other.Options.Clone() : null;
  617. reservedRange_ = other.reservedRange_.Clone();
  618. reservedName_ = other.reservedName_.Clone();
  619. }
  620. public DescriptorProto Clone() {
  621. return new DescriptorProto(this);
  622. }
  623. public void Freeze() {
  624. if (IsFrozen) {
  625. return;
  626. }
  627. _frozen = true;
  628. field_.Freeze();
  629. extension_.Freeze();
  630. nestedType_.Freeze();
  631. enumType_.Freeze();
  632. extensionRange_.Freeze();
  633. oneofDecl_.Freeze();
  634. if (options_ != null) Options.Freeze();
  635. reservedRange_.Freeze();
  636. reservedName_.Freeze();
  637. }
  638. public const int NameFieldNumber = 1;
  639. private string name_ = "";
  640. internal string Name {
  641. get { return name_; }
  642. set {
  643. pb::Freezable.CheckMutable(this);
  644. name_ = value ?? "";
  645. }
  646. }
  647. public const int FieldFieldNumber = 2;
  648. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
  649. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  650. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  651. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
  652. get { return field_; }
  653. }
  654. public const int ExtensionFieldNumber = 6;
  655. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  656. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  657. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  658. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  659. get { return extension_; }
  660. }
  661. public const int NestedTypeFieldNumber = 3;
  662. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
  663. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  664. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  665. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
  666. get { return nestedType_; }
  667. }
  668. public const int EnumTypeFieldNumber = 4;
  669. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  670. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  671. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  672. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  673. get { return enumType_; }
  674. }
  675. public const int ExtensionRangeFieldNumber = 5;
  676. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
  677. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
  678. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
  679. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
  680. get { return extensionRange_; }
  681. }
  682. public const int OneofDeclFieldNumber = 8;
  683. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
  684. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
  685. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
  686. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
  687. get { return oneofDecl_; }
  688. }
  689. public const int OptionsFieldNumber = 7;
  690. private global::Google.Protobuf.Reflection.MessageOptions options_;
  691. internal global::Google.Protobuf.Reflection.MessageOptions Options {
  692. get { return options_; }
  693. set {
  694. pb::Freezable.CheckMutable(this);
  695. options_ = value;
  696. }
  697. }
  698. public const int ReservedRangeFieldNumber = 9;
  699. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
  700. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
  701. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
  702. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
  703. get { return reservedRange_; }
  704. }
  705. public const int ReservedNameFieldNumber = 10;
  706. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  707. = pb::FieldCodec.ForString(82);
  708. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  709. internal pbc::RepeatedField<string> ReservedName {
  710. get { return reservedName_; }
  711. }
  712. public override bool Equals(object other) {
  713. return Equals(other as DescriptorProto);
  714. }
  715. public bool Equals(DescriptorProto other) {
  716. if (ReferenceEquals(other, null)) {
  717. return false;
  718. }
  719. if (ReferenceEquals(other, this)) {
  720. return true;
  721. }
  722. if (Name != other.Name) return false;
  723. if(!field_.Equals(other.field_)) return false;
  724. if(!extension_.Equals(other.extension_)) return false;
  725. if(!nestedType_.Equals(other.nestedType_)) return false;
  726. if(!enumType_.Equals(other.enumType_)) return false;
  727. if(!extensionRange_.Equals(other.extensionRange_)) return false;
  728. if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
  729. if (!object.Equals(Options, other.Options)) return false;
  730. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  731. if(!reservedName_.Equals(other.reservedName_)) return false;
  732. return true;
  733. }
  734. public override int GetHashCode() {
  735. int hash = 1;
  736. if (Name.Length != 0) hash ^= Name.GetHashCode();
  737. hash ^= field_.GetHashCode();
  738. hash ^= extension_.GetHashCode();
  739. hash ^= nestedType_.GetHashCode();
  740. hash ^= enumType_.GetHashCode();
  741. hash ^= extensionRange_.GetHashCode();
  742. hash ^= oneofDecl_.GetHashCode();
  743. if (options_ != null) hash ^= Options.GetHashCode();
  744. hash ^= reservedRange_.GetHashCode();
  745. hash ^= reservedName_.GetHashCode();
  746. return hash;
  747. }
  748. public override string ToString() {
  749. return pb::JsonFormatter.Default.Format(this);
  750. }
  751. public void WriteTo(pb::CodedOutputStream output) {
  752. if (Name.Length != 0) {
  753. output.WriteRawTag(10);
  754. output.WriteString(Name);
  755. }
  756. field_.WriteTo(output, _repeated_field_codec);
  757. nestedType_.WriteTo(output, _repeated_nestedType_codec);
  758. enumType_.WriteTo(output, _repeated_enumType_codec);
  759. extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
  760. extension_.WriteTo(output, _repeated_extension_codec);
  761. if (options_ != null) {
  762. output.WriteRawTag(58);
  763. output.WriteMessage(Options);
  764. }
  765. oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
  766. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  767. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  768. }
  769. public int CalculateSize() {
  770. int size = 0;
  771. if (Name.Length != 0) {
  772. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  773. }
  774. size += field_.CalculateSize(_repeated_field_codec);
  775. size += extension_.CalculateSize(_repeated_extension_codec);
  776. size += nestedType_.CalculateSize(_repeated_nestedType_codec);
  777. size += enumType_.CalculateSize(_repeated_enumType_codec);
  778. size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
  779. size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
  780. if (options_ != null) {
  781. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  782. }
  783. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  784. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  785. return size;
  786. }
  787. public void MergeFrom(DescriptorProto other) {
  788. if (other == null) {
  789. return;
  790. }
  791. if (other.Name.Length != 0) {
  792. Name = other.Name;
  793. }
  794. field_.Add(other.field_);
  795. extension_.Add(other.extension_);
  796. nestedType_.Add(other.nestedType_);
  797. enumType_.Add(other.enumType_);
  798. extensionRange_.Add(other.extensionRange_);
  799. oneofDecl_.Add(other.oneofDecl_);
  800. if (other.options_ != null) {
  801. if (options_ == null) {
  802. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  803. }
  804. Options.MergeFrom(other.Options);
  805. }
  806. reservedRange_.Add(other.reservedRange_);
  807. reservedName_.Add(other.reservedName_);
  808. }
  809. public void MergeFrom(pb::CodedInputStream input) {
  810. uint tag;
  811. while (input.ReadTag(out tag)) {
  812. switch(tag) {
  813. case 0:
  814. throw pb::InvalidProtocolBufferException.InvalidTag();
  815. default:
  816. if (pb::WireFormat.IsEndGroupTag(tag)) {
  817. return;
  818. }
  819. break;
  820. case 10: {
  821. Name = input.ReadString();
  822. break;
  823. }
  824. case 18: {
  825. field_.AddEntriesFrom(input, _repeated_field_codec);
  826. break;
  827. }
  828. case 26: {
  829. nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
  830. break;
  831. }
  832. case 34: {
  833. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  834. break;
  835. }
  836. case 42: {
  837. extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
  838. break;
  839. }
  840. case 50: {
  841. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  842. break;
  843. }
  844. case 58: {
  845. if (options_ == null) {
  846. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  847. }
  848. input.ReadMessage(options_);
  849. break;
  850. }
  851. case 66: {
  852. oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
  853. break;
  854. }
  855. case 74: {
  856. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  857. break;
  858. }
  859. case 82: {
  860. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  861. break;
  862. }
  863. }
  864. }
  865. }
  866. #region Nested types
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. public static partial class Types {
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
  871. private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
  872. public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
  873. public static pbr::MessageDescriptor Descriptor {
  874. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
  875. }
  876. pbr::MessageDescriptor pb::IMessage.Descriptor {
  877. get { return Descriptor; }
  878. }
  879. private bool _frozen = false;
  880. public bool IsFrozen { get { return _frozen; } }
  881. public ExtensionRange() {
  882. OnConstruction();
  883. }
  884. partial void OnConstruction();
  885. public ExtensionRange(ExtensionRange other) : this() {
  886. start_ = other.start_;
  887. end_ = other.end_;
  888. }
  889. public ExtensionRange Clone() {
  890. return new ExtensionRange(this);
  891. }
  892. public void Freeze() {
  893. if (IsFrozen) {
  894. return;
  895. }
  896. _frozen = true;
  897. }
  898. public const int StartFieldNumber = 1;
  899. private int start_;
  900. internal int Start {
  901. get { return start_; }
  902. set {
  903. pb::Freezable.CheckMutable(this);
  904. start_ = value;
  905. }
  906. }
  907. public const int EndFieldNumber = 2;
  908. private int end_;
  909. internal int End {
  910. get { return end_; }
  911. set {
  912. pb::Freezable.CheckMutable(this);
  913. end_ = value;
  914. }
  915. }
  916. public override bool Equals(object other) {
  917. return Equals(other as ExtensionRange);
  918. }
  919. public bool Equals(ExtensionRange other) {
  920. if (ReferenceEquals(other, null)) {
  921. return false;
  922. }
  923. if (ReferenceEquals(other, this)) {
  924. return true;
  925. }
  926. if (Start != other.Start) return false;
  927. if (End != other.End) return false;
  928. return true;
  929. }
  930. public override int GetHashCode() {
  931. int hash = 1;
  932. if (Start != 0) hash ^= Start.GetHashCode();
  933. if (End != 0) hash ^= End.GetHashCode();
  934. return hash;
  935. }
  936. public override string ToString() {
  937. return pb::JsonFormatter.Default.Format(this);
  938. }
  939. public void WriteTo(pb::CodedOutputStream output) {
  940. if (Start != 0) {
  941. output.WriteRawTag(8);
  942. output.WriteInt32(Start);
  943. }
  944. if (End != 0) {
  945. output.WriteRawTag(16);
  946. output.WriteInt32(End);
  947. }
  948. }
  949. public int CalculateSize() {
  950. int size = 0;
  951. if (Start != 0) {
  952. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  953. }
  954. if (End != 0) {
  955. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  956. }
  957. return size;
  958. }
  959. public void MergeFrom(ExtensionRange other) {
  960. if (other == null) {
  961. return;
  962. }
  963. if (other.Start != 0) {
  964. Start = other.Start;
  965. }
  966. if (other.End != 0) {
  967. End = other.End;
  968. }
  969. }
  970. public void MergeFrom(pb::CodedInputStream input) {
  971. uint tag;
  972. while (input.ReadTag(out tag)) {
  973. switch(tag) {
  974. case 0:
  975. throw pb::InvalidProtocolBufferException.InvalidTag();
  976. default:
  977. if (pb::WireFormat.IsEndGroupTag(tag)) {
  978. return;
  979. }
  980. break;
  981. case 8: {
  982. Start = input.ReadInt32();
  983. break;
  984. }
  985. case 16: {
  986. End = input.ReadInt32();
  987. break;
  988. }
  989. }
  990. }
  991. }
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
  995. private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
  996. public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
  997. public static pbr::MessageDescriptor Descriptor {
  998. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
  999. }
  1000. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1001. get { return Descriptor; }
  1002. }
  1003. private bool _frozen = false;
  1004. public bool IsFrozen { get { return _frozen; } }
  1005. public ReservedRange() {
  1006. OnConstruction();
  1007. }
  1008. partial void OnConstruction();
  1009. public ReservedRange(ReservedRange other) : this() {
  1010. start_ = other.start_;
  1011. end_ = other.end_;
  1012. }
  1013. public ReservedRange Clone() {
  1014. return new ReservedRange(this);
  1015. }
  1016. public void Freeze() {
  1017. if (IsFrozen) {
  1018. return;
  1019. }
  1020. _frozen = true;
  1021. }
  1022. public const int StartFieldNumber = 1;
  1023. private int start_;
  1024. internal int Start {
  1025. get { return start_; }
  1026. set {
  1027. pb::Freezable.CheckMutable(this);
  1028. start_ = value;
  1029. }
  1030. }
  1031. public const int EndFieldNumber = 2;
  1032. private int end_;
  1033. internal int End {
  1034. get { return end_; }
  1035. set {
  1036. pb::Freezable.CheckMutable(this);
  1037. end_ = value;
  1038. }
  1039. }
  1040. public override bool Equals(object other) {
  1041. return Equals(other as ReservedRange);
  1042. }
  1043. public bool Equals(ReservedRange other) {
  1044. if (ReferenceEquals(other, null)) {
  1045. return false;
  1046. }
  1047. if (ReferenceEquals(other, this)) {
  1048. return true;
  1049. }
  1050. if (Start != other.Start) return false;
  1051. if (End != other.End) return false;
  1052. return true;
  1053. }
  1054. public override int GetHashCode() {
  1055. int hash = 1;
  1056. if (Start != 0) hash ^= Start.GetHashCode();
  1057. if (End != 0) hash ^= End.GetHashCode();
  1058. return hash;
  1059. }
  1060. public override string ToString() {
  1061. return pb::JsonFormatter.Default.Format(this);
  1062. }
  1063. public void WriteTo(pb::CodedOutputStream output) {
  1064. if (Start != 0) {
  1065. output.WriteRawTag(8);
  1066. output.WriteInt32(Start);
  1067. }
  1068. if (End != 0) {
  1069. output.WriteRawTag(16);
  1070. output.WriteInt32(End);
  1071. }
  1072. }
  1073. public int CalculateSize() {
  1074. int size = 0;
  1075. if (Start != 0) {
  1076. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1077. }
  1078. if (End != 0) {
  1079. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1080. }
  1081. return size;
  1082. }
  1083. public void MergeFrom(ReservedRange other) {
  1084. if (other == null) {
  1085. return;
  1086. }
  1087. if (other.Start != 0) {
  1088. Start = other.Start;
  1089. }
  1090. if (other.End != 0) {
  1091. End = other.End;
  1092. }
  1093. }
  1094. public void MergeFrom(pb::CodedInputStream input) {
  1095. uint tag;
  1096. while (input.ReadTag(out tag)) {
  1097. switch(tag) {
  1098. case 0:
  1099. throw pb::InvalidProtocolBufferException.InvalidTag();
  1100. default:
  1101. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1102. return;
  1103. }
  1104. break;
  1105. case 8: {
  1106. Start = input.ReadInt32();
  1107. break;
  1108. }
  1109. case 16: {
  1110. End = input.ReadInt32();
  1111. break;
  1112. }
  1113. }
  1114. }
  1115. }
  1116. }
  1117. }
  1118. #endregion
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
  1122. private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
  1123. public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
  1124. public static pbr::MessageDescriptor Descriptor {
  1125. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[3]; }
  1126. }
  1127. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1128. get { return Descriptor; }
  1129. }
  1130. private bool _frozen = false;
  1131. public bool IsFrozen { get { return _frozen; } }
  1132. public FieldDescriptorProto() {
  1133. OnConstruction();
  1134. }
  1135. partial void OnConstruction();
  1136. public FieldDescriptorProto(FieldDescriptorProto other) : this() {
  1137. name_ = other.name_;
  1138. number_ = other.number_;
  1139. label_ = other.label_;
  1140. type_ = other.type_;
  1141. typeName_ = other.typeName_;
  1142. extendee_ = other.extendee_;
  1143. defaultValue_ = other.defaultValue_;
  1144. oneofIndex_ = other.oneofIndex_;
  1145. Options = other.options_ != null ? other.Options.Clone() : null;
  1146. }
  1147. public FieldDescriptorProto Clone() {
  1148. return new FieldDescriptorProto(this);
  1149. }
  1150. public void Freeze() {
  1151. if (IsFrozen) {
  1152. return;
  1153. }
  1154. _frozen = true;
  1155. if (options_ != null) Options.Freeze();
  1156. }
  1157. public const int NameFieldNumber = 1;
  1158. private string name_ = "";
  1159. internal string Name {
  1160. get { return name_; }
  1161. set {
  1162. pb::Freezable.CheckMutable(this);
  1163. name_ = value ?? "";
  1164. }
  1165. }
  1166. public const int NumberFieldNumber = 3;
  1167. private int number_;
  1168. internal int Number {
  1169. get { return number_; }
  1170. set {
  1171. pb::Freezable.CheckMutable(this);
  1172. number_ = value;
  1173. }
  1174. }
  1175. public const int LabelFieldNumber = 4;
  1176. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  1177. internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
  1178. get { return label_; }
  1179. set {
  1180. pb::Freezable.CheckMutable(this);
  1181. label_ = value;
  1182. }
  1183. }
  1184. public const int TypeFieldNumber = 5;
  1185. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  1186. internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
  1187. get { return type_; }
  1188. set {
  1189. pb::Freezable.CheckMutable(this);
  1190. type_ = value;
  1191. }
  1192. }
  1193. public const int TypeNameFieldNumber = 6;
  1194. private string typeName_ = "";
  1195. internal string TypeName {
  1196. get { return typeName_; }
  1197. set {
  1198. pb::Freezable.CheckMutable(this);
  1199. typeName_ = value ?? "";
  1200. }
  1201. }
  1202. public const int ExtendeeFieldNumber = 2;
  1203. private string extendee_ = "";
  1204. internal string Extendee {
  1205. get { return extendee_; }
  1206. set {
  1207. pb::Freezable.CheckMutable(this);
  1208. extendee_ = value ?? "";
  1209. }
  1210. }
  1211. public const int DefaultValueFieldNumber = 7;
  1212. private string defaultValue_ = "";
  1213. internal string DefaultValue {
  1214. get { return defaultValue_; }
  1215. set {
  1216. pb::Freezable.CheckMutable(this);
  1217. defaultValue_ = value ?? "";
  1218. }
  1219. }
  1220. public const int OneofIndexFieldNumber = 9;
  1221. private int oneofIndex_;
  1222. internal int OneofIndex {
  1223. get { return oneofIndex_; }
  1224. set {
  1225. pb::Freezable.CheckMutable(this);
  1226. oneofIndex_ = value;
  1227. }
  1228. }
  1229. public const int OptionsFieldNumber = 8;
  1230. private global::Google.Protobuf.Reflection.FieldOptions options_;
  1231. internal global::Google.Protobuf.Reflection.FieldOptions Options {
  1232. get { return options_; }
  1233. set {
  1234. pb::Freezable.CheckMutable(this);
  1235. options_ = value;
  1236. }
  1237. }
  1238. public override bool Equals(object other) {
  1239. return Equals(other as FieldDescriptorProto);
  1240. }
  1241. public bool Equals(FieldDescriptorProto other) {
  1242. if (ReferenceEquals(other, null)) {
  1243. return false;
  1244. }
  1245. if (ReferenceEquals(other, this)) {
  1246. return true;
  1247. }
  1248. if (Name != other.Name) return false;
  1249. if (Number != other.Number) return false;
  1250. if (Label != other.Label) return false;
  1251. if (Type != other.Type) return false;
  1252. if (TypeName != other.TypeName) return false;
  1253. if (Extendee != other.Extendee) return false;
  1254. if (DefaultValue != other.DefaultValue) return false;
  1255. if (OneofIndex != other.OneofIndex) return false;
  1256. if (!object.Equals(Options, other.Options)) return false;
  1257. return true;
  1258. }
  1259. public override int GetHashCode() {
  1260. int hash = 1;
  1261. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1262. if (Number != 0) hash ^= Number.GetHashCode();
  1263. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) hash ^= Label.GetHashCode();
  1264. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) hash ^= Type.GetHashCode();
  1265. if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
  1266. if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
  1267. if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
  1268. if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
  1269. if (options_ != null) hash ^= Options.GetHashCode();
  1270. return hash;
  1271. }
  1272. public override string ToString() {
  1273. return pb::JsonFormatter.Default.Format(this);
  1274. }
  1275. public void WriteTo(pb::CodedOutputStream output) {
  1276. if (Name.Length != 0) {
  1277. output.WriteRawTag(10);
  1278. output.WriteString(Name);
  1279. }
  1280. if (Extendee.Length != 0) {
  1281. output.WriteRawTag(18);
  1282. output.WriteString(Extendee);
  1283. }
  1284. if (Number != 0) {
  1285. output.WriteRawTag(24);
  1286. output.WriteInt32(Number);
  1287. }
  1288. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1289. output.WriteRawTag(32);
  1290. output.WriteEnum((int) Label);
  1291. }
  1292. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1293. output.WriteRawTag(40);
  1294. output.WriteEnum((int) Type);
  1295. }
  1296. if (TypeName.Length != 0) {
  1297. output.WriteRawTag(50);
  1298. output.WriteString(TypeName);
  1299. }
  1300. if (DefaultValue.Length != 0) {
  1301. output.WriteRawTag(58);
  1302. output.WriteString(DefaultValue);
  1303. }
  1304. if (options_ != null) {
  1305. output.WriteRawTag(66);
  1306. output.WriteMessage(Options);
  1307. }
  1308. if (OneofIndex != 0) {
  1309. output.WriteRawTag(72);
  1310. output.WriteInt32(OneofIndex);
  1311. }
  1312. }
  1313. public int CalculateSize() {
  1314. int size = 0;
  1315. if (Name.Length != 0) {
  1316. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1317. }
  1318. if (Number != 0) {
  1319. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1320. }
  1321. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1322. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
  1323. }
  1324. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1325. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  1326. }
  1327. if (TypeName.Length != 0) {
  1328. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
  1329. }
  1330. if (Extendee.Length != 0) {
  1331. size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
  1332. }
  1333. if (DefaultValue.Length != 0) {
  1334. size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
  1335. }
  1336. if (OneofIndex != 0) {
  1337. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
  1338. }
  1339. if (options_ != null) {
  1340. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1341. }
  1342. return size;
  1343. }
  1344. public void MergeFrom(FieldDescriptorProto other) {
  1345. if (other == null) {
  1346. return;
  1347. }
  1348. if (other.Name.Length != 0) {
  1349. Name = other.Name;
  1350. }
  1351. if (other.Number != 0) {
  1352. Number = other.Number;
  1353. }
  1354. if (other.Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1355. Label = other.Label;
  1356. }
  1357. if (other.Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1358. Type = other.Type;
  1359. }
  1360. if (other.TypeName.Length != 0) {
  1361. TypeName = other.TypeName;
  1362. }
  1363. if (other.Extendee.Length != 0) {
  1364. Extendee = other.Extendee;
  1365. }
  1366. if (other.DefaultValue.Length != 0) {
  1367. DefaultValue = other.DefaultValue;
  1368. }
  1369. if (other.OneofIndex != 0) {
  1370. OneofIndex = other.OneofIndex;
  1371. }
  1372. if (other.options_ != null) {
  1373. if (options_ == null) {
  1374. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1375. }
  1376. Options.MergeFrom(other.Options);
  1377. }
  1378. }
  1379. public void MergeFrom(pb::CodedInputStream input) {
  1380. uint tag;
  1381. while (input.ReadTag(out tag)) {
  1382. switch(tag) {
  1383. case 0:
  1384. throw pb::InvalidProtocolBufferException.InvalidTag();
  1385. default:
  1386. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1387. return;
  1388. }
  1389. break;
  1390. case 10: {
  1391. Name = input.ReadString();
  1392. break;
  1393. }
  1394. case 18: {
  1395. Extendee = input.ReadString();
  1396. break;
  1397. }
  1398. case 24: {
  1399. Number = input.ReadInt32();
  1400. break;
  1401. }
  1402. case 32: {
  1403. label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
  1404. break;
  1405. }
  1406. case 40: {
  1407. type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
  1408. break;
  1409. }
  1410. case 50: {
  1411. TypeName = input.ReadString();
  1412. break;
  1413. }
  1414. case 58: {
  1415. DefaultValue = input.ReadString();
  1416. break;
  1417. }
  1418. case 66: {
  1419. if (options_ == null) {
  1420. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1421. }
  1422. input.ReadMessage(options_);
  1423. break;
  1424. }
  1425. case 72: {
  1426. OneofIndex = input.ReadInt32();
  1427. break;
  1428. }
  1429. }
  1430. }
  1431. }
  1432. #region Nested types
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. public static partial class Types {
  1435. internal enum Type {
  1436. TYPE_DOUBLE = 1,
  1437. TYPE_FLOAT = 2,
  1438. TYPE_INT64 = 3,
  1439. TYPE_UINT64 = 4,
  1440. TYPE_INT32 = 5,
  1441. TYPE_FIXED64 = 6,
  1442. TYPE_FIXED32 = 7,
  1443. TYPE_BOOL = 8,
  1444. TYPE_STRING = 9,
  1445. TYPE_GROUP = 10,
  1446. TYPE_MESSAGE = 11,
  1447. TYPE_BYTES = 12,
  1448. TYPE_UINT32 = 13,
  1449. TYPE_ENUM = 14,
  1450. TYPE_SFIXED32 = 15,
  1451. TYPE_SFIXED64 = 16,
  1452. TYPE_SINT32 = 17,
  1453. TYPE_SINT64 = 18,
  1454. }
  1455. internal enum Label {
  1456. LABEL_OPTIONAL = 1,
  1457. LABEL_REQUIRED = 2,
  1458. LABEL_REPEATED = 3,
  1459. }
  1460. }
  1461. #endregion
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
  1465. private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
  1466. public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
  1467. public static pbr::MessageDescriptor Descriptor {
  1468. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[4]; }
  1469. }
  1470. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1471. get { return Descriptor; }
  1472. }
  1473. private bool _frozen = false;
  1474. public bool IsFrozen { get { return _frozen; } }
  1475. public OneofDescriptorProto() {
  1476. OnConstruction();
  1477. }
  1478. partial void OnConstruction();
  1479. public OneofDescriptorProto(OneofDescriptorProto other) : this() {
  1480. name_ = other.name_;
  1481. }
  1482. public OneofDescriptorProto Clone() {
  1483. return new OneofDescriptorProto(this);
  1484. }
  1485. public void Freeze() {
  1486. if (IsFrozen) {
  1487. return;
  1488. }
  1489. _frozen = true;
  1490. }
  1491. public const int NameFieldNumber = 1;
  1492. private string name_ = "";
  1493. internal string Name {
  1494. get { return name_; }
  1495. set {
  1496. pb::Freezable.CheckMutable(this);
  1497. name_ = value ?? "";
  1498. }
  1499. }
  1500. public override bool Equals(object other) {
  1501. return Equals(other as OneofDescriptorProto);
  1502. }
  1503. public bool Equals(OneofDescriptorProto other) {
  1504. if (ReferenceEquals(other, null)) {
  1505. return false;
  1506. }
  1507. if (ReferenceEquals(other, this)) {
  1508. return true;
  1509. }
  1510. if (Name != other.Name) return false;
  1511. return true;
  1512. }
  1513. public override int GetHashCode() {
  1514. int hash = 1;
  1515. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1516. return hash;
  1517. }
  1518. public override string ToString() {
  1519. return pb::JsonFormatter.Default.Format(this);
  1520. }
  1521. public void WriteTo(pb::CodedOutputStream output) {
  1522. if (Name.Length != 0) {
  1523. output.WriteRawTag(10);
  1524. output.WriteString(Name);
  1525. }
  1526. }
  1527. public int CalculateSize() {
  1528. int size = 0;
  1529. if (Name.Length != 0) {
  1530. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1531. }
  1532. return size;
  1533. }
  1534. public void MergeFrom(OneofDescriptorProto other) {
  1535. if (other == null) {
  1536. return;
  1537. }
  1538. if (other.Name.Length != 0) {
  1539. Name = other.Name;
  1540. }
  1541. }
  1542. public void MergeFrom(pb::CodedInputStream input) {
  1543. uint tag;
  1544. while (input.ReadTag(out tag)) {
  1545. switch(tag) {
  1546. case 0:
  1547. throw pb::InvalidProtocolBufferException.InvalidTag();
  1548. default:
  1549. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1550. return;
  1551. }
  1552. break;
  1553. case 10: {
  1554. Name = input.ReadString();
  1555. break;
  1556. }
  1557. }
  1558. }
  1559. }
  1560. }
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1562. internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
  1563. private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
  1564. public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
  1565. public static pbr::MessageDescriptor Descriptor {
  1566. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[5]; }
  1567. }
  1568. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1569. get { return Descriptor; }
  1570. }
  1571. private bool _frozen = false;
  1572. public bool IsFrozen { get { return _frozen; } }
  1573. public EnumDescriptorProto() {
  1574. OnConstruction();
  1575. }
  1576. partial void OnConstruction();
  1577. public EnumDescriptorProto(EnumDescriptorProto other) : this() {
  1578. name_ = other.name_;
  1579. value_ = other.value_.Clone();
  1580. Options = other.options_ != null ? other.Options.Clone() : null;
  1581. }
  1582. public EnumDescriptorProto Clone() {
  1583. return new EnumDescriptorProto(this);
  1584. }
  1585. public void Freeze() {
  1586. if (IsFrozen) {
  1587. return;
  1588. }
  1589. _frozen = true;
  1590. value_.Freeze();
  1591. if (options_ != null) Options.Freeze();
  1592. }
  1593. public const int NameFieldNumber = 1;
  1594. private string name_ = "";
  1595. internal string Name {
  1596. get { return name_; }
  1597. set {
  1598. pb::Freezable.CheckMutable(this);
  1599. name_ = value ?? "";
  1600. }
  1601. }
  1602. public const int ValueFieldNumber = 2;
  1603. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
  1604. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
  1605. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
  1606. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
  1607. get { return value_; }
  1608. }
  1609. public const int OptionsFieldNumber = 3;
  1610. private global::Google.Protobuf.Reflection.EnumOptions options_;
  1611. internal global::Google.Protobuf.Reflection.EnumOptions Options {
  1612. get { return options_; }
  1613. set {
  1614. pb::Freezable.CheckMutable(this);
  1615. options_ = value;
  1616. }
  1617. }
  1618. public override bool Equals(object other) {
  1619. return Equals(other as EnumDescriptorProto);
  1620. }
  1621. public bool Equals(EnumDescriptorProto other) {
  1622. if (ReferenceEquals(other, null)) {
  1623. return false;
  1624. }
  1625. if (ReferenceEquals(other, this)) {
  1626. return true;
  1627. }
  1628. if (Name != other.Name) return false;
  1629. if(!value_.Equals(other.value_)) return false;
  1630. if (!object.Equals(Options, other.Options)) return false;
  1631. return true;
  1632. }
  1633. public override int GetHashCode() {
  1634. int hash = 1;
  1635. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1636. hash ^= value_.GetHashCode();
  1637. if (options_ != null) hash ^= Options.GetHashCode();
  1638. return hash;
  1639. }
  1640. public override string ToString() {
  1641. return pb::JsonFormatter.Default.Format(this);
  1642. }
  1643. public void WriteTo(pb::CodedOutputStream output) {
  1644. if (Name.Length != 0) {
  1645. output.WriteRawTag(10);
  1646. output.WriteString(Name);
  1647. }
  1648. value_.WriteTo(output, _repeated_value_codec);
  1649. if (options_ != null) {
  1650. output.WriteRawTag(26);
  1651. output.WriteMessage(Options);
  1652. }
  1653. }
  1654. public int CalculateSize() {
  1655. int size = 0;
  1656. if (Name.Length != 0) {
  1657. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1658. }
  1659. size += value_.CalculateSize(_repeated_value_codec);
  1660. if (options_ != null) {
  1661. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1662. }
  1663. return size;
  1664. }
  1665. public void MergeFrom(EnumDescriptorProto other) {
  1666. if (other == null) {
  1667. return;
  1668. }
  1669. if (other.Name.Length != 0) {
  1670. Name = other.Name;
  1671. }
  1672. value_.Add(other.value_);
  1673. if (other.options_ != null) {
  1674. if (options_ == null) {
  1675. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1676. }
  1677. Options.MergeFrom(other.Options);
  1678. }
  1679. }
  1680. public void MergeFrom(pb::CodedInputStream input) {
  1681. uint tag;
  1682. while (input.ReadTag(out tag)) {
  1683. switch(tag) {
  1684. case 0:
  1685. throw pb::InvalidProtocolBufferException.InvalidTag();
  1686. default:
  1687. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1688. return;
  1689. }
  1690. break;
  1691. case 10: {
  1692. Name = input.ReadString();
  1693. break;
  1694. }
  1695. case 18: {
  1696. value_.AddEntriesFrom(input, _repeated_value_codec);
  1697. break;
  1698. }
  1699. case 26: {
  1700. if (options_ == null) {
  1701. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1702. }
  1703. input.ReadMessage(options_);
  1704. break;
  1705. }
  1706. }
  1707. }
  1708. }
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
  1712. private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
  1713. public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
  1714. public static pbr::MessageDescriptor Descriptor {
  1715. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[6]; }
  1716. }
  1717. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1718. get { return Descriptor; }
  1719. }
  1720. private bool _frozen = false;
  1721. public bool IsFrozen { get { return _frozen; } }
  1722. public EnumValueDescriptorProto() {
  1723. OnConstruction();
  1724. }
  1725. partial void OnConstruction();
  1726. public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
  1727. name_ = other.name_;
  1728. number_ = other.number_;
  1729. Options = other.options_ != null ? other.Options.Clone() : null;
  1730. }
  1731. public EnumValueDescriptorProto Clone() {
  1732. return new EnumValueDescriptorProto(this);
  1733. }
  1734. public void Freeze() {
  1735. if (IsFrozen) {
  1736. return;
  1737. }
  1738. _frozen = true;
  1739. if (options_ != null) Options.Freeze();
  1740. }
  1741. public const int NameFieldNumber = 1;
  1742. private string name_ = "";
  1743. internal string Name {
  1744. get { return name_; }
  1745. set {
  1746. pb::Freezable.CheckMutable(this);
  1747. name_ = value ?? "";
  1748. }
  1749. }
  1750. public const int NumberFieldNumber = 2;
  1751. private int number_;
  1752. internal int Number {
  1753. get { return number_; }
  1754. set {
  1755. pb::Freezable.CheckMutable(this);
  1756. number_ = value;
  1757. }
  1758. }
  1759. public const int OptionsFieldNumber = 3;
  1760. private global::Google.Protobuf.Reflection.EnumValueOptions options_;
  1761. internal global::Google.Protobuf.Reflection.EnumValueOptions Options {
  1762. get { return options_; }
  1763. set {
  1764. pb::Freezable.CheckMutable(this);
  1765. options_ = value;
  1766. }
  1767. }
  1768. public override bool Equals(object other) {
  1769. return Equals(other as EnumValueDescriptorProto);
  1770. }
  1771. public bool Equals(EnumValueDescriptorProto other) {
  1772. if (ReferenceEquals(other, null)) {
  1773. return false;
  1774. }
  1775. if (ReferenceEquals(other, this)) {
  1776. return true;
  1777. }
  1778. if (Name != other.Name) return false;
  1779. if (Number != other.Number) return false;
  1780. if (!object.Equals(Options, other.Options)) return false;
  1781. return true;
  1782. }
  1783. public override int GetHashCode() {
  1784. int hash = 1;
  1785. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1786. if (Number != 0) hash ^= Number.GetHashCode();
  1787. if (options_ != null) hash ^= Options.GetHashCode();
  1788. return hash;
  1789. }
  1790. public override string ToString() {
  1791. return pb::JsonFormatter.Default.Format(this);
  1792. }
  1793. public void WriteTo(pb::CodedOutputStream output) {
  1794. if (Name.Length != 0) {
  1795. output.WriteRawTag(10);
  1796. output.WriteString(Name);
  1797. }
  1798. if (Number != 0) {
  1799. output.WriteRawTag(16);
  1800. output.WriteInt32(Number);
  1801. }
  1802. if (options_ != null) {
  1803. output.WriteRawTag(26);
  1804. output.WriteMessage(Options);
  1805. }
  1806. }
  1807. public int CalculateSize() {
  1808. int size = 0;
  1809. if (Name.Length != 0) {
  1810. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1811. }
  1812. if (Number != 0) {
  1813. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1814. }
  1815. if (options_ != null) {
  1816. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1817. }
  1818. return size;
  1819. }
  1820. public void MergeFrom(EnumValueDescriptorProto other) {
  1821. if (other == null) {
  1822. return;
  1823. }
  1824. if (other.Name.Length != 0) {
  1825. Name = other.Name;
  1826. }
  1827. if (other.Number != 0) {
  1828. Number = other.Number;
  1829. }
  1830. if (other.options_ != null) {
  1831. if (options_ == null) {
  1832. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1833. }
  1834. Options.MergeFrom(other.Options);
  1835. }
  1836. }
  1837. public void MergeFrom(pb::CodedInputStream input) {
  1838. uint tag;
  1839. while (input.ReadTag(out tag)) {
  1840. switch(tag) {
  1841. case 0:
  1842. throw pb::InvalidProtocolBufferException.InvalidTag();
  1843. default:
  1844. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1845. return;
  1846. }
  1847. break;
  1848. case 10: {
  1849. Name = input.ReadString();
  1850. break;
  1851. }
  1852. case 16: {
  1853. Number = input.ReadInt32();
  1854. break;
  1855. }
  1856. case 26: {
  1857. if (options_ == null) {
  1858. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1859. }
  1860. input.ReadMessage(options_);
  1861. break;
  1862. }
  1863. }
  1864. }
  1865. }
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
  1869. private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
  1870. public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
  1871. public static pbr::MessageDescriptor Descriptor {
  1872. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[7]; }
  1873. }
  1874. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1875. get { return Descriptor; }
  1876. }
  1877. private bool _frozen = false;
  1878. public bool IsFrozen { get { return _frozen; } }
  1879. public ServiceDescriptorProto() {
  1880. OnConstruction();
  1881. }
  1882. partial void OnConstruction();
  1883. public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
  1884. name_ = other.name_;
  1885. method_ = other.method_.Clone();
  1886. Options = other.options_ != null ? other.Options.Clone() : null;
  1887. }
  1888. public ServiceDescriptorProto Clone() {
  1889. return new ServiceDescriptorProto(this);
  1890. }
  1891. public void Freeze() {
  1892. if (IsFrozen) {
  1893. return;
  1894. }
  1895. _frozen = true;
  1896. method_.Freeze();
  1897. if (options_ != null) Options.Freeze();
  1898. }
  1899. public const int NameFieldNumber = 1;
  1900. private string name_ = "";
  1901. internal string Name {
  1902. get { return name_; }
  1903. set {
  1904. pb::Freezable.CheckMutable(this);
  1905. name_ = value ?? "";
  1906. }
  1907. }
  1908. public const int MethodFieldNumber = 2;
  1909. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
  1910. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
  1911. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
  1912. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
  1913. get { return method_; }
  1914. }
  1915. public const int OptionsFieldNumber = 3;
  1916. private global::Google.Protobuf.Reflection.ServiceOptions options_;
  1917. internal global::Google.Protobuf.Reflection.ServiceOptions Options {
  1918. get { return options_; }
  1919. set {
  1920. pb::Freezable.CheckMutable(this);
  1921. options_ = value;
  1922. }
  1923. }
  1924. public override bool Equals(object other) {
  1925. return Equals(other as ServiceDescriptorProto);
  1926. }
  1927. public bool Equals(ServiceDescriptorProto other) {
  1928. if (ReferenceEquals(other, null)) {
  1929. return false;
  1930. }
  1931. if (ReferenceEquals(other, this)) {
  1932. return true;
  1933. }
  1934. if (Name != other.Name) return false;
  1935. if(!method_.Equals(other.method_)) return false;
  1936. if (!object.Equals(Options, other.Options)) return false;
  1937. return true;
  1938. }
  1939. public override int GetHashCode() {
  1940. int hash = 1;
  1941. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1942. hash ^= method_.GetHashCode();
  1943. if (options_ != null) hash ^= Options.GetHashCode();
  1944. return hash;
  1945. }
  1946. public override string ToString() {
  1947. return pb::JsonFormatter.Default.Format(this);
  1948. }
  1949. public void WriteTo(pb::CodedOutputStream output) {
  1950. if (Name.Length != 0) {
  1951. output.WriteRawTag(10);
  1952. output.WriteString(Name);
  1953. }
  1954. method_.WriteTo(output, _repeated_method_codec);
  1955. if (options_ != null) {
  1956. output.WriteRawTag(26);
  1957. output.WriteMessage(Options);
  1958. }
  1959. }
  1960. public int CalculateSize() {
  1961. int size = 0;
  1962. if (Name.Length != 0) {
  1963. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1964. }
  1965. size += method_.CalculateSize(_repeated_method_codec);
  1966. if (options_ != null) {
  1967. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1968. }
  1969. return size;
  1970. }
  1971. public void MergeFrom(ServiceDescriptorProto other) {
  1972. if (other == null) {
  1973. return;
  1974. }
  1975. if (other.Name.Length != 0) {
  1976. Name = other.Name;
  1977. }
  1978. method_.Add(other.method_);
  1979. if (other.options_ != null) {
  1980. if (options_ == null) {
  1981. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  1982. }
  1983. Options.MergeFrom(other.Options);
  1984. }
  1985. }
  1986. public void MergeFrom(pb::CodedInputStream input) {
  1987. uint tag;
  1988. while (input.ReadTag(out tag)) {
  1989. switch(tag) {
  1990. case 0:
  1991. throw pb::InvalidProtocolBufferException.InvalidTag();
  1992. default:
  1993. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1994. return;
  1995. }
  1996. break;
  1997. case 10: {
  1998. Name = input.ReadString();
  1999. break;
  2000. }
  2001. case 18: {
  2002. method_.AddEntriesFrom(input, _repeated_method_codec);
  2003. break;
  2004. }
  2005. case 26: {
  2006. if (options_ == null) {
  2007. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  2008. }
  2009. input.ReadMessage(options_);
  2010. break;
  2011. }
  2012. }
  2013. }
  2014. }
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
  2018. private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
  2019. public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
  2020. public static pbr::MessageDescriptor Descriptor {
  2021. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[8]; }
  2022. }
  2023. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2024. get { return Descriptor; }
  2025. }
  2026. private bool _frozen = false;
  2027. public bool IsFrozen { get { return _frozen; } }
  2028. public MethodDescriptorProto() {
  2029. OnConstruction();
  2030. }
  2031. partial void OnConstruction();
  2032. public MethodDescriptorProto(MethodDescriptorProto other) : this() {
  2033. name_ = other.name_;
  2034. inputType_ = other.inputType_;
  2035. outputType_ = other.outputType_;
  2036. Options = other.options_ != null ? other.Options.Clone() : null;
  2037. clientStreaming_ = other.clientStreaming_;
  2038. serverStreaming_ = other.serverStreaming_;
  2039. }
  2040. public MethodDescriptorProto Clone() {
  2041. return new MethodDescriptorProto(this);
  2042. }
  2043. public void Freeze() {
  2044. if (IsFrozen) {
  2045. return;
  2046. }
  2047. _frozen = true;
  2048. if (options_ != null) Options.Freeze();
  2049. }
  2050. public const int NameFieldNumber = 1;
  2051. private string name_ = "";
  2052. internal string Name {
  2053. get { return name_; }
  2054. set {
  2055. pb::Freezable.CheckMutable(this);
  2056. name_ = value ?? "";
  2057. }
  2058. }
  2059. public const int InputTypeFieldNumber = 2;
  2060. private string inputType_ = "";
  2061. internal string InputType {
  2062. get { return inputType_; }
  2063. set {
  2064. pb::Freezable.CheckMutable(this);
  2065. inputType_ = value ?? "";
  2066. }
  2067. }
  2068. public const int OutputTypeFieldNumber = 3;
  2069. private string outputType_ = "";
  2070. internal string OutputType {
  2071. get { return outputType_; }
  2072. set {
  2073. pb::Freezable.CheckMutable(this);
  2074. outputType_ = value ?? "";
  2075. }
  2076. }
  2077. public const int OptionsFieldNumber = 4;
  2078. private global::Google.Protobuf.Reflection.MethodOptions options_;
  2079. internal global::Google.Protobuf.Reflection.MethodOptions Options {
  2080. get { return options_; }
  2081. set {
  2082. pb::Freezable.CheckMutable(this);
  2083. options_ = value;
  2084. }
  2085. }
  2086. public const int ClientStreamingFieldNumber = 5;
  2087. private bool clientStreaming_;
  2088. internal bool ClientStreaming {
  2089. get { return clientStreaming_; }
  2090. set {
  2091. pb::Freezable.CheckMutable(this);
  2092. clientStreaming_ = value;
  2093. }
  2094. }
  2095. public const int ServerStreamingFieldNumber = 6;
  2096. private bool serverStreaming_;
  2097. internal bool ServerStreaming {
  2098. get { return serverStreaming_; }
  2099. set {
  2100. pb::Freezable.CheckMutable(this);
  2101. serverStreaming_ = value;
  2102. }
  2103. }
  2104. public override bool Equals(object other) {
  2105. return Equals(other as MethodDescriptorProto);
  2106. }
  2107. public bool Equals(MethodDescriptorProto other) {
  2108. if (ReferenceEquals(other, null)) {
  2109. return false;
  2110. }
  2111. if (ReferenceEquals(other, this)) {
  2112. return true;
  2113. }
  2114. if (Name != other.Name) return false;
  2115. if (InputType != other.InputType) return false;
  2116. if (OutputType != other.OutputType) return false;
  2117. if (!object.Equals(Options, other.Options)) return false;
  2118. if (ClientStreaming != other.ClientStreaming) return false;
  2119. if (ServerStreaming != other.ServerStreaming) return false;
  2120. return true;
  2121. }
  2122. public override int GetHashCode() {
  2123. int hash = 1;
  2124. if (Name.Length != 0) hash ^= Name.GetHashCode();
  2125. if (InputType.Length != 0) hash ^= InputType.GetHashCode();
  2126. if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
  2127. if (options_ != null) hash ^= Options.GetHashCode();
  2128. if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
  2129. if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
  2130. return hash;
  2131. }
  2132. public override string ToString() {
  2133. return pb::JsonFormatter.Default.Format(this);
  2134. }
  2135. public void WriteTo(pb::CodedOutputStream output) {
  2136. if (Name.Length != 0) {
  2137. output.WriteRawTag(10);
  2138. output.WriteString(Name);
  2139. }
  2140. if (InputType.Length != 0) {
  2141. output.WriteRawTag(18);
  2142. output.WriteString(InputType);
  2143. }
  2144. if (OutputType.Length != 0) {
  2145. output.WriteRawTag(26);
  2146. output.WriteString(OutputType);
  2147. }
  2148. if (options_ != null) {
  2149. output.WriteRawTag(34);
  2150. output.WriteMessage(Options);
  2151. }
  2152. if (ClientStreaming != false) {
  2153. output.WriteRawTag(40);
  2154. output.WriteBool(ClientStreaming);
  2155. }
  2156. if (ServerStreaming != false) {
  2157. output.WriteRawTag(48);
  2158. output.WriteBool(ServerStreaming);
  2159. }
  2160. }
  2161. public int CalculateSize() {
  2162. int size = 0;
  2163. if (Name.Length != 0) {
  2164. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2165. }
  2166. if (InputType.Length != 0) {
  2167. size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
  2168. }
  2169. if (OutputType.Length != 0) {
  2170. size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
  2171. }
  2172. if (options_ != null) {
  2173. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2174. }
  2175. if (ClientStreaming != false) {
  2176. size += 1 + 1;
  2177. }
  2178. if (ServerStreaming != false) {
  2179. size += 1 + 1;
  2180. }
  2181. return size;
  2182. }
  2183. public void MergeFrom(MethodDescriptorProto other) {
  2184. if (other == null) {
  2185. return;
  2186. }
  2187. if (other.Name.Length != 0) {
  2188. Name = other.Name;
  2189. }
  2190. if (other.InputType.Length != 0) {
  2191. InputType = other.InputType;
  2192. }
  2193. if (other.OutputType.Length != 0) {
  2194. OutputType = other.OutputType;
  2195. }
  2196. if (other.options_ != null) {
  2197. if (options_ == null) {
  2198. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2199. }
  2200. Options.MergeFrom(other.Options);
  2201. }
  2202. if (other.ClientStreaming != false) {
  2203. ClientStreaming = other.ClientStreaming;
  2204. }
  2205. if (other.ServerStreaming != false) {
  2206. ServerStreaming = other.ServerStreaming;
  2207. }
  2208. }
  2209. public void MergeFrom(pb::CodedInputStream input) {
  2210. uint tag;
  2211. while (input.ReadTag(out tag)) {
  2212. switch(tag) {
  2213. case 0:
  2214. throw pb::InvalidProtocolBufferException.InvalidTag();
  2215. default:
  2216. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2217. return;
  2218. }
  2219. break;
  2220. case 10: {
  2221. Name = input.ReadString();
  2222. break;
  2223. }
  2224. case 18: {
  2225. InputType = input.ReadString();
  2226. break;
  2227. }
  2228. case 26: {
  2229. OutputType = input.ReadString();
  2230. break;
  2231. }
  2232. case 34: {
  2233. if (options_ == null) {
  2234. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2235. }
  2236. input.ReadMessage(options_);
  2237. break;
  2238. }
  2239. case 40: {
  2240. ClientStreaming = input.ReadBool();
  2241. break;
  2242. }
  2243. case 48: {
  2244. ServerStreaming = input.ReadBool();
  2245. break;
  2246. }
  2247. }
  2248. }
  2249. }
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
  2253. private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
  2254. public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
  2255. public static pbr::MessageDescriptor Descriptor {
  2256. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[9]; }
  2257. }
  2258. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2259. get { return Descriptor; }
  2260. }
  2261. private bool _frozen = false;
  2262. public bool IsFrozen { get { return _frozen; } }
  2263. public FileOptions() {
  2264. OnConstruction();
  2265. }
  2266. partial void OnConstruction();
  2267. public FileOptions(FileOptions other) : this() {
  2268. javaPackage_ = other.javaPackage_;
  2269. javaOuterClassname_ = other.javaOuterClassname_;
  2270. javaMultipleFiles_ = other.javaMultipleFiles_;
  2271. javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
  2272. javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
  2273. optimizeFor_ = other.optimizeFor_;
  2274. goPackage_ = other.goPackage_;
  2275. ccGenericServices_ = other.ccGenericServices_;
  2276. javaGenericServices_ = other.javaGenericServices_;
  2277. pyGenericServices_ = other.pyGenericServices_;
  2278. deprecated_ = other.deprecated_;
  2279. ccEnableArenas_ = other.ccEnableArenas_;
  2280. objcClassPrefix_ = other.objcClassPrefix_;
  2281. csharpNamespace_ = other.csharpNamespace_;
  2282. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2283. }
  2284. public FileOptions Clone() {
  2285. return new FileOptions(this);
  2286. }
  2287. public void Freeze() {
  2288. if (IsFrozen) {
  2289. return;
  2290. }
  2291. _frozen = true;
  2292. uninterpretedOption_.Freeze();
  2293. }
  2294. public const int JavaPackageFieldNumber = 1;
  2295. private string javaPackage_ = "";
  2296. internal string JavaPackage {
  2297. get { return javaPackage_; }
  2298. set {
  2299. pb::Freezable.CheckMutable(this);
  2300. javaPackage_ = value ?? "";
  2301. }
  2302. }
  2303. public const int JavaOuterClassnameFieldNumber = 8;
  2304. private string javaOuterClassname_ = "";
  2305. internal string JavaOuterClassname {
  2306. get { return javaOuterClassname_; }
  2307. set {
  2308. pb::Freezable.CheckMutable(this);
  2309. javaOuterClassname_ = value ?? "";
  2310. }
  2311. }
  2312. public const int JavaMultipleFilesFieldNumber = 10;
  2313. private bool javaMultipleFiles_;
  2314. internal bool JavaMultipleFiles {
  2315. get { return javaMultipleFiles_; }
  2316. set {
  2317. pb::Freezable.CheckMutable(this);
  2318. javaMultipleFiles_ = value;
  2319. }
  2320. }
  2321. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  2322. private bool javaGenerateEqualsAndHash_;
  2323. internal bool JavaGenerateEqualsAndHash {
  2324. get { return javaGenerateEqualsAndHash_; }
  2325. set {
  2326. pb::Freezable.CheckMutable(this);
  2327. javaGenerateEqualsAndHash_ = value;
  2328. }
  2329. }
  2330. public const int JavaStringCheckUtf8FieldNumber = 27;
  2331. private bool javaStringCheckUtf8_;
  2332. internal bool JavaStringCheckUtf8 {
  2333. get { return javaStringCheckUtf8_; }
  2334. set {
  2335. pb::Freezable.CheckMutable(this);
  2336. javaStringCheckUtf8_ = value;
  2337. }
  2338. }
  2339. public const int OptimizeForFieldNumber = 9;
  2340. private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED;
  2341. internal global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
  2342. get { return optimizeFor_; }
  2343. set {
  2344. pb::Freezable.CheckMutable(this);
  2345. optimizeFor_ = value;
  2346. }
  2347. }
  2348. public const int GoPackageFieldNumber = 11;
  2349. private string goPackage_ = "";
  2350. internal string GoPackage {
  2351. get { return goPackage_; }
  2352. set {
  2353. pb::Freezable.CheckMutable(this);
  2354. goPackage_ = value ?? "";
  2355. }
  2356. }
  2357. public const int CcGenericServicesFieldNumber = 16;
  2358. private bool ccGenericServices_;
  2359. internal bool CcGenericServices {
  2360. get { return ccGenericServices_; }
  2361. set {
  2362. pb::Freezable.CheckMutable(this);
  2363. ccGenericServices_ = value;
  2364. }
  2365. }
  2366. public const int JavaGenericServicesFieldNumber = 17;
  2367. private bool javaGenericServices_;
  2368. internal bool JavaGenericServices {
  2369. get { return javaGenericServices_; }
  2370. set {
  2371. pb::Freezable.CheckMutable(this);
  2372. javaGenericServices_ = value;
  2373. }
  2374. }
  2375. public const int PyGenericServicesFieldNumber = 18;
  2376. private bool pyGenericServices_;
  2377. internal bool PyGenericServices {
  2378. get { return pyGenericServices_; }
  2379. set {
  2380. pb::Freezable.CheckMutable(this);
  2381. pyGenericServices_ = value;
  2382. }
  2383. }
  2384. public const int DeprecatedFieldNumber = 23;
  2385. private bool deprecated_;
  2386. internal bool Deprecated {
  2387. get { return deprecated_; }
  2388. set {
  2389. pb::Freezable.CheckMutable(this);
  2390. deprecated_ = value;
  2391. }
  2392. }
  2393. public const int CcEnableArenasFieldNumber = 31;
  2394. private bool ccEnableArenas_;
  2395. internal bool CcEnableArenas {
  2396. get { return ccEnableArenas_; }
  2397. set {
  2398. pb::Freezable.CheckMutable(this);
  2399. ccEnableArenas_ = value;
  2400. }
  2401. }
  2402. public const int ObjcClassPrefixFieldNumber = 36;
  2403. private string objcClassPrefix_ = "";
  2404. internal string ObjcClassPrefix {
  2405. get { return objcClassPrefix_; }
  2406. set {
  2407. pb::Freezable.CheckMutable(this);
  2408. objcClassPrefix_ = value ?? "";
  2409. }
  2410. }
  2411. public const int CsharpNamespaceFieldNumber = 37;
  2412. private string csharpNamespace_ = "";
  2413. internal string CsharpNamespace {
  2414. get { return csharpNamespace_; }
  2415. set {
  2416. pb::Freezable.CheckMutable(this);
  2417. csharpNamespace_ = value ?? "";
  2418. }
  2419. }
  2420. public const int UninterpretedOptionFieldNumber = 999;
  2421. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2422. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2423. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2424. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2425. get { return uninterpretedOption_; }
  2426. }
  2427. public override bool Equals(object other) {
  2428. return Equals(other as FileOptions);
  2429. }
  2430. public bool Equals(FileOptions other) {
  2431. if (ReferenceEquals(other, null)) {
  2432. return false;
  2433. }
  2434. if (ReferenceEquals(other, this)) {
  2435. return true;
  2436. }
  2437. if (JavaPackage != other.JavaPackage) return false;
  2438. if (JavaOuterClassname != other.JavaOuterClassname) return false;
  2439. if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
  2440. if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
  2441. if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
  2442. if (OptimizeFor != other.OptimizeFor) return false;
  2443. if (GoPackage != other.GoPackage) return false;
  2444. if (CcGenericServices != other.CcGenericServices) return false;
  2445. if (JavaGenericServices != other.JavaGenericServices) return false;
  2446. if (PyGenericServices != other.PyGenericServices) return false;
  2447. if (Deprecated != other.Deprecated) return false;
  2448. if (CcEnableArenas != other.CcEnableArenas) return false;
  2449. if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
  2450. if (CsharpNamespace != other.CsharpNamespace) return false;
  2451. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2452. return true;
  2453. }
  2454. public override int GetHashCode() {
  2455. int hash = 1;
  2456. if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
  2457. if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
  2458. if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
  2459. if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
  2460. if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
  2461. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) hash ^= OptimizeFor.GetHashCode();
  2462. if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
  2463. if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
  2464. if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode();
  2465. if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
  2466. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2467. if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
  2468. if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
  2469. if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
  2470. hash ^= uninterpretedOption_.GetHashCode();
  2471. return hash;
  2472. }
  2473. public override string ToString() {
  2474. return pb::JsonFormatter.Default.Format(this);
  2475. }
  2476. public void WriteTo(pb::CodedOutputStream output) {
  2477. if (JavaPackage.Length != 0) {
  2478. output.WriteRawTag(10);
  2479. output.WriteString(JavaPackage);
  2480. }
  2481. if (JavaOuterClassname.Length != 0) {
  2482. output.WriteRawTag(66);
  2483. output.WriteString(JavaOuterClassname);
  2484. }
  2485. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2486. output.WriteRawTag(72);
  2487. output.WriteEnum((int) OptimizeFor);
  2488. }
  2489. if (JavaMultipleFiles != false) {
  2490. output.WriteRawTag(80);
  2491. output.WriteBool(JavaMultipleFiles);
  2492. }
  2493. if (GoPackage.Length != 0) {
  2494. output.WriteRawTag(90);
  2495. output.WriteString(GoPackage);
  2496. }
  2497. if (CcGenericServices != false) {
  2498. output.WriteRawTag(128, 1);
  2499. output.WriteBool(CcGenericServices);
  2500. }
  2501. if (JavaGenericServices != false) {
  2502. output.WriteRawTag(136, 1);
  2503. output.WriteBool(JavaGenericServices);
  2504. }
  2505. if (PyGenericServices != false) {
  2506. output.WriteRawTag(144, 1);
  2507. output.WriteBool(PyGenericServices);
  2508. }
  2509. if (JavaGenerateEqualsAndHash != false) {
  2510. output.WriteRawTag(160, 1);
  2511. output.WriteBool(JavaGenerateEqualsAndHash);
  2512. }
  2513. if (Deprecated != false) {
  2514. output.WriteRawTag(184, 1);
  2515. output.WriteBool(Deprecated);
  2516. }
  2517. if (JavaStringCheckUtf8 != false) {
  2518. output.WriteRawTag(216, 1);
  2519. output.WriteBool(JavaStringCheckUtf8);
  2520. }
  2521. if (CcEnableArenas != false) {
  2522. output.WriteRawTag(248, 1);
  2523. output.WriteBool(CcEnableArenas);
  2524. }
  2525. if (ObjcClassPrefix.Length != 0) {
  2526. output.WriteRawTag(162, 2);
  2527. output.WriteString(ObjcClassPrefix);
  2528. }
  2529. if (CsharpNamespace.Length != 0) {
  2530. output.WriteRawTag(170, 2);
  2531. output.WriteString(CsharpNamespace);
  2532. }
  2533. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2534. }
  2535. public int CalculateSize() {
  2536. int size = 0;
  2537. if (JavaPackage.Length != 0) {
  2538. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
  2539. }
  2540. if (JavaOuterClassname.Length != 0) {
  2541. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
  2542. }
  2543. if (JavaMultipleFiles != false) {
  2544. size += 1 + 1;
  2545. }
  2546. if (JavaGenerateEqualsAndHash != false) {
  2547. size += 2 + 1;
  2548. }
  2549. if (JavaStringCheckUtf8 != false) {
  2550. size += 2 + 1;
  2551. }
  2552. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2553. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
  2554. }
  2555. if (GoPackage.Length != 0) {
  2556. size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
  2557. }
  2558. if (CcGenericServices != false) {
  2559. size += 2 + 1;
  2560. }
  2561. if (JavaGenericServices != false) {
  2562. size += 2 + 1;
  2563. }
  2564. if (PyGenericServices != false) {
  2565. size += 2 + 1;
  2566. }
  2567. if (Deprecated != false) {
  2568. size += 2 + 1;
  2569. }
  2570. if (CcEnableArenas != false) {
  2571. size += 2 + 1;
  2572. }
  2573. if (ObjcClassPrefix.Length != 0) {
  2574. size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
  2575. }
  2576. if (CsharpNamespace.Length != 0) {
  2577. size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
  2578. }
  2579. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2580. return size;
  2581. }
  2582. public void MergeFrom(FileOptions other) {
  2583. if (other == null) {
  2584. return;
  2585. }
  2586. if (other.JavaPackage.Length != 0) {
  2587. JavaPackage = other.JavaPackage;
  2588. }
  2589. if (other.JavaOuterClassname.Length != 0) {
  2590. JavaOuterClassname = other.JavaOuterClassname;
  2591. }
  2592. if (other.JavaMultipleFiles != false) {
  2593. JavaMultipleFiles = other.JavaMultipleFiles;
  2594. }
  2595. if (other.JavaGenerateEqualsAndHash != false) {
  2596. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  2597. }
  2598. if (other.JavaStringCheckUtf8 != false) {
  2599. JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
  2600. }
  2601. if (other.OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2602. OptimizeFor = other.OptimizeFor;
  2603. }
  2604. if (other.GoPackage.Length != 0) {
  2605. GoPackage = other.GoPackage;
  2606. }
  2607. if (other.CcGenericServices != false) {
  2608. CcGenericServices = other.CcGenericServices;
  2609. }
  2610. if (other.JavaGenericServices != false) {
  2611. JavaGenericServices = other.JavaGenericServices;
  2612. }
  2613. if (other.PyGenericServices != false) {
  2614. PyGenericServices = other.PyGenericServices;
  2615. }
  2616. if (other.Deprecated != false) {
  2617. Deprecated = other.Deprecated;
  2618. }
  2619. if (other.CcEnableArenas != false) {
  2620. CcEnableArenas = other.CcEnableArenas;
  2621. }
  2622. if (other.ObjcClassPrefix.Length != 0) {
  2623. ObjcClassPrefix = other.ObjcClassPrefix;
  2624. }
  2625. if (other.CsharpNamespace.Length != 0) {
  2626. CsharpNamespace = other.CsharpNamespace;
  2627. }
  2628. uninterpretedOption_.Add(other.uninterpretedOption_);
  2629. }
  2630. public void MergeFrom(pb::CodedInputStream input) {
  2631. uint tag;
  2632. while (input.ReadTag(out tag)) {
  2633. switch(tag) {
  2634. case 0:
  2635. throw pb::InvalidProtocolBufferException.InvalidTag();
  2636. default:
  2637. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2638. return;
  2639. }
  2640. break;
  2641. case 10: {
  2642. JavaPackage = input.ReadString();
  2643. break;
  2644. }
  2645. case 66: {
  2646. JavaOuterClassname = input.ReadString();
  2647. break;
  2648. }
  2649. case 72: {
  2650. optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
  2651. break;
  2652. }
  2653. case 80: {
  2654. JavaMultipleFiles = input.ReadBool();
  2655. break;
  2656. }
  2657. case 90: {
  2658. GoPackage = input.ReadString();
  2659. break;
  2660. }
  2661. case 128: {
  2662. CcGenericServices = input.ReadBool();
  2663. break;
  2664. }
  2665. case 136: {
  2666. JavaGenericServices = input.ReadBool();
  2667. break;
  2668. }
  2669. case 144: {
  2670. PyGenericServices = input.ReadBool();
  2671. break;
  2672. }
  2673. case 160: {
  2674. JavaGenerateEqualsAndHash = input.ReadBool();
  2675. break;
  2676. }
  2677. case 184: {
  2678. Deprecated = input.ReadBool();
  2679. break;
  2680. }
  2681. case 216: {
  2682. JavaStringCheckUtf8 = input.ReadBool();
  2683. break;
  2684. }
  2685. case 248: {
  2686. CcEnableArenas = input.ReadBool();
  2687. break;
  2688. }
  2689. case 290: {
  2690. ObjcClassPrefix = input.ReadString();
  2691. break;
  2692. }
  2693. case 298: {
  2694. CsharpNamespace = input.ReadString();
  2695. break;
  2696. }
  2697. case 7994: {
  2698. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2699. break;
  2700. }
  2701. }
  2702. }
  2703. }
  2704. #region Nested types
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2706. public static partial class Types {
  2707. internal enum OptimizeMode {
  2708. SPEED = 1,
  2709. CODE_SIZE = 2,
  2710. LITE_RUNTIME = 3,
  2711. }
  2712. }
  2713. #endregion
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
  2717. private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
  2718. public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
  2719. public static pbr::MessageDescriptor Descriptor {
  2720. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[10]; }
  2721. }
  2722. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2723. get { return Descriptor; }
  2724. }
  2725. private bool _frozen = false;
  2726. public bool IsFrozen { get { return _frozen; } }
  2727. public MessageOptions() {
  2728. OnConstruction();
  2729. }
  2730. partial void OnConstruction();
  2731. public MessageOptions(MessageOptions other) : this() {
  2732. messageSetWireFormat_ = other.messageSetWireFormat_;
  2733. noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
  2734. deprecated_ = other.deprecated_;
  2735. mapEntry_ = other.mapEntry_;
  2736. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2737. }
  2738. public MessageOptions Clone() {
  2739. return new MessageOptions(this);
  2740. }
  2741. public void Freeze() {
  2742. if (IsFrozen) {
  2743. return;
  2744. }
  2745. _frozen = true;
  2746. uninterpretedOption_.Freeze();
  2747. }
  2748. public const int MessageSetWireFormatFieldNumber = 1;
  2749. private bool messageSetWireFormat_;
  2750. internal bool MessageSetWireFormat {
  2751. get { return messageSetWireFormat_; }
  2752. set {
  2753. pb::Freezable.CheckMutable(this);
  2754. messageSetWireFormat_ = value;
  2755. }
  2756. }
  2757. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  2758. private bool noStandardDescriptorAccessor_;
  2759. internal bool NoStandardDescriptorAccessor {
  2760. get { return noStandardDescriptorAccessor_; }
  2761. set {
  2762. pb::Freezable.CheckMutable(this);
  2763. noStandardDescriptorAccessor_ = value;
  2764. }
  2765. }
  2766. public const int DeprecatedFieldNumber = 3;
  2767. private bool deprecated_;
  2768. internal bool Deprecated {
  2769. get { return deprecated_; }
  2770. set {
  2771. pb::Freezable.CheckMutable(this);
  2772. deprecated_ = value;
  2773. }
  2774. }
  2775. public const int MapEntryFieldNumber = 7;
  2776. private bool mapEntry_;
  2777. internal bool MapEntry {
  2778. get { return mapEntry_; }
  2779. set {
  2780. pb::Freezable.CheckMutable(this);
  2781. mapEntry_ = value;
  2782. }
  2783. }
  2784. public const int UninterpretedOptionFieldNumber = 999;
  2785. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2786. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2787. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2788. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2789. get { return uninterpretedOption_; }
  2790. }
  2791. public override bool Equals(object other) {
  2792. return Equals(other as MessageOptions);
  2793. }
  2794. public bool Equals(MessageOptions other) {
  2795. if (ReferenceEquals(other, null)) {
  2796. return false;
  2797. }
  2798. if (ReferenceEquals(other, this)) {
  2799. return true;
  2800. }
  2801. if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
  2802. if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
  2803. if (Deprecated != other.Deprecated) return false;
  2804. if (MapEntry != other.MapEntry) return false;
  2805. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2806. return true;
  2807. }
  2808. public override int GetHashCode() {
  2809. int hash = 1;
  2810. if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
  2811. if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
  2812. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2813. if (MapEntry != false) hash ^= MapEntry.GetHashCode();
  2814. hash ^= uninterpretedOption_.GetHashCode();
  2815. return hash;
  2816. }
  2817. public override string ToString() {
  2818. return pb::JsonFormatter.Default.Format(this);
  2819. }
  2820. public void WriteTo(pb::CodedOutputStream output) {
  2821. if (MessageSetWireFormat != false) {
  2822. output.WriteRawTag(8);
  2823. output.WriteBool(MessageSetWireFormat);
  2824. }
  2825. if (NoStandardDescriptorAccessor != false) {
  2826. output.WriteRawTag(16);
  2827. output.WriteBool(NoStandardDescriptorAccessor);
  2828. }
  2829. if (Deprecated != false) {
  2830. output.WriteRawTag(24);
  2831. output.WriteBool(Deprecated);
  2832. }
  2833. if (MapEntry != false) {
  2834. output.WriteRawTag(56);
  2835. output.WriteBool(MapEntry);
  2836. }
  2837. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2838. }
  2839. public int CalculateSize() {
  2840. int size = 0;
  2841. if (MessageSetWireFormat != false) {
  2842. size += 1 + 1;
  2843. }
  2844. if (NoStandardDescriptorAccessor != false) {
  2845. size += 1 + 1;
  2846. }
  2847. if (Deprecated != false) {
  2848. size += 1 + 1;
  2849. }
  2850. if (MapEntry != false) {
  2851. size += 1 + 1;
  2852. }
  2853. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2854. return size;
  2855. }
  2856. public void MergeFrom(MessageOptions other) {
  2857. if (other == null) {
  2858. return;
  2859. }
  2860. if (other.MessageSetWireFormat != false) {
  2861. MessageSetWireFormat = other.MessageSetWireFormat;
  2862. }
  2863. if (other.NoStandardDescriptorAccessor != false) {
  2864. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  2865. }
  2866. if (other.Deprecated != false) {
  2867. Deprecated = other.Deprecated;
  2868. }
  2869. if (other.MapEntry != false) {
  2870. MapEntry = other.MapEntry;
  2871. }
  2872. uninterpretedOption_.Add(other.uninterpretedOption_);
  2873. }
  2874. public void MergeFrom(pb::CodedInputStream input) {
  2875. uint tag;
  2876. while (input.ReadTag(out tag)) {
  2877. switch(tag) {
  2878. case 0:
  2879. throw pb::InvalidProtocolBufferException.InvalidTag();
  2880. default:
  2881. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2882. return;
  2883. }
  2884. break;
  2885. case 8: {
  2886. MessageSetWireFormat = input.ReadBool();
  2887. break;
  2888. }
  2889. case 16: {
  2890. NoStandardDescriptorAccessor = input.ReadBool();
  2891. break;
  2892. }
  2893. case 24: {
  2894. Deprecated = input.ReadBool();
  2895. break;
  2896. }
  2897. case 56: {
  2898. MapEntry = input.ReadBool();
  2899. break;
  2900. }
  2901. case 7994: {
  2902. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2903. break;
  2904. }
  2905. }
  2906. }
  2907. }
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
  2911. private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
  2912. public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
  2913. public static pbr::MessageDescriptor Descriptor {
  2914. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[11]; }
  2915. }
  2916. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2917. get { return Descriptor; }
  2918. }
  2919. private bool _frozen = false;
  2920. public bool IsFrozen { get { return _frozen; } }
  2921. public FieldOptions() {
  2922. OnConstruction();
  2923. }
  2924. partial void OnConstruction();
  2925. public FieldOptions(FieldOptions other) : this() {
  2926. ctype_ = other.ctype_;
  2927. packed_ = other.packed_;
  2928. jstype_ = other.jstype_;
  2929. lazy_ = other.lazy_;
  2930. deprecated_ = other.deprecated_;
  2931. weak_ = other.weak_;
  2932. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2933. }
  2934. public FieldOptions Clone() {
  2935. return new FieldOptions(this);
  2936. }
  2937. public void Freeze() {
  2938. if (IsFrozen) {
  2939. return;
  2940. }
  2941. _frozen = true;
  2942. uninterpretedOption_.Freeze();
  2943. }
  2944. public const int CtypeFieldNumber = 1;
  2945. private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING;
  2946. internal global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
  2947. get { return ctype_; }
  2948. set {
  2949. pb::Freezable.CheckMutable(this);
  2950. ctype_ = value;
  2951. }
  2952. }
  2953. public const int PackedFieldNumber = 2;
  2954. private bool packed_;
  2955. internal bool Packed {
  2956. get { return packed_; }
  2957. set {
  2958. pb::Freezable.CheckMutable(this);
  2959. packed_ = value;
  2960. }
  2961. }
  2962. public const int JstypeFieldNumber = 6;
  2963. private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL;
  2964. internal global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
  2965. get { return jstype_; }
  2966. set {
  2967. pb::Freezable.CheckMutable(this);
  2968. jstype_ = value;
  2969. }
  2970. }
  2971. public const int LazyFieldNumber = 5;
  2972. private bool lazy_;
  2973. internal bool Lazy {
  2974. get { return lazy_; }
  2975. set {
  2976. pb::Freezable.CheckMutable(this);
  2977. lazy_ = value;
  2978. }
  2979. }
  2980. public const int DeprecatedFieldNumber = 3;
  2981. private bool deprecated_;
  2982. internal bool Deprecated {
  2983. get { return deprecated_; }
  2984. set {
  2985. pb::Freezable.CheckMutable(this);
  2986. deprecated_ = value;
  2987. }
  2988. }
  2989. public const int WeakFieldNumber = 10;
  2990. private bool weak_;
  2991. internal bool Weak {
  2992. get { return weak_; }
  2993. set {
  2994. pb::Freezable.CheckMutable(this);
  2995. weak_ = value;
  2996. }
  2997. }
  2998. public const int UninterpretedOptionFieldNumber = 999;
  2999. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3000. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3001. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3002. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3003. get { return uninterpretedOption_; }
  3004. }
  3005. public override bool Equals(object other) {
  3006. return Equals(other as FieldOptions);
  3007. }
  3008. public bool Equals(FieldOptions other) {
  3009. if (ReferenceEquals(other, null)) {
  3010. return false;
  3011. }
  3012. if (ReferenceEquals(other, this)) {
  3013. return true;
  3014. }
  3015. if (Ctype != other.Ctype) return false;
  3016. if (Packed != other.Packed) return false;
  3017. if (Jstype != other.Jstype) return false;
  3018. if (Lazy != other.Lazy) return false;
  3019. if (Deprecated != other.Deprecated) return false;
  3020. if (Weak != other.Weak) return false;
  3021. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3022. return true;
  3023. }
  3024. public override int GetHashCode() {
  3025. int hash = 1;
  3026. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) hash ^= Ctype.GetHashCode();
  3027. if (Packed != false) hash ^= Packed.GetHashCode();
  3028. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) hash ^= Jstype.GetHashCode();
  3029. if (Lazy != false) hash ^= Lazy.GetHashCode();
  3030. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3031. if (Weak != false) hash ^= Weak.GetHashCode();
  3032. hash ^= uninterpretedOption_.GetHashCode();
  3033. return hash;
  3034. }
  3035. public override string ToString() {
  3036. return pb::JsonFormatter.Default.Format(this);
  3037. }
  3038. public void WriteTo(pb::CodedOutputStream output) {
  3039. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  3040. output.WriteRawTag(8);
  3041. output.WriteEnum((int) Ctype);
  3042. }
  3043. if (Packed != false) {
  3044. output.WriteRawTag(16);
  3045. output.WriteBool(Packed);
  3046. }
  3047. if (Deprecated != false) {
  3048. output.WriteRawTag(24);
  3049. output.WriteBool(Deprecated);
  3050. }
  3051. if (Lazy != false) {
  3052. output.WriteRawTag(40);
  3053. output.WriteBool(Lazy);
  3054. }
  3055. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  3056. output.WriteRawTag(48);
  3057. output.WriteEnum((int) Jstype);
  3058. }
  3059. if (Weak != false) {
  3060. output.WriteRawTag(80);
  3061. output.WriteBool(Weak);
  3062. }
  3063. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3064. }
  3065. public int CalculateSize() {
  3066. int size = 0;
  3067. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  3068. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
  3069. }
  3070. if (Packed != false) {
  3071. size += 1 + 1;
  3072. }
  3073. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  3074. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
  3075. }
  3076. if (Lazy != false) {
  3077. size += 1 + 1;
  3078. }
  3079. if (Deprecated != false) {
  3080. size += 1 + 1;
  3081. }
  3082. if (Weak != false) {
  3083. size += 1 + 1;
  3084. }
  3085. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3086. return size;
  3087. }
  3088. public void MergeFrom(FieldOptions other) {
  3089. if (other == null) {
  3090. return;
  3091. }
  3092. if (other.Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  3093. Ctype = other.Ctype;
  3094. }
  3095. if (other.Packed != false) {
  3096. Packed = other.Packed;
  3097. }
  3098. if (other.Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  3099. Jstype = other.Jstype;
  3100. }
  3101. if (other.Lazy != false) {
  3102. Lazy = other.Lazy;
  3103. }
  3104. if (other.Deprecated != false) {
  3105. Deprecated = other.Deprecated;
  3106. }
  3107. if (other.Weak != false) {
  3108. Weak = other.Weak;
  3109. }
  3110. uninterpretedOption_.Add(other.uninterpretedOption_);
  3111. }
  3112. public void MergeFrom(pb::CodedInputStream input) {
  3113. uint tag;
  3114. while (input.ReadTag(out tag)) {
  3115. switch(tag) {
  3116. case 0:
  3117. throw pb::InvalidProtocolBufferException.InvalidTag();
  3118. default:
  3119. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3120. return;
  3121. }
  3122. break;
  3123. case 8: {
  3124. ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
  3125. break;
  3126. }
  3127. case 16: {
  3128. Packed = input.ReadBool();
  3129. break;
  3130. }
  3131. case 24: {
  3132. Deprecated = input.ReadBool();
  3133. break;
  3134. }
  3135. case 40: {
  3136. Lazy = input.ReadBool();
  3137. break;
  3138. }
  3139. case 48: {
  3140. jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
  3141. break;
  3142. }
  3143. case 80: {
  3144. Weak = input.ReadBool();
  3145. break;
  3146. }
  3147. case 7994: {
  3148. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3149. break;
  3150. }
  3151. }
  3152. }
  3153. }
  3154. #region Nested types
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. public static partial class Types {
  3157. internal enum CType {
  3158. STRING = 0,
  3159. CORD = 1,
  3160. STRING_PIECE = 2,
  3161. }
  3162. internal enum JSType {
  3163. JS_NORMAL = 0,
  3164. JS_STRING = 1,
  3165. JS_NUMBER = 2,
  3166. }
  3167. }
  3168. #endregion
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
  3172. private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
  3173. public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
  3174. public static pbr::MessageDescriptor Descriptor {
  3175. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[12]; }
  3176. }
  3177. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3178. get { return Descriptor; }
  3179. }
  3180. private bool _frozen = false;
  3181. public bool IsFrozen { get { return _frozen; } }
  3182. public EnumOptions() {
  3183. OnConstruction();
  3184. }
  3185. partial void OnConstruction();
  3186. public EnumOptions(EnumOptions other) : this() {
  3187. allowAlias_ = other.allowAlias_;
  3188. deprecated_ = other.deprecated_;
  3189. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3190. }
  3191. public EnumOptions Clone() {
  3192. return new EnumOptions(this);
  3193. }
  3194. public void Freeze() {
  3195. if (IsFrozen) {
  3196. return;
  3197. }
  3198. _frozen = true;
  3199. uninterpretedOption_.Freeze();
  3200. }
  3201. public const int AllowAliasFieldNumber = 2;
  3202. private bool allowAlias_;
  3203. internal bool AllowAlias {
  3204. get { return allowAlias_; }
  3205. set {
  3206. pb::Freezable.CheckMutable(this);
  3207. allowAlias_ = value;
  3208. }
  3209. }
  3210. public const int DeprecatedFieldNumber = 3;
  3211. private bool deprecated_;
  3212. internal bool Deprecated {
  3213. get { return deprecated_; }
  3214. set {
  3215. pb::Freezable.CheckMutable(this);
  3216. deprecated_ = value;
  3217. }
  3218. }
  3219. public const int UninterpretedOptionFieldNumber = 999;
  3220. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3221. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3222. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3223. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3224. get { return uninterpretedOption_; }
  3225. }
  3226. public override bool Equals(object other) {
  3227. return Equals(other as EnumOptions);
  3228. }
  3229. public bool Equals(EnumOptions other) {
  3230. if (ReferenceEquals(other, null)) {
  3231. return false;
  3232. }
  3233. if (ReferenceEquals(other, this)) {
  3234. return true;
  3235. }
  3236. if (AllowAlias != other.AllowAlias) return false;
  3237. if (Deprecated != other.Deprecated) return false;
  3238. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3239. return true;
  3240. }
  3241. public override int GetHashCode() {
  3242. int hash = 1;
  3243. if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
  3244. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3245. hash ^= uninterpretedOption_.GetHashCode();
  3246. return hash;
  3247. }
  3248. public override string ToString() {
  3249. return pb::JsonFormatter.Default.Format(this);
  3250. }
  3251. public void WriteTo(pb::CodedOutputStream output) {
  3252. if (AllowAlias != false) {
  3253. output.WriteRawTag(16);
  3254. output.WriteBool(AllowAlias);
  3255. }
  3256. if (Deprecated != false) {
  3257. output.WriteRawTag(24);
  3258. output.WriteBool(Deprecated);
  3259. }
  3260. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3261. }
  3262. public int CalculateSize() {
  3263. int size = 0;
  3264. if (AllowAlias != false) {
  3265. size += 1 + 1;
  3266. }
  3267. if (Deprecated != false) {
  3268. size += 1 + 1;
  3269. }
  3270. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3271. return size;
  3272. }
  3273. public void MergeFrom(EnumOptions other) {
  3274. if (other == null) {
  3275. return;
  3276. }
  3277. if (other.AllowAlias != false) {
  3278. AllowAlias = other.AllowAlias;
  3279. }
  3280. if (other.Deprecated != false) {
  3281. Deprecated = other.Deprecated;
  3282. }
  3283. uninterpretedOption_.Add(other.uninterpretedOption_);
  3284. }
  3285. public void MergeFrom(pb::CodedInputStream input) {
  3286. uint tag;
  3287. while (input.ReadTag(out tag)) {
  3288. switch(tag) {
  3289. case 0:
  3290. throw pb::InvalidProtocolBufferException.InvalidTag();
  3291. default:
  3292. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3293. return;
  3294. }
  3295. break;
  3296. case 16: {
  3297. AllowAlias = input.ReadBool();
  3298. break;
  3299. }
  3300. case 24: {
  3301. Deprecated = input.ReadBool();
  3302. break;
  3303. }
  3304. case 7994: {
  3305. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3306. break;
  3307. }
  3308. }
  3309. }
  3310. }
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
  3314. private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
  3315. public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
  3316. public static pbr::MessageDescriptor Descriptor {
  3317. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[13]; }
  3318. }
  3319. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3320. get { return Descriptor; }
  3321. }
  3322. private bool _frozen = false;
  3323. public bool IsFrozen { get { return _frozen; } }
  3324. public EnumValueOptions() {
  3325. OnConstruction();
  3326. }
  3327. partial void OnConstruction();
  3328. public EnumValueOptions(EnumValueOptions other) : this() {
  3329. deprecated_ = other.deprecated_;
  3330. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3331. }
  3332. public EnumValueOptions Clone() {
  3333. return new EnumValueOptions(this);
  3334. }
  3335. public void Freeze() {
  3336. if (IsFrozen) {
  3337. return;
  3338. }
  3339. _frozen = true;
  3340. uninterpretedOption_.Freeze();
  3341. }
  3342. public const int DeprecatedFieldNumber = 1;
  3343. private bool deprecated_;
  3344. internal bool Deprecated {
  3345. get { return deprecated_; }
  3346. set {
  3347. pb::Freezable.CheckMutable(this);
  3348. deprecated_ = value;
  3349. }
  3350. }
  3351. public const int UninterpretedOptionFieldNumber = 999;
  3352. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3353. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3354. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3355. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3356. get { return uninterpretedOption_; }
  3357. }
  3358. public override bool Equals(object other) {
  3359. return Equals(other as EnumValueOptions);
  3360. }
  3361. public bool Equals(EnumValueOptions other) {
  3362. if (ReferenceEquals(other, null)) {
  3363. return false;
  3364. }
  3365. if (ReferenceEquals(other, this)) {
  3366. return true;
  3367. }
  3368. if (Deprecated != other.Deprecated) return false;
  3369. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3370. return true;
  3371. }
  3372. public override int GetHashCode() {
  3373. int hash = 1;
  3374. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3375. hash ^= uninterpretedOption_.GetHashCode();
  3376. return hash;
  3377. }
  3378. public override string ToString() {
  3379. return pb::JsonFormatter.Default.Format(this);
  3380. }
  3381. public void WriteTo(pb::CodedOutputStream output) {
  3382. if (Deprecated != false) {
  3383. output.WriteRawTag(8);
  3384. output.WriteBool(Deprecated);
  3385. }
  3386. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3387. }
  3388. public int CalculateSize() {
  3389. int size = 0;
  3390. if (Deprecated != false) {
  3391. size += 1 + 1;
  3392. }
  3393. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3394. return size;
  3395. }
  3396. public void MergeFrom(EnumValueOptions other) {
  3397. if (other == null) {
  3398. return;
  3399. }
  3400. if (other.Deprecated != false) {
  3401. Deprecated = other.Deprecated;
  3402. }
  3403. uninterpretedOption_.Add(other.uninterpretedOption_);
  3404. }
  3405. public void MergeFrom(pb::CodedInputStream input) {
  3406. uint tag;
  3407. while (input.ReadTag(out tag)) {
  3408. switch(tag) {
  3409. case 0:
  3410. throw pb::InvalidProtocolBufferException.InvalidTag();
  3411. default:
  3412. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3413. return;
  3414. }
  3415. break;
  3416. case 8: {
  3417. Deprecated = input.ReadBool();
  3418. break;
  3419. }
  3420. case 7994: {
  3421. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3422. break;
  3423. }
  3424. }
  3425. }
  3426. }
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
  3430. private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
  3431. public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
  3432. public static pbr::MessageDescriptor Descriptor {
  3433. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[14]; }
  3434. }
  3435. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3436. get { return Descriptor; }
  3437. }
  3438. private bool _frozen = false;
  3439. public bool IsFrozen { get { return _frozen; } }
  3440. public ServiceOptions() {
  3441. OnConstruction();
  3442. }
  3443. partial void OnConstruction();
  3444. public ServiceOptions(ServiceOptions other) : this() {
  3445. deprecated_ = other.deprecated_;
  3446. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3447. }
  3448. public ServiceOptions Clone() {
  3449. return new ServiceOptions(this);
  3450. }
  3451. public void Freeze() {
  3452. if (IsFrozen) {
  3453. return;
  3454. }
  3455. _frozen = true;
  3456. uninterpretedOption_.Freeze();
  3457. }
  3458. public const int DeprecatedFieldNumber = 33;
  3459. private bool deprecated_;
  3460. internal bool Deprecated {
  3461. get { return deprecated_; }
  3462. set {
  3463. pb::Freezable.CheckMutable(this);
  3464. deprecated_ = value;
  3465. }
  3466. }
  3467. public const int UninterpretedOptionFieldNumber = 999;
  3468. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3469. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3470. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3471. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3472. get { return uninterpretedOption_; }
  3473. }
  3474. public override bool Equals(object other) {
  3475. return Equals(other as ServiceOptions);
  3476. }
  3477. public bool Equals(ServiceOptions other) {
  3478. if (ReferenceEquals(other, null)) {
  3479. return false;
  3480. }
  3481. if (ReferenceEquals(other, this)) {
  3482. return true;
  3483. }
  3484. if (Deprecated != other.Deprecated) return false;
  3485. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3486. return true;
  3487. }
  3488. public override int GetHashCode() {
  3489. int hash = 1;
  3490. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3491. hash ^= uninterpretedOption_.GetHashCode();
  3492. return hash;
  3493. }
  3494. public override string ToString() {
  3495. return pb::JsonFormatter.Default.Format(this);
  3496. }
  3497. public void WriteTo(pb::CodedOutputStream output) {
  3498. if (Deprecated != false) {
  3499. output.WriteRawTag(136, 2);
  3500. output.WriteBool(Deprecated);
  3501. }
  3502. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3503. }
  3504. public int CalculateSize() {
  3505. int size = 0;
  3506. if (Deprecated != false) {
  3507. size += 2 + 1;
  3508. }
  3509. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3510. return size;
  3511. }
  3512. public void MergeFrom(ServiceOptions other) {
  3513. if (other == null) {
  3514. return;
  3515. }
  3516. if (other.Deprecated != false) {
  3517. Deprecated = other.Deprecated;
  3518. }
  3519. uninterpretedOption_.Add(other.uninterpretedOption_);
  3520. }
  3521. public void MergeFrom(pb::CodedInputStream input) {
  3522. uint tag;
  3523. while (input.ReadTag(out tag)) {
  3524. switch(tag) {
  3525. case 0:
  3526. throw pb::InvalidProtocolBufferException.InvalidTag();
  3527. default:
  3528. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3529. return;
  3530. }
  3531. break;
  3532. case 264: {
  3533. Deprecated = input.ReadBool();
  3534. break;
  3535. }
  3536. case 7994: {
  3537. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3538. break;
  3539. }
  3540. }
  3541. }
  3542. }
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
  3546. private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
  3547. public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
  3548. public static pbr::MessageDescriptor Descriptor {
  3549. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[15]; }
  3550. }
  3551. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3552. get { return Descriptor; }
  3553. }
  3554. private bool _frozen = false;
  3555. public bool IsFrozen { get { return _frozen; } }
  3556. public MethodOptions() {
  3557. OnConstruction();
  3558. }
  3559. partial void OnConstruction();
  3560. public MethodOptions(MethodOptions other) : this() {
  3561. deprecated_ = other.deprecated_;
  3562. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3563. }
  3564. public MethodOptions Clone() {
  3565. return new MethodOptions(this);
  3566. }
  3567. public void Freeze() {
  3568. if (IsFrozen) {
  3569. return;
  3570. }
  3571. _frozen = true;
  3572. uninterpretedOption_.Freeze();
  3573. }
  3574. public const int DeprecatedFieldNumber = 33;
  3575. private bool deprecated_;
  3576. internal bool Deprecated {
  3577. get { return deprecated_; }
  3578. set {
  3579. pb::Freezable.CheckMutable(this);
  3580. deprecated_ = value;
  3581. }
  3582. }
  3583. public const int UninterpretedOptionFieldNumber = 999;
  3584. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3585. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3586. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3587. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3588. get { return uninterpretedOption_; }
  3589. }
  3590. public override bool Equals(object other) {
  3591. return Equals(other as MethodOptions);
  3592. }
  3593. public bool Equals(MethodOptions other) {
  3594. if (ReferenceEquals(other, null)) {
  3595. return false;
  3596. }
  3597. if (ReferenceEquals(other, this)) {
  3598. return true;
  3599. }
  3600. if (Deprecated != other.Deprecated) return false;
  3601. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3602. return true;
  3603. }
  3604. public override int GetHashCode() {
  3605. int hash = 1;
  3606. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3607. hash ^= uninterpretedOption_.GetHashCode();
  3608. return hash;
  3609. }
  3610. public override string ToString() {
  3611. return pb::JsonFormatter.Default.Format(this);
  3612. }
  3613. public void WriteTo(pb::CodedOutputStream output) {
  3614. if (Deprecated != false) {
  3615. output.WriteRawTag(136, 2);
  3616. output.WriteBool(Deprecated);
  3617. }
  3618. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3619. }
  3620. public int CalculateSize() {
  3621. int size = 0;
  3622. if (Deprecated != false) {
  3623. size += 2 + 1;
  3624. }
  3625. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3626. return size;
  3627. }
  3628. public void MergeFrom(MethodOptions other) {
  3629. if (other == null) {
  3630. return;
  3631. }
  3632. if (other.Deprecated != false) {
  3633. Deprecated = other.Deprecated;
  3634. }
  3635. uninterpretedOption_.Add(other.uninterpretedOption_);
  3636. }
  3637. public void MergeFrom(pb::CodedInputStream input) {
  3638. uint tag;
  3639. while (input.ReadTag(out tag)) {
  3640. switch(tag) {
  3641. case 0:
  3642. throw pb::InvalidProtocolBufferException.InvalidTag();
  3643. default:
  3644. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3645. return;
  3646. }
  3647. break;
  3648. case 264: {
  3649. Deprecated = input.ReadBool();
  3650. break;
  3651. }
  3652. case 7994: {
  3653. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3654. break;
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
  3662. private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
  3663. public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
  3664. public static pbr::MessageDescriptor Descriptor {
  3665. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[16]; }
  3666. }
  3667. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3668. get { return Descriptor; }
  3669. }
  3670. private bool _frozen = false;
  3671. public bool IsFrozen { get { return _frozen; } }
  3672. public UninterpretedOption() {
  3673. OnConstruction();
  3674. }
  3675. partial void OnConstruction();
  3676. public UninterpretedOption(UninterpretedOption other) : this() {
  3677. name_ = other.name_.Clone();
  3678. identifierValue_ = other.identifierValue_;
  3679. positiveIntValue_ = other.positiveIntValue_;
  3680. negativeIntValue_ = other.negativeIntValue_;
  3681. doubleValue_ = other.doubleValue_;
  3682. stringValue_ = other.stringValue_;
  3683. aggregateValue_ = other.aggregateValue_;
  3684. }
  3685. public UninterpretedOption Clone() {
  3686. return new UninterpretedOption(this);
  3687. }
  3688. public void Freeze() {
  3689. if (IsFrozen) {
  3690. return;
  3691. }
  3692. _frozen = true;
  3693. name_.Freeze();
  3694. }
  3695. public const int NameFieldNumber = 2;
  3696. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
  3697. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
  3698. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
  3699. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
  3700. get { return name_; }
  3701. }
  3702. public const int IdentifierValueFieldNumber = 3;
  3703. private string identifierValue_ = "";
  3704. internal string IdentifierValue {
  3705. get { return identifierValue_; }
  3706. set {
  3707. pb::Freezable.CheckMutable(this);
  3708. identifierValue_ = value ?? "";
  3709. }
  3710. }
  3711. public const int PositiveIntValueFieldNumber = 4;
  3712. private ulong positiveIntValue_;
  3713. internal ulong PositiveIntValue {
  3714. get { return positiveIntValue_; }
  3715. set {
  3716. pb::Freezable.CheckMutable(this);
  3717. positiveIntValue_ = value;
  3718. }
  3719. }
  3720. public const int NegativeIntValueFieldNumber = 5;
  3721. private long negativeIntValue_;
  3722. internal long NegativeIntValue {
  3723. get { return negativeIntValue_; }
  3724. set {
  3725. pb::Freezable.CheckMutable(this);
  3726. negativeIntValue_ = value;
  3727. }
  3728. }
  3729. public const int DoubleValueFieldNumber = 6;
  3730. private double doubleValue_;
  3731. internal double DoubleValue {
  3732. get { return doubleValue_; }
  3733. set {
  3734. pb::Freezable.CheckMutable(this);
  3735. doubleValue_ = value;
  3736. }
  3737. }
  3738. public const int StringValueFieldNumber = 7;
  3739. private pb::ByteString stringValue_ = pb::ByteString.Empty;
  3740. internal pb::ByteString StringValue {
  3741. get { return stringValue_; }
  3742. set {
  3743. pb::Freezable.CheckMutable(this);
  3744. stringValue_ = value ?? pb::ByteString.Empty;
  3745. }
  3746. }
  3747. public const int AggregateValueFieldNumber = 8;
  3748. private string aggregateValue_ = "";
  3749. internal string AggregateValue {
  3750. get { return aggregateValue_; }
  3751. set {
  3752. pb::Freezable.CheckMutable(this);
  3753. aggregateValue_ = value ?? "";
  3754. }
  3755. }
  3756. public override bool Equals(object other) {
  3757. return Equals(other as UninterpretedOption);
  3758. }
  3759. public bool Equals(UninterpretedOption other) {
  3760. if (ReferenceEquals(other, null)) {
  3761. return false;
  3762. }
  3763. if (ReferenceEquals(other, this)) {
  3764. return true;
  3765. }
  3766. if(!name_.Equals(other.name_)) return false;
  3767. if (IdentifierValue != other.IdentifierValue) return false;
  3768. if (PositiveIntValue != other.PositiveIntValue) return false;
  3769. if (NegativeIntValue != other.NegativeIntValue) return false;
  3770. if (DoubleValue != other.DoubleValue) return false;
  3771. if (StringValue != other.StringValue) return false;
  3772. if (AggregateValue != other.AggregateValue) return false;
  3773. return true;
  3774. }
  3775. public override int GetHashCode() {
  3776. int hash = 1;
  3777. hash ^= name_.GetHashCode();
  3778. if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
  3779. if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
  3780. if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
  3781. if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
  3782. if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
  3783. if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
  3784. return hash;
  3785. }
  3786. public override string ToString() {
  3787. return pb::JsonFormatter.Default.Format(this);
  3788. }
  3789. public void WriteTo(pb::CodedOutputStream output) {
  3790. name_.WriteTo(output, _repeated_name_codec);
  3791. if (IdentifierValue.Length != 0) {
  3792. output.WriteRawTag(26);
  3793. output.WriteString(IdentifierValue);
  3794. }
  3795. if (PositiveIntValue != 0UL) {
  3796. output.WriteRawTag(32);
  3797. output.WriteUInt64(PositiveIntValue);
  3798. }
  3799. if (NegativeIntValue != 0L) {
  3800. output.WriteRawTag(40);
  3801. output.WriteInt64(NegativeIntValue);
  3802. }
  3803. if (DoubleValue != 0D) {
  3804. output.WriteRawTag(49);
  3805. output.WriteDouble(DoubleValue);
  3806. }
  3807. if (StringValue.Length != 0) {
  3808. output.WriteRawTag(58);
  3809. output.WriteBytes(StringValue);
  3810. }
  3811. if (AggregateValue.Length != 0) {
  3812. output.WriteRawTag(66);
  3813. output.WriteString(AggregateValue);
  3814. }
  3815. }
  3816. public int CalculateSize() {
  3817. int size = 0;
  3818. size += name_.CalculateSize(_repeated_name_codec);
  3819. if (IdentifierValue.Length != 0) {
  3820. size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
  3821. }
  3822. if (PositiveIntValue != 0UL) {
  3823. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
  3824. }
  3825. if (NegativeIntValue != 0L) {
  3826. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
  3827. }
  3828. if (DoubleValue != 0D) {
  3829. size += 1 + 8;
  3830. }
  3831. if (StringValue.Length != 0) {
  3832. size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
  3833. }
  3834. if (AggregateValue.Length != 0) {
  3835. size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
  3836. }
  3837. return size;
  3838. }
  3839. public void MergeFrom(UninterpretedOption other) {
  3840. if (other == null) {
  3841. return;
  3842. }
  3843. name_.Add(other.name_);
  3844. if (other.IdentifierValue.Length != 0) {
  3845. IdentifierValue = other.IdentifierValue;
  3846. }
  3847. if (other.PositiveIntValue != 0UL) {
  3848. PositiveIntValue = other.PositiveIntValue;
  3849. }
  3850. if (other.NegativeIntValue != 0L) {
  3851. NegativeIntValue = other.NegativeIntValue;
  3852. }
  3853. if (other.DoubleValue != 0D) {
  3854. DoubleValue = other.DoubleValue;
  3855. }
  3856. if (other.StringValue.Length != 0) {
  3857. StringValue = other.StringValue;
  3858. }
  3859. if (other.AggregateValue.Length != 0) {
  3860. AggregateValue = other.AggregateValue;
  3861. }
  3862. }
  3863. public void MergeFrom(pb::CodedInputStream input) {
  3864. uint tag;
  3865. while (input.ReadTag(out tag)) {
  3866. switch(tag) {
  3867. case 0:
  3868. throw pb::InvalidProtocolBufferException.InvalidTag();
  3869. default:
  3870. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3871. return;
  3872. }
  3873. break;
  3874. case 18: {
  3875. name_.AddEntriesFrom(input, _repeated_name_codec);
  3876. break;
  3877. }
  3878. case 26: {
  3879. IdentifierValue = input.ReadString();
  3880. break;
  3881. }
  3882. case 32: {
  3883. PositiveIntValue = input.ReadUInt64();
  3884. break;
  3885. }
  3886. case 40: {
  3887. NegativeIntValue = input.ReadInt64();
  3888. break;
  3889. }
  3890. case 49: {
  3891. DoubleValue = input.ReadDouble();
  3892. break;
  3893. }
  3894. case 58: {
  3895. StringValue = input.ReadBytes();
  3896. break;
  3897. }
  3898. case 66: {
  3899. AggregateValue = input.ReadString();
  3900. break;
  3901. }
  3902. }
  3903. }
  3904. }
  3905. #region Nested types
  3906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3907. public static partial class Types {
  3908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3909. internal sealed partial class NamePart : pb::IMessage<NamePart> {
  3910. private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
  3911. public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
  3912. public static pbr::MessageDescriptor Descriptor {
  3913. get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
  3914. }
  3915. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3916. get { return Descriptor; }
  3917. }
  3918. private bool _frozen = false;
  3919. public bool IsFrozen { get { return _frozen; } }
  3920. public NamePart() {
  3921. OnConstruction();
  3922. }
  3923. partial void OnConstruction();
  3924. public NamePart(NamePart other) : this() {
  3925. namePart_ = other.namePart_;
  3926. isExtension_ = other.isExtension_;
  3927. }
  3928. public NamePart Clone() {
  3929. return new NamePart(this);
  3930. }
  3931. public void Freeze() {
  3932. if (IsFrozen) {
  3933. return;
  3934. }
  3935. _frozen = true;
  3936. }
  3937. public const int NamePart_FieldNumber = 1;
  3938. private string namePart_ = "";
  3939. internal string NamePart_ {
  3940. get { return namePart_; }
  3941. set {
  3942. pb::Freezable.CheckMutable(this);
  3943. namePart_ = value ?? "";
  3944. }
  3945. }
  3946. public const int IsExtensionFieldNumber = 2;
  3947. private bool isExtension_;
  3948. internal bool IsExtension {
  3949. get { return isExtension_; }
  3950. set {
  3951. pb::Freezable.CheckMutable(this);
  3952. isExtension_ = value;
  3953. }
  3954. }
  3955. public override bool Equals(object other) {
  3956. return Equals(other as NamePart);
  3957. }
  3958. public bool Equals(NamePart other) {
  3959. if (ReferenceEquals(other, null)) {
  3960. return false;
  3961. }
  3962. if (ReferenceEquals(other, this)) {
  3963. return true;
  3964. }
  3965. if (NamePart_ != other.NamePart_) return false;
  3966. if (IsExtension != other.IsExtension) return false;
  3967. return true;
  3968. }
  3969. public override int GetHashCode() {
  3970. int hash = 1;
  3971. if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
  3972. if (IsExtension != false) hash ^= IsExtension.GetHashCode();
  3973. return hash;
  3974. }
  3975. public override string ToString() {
  3976. return pb::JsonFormatter.Default.Format(this);
  3977. }
  3978. public void WriteTo(pb::CodedOutputStream output) {
  3979. if (NamePart_.Length != 0) {
  3980. output.WriteRawTag(10);
  3981. output.WriteString(NamePart_);
  3982. }
  3983. if (IsExtension != false) {
  3984. output.WriteRawTag(16);
  3985. output.WriteBool(IsExtension);
  3986. }
  3987. }
  3988. public int CalculateSize() {
  3989. int size = 0;
  3990. if (NamePart_.Length != 0) {
  3991. size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
  3992. }
  3993. if (IsExtension != false) {
  3994. size += 1 + 1;
  3995. }
  3996. return size;
  3997. }
  3998. public void MergeFrom(NamePart other) {
  3999. if (other == null) {
  4000. return;
  4001. }
  4002. if (other.NamePart_.Length != 0) {
  4003. NamePart_ = other.NamePart_;
  4004. }
  4005. if (other.IsExtension != false) {
  4006. IsExtension = other.IsExtension;
  4007. }
  4008. }
  4009. public void MergeFrom(pb::CodedInputStream input) {
  4010. uint tag;
  4011. while (input.ReadTag(out tag)) {
  4012. switch(tag) {
  4013. case 0:
  4014. throw pb::InvalidProtocolBufferException.InvalidTag();
  4015. default:
  4016. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4017. return;
  4018. }
  4019. break;
  4020. case 10: {
  4021. NamePart_ = input.ReadString();
  4022. break;
  4023. }
  4024. case 16: {
  4025. IsExtension = input.ReadBool();
  4026. break;
  4027. }
  4028. }
  4029. }
  4030. }
  4031. }
  4032. }
  4033. #endregion
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
  4037. private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
  4038. public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
  4039. public static pbr::MessageDescriptor Descriptor {
  4040. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[17]; }
  4041. }
  4042. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4043. get { return Descriptor; }
  4044. }
  4045. private bool _frozen = false;
  4046. public bool IsFrozen { get { return _frozen; } }
  4047. public SourceCodeInfo() {
  4048. OnConstruction();
  4049. }
  4050. partial void OnConstruction();
  4051. public SourceCodeInfo(SourceCodeInfo other) : this() {
  4052. location_ = other.location_.Clone();
  4053. }
  4054. public SourceCodeInfo Clone() {
  4055. return new SourceCodeInfo(this);
  4056. }
  4057. public void Freeze() {
  4058. if (IsFrozen) {
  4059. return;
  4060. }
  4061. _frozen = true;
  4062. location_.Freeze();
  4063. }
  4064. public const int LocationFieldNumber = 1;
  4065. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
  4066. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
  4067. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
  4068. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
  4069. get { return location_; }
  4070. }
  4071. public override bool Equals(object other) {
  4072. return Equals(other as SourceCodeInfo);
  4073. }
  4074. public bool Equals(SourceCodeInfo other) {
  4075. if (ReferenceEquals(other, null)) {
  4076. return false;
  4077. }
  4078. if (ReferenceEquals(other, this)) {
  4079. return true;
  4080. }
  4081. if(!location_.Equals(other.location_)) return false;
  4082. return true;
  4083. }
  4084. public override int GetHashCode() {
  4085. int hash = 1;
  4086. hash ^= location_.GetHashCode();
  4087. return hash;
  4088. }
  4089. public override string ToString() {
  4090. return pb::JsonFormatter.Default.Format(this);
  4091. }
  4092. public void WriteTo(pb::CodedOutputStream output) {
  4093. location_.WriteTo(output, _repeated_location_codec);
  4094. }
  4095. public int CalculateSize() {
  4096. int size = 0;
  4097. size += location_.CalculateSize(_repeated_location_codec);
  4098. return size;
  4099. }
  4100. public void MergeFrom(SourceCodeInfo other) {
  4101. if (other == null) {
  4102. return;
  4103. }
  4104. location_.Add(other.location_);
  4105. }
  4106. public void MergeFrom(pb::CodedInputStream input) {
  4107. uint tag;
  4108. while (input.ReadTag(out tag)) {
  4109. switch(tag) {
  4110. case 0:
  4111. throw pb::InvalidProtocolBufferException.InvalidTag();
  4112. default:
  4113. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4114. return;
  4115. }
  4116. break;
  4117. case 10: {
  4118. location_.AddEntriesFrom(input, _repeated_location_codec);
  4119. break;
  4120. }
  4121. }
  4122. }
  4123. }
  4124. #region Nested types
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4126. public static partial class Types {
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. internal sealed partial class Location : pb::IMessage<Location> {
  4129. private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
  4130. public static pb::MessageParser<Location> Parser { get { return _parser; } }
  4131. public static pbr::MessageDescriptor Descriptor {
  4132. get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
  4133. }
  4134. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4135. get { return Descriptor; }
  4136. }
  4137. private bool _frozen = false;
  4138. public bool IsFrozen { get { return _frozen; } }
  4139. public Location() {
  4140. OnConstruction();
  4141. }
  4142. partial void OnConstruction();
  4143. public Location(Location other) : this() {
  4144. path_ = other.path_.Clone();
  4145. span_ = other.span_.Clone();
  4146. leadingComments_ = other.leadingComments_;
  4147. trailingComments_ = other.trailingComments_;
  4148. leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
  4149. }
  4150. public Location Clone() {
  4151. return new Location(this);
  4152. }
  4153. public void Freeze() {
  4154. if (IsFrozen) {
  4155. return;
  4156. }
  4157. _frozen = true;
  4158. path_.Freeze();
  4159. span_.Freeze();
  4160. leadingDetachedComments_.Freeze();
  4161. }
  4162. public const int PathFieldNumber = 1;
  4163. private static readonly pb::FieldCodec<int> _repeated_path_codec
  4164. = pb::FieldCodec.ForInt32(10);
  4165. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  4166. internal pbc::RepeatedField<int> Path {
  4167. get { return path_; }
  4168. }
  4169. public const int SpanFieldNumber = 2;
  4170. private static readonly pb::FieldCodec<int> _repeated_span_codec
  4171. = pb::FieldCodec.ForInt32(18);
  4172. private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
  4173. internal pbc::RepeatedField<int> Span {
  4174. get { return span_; }
  4175. }
  4176. public const int LeadingCommentsFieldNumber = 3;
  4177. private string leadingComments_ = "";
  4178. internal string LeadingComments {
  4179. get { return leadingComments_; }
  4180. set {
  4181. pb::Freezable.CheckMutable(this);
  4182. leadingComments_ = value ?? "";
  4183. }
  4184. }
  4185. public const int TrailingCommentsFieldNumber = 4;
  4186. private string trailingComments_ = "";
  4187. internal string TrailingComments {
  4188. get { return trailingComments_; }
  4189. set {
  4190. pb::Freezable.CheckMutable(this);
  4191. trailingComments_ = value ?? "";
  4192. }
  4193. }
  4194. public const int LeadingDetachedCommentsFieldNumber = 6;
  4195. private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
  4196. = pb::FieldCodec.ForString(50);
  4197. private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
  4198. internal pbc::RepeatedField<string> LeadingDetachedComments {
  4199. get { return leadingDetachedComments_; }
  4200. }
  4201. public override bool Equals(object other) {
  4202. return Equals(other as Location);
  4203. }
  4204. public bool Equals(Location other) {
  4205. if (ReferenceEquals(other, null)) {
  4206. return false;
  4207. }
  4208. if (ReferenceEquals(other, this)) {
  4209. return true;
  4210. }
  4211. if(!path_.Equals(other.path_)) return false;
  4212. if(!span_.Equals(other.span_)) return false;
  4213. if (LeadingComments != other.LeadingComments) return false;
  4214. if (TrailingComments != other.TrailingComments) return false;
  4215. if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
  4216. return true;
  4217. }
  4218. public override int GetHashCode() {
  4219. int hash = 1;
  4220. hash ^= path_.GetHashCode();
  4221. hash ^= span_.GetHashCode();
  4222. if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
  4223. if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
  4224. hash ^= leadingDetachedComments_.GetHashCode();
  4225. return hash;
  4226. }
  4227. public override string ToString() {
  4228. return pb::JsonFormatter.Default.Format(this);
  4229. }
  4230. public void WriteTo(pb::CodedOutputStream output) {
  4231. path_.WriteTo(output, _repeated_path_codec);
  4232. span_.WriteTo(output, _repeated_span_codec);
  4233. if (LeadingComments.Length != 0) {
  4234. output.WriteRawTag(26);
  4235. output.WriteString(LeadingComments);
  4236. }
  4237. if (TrailingComments.Length != 0) {
  4238. output.WriteRawTag(34);
  4239. output.WriteString(TrailingComments);
  4240. }
  4241. leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
  4242. }
  4243. public int CalculateSize() {
  4244. int size = 0;
  4245. size += path_.CalculateSize(_repeated_path_codec);
  4246. size += span_.CalculateSize(_repeated_span_codec);
  4247. if (LeadingComments.Length != 0) {
  4248. size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
  4249. }
  4250. if (TrailingComments.Length != 0) {
  4251. size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
  4252. }
  4253. size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
  4254. return size;
  4255. }
  4256. public void MergeFrom(Location other) {
  4257. if (other == null) {
  4258. return;
  4259. }
  4260. path_.Add(other.path_);
  4261. span_.Add(other.span_);
  4262. if (other.LeadingComments.Length != 0) {
  4263. LeadingComments = other.LeadingComments;
  4264. }
  4265. if (other.TrailingComments.Length != 0) {
  4266. TrailingComments = other.TrailingComments;
  4267. }
  4268. leadingDetachedComments_.Add(other.leadingDetachedComments_);
  4269. }
  4270. public void MergeFrom(pb::CodedInputStream input) {
  4271. uint tag;
  4272. while (input.ReadTag(out tag)) {
  4273. switch(tag) {
  4274. case 0:
  4275. throw pb::InvalidProtocolBufferException.InvalidTag();
  4276. default:
  4277. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4278. return;
  4279. }
  4280. break;
  4281. case 10:
  4282. case 8: {
  4283. path_.AddEntriesFrom(input, _repeated_path_codec);
  4284. break;
  4285. }
  4286. case 18:
  4287. case 16: {
  4288. span_.AddEntriesFrom(input, _repeated_span_codec);
  4289. break;
  4290. }
  4291. case 26: {
  4292. LeadingComments = input.ReadString();
  4293. break;
  4294. }
  4295. case 34: {
  4296. TrailingComments = input.ReadString();
  4297. break;
  4298. }
  4299. case 50: {
  4300. leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
  4301. break;
  4302. }
  4303. }
  4304. }
  4305. }
  4306. }
  4307. }
  4308. #endregion
  4309. }
  4310. #endregion
  4311. }
  4312. #endregion Designer generated code