TestMessagesProto2.cs 231 KB

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