TestMessagesProto2.cs 202 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/test_messages_proto2.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace ProtobufTestMessages.Proto2 {
  12. /// <summary>Holder for reflection information generated from google/protobuf/test_messages_proto2.proto</summary>
  13. public static partial class TestMessagesProto2Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for google/protobuf/test_messages_proto2.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static TestMessagesProto2Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzIucHJvdG8S",
  24. "HXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yIuYyChJUZXN0QWxsVHlw",
  25. "ZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxf",
  26. "aW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlv",
  27. "bmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoP",
  28. "b3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByAB",
  29. "KAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4",
  30. "ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRp",
  31. "b25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUYDCABKAESFQoN",
  32. "b3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJpbmcYDiABKAkS",
  33. "FgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSYAoXb3B0aW9uYWxfbmVzdGVkX21l",
  34. "c3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5U",
  35. "ZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZRJVChhvcHRpb25hbF9m",
  36. "b3JlaWduX21lc3NhZ2UYEyABKAsyMy5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
  37. "LnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMhJaChRvcHRpb25hbF9uZXN0",
  38. "ZWRfZW51bRgVIAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y",
  39. "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtEk8KFW9wdGlvbmFsX2Zv",
  40. "cmVpZ25fZW51bRgWIAEoDjIwLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
  41. "dG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFW9wdGlvbmFsX3N0cmluZ19waWVj",
  42. "ZRgYIAEoCUICCAISGQoNb3B0aW9uYWxfY29yZBgZIAEoCUICCAESTAoRcmVj",
  43. "dXJzaXZlX21lc3NhZ2UYGyABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
  44. "LnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzISFgoOcmVwZWF0ZWRfaW50MzIY",
  45. "HyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICADKAMSFwoPcmVwZWF0ZWRfdWlu",
  46. "dDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2NBgiIAMoBBIXCg9yZXBlYXRl",
  47. "ZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRfc2ludDY0GCQgAygSEhgKEHJl",
  48. "cGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMo",
  49. "BhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoDxIZChFyZXBlYXRlZF9zZml4",
  50. "ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9hdBgpIAMoAhIXCg9yZXBlYXRl",
  51. "ZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRfYm9vbBgrIAMoCBIXCg9yZXBl",
  52. "YXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0ZWRfYnl0ZXMYLSADKAwSYAoX",
  53. "cmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCADKAsyPy5wcm90b2J1Zl90ZXN0",
  54. "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVz",
  55. "c2FnZRJVChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyMy5wcm90",
  56. "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3Rv",
  57. "MhJaChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjI8LnByb3RvYnVmX3Rl",
  58. "c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF",
  59. "bnVtEk8KFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0IAMoDjIwLnByb3RvYnVm",
  60. "X3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFXJl",
  61. "cGVhdGVkX3N0cmluZ19waWVjZRg2IAMoCUICCAISGQoNcmVwZWF0ZWRfY29y",
  62. "ZBg3IAMoCUICCAESXQoPbWFwX2ludDMyX2ludDMyGDggAygLMkQucHJvdG9i",
  63. "dWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1h",
  64. "cEludDMySW50MzJFbnRyeRJdCg9tYXBfaW50NjRfaW50NjQYOSADKAsyRC5w",
  65. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90",
  66. "bzIuTWFwSW50NjRJbnQ2NEVudHJ5EmEKEW1hcF91aW50MzJfdWludDMyGDog",
  67. "AygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5",
  68. "cGVzUHJvdG8yLk1hcFVpbnQzMlVpbnQzMkVudHJ5EmEKEW1hcF91aW50NjRf",
  69. "dWludDY0GDsgAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIu",
  70. "VGVzdEFsbFR5cGVzUHJvdG8yLk1hcFVpbnQ2NFVpbnQ2NEVudHJ5EmEKEW1h",
  71. "cF9zaW50MzJfc2ludDMyGDwgAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdl",
  72. "cy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQzMlNpbnQzMkVu",
  73. "dHJ5EmEKEW1hcF9zaW50NjRfc2ludDY0GD0gAygLMkYucHJvdG9idWZfdGVz",
  74. "dF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQ2",
  75. "NFNpbnQ2NEVudHJ5EmUKE21hcF9maXhlZDMyX2ZpeGVkMzIYPiADKAsySC5w",
  76. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90",
  77. "bzIuTWFwRml4ZWQzMkZpeGVkMzJFbnRyeRJlChNtYXBfZml4ZWQ2NF9maXhl",
  78. "ZDY0GD8gAygLMkgucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVz",
  79. "dEFsbFR5cGVzUHJvdG8yLk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSaQoVbWFw",
  80. "X3NmaXhlZDMyX3NmaXhlZDMyGEAgAygLMkoucHJvdG9idWZfdGVzdF9tZXNz",
  81. "YWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNmaXhlZDMyU2Zp",
  82. "eGVkMzJFbnRyeRJpChVtYXBfc2ZpeGVkNjRfc2ZpeGVkNjQYQSADKAsySi5w",
  83. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90",
  84. "bzIuTWFwU2ZpeGVkNjRTZml4ZWQ2NEVudHJ5El0KD21hcF9pbnQzMl9mbG9h",
  85. "dBhCIAMoCzJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RB",
  86. "bGxUeXBlc1Byb3RvMi5NYXBJbnQzMkZsb2F0RW50cnkSXwoQbWFwX2ludDMy",
  87. "X2RvdWJsZRhDIAMoCzJFLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y",
  88. "LlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBJbnQzMkRvdWJsZUVudHJ5ElkKDW1h",
  89. "cF9ib29sX2Jvb2wYRCADKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnBy",
  90. "b3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwQm9vbEJvb2xFbnRyeRJhChFt",
  91. "YXBfc3RyaW5nX3N0cmluZxhFIAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2Fn",
  92. "ZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdTdHJpbmdF",
  93. "bnRyeRJfChBtYXBfc3RyaW5nX2J5dGVzGEYgAygLMkUucHJvdG9idWZfdGVz",
  94. "dF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmlu",
  95. "Z0J5dGVzRW50cnkScAoZbWFwX3N0cmluZ19uZXN0ZWRfbWVzc2FnZRhHIAMo",
  96. "CzJNLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBl",
  97. "c1Byb3RvMi5NYXBTdHJpbmdOZXN0ZWRNZXNzYWdlRW50cnkScgoabWFwX3N0",
  98. "cmluZ19mb3JlaWduX21lc3NhZ2UYSCADKAsyTi5wcm90b2J1Zl90ZXN0X21l",
  99. "c3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nRm9y",
  100. "ZWlnbk1lc3NhZ2VFbnRyeRJqChZtYXBfc3RyaW5nX25lc3RlZF9lbnVtGEkg",
  101. "AygLMkoucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5",
  102. "cGVzUHJvdG8yLk1hcFN0cmluZ05lc3RlZEVudW1FbnRyeRJsChdtYXBfc3Ry",
  103. "aW5nX2ZvcmVpZ25fZW51bRhKIAMoCzJLLnByb3RvYnVmX3Rlc3RfbWVzc2Fn",
  104. "ZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdGb3JlaWdu",
  105. "RW51bUVudHJ5EhYKDG9uZW9mX3VpbnQzMhhvIAEoDUgAEl8KFG9uZW9mX25l",
  106. "c3RlZF9tZXNzYWdlGHAgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5w",
  107. "cm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2VIABIWCgxv",
  108. "bmVvZl9zdHJpbmcYcSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAEhQK",
  109. "Cm9uZW9mX2Jvb2wYcyABKAhIABIWCgxvbmVvZl91aW50NjQYdCABKARIABIV",
  110. "CgtvbmVvZl9mbG9hdBh1IAEoAkgAEhYKDG9uZW9mX2RvdWJsZRh2IAEoAUgA",
  111. "ElIKCm9uZW9mX2VudW0YdyABKA4yPC5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
  112. "LnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkRW51bUgAEkUKBGRh",
  113. "dGEYyQEgASgKMjYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVz",
  114. "dEFsbFR5cGVzUHJvdG8yLkRhdGESEwoKZmllbGRuYW1lMRiRAyABKAUSFAoL",
  115. "ZmllbGRfbmFtZTIYkgMgASgFEhUKDF9maWVsZF9uYW1lMxiTAyABKAUSFgoN",
  116. "ZmllbGRfX25hbWU0XxiUAyABKAUSFAoLZmllbGQwbmFtZTUYlQMgASgFEhYK",
  117. "DWZpZWxkXzBfbmFtZTYYlgMgASgFEhMKCmZpZWxkTmFtZTcYlwMgASgFEhMK",
  118. "CkZpZWxkTmFtZTgYmAMgASgFEhQKC2ZpZWxkX05hbWU5GJkDIAEoBRIVCgxG",
  119. "aWVsZF9OYW1lMTAYmgMgASgFEhUKDEZJRUxEX05BTUUxMRibAyABKAUSFQoM",
  120. "RklFTERfbmFtZTEyGJwDIAEoBRIXCg5fX2ZpZWxkX25hbWUxMxidAyABKAUS",
  121. "FwoOX19GaWVsZF9uYW1lMTQYngMgASgFEhYKDWZpZWxkX19uYW1lMTUYnwMg",
  122. "ASgFEhYKDWZpZWxkX19OYW1lMTYYoAMgASgFEhcKDmZpZWxkX25hbWUxN19f",
  123. "GKEDIAEoBRIXCg5GaWVsZF9uYW1lMThfXxiiAyABKAUaYgoNTmVzdGVkTWVz",
  124. "c2FnZRIJCgFhGAEgASgFEkYKC2NvcmVjdXJzaXZlGAIgASgLMjEucHJvdG9i",
  125. "dWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yGjQK",
  126. "Ek1hcEludDMySW50MzJFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiAB",
  127. "KAU6AjgBGjQKEk1hcEludDY0SW50NjRFbnRyeRILCgNrZXkYASABKAMSDQoF",
  128. "dmFsdWUYAiABKAM6AjgBGjYKFE1hcFVpbnQzMlVpbnQzMkVudHJ5EgsKA2tl",
  129. "eRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaNgoUTWFwVWludDY0VWludDY0",
  130. "RW50cnkSCwoDa2V5GAEgASgEEg0KBXZhbHVlGAIgASgEOgI4ARo2ChRNYXBT",
  131. "aW50MzJTaW50MzJFbnRyeRILCgNrZXkYASABKBESDQoFdmFsdWUYAiABKBE6",
  132. "AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2NEVudHJ5EgsKA2tleRgBIAEoEhINCgV2",
  133. "YWx1ZRgCIAEoEjoCOAEaOAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRyeRILCgNr",
  134. "ZXkYASABKAcSDQoFdmFsdWUYAiABKAc6AjgBGjgKFk1hcEZpeGVkNjRGaXhl",
  135. "ZDY0RW50cnkSCwoDa2V5GAEgASgGEg0KBXZhbHVlGAIgASgGOgI4ARo6ChhN",
  136. "YXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSCwoDa2V5GAEgASgPEg0KBXZhbHVl",
  137. "GAIgASgPOgI4ARo6ChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSCwoDa2V5",
  138. "GAEgASgQEg0KBXZhbHVlGAIgASgQOgI4ARo0ChJNYXBJbnQzMkZsb2F0RW50",
  139. "cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgCOgI4ARo1ChNNYXBJbnQz",
  140. "MkRvdWJsZUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoAToCOAEa",
  141. "MgoQTWFwQm9vbEJvb2xFbnRyeRILCgNrZXkYASABKAgSDQoFdmFsdWUYAiAB",
  142. "KAg6AjgBGjYKFE1hcFN0cmluZ1N0cmluZ0VudHJ5EgsKA2tleRgBIAEoCRIN",
  143. "CgV2YWx1ZRgCIAEoCToCOAEaNQoTTWFwU3RyaW5nQnl0ZXNFbnRyeRILCgNr",
  144. "ZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgBGn4KG01hcFN0cmluZ05lc3Rl",
  145. "ZE1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAkSTgoFdmFsdWUYAiABKAsyPy5w",
  146. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90",
  147. "bzIuTmVzdGVkTWVzc2FnZToCOAEacwocTWFwU3RyaW5nRm9yZWlnbk1lc3Nh",
  148. "Z2VFbnRyeRILCgNrZXkYASABKAkSQgoFdmFsdWUYAiABKAsyMy5wcm90b2J1",
  149. "Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMjoC",
  150. "OAEaeAoYTWFwU3RyaW5nTmVzdGVkRW51bUVudHJ5EgsKA2tleRgBIAEoCRJL",
  151. "CgV2YWx1ZRgCIAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y",
  152. "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtOgI4ARptChlNYXBTdHJp",
  153. "bmdGb3JlaWduRW51bUVudHJ5EgsKA2tleRgBIAEoCRI/CgV2YWx1ZRgCIAEo",
  154. "DjIwLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25FbnVt",
  155. "UHJvdG8yOgI4ARozCgREYXRhEhQKC2dyb3VwX2ludDMyGMoBIAEoBRIVCgxn",
  156. "cm91cF91aW50MzIYywEgASgNGiEKEU1lc3NhZ2VTZXRDb3JyZWN0KggIBBD/",
  157. "////BzoCCAEa4AEKG01lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMRILCgNz",
  158. "dHIYGSABKAkyswEKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJDLnByb3RvYnVm",
  159. "X3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NZXNz",
  160. "YWdlU2V0Q29ycmVjdBj5u14gASgLMk0ucHJvdG9idWZfdGVzdF9tZXNzYWdl",
  161. "cy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0",
  162. "RXh0ZW5zaW9uMRrfAQobTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24yEgkK",
  163. "AWkYCSABKAUytAEKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJDLnByb3RvYnVm",
  164. "X3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NZXNz",
  165. "YWdlU2V0Q29ycmVjdBiQs/wBIAEoCzJNLnByb3RvYnVmX3Rlc3RfbWVzc2Fn",
  166. "ZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVj",
  167. "dEV4dGVuc2lvbjIiOQoKTmVzdGVkRW51bRIHCgNGT08QABIHCgNCQVIQARIH",
  168. "CgNCQVoQAhIQCgNORUcQ////////////ASoFCHgQyQFCDQoLb25lb2ZfZmll",
  169. "bGRKBgjoBxCQTiIhChRGb3JlaWduTWVzc2FnZVByb3RvMhIJCgFjGAEgASgF",
  170. "IsECChVVbmtub3duVG9UZXN0QWxsVHlwZXMSFwoOb3B0aW9uYWxfaW50MzIY",
  171. "6QcgASgFEhgKD29wdGlvbmFsX3N0cmluZxjqByABKAkSTAoObmVzdGVkX21l",
  172. "c3NhZ2UY6wcgASgLMjMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIu",
  173. "Rm9yZWlnbk1lc3NhZ2VQcm90bzISWgoNb3B0aW9uYWxncm91cBjsByABKAoy",
  174. "Qi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Vbmtub3duVG9UZXN0",
  175. "QWxsVHlwZXMuT3B0aW9uYWxHcm91cBIWCg1vcHRpb25hbF9ib29sGO4HIAEo",
  176. "CBIXCg5yZXBlYXRlZF9pbnQzMhjzByADKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
  177. "CgFhGAEgASgFKkYKEUZvcmVpZ25FbnVtUHJvdG8yEg8KC0ZPUkVJR05fRk9P",
  178. "EAASDwoLRk9SRUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhACOkoKD2V4dGVu",
  179. "c2lvbl9pbnQzMhIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRl",
  180. "c3RBbGxUeXBlc1Byb3RvMhh4IAEoBUIvCihjb20uZ29vZ2xlLnByb3RvYnVm",
  181. "X3Rlc3RfbWVzc2FnZXMucHJvdG8ySAH4AQE="));
  182. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  183. new pbr::FileDescriptor[] { },
  184. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Proto2.ForeignEnumProto2), }, new pb::Extension[] { TestMessagesProto2Extensions.ExtensionInt32 }, new pbr::GeneratedClrTypeInfo[] {
  185. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "Data", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null),
  186. null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null),
  187. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null),
  188. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null),
  189. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)}),
  190. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.ForeignMessageProto2), global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser, new[]{ "C" }, null, null, null, null),
  191. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalString", "NestedMessage", "OptionalGroup", "OptionalBool", "RepeatedInt32" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)})
  192. }));
  193. }
  194. #endregion
  195. }
  196. /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/test_messages_proto2.proto</summary>
  197. public static partial class TestMessagesProto2Extensions {
  198. public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int> ExtensionInt32 =
  199. new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int>(120, pb::FieldCodec.ForInt32(960, 0));
  200. }
  201. #region Enums
  202. public enum ForeignEnumProto2 {
  203. [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0,
  204. [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1,
  205. [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2,
  206. }
  207. #endregion
  208. #region Messages
  209. /// <summary>
  210. /// This proto includes every type of field in both singular and repeated
  211. /// forms.
  212. ///
  213. /// Also, crucially, all messages and enums in this file are eventually
  214. /// submessages of this message. So for example, a fuzz test of TestAllTypes
  215. /// could trigger bugs that occur in any message type in this file. We verify
  216. /// this stays true in a unit test.
  217. /// </summary>
  218. public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage<TestAllTypesProto2> {
  219. private static readonly pb::MessageParser<TestAllTypesProto2> _parser = new pb::MessageParser<TestAllTypesProto2>(() => new TestAllTypesProto2());
  220. private pb::UnknownFieldSet _unknownFields;
  221. private pb::ExtensionSet<TestAllTypesProto2> _extensions;
  222. private pb::ExtensionSet<TestAllTypesProto2> _Extensions => _extensions;
  223. private int _hasBits0;
  224. private int _hasBits1;
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. public static pb::MessageParser<TestAllTypesProto2> Parser { get { return _parser; } }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  228. public static pbr::MessageDescriptor Descriptor {
  229. get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[0]; }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. pbr::MessageDescriptor pb::IMessage.Descriptor {
  233. get { return Descriptor; }
  234. }
  235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  236. public TestAllTypesProto2() {
  237. OnConstruction();
  238. }
  239. partial void OnConstruction();
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  241. public TestAllTypesProto2(TestAllTypesProto2 other) : this() {
  242. _hasBits0 = other._hasBits0;
  243. _hasBits1 = other._hasBits1;
  244. optionalInt32_ = other.optionalInt32_;
  245. optionalInt64_ = other.optionalInt64_;
  246. optionalUint32_ = other.optionalUint32_;
  247. optionalUint64_ = other.optionalUint64_;
  248. optionalSint32_ = other.optionalSint32_;
  249. optionalSint64_ = other.optionalSint64_;
  250. optionalFixed32_ = other.optionalFixed32_;
  251. optionalFixed64_ = other.optionalFixed64_;
  252. optionalSfixed32_ = other.optionalSfixed32_;
  253. optionalSfixed64_ = other.optionalSfixed64_;
  254. optionalFloat_ = other.optionalFloat_;
  255. optionalDouble_ = other.optionalDouble_;
  256. optionalBool_ = other.optionalBool_;
  257. optionalString_ = other.optionalString_;
  258. optionalBytes_ = other.optionalBytes_;
  259. optionalNestedMessage_ = other.HasOptionalNestedMessage ? other.optionalNestedMessage_.Clone() : null;
  260. optionalForeignMessage_ = other.HasOptionalForeignMessage ? other.optionalForeignMessage_.Clone() : null;
  261. optionalNestedEnum_ = other.optionalNestedEnum_;
  262. optionalForeignEnum_ = other.optionalForeignEnum_;
  263. optionalStringPiece_ = other.optionalStringPiece_;
  264. optionalCord_ = other.optionalCord_;
  265. recursiveMessage_ = other.HasRecursiveMessage ? other.recursiveMessage_.Clone() : null;
  266. repeatedInt32_ = other.repeatedInt32_.Clone();
  267. repeatedInt64_ = other.repeatedInt64_.Clone();
  268. repeatedUint32_ = other.repeatedUint32_.Clone();
  269. repeatedUint64_ = other.repeatedUint64_.Clone();
  270. repeatedSint32_ = other.repeatedSint32_.Clone();
  271. repeatedSint64_ = other.repeatedSint64_.Clone();
  272. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  273. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  274. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  275. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  276. repeatedFloat_ = other.repeatedFloat_.Clone();
  277. repeatedDouble_ = other.repeatedDouble_.Clone();
  278. repeatedBool_ = other.repeatedBool_.Clone();
  279. repeatedString_ = other.repeatedString_.Clone();
  280. repeatedBytes_ = other.repeatedBytes_.Clone();
  281. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  282. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  283. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  284. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  285. repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
  286. repeatedCord_ = other.repeatedCord_.Clone();
  287. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  288. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  289. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  290. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  291. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  292. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  293. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  294. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  295. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  296. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  297. mapInt32Float_ = other.mapInt32Float_.Clone();
  298. mapInt32Double_ = other.mapInt32Double_.Clone();
  299. mapBoolBool_ = other.mapBoolBool_.Clone();
  300. mapStringString_ = other.mapStringString_.Clone();
  301. mapStringBytes_ = other.mapStringBytes_.Clone();
  302. mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
  303. mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
  304. mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
  305. mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
  306. data_ = other.HasData ? other.data_.Clone() : null;
  307. fieldname1_ = other.fieldname1_;
  308. fieldName2_ = other.fieldName2_;
  309. FieldName3_ = other.FieldName3_;
  310. fieldName4_ = other.fieldName4_;
  311. field0Name5_ = other.field0Name5_;
  312. field0Name6_ = other.field0Name6_;
  313. fieldName7_ = other.fieldName7_;
  314. fieldName8_ = other.fieldName8_;
  315. fieldName9_ = other.fieldName9_;
  316. fieldName10_ = other.fieldName10_;
  317. fIELDNAME11_ = other.fIELDNAME11_;
  318. fIELDName12_ = other.fIELDName12_;
  319. FieldName13_ = other.FieldName13_;
  320. FieldName14_ = other.FieldName14_;
  321. fieldName15_ = other.fieldName15_;
  322. fieldName16_ = other.fieldName16_;
  323. fieldName17_ = other.fieldName17_;
  324. fieldName18_ = other.fieldName18_;
  325. switch (other.OneofFieldCase) {
  326. case OneofFieldOneofCase.OneofUint32:
  327. OneofUint32 = other.OneofUint32;
  328. break;
  329. case OneofFieldOneofCase.OneofNestedMessage:
  330. OneofNestedMessage = other.OneofNestedMessage.Clone();
  331. break;
  332. case OneofFieldOneofCase.OneofString:
  333. OneofString = other.OneofString;
  334. break;
  335. case OneofFieldOneofCase.OneofBytes:
  336. OneofBytes = other.OneofBytes;
  337. break;
  338. case OneofFieldOneofCase.OneofBool:
  339. OneofBool = other.OneofBool;
  340. break;
  341. case OneofFieldOneofCase.OneofUint64:
  342. OneofUint64 = other.OneofUint64;
  343. break;
  344. case OneofFieldOneofCase.OneofFloat:
  345. OneofFloat = other.OneofFloat;
  346. break;
  347. case OneofFieldOneofCase.OneofDouble:
  348. OneofDouble = other.OneofDouble;
  349. break;
  350. case OneofFieldOneofCase.OneofEnum:
  351. OneofEnum = other.OneofEnum;
  352. break;
  353. }
  354. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  355. _extensions = pb::ExtensionSet.Clone(other._extensions);
  356. }
  357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  358. public TestAllTypesProto2 Clone() {
  359. return new TestAllTypesProto2(this);
  360. }
  361. /// <summary>Field number for the "optional_int32" field.</summary>
  362. public const int OptionalInt32FieldNumber = 1;
  363. private readonly static int OptionalInt32DefaultValue = 0;
  364. private int optionalInt32_;
  365. /// <summary>
  366. /// Singular
  367. /// </summary>
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. public int OptionalInt32 {
  370. get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
  371. set {
  372. _hasBits0 |= 1;
  373. optionalInt32_ = value;
  374. }
  375. }
  376. /// <summary>Gets whether the "optional_int32" field is set</summary>
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. public bool HasOptionalInt32 {
  379. get { return (_hasBits0 & 1) != 0; }
  380. }
  381. /// <summary>Clears the value of the "optional_int32" field</summary>
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public void ClearOptionalInt32() {
  384. _hasBits0 &= ~1;
  385. }
  386. /// <summary>Field number for the "optional_int64" field.</summary>
  387. public const int OptionalInt64FieldNumber = 2;
  388. private readonly static long OptionalInt64DefaultValue = 0L;
  389. private long optionalInt64_;
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  391. public long OptionalInt64 {
  392. get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
  393. set {
  394. _hasBits0 |= 2;
  395. optionalInt64_ = value;
  396. }
  397. }
  398. /// <summary>Gets whether the "optional_int64" field is set</summary>
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. public bool HasOptionalInt64 {
  401. get { return (_hasBits0 & 2) != 0; }
  402. }
  403. /// <summary>Clears the value of the "optional_int64" field</summary>
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  405. public void ClearOptionalInt64() {
  406. _hasBits0 &= ~2;
  407. }
  408. /// <summary>Field number for the "optional_uint32" field.</summary>
  409. public const int OptionalUint32FieldNumber = 3;
  410. private readonly static uint OptionalUint32DefaultValue = 0;
  411. private uint optionalUint32_;
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  413. public uint OptionalUint32 {
  414. get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
  415. set {
  416. _hasBits0 |= 4;
  417. optionalUint32_ = value;
  418. }
  419. }
  420. /// <summary>Gets whether the "optional_uint32" field is set</summary>
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  422. public bool HasOptionalUint32 {
  423. get { return (_hasBits0 & 4) != 0; }
  424. }
  425. /// <summary>Clears the value of the "optional_uint32" field</summary>
  426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  427. public void ClearOptionalUint32() {
  428. _hasBits0 &= ~4;
  429. }
  430. /// <summary>Field number for the "optional_uint64" field.</summary>
  431. public const int OptionalUint64FieldNumber = 4;
  432. private readonly static ulong OptionalUint64DefaultValue = 0UL;
  433. private ulong optionalUint64_;
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. public ulong OptionalUint64 {
  436. get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
  437. set {
  438. _hasBits0 |= 8;
  439. optionalUint64_ = value;
  440. }
  441. }
  442. /// <summary>Gets whether the "optional_uint64" field is set</summary>
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  444. public bool HasOptionalUint64 {
  445. get { return (_hasBits0 & 8) != 0; }
  446. }
  447. /// <summary>Clears the value of the "optional_uint64" field</summary>
  448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  449. public void ClearOptionalUint64() {
  450. _hasBits0 &= ~8;
  451. }
  452. /// <summary>Field number for the "optional_sint32" field.</summary>
  453. public const int OptionalSint32FieldNumber = 5;
  454. private readonly static int OptionalSint32DefaultValue = 0;
  455. private int optionalSint32_;
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  457. public int OptionalSint32 {
  458. get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
  459. set {
  460. _hasBits0 |= 16;
  461. optionalSint32_ = value;
  462. }
  463. }
  464. /// <summary>Gets whether the "optional_sint32" field is set</summary>
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. public bool HasOptionalSint32 {
  467. get { return (_hasBits0 & 16) != 0; }
  468. }
  469. /// <summary>Clears the value of the "optional_sint32" field</summary>
  470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  471. public void ClearOptionalSint32() {
  472. _hasBits0 &= ~16;
  473. }
  474. /// <summary>Field number for the "optional_sint64" field.</summary>
  475. public const int OptionalSint64FieldNumber = 6;
  476. private readonly static long OptionalSint64DefaultValue = 0L;
  477. private long optionalSint64_;
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public long OptionalSint64 {
  480. get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
  481. set {
  482. _hasBits0 |= 32;
  483. optionalSint64_ = value;
  484. }
  485. }
  486. /// <summary>Gets whether the "optional_sint64" field is set</summary>
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  488. public bool HasOptionalSint64 {
  489. get { return (_hasBits0 & 32) != 0; }
  490. }
  491. /// <summary>Clears the value of the "optional_sint64" field</summary>
  492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  493. public void ClearOptionalSint64() {
  494. _hasBits0 &= ~32;
  495. }
  496. /// <summary>Field number for the "optional_fixed32" field.</summary>
  497. public const int OptionalFixed32FieldNumber = 7;
  498. private readonly static uint OptionalFixed32DefaultValue = 0;
  499. private uint optionalFixed32_;
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public uint OptionalFixed32 {
  502. get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
  503. set {
  504. _hasBits0 |= 64;
  505. optionalFixed32_ = value;
  506. }
  507. }
  508. /// <summary>Gets whether the "optional_fixed32" field is set</summary>
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  510. public bool HasOptionalFixed32 {
  511. get { return (_hasBits0 & 64) != 0; }
  512. }
  513. /// <summary>Clears the value of the "optional_fixed32" field</summary>
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public void ClearOptionalFixed32() {
  516. _hasBits0 &= ~64;
  517. }
  518. /// <summary>Field number for the "optional_fixed64" field.</summary>
  519. public const int OptionalFixed64FieldNumber = 8;
  520. private readonly static ulong OptionalFixed64DefaultValue = 0UL;
  521. private ulong optionalFixed64_;
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  523. public ulong OptionalFixed64 {
  524. get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
  525. set {
  526. _hasBits0 |= 128;
  527. optionalFixed64_ = value;
  528. }
  529. }
  530. /// <summary>Gets whether the "optional_fixed64" field is set</summary>
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  532. public bool HasOptionalFixed64 {
  533. get { return (_hasBits0 & 128) != 0; }
  534. }
  535. /// <summary>Clears the value of the "optional_fixed64" field</summary>
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  537. public void ClearOptionalFixed64() {
  538. _hasBits0 &= ~128;
  539. }
  540. /// <summary>Field number for the "optional_sfixed32" field.</summary>
  541. public const int OptionalSfixed32FieldNumber = 9;
  542. private readonly static int OptionalSfixed32DefaultValue = 0;
  543. private int optionalSfixed32_;
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  545. public int OptionalSfixed32 {
  546. get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
  547. set {
  548. _hasBits0 |= 256;
  549. optionalSfixed32_ = value;
  550. }
  551. }
  552. /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  554. public bool HasOptionalSfixed32 {
  555. get { return (_hasBits0 & 256) != 0; }
  556. }
  557. /// <summary>Clears the value of the "optional_sfixed32" field</summary>
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  559. public void ClearOptionalSfixed32() {
  560. _hasBits0 &= ~256;
  561. }
  562. /// <summary>Field number for the "optional_sfixed64" field.</summary>
  563. public const int OptionalSfixed64FieldNumber = 10;
  564. private readonly static long OptionalSfixed64DefaultValue = 0L;
  565. private long optionalSfixed64_;
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public long OptionalSfixed64 {
  568. get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
  569. set {
  570. _hasBits0 |= 512;
  571. optionalSfixed64_ = value;
  572. }
  573. }
  574. /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  576. public bool HasOptionalSfixed64 {
  577. get { return (_hasBits0 & 512) != 0; }
  578. }
  579. /// <summary>Clears the value of the "optional_sfixed64" field</summary>
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  581. public void ClearOptionalSfixed64() {
  582. _hasBits0 &= ~512;
  583. }
  584. /// <summary>Field number for the "optional_float" field.</summary>
  585. public const int OptionalFloatFieldNumber = 11;
  586. private readonly static float OptionalFloatDefaultValue = 0F;
  587. private float optionalFloat_;
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  589. public float OptionalFloat {
  590. get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
  591. set {
  592. _hasBits0 |= 1024;
  593. optionalFloat_ = value;
  594. }
  595. }
  596. /// <summary>Gets whether the "optional_float" field is set</summary>
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  598. public bool HasOptionalFloat {
  599. get { return (_hasBits0 & 1024) != 0; }
  600. }
  601. /// <summary>Clears the value of the "optional_float" field</summary>
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  603. public void ClearOptionalFloat() {
  604. _hasBits0 &= ~1024;
  605. }
  606. /// <summary>Field number for the "optional_double" field.</summary>
  607. public const int OptionalDoubleFieldNumber = 12;
  608. private readonly static double OptionalDoubleDefaultValue = 0D;
  609. private double optionalDouble_;
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  611. public double OptionalDouble {
  612. get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
  613. set {
  614. _hasBits0 |= 2048;
  615. optionalDouble_ = value;
  616. }
  617. }
  618. /// <summary>Gets whether the "optional_double" field is set</summary>
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  620. public bool HasOptionalDouble {
  621. get { return (_hasBits0 & 2048) != 0; }
  622. }
  623. /// <summary>Clears the value of the "optional_double" field</summary>
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  625. public void ClearOptionalDouble() {
  626. _hasBits0 &= ~2048;
  627. }
  628. /// <summary>Field number for the "optional_bool" field.</summary>
  629. public const int OptionalBoolFieldNumber = 13;
  630. private readonly static bool OptionalBoolDefaultValue = false;
  631. private bool optionalBool_;
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  633. public bool OptionalBool {
  634. get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
  635. set {
  636. _hasBits0 |= 4096;
  637. optionalBool_ = value;
  638. }
  639. }
  640. /// <summary>Gets whether the "optional_bool" field is set</summary>
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. public bool HasOptionalBool {
  643. get { return (_hasBits0 & 4096) != 0; }
  644. }
  645. /// <summary>Clears the value of the "optional_bool" field</summary>
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  647. public void ClearOptionalBool() {
  648. _hasBits0 &= ~4096;
  649. }
  650. /// <summary>Field number for the "optional_string" field.</summary>
  651. public const int OptionalStringFieldNumber = 14;
  652. private readonly static string OptionalStringDefaultValue = "";
  653. private string optionalString_;
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  655. public string OptionalString {
  656. get { return optionalString_ ?? OptionalStringDefaultValue; }
  657. set {
  658. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  659. }
  660. }
  661. /// <summary>Gets whether the "optional_string" field is set</summary>
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  663. public bool HasOptionalString {
  664. get { return optionalString_ != null; }
  665. }
  666. /// <summary>Clears the value of the "optional_string" field</summary>
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  668. public void ClearOptionalString() {
  669. optionalString_ = null;
  670. }
  671. /// <summary>Field number for the "optional_bytes" field.</summary>
  672. public const int OptionalBytesFieldNumber = 15;
  673. private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
  674. private pb::ByteString optionalBytes_;
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  676. public pb::ByteString OptionalBytes {
  677. get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
  678. set {
  679. optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  680. }
  681. }
  682. /// <summary>Gets whether the "optional_bytes" field is set</summary>
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  684. public bool HasOptionalBytes {
  685. get { return optionalBytes_ != null; }
  686. }
  687. /// <summary>Clears the value of the "optional_bytes" field</summary>
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  689. public void ClearOptionalBytes() {
  690. optionalBytes_ = null;
  691. }
  692. /// <summary>Field number for the "optional_nested_message" field.</summary>
  693. public const int OptionalNestedMessageFieldNumber = 18;
  694. private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage optionalNestedMessage_;
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  696. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OptionalNestedMessage {
  697. get { return optionalNestedMessage_; }
  698. set {
  699. optionalNestedMessage_ = value;
  700. }
  701. }
  702. /// <summary>Gets whether the optional_nested_message field is set</summary>
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  704. public bool HasOptionalNestedMessage {
  705. get { return optionalNestedMessage_ != null; }
  706. }
  707. /// <summary>Clears the value of the optional_nested_message field</summary>
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  709. public void ClearOptionalNestedMessage() {
  710. optionalNestedMessage_ = null;
  711. }
  712. /// <summary>Field number for the "optional_foreign_message" field.</summary>
  713. public const int OptionalForeignMessageFieldNumber = 19;
  714. private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 optionalForeignMessage_;
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 OptionalForeignMessage {
  717. get { return optionalForeignMessage_; }
  718. set {
  719. optionalForeignMessage_ = value;
  720. }
  721. }
  722. /// <summary>Gets whether the optional_foreign_message field is set</summary>
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. public bool HasOptionalForeignMessage {
  725. get { return optionalForeignMessage_ != null; }
  726. }
  727. /// <summary>Clears the value of the optional_foreign_message field</summary>
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  729. public void ClearOptionalForeignMessage() {
  730. optionalForeignMessage_ = null;
  731. }
  732. /// <summary>Field number for the "optional_nested_enum" field.</summary>
  733. public const int OptionalNestedEnumFieldNumber = 21;
  734. private readonly static global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnumDefaultValue = global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo;
  735. private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum optionalNestedEnum_;
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnum {
  738. get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
  739. set {
  740. _hasBits0 |= 8192;
  741. optionalNestedEnum_ = value;
  742. }
  743. }
  744. /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  746. public bool HasOptionalNestedEnum {
  747. get { return (_hasBits0 & 8192) != 0; }
  748. }
  749. /// <summary>Clears the value of the "optional_nested_enum" field</summary>
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  751. public void ClearOptionalNestedEnum() {
  752. _hasBits0 &= ~8192;
  753. }
  754. /// <summary>Field number for the "optional_foreign_enum" field.</summary>
  755. public const int OptionalForeignEnumFieldNumber = 22;
  756. private readonly static global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnumDefaultValue = global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo;
  757. private global::ProtobufTestMessages.Proto2.ForeignEnumProto2 optionalForeignEnum_;
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnum {
  760. get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
  761. set {
  762. _hasBits0 |= 16384;
  763. optionalForeignEnum_ = value;
  764. }
  765. }
  766. /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  768. public bool HasOptionalForeignEnum {
  769. get { return (_hasBits0 & 16384) != 0; }
  770. }
  771. /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  773. public void ClearOptionalForeignEnum() {
  774. _hasBits0 &= ~16384;
  775. }
  776. /// <summary>Field number for the "optional_string_piece" field.</summary>
  777. public const int OptionalStringPieceFieldNumber = 24;
  778. private readonly static string OptionalStringPieceDefaultValue = "";
  779. private string optionalStringPiece_;
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  781. public string OptionalStringPiece {
  782. get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
  783. set {
  784. optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  785. }
  786. }
  787. /// <summary>Gets whether the "optional_string_piece" field is set</summary>
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. public bool HasOptionalStringPiece {
  790. get { return optionalStringPiece_ != null; }
  791. }
  792. /// <summary>Clears the value of the "optional_string_piece" field</summary>
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  794. public void ClearOptionalStringPiece() {
  795. optionalStringPiece_ = null;
  796. }
  797. /// <summary>Field number for the "optional_cord" field.</summary>
  798. public const int OptionalCordFieldNumber = 25;
  799. private readonly static string OptionalCordDefaultValue = "";
  800. private string optionalCord_;
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  802. public string OptionalCord {
  803. get { return optionalCord_ ?? OptionalCordDefaultValue; }
  804. set {
  805. optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  806. }
  807. }
  808. /// <summary>Gets whether the "optional_cord" field is set</summary>
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  810. public bool HasOptionalCord {
  811. get { return optionalCord_ != null; }
  812. }
  813. /// <summary>Clears the value of the "optional_cord" field</summary>
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  815. public void ClearOptionalCord() {
  816. optionalCord_ = null;
  817. }
  818. /// <summary>Field number for the "recursive_message" field.</summary>
  819. public const int RecursiveMessageFieldNumber = 27;
  820. private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 recursiveMessage_;
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 RecursiveMessage {
  823. get { return recursiveMessage_; }
  824. set {
  825. recursiveMessage_ = value;
  826. }
  827. }
  828. /// <summary>Gets whether the recursive_message field is set</summary>
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  830. public bool HasRecursiveMessage {
  831. get { return recursiveMessage_ != null; }
  832. }
  833. /// <summary>Clears the value of the recursive_message field</summary>
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  835. public void ClearRecursiveMessage() {
  836. recursiveMessage_ = null;
  837. }
  838. /// <summary>Field number for the "repeated_int32" field.</summary>
  839. public const int RepeatedInt32FieldNumber = 31;
  840. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  841. = pb::FieldCodec.ForInt32(248);
  842. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  843. /// <summary>
  844. /// Repeated
  845. /// </summary>
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  847. public pbc::RepeatedField<int> RepeatedInt32 {
  848. get { return repeatedInt32_; }
  849. }
  850. /// <summary>Field number for the "repeated_int64" field.</summary>
  851. public const int RepeatedInt64FieldNumber = 32;
  852. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  853. = pb::FieldCodec.ForInt64(256);
  854. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  856. public pbc::RepeatedField<long> RepeatedInt64 {
  857. get { return repeatedInt64_; }
  858. }
  859. /// <summary>Field number for the "repeated_uint32" field.</summary>
  860. public const int RepeatedUint32FieldNumber = 33;
  861. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  862. = pb::FieldCodec.ForUInt32(264);
  863. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  865. public pbc::RepeatedField<uint> RepeatedUint32 {
  866. get { return repeatedUint32_; }
  867. }
  868. /// <summary>Field number for the "repeated_uint64" field.</summary>
  869. public const int RepeatedUint64FieldNumber = 34;
  870. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  871. = pb::FieldCodec.ForUInt64(272);
  872. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  874. public pbc::RepeatedField<ulong> RepeatedUint64 {
  875. get { return repeatedUint64_; }
  876. }
  877. /// <summary>Field number for the "repeated_sint32" field.</summary>
  878. public const int RepeatedSint32FieldNumber = 35;
  879. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  880. = pb::FieldCodec.ForSInt32(280);
  881. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. public pbc::RepeatedField<int> RepeatedSint32 {
  884. get { return repeatedSint32_; }
  885. }
  886. /// <summary>Field number for the "repeated_sint64" field.</summary>
  887. public const int RepeatedSint64FieldNumber = 36;
  888. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  889. = pb::FieldCodec.ForSInt64(288);
  890. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  892. public pbc::RepeatedField<long> RepeatedSint64 {
  893. get { return repeatedSint64_; }
  894. }
  895. /// <summary>Field number for the "repeated_fixed32" field.</summary>
  896. public const int RepeatedFixed32FieldNumber = 37;
  897. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  898. = pb::FieldCodec.ForFixed32(301);
  899. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  901. public pbc::RepeatedField<uint> RepeatedFixed32 {
  902. get { return repeatedFixed32_; }
  903. }
  904. /// <summary>Field number for the "repeated_fixed64" field.</summary>
  905. public const int RepeatedFixed64FieldNumber = 38;
  906. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  907. = pb::FieldCodec.ForFixed64(305);
  908. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  910. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  911. get { return repeatedFixed64_; }
  912. }
  913. /// <summary>Field number for the "repeated_sfixed32" field.</summary>
  914. public const int RepeatedSfixed32FieldNumber = 39;
  915. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  916. = pb::FieldCodec.ForSFixed32(317);
  917. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public pbc::RepeatedField<int> RepeatedSfixed32 {
  920. get { return repeatedSfixed32_; }
  921. }
  922. /// <summary>Field number for the "repeated_sfixed64" field.</summary>
  923. public const int RepeatedSfixed64FieldNumber = 40;
  924. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  925. = pb::FieldCodec.ForSFixed64(321);
  926. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  928. public pbc::RepeatedField<long> RepeatedSfixed64 {
  929. get { return repeatedSfixed64_; }
  930. }
  931. /// <summary>Field number for the "repeated_float" field.</summary>
  932. public const int RepeatedFloatFieldNumber = 41;
  933. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  934. = pb::FieldCodec.ForFloat(333);
  935. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. public pbc::RepeatedField<float> RepeatedFloat {
  938. get { return repeatedFloat_; }
  939. }
  940. /// <summary>Field number for the "repeated_double" field.</summary>
  941. public const int RepeatedDoubleFieldNumber = 42;
  942. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  943. = pb::FieldCodec.ForDouble(337);
  944. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. public pbc::RepeatedField<double> RepeatedDouble {
  947. get { return repeatedDouble_; }
  948. }
  949. /// <summary>Field number for the "repeated_bool" field.</summary>
  950. public const int RepeatedBoolFieldNumber = 43;
  951. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  952. = pb::FieldCodec.ForBool(344);
  953. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  955. public pbc::RepeatedField<bool> RepeatedBool {
  956. get { return repeatedBool_; }
  957. }
  958. /// <summary>Field number for the "repeated_string" field.</summary>
  959. public const int RepeatedStringFieldNumber = 44;
  960. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  961. = pb::FieldCodec.ForString(354);
  962. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. public pbc::RepeatedField<string> RepeatedString {
  965. get { return repeatedString_; }
  966. }
  967. /// <summary>Field number for the "repeated_bytes" field.</summary>
  968. public const int RepeatedBytesFieldNumber = 45;
  969. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  970. = pb::FieldCodec.ForBytes(362);
  971. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  974. get { return repeatedBytes_; }
  975. }
  976. /// <summary>Field number for the "repeated_nested_message" field.</summary>
  977. public const int RepeatedNestedMessageFieldNumber = 48;
  978. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  979. = pb::FieldCodec.ForMessage(386, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser);
  980. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>();
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  982. public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> RepeatedNestedMessage {
  983. get { return repeatedNestedMessage_; }
  984. }
  985. /// <summary>Field number for the "repeated_foreign_message" field.</summary>
  986. public const int RepeatedForeignMessageFieldNumber = 49;
  987. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> _repeated_repeatedForeignMessage_codec
  988. = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser);
  989. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> repeatedForeignMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2>();
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  991. public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> RepeatedForeignMessage {
  992. get { return repeatedForeignMessage_; }
  993. }
  994. /// <summary>Field number for the "repeated_nested_enum" field.</summary>
  995. public const int RepeatedNestedEnumFieldNumber = 51;
  996. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  997. = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
  998. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1000. public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> RepeatedNestedEnum {
  1001. get { return repeatedNestedEnum_; }
  1002. }
  1003. /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
  1004. public const int RepeatedForeignEnumFieldNumber = 52;
  1005. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> _repeated_repeatedForeignEnum_codec
  1006. = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x);
  1007. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2>();
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1009. public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> RepeatedForeignEnum {
  1010. get { return repeatedForeignEnum_; }
  1011. }
  1012. /// <summary>Field number for the "repeated_string_piece" field.</summary>
  1013. public const int RepeatedStringPieceFieldNumber = 54;
  1014. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
  1015. = pb::FieldCodec.ForString(434);
  1016. private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1018. public pbc::RepeatedField<string> RepeatedStringPiece {
  1019. get { return repeatedStringPiece_; }
  1020. }
  1021. /// <summary>Field number for the "repeated_cord" field.</summary>
  1022. public const int RepeatedCordFieldNumber = 55;
  1023. private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
  1024. = pb::FieldCodec.ForString(442);
  1025. private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1027. public pbc::RepeatedField<string> RepeatedCord {
  1028. get { return repeatedCord_; }
  1029. }
  1030. /// <summary>Field number for the "map_int32_int32" field.</summary>
  1031. public const int MapInt32Int32FieldNumber = 56;
  1032. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  1033. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 450);
  1034. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  1035. /// <summary>
  1036. /// Map
  1037. /// </summary>
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1039. public pbc::MapField<int, int> MapInt32Int32 {
  1040. get { return mapInt32Int32_; }
  1041. }
  1042. /// <summary>Field number for the "map_int64_int64" field.</summary>
  1043. public const int MapInt64Int64FieldNumber = 57;
  1044. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  1045. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 458);
  1046. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1048. public pbc::MapField<long, long> MapInt64Int64 {
  1049. get { return mapInt64Int64_; }
  1050. }
  1051. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  1052. public const int MapUint32Uint32FieldNumber = 58;
  1053. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  1054. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 466);
  1055. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. public pbc::MapField<uint, uint> MapUint32Uint32 {
  1058. get { return mapUint32Uint32_; }
  1059. }
  1060. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  1061. public const int MapUint64Uint64FieldNumber = 59;
  1062. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  1063. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 474);
  1064. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1066. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  1067. get { return mapUint64Uint64_; }
  1068. }
  1069. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  1070. public const int MapSint32Sint32FieldNumber = 60;
  1071. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  1072. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 482);
  1073. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1075. public pbc::MapField<int, int> MapSint32Sint32 {
  1076. get { return mapSint32Sint32_; }
  1077. }
  1078. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  1079. public const int MapSint64Sint64FieldNumber = 61;
  1080. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  1081. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 490);
  1082. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1084. public pbc::MapField<long, long> MapSint64Sint64 {
  1085. get { return mapSint64Sint64_; }
  1086. }
  1087. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  1088. public const int MapFixed32Fixed32FieldNumber = 62;
  1089. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  1090. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 498);
  1091. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1093. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  1094. get { return mapFixed32Fixed32_; }
  1095. }
  1096. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  1097. public const int MapFixed64Fixed64FieldNumber = 63;
  1098. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  1099. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 506);
  1100. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1102. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  1103. get { return mapFixed64Fixed64_; }
  1104. }
  1105. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  1106. public const int MapSfixed32Sfixed32FieldNumber = 64;
  1107. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  1108. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 514);
  1109. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1111. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  1112. get { return mapSfixed32Sfixed32_; }
  1113. }
  1114. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  1115. public const int MapSfixed64Sfixed64FieldNumber = 65;
  1116. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  1117. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 522);
  1118. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1120. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  1121. get { return mapSfixed64Sfixed64_; }
  1122. }
  1123. /// <summary>Field number for the "map_int32_float" field.</summary>
  1124. public const int MapInt32FloatFieldNumber = 66;
  1125. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  1126. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 530);
  1127. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1129. public pbc::MapField<int, float> MapInt32Float {
  1130. get { return mapInt32Float_; }
  1131. }
  1132. /// <summary>Field number for the "map_int32_double" field.</summary>
  1133. public const int MapInt32DoubleFieldNumber = 67;
  1134. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  1135. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 538);
  1136. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1138. public pbc::MapField<int, double> MapInt32Double {
  1139. get { return mapInt32Double_; }
  1140. }
  1141. /// <summary>Field number for the "map_bool_bool" field.</summary>
  1142. public const int MapBoolBoolFieldNumber = 68;
  1143. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  1144. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 546);
  1145. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1147. public pbc::MapField<bool, bool> MapBoolBool {
  1148. get { return mapBoolBool_; }
  1149. }
  1150. /// <summary>Field number for the "map_string_string" field.</summary>
  1151. public const int MapStringStringFieldNumber = 69;
  1152. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  1153. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 554);
  1154. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1156. public pbc::MapField<string, string> MapStringString {
  1157. get { return mapStringString_; }
  1158. }
  1159. /// <summary>Field number for the "map_string_bytes" field.</summary>
  1160. public const int MapStringBytesFieldNumber = 70;
  1161. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
  1162. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 562);
  1163. private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1165. public pbc::MapField<string, pb::ByteString> MapStringBytes {
  1166. get { return mapStringBytes_; }
  1167. }
  1168. /// <summary>Field number for the "map_string_nested_message" field.</summary>
  1169. public const int MapStringNestedMessageFieldNumber = 71;
  1170. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
  1171. = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser), 570);
  1172. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>();
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1174. public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> MapStringNestedMessage {
  1175. get { return mapStringNestedMessage_; }
  1176. }
  1177. /// <summary>Field number for the "map_string_foreign_message" field.</summary>
  1178. public const int MapStringForeignMessageFieldNumber = 72;
  1179. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec _map_mapStringForeignMessage_codec
  1180. = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser), 578);
  1181. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> mapStringForeignMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>();
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1183. public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> MapStringForeignMessage {
  1184. get { return mapStringForeignMessage_; }
  1185. }
  1186. /// <summary>Field number for the "map_string_nested_enum" field.</summary>
  1187. public const int MapStringNestedEnumFieldNumber = 73;
  1188. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
  1189. = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo), 586);
  1190. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1192. public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> MapStringNestedEnum {
  1193. get { return mapStringNestedEnum_; }
  1194. }
  1195. /// <summary>Field number for the "map_string_foreign_enum" field.</summary>
  1196. public const int MapStringForeignEnumFieldNumber = 74;
  1197. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec _map_mapStringForeignEnum_codec
  1198. = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x, global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo), 594);
  1199. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>();
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1201. public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> MapStringForeignEnum {
  1202. get { return mapStringForeignEnum_; }
  1203. }
  1204. /// <summary>Field number for the "oneof_uint32" field.</summary>
  1205. public const int OneofUint32FieldNumber = 111;
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1207. public uint OneofUint32 {
  1208. get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
  1209. set {
  1210. oneofField_ = value;
  1211. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  1212. }
  1213. }
  1214. /// <summary>Gets whether the "oneof_uint32" field is set</summary>
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1216. public bool HasOneofUint32 {
  1217. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
  1218. }
  1219. /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1221. public void ClearOneofUint32() {
  1222. if (HasOneofUint32) {
  1223. ClearOneofField();
  1224. }
  1225. }
  1226. /// <summary>Field number for the "oneof_nested_message" field.</summary>
  1227. public const int OneofNestedMessageFieldNumber = 112;
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1229. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OneofNestedMessage {
  1230. get { return HasOneofNestedMessage ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage) oneofField_ : null; }
  1231. set {
  1232. oneofField_ = value;
  1233. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  1234. }
  1235. }
  1236. /// <summary>Gets whether the "oneof_nested_message" field is set</summary>
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1238. public bool HasOneofNestedMessage {
  1239. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage; }
  1240. }
  1241. /// <summary> Clears the value of the oneof if it's currently set to "oneof_nested_message" </summary>
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1243. public void ClearOneofNestedMessage() {
  1244. if (HasOneofNestedMessage) {
  1245. ClearOneofField();
  1246. }
  1247. }
  1248. /// <summary>Field number for the "oneof_string" field.</summary>
  1249. public const int OneofStringFieldNumber = 113;
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1251. public string OneofString {
  1252. get { return HasOneofString ? (string) oneofField_ : ""; }
  1253. set {
  1254. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1255. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  1256. }
  1257. }
  1258. /// <summary>Gets whether the "oneof_string" field is set</summary>
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1260. public bool HasOneofString {
  1261. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
  1262. }
  1263. /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1265. public void ClearOneofString() {
  1266. if (HasOneofString) {
  1267. ClearOneofField();
  1268. }
  1269. }
  1270. /// <summary>Field number for the "oneof_bytes" field.</summary>
  1271. public const int OneofBytesFieldNumber = 114;
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1273. public pb::ByteString OneofBytes {
  1274. get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  1275. set {
  1276. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1277. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  1278. }
  1279. }
  1280. /// <summary>Gets whether the "oneof_bytes" field is set</summary>
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1282. public bool HasOneofBytes {
  1283. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
  1284. }
  1285. /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1287. public void ClearOneofBytes() {
  1288. if (HasOneofBytes) {
  1289. ClearOneofField();
  1290. }
  1291. }
  1292. /// <summary>Field number for the "oneof_bool" field.</summary>
  1293. public const int OneofBoolFieldNumber = 115;
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1295. public bool OneofBool {
  1296. get { return HasOneofBool ? (bool) oneofField_ : false; }
  1297. set {
  1298. oneofField_ = value;
  1299. oneofFieldCase_ = OneofFieldOneofCase.OneofBool;
  1300. }
  1301. }
  1302. /// <summary>Gets whether the "oneof_bool" field is set</summary>
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1304. public bool HasOneofBool {
  1305. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBool; }
  1306. }
  1307. /// <summary> Clears the value of the oneof if it's currently set to "oneof_bool" </summary>
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1309. public void ClearOneofBool() {
  1310. if (HasOneofBool) {
  1311. ClearOneofField();
  1312. }
  1313. }
  1314. /// <summary>Field number for the "oneof_uint64" field.</summary>
  1315. public const int OneofUint64FieldNumber = 116;
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1317. public ulong OneofUint64 {
  1318. get { return HasOneofUint64 ? (ulong) oneofField_ : 0UL; }
  1319. set {
  1320. oneofField_ = value;
  1321. oneofFieldCase_ = OneofFieldOneofCase.OneofUint64;
  1322. }
  1323. }
  1324. /// <summary>Gets whether the "oneof_uint64" field is set</summary>
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1326. public bool HasOneofUint64 {
  1327. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint64; }
  1328. }
  1329. /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint64" </summary>
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1331. public void ClearOneofUint64() {
  1332. if (HasOneofUint64) {
  1333. ClearOneofField();
  1334. }
  1335. }
  1336. /// <summary>Field number for the "oneof_float" field.</summary>
  1337. public const int OneofFloatFieldNumber = 117;
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1339. public float OneofFloat {
  1340. get { return HasOneofFloat ? (float) oneofField_ : 0F; }
  1341. set {
  1342. oneofField_ = value;
  1343. oneofFieldCase_ = OneofFieldOneofCase.OneofFloat;
  1344. }
  1345. }
  1346. /// <summary>Gets whether the "oneof_float" field is set</summary>
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1348. public bool HasOneofFloat {
  1349. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofFloat; }
  1350. }
  1351. /// <summary> Clears the value of the oneof if it's currently set to "oneof_float" </summary>
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1353. public void ClearOneofFloat() {
  1354. if (HasOneofFloat) {
  1355. ClearOneofField();
  1356. }
  1357. }
  1358. /// <summary>Field number for the "oneof_double" field.</summary>
  1359. public const int OneofDoubleFieldNumber = 118;
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1361. public double OneofDouble {
  1362. get { return HasOneofDouble ? (double) oneofField_ : 0D; }
  1363. set {
  1364. oneofField_ = value;
  1365. oneofFieldCase_ = OneofFieldOneofCase.OneofDouble;
  1366. }
  1367. }
  1368. /// <summary>Gets whether the "oneof_double" field is set</summary>
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1370. public bool HasOneofDouble {
  1371. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofDouble; }
  1372. }
  1373. /// <summary> Clears the value of the oneof if it's currently set to "oneof_double" </summary>
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1375. public void ClearOneofDouble() {
  1376. if (HasOneofDouble) {
  1377. ClearOneofField();
  1378. }
  1379. }
  1380. /// <summary>Field number for the "oneof_enum" field.</summary>
  1381. public const int OneofEnumFieldNumber = 119;
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OneofEnum {
  1384. get { return HasOneofEnum ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) oneofField_ : global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo; }
  1385. set {
  1386. oneofField_ = value;
  1387. oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
  1388. }
  1389. }
  1390. /// <summary>Gets whether the "oneof_enum" field is set</summary>
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1392. public bool HasOneofEnum {
  1393. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofEnum; }
  1394. }
  1395. /// <summary> Clears the value of the oneof if it's currently set to "oneof_enum" </summary>
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1397. public void ClearOneofEnum() {
  1398. if (HasOneofEnum) {
  1399. ClearOneofField();
  1400. }
  1401. }
  1402. /// <summary>Field number for the "data" field.</summary>
  1403. public const int DataFieldNumber = 201;
  1404. private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data data_;
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1406. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data Data {
  1407. get { return data_; }
  1408. set {
  1409. data_ = value;
  1410. }
  1411. }
  1412. /// <summary>Gets whether the data field is set</summary>
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1414. public bool HasData {
  1415. get { return data_ != null; }
  1416. }
  1417. /// <summary>Clears the value of the data field</summary>
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1419. public void ClearData() {
  1420. data_ = null;
  1421. }
  1422. /// <summary>Field number for the "fieldname1" field.</summary>
  1423. public const int Fieldname1FieldNumber = 401;
  1424. private readonly static int Fieldname1DefaultValue = 0;
  1425. private int fieldname1_;
  1426. /// <summary>
  1427. /// Test field-name-to-JSON-name convention.
  1428. /// (protobuf says names can be any valid C/C++ identifier.)
  1429. /// </summary>
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1431. public int Fieldname1 {
  1432. get { if ((_hasBits0 & 2097152) != 0) { return fieldname1_; } else { return Fieldname1DefaultValue; } }
  1433. set {
  1434. _hasBits0 |= 2097152;
  1435. fieldname1_ = value;
  1436. }
  1437. }
  1438. /// <summary>Gets whether the "fieldname1" field is set</summary>
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1440. public bool HasFieldname1 {
  1441. get { return (_hasBits0 & 2097152) != 0; }
  1442. }
  1443. /// <summary>Clears the value of the "fieldname1" field</summary>
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1445. public void ClearFieldname1() {
  1446. _hasBits0 &= ~2097152;
  1447. }
  1448. /// <summary>Field number for the "field_name2" field.</summary>
  1449. public const int FieldName2FieldNumber = 402;
  1450. private readonly static int FieldName2DefaultValue = 0;
  1451. private int fieldName2_;
  1452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1453. public int FieldName2 {
  1454. get { if ((_hasBits0 & 4194304) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
  1455. set {
  1456. _hasBits0 |= 4194304;
  1457. fieldName2_ = value;
  1458. }
  1459. }
  1460. /// <summary>Gets whether the "field_name2" field is set</summary>
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1462. public bool HasFieldName2 {
  1463. get { return (_hasBits0 & 4194304) != 0; }
  1464. }
  1465. /// <summary>Clears the value of the "field_name2" field</summary>
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1467. public void ClearFieldName2() {
  1468. _hasBits0 &= ~4194304;
  1469. }
  1470. /// <summary>Field number for the "_field_name3" field.</summary>
  1471. public const int FieldName3FieldNumber = 403;
  1472. private readonly static int FieldName3DefaultValue = 0;
  1473. private int FieldName3_;
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1475. public int FieldName3 {
  1476. get { if ((_hasBits0 & 8388608) != 0) { return FieldName3_; } else { return FieldName3DefaultValue; } }
  1477. set {
  1478. _hasBits0 |= 8388608;
  1479. FieldName3_ = value;
  1480. }
  1481. }
  1482. /// <summary>Gets whether the "_field_name3" field is set</summary>
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1484. public bool HasFieldName3 {
  1485. get { return (_hasBits0 & 8388608) != 0; }
  1486. }
  1487. /// <summary>Clears the value of the "_field_name3" field</summary>
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1489. public void ClearFieldName3() {
  1490. _hasBits0 &= ~8388608;
  1491. }
  1492. /// <summary>Field number for the "field__name4_" field.</summary>
  1493. public const int FieldName4FieldNumber = 404;
  1494. private readonly static int FieldName4DefaultValue = 0;
  1495. private int fieldName4_;
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1497. public int FieldName4 {
  1498. get { if ((_hasBits0 & 16777216) != 0) { return fieldName4_; } else { return FieldName4DefaultValue; } }
  1499. set {
  1500. _hasBits0 |= 16777216;
  1501. fieldName4_ = value;
  1502. }
  1503. }
  1504. /// <summary>Gets whether the "field__name4_" field is set</summary>
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1506. public bool HasFieldName4 {
  1507. get { return (_hasBits0 & 16777216) != 0; }
  1508. }
  1509. /// <summary>Clears the value of the "field__name4_" field</summary>
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1511. public void ClearFieldName4() {
  1512. _hasBits0 &= ~16777216;
  1513. }
  1514. /// <summary>Field number for the "field0name5" field.</summary>
  1515. public const int Field0Name5FieldNumber = 405;
  1516. private readonly static int Field0Name5DefaultValue = 0;
  1517. private int field0Name5_;
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1519. public int Field0Name5 {
  1520. get { if ((_hasBits0 & 33554432) != 0) { return field0Name5_; } else { return Field0Name5DefaultValue; } }
  1521. set {
  1522. _hasBits0 |= 33554432;
  1523. field0Name5_ = value;
  1524. }
  1525. }
  1526. /// <summary>Gets whether the "field0name5" field is set</summary>
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1528. public bool HasField0Name5 {
  1529. get { return (_hasBits0 & 33554432) != 0; }
  1530. }
  1531. /// <summary>Clears the value of the "field0name5" field</summary>
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1533. public void ClearField0Name5() {
  1534. _hasBits0 &= ~33554432;
  1535. }
  1536. /// <summary>Field number for the "field_0_name6" field.</summary>
  1537. public const int Field0Name6FieldNumber = 406;
  1538. private readonly static int Field0Name6DefaultValue = 0;
  1539. private int field0Name6_;
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1541. public int Field0Name6 {
  1542. get { if ((_hasBits0 & 67108864) != 0) { return field0Name6_; } else { return Field0Name6DefaultValue; } }
  1543. set {
  1544. _hasBits0 |= 67108864;
  1545. field0Name6_ = value;
  1546. }
  1547. }
  1548. /// <summary>Gets whether the "field_0_name6" field is set</summary>
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1550. public bool HasField0Name6 {
  1551. get { return (_hasBits0 & 67108864) != 0; }
  1552. }
  1553. /// <summary>Clears the value of the "field_0_name6" field</summary>
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1555. public void ClearField0Name6() {
  1556. _hasBits0 &= ~67108864;
  1557. }
  1558. /// <summary>Field number for the "fieldName7" field.</summary>
  1559. public const int FieldName7FieldNumber = 407;
  1560. private readonly static int FieldName7DefaultValue = 0;
  1561. private int fieldName7_;
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1563. public int FieldName7 {
  1564. get { if ((_hasBits0 & 134217728) != 0) { return fieldName7_; } else { return FieldName7DefaultValue; } }
  1565. set {
  1566. _hasBits0 |= 134217728;
  1567. fieldName7_ = value;
  1568. }
  1569. }
  1570. /// <summary>Gets whether the "fieldName7" field is set</summary>
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1572. public bool HasFieldName7 {
  1573. get { return (_hasBits0 & 134217728) != 0; }
  1574. }
  1575. /// <summary>Clears the value of the "fieldName7" field</summary>
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1577. public void ClearFieldName7() {
  1578. _hasBits0 &= ~134217728;
  1579. }
  1580. /// <summary>Field number for the "FieldName8" field.</summary>
  1581. public const int FieldName8FieldNumber = 408;
  1582. private readonly static int FieldName8DefaultValue = 0;
  1583. private int fieldName8_;
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1585. public int FieldName8 {
  1586. get { if ((_hasBits0 & 268435456) != 0) { return fieldName8_; } else { return FieldName8DefaultValue; } }
  1587. set {
  1588. _hasBits0 |= 268435456;
  1589. fieldName8_ = value;
  1590. }
  1591. }
  1592. /// <summary>Gets whether the "FieldName8" field is set</summary>
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1594. public bool HasFieldName8 {
  1595. get { return (_hasBits0 & 268435456) != 0; }
  1596. }
  1597. /// <summary>Clears the value of the "FieldName8" field</summary>
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1599. public void ClearFieldName8() {
  1600. _hasBits0 &= ~268435456;
  1601. }
  1602. /// <summary>Field number for the "field_Name9" field.</summary>
  1603. public const int FieldName9FieldNumber = 409;
  1604. private readonly static int FieldName9DefaultValue = 0;
  1605. private int fieldName9_;
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1607. public int FieldName9 {
  1608. get { if ((_hasBits0 & 536870912) != 0) { return fieldName9_; } else { return FieldName9DefaultValue; } }
  1609. set {
  1610. _hasBits0 |= 536870912;
  1611. fieldName9_ = value;
  1612. }
  1613. }
  1614. /// <summary>Gets whether the "field_Name9" field is set</summary>
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1616. public bool HasFieldName9 {
  1617. get { return (_hasBits0 & 536870912) != 0; }
  1618. }
  1619. /// <summary>Clears the value of the "field_Name9" field</summary>
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1621. public void ClearFieldName9() {
  1622. _hasBits0 &= ~536870912;
  1623. }
  1624. /// <summary>Field number for the "Field_Name10" field.</summary>
  1625. public const int FieldName10FieldNumber = 410;
  1626. private readonly static int FieldName10DefaultValue = 0;
  1627. private int fieldName10_;
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1629. public int FieldName10 {
  1630. get { if ((_hasBits0 & 1073741824) != 0) { return fieldName10_; } else { return FieldName10DefaultValue; } }
  1631. set {
  1632. _hasBits0 |= 1073741824;
  1633. fieldName10_ = value;
  1634. }
  1635. }
  1636. /// <summary>Gets whether the "Field_Name10" field is set</summary>
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1638. public bool HasFieldName10 {
  1639. get { return (_hasBits0 & 1073741824) != 0; }
  1640. }
  1641. /// <summary>Clears the value of the "Field_Name10" field</summary>
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1643. public void ClearFieldName10() {
  1644. _hasBits0 &= ~1073741824;
  1645. }
  1646. /// <summary>Field number for the "FIELD_NAME11" field.</summary>
  1647. public const int FIELDNAME11FieldNumber = 411;
  1648. private readonly static int FIELDNAME11DefaultValue = 0;
  1649. private int fIELDNAME11_;
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1651. public int FIELDNAME11 {
  1652. get { if ((_hasBits0 & -2147483648) != 0) { return fIELDNAME11_; } else { return FIELDNAME11DefaultValue; } }
  1653. set {
  1654. _hasBits0 |= -2147483648;
  1655. fIELDNAME11_ = value;
  1656. }
  1657. }
  1658. /// <summary>Gets whether the "FIELD_NAME11" field is set</summary>
  1659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1660. public bool HasFIELDNAME11 {
  1661. get { return (_hasBits0 & -2147483648) != 0; }
  1662. }
  1663. /// <summary>Clears the value of the "FIELD_NAME11" field</summary>
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1665. public void ClearFIELDNAME11() {
  1666. _hasBits0 &= ~-2147483648;
  1667. }
  1668. /// <summary>Field number for the "FIELD_name12" field.</summary>
  1669. public const int FIELDName12FieldNumber = 412;
  1670. private readonly static int FIELDName12DefaultValue = 0;
  1671. private int fIELDName12_;
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1673. public int FIELDName12 {
  1674. get { if ((_hasBits1 & 1) != 0) { return fIELDName12_; } else { return FIELDName12DefaultValue; } }
  1675. set {
  1676. _hasBits1 |= 1;
  1677. fIELDName12_ = value;
  1678. }
  1679. }
  1680. /// <summary>Gets whether the "FIELD_name12" field is set</summary>
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1682. public bool HasFIELDName12 {
  1683. get { return (_hasBits1 & 1) != 0; }
  1684. }
  1685. /// <summary>Clears the value of the "FIELD_name12" field</summary>
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1687. public void ClearFIELDName12() {
  1688. _hasBits1 &= ~1;
  1689. }
  1690. /// <summary>Field number for the "__field_name13" field.</summary>
  1691. public const int FieldName13FieldNumber = 413;
  1692. private readonly static int FieldName13DefaultValue = 0;
  1693. private int FieldName13_;
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1695. public int FieldName13 {
  1696. get { if ((_hasBits1 & 2) != 0) { return FieldName13_; } else { return FieldName13DefaultValue; } }
  1697. set {
  1698. _hasBits1 |= 2;
  1699. FieldName13_ = value;
  1700. }
  1701. }
  1702. /// <summary>Gets whether the "__field_name13" field is set</summary>
  1703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1704. public bool HasFieldName13 {
  1705. get { return (_hasBits1 & 2) != 0; }
  1706. }
  1707. /// <summary>Clears the value of the "__field_name13" field</summary>
  1708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1709. public void ClearFieldName13() {
  1710. _hasBits1 &= ~2;
  1711. }
  1712. /// <summary>Field number for the "__Field_name14" field.</summary>
  1713. public const int FieldName14FieldNumber = 414;
  1714. private readonly static int FieldName14DefaultValue = 0;
  1715. private int FieldName14_;
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1717. public int FieldName14 {
  1718. get { if ((_hasBits1 & 4) != 0) { return FieldName14_; } else { return FieldName14DefaultValue; } }
  1719. set {
  1720. _hasBits1 |= 4;
  1721. FieldName14_ = value;
  1722. }
  1723. }
  1724. /// <summary>Gets whether the "__Field_name14" field is set</summary>
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1726. public bool HasFieldName14 {
  1727. get { return (_hasBits1 & 4) != 0; }
  1728. }
  1729. /// <summary>Clears the value of the "__Field_name14" field</summary>
  1730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1731. public void ClearFieldName14() {
  1732. _hasBits1 &= ~4;
  1733. }
  1734. /// <summary>Field number for the "field__name15" field.</summary>
  1735. public const int FieldName15FieldNumber = 415;
  1736. private readonly static int FieldName15DefaultValue = 0;
  1737. private int fieldName15_;
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1739. public int FieldName15 {
  1740. get { if ((_hasBits1 & 8) != 0) { return fieldName15_; } else { return FieldName15DefaultValue; } }
  1741. set {
  1742. _hasBits1 |= 8;
  1743. fieldName15_ = value;
  1744. }
  1745. }
  1746. /// <summary>Gets whether the "field__name15" field is set</summary>
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1748. public bool HasFieldName15 {
  1749. get { return (_hasBits1 & 8) != 0; }
  1750. }
  1751. /// <summary>Clears the value of the "field__name15" field</summary>
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1753. public void ClearFieldName15() {
  1754. _hasBits1 &= ~8;
  1755. }
  1756. /// <summary>Field number for the "field__Name16" field.</summary>
  1757. public const int FieldName16FieldNumber = 416;
  1758. private readonly static int FieldName16DefaultValue = 0;
  1759. private int fieldName16_;
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1761. public int FieldName16 {
  1762. get { if ((_hasBits1 & 16) != 0) { return fieldName16_; } else { return FieldName16DefaultValue; } }
  1763. set {
  1764. _hasBits1 |= 16;
  1765. fieldName16_ = value;
  1766. }
  1767. }
  1768. /// <summary>Gets whether the "field__Name16" field is set</summary>
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1770. public bool HasFieldName16 {
  1771. get { return (_hasBits1 & 16) != 0; }
  1772. }
  1773. /// <summary>Clears the value of the "field__Name16" field</summary>
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1775. public void ClearFieldName16() {
  1776. _hasBits1 &= ~16;
  1777. }
  1778. /// <summary>Field number for the "field_name17__" field.</summary>
  1779. public const int FieldName17FieldNumber = 417;
  1780. private readonly static int FieldName17DefaultValue = 0;
  1781. private int fieldName17_;
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1783. public int FieldName17 {
  1784. get { if ((_hasBits1 & 32) != 0) { return fieldName17_; } else { return FieldName17DefaultValue; } }
  1785. set {
  1786. _hasBits1 |= 32;
  1787. fieldName17_ = value;
  1788. }
  1789. }
  1790. /// <summary>Gets whether the "field_name17__" field is set</summary>
  1791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1792. public bool HasFieldName17 {
  1793. get { return (_hasBits1 & 32) != 0; }
  1794. }
  1795. /// <summary>Clears the value of the "field_name17__" field</summary>
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1797. public void ClearFieldName17() {
  1798. _hasBits1 &= ~32;
  1799. }
  1800. /// <summary>Field number for the "Field_name18__" field.</summary>
  1801. public const int FieldName18FieldNumber = 418;
  1802. private readonly static int FieldName18DefaultValue = 0;
  1803. private int fieldName18_;
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1805. public int FieldName18 {
  1806. get { if ((_hasBits1 & 64) != 0) { return fieldName18_; } else { return FieldName18DefaultValue; } }
  1807. set {
  1808. _hasBits1 |= 64;
  1809. fieldName18_ = value;
  1810. }
  1811. }
  1812. /// <summary>Gets whether the "Field_name18__" field is set</summary>
  1813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1814. public bool HasFieldName18 {
  1815. get { return (_hasBits1 & 64) != 0; }
  1816. }
  1817. /// <summary>Clears the value of the "Field_name18__" field</summary>
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1819. public void ClearFieldName18() {
  1820. _hasBits1 &= ~64;
  1821. }
  1822. private object oneofField_;
  1823. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  1824. public enum OneofFieldOneofCase {
  1825. None = 0,
  1826. OneofUint32 = 111,
  1827. OneofNestedMessage = 112,
  1828. OneofString = 113,
  1829. OneofBytes = 114,
  1830. OneofBool = 115,
  1831. OneofUint64 = 116,
  1832. OneofFloat = 117,
  1833. OneofDouble = 118,
  1834. OneofEnum = 119,
  1835. }
  1836. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1838. public OneofFieldOneofCase OneofFieldCase {
  1839. get { return oneofFieldCase_; }
  1840. }
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1842. public void ClearOneofField() {
  1843. oneofFieldCase_ = OneofFieldOneofCase.None;
  1844. oneofField_ = null;
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1847. public override bool Equals(object other) {
  1848. return Equals(other as TestAllTypesProto2);
  1849. }
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1851. public bool Equals(TestAllTypesProto2 other) {
  1852. if (ReferenceEquals(other, null)) {
  1853. return false;
  1854. }
  1855. if (ReferenceEquals(other, this)) {
  1856. return true;
  1857. }
  1858. if (OptionalInt32 != other.OptionalInt32) return false;
  1859. if (OptionalInt64 != other.OptionalInt64) return false;
  1860. if (OptionalUint32 != other.OptionalUint32) return false;
  1861. if (OptionalUint64 != other.OptionalUint64) return false;
  1862. if (OptionalSint32 != other.OptionalSint32) return false;
  1863. if (OptionalSint64 != other.OptionalSint64) return false;
  1864. if (OptionalFixed32 != other.OptionalFixed32) return false;
  1865. if (OptionalFixed64 != other.OptionalFixed64) return false;
  1866. if (OptionalSfixed32 != other.OptionalSfixed32) return false;
  1867. if (OptionalSfixed64 != other.OptionalSfixed64) return false;
  1868. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
  1869. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
  1870. if (OptionalBool != other.OptionalBool) return false;
  1871. if (OptionalString != other.OptionalString) return false;
  1872. if (OptionalBytes != other.OptionalBytes) return false;
  1873. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  1874. if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
  1875. if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
  1876. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  1877. if (OptionalStringPiece != other.OptionalStringPiece) return false;
  1878. if (OptionalCord != other.OptionalCord) return false;
  1879. if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
  1880. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  1881. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  1882. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  1883. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  1884. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  1885. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  1886. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  1887. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  1888. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  1889. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  1890. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  1891. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  1892. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  1893. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  1894. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  1895. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  1896. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  1897. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  1898. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  1899. if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
  1900. if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
  1901. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1902. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1903. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1904. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1905. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1906. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1907. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1908. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1909. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1910. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1911. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1912. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1913. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1914. if (!MapStringString.Equals(other.MapStringString)) return false;
  1915. if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
  1916. if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
  1917. if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
  1918. if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
  1919. if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
  1920. if (OneofUint32 != other.OneofUint32) return false;
  1921. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  1922. if (OneofString != other.OneofString) return false;
  1923. if (OneofBytes != other.OneofBytes) return false;
  1924. if (OneofBool != other.OneofBool) return false;
  1925. if (OneofUint64 != other.OneofUint64) return false;
  1926. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
  1927. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
  1928. if (OneofEnum != other.OneofEnum) return false;
  1929. if (!object.Equals(Data, other.Data)) return false;
  1930. if (Fieldname1 != other.Fieldname1) return false;
  1931. if (FieldName2 != other.FieldName2) return false;
  1932. if (FieldName3 != other.FieldName3) return false;
  1933. if (FieldName4 != other.FieldName4) return false;
  1934. if (Field0Name5 != other.Field0Name5) return false;
  1935. if (Field0Name6 != other.Field0Name6) return false;
  1936. if (FieldName7 != other.FieldName7) return false;
  1937. if (FieldName8 != other.FieldName8) return false;
  1938. if (FieldName9 != other.FieldName9) return false;
  1939. if (FieldName10 != other.FieldName10) return false;
  1940. if (FIELDNAME11 != other.FIELDNAME11) return false;
  1941. if (FIELDName12 != other.FIELDName12) return false;
  1942. if (FieldName13 != other.FieldName13) return false;
  1943. if (FieldName14 != other.FieldName14) return false;
  1944. if (FieldName15 != other.FieldName15) return false;
  1945. if (FieldName16 != other.FieldName16) return false;
  1946. if (FieldName17 != other.FieldName17) return false;
  1947. if (FieldName18 != other.FieldName18) return false;
  1948. if (OneofFieldCase != other.OneofFieldCase) return false;
  1949. if (!Equals(_extensions, other._extensions)) {
  1950. return false;
  1951. }
  1952. return Equals(_unknownFields, other._unknownFields);
  1953. }
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1955. public override int GetHashCode() {
  1956. int hash = 1;
  1957. if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
  1958. if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
  1959. if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
  1960. if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
  1961. if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
  1962. if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
  1963. if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
  1964. if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
  1965. if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
  1966. if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
  1967. if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
  1968. if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
  1969. if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
  1970. if (HasOptionalString) hash ^= OptionalString.GetHashCode();
  1971. if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
  1972. if (HasOptionalNestedMessage) hash ^= OptionalNestedMessage.GetHashCode();
  1973. if (HasOptionalForeignMessage) hash ^= OptionalForeignMessage.GetHashCode();
  1974. if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
  1975. if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
  1976. if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
  1977. if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
  1978. if (HasRecursiveMessage) hash ^= RecursiveMessage.GetHashCode();
  1979. hash ^= repeatedInt32_.GetHashCode();
  1980. hash ^= repeatedInt64_.GetHashCode();
  1981. hash ^= repeatedUint32_.GetHashCode();
  1982. hash ^= repeatedUint64_.GetHashCode();
  1983. hash ^= repeatedSint32_.GetHashCode();
  1984. hash ^= repeatedSint64_.GetHashCode();
  1985. hash ^= repeatedFixed32_.GetHashCode();
  1986. hash ^= repeatedFixed64_.GetHashCode();
  1987. hash ^= repeatedSfixed32_.GetHashCode();
  1988. hash ^= repeatedSfixed64_.GetHashCode();
  1989. hash ^= repeatedFloat_.GetHashCode();
  1990. hash ^= repeatedDouble_.GetHashCode();
  1991. hash ^= repeatedBool_.GetHashCode();
  1992. hash ^= repeatedString_.GetHashCode();
  1993. hash ^= repeatedBytes_.GetHashCode();
  1994. hash ^= repeatedNestedMessage_.GetHashCode();
  1995. hash ^= repeatedForeignMessage_.GetHashCode();
  1996. hash ^= repeatedNestedEnum_.GetHashCode();
  1997. hash ^= repeatedForeignEnum_.GetHashCode();
  1998. hash ^= repeatedStringPiece_.GetHashCode();
  1999. hash ^= repeatedCord_.GetHashCode();
  2000. hash ^= MapInt32Int32.GetHashCode();
  2001. hash ^= MapInt64Int64.GetHashCode();
  2002. hash ^= MapUint32Uint32.GetHashCode();
  2003. hash ^= MapUint64Uint64.GetHashCode();
  2004. hash ^= MapSint32Sint32.GetHashCode();
  2005. hash ^= MapSint64Sint64.GetHashCode();
  2006. hash ^= MapFixed32Fixed32.GetHashCode();
  2007. hash ^= MapFixed64Fixed64.GetHashCode();
  2008. hash ^= MapSfixed32Sfixed32.GetHashCode();
  2009. hash ^= MapSfixed64Sfixed64.GetHashCode();
  2010. hash ^= MapInt32Float.GetHashCode();
  2011. hash ^= MapInt32Double.GetHashCode();
  2012. hash ^= MapBoolBool.GetHashCode();
  2013. hash ^= MapStringString.GetHashCode();
  2014. hash ^= MapStringBytes.GetHashCode();
  2015. hash ^= MapStringNestedMessage.GetHashCode();
  2016. hash ^= MapStringForeignMessage.GetHashCode();
  2017. hash ^= MapStringNestedEnum.GetHashCode();
  2018. hash ^= MapStringForeignEnum.GetHashCode();
  2019. if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
  2020. if (HasOneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  2021. if (HasOneofString) hash ^= OneofString.GetHashCode();
  2022. if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
  2023. if (HasOneofBool) hash ^= OneofBool.GetHashCode();
  2024. if (HasOneofUint64) hash ^= OneofUint64.GetHashCode();
  2025. if (HasOneofFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneofFloat);
  2026. if (HasOneofDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OneofDouble);
  2027. if (HasOneofEnum) hash ^= OneofEnum.GetHashCode();
  2028. if (HasData) hash ^= Data.GetHashCode();
  2029. if (HasFieldname1) hash ^= Fieldname1.GetHashCode();
  2030. if (HasFieldName2) hash ^= FieldName2.GetHashCode();
  2031. if (HasFieldName3) hash ^= FieldName3.GetHashCode();
  2032. if (HasFieldName4) hash ^= FieldName4.GetHashCode();
  2033. if (HasField0Name5) hash ^= Field0Name5.GetHashCode();
  2034. if (HasField0Name6) hash ^= Field0Name6.GetHashCode();
  2035. if (HasFieldName7) hash ^= FieldName7.GetHashCode();
  2036. if (HasFieldName8) hash ^= FieldName8.GetHashCode();
  2037. if (HasFieldName9) hash ^= FieldName9.GetHashCode();
  2038. if (HasFieldName10) hash ^= FieldName10.GetHashCode();
  2039. if (HasFIELDNAME11) hash ^= FIELDNAME11.GetHashCode();
  2040. if (HasFIELDName12) hash ^= FIELDName12.GetHashCode();
  2041. if (HasFieldName13) hash ^= FieldName13.GetHashCode();
  2042. if (HasFieldName14) hash ^= FieldName14.GetHashCode();
  2043. if (HasFieldName15) hash ^= FieldName15.GetHashCode();
  2044. if (HasFieldName16) hash ^= FieldName16.GetHashCode();
  2045. if (HasFieldName17) hash ^= FieldName17.GetHashCode();
  2046. if (HasFieldName18) hash ^= FieldName18.GetHashCode();
  2047. hash ^= (int) oneofFieldCase_;
  2048. if (_extensions != null) {
  2049. hash ^= _extensions.GetHashCode();
  2050. }
  2051. if (_unknownFields != null) {
  2052. hash ^= _unknownFields.GetHashCode();
  2053. }
  2054. return hash;
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2057. public override string ToString() {
  2058. return pb::JsonFormatter.ToDiagnosticString(this);
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2061. public void WriteTo(pb::CodedOutputStream output) {
  2062. if (HasOptionalInt32) {
  2063. output.WriteRawTag(8);
  2064. output.WriteInt32(OptionalInt32);
  2065. }
  2066. if (HasOptionalInt64) {
  2067. output.WriteRawTag(16);
  2068. output.WriteInt64(OptionalInt64);
  2069. }
  2070. if (HasOptionalUint32) {
  2071. output.WriteRawTag(24);
  2072. output.WriteUInt32(OptionalUint32);
  2073. }
  2074. if (HasOptionalUint64) {
  2075. output.WriteRawTag(32);
  2076. output.WriteUInt64(OptionalUint64);
  2077. }
  2078. if (HasOptionalSint32) {
  2079. output.WriteRawTag(40);
  2080. output.WriteSInt32(OptionalSint32);
  2081. }
  2082. if (HasOptionalSint64) {
  2083. output.WriteRawTag(48);
  2084. output.WriteSInt64(OptionalSint64);
  2085. }
  2086. if (HasOptionalFixed32) {
  2087. output.WriteRawTag(61);
  2088. output.WriteFixed32(OptionalFixed32);
  2089. }
  2090. if (HasOptionalFixed64) {
  2091. output.WriteRawTag(65);
  2092. output.WriteFixed64(OptionalFixed64);
  2093. }
  2094. if (HasOptionalSfixed32) {
  2095. output.WriteRawTag(77);
  2096. output.WriteSFixed32(OptionalSfixed32);
  2097. }
  2098. if (HasOptionalSfixed64) {
  2099. output.WriteRawTag(81);
  2100. output.WriteSFixed64(OptionalSfixed64);
  2101. }
  2102. if (HasOptionalFloat) {
  2103. output.WriteRawTag(93);
  2104. output.WriteFloat(OptionalFloat);
  2105. }
  2106. if (HasOptionalDouble) {
  2107. output.WriteRawTag(97);
  2108. output.WriteDouble(OptionalDouble);
  2109. }
  2110. if (HasOptionalBool) {
  2111. output.WriteRawTag(104);
  2112. output.WriteBool(OptionalBool);
  2113. }
  2114. if (HasOptionalString) {
  2115. output.WriteRawTag(114);
  2116. output.WriteString(OptionalString);
  2117. }
  2118. if (HasOptionalBytes) {
  2119. output.WriteRawTag(122);
  2120. output.WriteBytes(OptionalBytes);
  2121. }
  2122. if (HasOptionalNestedMessage) {
  2123. output.WriteRawTag(146, 1);
  2124. output.WriteMessage(OptionalNestedMessage);
  2125. }
  2126. if (HasOptionalForeignMessage) {
  2127. output.WriteRawTag(154, 1);
  2128. output.WriteMessage(OptionalForeignMessage);
  2129. }
  2130. if (HasOptionalNestedEnum) {
  2131. output.WriteRawTag(168, 1);
  2132. output.WriteEnum((int) OptionalNestedEnum);
  2133. }
  2134. if (HasOptionalForeignEnum) {
  2135. output.WriteRawTag(176, 1);
  2136. output.WriteEnum((int) OptionalForeignEnum);
  2137. }
  2138. if (HasOptionalStringPiece) {
  2139. output.WriteRawTag(194, 1);
  2140. output.WriteString(OptionalStringPiece);
  2141. }
  2142. if (HasOptionalCord) {
  2143. output.WriteRawTag(202, 1);
  2144. output.WriteString(OptionalCord);
  2145. }
  2146. if (HasRecursiveMessage) {
  2147. output.WriteRawTag(218, 1);
  2148. output.WriteMessage(RecursiveMessage);
  2149. }
  2150. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  2151. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  2152. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  2153. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  2154. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  2155. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  2156. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  2157. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  2158. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  2159. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  2160. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  2161. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  2162. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  2163. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  2164. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  2165. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  2166. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  2167. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  2168. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  2169. repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
  2170. repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
  2171. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  2172. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  2173. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  2174. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  2175. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  2176. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  2177. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  2178. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  2179. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  2180. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  2181. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  2182. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  2183. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  2184. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  2185. mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
  2186. mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
  2187. mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
  2188. mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
  2189. mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
  2190. if (HasOneofUint32) {
  2191. output.WriteRawTag(248, 6);
  2192. output.WriteUInt32(OneofUint32);
  2193. }
  2194. if (HasOneofNestedMessage) {
  2195. output.WriteRawTag(130, 7);
  2196. output.WriteMessage(OneofNestedMessage);
  2197. }
  2198. if (HasOneofString) {
  2199. output.WriteRawTag(138, 7);
  2200. output.WriteString(OneofString);
  2201. }
  2202. if (HasOneofBytes) {
  2203. output.WriteRawTag(146, 7);
  2204. output.WriteBytes(OneofBytes);
  2205. }
  2206. if (HasOneofBool) {
  2207. output.WriteRawTag(152, 7);
  2208. output.WriteBool(OneofBool);
  2209. }
  2210. if (HasOneofUint64) {
  2211. output.WriteRawTag(160, 7);
  2212. output.WriteUInt64(OneofUint64);
  2213. }
  2214. if (HasOneofFloat) {
  2215. output.WriteRawTag(173, 7);
  2216. output.WriteFloat(OneofFloat);
  2217. }
  2218. if (HasOneofDouble) {
  2219. output.WriteRawTag(177, 7);
  2220. output.WriteDouble(OneofDouble);
  2221. }
  2222. if (HasOneofEnum) {
  2223. output.WriteRawTag(184, 7);
  2224. output.WriteEnum((int) OneofEnum);
  2225. }
  2226. if (HasData) {
  2227. output.WriteRawTag(203, 12);
  2228. output.WriteGroup(Data);
  2229. output.WriteRawTag(204, 12);
  2230. }
  2231. if (HasFieldname1) {
  2232. output.WriteRawTag(136, 25);
  2233. output.WriteInt32(Fieldname1);
  2234. }
  2235. if (HasFieldName2) {
  2236. output.WriteRawTag(144, 25);
  2237. output.WriteInt32(FieldName2);
  2238. }
  2239. if (HasFieldName3) {
  2240. output.WriteRawTag(152, 25);
  2241. output.WriteInt32(FieldName3);
  2242. }
  2243. if (HasFieldName4) {
  2244. output.WriteRawTag(160, 25);
  2245. output.WriteInt32(FieldName4);
  2246. }
  2247. if (HasField0Name5) {
  2248. output.WriteRawTag(168, 25);
  2249. output.WriteInt32(Field0Name5);
  2250. }
  2251. if (HasField0Name6) {
  2252. output.WriteRawTag(176, 25);
  2253. output.WriteInt32(Field0Name6);
  2254. }
  2255. if (HasFieldName7) {
  2256. output.WriteRawTag(184, 25);
  2257. output.WriteInt32(FieldName7);
  2258. }
  2259. if (HasFieldName8) {
  2260. output.WriteRawTag(192, 25);
  2261. output.WriteInt32(FieldName8);
  2262. }
  2263. if (HasFieldName9) {
  2264. output.WriteRawTag(200, 25);
  2265. output.WriteInt32(FieldName9);
  2266. }
  2267. if (HasFieldName10) {
  2268. output.WriteRawTag(208, 25);
  2269. output.WriteInt32(FieldName10);
  2270. }
  2271. if (HasFIELDNAME11) {
  2272. output.WriteRawTag(216, 25);
  2273. output.WriteInt32(FIELDNAME11);
  2274. }
  2275. if (HasFIELDName12) {
  2276. output.WriteRawTag(224, 25);
  2277. output.WriteInt32(FIELDName12);
  2278. }
  2279. if (HasFieldName13) {
  2280. output.WriteRawTag(232, 25);
  2281. output.WriteInt32(FieldName13);
  2282. }
  2283. if (HasFieldName14) {
  2284. output.WriteRawTag(240, 25);
  2285. output.WriteInt32(FieldName14);
  2286. }
  2287. if (HasFieldName15) {
  2288. output.WriteRawTag(248, 25);
  2289. output.WriteInt32(FieldName15);
  2290. }
  2291. if (HasFieldName16) {
  2292. output.WriteRawTag(128, 26);
  2293. output.WriteInt32(FieldName16);
  2294. }
  2295. if (HasFieldName17) {
  2296. output.WriteRawTag(136, 26);
  2297. output.WriteInt32(FieldName17);
  2298. }
  2299. if (HasFieldName18) {
  2300. output.WriteRawTag(144, 26);
  2301. output.WriteInt32(FieldName18);
  2302. }
  2303. if (_extensions != null) {
  2304. _extensions.WriteTo(output);
  2305. }
  2306. if (_unknownFields != null) {
  2307. _unknownFields.WriteTo(output);
  2308. }
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2311. public int CalculateSize() {
  2312. int size = 0;
  2313. if (HasOptionalInt32) {
  2314. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  2315. }
  2316. if (HasOptionalInt64) {
  2317. size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
  2318. }
  2319. if (HasOptionalUint32) {
  2320. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
  2321. }
  2322. if (HasOptionalUint64) {
  2323. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
  2324. }
  2325. if (HasOptionalSint32) {
  2326. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
  2327. }
  2328. if (HasOptionalSint64) {
  2329. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
  2330. }
  2331. if (HasOptionalFixed32) {
  2332. size += 1 + 4;
  2333. }
  2334. if (HasOptionalFixed64) {
  2335. size += 1 + 8;
  2336. }
  2337. if (HasOptionalSfixed32) {
  2338. size += 1 + 4;
  2339. }
  2340. if (HasOptionalSfixed64) {
  2341. size += 1 + 8;
  2342. }
  2343. if (HasOptionalFloat) {
  2344. size += 1 + 4;
  2345. }
  2346. if (HasOptionalDouble) {
  2347. size += 1 + 8;
  2348. }
  2349. if (HasOptionalBool) {
  2350. size += 1 + 1;
  2351. }
  2352. if (HasOptionalString) {
  2353. size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  2354. }
  2355. if (HasOptionalBytes) {
  2356. size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  2357. }
  2358. if (HasOptionalNestedMessage) {
  2359. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  2360. }
  2361. if (HasOptionalForeignMessage) {
  2362. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
  2363. }
  2364. if (HasOptionalNestedEnum) {
  2365. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
  2366. }
  2367. if (HasOptionalForeignEnum) {
  2368. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  2369. }
  2370. if (HasOptionalStringPiece) {
  2371. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
  2372. }
  2373. if (HasOptionalCord) {
  2374. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
  2375. }
  2376. if (HasRecursiveMessage) {
  2377. size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
  2378. }
  2379. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  2380. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  2381. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  2382. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  2383. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  2384. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  2385. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  2386. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  2387. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  2388. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  2389. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  2390. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  2391. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  2392. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  2393. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  2394. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  2395. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  2396. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  2397. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  2398. size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
  2399. size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
  2400. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  2401. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  2402. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  2403. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  2404. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  2405. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  2406. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  2407. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  2408. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  2409. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  2410. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  2411. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  2412. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  2413. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  2414. size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
  2415. size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
  2416. size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
  2417. size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
  2418. size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
  2419. if (HasOneofUint32) {
  2420. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  2421. }
  2422. if (HasOneofNestedMessage) {
  2423. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  2424. }
  2425. if (HasOneofString) {
  2426. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  2427. }
  2428. if (HasOneofBytes) {
  2429. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  2430. }
  2431. if (HasOneofBool) {
  2432. size += 2 + 1;
  2433. }
  2434. if (HasOneofUint64) {
  2435. size += 2 + pb::CodedOutputStream.ComputeUInt64Size(OneofUint64);
  2436. }
  2437. if (HasOneofFloat) {
  2438. size += 2 + 4;
  2439. }
  2440. if (HasOneofDouble) {
  2441. size += 2 + 8;
  2442. }
  2443. if (HasOneofEnum) {
  2444. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OneofEnum);
  2445. }
  2446. if (HasData) {
  2447. size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data);
  2448. }
  2449. if (HasFieldname1) {
  2450. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1);
  2451. }
  2452. if (HasFieldName2) {
  2453. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
  2454. }
  2455. if (HasFieldName3) {
  2456. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
  2457. }
  2458. if (HasFieldName4) {
  2459. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
  2460. }
  2461. if (HasField0Name5) {
  2462. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5);
  2463. }
  2464. if (HasField0Name6) {
  2465. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6);
  2466. }
  2467. if (HasFieldName7) {
  2468. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7);
  2469. }
  2470. if (HasFieldName8) {
  2471. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8);
  2472. }
  2473. if (HasFieldName9) {
  2474. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9);
  2475. }
  2476. if (HasFieldName10) {
  2477. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10);
  2478. }
  2479. if (HasFIELDNAME11) {
  2480. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11);
  2481. }
  2482. if (HasFIELDName12) {
  2483. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12);
  2484. }
  2485. if (HasFieldName13) {
  2486. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName13);
  2487. }
  2488. if (HasFieldName14) {
  2489. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName14);
  2490. }
  2491. if (HasFieldName15) {
  2492. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName15);
  2493. }
  2494. if (HasFieldName16) {
  2495. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName16);
  2496. }
  2497. if (HasFieldName17) {
  2498. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName17);
  2499. }
  2500. if (HasFieldName18) {
  2501. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName18);
  2502. }
  2503. if (_extensions != null) {
  2504. size += _extensions.CalculateSize();
  2505. }
  2506. if (_unknownFields != null) {
  2507. size += _unknownFields.CalculateSize();
  2508. }
  2509. return size;
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2512. public void MergeFrom(TestAllTypesProto2 other) {
  2513. if (other == null) {
  2514. return;
  2515. }
  2516. if (other.HasOptionalInt32) {
  2517. OptionalInt32 = other.OptionalInt32;
  2518. }
  2519. if (other.HasOptionalInt64) {
  2520. OptionalInt64 = other.OptionalInt64;
  2521. }
  2522. if (other.HasOptionalUint32) {
  2523. OptionalUint32 = other.OptionalUint32;
  2524. }
  2525. if (other.HasOptionalUint64) {
  2526. OptionalUint64 = other.OptionalUint64;
  2527. }
  2528. if (other.HasOptionalSint32) {
  2529. OptionalSint32 = other.OptionalSint32;
  2530. }
  2531. if (other.HasOptionalSint64) {
  2532. OptionalSint64 = other.OptionalSint64;
  2533. }
  2534. if (other.HasOptionalFixed32) {
  2535. OptionalFixed32 = other.OptionalFixed32;
  2536. }
  2537. if (other.HasOptionalFixed64) {
  2538. OptionalFixed64 = other.OptionalFixed64;
  2539. }
  2540. if (other.HasOptionalSfixed32) {
  2541. OptionalSfixed32 = other.OptionalSfixed32;
  2542. }
  2543. if (other.HasOptionalSfixed64) {
  2544. OptionalSfixed64 = other.OptionalSfixed64;
  2545. }
  2546. if (other.HasOptionalFloat) {
  2547. OptionalFloat = other.OptionalFloat;
  2548. }
  2549. if (other.HasOptionalDouble) {
  2550. OptionalDouble = other.OptionalDouble;
  2551. }
  2552. if (other.HasOptionalBool) {
  2553. OptionalBool = other.OptionalBool;
  2554. }
  2555. if (other.HasOptionalString) {
  2556. OptionalString = other.OptionalString;
  2557. }
  2558. if (other.HasOptionalBytes) {
  2559. OptionalBytes = other.OptionalBytes;
  2560. }
  2561. if (other.HasOptionalNestedMessage) {
  2562. if (!HasOptionalNestedMessage) {
  2563. OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
  2564. }
  2565. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  2566. }
  2567. if (other.HasOptionalForeignMessage) {
  2568. if (!HasOptionalForeignMessage) {
  2569. OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
  2570. }
  2571. OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
  2572. }
  2573. if (other.HasOptionalNestedEnum) {
  2574. OptionalNestedEnum = other.OptionalNestedEnum;
  2575. }
  2576. if (other.HasOptionalForeignEnum) {
  2577. OptionalForeignEnum = other.OptionalForeignEnum;
  2578. }
  2579. if (other.HasOptionalStringPiece) {
  2580. OptionalStringPiece = other.OptionalStringPiece;
  2581. }
  2582. if (other.HasOptionalCord) {
  2583. OptionalCord = other.OptionalCord;
  2584. }
  2585. if (other.HasRecursiveMessage) {
  2586. if (!HasRecursiveMessage) {
  2587. RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
  2588. }
  2589. RecursiveMessage.MergeFrom(other.RecursiveMessage);
  2590. }
  2591. repeatedInt32_.Add(other.repeatedInt32_);
  2592. repeatedInt64_.Add(other.repeatedInt64_);
  2593. repeatedUint32_.Add(other.repeatedUint32_);
  2594. repeatedUint64_.Add(other.repeatedUint64_);
  2595. repeatedSint32_.Add(other.repeatedSint32_);
  2596. repeatedSint64_.Add(other.repeatedSint64_);
  2597. repeatedFixed32_.Add(other.repeatedFixed32_);
  2598. repeatedFixed64_.Add(other.repeatedFixed64_);
  2599. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  2600. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  2601. repeatedFloat_.Add(other.repeatedFloat_);
  2602. repeatedDouble_.Add(other.repeatedDouble_);
  2603. repeatedBool_.Add(other.repeatedBool_);
  2604. repeatedString_.Add(other.repeatedString_);
  2605. repeatedBytes_.Add(other.repeatedBytes_);
  2606. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  2607. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  2608. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  2609. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  2610. repeatedStringPiece_.Add(other.repeatedStringPiece_);
  2611. repeatedCord_.Add(other.repeatedCord_);
  2612. mapInt32Int32_.Add(other.mapInt32Int32_);
  2613. mapInt64Int64_.Add(other.mapInt64Int64_);
  2614. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  2615. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  2616. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  2617. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  2618. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  2619. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  2620. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  2621. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  2622. mapInt32Float_.Add(other.mapInt32Float_);
  2623. mapInt32Double_.Add(other.mapInt32Double_);
  2624. mapBoolBool_.Add(other.mapBoolBool_);
  2625. mapStringString_.Add(other.mapStringString_);
  2626. mapStringBytes_.Add(other.mapStringBytes_);
  2627. mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
  2628. mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
  2629. mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
  2630. mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
  2631. if (other.HasData) {
  2632. if (!HasData) {
  2633. Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
  2634. }
  2635. Data.MergeFrom(other.Data);
  2636. }
  2637. if (other.HasFieldname1) {
  2638. Fieldname1 = other.Fieldname1;
  2639. }
  2640. if (other.HasFieldName2) {
  2641. FieldName2 = other.FieldName2;
  2642. }
  2643. if (other.HasFieldName3) {
  2644. FieldName3 = other.FieldName3;
  2645. }
  2646. if (other.HasFieldName4) {
  2647. FieldName4 = other.FieldName4;
  2648. }
  2649. if (other.HasField0Name5) {
  2650. Field0Name5 = other.Field0Name5;
  2651. }
  2652. if (other.HasField0Name6) {
  2653. Field0Name6 = other.Field0Name6;
  2654. }
  2655. if (other.HasFieldName7) {
  2656. FieldName7 = other.FieldName7;
  2657. }
  2658. if (other.HasFieldName8) {
  2659. FieldName8 = other.FieldName8;
  2660. }
  2661. if (other.HasFieldName9) {
  2662. FieldName9 = other.FieldName9;
  2663. }
  2664. if (other.HasFieldName10) {
  2665. FieldName10 = other.FieldName10;
  2666. }
  2667. if (other.HasFIELDNAME11) {
  2668. FIELDNAME11 = other.FIELDNAME11;
  2669. }
  2670. if (other.HasFIELDName12) {
  2671. FIELDName12 = other.FIELDName12;
  2672. }
  2673. if (other.HasFieldName13) {
  2674. FieldName13 = other.FieldName13;
  2675. }
  2676. if (other.HasFieldName14) {
  2677. FieldName14 = other.FieldName14;
  2678. }
  2679. if (other.HasFieldName15) {
  2680. FieldName15 = other.FieldName15;
  2681. }
  2682. if (other.HasFieldName16) {
  2683. FieldName16 = other.FieldName16;
  2684. }
  2685. if (other.HasFieldName17) {
  2686. FieldName17 = other.FieldName17;
  2687. }
  2688. if (other.HasFieldName18) {
  2689. FieldName18 = other.FieldName18;
  2690. }
  2691. switch (other.OneofFieldCase) {
  2692. case OneofFieldOneofCase.OneofUint32:
  2693. OneofUint32 = other.OneofUint32;
  2694. break;
  2695. case OneofFieldOneofCase.OneofNestedMessage:
  2696. if (OneofNestedMessage == null) {
  2697. OneofNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
  2698. }
  2699. OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
  2700. break;
  2701. case OneofFieldOneofCase.OneofString:
  2702. OneofString = other.OneofString;
  2703. break;
  2704. case OneofFieldOneofCase.OneofBytes:
  2705. OneofBytes = other.OneofBytes;
  2706. break;
  2707. case OneofFieldOneofCase.OneofBool:
  2708. OneofBool = other.OneofBool;
  2709. break;
  2710. case OneofFieldOneofCase.OneofUint64:
  2711. OneofUint64 = other.OneofUint64;
  2712. break;
  2713. case OneofFieldOneofCase.OneofFloat:
  2714. OneofFloat = other.OneofFloat;
  2715. break;
  2716. case OneofFieldOneofCase.OneofDouble:
  2717. OneofDouble = other.OneofDouble;
  2718. break;
  2719. case OneofFieldOneofCase.OneofEnum:
  2720. OneofEnum = other.OneofEnum;
  2721. break;
  2722. }
  2723. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  2724. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2727. public void MergeFrom(pb::CodedInputStream input) {
  2728. uint tag;
  2729. while ((tag = input.ReadTag()) != 0) {
  2730. switch(tag) {
  2731. default:
  2732. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  2733. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2734. }
  2735. break;
  2736. case 8: {
  2737. OptionalInt32 = input.ReadInt32();
  2738. break;
  2739. }
  2740. case 16: {
  2741. OptionalInt64 = input.ReadInt64();
  2742. break;
  2743. }
  2744. case 24: {
  2745. OptionalUint32 = input.ReadUInt32();
  2746. break;
  2747. }
  2748. case 32: {
  2749. OptionalUint64 = input.ReadUInt64();
  2750. break;
  2751. }
  2752. case 40: {
  2753. OptionalSint32 = input.ReadSInt32();
  2754. break;
  2755. }
  2756. case 48: {
  2757. OptionalSint64 = input.ReadSInt64();
  2758. break;
  2759. }
  2760. case 61: {
  2761. OptionalFixed32 = input.ReadFixed32();
  2762. break;
  2763. }
  2764. case 65: {
  2765. OptionalFixed64 = input.ReadFixed64();
  2766. break;
  2767. }
  2768. case 77: {
  2769. OptionalSfixed32 = input.ReadSFixed32();
  2770. break;
  2771. }
  2772. case 81: {
  2773. OptionalSfixed64 = input.ReadSFixed64();
  2774. break;
  2775. }
  2776. case 93: {
  2777. OptionalFloat = input.ReadFloat();
  2778. break;
  2779. }
  2780. case 97: {
  2781. OptionalDouble = input.ReadDouble();
  2782. break;
  2783. }
  2784. case 104: {
  2785. OptionalBool = input.ReadBool();
  2786. break;
  2787. }
  2788. case 114: {
  2789. OptionalString = input.ReadString();
  2790. break;
  2791. }
  2792. case 122: {
  2793. OptionalBytes = input.ReadBytes();
  2794. break;
  2795. }
  2796. case 146: {
  2797. if (!HasOptionalNestedMessage) {
  2798. OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
  2799. }
  2800. input.ReadMessage(OptionalNestedMessage);
  2801. break;
  2802. }
  2803. case 154: {
  2804. if (!HasOptionalForeignMessage) {
  2805. OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
  2806. }
  2807. input.ReadMessage(OptionalForeignMessage);
  2808. break;
  2809. }
  2810. case 168: {
  2811. OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
  2812. break;
  2813. }
  2814. case 176: {
  2815. OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum();
  2816. break;
  2817. }
  2818. case 194: {
  2819. OptionalStringPiece = input.ReadString();
  2820. break;
  2821. }
  2822. case 202: {
  2823. OptionalCord = input.ReadString();
  2824. break;
  2825. }
  2826. case 218: {
  2827. if (!HasRecursiveMessage) {
  2828. RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
  2829. }
  2830. input.ReadMessage(RecursiveMessage);
  2831. break;
  2832. }
  2833. case 250:
  2834. case 248: {
  2835. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  2836. break;
  2837. }
  2838. case 258:
  2839. case 256: {
  2840. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  2841. break;
  2842. }
  2843. case 266:
  2844. case 264: {
  2845. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  2846. break;
  2847. }
  2848. case 274:
  2849. case 272: {
  2850. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  2851. break;
  2852. }
  2853. case 282:
  2854. case 280: {
  2855. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  2856. break;
  2857. }
  2858. case 290:
  2859. case 288: {
  2860. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  2861. break;
  2862. }
  2863. case 298:
  2864. case 301: {
  2865. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  2866. break;
  2867. }
  2868. case 306:
  2869. case 305: {
  2870. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  2871. break;
  2872. }
  2873. case 314:
  2874. case 317: {
  2875. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  2876. break;
  2877. }
  2878. case 322:
  2879. case 321: {
  2880. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  2881. break;
  2882. }
  2883. case 330:
  2884. case 333: {
  2885. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  2886. break;
  2887. }
  2888. case 338:
  2889. case 337: {
  2890. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  2891. break;
  2892. }
  2893. case 346:
  2894. case 344: {
  2895. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  2896. break;
  2897. }
  2898. case 354: {
  2899. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  2900. break;
  2901. }
  2902. case 362: {
  2903. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  2904. break;
  2905. }
  2906. case 386: {
  2907. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  2908. break;
  2909. }
  2910. case 394: {
  2911. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  2912. break;
  2913. }
  2914. case 410:
  2915. case 408: {
  2916. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  2917. break;
  2918. }
  2919. case 418:
  2920. case 416: {
  2921. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  2922. break;
  2923. }
  2924. case 434: {
  2925. repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
  2926. break;
  2927. }
  2928. case 442: {
  2929. repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
  2930. break;
  2931. }
  2932. case 450: {
  2933. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  2934. break;
  2935. }
  2936. case 458: {
  2937. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  2938. break;
  2939. }
  2940. case 466: {
  2941. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  2942. break;
  2943. }
  2944. case 474: {
  2945. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  2946. break;
  2947. }
  2948. case 482: {
  2949. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  2950. break;
  2951. }
  2952. case 490: {
  2953. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  2954. break;
  2955. }
  2956. case 498: {
  2957. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  2958. break;
  2959. }
  2960. case 506: {
  2961. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  2962. break;
  2963. }
  2964. case 514: {
  2965. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  2966. break;
  2967. }
  2968. case 522: {
  2969. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  2970. break;
  2971. }
  2972. case 530: {
  2973. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  2974. break;
  2975. }
  2976. case 538: {
  2977. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  2978. break;
  2979. }
  2980. case 546: {
  2981. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  2982. break;
  2983. }
  2984. case 554: {
  2985. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  2986. break;
  2987. }
  2988. case 562: {
  2989. mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
  2990. break;
  2991. }
  2992. case 570: {
  2993. mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
  2994. break;
  2995. }
  2996. case 578: {
  2997. mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
  2998. break;
  2999. }
  3000. case 586: {
  3001. mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
  3002. break;
  3003. }
  3004. case 594: {
  3005. mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
  3006. break;
  3007. }
  3008. case 888: {
  3009. OneofUint32 = input.ReadUInt32();
  3010. break;
  3011. }
  3012. case 898: {
  3013. global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
  3014. if (HasOneofNestedMessage) {
  3015. subBuilder.MergeFrom(OneofNestedMessage);
  3016. }
  3017. input.ReadMessage(subBuilder);
  3018. OneofNestedMessage = subBuilder;
  3019. break;
  3020. }
  3021. case 906: {
  3022. OneofString = input.ReadString();
  3023. break;
  3024. }
  3025. case 914: {
  3026. OneofBytes = input.ReadBytes();
  3027. break;
  3028. }
  3029. case 920: {
  3030. OneofBool = input.ReadBool();
  3031. break;
  3032. }
  3033. case 928: {
  3034. OneofUint64 = input.ReadUInt64();
  3035. break;
  3036. }
  3037. case 941: {
  3038. OneofFloat = input.ReadFloat();
  3039. break;
  3040. }
  3041. case 945: {
  3042. OneofDouble = input.ReadDouble();
  3043. break;
  3044. }
  3045. case 952: {
  3046. oneofField_ = input.ReadEnum();
  3047. oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
  3048. break;
  3049. }
  3050. case 1611: {
  3051. if (!HasData) {
  3052. Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
  3053. }
  3054. input.ReadGroup(Data);
  3055. break;
  3056. }
  3057. case 3208: {
  3058. Fieldname1 = input.ReadInt32();
  3059. break;
  3060. }
  3061. case 3216: {
  3062. FieldName2 = input.ReadInt32();
  3063. break;
  3064. }
  3065. case 3224: {
  3066. FieldName3 = input.ReadInt32();
  3067. break;
  3068. }
  3069. case 3232: {
  3070. FieldName4 = input.ReadInt32();
  3071. break;
  3072. }
  3073. case 3240: {
  3074. Field0Name5 = input.ReadInt32();
  3075. break;
  3076. }
  3077. case 3248: {
  3078. Field0Name6 = input.ReadInt32();
  3079. break;
  3080. }
  3081. case 3256: {
  3082. FieldName7 = input.ReadInt32();
  3083. break;
  3084. }
  3085. case 3264: {
  3086. FieldName8 = input.ReadInt32();
  3087. break;
  3088. }
  3089. case 3272: {
  3090. FieldName9 = input.ReadInt32();
  3091. break;
  3092. }
  3093. case 3280: {
  3094. FieldName10 = input.ReadInt32();
  3095. break;
  3096. }
  3097. case 3288: {
  3098. FIELDNAME11 = input.ReadInt32();
  3099. break;
  3100. }
  3101. case 3296: {
  3102. FIELDName12 = input.ReadInt32();
  3103. break;
  3104. }
  3105. case 3304: {
  3106. FieldName13 = input.ReadInt32();
  3107. break;
  3108. }
  3109. case 3312: {
  3110. FieldName14 = input.ReadInt32();
  3111. break;
  3112. }
  3113. case 3320: {
  3114. FieldName15 = input.ReadInt32();
  3115. break;
  3116. }
  3117. case 3328: {
  3118. FieldName16 = input.ReadInt32();
  3119. break;
  3120. }
  3121. case 3336: {
  3122. FieldName17 = input.ReadInt32();
  3123. break;
  3124. }
  3125. case 3344: {
  3126. FieldName18 = input.ReadInt32();
  3127. break;
  3128. }
  3129. }
  3130. }
  3131. }
  3132. public TValue GetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
  3133. return pb::ExtensionSet.Get(ref _extensions, extension);
  3134. }
  3135. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
  3136. return pb::ExtensionSet.Get(ref _extensions, extension);
  3137. }
  3138. public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
  3139. return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
  3140. }
  3141. public void SetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value) {
  3142. pb::ExtensionSet.Set(ref _extensions, extension, value);
  3143. }
  3144. public bool HasExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
  3145. return pb::ExtensionSet.Has(ref _extensions, extension);
  3146. }
  3147. public void ClearExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) {
  3148. pb::ExtensionSet.Clear(ref _extensions, extension);
  3149. }
  3150. public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) {
  3151. pb::ExtensionSet.Clear(ref _extensions, extension);
  3152. }
  3153. #region Nested types
  3154. /// <summary>Container for nested types declared in the TestAllTypesProto2 message type.</summary>
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3156. public static partial class Types {
  3157. public enum NestedEnum {
  3158. [pbr::OriginalName("FOO")] Foo = 0,
  3159. [pbr::OriginalName("BAR")] Bar = 1,
  3160. [pbr::OriginalName("BAZ")] Baz = 2,
  3161. /// <summary>
  3162. /// Intentionally negative.
  3163. /// </summary>
  3164. [pbr::OriginalName("NEG")] Neg = -1,
  3165. }
  3166. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  3167. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3168. private pb::UnknownFieldSet _unknownFields;
  3169. private int _hasBits0;
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3171. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3173. public static pbr::MessageDescriptor Descriptor {
  3174. get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; }
  3175. }
  3176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3177. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3178. get { return Descriptor; }
  3179. }
  3180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3181. public NestedMessage() {
  3182. OnConstruction();
  3183. }
  3184. partial void OnConstruction();
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3186. public NestedMessage(NestedMessage other) : this() {
  3187. _hasBits0 = other._hasBits0;
  3188. a_ = other.a_;
  3189. corecursive_ = other.HasCorecursive ? other.corecursive_.Clone() : null;
  3190. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3193. public NestedMessage Clone() {
  3194. return new NestedMessage(this);
  3195. }
  3196. /// <summary>Field number for the "a" field.</summary>
  3197. public const int AFieldNumber = 1;
  3198. private readonly static int ADefaultValue = 0;
  3199. private int a_;
  3200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3201. public int A {
  3202. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  3203. set {
  3204. _hasBits0 |= 1;
  3205. a_ = value;
  3206. }
  3207. }
  3208. /// <summary>Gets whether the "a" field is set</summary>
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3210. public bool HasA {
  3211. get { return (_hasBits0 & 1) != 0; }
  3212. }
  3213. /// <summary>Clears the value of the "a" field</summary>
  3214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3215. public void ClearA() {
  3216. _hasBits0 &= ~1;
  3217. }
  3218. /// <summary>Field number for the "corecursive" field.</summary>
  3219. public const int CorecursiveFieldNumber = 2;
  3220. private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 corecursive_;
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3222. public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 Corecursive {
  3223. get { return corecursive_; }
  3224. set {
  3225. corecursive_ = value;
  3226. }
  3227. }
  3228. /// <summary>Gets whether the corecursive field is set</summary>
  3229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3230. public bool HasCorecursive {
  3231. get { return corecursive_ != null; }
  3232. }
  3233. /// <summary>Clears the value of the corecursive field</summary>
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3235. public void ClearCorecursive() {
  3236. corecursive_ = null;
  3237. }
  3238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3239. public override bool Equals(object other) {
  3240. return Equals(other as NestedMessage);
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3243. public bool Equals(NestedMessage other) {
  3244. if (ReferenceEquals(other, null)) {
  3245. return false;
  3246. }
  3247. if (ReferenceEquals(other, this)) {
  3248. return true;
  3249. }
  3250. if (A != other.A) return false;
  3251. if (!object.Equals(Corecursive, other.Corecursive)) return false;
  3252. return Equals(_unknownFields, other._unknownFields);
  3253. }
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3255. public override int GetHashCode() {
  3256. int hash = 1;
  3257. if (HasA) hash ^= A.GetHashCode();
  3258. if (HasCorecursive) hash ^= Corecursive.GetHashCode();
  3259. if (_unknownFields != null) {
  3260. hash ^= _unknownFields.GetHashCode();
  3261. }
  3262. return hash;
  3263. }
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3265. public override string ToString() {
  3266. return pb::JsonFormatter.ToDiagnosticString(this);
  3267. }
  3268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3269. public void WriteTo(pb::CodedOutputStream output) {
  3270. if (HasA) {
  3271. output.WriteRawTag(8);
  3272. output.WriteInt32(A);
  3273. }
  3274. if (HasCorecursive) {
  3275. output.WriteRawTag(18);
  3276. output.WriteMessage(Corecursive);
  3277. }
  3278. if (_unknownFields != null) {
  3279. _unknownFields.WriteTo(output);
  3280. }
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3283. public int CalculateSize() {
  3284. int size = 0;
  3285. if (HasA) {
  3286. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  3287. }
  3288. if (HasCorecursive) {
  3289. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
  3290. }
  3291. if (_unknownFields != null) {
  3292. size += _unknownFields.CalculateSize();
  3293. }
  3294. return size;
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3297. public void MergeFrom(NestedMessage other) {
  3298. if (other == null) {
  3299. return;
  3300. }
  3301. if (other.HasA) {
  3302. A = other.A;
  3303. }
  3304. if (other.HasCorecursive) {
  3305. if (!HasCorecursive) {
  3306. Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
  3307. }
  3308. Corecursive.MergeFrom(other.Corecursive);
  3309. }
  3310. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3313. public void MergeFrom(pb::CodedInputStream input) {
  3314. uint tag;
  3315. while ((tag = input.ReadTag()) != 0) {
  3316. switch(tag) {
  3317. default:
  3318. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3319. break;
  3320. case 8: {
  3321. A = input.ReadInt32();
  3322. break;
  3323. }
  3324. case 18: {
  3325. if (!HasCorecursive) {
  3326. Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
  3327. }
  3328. input.ReadMessage(Corecursive);
  3329. break;
  3330. }
  3331. }
  3332. }
  3333. }
  3334. }
  3335. /// <summary>
  3336. /// groups
  3337. /// </summary>
  3338. public sealed partial class Data : pb::IMessage<Data> {
  3339. private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data());
  3340. private pb::UnknownFieldSet _unknownFields;
  3341. private int _hasBits0;
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3343. public static pb::MessageParser<Data> Parser { get { return _parser; } }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3345. public static pbr::MessageDescriptor Descriptor {
  3346. get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[20]; }
  3347. }
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3349. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3350. get { return Descriptor; }
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3353. public Data() {
  3354. OnConstruction();
  3355. }
  3356. partial void OnConstruction();
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3358. public Data(Data other) : this() {
  3359. _hasBits0 = other._hasBits0;
  3360. groupInt32_ = other.groupInt32_;
  3361. groupUint32_ = other.groupUint32_;
  3362. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3363. }
  3364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3365. public Data Clone() {
  3366. return new Data(this);
  3367. }
  3368. /// <summary>Field number for the "group_int32" field.</summary>
  3369. public const int GroupInt32FieldNumber = 202;
  3370. private readonly static int GroupInt32DefaultValue = 0;
  3371. private int groupInt32_;
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3373. public int GroupInt32 {
  3374. get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } }
  3375. set {
  3376. _hasBits0 |= 1;
  3377. groupInt32_ = value;
  3378. }
  3379. }
  3380. /// <summary>Gets whether the "group_int32" field is set</summary>
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3382. public bool HasGroupInt32 {
  3383. get { return (_hasBits0 & 1) != 0; }
  3384. }
  3385. /// <summary>Clears the value of the "group_int32" field</summary>
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3387. public void ClearGroupInt32() {
  3388. _hasBits0 &= ~1;
  3389. }
  3390. /// <summary>Field number for the "group_uint32" field.</summary>
  3391. public const int GroupUint32FieldNumber = 203;
  3392. private readonly static uint GroupUint32DefaultValue = 0;
  3393. private uint groupUint32_;
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3395. public uint GroupUint32 {
  3396. get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } }
  3397. set {
  3398. _hasBits0 |= 2;
  3399. groupUint32_ = value;
  3400. }
  3401. }
  3402. /// <summary>Gets whether the "group_uint32" field is set</summary>
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3404. public bool HasGroupUint32 {
  3405. get { return (_hasBits0 & 2) != 0; }
  3406. }
  3407. /// <summary>Clears the value of the "group_uint32" field</summary>
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3409. public void ClearGroupUint32() {
  3410. _hasBits0 &= ~2;
  3411. }
  3412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3413. public override bool Equals(object other) {
  3414. return Equals(other as Data);
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3417. public bool Equals(Data other) {
  3418. if (ReferenceEquals(other, null)) {
  3419. return false;
  3420. }
  3421. if (ReferenceEquals(other, this)) {
  3422. return true;
  3423. }
  3424. if (GroupInt32 != other.GroupInt32) return false;
  3425. if (GroupUint32 != other.GroupUint32) return false;
  3426. return Equals(_unknownFields, other._unknownFields);
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3429. public override int GetHashCode() {
  3430. int hash = 1;
  3431. if (HasGroupInt32) hash ^= GroupInt32.GetHashCode();
  3432. if (HasGroupUint32) hash ^= GroupUint32.GetHashCode();
  3433. if (_unknownFields != null) {
  3434. hash ^= _unknownFields.GetHashCode();
  3435. }
  3436. return hash;
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3439. public override string ToString() {
  3440. return pb::JsonFormatter.ToDiagnosticString(this);
  3441. }
  3442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3443. public void WriteTo(pb::CodedOutputStream output) {
  3444. if (HasGroupInt32) {
  3445. output.WriteRawTag(208, 12);
  3446. output.WriteInt32(GroupInt32);
  3447. }
  3448. if (HasGroupUint32) {
  3449. output.WriteRawTag(216, 12);
  3450. output.WriteUInt32(GroupUint32);
  3451. }
  3452. if (_unknownFields != null) {
  3453. _unknownFields.WriteTo(output);
  3454. }
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3457. public int CalculateSize() {
  3458. int size = 0;
  3459. if (HasGroupInt32) {
  3460. size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32);
  3461. }
  3462. if (HasGroupUint32) {
  3463. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32);
  3464. }
  3465. if (_unknownFields != null) {
  3466. size += _unknownFields.CalculateSize();
  3467. }
  3468. return size;
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3471. public void MergeFrom(Data other) {
  3472. if (other == null) {
  3473. return;
  3474. }
  3475. if (other.HasGroupInt32) {
  3476. GroupInt32 = other.GroupInt32;
  3477. }
  3478. if (other.HasGroupUint32) {
  3479. GroupUint32 = other.GroupUint32;
  3480. }
  3481. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3482. }
  3483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3484. public void MergeFrom(pb::CodedInputStream input) {
  3485. uint tag;
  3486. while ((tag = input.ReadTag()) != 0) {
  3487. switch(tag) {
  3488. case 1612:
  3489. return;
  3490. default:
  3491. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3492. break;
  3493. case 1616: {
  3494. GroupInt32 = input.ReadInt32();
  3495. break;
  3496. }
  3497. case 1624: {
  3498. GroupUint32 = input.ReadUInt32();
  3499. break;
  3500. }
  3501. }
  3502. }
  3503. }
  3504. }
  3505. /// <summary>
  3506. /// message_set test case.
  3507. /// </summary>
  3508. public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect> {
  3509. private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect());
  3510. private pb::UnknownFieldSet _unknownFields;
  3511. private pb::ExtensionSet<MessageSetCorrect> _extensions;
  3512. private pb::ExtensionSet<MessageSetCorrect> _Extensions => _extensions;
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3514. public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3516. public static pbr::MessageDescriptor Descriptor {
  3517. get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[21]; }
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3520. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3521. get { return Descriptor; }
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3524. public MessageSetCorrect() {
  3525. OnConstruction();
  3526. }
  3527. partial void OnConstruction();
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3529. public MessageSetCorrect(MessageSetCorrect other) : this() {
  3530. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3531. _extensions = pb::ExtensionSet.Clone(other._extensions);
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3534. public MessageSetCorrect Clone() {
  3535. return new MessageSetCorrect(this);
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3538. public override bool Equals(object other) {
  3539. return Equals(other as MessageSetCorrect);
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3542. public bool Equals(MessageSetCorrect other) {
  3543. if (ReferenceEquals(other, null)) {
  3544. return false;
  3545. }
  3546. if (ReferenceEquals(other, this)) {
  3547. return true;
  3548. }
  3549. if (!Equals(_extensions, other._extensions)) {
  3550. return false;
  3551. }
  3552. return Equals(_unknownFields, other._unknownFields);
  3553. }
  3554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3555. public override int GetHashCode() {
  3556. int hash = 1;
  3557. if (_extensions != null) {
  3558. hash ^= _extensions.GetHashCode();
  3559. }
  3560. if (_unknownFields != null) {
  3561. hash ^= _unknownFields.GetHashCode();
  3562. }
  3563. return hash;
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3566. public override string ToString() {
  3567. return pb::JsonFormatter.ToDiagnosticString(this);
  3568. }
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3570. public void WriteTo(pb::CodedOutputStream output) {
  3571. if (_extensions != null) {
  3572. _extensions.WriteTo(output);
  3573. }
  3574. if (_unknownFields != null) {
  3575. _unknownFields.WriteTo(output);
  3576. }
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3579. public int CalculateSize() {
  3580. int size = 0;
  3581. if (_extensions != null) {
  3582. size += _extensions.CalculateSize();
  3583. }
  3584. if (_unknownFields != null) {
  3585. size += _unknownFields.CalculateSize();
  3586. }
  3587. return size;
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3590. public void MergeFrom(MessageSetCorrect other) {
  3591. if (other == null) {
  3592. return;
  3593. }
  3594. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  3595. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3598. public void MergeFrom(pb::CodedInputStream input) {
  3599. uint tag;
  3600. while ((tag = input.ReadTag()) != 0) {
  3601. switch(tag) {
  3602. default:
  3603. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  3604. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3605. }
  3606. break;
  3607. }
  3608. }
  3609. }
  3610. public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
  3611. return pb::ExtensionSet.Get(ref _extensions, extension);
  3612. }
  3613. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
  3614. return pb::ExtensionSet.Get(ref _extensions, extension);
  3615. }
  3616. public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
  3617. return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
  3618. }
  3619. public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) {
  3620. pb::ExtensionSet.Set(ref _extensions, extension, value);
  3621. }
  3622. public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
  3623. return pb::ExtensionSet.Has(ref _extensions, extension);
  3624. }
  3625. public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) {
  3626. pb::ExtensionSet.Clear(ref _extensions, extension);
  3627. }
  3628. public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) {
  3629. pb::ExtensionSet.Clear(ref _extensions, extension);
  3630. }
  3631. }
  3632. public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1> {
  3633. private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1());
  3634. private pb::UnknownFieldSet _unknownFields;
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3636. public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } }
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3638. public static pbr::MessageDescriptor Descriptor {
  3639. get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[22]; }
  3640. }
  3641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3642. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3643. get { return Descriptor; }
  3644. }
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3646. public MessageSetCorrectExtension1() {
  3647. OnConstruction();
  3648. }
  3649. partial void OnConstruction();
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3651. public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() {
  3652. str_ = other.str_;
  3653. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3656. public MessageSetCorrectExtension1 Clone() {
  3657. return new MessageSetCorrectExtension1(this);
  3658. }
  3659. /// <summary>Field number for the "str" field.</summary>
  3660. public const int StrFieldNumber = 25;
  3661. private readonly static string StrDefaultValue = "";
  3662. private string str_;
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3664. public string Str {
  3665. get { return str_ ?? StrDefaultValue; }
  3666. set {
  3667. str_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3668. }
  3669. }
  3670. /// <summary>Gets whether the "str" field is set</summary>
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3672. public bool HasStr {
  3673. get { return str_ != null; }
  3674. }
  3675. /// <summary>Clears the value of the "str" field</summary>
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3677. public void ClearStr() {
  3678. str_ = null;
  3679. }
  3680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3681. public override bool Equals(object other) {
  3682. return Equals(other as MessageSetCorrectExtension1);
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3685. public bool Equals(MessageSetCorrectExtension1 other) {
  3686. if (ReferenceEquals(other, null)) {
  3687. return false;
  3688. }
  3689. if (ReferenceEquals(other, this)) {
  3690. return true;
  3691. }
  3692. if (Str != other.Str) return false;
  3693. return Equals(_unknownFields, other._unknownFields);
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3696. public override int GetHashCode() {
  3697. int hash = 1;
  3698. if (HasStr) hash ^= Str.GetHashCode();
  3699. if (_unknownFields != null) {
  3700. hash ^= _unknownFields.GetHashCode();
  3701. }
  3702. return hash;
  3703. }
  3704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3705. public override string ToString() {
  3706. return pb::JsonFormatter.ToDiagnosticString(this);
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3709. public void WriteTo(pb::CodedOutputStream output) {
  3710. if (HasStr) {
  3711. output.WriteRawTag(202, 1);
  3712. output.WriteString(Str);
  3713. }
  3714. if (_unknownFields != null) {
  3715. _unknownFields.WriteTo(output);
  3716. }
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3719. public int CalculateSize() {
  3720. int size = 0;
  3721. if (HasStr) {
  3722. size += 2 + pb::CodedOutputStream.ComputeStringSize(Str);
  3723. }
  3724. if (_unknownFields != null) {
  3725. size += _unknownFields.CalculateSize();
  3726. }
  3727. return size;
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3730. public void MergeFrom(MessageSetCorrectExtension1 other) {
  3731. if (other == null) {
  3732. return;
  3733. }
  3734. if (other.HasStr) {
  3735. Str = other.Str;
  3736. }
  3737. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3740. public void MergeFrom(pb::CodedInputStream input) {
  3741. uint tag;
  3742. while ((tag = input.ReadTag()) != 0) {
  3743. switch(tag) {
  3744. default:
  3745. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3746. break;
  3747. case 202: {
  3748. Str = input.ReadString();
  3749. break;
  3750. }
  3751. }
  3752. }
  3753. }
  3754. #region Extensions
  3755. /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary>
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3757. public static partial class Extensions {
  3758. public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension =
  3759. new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser));
  3760. }
  3761. #endregion
  3762. }
  3763. public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2> {
  3764. private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2());
  3765. private pb::UnknownFieldSet _unknownFields;
  3766. private int _hasBits0;
  3767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3768. public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } }
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3770. public static pbr::MessageDescriptor Descriptor {
  3771. get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[23]; }
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3774. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3775. get { return Descriptor; }
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3778. public MessageSetCorrectExtension2() {
  3779. OnConstruction();
  3780. }
  3781. partial void OnConstruction();
  3782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3783. public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() {
  3784. _hasBits0 = other._hasBits0;
  3785. i_ = other.i_;
  3786. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3789. public MessageSetCorrectExtension2 Clone() {
  3790. return new MessageSetCorrectExtension2(this);
  3791. }
  3792. /// <summary>Field number for the "i" field.</summary>
  3793. public const int IFieldNumber = 9;
  3794. private readonly static int IDefaultValue = 0;
  3795. private int i_;
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3797. public int I {
  3798. get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
  3799. set {
  3800. _hasBits0 |= 1;
  3801. i_ = value;
  3802. }
  3803. }
  3804. /// <summary>Gets whether the "i" field is set</summary>
  3805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3806. public bool HasI {
  3807. get { return (_hasBits0 & 1) != 0; }
  3808. }
  3809. /// <summary>Clears the value of the "i" field</summary>
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3811. public void ClearI() {
  3812. _hasBits0 &= ~1;
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3815. public override bool Equals(object other) {
  3816. return Equals(other as MessageSetCorrectExtension2);
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3819. public bool Equals(MessageSetCorrectExtension2 other) {
  3820. if (ReferenceEquals(other, null)) {
  3821. return false;
  3822. }
  3823. if (ReferenceEquals(other, this)) {
  3824. return true;
  3825. }
  3826. if (I != other.I) return false;
  3827. return Equals(_unknownFields, other._unknownFields);
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3830. public override int GetHashCode() {
  3831. int hash = 1;
  3832. if (HasI) hash ^= I.GetHashCode();
  3833. if (_unknownFields != null) {
  3834. hash ^= _unknownFields.GetHashCode();
  3835. }
  3836. return hash;
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3839. public override string ToString() {
  3840. return pb::JsonFormatter.ToDiagnosticString(this);
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3843. public void WriteTo(pb::CodedOutputStream output) {
  3844. if (HasI) {
  3845. output.WriteRawTag(72);
  3846. output.WriteInt32(I);
  3847. }
  3848. if (_unknownFields != null) {
  3849. _unknownFields.WriteTo(output);
  3850. }
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3853. public int CalculateSize() {
  3854. int size = 0;
  3855. if (HasI) {
  3856. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  3857. }
  3858. if (_unknownFields != null) {
  3859. size += _unknownFields.CalculateSize();
  3860. }
  3861. return size;
  3862. }
  3863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3864. public void MergeFrom(MessageSetCorrectExtension2 other) {
  3865. if (other == null) {
  3866. return;
  3867. }
  3868. if (other.HasI) {
  3869. I = other.I;
  3870. }
  3871. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3874. public void MergeFrom(pb::CodedInputStream input) {
  3875. uint tag;
  3876. while ((tag = input.ReadTag()) != 0) {
  3877. switch(tag) {
  3878. default:
  3879. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3880. break;
  3881. case 72: {
  3882. I = input.ReadInt32();
  3883. break;
  3884. }
  3885. }
  3886. }
  3887. }
  3888. #region Extensions
  3889. /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary>
  3890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3891. public static partial class Extensions {
  3892. public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension =
  3893. new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser));
  3894. }
  3895. #endregion
  3896. }
  3897. }
  3898. #endregion
  3899. }
  3900. public sealed partial class ForeignMessageProto2 : pb::IMessage<ForeignMessageProto2> {
  3901. private static readonly pb::MessageParser<ForeignMessageProto2> _parser = new pb::MessageParser<ForeignMessageProto2>(() => new ForeignMessageProto2());
  3902. private pb::UnknownFieldSet _unknownFields;
  3903. private int _hasBits0;
  3904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3905. public static pb::MessageParser<ForeignMessageProto2> Parser { get { return _parser; } }
  3906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3907. public static pbr::MessageDescriptor Descriptor {
  3908. get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[1]; }
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3911. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3912. get { return Descriptor; }
  3913. }
  3914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3915. public ForeignMessageProto2() {
  3916. OnConstruction();
  3917. }
  3918. partial void OnConstruction();
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3920. public ForeignMessageProto2(ForeignMessageProto2 other) : this() {
  3921. _hasBits0 = other._hasBits0;
  3922. c_ = other.c_;
  3923. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3926. public ForeignMessageProto2 Clone() {
  3927. return new ForeignMessageProto2(this);
  3928. }
  3929. /// <summary>Field number for the "c" field.</summary>
  3930. public const int CFieldNumber = 1;
  3931. private readonly static int CDefaultValue = 0;
  3932. private int c_;
  3933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3934. public int C {
  3935. get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
  3936. set {
  3937. _hasBits0 |= 1;
  3938. c_ = value;
  3939. }
  3940. }
  3941. /// <summary>Gets whether the "c" field is set</summary>
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3943. public bool HasC {
  3944. get { return (_hasBits0 & 1) != 0; }
  3945. }
  3946. /// <summary>Clears the value of the "c" field</summary>
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3948. public void ClearC() {
  3949. _hasBits0 &= ~1;
  3950. }
  3951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3952. public override bool Equals(object other) {
  3953. return Equals(other as ForeignMessageProto2);
  3954. }
  3955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3956. public bool Equals(ForeignMessageProto2 other) {
  3957. if (ReferenceEquals(other, null)) {
  3958. return false;
  3959. }
  3960. if (ReferenceEquals(other, this)) {
  3961. return true;
  3962. }
  3963. if (C != other.C) return false;
  3964. return Equals(_unknownFields, other._unknownFields);
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3967. public override int GetHashCode() {
  3968. int hash = 1;
  3969. if (HasC) hash ^= C.GetHashCode();
  3970. if (_unknownFields != null) {
  3971. hash ^= _unknownFields.GetHashCode();
  3972. }
  3973. return hash;
  3974. }
  3975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3976. public override string ToString() {
  3977. return pb::JsonFormatter.ToDiagnosticString(this);
  3978. }
  3979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3980. public void WriteTo(pb::CodedOutputStream output) {
  3981. if (HasC) {
  3982. output.WriteRawTag(8);
  3983. output.WriteInt32(C);
  3984. }
  3985. if (_unknownFields != null) {
  3986. _unknownFields.WriteTo(output);
  3987. }
  3988. }
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3990. public int CalculateSize() {
  3991. int size = 0;
  3992. if (HasC) {
  3993. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  3994. }
  3995. if (_unknownFields != null) {
  3996. size += _unknownFields.CalculateSize();
  3997. }
  3998. return size;
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4001. public void MergeFrom(ForeignMessageProto2 other) {
  4002. if (other == null) {
  4003. return;
  4004. }
  4005. if (other.HasC) {
  4006. C = other.C;
  4007. }
  4008. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4011. public void MergeFrom(pb::CodedInputStream input) {
  4012. uint tag;
  4013. while ((tag = input.ReadTag()) != 0) {
  4014. switch(tag) {
  4015. default:
  4016. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4017. break;
  4018. case 8: {
  4019. C = input.ReadInt32();
  4020. break;
  4021. }
  4022. }
  4023. }
  4024. }
  4025. }
  4026. public sealed partial class UnknownToTestAllTypes : pb::IMessage<UnknownToTestAllTypes> {
  4027. private static readonly pb::MessageParser<UnknownToTestAllTypes> _parser = new pb::MessageParser<UnknownToTestAllTypes>(() => new UnknownToTestAllTypes());
  4028. private pb::UnknownFieldSet _unknownFields;
  4029. private int _hasBits0;
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4031. public static pb::MessageParser<UnknownToTestAllTypes> Parser { get { return _parser; } }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4033. public static pbr::MessageDescriptor Descriptor {
  4034. get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[2]; }
  4035. }
  4036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4037. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4038. get { return Descriptor; }
  4039. }
  4040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4041. public UnknownToTestAllTypes() {
  4042. OnConstruction();
  4043. }
  4044. partial void OnConstruction();
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4046. public UnknownToTestAllTypes(UnknownToTestAllTypes other) : this() {
  4047. _hasBits0 = other._hasBits0;
  4048. optionalInt32_ = other.optionalInt32_;
  4049. optionalString_ = other.optionalString_;
  4050. nestedMessage_ = other.HasNestedMessage ? other.nestedMessage_.Clone() : null;
  4051. optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
  4052. optionalBool_ = other.optionalBool_;
  4053. repeatedInt32_ = other.repeatedInt32_.Clone();
  4054. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4055. }
  4056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4057. public UnknownToTestAllTypes Clone() {
  4058. return new UnknownToTestAllTypes(this);
  4059. }
  4060. /// <summary>Field number for the "optional_int32" field.</summary>
  4061. public const int OptionalInt32FieldNumber = 1001;
  4062. private readonly static int OptionalInt32DefaultValue = 0;
  4063. private int optionalInt32_;
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4065. public int OptionalInt32 {
  4066. get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
  4067. set {
  4068. _hasBits0 |= 1;
  4069. optionalInt32_ = value;
  4070. }
  4071. }
  4072. /// <summary>Gets whether the "optional_int32" field is set</summary>
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4074. public bool HasOptionalInt32 {
  4075. get { return (_hasBits0 & 1) != 0; }
  4076. }
  4077. /// <summary>Clears the value of the "optional_int32" field</summary>
  4078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4079. public void ClearOptionalInt32() {
  4080. _hasBits0 &= ~1;
  4081. }
  4082. /// <summary>Field number for the "optional_string" field.</summary>
  4083. public const int OptionalStringFieldNumber = 1002;
  4084. private readonly static string OptionalStringDefaultValue = "";
  4085. private string optionalString_;
  4086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4087. public string OptionalString {
  4088. get { return optionalString_ ?? OptionalStringDefaultValue; }
  4089. set {
  4090. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4091. }
  4092. }
  4093. /// <summary>Gets whether the "optional_string" field is set</summary>
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4095. public bool HasOptionalString {
  4096. get { return optionalString_ != null; }
  4097. }
  4098. /// <summary>Clears the value of the "optional_string" field</summary>
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4100. public void ClearOptionalString() {
  4101. optionalString_ = null;
  4102. }
  4103. /// <summary>Field number for the "nested_message" field.</summary>
  4104. public const int NestedMessageFieldNumber = 1003;
  4105. private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 nestedMessage_;
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4107. public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 NestedMessage {
  4108. get { return nestedMessage_; }
  4109. set {
  4110. nestedMessage_ = value;
  4111. }
  4112. }
  4113. /// <summary>Gets whether the nested_message field is set</summary>
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4115. public bool HasNestedMessage {
  4116. get { return nestedMessage_ != null; }
  4117. }
  4118. /// <summary>Clears the value of the nested_message field</summary>
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4120. public void ClearNestedMessage() {
  4121. nestedMessage_ = null;
  4122. }
  4123. /// <summary>Field number for the "optionalgroup" field.</summary>
  4124. public const int OptionalGroupFieldNumber = 1004;
  4125. private global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup optionalGroup_;
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4127. public global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup OptionalGroup {
  4128. get { return optionalGroup_; }
  4129. set {
  4130. optionalGroup_ = value;
  4131. }
  4132. }
  4133. /// <summary>Gets whether the optionalgroup field is set</summary>
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4135. public bool HasOptionalGroup {
  4136. get { return optionalGroup_ != null; }
  4137. }
  4138. /// <summary>Clears the value of the optionalgroup field</summary>
  4139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4140. public void ClearOptionalGroup() {
  4141. optionalGroup_ = null;
  4142. }
  4143. /// <summary>Field number for the "optional_bool" field.</summary>
  4144. public const int OptionalBoolFieldNumber = 1006;
  4145. private readonly static bool OptionalBoolDefaultValue = false;
  4146. private bool optionalBool_;
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4148. public bool OptionalBool {
  4149. get { if ((_hasBits0 & 2) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
  4150. set {
  4151. _hasBits0 |= 2;
  4152. optionalBool_ = value;
  4153. }
  4154. }
  4155. /// <summary>Gets whether the "optional_bool" field is set</summary>
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4157. public bool HasOptionalBool {
  4158. get { return (_hasBits0 & 2) != 0; }
  4159. }
  4160. /// <summary>Clears the value of the "optional_bool" field</summary>
  4161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4162. public void ClearOptionalBool() {
  4163. _hasBits0 &= ~2;
  4164. }
  4165. /// <summary>Field number for the "repeated_int32" field.</summary>
  4166. public const int RepeatedInt32FieldNumber = 1011;
  4167. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  4168. = pb::FieldCodec.ForInt32(8088);
  4169. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4171. public pbc::RepeatedField<int> RepeatedInt32 {
  4172. get { return repeatedInt32_; }
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4175. public override bool Equals(object other) {
  4176. return Equals(other as UnknownToTestAllTypes);
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4179. public bool Equals(UnknownToTestAllTypes other) {
  4180. if (ReferenceEquals(other, null)) {
  4181. return false;
  4182. }
  4183. if (ReferenceEquals(other, this)) {
  4184. return true;
  4185. }
  4186. if (OptionalInt32 != other.OptionalInt32) return false;
  4187. if (OptionalString != other.OptionalString) return false;
  4188. if (!object.Equals(NestedMessage, other.NestedMessage)) return false;
  4189. if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
  4190. if (OptionalBool != other.OptionalBool) return false;
  4191. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  4192. return Equals(_unknownFields, other._unknownFields);
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4195. public override int GetHashCode() {
  4196. int hash = 1;
  4197. if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
  4198. if (HasOptionalString) hash ^= OptionalString.GetHashCode();
  4199. if (HasNestedMessage) hash ^= NestedMessage.GetHashCode();
  4200. if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
  4201. if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
  4202. hash ^= repeatedInt32_.GetHashCode();
  4203. if (_unknownFields != null) {
  4204. hash ^= _unknownFields.GetHashCode();
  4205. }
  4206. return hash;
  4207. }
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4209. public override string ToString() {
  4210. return pb::JsonFormatter.ToDiagnosticString(this);
  4211. }
  4212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4213. public void WriteTo(pb::CodedOutputStream output) {
  4214. if (HasOptionalInt32) {
  4215. output.WriteRawTag(200, 62);
  4216. output.WriteInt32(OptionalInt32);
  4217. }
  4218. if (HasOptionalString) {
  4219. output.WriteRawTag(210, 62);
  4220. output.WriteString(OptionalString);
  4221. }
  4222. if (HasNestedMessage) {
  4223. output.WriteRawTag(218, 62);
  4224. output.WriteMessage(NestedMessage);
  4225. }
  4226. if (HasOptionalGroup) {
  4227. output.WriteRawTag(227, 62);
  4228. output.WriteGroup(OptionalGroup);
  4229. output.WriteRawTag(228, 62);
  4230. }
  4231. if (HasOptionalBool) {
  4232. output.WriteRawTag(240, 62);
  4233. output.WriteBool(OptionalBool);
  4234. }
  4235. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  4236. if (_unknownFields != null) {
  4237. _unknownFields.WriteTo(output);
  4238. }
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4241. public int CalculateSize() {
  4242. int size = 0;
  4243. if (HasOptionalInt32) {
  4244. size += 2 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  4245. }
  4246. if (HasOptionalString) {
  4247. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  4248. }
  4249. if (HasNestedMessage) {
  4250. size += 2 + pb::CodedOutputStream.ComputeMessageSize(NestedMessage);
  4251. }
  4252. if (HasOptionalGroup) {
  4253. size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
  4254. }
  4255. if (HasOptionalBool) {
  4256. size += 2 + 1;
  4257. }
  4258. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  4259. if (_unknownFields != null) {
  4260. size += _unknownFields.CalculateSize();
  4261. }
  4262. return size;
  4263. }
  4264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4265. public void MergeFrom(UnknownToTestAllTypes other) {
  4266. if (other == null) {
  4267. return;
  4268. }
  4269. if (other.HasOptionalInt32) {
  4270. OptionalInt32 = other.OptionalInt32;
  4271. }
  4272. if (other.HasOptionalString) {
  4273. OptionalString = other.OptionalString;
  4274. }
  4275. if (other.HasNestedMessage) {
  4276. if (!HasNestedMessage) {
  4277. NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
  4278. }
  4279. NestedMessage.MergeFrom(other.NestedMessage);
  4280. }
  4281. if (other.HasOptionalGroup) {
  4282. if (!HasOptionalGroup) {
  4283. OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
  4284. }
  4285. OptionalGroup.MergeFrom(other.OptionalGroup);
  4286. }
  4287. if (other.HasOptionalBool) {
  4288. OptionalBool = other.OptionalBool;
  4289. }
  4290. repeatedInt32_.Add(other.repeatedInt32_);
  4291. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4292. }
  4293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4294. public void MergeFrom(pb::CodedInputStream input) {
  4295. uint tag;
  4296. while ((tag = input.ReadTag()) != 0) {
  4297. switch(tag) {
  4298. default:
  4299. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4300. break;
  4301. case 8008: {
  4302. OptionalInt32 = input.ReadInt32();
  4303. break;
  4304. }
  4305. case 8018: {
  4306. OptionalString = input.ReadString();
  4307. break;
  4308. }
  4309. case 8026: {
  4310. if (!HasNestedMessage) {
  4311. NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
  4312. }
  4313. input.ReadMessage(NestedMessage);
  4314. break;
  4315. }
  4316. case 8035: {
  4317. if (!HasOptionalGroup) {
  4318. OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
  4319. }
  4320. input.ReadGroup(OptionalGroup);
  4321. break;
  4322. }
  4323. case 8048: {
  4324. OptionalBool = input.ReadBool();
  4325. break;
  4326. }
  4327. case 8090:
  4328. case 8088: {
  4329. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  4330. break;
  4331. }
  4332. }
  4333. }
  4334. }
  4335. #region Nested types
  4336. /// <summary>Container for nested types declared in the UnknownToTestAllTypes message type.</summary>
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4338. public static partial class Types {
  4339. public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
  4340. private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
  4341. private pb::UnknownFieldSet _unknownFields;
  4342. private int _hasBits0;
  4343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4344. public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4346. public static pbr::MessageDescriptor Descriptor {
  4347. get { return global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Descriptor.NestedTypes[0]; }
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4350. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4351. get { return Descriptor; }
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4354. public OptionalGroup() {
  4355. OnConstruction();
  4356. }
  4357. partial void OnConstruction();
  4358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4359. public OptionalGroup(OptionalGroup other) : this() {
  4360. _hasBits0 = other._hasBits0;
  4361. a_ = other.a_;
  4362. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4365. public OptionalGroup Clone() {
  4366. return new OptionalGroup(this);
  4367. }
  4368. /// <summary>Field number for the "a" field.</summary>
  4369. public const int AFieldNumber = 1;
  4370. private readonly static int ADefaultValue = 0;
  4371. private int a_;
  4372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4373. public int A {
  4374. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  4375. set {
  4376. _hasBits0 |= 1;
  4377. a_ = value;
  4378. }
  4379. }
  4380. /// <summary>Gets whether the "a" field is set</summary>
  4381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4382. public bool HasA {
  4383. get { return (_hasBits0 & 1) != 0; }
  4384. }
  4385. /// <summary>Clears the value of the "a" field</summary>
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4387. public void ClearA() {
  4388. _hasBits0 &= ~1;
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4391. public override bool Equals(object other) {
  4392. return Equals(other as OptionalGroup);
  4393. }
  4394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4395. public bool Equals(OptionalGroup other) {
  4396. if (ReferenceEquals(other, null)) {
  4397. return false;
  4398. }
  4399. if (ReferenceEquals(other, this)) {
  4400. return true;
  4401. }
  4402. if (A != other.A) return false;
  4403. return Equals(_unknownFields, other._unknownFields);
  4404. }
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4406. public override int GetHashCode() {
  4407. int hash = 1;
  4408. if (HasA) hash ^= A.GetHashCode();
  4409. if (_unknownFields != null) {
  4410. hash ^= _unknownFields.GetHashCode();
  4411. }
  4412. return hash;
  4413. }
  4414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4415. public override string ToString() {
  4416. return pb::JsonFormatter.ToDiagnosticString(this);
  4417. }
  4418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4419. public void WriteTo(pb::CodedOutputStream output) {
  4420. if (HasA) {
  4421. output.WriteRawTag(8);
  4422. output.WriteInt32(A);
  4423. }
  4424. if (_unknownFields != null) {
  4425. _unknownFields.WriteTo(output);
  4426. }
  4427. }
  4428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4429. public int CalculateSize() {
  4430. int size = 0;
  4431. if (HasA) {
  4432. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  4433. }
  4434. if (_unknownFields != null) {
  4435. size += _unknownFields.CalculateSize();
  4436. }
  4437. return size;
  4438. }
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4440. public void MergeFrom(OptionalGroup other) {
  4441. if (other == null) {
  4442. return;
  4443. }
  4444. if (other.HasA) {
  4445. A = other.A;
  4446. }
  4447. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4448. }
  4449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4450. public void MergeFrom(pb::CodedInputStream input) {
  4451. uint tag;
  4452. while ((tag = input.ReadTag()) != 0) {
  4453. switch(tag) {
  4454. case 8036:
  4455. return;
  4456. default:
  4457. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4458. break;
  4459. case 8: {
  4460. A = input.ReadInt32();
  4461. break;
  4462. }
  4463. }
  4464. }
  4465. }
  4466. }
  4467. }
  4468. #endregion
  4469. }
  4470. #endregion
  4471. }
  4472. #endregion Designer generated code