TestMessagesProto3.cs 169 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/test_messages_proto3.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.Proto3 {
  12. /// <summary>Holder for reflection information generated from google/protobuf/test_messages_proto3.proto</summary>
  13. public static partial class TestMessagesProto3Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for google/protobuf/test_messages_proto3.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static TestMessagesProto3Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzMucHJvdG8S",
  24. "HXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zGhlnb29nbGUvcHJvdG9i",
  25. "dWYvYW55LnByb3RvGh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8a",
  26. "IGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhxnb29nbGUvcHJv",
  27. "dG9idWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1w",
  28. "LnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8itDsKElRl",
  29. "c3RBbGxUeXBlc1Byb3RvMxIWCg5vcHRpb25hbF9pbnQzMhgBIAEoBRIWCg5v",
  30. "cHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9vcHRpb25hbF91aW50MzIYAyABKA0S",
  31. "FwoPb3B0aW9uYWxfdWludDY0GAQgASgEEhcKD29wdGlvbmFsX3NpbnQzMhgF",
  32. "IAEoERIXCg9vcHRpb25hbF9zaW50NjQYBiABKBISGAoQb3B0aW9uYWxfZml4",
  33. "ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9maXhlZDY0GAggASgGEhkKEW9wdGlv",
  34. "bmFsX3NmaXhlZDMyGAkgASgPEhkKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQ",
  35. "EhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgCEhcKD29wdGlvbmFsX2RvdWJsZRgM",
  36. "IAEoARIVCg1vcHRpb25hbF9ib29sGA0gASgIEhcKD29wdGlvbmFsX3N0cmlu",
  37. "ZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRlcxgPIAEoDBJgChdvcHRpb25hbF9u",
  38. "ZXN0ZWRfbWVzc2FnZRgSIAEoCzI/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMu",
  39. "cHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRNZXNzYWdlEk8KGG9w",
  40. "dGlvbmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzItLnByb3RvYnVmX3Rlc3Rf",
  41. "bWVzc2FnZXMucHJvdG8zLkZvcmVpZ25NZXNzYWdlEloKFG9wdGlvbmFsX25l",
  42. "c3RlZF9lbnVtGBUgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90",
  43. "bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW0SSQoVb3B0aW9uYWxf",
  44. "Zm9yZWlnbl9lbnVtGBYgASgOMioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5w",
  45. "cm90bzMuRm9yZWlnbkVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBgg",
  46. "ASgJQgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARJMChFyZWN1cnNp",
  47. "dmVfbWVzc2FnZRgbIAEoCzIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv",
  48. "dG8zLlRlc3RBbGxUeXBlc1Byb3RvMxIWCg5yZXBlYXRlZF9pbnQzMhgfIAMo",
  49. "BRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBlYXRlZF91aW50MzIY",
  50. "ISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcKD3JlcGVhdGVkX3Np",
  51. "bnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCADKBISGAoQcmVwZWF0",
  52. "ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhlZDY0GCYgAygGEhkK",
  53. "EXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVhdGVkX3NmaXhlZDY0",
  54. "GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcKD3JlcGVhdGVkX2Rv",
  55. "dWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygIEhcKD3JlcGVhdGVk",
  56. "X3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgtIAMoDBJgChdyZXBl",
  57. "YXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzI/LnByb3RvYnVmX3Rlc3RfbWVz",
  58. "c2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRNZXNzYWdl",
  59. "Ek8KGHJlcGVhdGVkX2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzItLnByb3RvYnVm",
  60. "X3Rlc3RfbWVzc2FnZXMucHJvdG8zLkZvcmVpZ25NZXNzYWdlEloKFHJlcGVh",
  61. "dGVkX25lc3RlZF9lbnVtGDMgAygOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdl",
  62. "cy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW0SSQoVcmVw",
  63. "ZWF0ZWRfZm9yZWlnbl9lbnVtGDQgAygOMioucHJvdG9idWZfdGVzdF9tZXNz",
  64. "YWdlcy5wcm90bzMuRm9yZWlnbkVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3Bp",
  65. "ZWNlGDYgAygJQgIIAhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJdCg9t",
  66. "YXBfaW50MzJfaW50MzIYOCADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz",
  67. "LnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwSW50MzJJbnQzMkVudHJ5",
  68. "El0KD21hcF9pbnQ2NF9pbnQ2NBg5IAMoCzJELnByb3RvYnVmX3Rlc3RfbWVz",
  69. "c2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBJbnQ2NEludDY0",
  70. "RW50cnkSYQoRbWFwX3VpbnQzMl91aW50MzIYOiADKAsyRi5wcm90b2J1Zl90",
  71. "ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwVWlu",
  72. "dDMyVWludDMyRW50cnkSYQoRbWFwX3VpbnQ2NF91aW50NjQYOyADKAsyRi5w",
  73. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90",
  74. "bzMuTWFwVWludDY0VWludDY0RW50cnkSYQoRbWFwX3NpbnQzMl9zaW50MzIY",
  75. "PCADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxs",
  76. "VHlwZXNQcm90bzMuTWFwU2ludDMyU2ludDMyRW50cnkSYQoRbWFwX3NpbnQ2",
  77. "NF9zaW50NjQYPSADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3Rv",
  78. "My5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU2ludDY0U2ludDY0RW50cnkSZQoT",
  79. "bWFwX2ZpeGVkMzJfZml4ZWQzMhg+IAMoCzJILnByb3RvYnVmX3Rlc3RfbWVz",
  80. "c2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBGaXhlZDMyRml4",
  81. "ZWQzMkVudHJ5EmUKE21hcF9maXhlZDY0X2ZpeGVkNjQYPyADKAsySC5wcm90",
  82. "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMu",
  83. "TWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRJpChVtYXBfc2ZpeGVkMzJfc2ZpeGVk",
  84. "MzIYQCADKAsySi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0",
  85. "QWxsVHlwZXNQcm90bzMuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EmkKFW1h",
  86. "cF9zZml4ZWQ2NF9zZml4ZWQ2NBhBIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVz",
  87. "c2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTZml4ZWQ2NFNm",
  88. "aXhlZDY0RW50cnkSXQoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMkQucHJvdG9i",
  89. "dWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1h",
  90. "cEludDMyRmxvYXRFbnRyeRJfChBtYXBfaW50MzJfZG91YmxlGEMgAygLMkUu",
  91. "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJv",
  92. "dG8zLk1hcEludDMyRG91YmxlRW50cnkSWQoNbWFwX2Jvb2xfYm9vbBhEIAMo",
  93. "CzJCLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBl",
  94. "c1Byb3RvMy5NYXBCb29sQm9vbEVudHJ5EmEKEW1hcF9zdHJpbmdfc3RyaW5n",
  95. "GEUgAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFs",
  96. "bFR5cGVzUHJvdG8zLk1hcFN0cmluZ1N0cmluZ0VudHJ5El8KEG1hcF9zdHJp",
  97. "bmdfYnl0ZXMYRiADKAsyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3Rv",
  98. "My5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU3RyaW5nQnl0ZXNFbnRyeRJwChlt",
  99. "YXBfc3RyaW5nX25lc3RlZF9tZXNzYWdlGEcgAygLMk0ucHJvdG9idWZfdGVz",
  100. "dF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmlu",
  101. "Z05lc3RlZE1lc3NhZ2VFbnRyeRJyChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVz",
  102. "c2FnZRhIIAMoCzJOLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRl",
  103. "c3RBbGxUeXBlc1Byb3RvMy5NYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5",
  104. "EmoKFm1hcF9zdHJpbmdfbmVzdGVkX2VudW0YSSADKAsySi5wcm90b2J1Zl90",
  105. "ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU3Ry",
  106. "aW5nTmVzdGVkRW51bUVudHJ5EmwKF21hcF9zdHJpbmdfZm9yZWlnbl9lbnVt",
  107. "GEogAygLMksucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFs",
  108. "bFR5cGVzUHJvdG8zLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSFgoMb25l",
  109. "b2ZfdWludDMyGG8gASgNSAASXwoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCAB",
  110. "KAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlw",
  111. "ZXNQcm90bzMuTmVzdGVkTWVzc2FnZUgAEhYKDG9uZW9mX3N0cmluZxhxIAEo",
  112. "CUgAEhUKC29uZW9mX2J5dGVzGHIgASgMSAASFAoKb25lb2ZfYm9vbBhzIAEo",
  113. "CEgAEhYKDG9uZW9mX3VpbnQ2NBh0IAEoBEgAEhUKC29uZW9mX2Zsb2F0GHUg",
  114. "ASgCSAASFgoMb25lb2ZfZG91YmxlGHYgASgBSAASUgoKb25lb2ZfZW51bRh3",
  115. "IAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxU",
  116. "eXBlc1Byb3RvMy5OZXN0ZWRFbnVtSAASOgoVb3B0aW9uYWxfYm9vbF93cmFw",
  117. "cGVyGMkBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUSPAoWb3B0",
  118. "aW9uYWxfaW50MzJfd3JhcHBlchjKASABKAsyGy5nb29nbGUucHJvdG9idWYu",
  119. "SW50MzJWYWx1ZRI8ChZvcHRpb25hbF9pbnQ2NF93cmFwcGVyGMsBIAEoCzIb",
  120. "Lmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlEj4KF29wdGlvbmFsX3VpbnQz",
  121. "Ml93cmFwcGVyGMwBIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50MzJWYWx1",
  122. "ZRI+ChdvcHRpb25hbF91aW50NjRfd3JhcHBlchjNASABKAsyHC5nb29nbGUu",
  123. "cHJvdG9idWYuVUludDY0VmFsdWUSPAoWb3B0aW9uYWxfZmxvYXRfd3JhcHBl",
  124. "chjOASABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRI+ChdvcHRp",
  125. "b25hbF9kb3VibGVfd3JhcHBlchjPASABKAsyHC5nb29nbGUucHJvdG9idWYu",
  126. "RG91YmxlVmFsdWUSPgoXb3B0aW9uYWxfc3RyaW5nX3dyYXBwZXIY0AEgASgL",
  127. "MhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjwKFm9wdGlvbmFsX2J5",
  128. "dGVzX3dyYXBwZXIY0QEgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkJ5dGVzVmFs",
  129. "dWUSOgoVcmVwZWF0ZWRfYm9vbF93cmFwcGVyGNMBIAMoCzIaLmdvb2dsZS5w",
  130. "cm90b2J1Zi5Cb29sVmFsdWUSPAoWcmVwZWF0ZWRfaW50MzJfd3JhcHBlchjU",
  131. "ASADKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRI8ChZyZXBlYXRl",
  132. "ZF9pbnQ2NF93cmFwcGVyGNUBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2",
  133. "NFZhbHVlEj4KF3JlcGVhdGVkX3VpbnQzMl93cmFwcGVyGNYBIAMoCzIcLmdv",
  134. "b2dsZS5wcm90b2J1Zi5VSW50MzJWYWx1ZRI+ChdyZXBlYXRlZF91aW50NjRf",
  135. "d3JhcHBlchjXASADKAsyHC5nb29nbGUucHJvdG9idWYuVUludDY0VmFsdWUS",
  136. "PAoWcmVwZWF0ZWRfZmxvYXRfd3JhcHBlchjYASADKAsyGy5nb29nbGUucHJv",
  137. "dG9idWYuRmxvYXRWYWx1ZRI+ChdyZXBlYXRlZF9kb3VibGVfd3JhcHBlchjZ",
  138. "ASADKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSPgoXcmVwZWF0",
  139. "ZWRfc3RyaW5nX3dyYXBwZXIY2gEgAygLMhwuZ29vZ2xlLnByb3RvYnVmLlN0",
  140. "cmluZ1ZhbHVlEjwKFnJlcGVhdGVkX2J5dGVzX3dyYXBwZXIY2wEgAygLMhsu",
  141. "Z29vZ2xlLnByb3RvYnVmLkJ5dGVzVmFsdWUSNQoRb3B0aW9uYWxfZHVyYXRp",
  142. "b24YrQIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjcKEm9wdGlv",
  143. "bmFsX3RpbWVzdGFtcBiuAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0",
  144. "YW1wEjgKE29wdGlvbmFsX2ZpZWxkX21hc2sYrwIgASgLMhouZ29vZ2xlLnBy",
  145. "b3RvYnVmLkZpZWxkTWFzaxIxCg9vcHRpb25hbF9zdHJ1Y3QYsAIgASgLMhcu",
  146. "Z29vZ2xlLnByb3RvYnVmLlN0cnVjdBIrCgxvcHRpb25hbF9hbnkYsQIgASgL",
  147. "MhQuZ29vZ2xlLnByb3RvYnVmLkFueRIvCg5vcHRpb25hbF92YWx1ZRiyAiAB",
  148. "KAsyFi5nb29nbGUucHJvdG9idWYuVmFsdWUSNQoRcmVwZWF0ZWRfZHVyYXRp",
  149. "b24YtwIgAygLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjcKEnJlcGVh",
  150. "dGVkX3RpbWVzdGFtcBi4AiADKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0",
  151. "YW1wEjcKEnJlcGVhdGVkX2ZpZWxkbWFzaxi5AiADKAsyGi5nb29nbGUucHJv",
  152. "dG9idWYuRmllbGRNYXNrEjEKD3JlcGVhdGVkX3N0cnVjdBjEAiADKAsyFy5n",
  153. "b29nbGUucHJvdG9idWYuU3RydWN0EisKDHJlcGVhdGVkX2FueRi7AiADKAsy",
  154. "FC5nb29nbGUucHJvdG9idWYuQW55Ei8KDnJlcGVhdGVkX3ZhbHVlGLwCIAMo",
  155. "CzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZRITCgpmaWVsZG5hbWUxGJEDIAEo",
  156. "BRIUCgtmaWVsZF9uYW1lMhiSAyABKAUSFQoMX2ZpZWxkX25hbWUzGJMDIAEo",
  157. "BRIWCg1maWVsZF9fbmFtZTRfGJQDIAEoBRIUCgtmaWVsZDBuYW1lNRiVAyAB",
  158. "KAUSFgoNZmllbGRfMF9uYW1lNhiWAyABKAUSEwoKZmllbGROYW1lNxiXAyAB",
  159. "KAUSEwoKRmllbGROYW1lOBiYAyABKAUSFAoLZmllbGRfTmFtZTkYmQMgASgF",
  160. "EhUKDEZpZWxkX05hbWUxMBiaAyABKAUSFQoMRklFTERfTkFNRTExGJsDIAEo",
  161. "BRIVCgxGSUVMRF9uYW1lMTIYnAMgASgFEhcKDl9fZmllbGRfbmFtZTEzGJ0D",
  162. "IAEoBRIXCg5fX0ZpZWxkX25hbWUxNBieAyABKAUSFgoNZmllbGRfX25hbWUx",
  163. "NRifAyABKAUSFgoNZmllbGRfX05hbWUxNhigAyABKAUSFwoOZmllbGRfbmFt",
  164. "ZTE3X18YoQMgASgFEhcKDkZpZWxkX25hbWUxOF9fGKIDIAEoBRpiCg1OZXN0",
  165. "ZWRNZXNzYWdlEgkKAWEYASABKAUSRgoLY29yZWN1cnNpdmUYAiABKAsyMS5w",
  166. "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90",
  167. "bzMaNAoSTWFwSW50MzJJbnQzMkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1",
  168. "ZRgCIAEoBToCOAEaNAoSTWFwSW50NjRJbnQ2NEVudHJ5EgsKA2tleRgBIAEo",
  169. "AxINCgV2YWx1ZRgCIAEoAzoCOAEaNgoUTWFwVWludDMyVWludDMyRW50cnkS",
  170. "CwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo2ChRNYXBVaW50NjRV",
  171. "aW50NjRFbnRyeRILCgNrZXkYASABKAQSDQoFdmFsdWUYAiABKAQ6AjgBGjYK",
  172. "FE1hcFNpbnQzMlNpbnQzMkVudHJ5EgsKA2tleRgBIAEoERINCgV2YWx1ZRgC",
  173. "IAEoEToCOAEaNgoUTWFwU2ludDY0U2ludDY0RW50cnkSCwoDa2V5GAEgASgS",
  174. "Eg0KBXZhbHVlGAIgASgSOgI4ARo4ChZNYXBGaXhlZDMyRml4ZWQzMkVudHJ5",
  175. "EgsKA2tleRgBIAEoBxINCgV2YWx1ZRgCIAEoBzoCOAEaOAoWTWFwRml4ZWQ2",
  176. "NEZpeGVkNjRFbnRyeRILCgNrZXkYASABKAYSDQoFdmFsdWUYAiABKAY6AjgB",
  177. "GjoKGE1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRILCgNrZXkYASABKA8SDQoF",
  178. "dmFsdWUYAiABKA86AjgBGjoKGE1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRIL",
  179. "CgNrZXkYASABKBASDQoFdmFsdWUYAiABKBA6AjgBGjQKEk1hcEludDMyRmxv",
  180. "YXRFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAI6AjgBGjUKE01h",
  181. "cEludDMyRG91YmxlRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgB",
  182. "OgI4ARoyChBNYXBCb29sQm9vbEVudHJ5EgsKA2tleRgBIAEoCBINCgV2YWx1",
  183. "ZRgCIAEoCDoCOAEaNgoUTWFwU3RyaW5nU3RyaW5nRW50cnkSCwoDa2V5GAEg",
  184. "ASgJEg0KBXZhbHVlGAIgASgJOgI4ARo1ChNNYXBTdHJpbmdCeXRlc0VudHJ5",
  185. "EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEafgobTWFwU3RyaW5n",
  186. "TmVzdGVkTWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRJOCgV2YWx1ZRgCIAEo",
  187. "CzI/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBl",
  188. "c1Byb3RvMy5OZXN0ZWRNZXNzYWdlOgI4ARptChxNYXBTdHJpbmdGb3JlaWdu",
  189. "TWVzc2FnZUVudHJ5EgsKA2tleRgBIAEoCRI8CgV2YWx1ZRgCIAEoCzItLnBy",
  190. "b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLkZvcmVpZ25NZXNzYWdlOgI4",
  191. "ARp4ChhNYXBTdHJpbmdOZXN0ZWRFbnVtRW50cnkSCwoDa2V5GAEgASgJEksK",
  192. "BXZhbHVlGAIgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMu",
  193. "VGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW06AjgBGmcKGU1hcFN0cmlu",
  194. "Z0ZvcmVpZ25FbnVtRW50cnkSCwoDa2V5GAEgASgJEjkKBXZhbHVlGAIgASgO",
  195. "MioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbkVudW06",
  196. "AjgBIjkKCk5lc3RlZEVudW0SBwoDRk9PEAASBwoDQkFSEAESBwoDQkFaEAIS",
  197. "EAoDTkVHEP///////////wFCDQoLb25lb2ZfZmllbGRKBgj1AxD/AyIbCg5G",
  198. "b3JlaWduTWVzc2FnZRIJCgFjGAEgASgFKkAKC0ZvcmVpZ25FbnVtEg8KC0ZP",
  199. "UkVJR05fRk9PEAASDwoLRk9SRUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhAC",
  200. "QjgKKGNvbS5nb29nbGUucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzNI",
  201. "AfgBAaICBlByb3RvM2IGcHJvdG8z"));
  202. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  203. new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
  204. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Proto3.ForeignEnum), }, new pbr::GeneratedClrTypeInfo[] {
  205. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3), global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "OptionalBoolWrapper", "OptionalInt32Wrapper", "OptionalInt64Wrapper", "OptionalUint32Wrapper", "OptionalUint64Wrapper", "OptionalFloatWrapper", "OptionalDoubleWrapper", "OptionalStringWrapper", "OptionalBytesWrapper", "RepeatedBoolWrapper", "RepeatedInt32Wrapper", "RepeatedInt64Wrapper", "RepeatedUint32Wrapper", "RepeatedUint64Wrapper", "RepeatedFloatWrapper", "RepeatedDoubleWrapper", "RepeatedStringWrapper", "RepeatedBytesWrapper", "OptionalDuration", "OptionalTimestamp", "OptionalFieldMask", "OptionalStruct", "OptionalAny", "OptionalValue", "RepeatedDuration", "RepeatedTimestamp", "RepeatedFieldmask", "RepeatedStruct", "RepeatedAny", "RepeatedValue", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage), global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null),
  206. null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  207. new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto3.ForeignMessage), global::ProtobufTestMessages.Proto3.ForeignMessage.Parser, new[]{ "C" }, null, null, null)
  208. }));
  209. }
  210. #endregion
  211. }
  212. #region Enums
  213. public enum ForeignEnum {
  214. [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0,
  215. [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1,
  216. [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2,
  217. }
  218. #endregion
  219. #region Messages
  220. /// <summary>
  221. /// This proto includes every type of field in both singular and repeated
  222. /// forms.
  223. ///
  224. /// Also, crucially, all messages and enums in this file are eventually
  225. /// submessages of this message. So for example, a fuzz test of TestAllTypes
  226. /// could trigger bugs that occur in any message type in this file. We verify
  227. /// this stays true in a unit test.
  228. /// </summary>
  229. public sealed partial class TestAllTypesProto3 : pb::IMessage<TestAllTypesProto3> {
  230. private static readonly pb::MessageParser<TestAllTypesProto3> _parser = new pb::MessageParser<TestAllTypesProto3>(() => new TestAllTypesProto3());
  231. private pb::UnknownFieldSet _unknownFields;
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  233. public static pb::MessageParser<TestAllTypesProto3> Parser { get { return _parser; } }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. public static pbr::MessageDescriptor Descriptor {
  236. get { return global::ProtobufTestMessages.Proto3.TestMessagesProto3Reflection.Descriptor.MessageTypes[0]; }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. pbr::MessageDescriptor pb::IMessage.Descriptor {
  240. get { return Descriptor; }
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. public TestAllTypesProto3() {
  244. OnConstruction();
  245. }
  246. partial void OnConstruction();
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  248. public TestAllTypesProto3(TestAllTypesProto3 other) : this() {
  249. optionalInt32_ = other.optionalInt32_;
  250. optionalInt64_ = other.optionalInt64_;
  251. optionalUint32_ = other.optionalUint32_;
  252. optionalUint64_ = other.optionalUint64_;
  253. optionalSint32_ = other.optionalSint32_;
  254. optionalSint64_ = other.optionalSint64_;
  255. optionalFixed32_ = other.optionalFixed32_;
  256. optionalFixed64_ = other.optionalFixed64_;
  257. optionalSfixed32_ = other.optionalSfixed32_;
  258. optionalSfixed64_ = other.optionalSfixed64_;
  259. optionalFloat_ = other.optionalFloat_;
  260. optionalDouble_ = other.optionalDouble_;
  261. optionalBool_ = other.optionalBool_;
  262. optionalString_ = other.optionalString_;
  263. optionalBytes_ = other.optionalBytes_;
  264. optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
  265. optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
  266. optionalNestedEnum_ = other.optionalNestedEnum_;
  267. optionalForeignEnum_ = other.optionalForeignEnum_;
  268. optionalStringPiece_ = other.optionalStringPiece_;
  269. optionalCord_ = other.optionalCord_;
  270. recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
  271. repeatedInt32_ = other.repeatedInt32_.Clone();
  272. repeatedInt64_ = other.repeatedInt64_.Clone();
  273. repeatedUint32_ = other.repeatedUint32_.Clone();
  274. repeatedUint64_ = other.repeatedUint64_.Clone();
  275. repeatedSint32_ = other.repeatedSint32_.Clone();
  276. repeatedSint64_ = other.repeatedSint64_.Clone();
  277. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  278. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  279. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  280. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  281. repeatedFloat_ = other.repeatedFloat_.Clone();
  282. repeatedDouble_ = other.repeatedDouble_.Clone();
  283. repeatedBool_ = other.repeatedBool_.Clone();
  284. repeatedString_ = other.repeatedString_.Clone();
  285. repeatedBytes_ = other.repeatedBytes_.Clone();
  286. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  287. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  288. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  289. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  290. repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
  291. repeatedCord_ = other.repeatedCord_.Clone();
  292. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  293. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  294. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  295. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  296. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  297. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  298. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  299. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  300. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  301. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  302. mapInt32Float_ = other.mapInt32Float_.Clone();
  303. mapInt32Double_ = other.mapInt32Double_.Clone();
  304. mapBoolBool_ = other.mapBoolBool_.Clone();
  305. mapStringString_ = other.mapStringString_.Clone();
  306. mapStringBytes_ = other.mapStringBytes_.Clone();
  307. mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
  308. mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
  309. mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
  310. mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
  311. OptionalBoolWrapper = other.OptionalBoolWrapper;
  312. OptionalInt32Wrapper = other.OptionalInt32Wrapper;
  313. OptionalInt64Wrapper = other.OptionalInt64Wrapper;
  314. OptionalUint32Wrapper = other.OptionalUint32Wrapper;
  315. OptionalUint64Wrapper = other.OptionalUint64Wrapper;
  316. OptionalFloatWrapper = other.OptionalFloatWrapper;
  317. OptionalDoubleWrapper = other.OptionalDoubleWrapper;
  318. OptionalStringWrapper = other.OptionalStringWrapper;
  319. OptionalBytesWrapper = other.OptionalBytesWrapper;
  320. repeatedBoolWrapper_ = other.repeatedBoolWrapper_.Clone();
  321. repeatedInt32Wrapper_ = other.repeatedInt32Wrapper_.Clone();
  322. repeatedInt64Wrapper_ = other.repeatedInt64Wrapper_.Clone();
  323. repeatedUint32Wrapper_ = other.repeatedUint32Wrapper_.Clone();
  324. repeatedUint64Wrapper_ = other.repeatedUint64Wrapper_.Clone();
  325. repeatedFloatWrapper_ = other.repeatedFloatWrapper_.Clone();
  326. repeatedDoubleWrapper_ = other.repeatedDoubleWrapper_.Clone();
  327. repeatedStringWrapper_ = other.repeatedStringWrapper_.Clone();
  328. repeatedBytesWrapper_ = other.repeatedBytesWrapper_.Clone();
  329. optionalDuration_ = other.optionalDuration_ != null ? other.optionalDuration_.Clone() : null;
  330. optionalTimestamp_ = other.optionalTimestamp_ != null ? other.optionalTimestamp_.Clone() : null;
  331. optionalFieldMask_ = other.optionalFieldMask_ != null ? other.optionalFieldMask_.Clone() : null;
  332. optionalStruct_ = other.optionalStruct_ != null ? other.optionalStruct_.Clone() : null;
  333. optionalAny_ = other.optionalAny_ != null ? other.optionalAny_.Clone() : null;
  334. optionalValue_ = other.optionalValue_ != null ? other.optionalValue_.Clone() : null;
  335. repeatedDuration_ = other.repeatedDuration_.Clone();
  336. repeatedTimestamp_ = other.repeatedTimestamp_.Clone();
  337. repeatedFieldmask_ = other.repeatedFieldmask_.Clone();
  338. repeatedStruct_ = other.repeatedStruct_.Clone();
  339. repeatedAny_ = other.repeatedAny_.Clone();
  340. repeatedValue_ = other.repeatedValue_.Clone();
  341. fieldname1_ = other.fieldname1_;
  342. fieldName2_ = other.fieldName2_;
  343. FieldName3_ = other.FieldName3_;
  344. fieldName4_ = other.fieldName4_;
  345. field0Name5_ = other.field0Name5_;
  346. field0Name6_ = other.field0Name6_;
  347. fieldName7_ = other.fieldName7_;
  348. fieldName8_ = other.fieldName8_;
  349. fieldName9_ = other.fieldName9_;
  350. fieldName10_ = other.fieldName10_;
  351. fIELDNAME11_ = other.fIELDNAME11_;
  352. fIELDName12_ = other.fIELDName12_;
  353. FieldName13_ = other.FieldName13_;
  354. FieldName14_ = other.FieldName14_;
  355. fieldName15_ = other.fieldName15_;
  356. fieldName16_ = other.fieldName16_;
  357. fieldName17_ = other.fieldName17_;
  358. fieldName18_ = other.fieldName18_;
  359. switch (other.OneofFieldCase) {
  360. case OneofFieldOneofCase.OneofUint32:
  361. OneofUint32 = other.OneofUint32;
  362. break;
  363. case OneofFieldOneofCase.OneofNestedMessage:
  364. OneofNestedMessage = other.OneofNestedMessage.Clone();
  365. break;
  366. case OneofFieldOneofCase.OneofString:
  367. OneofString = other.OneofString;
  368. break;
  369. case OneofFieldOneofCase.OneofBytes:
  370. OneofBytes = other.OneofBytes;
  371. break;
  372. case OneofFieldOneofCase.OneofBool:
  373. OneofBool = other.OneofBool;
  374. break;
  375. case OneofFieldOneofCase.OneofUint64:
  376. OneofUint64 = other.OneofUint64;
  377. break;
  378. case OneofFieldOneofCase.OneofFloat:
  379. OneofFloat = other.OneofFloat;
  380. break;
  381. case OneofFieldOneofCase.OneofDouble:
  382. OneofDouble = other.OneofDouble;
  383. break;
  384. case OneofFieldOneofCase.OneofEnum:
  385. OneofEnum = other.OneofEnum;
  386. break;
  387. }
  388. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  391. public TestAllTypesProto3 Clone() {
  392. return new TestAllTypesProto3(this);
  393. }
  394. /// <summary>Field number for the "optional_int32" field.</summary>
  395. public const int OptionalInt32FieldNumber = 1;
  396. private int optionalInt32_;
  397. /// <summary>
  398. /// Singular
  399. /// </summary>
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public int OptionalInt32 {
  402. get { return optionalInt32_; }
  403. set {
  404. optionalInt32_ = value;
  405. }
  406. }
  407. /// <summary>Field number for the "optional_int64" field.</summary>
  408. public const int OptionalInt64FieldNumber = 2;
  409. private long optionalInt64_;
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  411. public long OptionalInt64 {
  412. get { return optionalInt64_; }
  413. set {
  414. optionalInt64_ = value;
  415. }
  416. }
  417. /// <summary>Field number for the "optional_uint32" field.</summary>
  418. public const int OptionalUint32FieldNumber = 3;
  419. private uint optionalUint32_;
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. public uint OptionalUint32 {
  422. get { return optionalUint32_; }
  423. set {
  424. optionalUint32_ = value;
  425. }
  426. }
  427. /// <summary>Field number for the "optional_uint64" field.</summary>
  428. public const int OptionalUint64FieldNumber = 4;
  429. private ulong optionalUint64_;
  430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  431. public ulong OptionalUint64 {
  432. get { return optionalUint64_; }
  433. set {
  434. optionalUint64_ = value;
  435. }
  436. }
  437. /// <summary>Field number for the "optional_sint32" field.</summary>
  438. public const int OptionalSint32FieldNumber = 5;
  439. private int optionalSint32_;
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  441. public int OptionalSint32 {
  442. get { return optionalSint32_; }
  443. set {
  444. optionalSint32_ = value;
  445. }
  446. }
  447. /// <summary>Field number for the "optional_sint64" field.</summary>
  448. public const int OptionalSint64FieldNumber = 6;
  449. private long optionalSint64_;
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  451. public long OptionalSint64 {
  452. get { return optionalSint64_; }
  453. set {
  454. optionalSint64_ = value;
  455. }
  456. }
  457. /// <summary>Field number for the "optional_fixed32" field.</summary>
  458. public const int OptionalFixed32FieldNumber = 7;
  459. private uint optionalFixed32_;
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  461. public uint OptionalFixed32 {
  462. get { return optionalFixed32_; }
  463. set {
  464. optionalFixed32_ = value;
  465. }
  466. }
  467. /// <summary>Field number for the "optional_fixed64" field.</summary>
  468. public const int OptionalFixed64FieldNumber = 8;
  469. private ulong optionalFixed64_;
  470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  471. public ulong OptionalFixed64 {
  472. get { return optionalFixed64_; }
  473. set {
  474. optionalFixed64_ = value;
  475. }
  476. }
  477. /// <summary>Field number for the "optional_sfixed32" field.</summary>
  478. public const int OptionalSfixed32FieldNumber = 9;
  479. private int optionalSfixed32_;
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  481. public int OptionalSfixed32 {
  482. get { return optionalSfixed32_; }
  483. set {
  484. optionalSfixed32_ = value;
  485. }
  486. }
  487. /// <summary>Field number for the "optional_sfixed64" field.</summary>
  488. public const int OptionalSfixed64FieldNumber = 10;
  489. private long optionalSfixed64_;
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  491. public long OptionalSfixed64 {
  492. get { return optionalSfixed64_; }
  493. set {
  494. optionalSfixed64_ = value;
  495. }
  496. }
  497. /// <summary>Field number for the "optional_float" field.</summary>
  498. public const int OptionalFloatFieldNumber = 11;
  499. private float optionalFloat_;
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public float OptionalFloat {
  502. get { return optionalFloat_; }
  503. set {
  504. optionalFloat_ = value;
  505. }
  506. }
  507. /// <summary>Field number for the "optional_double" field.</summary>
  508. public const int OptionalDoubleFieldNumber = 12;
  509. private double optionalDouble_;
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  511. public double OptionalDouble {
  512. get { return optionalDouble_; }
  513. set {
  514. optionalDouble_ = value;
  515. }
  516. }
  517. /// <summary>Field number for the "optional_bool" field.</summary>
  518. public const int OptionalBoolFieldNumber = 13;
  519. private bool optionalBool_;
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  521. public bool OptionalBool {
  522. get { return optionalBool_; }
  523. set {
  524. optionalBool_ = value;
  525. }
  526. }
  527. /// <summary>Field number for the "optional_string" field.</summary>
  528. public const int OptionalStringFieldNumber = 14;
  529. private string optionalString_ = "";
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  531. public string OptionalString {
  532. get { return optionalString_; }
  533. set {
  534. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  535. }
  536. }
  537. /// <summary>Field number for the "optional_bytes" field.</summary>
  538. public const int OptionalBytesFieldNumber = 15;
  539. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  541. public pb::ByteString OptionalBytes {
  542. get { return optionalBytes_; }
  543. set {
  544. optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  545. }
  546. }
  547. /// <summary>Field number for the "optional_nested_message" field.</summary>
  548. public const int OptionalNestedMessageFieldNumber = 18;
  549. private global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage optionalNestedMessage_;
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  551. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage OptionalNestedMessage {
  552. get { return optionalNestedMessage_; }
  553. set {
  554. optionalNestedMessage_ = value;
  555. }
  556. }
  557. /// <summary>Field number for the "optional_foreign_message" field.</summary>
  558. public const int OptionalForeignMessageFieldNumber = 19;
  559. private global::ProtobufTestMessages.Proto3.ForeignMessage optionalForeignMessage_;
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  561. public global::ProtobufTestMessages.Proto3.ForeignMessage OptionalForeignMessage {
  562. get { return optionalForeignMessage_; }
  563. set {
  564. optionalForeignMessage_ = value;
  565. }
  566. }
  567. /// <summary>Field number for the "optional_nested_enum" field.</summary>
  568. public const int OptionalNestedEnumFieldNumber = 21;
  569. private global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum optionalNestedEnum_ = 0;
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  571. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum OptionalNestedEnum {
  572. get { return optionalNestedEnum_; }
  573. set {
  574. optionalNestedEnum_ = value;
  575. }
  576. }
  577. /// <summary>Field number for the "optional_foreign_enum" field.</summary>
  578. public const int OptionalForeignEnumFieldNumber = 22;
  579. private global::ProtobufTestMessages.Proto3.ForeignEnum optionalForeignEnum_ = 0;
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  581. public global::ProtobufTestMessages.Proto3.ForeignEnum OptionalForeignEnum {
  582. get { return optionalForeignEnum_; }
  583. set {
  584. optionalForeignEnum_ = value;
  585. }
  586. }
  587. /// <summary>Field number for the "optional_string_piece" field.</summary>
  588. public const int OptionalStringPieceFieldNumber = 24;
  589. private string optionalStringPiece_ = "";
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  591. public string OptionalStringPiece {
  592. get { return optionalStringPiece_; }
  593. set {
  594. optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  595. }
  596. }
  597. /// <summary>Field number for the "optional_cord" field.</summary>
  598. public const int OptionalCordFieldNumber = 25;
  599. private string optionalCord_ = "";
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  601. public string OptionalCord {
  602. get { return optionalCord_; }
  603. set {
  604. optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  605. }
  606. }
  607. /// <summary>Field number for the "recursive_message" field.</summary>
  608. public const int RecursiveMessageFieldNumber = 27;
  609. private global::ProtobufTestMessages.Proto3.TestAllTypesProto3 recursiveMessage_;
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  611. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3 RecursiveMessage {
  612. get { return recursiveMessage_; }
  613. set {
  614. recursiveMessage_ = value;
  615. }
  616. }
  617. /// <summary>Field number for the "repeated_int32" field.</summary>
  618. public const int RepeatedInt32FieldNumber = 31;
  619. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  620. = pb::FieldCodec.ForInt32(250);
  621. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  622. /// <summary>
  623. /// Repeated
  624. /// </summary>
  625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  626. public pbc::RepeatedField<int> RepeatedInt32 {
  627. get { return repeatedInt32_; }
  628. }
  629. /// <summary>Field number for the "repeated_int64" field.</summary>
  630. public const int RepeatedInt64FieldNumber = 32;
  631. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  632. = pb::FieldCodec.ForInt64(258);
  633. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  635. public pbc::RepeatedField<long> RepeatedInt64 {
  636. get { return repeatedInt64_; }
  637. }
  638. /// <summary>Field number for the "repeated_uint32" field.</summary>
  639. public const int RepeatedUint32FieldNumber = 33;
  640. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  641. = pb::FieldCodec.ForUInt32(266);
  642. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  644. public pbc::RepeatedField<uint> RepeatedUint32 {
  645. get { return repeatedUint32_; }
  646. }
  647. /// <summary>Field number for the "repeated_uint64" field.</summary>
  648. public const int RepeatedUint64FieldNumber = 34;
  649. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  650. = pb::FieldCodec.ForUInt64(274);
  651. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  653. public pbc::RepeatedField<ulong> RepeatedUint64 {
  654. get { return repeatedUint64_; }
  655. }
  656. /// <summary>Field number for the "repeated_sint32" field.</summary>
  657. public const int RepeatedSint32FieldNumber = 35;
  658. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  659. = pb::FieldCodec.ForSInt32(282);
  660. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  662. public pbc::RepeatedField<int> RepeatedSint32 {
  663. get { return repeatedSint32_; }
  664. }
  665. /// <summary>Field number for the "repeated_sint64" field.</summary>
  666. public const int RepeatedSint64FieldNumber = 36;
  667. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  668. = pb::FieldCodec.ForSInt64(290);
  669. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  671. public pbc::RepeatedField<long> RepeatedSint64 {
  672. get { return repeatedSint64_; }
  673. }
  674. /// <summary>Field number for the "repeated_fixed32" field.</summary>
  675. public const int RepeatedFixed32FieldNumber = 37;
  676. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  677. = pb::FieldCodec.ForFixed32(298);
  678. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  680. public pbc::RepeatedField<uint> RepeatedFixed32 {
  681. get { return repeatedFixed32_; }
  682. }
  683. /// <summary>Field number for the "repeated_fixed64" field.</summary>
  684. public const int RepeatedFixed64FieldNumber = 38;
  685. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  686. = pb::FieldCodec.ForFixed64(306);
  687. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  689. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  690. get { return repeatedFixed64_; }
  691. }
  692. /// <summary>Field number for the "repeated_sfixed32" field.</summary>
  693. public const int RepeatedSfixed32FieldNumber = 39;
  694. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  695. = pb::FieldCodec.ForSFixed32(314);
  696. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  698. public pbc::RepeatedField<int> RepeatedSfixed32 {
  699. get { return repeatedSfixed32_; }
  700. }
  701. /// <summary>Field number for the "repeated_sfixed64" field.</summary>
  702. public const int RepeatedSfixed64FieldNumber = 40;
  703. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  704. = pb::FieldCodec.ForSFixed64(322);
  705. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  707. public pbc::RepeatedField<long> RepeatedSfixed64 {
  708. get { return repeatedSfixed64_; }
  709. }
  710. /// <summary>Field number for the "repeated_float" field.</summary>
  711. public const int RepeatedFloatFieldNumber = 41;
  712. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  713. = pb::FieldCodec.ForFloat(330);
  714. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public pbc::RepeatedField<float> RepeatedFloat {
  717. get { return repeatedFloat_; }
  718. }
  719. /// <summary>Field number for the "repeated_double" field.</summary>
  720. public const int RepeatedDoubleFieldNumber = 42;
  721. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  722. = pb::FieldCodec.ForDouble(338);
  723. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  725. public pbc::RepeatedField<double> RepeatedDouble {
  726. get { return repeatedDouble_; }
  727. }
  728. /// <summary>Field number for the "repeated_bool" field.</summary>
  729. public const int RepeatedBoolFieldNumber = 43;
  730. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  731. = pb::FieldCodec.ForBool(346);
  732. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  734. public pbc::RepeatedField<bool> RepeatedBool {
  735. get { return repeatedBool_; }
  736. }
  737. /// <summary>Field number for the "repeated_string" field.</summary>
  738. public const int RepeatedStringFieldNumber = 44;
  739. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  740. = pb::FieldCodec.ForString(354);
  741. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  743. public pbc::RepeatedField<string> RepeatedString {
  744. get { return repeatedString_; }
  745. }
  746. /// <summary>Field number for the "repeated_bytes" field.</summary>
  747. public const int RepeatedBytesFieldNumber = 45;
  748. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  749. = pb::FieldCodec.ForBytes(362);
  750. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  752. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  753. get { return repeatedBytes_; }
  754. }
  755. /// <summary>Field number for the "repeated_nested_message" field.</summary>
  756. public const int RepeatedNestedMessageFieldNumber = 48;
  757. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  758. = pb::FieldCodec.ForMessage(386, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage.Parser);
  759. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage>();
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  761. public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage> RepeatedNestedMessage {
  762. get { return repeatedNestedMessage_; }
  763. }
  764. /// <summary>Field number for the "repeated_foreign_message" field.</summary>
  765. public const int RepeatedForeignMessageFieldNumber = 49;
  766. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.ForeignMessage> _repeated_repeatedForeignMessage_codec
  767. = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Proto3.ForeignMessage.Parser);
  768. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignMessage>();
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignMessage> RepeatedForeignMessage {
  771. get { return repeatedForeignMessage_; }
  772. }
  773. /// <summary>Field number for the "repeated_nested_enum" field.</summary>
  774. public const int RepeatedNestedEnumFieldNumber = 51;
  775. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  776. = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) x);
  777. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum>();
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  779. public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> RepeatedNestedEnum {
  780. get { return repeatedNestedEnum_; }
  781. }
  782. /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
  783. public const int RepeatedForeignEnumFieldNumber = 52;
  784. private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.ForeignEnum> _repeated_repeatedForeignEnum_codec
  785. = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::ProtobufTestMessages.Proto3.ForeignEnum) x);
  786. private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignEnum>();
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  788. public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignEnum> RepeatedForeignEnum {
  789. get { return repeatedForeignEnum_; }
  790. }
  791. /// <summary>Field number for the "repeated_string_piece" field.</summary>
  792. public const int RepeatedStringPieceFieldNumber = 54;
  793. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
  794. = pb::FieldCodec.ForString(434);
  795. private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  797. public pbc::RepeatedField<string> RepeatedStringPiece {
  798. get { return repeatedStringPiece_; }
  799. }
  800. /// <summary>Field number for the "repeated_cord" field.</summary>
  801. public const int RepeatedCordFieldNumber = 55;
  802. private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
  803. = pb::FieldCodec.ForString(442);
  804. private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  806. public pbc::RepeatedField<string> RepeatedCord {
  807. get { return repeatedCord_; }
  808. }
  809. /// <summary>Field number for the "map_int32_int32" field.</summary>
  810. public const int MapInt32Int32FieldNumber = 56;
  811. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  812. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 450);
  813. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  814. /// <summary>
  815. /// Map
  816. /// </summary>
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  818. public pbc::MapField<int, int> MapInt32Int32 {
  819. get { return mapInt32Int32_; }
  820. }
  821. /// <summary>Field number for the "map_int64_int64" field.</summary>
  822. public const int MapInt64Int64FieldNumber = 57;
  823. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  824. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 458);
  825. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  827. public pbc::MapField<long, long> MapInt64Int64 {
  828. get { return mapInt64Int64_; }
  829. }
  830. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  831. public const int MapUint32Uint32FieldNumber = 58;
  832. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  833. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 466);
  834. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  836. public pbc::MapField<uint, uint> MapUint32Uint32 {
  837. get { return mapUint32Uint32_; }
  838. }
  839. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  840. public const int MapUint64Uint64FieldNumber = 59;
  841. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  842. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 474);
  843. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  846. get { return mapUint64Uint64_; }
  847. }
  848. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  849. public const int MapSint32Sint32FieldNumber = 60;
  850. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  851. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 482);
  852. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  854. public pbc::MapField<int, int> MapSint32Sint32 {
  855. get { return mapSint32Sint32_; }
  856. }
  857. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  858. public const int MapSint64Sint64FieldNumber = 61;
  859. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  860. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 490);
  861. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  863. public pbc::MapField<long, long> MapSint64Sint64 {
  864. get { return mapSint64Sint64_; }
  865. }
  866. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  867. public const int MapFixed32Fixed32FieldNumber = 62;
  868. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  869. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 498);
  870. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  872. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  873. get { return mapFixed32Fixed32_; }
  874. }
  875. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  876. public const int MapFixed64Fixed64FieldNumber = 63;
  877. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  878. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 506);
  879. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  882. get { return mapFixed64Fixed64_; }
  883. }
  884. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  885. public const int MapSfixed32Sfixed32FieldNumber = 64;
  886. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  887. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 514);
  888. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  890. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  891. get { return mapSfixed32Sfixed32_; }
  892. }
  893. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  894. public const int MapSfixed64Sfixed64FieldNumber = 65;
  895. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  896. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 522);
  897. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  899. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  900. get { return mapSfixed64Sfixed64_; }
  901. }
  902. /// <summary>Field number for the "map_int32_float" field.</summary>
  903. public const int MapInt32FloatFieldNumber = 66;
  904. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  905. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 530);
  906. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. public pbc::MapField<int, float> MapInt32Float {
  909. get { return mapInt32Float_; }
  910. }
  911. /// <summary>Field number for the "map_int32_double" field.</summary>
  912. public const int MapInt32DoubleFieldNumber = 67;
  913. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  914. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 538);
  915. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  917. public pbc::MapField<int, double> MapInt32Double {
  918. get { return mapInt32Double_; }
  919. }
  920. /// <summary>Field number for the "map_bool_bool" field.</summary>
  921. public const int MapBoolBoolFieldNumber = 68;
  922. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  923. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 546);
  924. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  926. public pbc::MapField<bool, bool> MapBoolBool {
  927. get { return mapBoolBool_; }
  928. }
  929. /// <summary>Field number for the "map_string_string" field.</summary>
  930. public const int MapStringStringFieldNumber = 69;
  931. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  932. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 554);
  933. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  935. public pbc::MapField<string, string> MapStringString {
  936. get { return mapStringString_; }
  937. }
  938. /// <summary>Field number for the "map_string_bytes" field.</summary>
  939. public const int MapStringBytesFieldNumber = 70;
  940. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
  941. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 562);
  942. private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  944. public pbc::MapField<string, pb::ByteString> MapStringBytes {
  945. get { return mapStringBytes_; }
  946. }
  947. /// <summary>Field number for the "map_string_nested_message" field.</summary>
  948. public const int MapStringNestedMessageFieldNumber = 71;
  949. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
  950. = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage.Parser), 570);
  951. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage>();
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  953. public pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage> MapStringNestedMessage {
  954. get { return mapStringNestedMessage_; }
  955. }
  956. /// <summary>Field number for the "map_string_foreign_message" field.</summary>
  957. public const int MapStringForeignMessageFieldNumber = 72;
  958. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage>.Codec _map_mapStringForeignMessage_codec
  959. = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto3.ForeignMessage.Parser), 578);
  960. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage> mapStringForeignMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage>();
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. public pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage> MapStringForeignMessage {
  963. get { return mapStringForeignMessage_; }
  964. }
  965. /// <summary>Field number for the "map_string_nested_enum" field.</summary>
  966. public const int MapStringNestedEnumFieldNumber = 73;
  967. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
  968. = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) x), 586);
  969. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum>();
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  971. public pbc::MapField<string, global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> MapStringNestedEnum {
  972. get { return mapStringNestedEnum_; }
  973. }
  974. /// <summary>Field number for the "map_string_foreign_enum" field.</summary>
  975. public const int MapStringForeignEnumFieldNumber = 74;
  976. private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignEnum>.Codec _map_mapStringForeignEnum_codec
  977. = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto3.ForeignEnum) x), 594);
  978. private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignEnum> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignEnum>();
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  980. public pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignEnum> MapStringForeignEnum {
  981. get { return mapStringForeignEnum_; }
  982. }
  983. /// <summary>Field number for the "oneof_uint32" field.</summary>
  984. public const int OneofUint32FieldNumber = 111;
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  986. public uint OneofUint32 {
  987. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
  988. set {
  989. oneofField_ = value;
  990. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  991. }
  992. }
  993. /// <summary>Field number for the "oneof_nested_message" field.</summary>
  994. public const int OneofNestedMessageFieldNumber = 112;
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  996. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage OneofNestedMessage {
  997. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage) oneofField_ : null; }
  998. set {
  999. oneofField_ = value;
  1000. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  1001. }
  1002. }
  1003. /// <summary>Field number for the "oneof_string" field.</summary>
  1004. public const int OneofStringFieldNumber = 113;
  1005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1006. public string OneofString {
  1007. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
  1008. set {
  1009. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1010. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  1011. }
  1012. }
  1013. /// <summary>Field number for the "oneof_bytes" field.</summary>
  1014. public const int OneofBytesFieldNumber = 114;
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1016. public pb::ByteString OneofBytes {
  1017. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  1018. set {
  1019. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1020. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  1021. }
  1022. }
  1023. /// <summary>Field number for the "oneof_bool" field.</summary>
  1024. public const int OneofBoolFieldNumber = 115;
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1026. public bool OneofBool {
  1027. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBool ? (bool) oneofField_ : false; }
  1028. set {
  1029. oneofField_ = value;
  1030. oneofFieldCase_ = OneofFieldOneofCase.OneofBool;
  1031. }
  1032. }
  1033. /// <summary>Field number for the "oneof_uint64" field.</summary>
  1034. public const int OneofUint64FieldNumber = 116;
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1036. public ulong OneofUint64 {
  1037. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint64 ? (ulong) oneofField_ : 0UL; }
  1038. set {
  1039. oneofField_ = value;
  1040. oneofFieldCase_ = OneofFieldOneofCase.OneofUint64;
  1041. }
  1042. }
  1043. /// <summary>Field number for the "oneof_float" field.</summary>
  1044. public const int OneofFloatFieldNumber = 117;
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1046. public float OneofFloat {
  1047. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofFloat ? (float) oneofField_ : 0F; }
  1048. set {
  1049. oneofField_ = value;
  1050. oneofFieldCase_ = OneofFieldOneofCase.OneofFloat;
  1051. }
  1052. }
  1053. /// <summary>Field number for the "oneof_double" field.</summary>
  1054. public const int OneofDoubleFieldNumber = 118;
  1055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1056. public double OneofDouble {
  1057. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofDouble ? (double) oneofField_ : 0D; }
  1058. set {
  1059. oneofField_ = value;
  1060. oneofFieldCase_ = OneofFieldOneofCase.OneofDouble;
  1061. }
  1062. }
  1063. /// <summary>Field number for the "oneof_enum" field.</summary>
  1064. public const int OneofEnumFieldNumber = 119;
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1066. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum OneofEnum {
  1067. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofEnum ? (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) oneofField_ : 0; }
  1068. set {
  1069. oneofField_ = value;
  1070. oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
  1071. }
  1072. }
  1073. /// <summary>Field number for the "optional_bool_wrapper" field.</summary>
  1074. public const int OptionalBoolWrapperFieldNumber = 201;
  1075. private static readonly pb::FieldCodec<bool?> _single_optionalBoolWrapper_codec = pb::FieldCodec.ForStructWrapper<bool>(1610);
  1076. private bool? optionalBoolWrapper_;
  1077. /// <summary>
  1078. /// Well-known types
  1079. /// </summary>
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1081. public bool? OptionalBoolWrapper {
  1082. get { return optionalBoolWrapper_; }
  1083. set {
  1084. optionalBoolWrapper_ = value;
  1085. }
  1086. }
  1087. /// <summary>Field number for the "optional_int32_wrapper" field.</summary>
  1088. public const int OptionalInt32WrapperFieldNumber = 202;
  1089. private static readonly pb::FieldCodec<int?> _single_optionalInt32Wrapper_codec = pb::FieldCodec.ForStructWrapper<int>(1618);
  1090. private int? optionalInt32Wrapper_;
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1092. public int? OptionalInt32Wrapper {
  1093. get { return optionalInt32Wrapper_; }
  1094. set {
  1095. optionalInt32Wrapper_ = value;
  1096. }
  1097. }
  1098. /// <summary>Field number for the "optional_int64_wrapper" field.</summary>
  1099. public const int OptionalInt64WrapperFieldNumber = 203;
  1100. private static readonly pb::FieldCodec<long?> _single_optionalInt64Wrapper_codec = pb::FieldCodec.ForStructWrapper<long>(1626);
  1101. private long? optionalInt64Wrapper_;
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1103. public long? OptionalInt64Wrapper {
  1104. get { return optionalInt64Wrapper_; }
  1105. set {
  1106. optionalInt64Wrapper_ = value;
  1107. }
  1108. }
  1109. /// <summary>Field number for the "optional_uint32_wrapper" field.</summary>
  1110. public const int OptionalUint32WrapperFieldNumber = 204;
  1111. private static readonly pb::FieldCodec<uint?> _single_optionalUint32Wrapper_codec = pb::FieldCodec.ForStructWrapper<uint>(1634);
  1112. private uint? optionalUint32Wrapper_;
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1114. public uint? OptionalUint32Wrapper {
  1115. get { return optionalUint32Wrapper_; }
  1116. set {
  1117. optionalUint32Wrapper_ = value;
  1118. }
  1119. }
  1120. /// <summary>Field number for the "optional_uint64_wrapper" field.</summary>
  1121. public const int OptionalUint64WrapperFieldNumber = 205;
  1122. private static readonly pb::FieldCodec<ulong?> _single_optionalUint64Wrapper_codec = pb::FieldCodec.ForStructWrapper<ulong>(1642);
  1123. private ulong? optionalUint64Wrapper_;
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1125. public ulong? OptionalUint64Wrapper {
  1126. get { return optionalUint64Wrapper_; }
  1127. set {
  1128. optionalUint64Wrapper_ = value;
  1129. }
  1130. }
  1131. /// <summary>Field number for the "optional_float_wrapper" field.</summary>
  1132. public const int OptionalFloatWrapperFieldNumber = 206;
  1133. private static readonly pb::FieldCodec<float?> _single_optionalFloatWrapper_codec = pb::FieldCodec.ForStructWrapper<float>(1650);
  1134. private float? optionalFloatWrapper_;
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1136. public float? OptionalFloatWrapper {
  1137. get { return optionalFloatWrapper_; }
  1138. set {
  1139. optionalFloatWrapper_ = value;
  1140. }
  1141. }
  1142. /// <summary>Field number for the "optional_double_wrapper" field.</summary>
  1143. public const int OptionalDoubleWrapperFieldNumber = 207;
  1144. private static readonly pb::FieldCodec<double?> _single_optionalDoubleWrapper_codec = pb::FieldCodec.ForStructWrapper<double>(1658);
  1145. private double? optionalDoubleWrapper_;
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1147. public double? OptionalDoubleWrapper {
  1148. get { return optionalDoubleWrapper_; }
  1149. set {
  1150. optionalDoubleWrapper_ = value;
  1151. }
  1152. }
  1153. /// <summary>Field number for the "optional_string_wrapper" field.</summary>
  1154. public const int OptionalStringWrapperFieldNumber = 208;
  1155. private static readonly pb::FieldCodec<string> _single_optionalStringWrapper_codec = pb::FieldCodec.ForClassWrapper<string>(1666);
  1156. private string optionalStringWrapper_;
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1158. public string OptionalStringWrapper {
  1159. get { return optionalStringWrapper_; }
  1160. set {
  1161. optionalStringWrapper_ = value;
  1162. }
  1163. }
  1164. /// <summary>Field number for the "optional_bytes_wrapper" field.</summary>
  1165. public const int OptionalBytesWrapperFieldNumber = 209;
  1166. private static readonly pb::FieldCodec<pb::ByteString> _single_optionalBytesWrapper_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(1674);
  1167. private pb::ByteString optionalBytesWrapper_;
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1169. public pb::ByteString OptionalBytesWrapper {
  1170. get { return optionalBytesWrapper_; }
  1171. set {
  1172. optionalBytesWrapper_ = value;
  1173. }
  1174. }
  1175. /// <summary>Field number for the "repeated_bool_wrapper" field.</summary>
  1176. public const int RepeatedBoolWrapperFieldNumber = 211;
  1177. private static readonly pb::FieldCodec<bool?> _repeated_repeatedBoolWrapper_codec
  1178. = pb::FieldCodec.ForStructWrapper<bool>(1690);
  1179. private readonly pbc::RepeatedField<bool?> repeatedBoolWrapper_ = new pbc::RepeatedField<bool?>();
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1181. public pbc::RepeatedField<bool?> RepeatedBoolWrapper {
  1182. get { return repeatedBoolWrapper_; }
  1183. }
  1184. /// <summary>Field number for the "repeated_int32_wrapper" field.</summary>
  1185. public const int RepeatedInt32WrapperFieldNumber = 212;
  1186. private static readonly pb::FieldCodec<int?> _repeated_repeatedInt32Wrapper_codec
  1187. = pb::FieldCodec.ForStructWrapper<int>(1698);
  1188. private readonly pbc::RepeatedField<int?> repeatedInt32Wrapper_ = new pbc::RepeatedField<int?>();
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1190. public pbc::RepeatedField<int?> RepeatedInt32Wrapper {
  1191. get { return repeatedInt32Wrapper_; }
  1192. }
  1193. /// <summary>Field number for the "repeated_int64_wrapper" field.</summary>
  1194. public const int RepeatedInt64WrapperFieldNumber = 213;
  1195. private static readonly pb::FieldCodec<long?> _repeated_repeatedInt64Wrapper_codec
  1196. = pb::FieldCodec.ForStructWrapper<long>(1706);
  1197. private readonly pbc::RepeatedField<long?> repeatedInt64Wrapper_ = new pbc::RepeatedField<long?>();
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1199. public pbc::RepeatedField<long?> RepeatedInt64Wrapper {
  1200. get { return repeatedInt64Wrapper_; }
  1201. }
  1202. /// <summary>Field number for the "repeated_uint32_wrapper" field.</summary>
  1203. public const int RepeatedUint32WrapperFieldNumber = 214;
  1204. private static readonly pb::FieldCodec<uint?> _repeated_repeatedUint32Wrapper_codec
  1205. = pb::FieldCodec.ForStructWrapper<uint>(1714);
  1206. private readonly pbc::RepeatedField<uint?> repeatedUint32Wrapper_ = new pbc::RepeatedField<uint?>();
  1207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1208. public pbc::RepeatedField<uint?> RepeatedUint32Wrapper {
  1209. get { return repeatedUint32Wrapper_; }
  1210. }
  1211. /// <summary>Field number for the "repeated_uint64_wrapper" field.</summary>
  1212. public const int RepeatedUint64WrapperFieldNumber = 215;
  1213. private static readonly pb::FieldCodec<ulong?> _repeated_repeatedUint64Wrapper_codec
  1214. = pb::FieldCodec.ForStructWrapper<ulong>(1722);
  1215. private readonly pbc::RepeatedField<ulong?> repeatedUint64Wrapper_ = new pbc::RepeatedField<ulong?>();
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1217. public pbc::RepeatedField<ulong?> RepeatedUint64Wrapper {
  1218. get { return repeatedUint64Wrapper_; }
  1219. }
  1220. /// <summary>Field number for the "repeated_float_wrapper" field.</summary>
  1221. public const int RepeatedFloatWrapperFieldNumber = 216;
  1222. private static readonly pb::FieldCodec<float?> _repeated_repeatedFloatWrapper_codec
  1223. = pb::FieldCodec.ForStructWrapper<float>(1730);
  1224. private readonly pbc::RepeatedField<float?> repeatedFloatWrapper_ = new pbc::RepeatedField<float?>();
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1226. public pbc::RepeatedField<float?> RepeatedFloatWrapper {
  1227. get { return repeatedFloatWrapper_; }
  1228. }
  1229. /// <summary>Field number for the "repeated_double_wrapper" field.</summary>
  1230. public const int RepeatedDoubleWrapperFieldNumber = 217;
  1231. private static readonly pb::FieldCodec<double?> _repeated_repeatedDoubleWrapper_codec
  1232. = pb::FieldCodec.ForStructWrapper<double>(1738);
  1233. private readonly pbc::RepeatedField<double?> repeatedDoubleWrapper_ = new pbc::RepeatedField<double?>();
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1235. public pbc::RepeatedField<double?> RepeatedDoubleWrapper {
  1236. get { return repeatedDoubleWrapper_; }
  1237. }
  1238. /// <summary>Field number for the "repeated_string_wrapper" field.</summary>
  1239. public const int RepeatedStringWrapperFieldNumber = 218;
  1240. private static readonly pb::FieldCodec<string> _repeated_repeatedStringWrapper_codec
  1241. = pb::FieldCodec.ForClassWrapper<string>(1746);
  1242. private readonly pbc::RepeatedField<string> repeatedStringWrapper_ = new pbc::RepeatedField<string>();
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1244. public pbc::RepeatedField<string> RepeatedStringWrapper {
  1245. get { return repeatedStringWrapper_; }
  1246. }
  1247. /// <summary>Field number for the "repeated_bytes_wrapper" field.</summary>
  1248. public const int RepeatedBytesWrapperFieldNumber = 219;
  1249. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytesWrapper_codec
  1250. = pb::FieldCodec.ForClassWrapper<pb::ByteString>(1754);
  1251. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytesWrapper_ = new pbc::RepeatedField<pb::ByteString>();
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1253. public pbc::RepeatedField<pb::ByteString> RepeatedBytesWrapper {
  1254. get { return repeatedBytesWrapper_; }
  1255. }
  1256. /// <summary>Field number for the "optional_duration" field.</summary>
  1257. public const int OptionalDurationFieldNumber = 301;
  1258. private global::Google.Protobuf.WellKnownTypes.Duration optionalDuration_;
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1260. public global::Google.Protobuf.WellKnownTypes.Duration OptionalDuration {
  1261. get { return optionalDuration_; }
  1262. set {
  1263. optionalDuration_ = value;
  1264. }
  1265. }
  1266. /// <summary>Field number for the "optional_timestamp" field.</summary>
  1267. public const int OptionalTimestampFieldNumber = 302;
  1268. private global::Google.Protobuf.WellKnownTypes.Timestamp optionalTimestamp_;
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1270. public global::Google.Protobuf.WellKnownTypes.Timestamp OptionalTimestamp {
  1271. get { return optionalTimestamp_; }
  1272. set {
  1273. optionalTimestamp_ = value;
  1274. }
  1275. }
  1276. /// <summary>Field number for the "optional_field_mask" field.</summary>
  1277. public const int OptionalFieldMaskFieldNumber = 303;
  1278. private global::Google.Protobuf.WellKnownTypes.FieldMask optionalFieldMask_;
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1280. public global::Google.Protobuf.WellKnownTypes.FieldMask OptionalFieldMask {
  1281. get { return optionalFieldMask_; }
  1282. set {
  1283. optionalFieldMask_ = value;
  1284. }
  1285. }
  1286. /// <summary>Field number for the "optional_struct" field.</summary>
  1287. public const int OptionalStructFieldNumber = 304;
  1288. private global::Google.Protobuf.WellKnownTypes.Struct optionalStruct_;
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1290. public global::Google.Protobuf.WellKnownTypes.Struct OptionalStruct {
  1291. get { return optionalStruct_; }
  1292. set {
  1293. optionalStruct_ = value;
  1294. }
  1295. }
  1296. /// <summary>Field number for the "optional_any" field.</summary>
  1297. public const int OptionalAnyFieldNumber = 305;
  1298. private global::Google.Protobuf.WellKnownTypes.Any optionalAny_;
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1300. public global::Google.Protobuf.WellKnownTypes.Any OptionalAny {
  1301. get { return optionalAny_; }
  1302. set {
  1303. optionalAny_ = value;
  1304. }
  1305. }
  1306. /// <summary>Field number for the "optional_value" field.</summary>
  1307. public const int OptionalValueFieldNumber = 306;
  1308. private global::Google.Protobuf.WellKnownTypes.Value optionalValue_;
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1310. public global::Google.Protobuf.WellKnownTypes.Value OptionalValue {
  1311. get { return optionalValue_; }
  1312. set {
  1313. optionalValue_ = value;
  1314. }
  1315. }
  1316. /// <summary>Field number for the "repeated_duration" field.</summary>
  1317. public const int RepeatedDurationFieldNumber = 311;
  1318. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_repeatedDuration_codec
  1319. = pb::FieldCodec.ForMessage(2490, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
  1320. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> repeatedDuration_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
  1321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1322. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> RepeatedDuration {
  1323. get { return repeatedDuration_; }
  1324. }
  1325. /// <summary>Field number for the "repeated_timestamp" field.</summary>
  1326. public const int RepeatedTimestampFieldNumber = 312;
  1327. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_repeatedTimestamp_codec
  1328. = pb::FieldCodec.ForMessage(2498, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
  1329. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> repeatedTimestamp_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1331. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> RepeatedTimestamp {
  1332. get { return repeatedTimestamp_; }
  1333. }
  1334. /// <summary>Field number for the "repeated_fieldmask" field.</summary>
  1335. public const int RepeatedFieldmaskFieldNumber = 313;
  1336. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_repeatedFieldmask_codec
  1337. = pb::FieldCodec.ForMessage(2506, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
  1338. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> repeatedFieldmask_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1340. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> RepeatedFieldmask {
  1341. get { return repeatedFieldmask_; }
  1342. }
  1343. /// <summary>Field number for the "repeated_struct" field.</summary>
  1344. public const int RepeatedStructFieldNumber = 324;
  1345. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_repeatedStruct_codec
  1346. = pb::FieldCodec.ForMessage(2594, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
  1347. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> repeatedStruct_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1349. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> RepeatedStruct {
  1350. get { return repeatedStruct_; }
  1351. }
  1352. /// <summary>Field number for the "repeated_any" field.</summary>
  1353. public const int RepeatedAnyFieldNumber = 315;
  1354. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_repeatedAny_codec
  1355. = pb::FieldCodec.ForMessage(2522, global::Google.Protobuf.WellKnownTypes.Any.Parser);
  1356. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> repeatedAny_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1358. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> RepeatedAny {
  1359. get { return repeatedAny_; }
  1360. }
  1361. /// <summary>Field number for the "repeated_value" field.</summary>
  1362. public const int RepeatedValueFieldNumber = 316;
  1363. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_repeatedValue_codec
  1364. = pb::FieldCodec.ForMessage(2530, global::Google.Protobuf.WellKnownTypes.Value.Parser);
  1365. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> repeatedValue_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>();
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1367. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> RepeatedValue {
  1368. get { return repeatedValue_; }
  1369. }
  1370. /// <summary>Field number for the "fieldname1" field.</summary>
  1371. public const int Fieldname1FieldNumber = 401;
  1372. private int fieldname1_;
  1373. /// <summary>
  1374. /// Test field-name-to-JSON-name convention.
  1375. /// (protobuf says names can be any valid C/C++ identifier.)
  1376. /// </summary>
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1378. public int Fieldname1 {
  1379. get { return fieldname1_; }
  1380. set {
  1381. fieldname1_ = value;
  1382. }
  1383. }
  1384. /// <summary>Field number for the "field_name2" field.</summary>
  1385. public const int FieldName2FieldNumber = 402;
  1386. private int fieldName2_;
  1387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1388. public int FieldName2 {
  1389. get { return fieldName2_; }
  1390. set {
  1391. fieldName2_ = value;
  1392. }
  1393. }
  1394. /// <summary>Field number for the "_field_name3" field.</summary>
  1395. public const int FieldName3FieldNumber = 403;
  1396. private int FieldName3_;
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1398. public int FieldName3 {
  1399. get { return FieldName3_; }
  1400. set {
  1401. FieldName3_ = value;
  1402. }
  1403. }
  1404. /// <summary>Field number for the "field__name4_" field.</summary>
  1405. public const int FieldName4FieldNumber = 404;
  1406. private int fieldName4_;
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1408. public int FieldName4 {
  1409. get { return fieldName4_; }
  1410. set {
  1411. fieldName4_ = value;
  1412. }
  1413. }
  1414. /// <summary>Field number for the "field0name5" field.</summary>
  1415. public const int Field0Name5FieldNumber = 405;
  1416. private int field0Name5_;
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1418. public int Field0Name5 {
  1419. get { return field0Name5_; }
  1420. set {
  1421. field0Name5_ = value;
  1422. }
  1423. }
  1424. /// <summary>Field number for the "field_0_name6" field.</summary>
  1425. public const int Field0Name6FieldNumber = 406;
  1426. private int field0Name6_;
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1428. public int Field0Name6 {
  1429. get { return field0Name6_; }
  1430. set {
  1431. field0Name6_ = value;
  1432. }
  1433. }
  1434. /// <summary>Field number for the "fieldName7" field.</summary>
  1435. public const int FieldName7FieldNumber = 407;
  1436. private int fieldName7_;
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1438. public int FieldName7 {
  1439. get { return fieldName7_; }
  1440. set {
  1441. fieldName7_ = value;
  1442. }
  1443. }
  1444. /// <summary>Field number for the "FieldName8" field.</summary>
  1445. public const int FieldName8FieldNumber = 408;
  1446. private int fieldName8_;
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1448. public int FieldName8 {
  1449. get { return fieldName8_; }
  1450. set {
  1451. fieldName8_ = value;
  1452. }
  1453. }
  1454. /// <summary>Field number for the "field_Name9" field.</summary>
  1455. public const int FieldName9FieldNumber = 409;
  1456. private int fieldName9_;
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1458. public int FieldName9 {
  1459. get { return fieldName9_; }
  1460. set {
  1461. fieldName9_ = value;
  1462. }
  1463. }
  1464. /// <summary>Field number for the "Field_Name10" field.</summary>
  1465. public const int FieldName10FieldNumber = 410;
  1466. private int fieldName10_;
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1468. public int FieldName10 {
  1469. get { return fieldName10_; }
  1470. set {
  1471. fieldName10_ = value;
  1472. }
  1473. }
  1474. /// <summary>Field number for the "FIELD_NAME11" field.</summary>
  1475. public const int FIELDNAME11FieldNumber = 411;
  1476. private int fIELDNAME11_;
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1478. public int FIELDNAME11 {
  1479. get { return fIELDNAME11_; }
  1480. set {
  1481. fIELDNAME11_ = value;
  1482. }
  1483. }
  1484. /// <summary>Field number for the "FIELD_name12" field.</summary>
  1485. public const int FIELDName12FieldNumber = 412;
  1486. private int fIELDName12_;
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1488. public int FIELDName12 {
  1489. get { return fIELDName12_; }
  1490. set {
  1491. fIELDName12_ = value;
  1492. }
  1493. }
  1494. /// <summary>Field number for the "__field_name13" field.</summary>
  1495. public const int FieldName13FieldNumber = 413;
  1496. private int FieldName13_;
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1498. public int FieldName13 {
  1499. get { return FieldName13_; }
  1500. set {
  1501. FieldName13_ = value;
  1502. }
  1503. }
  1504. /// <summary>Field number for the "__Field_name14" field.</summary>
  1505. public const int FieldName14FieldNumber = 414;
  1506. private int FieldName14_;
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1508. public int FieldName14 {
  1509. get { return FieldName14_; }
  1510. set {
  1511. FieldName14_ = value;
  1512. }
  1513. }
  1514. /// <summary>Field number for the "field__name15" field.</summary>
  1515. public const int FieldName15FieldNumber = 415;
  1516. private int fieldName15_;
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1518. public int FieldName15 {
  1519. get { return fieldName15_; }
  1520. set {
  1521. fieldName15_ = value;
  1522. }
  1523. }
  1524. /// <summary>Field number for the "field__Name16" field.</summary>
  1525. public const int FieldName16FieldNumber = 416;
  1526. private int fieldName16_;
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1528. public int FieldName16 {
  1529. get { return fieldName16_; }
  1530. set {
  1531. fieldName16_ = value;
  1532. }
  1533. }
  1534. /// <summary>Field number for the "field_name17__" field.</summary>
  1535. public const int FieldName17FieldNumber = 417;
  1536. private int fieldName17_;
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1538. public int FieldName17 {
  1539. get { return fieldName17_; }
  1540. set {
  1541. fieldName17_ = value;
  1542. }
  1543. }
  1544. /// <summary>Field number for the "Field_name18__" field.</summary>
  1545. public const int FieldName18FieldNumber = 418;
  1546. private int fieldName18_;
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1548. public int FieldName18 {
  1549. get { return fieldName18_; }
  1550. set {
  1551. fieldName18_ = value;
  1552. }
  1553. }
  1554. private object oneofField_;
  1555. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  1556. public enum OneofFieldOneofCase {
  1557. None = 0,
  1558. OneofUint32 = 111,
  1559. OneofNestedMessage = 112,
  1560. OneofString = 113,
  1561. OneofBytes = 114,
  1562. OneofBool = 115,
  1563. OneofUint64 = 116,
  1564. OneofFloat = 117,
  1565. OneofDouble = 118,
  1566. OneofEnum = 119,
  1567. }
  1568. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1570. public OneofFieldOneofCase OneofFieldCase {
  1571. get { return oneofFieldCase_; }
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1574. public void ClearOneofField() {
  1575. oneofFieldCase_ = OneofFieldOneofCase.None;
  1576. oneofField_ = null;
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1579. public override bool Equals(object other) {
  1580. return Equals(other as TestAllTypesProto3);
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1583. public bool Equals(TestAllTypesProto3 other) {
  1584. if (ReferenceEquals(other, null)) {
  1585. return false;
  1586. }
  1587. if (ReferenceEquals(other, this)) {
  1588. return true;
  1589. }
  1590. if (OptionalInt32 != other.OptionalInt32) return false;
  1591. if (OptionalInt64 != other.OptionalInt64) return false;
  1592. if (OptionalUint32 != other.OptionalUint32) return false;
  1593. if (OptionalUint64 != other.OptionalUint64) return false;
  1594. if (OptionalSint32 != other.OptionalSint32) return false;
  1595. if (OptionalSint64 != other.OptionalSint64) return false;
  1596. if (OptionalFixed32 != other.OptionalFixed32) return false;
  1597. if (OptionalFixed64 != other.OptionalFixed64) return false;
  1598. if (OptionalSfixed32 != other.OptionalSfixed32) return false;
  1599. if (OptionalSfixed64 != other.OptionalSfixed64) return false;
  1600. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
  1601. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
  1602. if (OptionalBool != other.OptionalBool) return false;
  1603. if (OptionalString != other.OptionalString) return false;
  1604. if (OptionalBytes != other.OptionalBytes) return false;
  1605. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  1606. if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
  1607. if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
  1608. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  1609. if (OptionalStringPiece != other.OptionalStringPiece) return false;
  1610. if (OptionalCord != other.OptionalCord) return false;
  1611. if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
  1612. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  1613. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  1614. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  1615. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  1616. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  1617. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  1618. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  1619. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  1620. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  1621. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  1622. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  1623. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  1624. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  1625. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  1626. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  1627. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  1628. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  1629. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  1630. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  1631. if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
  1632. if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
  1633. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1634. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1635. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1636. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1637. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1638. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1639. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1640. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1641. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1642. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1643. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1644. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1645. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1646. if (!MapStringString.Equals(other.MapStringString)) return false;
  1647. if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
  1648. if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
  1649. if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
  1650. if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
  1651. if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
  1652. if (OneofUint32 != other.OneofUint32) return false;
  1653. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  1654. if (OneofString != other.OneofString) return false;
  1655. if (OneofBytes != other.OneofBytes) return false;
  1656. if (OneofBool != other.OneofBool) return false;
  1657. if (OneofUint64 != other.OneofUint64) return false;
  1658. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
  1659. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
  1660. if (OneofEnum != other.OneofEnum) return false;
  1661. if (OptionalBoolWrapper != other.OptionalBoolWrapper) return false;
  1662. if (OptionalInt32Wrapper != other.OptionalInt32Wrapper) return false;
  1663. if (OptionalInt64Wrapper != other.OptionalInt64Wrapper) return false;
  1664. if (OptionalUint32Wrapper != other.OptionalUint32Wrapper) return false;
  1665. if (OptionalUint64Wrapper != other.OptionalUint64Wrapper) return false;
  1666. if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(OptionalFloatWrapper, other.OptionalFloatWrapper)) return false;
  1667. if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(OptionalDoubleWrapper, other.OptionalDoubleWrapper)) return false;
  1668. if (OptionalStringWrapper != other.OptionalStringWrapper) return false;
  1669. if (OptionalBytesWrapper != other.OptionalBytesWrapper) return false;
  1670. if(!repeatedBoolWrapper_.Equals(other.repeatedBoolWrapper_)) return false;
  1671. if(!repeatedInt32Wrapper_.Equals(other.repeatedInt32Wrapper_)) return false;
  1672. if(!repeatedInt64Wrapper_.Equals(other.repeatedInt64Wrapper_)) return false;
  1673. if(!repeatedUint32Wrapper_.Equals(other.repeatedUint32Wrapper_)) return false;
  1674. if(!repeatedUint64Wrapper_.Equals(other.repeatedUint64Wrapper_)) return false;
  1675. if(!repeatedFloatWrapper_.Equals(other.repeatedFloatWrapper_)) return false;
  1676. if(!repeatedDoubleWrapper_.Equals(other.repeatedDoubleWrapper_)) return false;
  1677. if(!repeatedStringWrapper_.Equals(other.repeatedStringWrapper_)) return false;
  1678. if(!repeatedBytesWrapper_.Equals(other.repeatedBytesWrapper_)) return false;
  1679. if (!object.Equals(OptionalDuration, other.OptionalDuration)) return false;
  1680. if (!object.Equals(OptionalTimestamp, other.OptionalTimestamp)) return false;
  1681. if (!object.Equals(OptionalFieldMask, other.OptionalFieldMask)) return false;
  1682. if (!object.Equals(OptionalStruct, other.OptionalStruct)) return false;
  1683. if (!object.Equals(OptionalAny, other.OptionalAny)) return false;
  1684. if (!object.Equals(OptionalValue, other.OptionalValue)) return false;
  1685. if(!repeatedDuration_.Equals(other.repeatedDuration_)) return false;
  1686. if(!repeatedTimestamp_.Equals(other.repeatedTimestamp_)) return false;
  1687. if(!repeatedFieldmask_.Equals(other.repeatedFieldmask_)) return false;
  1688. if(!repeatedStruct_.Equals(other.repeatedStruct_)) return false;
  1689. if(!repeatedAny_.Equals(other.repeatedAny_)) return false;
  1690. if(!repeatedValue_.Equals(other.repeatedValue_)) return false;
  1691. if (Fieldname1 != other.Fieldname1) return false;
  1692. if (FieldName2 != other.FieldName2) return false;
  1693. if (FieldName3 != other.FieldName3) return false;
  1694. if (FieldName4 != other.FieldName4) return false;
  1695. if (Field0Name5 != other.Field0Name5) return false;
  1696. if (Field0Name6 != other.Field0Name6) return false;
  1697. if (FieldName7 != other.FieldName7) return false;
  1698. if (FieldName8 != other.FieldName8) return false;
  1699. if (FieldName9 != other.FieldName9) return false;
  1700. if (FieldName10 != other.FieldName10) return false;
  1701. if (FIELDNAME11 != other.FIELDNAME11) return false;
  1702. if (FIELDName12 != other.FIELDName12) return false;
  1703. if (FieldName13 != other.FieldName13) return false;
  1704. if (FieldName14 != other.FieldName14) return false;
  1705. if (FieldName15 != other.FieldName15) return false;
  1706. if (FieldName16 != other.FieldName16) return false;
  1707. if (FieldName17 != other.FieldName17) return false;
  1708. if (FieldName18 != other.FieldName18) return false;
  1709. if (OneofFieldCase != other.OneofFieldCase) return false;
  1710. return Equals(_unknownFields, other._unknownFields);
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1713. public override int GetHashCode() {
  1714. int hash = 1;
  1715. if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
  1716. if (OptionalInt64 != 0L) hash ^= OptionalInt64.GetHashCode();
  1717. if (OptionalUint32 != 0) hash ^= OptionalUint32.GetHashCode();
  1718. if (OptionalUint64 != 0UL) hash ^= OptionalUint64.GetHashCode();
  1719. if (OptionalSint32 != 0) hash ^= OptionalSint32.GetHashCode();
  1720. if (OptionalSint64 != 0L) hash ^= OptionalSint64.GetHashCode();
  1721. if (OptionalFixed32 != 0) hash ^= OptionalFixed32.GetHashCode();
  1722. if (OptionalFixed64 != 0UL) hash ^= OptionalFixed64.GetHashCode();
  1723. if (OptionalSfixed32 != 0) hash ^= OptionalSfixed32.GetHashCode();
  1724. if (OptionalSfixed64 != 0L) hash ^= OptionalSfixed64.GetHashCode();
  1725. if (OptionalFloat != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
  1726. if (OptionalDouble != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
  1727. if (OptionalBool != false) hash ^= OptionalBool.GetHashCode();
  1728. if (OptionalString.Length != 0) hash ^= OptionalString.GetHashCode();
  1729. if (OptionalBytes.Length != 0) hash ^= OptionalBytes.GetHashCode();
  1730. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  1731. if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
  1732. if (OptionalNestedEnum != 0) hash ^= OptionalNestedEnum.GetHashCode();
  1733. if (OptionalForeignEnum != 0) hash ^= OptionalForeignEnum.GetHashCode();
  1734. if (OptionalStringPiece.Length != 0) hash ^= OptionalStringPiece.GetHashCode();
  1735. if (OptionalCord.Length != 0) hash ^= OptionalCord.GetHashCode();
  1736. if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
  1737. hash ^= repeatedInt32_.GetHashCode();
  1738. hash ^= repeatedInt64_.GetHashCode();
  1739. hash ^= repeatedUint32_.GetHashCode();
  1740. hash ^= repeatedUint64_.GetHashCode();
  1741. hash ^= repeatedSint32_.GetHashCode();
  1742. hash ^= repeatedSint64_.GetHashCode();
  1743. hash ^= repeatedFixed32_.GetHashCode();
  1744. hash ^= repeatedFixed64_.GetHashCode();
  1745. hash ^= repeatedSfixed32_.GetHashCode();
  1746. hash ^= repeatedSfixed64_.GetHashCode();
  1747. hash ^= repeatedFloat_.GetHashCode();
  1748. hash ^= repeatedDouble_.GetHashCode();
  1749. hash ^= repeatedBool_.GetHashCode();
  1750. hash ^= repeatedString_.GetHashCode();
  1751. hash ^= repeatedBytes_.GetHashCode();
  1752. hash ^= repeatedNestedMessage_.GetHashCode();
  1753. hash ^= repeatedForeignMessage_.GetHashCode();
  1754. hash ^= repeatedNestedEnum_.GetHashCode();
  1755. hash ^= repeatedForeignEnum_.GetHashCode();
  1756. hash ^= repeatedStringPiece_.GetHashCode();
  1757. hash ^= repeatedCord_.GetHashCode();
  1758. hash ^= MapInt32Int32.GetHashCode();
  1759. hash ^= MapInt64Int64.GetHashCode();
  1760. hash ^= MapUint32Uint32.GetHashCode();
  1761. hash ^= MapUint64Uint64.GetHashCode();
  1762. hash ^= MapSint32Sint32.GetHashCode();
  1763. hash ^= MapSint64Sint64.GetHashCode();
  1764. hash ^= MapFixed32Fixed32.GetHashCode();
  1765. hash ^= MapFixed64Fixed64.GetHashCode();
  1766. hash ^= MapSfixed32Sfixed32.GetHashCode();
  1767. hash ^= MapSfixed64Sfixed64.GetHashCode();
  1768. hash ^= MapInt32Float.GetHashCode();
  1769. hash ^= MapInt32Double.GetHashCode();
  1770. hash ^= MapBoolBool.GetHashCode();
  1771. hash ^= MapStringString.GetHashCode();
  1772. hash ^= MapStringBytes.GetHashCode();
  1773. hash ^= MapStringNestedMessage.GetHashCode();
  1774. hash ^= MapStringForeignMessage.GetHashCode();
  1775. hash ^= MapStringNestedEnum.GetHashCode();
  1776. hash ^= MapStringForeignEnum.GetHashCode();
  1777. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
  1778. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  1779. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
  1780. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
  1781. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBool) hash ^= OneofBool.GetHashCode();
  1782. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint64) hash ^= OneofUint64.GetHashCode();
  1783. if (oneofFieldCase_ == OneofFieldOneofCase.OneofFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneofFloat);
  1784. if (oneofFieldCase_ == OneofFieldOneofCase.OneofDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OneofDouble);
  1785. if (oneofFieldCase_ == OneofFieldOneofCase.OneofEnum) hash ^= OneofEnum.GetHashCode();
  1786. if (optionalBoolWrapper_ != null) hash ^= OptionalBoolWrapper.GetHashCode();
  1787. if (optionalInt32Wrapper_ != null) hash ^= OptionalInt32Wrapper.GetHashCode();
  1788. if (optionalInt64Wrapper_ != null) hash ^= OptionalInt64Wrapper.GetHashCode();
  1789. if (optionalUint32Wrapper_ != null) hash ^= OptionalUint32Wrapper.GetHashCode();
  1790. if (optionalUint64Wrapper_ != null) hash ^= OptionalUint64Wrapper.GetHashCode();
  1791. if (optionalFloatWrapper_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(OptionalFloatWrapper);
  1792. if (optionalDoubleWrapper_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(OptionalDoubleWrapper);
  1793. if (optionalStringWrapper_ != null) hash ^= OptionalStringWrapper.GetHashCode();
  1794. if (optionalBytesWrapper_ != null) hash ^= OptionalBytesWrapper.GetHashCode();
  1795. hash ^= repeatedBoolWrapper_.GetHashCode();
  1796. hash ^= repeatedInt32Wrapper_.GetHashCode();
  1797. hash ^= repeatedInt64Wrapper_.GetHashCode();
  1798. hash ^= repeatedUint32Wrapper_.GetHashCode();
  1799. hash ^= repeatedUint64Wrapper_.GetHashCode();
  1800. hash ^= repeatedFloatWrapper_.GetHashCode();
  1801. hash ^= repeatedDoubleWrapper_.GetHashCode();
  1802. hash ^= repeatedStringWrapper_.GetHashCode();
  1803. hash ^= repeatedBytesWrapper_.GetHashCode();
  1804. if (optionalDuration_ != null) hash ^= OptionalDuration.GetHashCode();
  1805. if (optionalTimestamp_ != null) hash ^= OptionalTimestamp.GetHashCode();
  1806. if (optionalFieldMask_ != null) hash ^= OptionalFieldMask.GetHashCode();
  1807. if (optionalStruct_ != null) hash ^= OptionalStruct.GetHashCode();
  1808. if (optionalAny_ != null) hash ^= OptionalAny.GetHashCode();
  1809. if (optionalValue_ != null) hash ^= OptionalValue.GetHashCode();
  1810. hash ^= repeatedDuration_.GetHashCode();
  1811. hash ^= repeatedTimestamp_.GetHashCode();
  1812. hash ^= repeatedFieldmask_.GetHashCode();
  1813. hash ^= repeatedStruct_.GetHashCode();
  1814. hash ^= repeatedAny_.GetHashCode();
  1815. hash ^= repeatedValue_.GetHashCode();
  1816. if (Fieldname1 != 0) hash ^= Fieldname1.GetHashCode();
  1817. if (FieldName2 != 0) hash ^= FieldName2.GetHashCode();
  1818. if (FieldName3 != 0) hash ^= FieldName3.GetHashCode();
  1819. if (FieldName4 != 0) hash ^= FieldName4.GetHashCode();
  1820. if (Field0Name5 != 0) hash ^= Field0Name5.GetHashCode();
  1821. if (Field0Name6 != 0) hash ^= Field0Name6.GetHashCode();
  1822. if (FieldName7 != 0) hash ^= FieldName7.GetHashCode();
  1823. if (FieldName8 != 0) hash ^= FieldName8.GetHashCode();
  1824. if (FieldName9 != 0) hash ^= FieldName9.GetHashCode();
  1825. if (FieldName10 != 0) hash ^= FieldName10.GetHashCode();
  1826. if (FIELDNAME11 != 0) hash ^= FIELDNAME11.GetHashCode();
  1827. if (FIELDName12 != 0) hash ^= FIELDName12.GetHashCode();
  1828. if (FieldName13 != 0) hash ^= FieldName13.GetHashCode();
  1829. if (FieldName14 != 0) hash ^= FieldName14.GetHashCode();
  1830. if (FieldName15 != 0) hash ^= FieldName15.GetHashCode();
  1831. if (FieldName16 != 0) hash ^= FieldName16.GetHashCode();
  1832. if (FieldName17 != 0) hash ^= FieldName17.GetHashCode();
  1833. if (FieldName18 != 0) hash ^= FieldName18.GetHashCode();
  1834. hash ^= (int) oneofFieldCase_;
  1835. if (_unknownFields != null) {
  1836. hash ^= _unknownFields.GetHashCode();
  1837. }
  1838. return hash;
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1841. public override string ToString() {
  1842. return pb::JsonFormatter.ToDiagnosticString(this);
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1845. public void WriteTo(pb::CodedOutputStream output) {
  1846. if (OptionalInt32 != 0) {
  1847. output.WriteRawTag(8);
  1848. output.WriteInt32(OptionalInt32);
  1849. }
  1850. if (OptionalInt64 != 0L) {
  1851. output.WriteRawTag(16);
  1852. output.WriteInt64(OptionalInt64);
  1853. }
  1854. if (OptionalUint32 != 0) {
  1855. output.WriteRawTag(24);
  1856. output.WriteUInt32(OptionalUint32);
  1857. }
  1858. if (OptionalUint64 != 0UL) {
  1859. output.WriteRawTag(32);
  1860. output.WriteUInt64(OptionalUint64);
  1861. }
  1862. if (OptionalSint32 != 0) {
  1863. output.WriteRawTag(40);
  1864. output.WriteSInt32(OptionalSint32);
  1865. }
  1866. if (OptionalSint64 != 0L) {
  1867. output.WriteRawTag(48);
  1868. output.WriteSInt64(OptionalSint64);
  1869. }
  1870. if (OptionalFixed32 != 0) {
  1871. output.WriteRawTag(61);
  1872. output.WriteFixed32(OptionalFixed32);
  1873. }
  1874. if (OptionalFixed64 != 0UL) {
  1875. output.WriteRawTag(65);
  1876. output.WriteFixed64(OptionalFixed64);
  1877. }
  1878. if (OptionalSfixed32 != 0) {
  1879. output.WriteRawTag(77);
  1880. output.WriteSFixed32(OptionalSfixed32);
  1881. }
  1882. if (OptionalSfixed64 != 0L) {
  1883. output.WriteRawTag(81);
  1884. output.WriteSFixed64(OptionalSfixed64);
  1885. }
  1886. if (OptionalFloat != 0F) {
  1887. output.WriteRawTag(93);
  1888. output.WriteFloat(OptionalFloat);
  1889. }
  1890. if (OptionalDouble != 0D) {
  1891. output.WriteRawTag(97);
  1892. output.WriteDouble(OptionalDouble);
  1893. }
  1894. if (OptionalBool != false) {
  1895. output.WriteRawTag(104);
  1896. output.WriteBool(OptionalBool);
  1897. }
  1898. if (OptionalString.Length != 0) {
  1899. output.WriteRawTag(114);
  1900. output.WriteString(OptionalString);
  1901. }
  1902. if (OptionalBytes.Length != 0) {
  1903. output.WriteRawTag(122);
  1904. output.WriteBytes(OptionalBytes);
  1905. }
  1906. if (optionalNestedMessage_ != null) {
  1907. output.WriteRawTag(146, 1);
  1908. output.WriteMessage(OptionalNestedMessage);
  1909. }
  1910. if (optionalForeignMessage_ != null) {
  1911. output.WriteRawTag(154, 1);
  1912. output.WriteMessage(OptionalForeignMessage);
  1913. }
  1914. if (OptionalNestedEnum != 0) {
  1915. output.WriteRawTag(168, 1);
  1916. output.WriteEnum((int) OptionalNestedEnum);
  1917. }
  1918. if (OptionalForeignEnum != 0) {
  1919. output.WriteRawTag(176, 1);
  1920. output.WriteEnum((int) OptionalForeignEnum);
  1921. }
  1922. if (OptionalStringPiece.Length != 0) {
  1923. output.WriteRawTag(194, 1);
  1924. output.WriteString(OptionalStringPiece);
  1925. }
  1926. if (OptionalCord.Length != 0) {
  1927. output.WriteRawTag(202, 1);
  1928. output.WriteString(OptionalCord);
  1929. }
  1930. if (recursiveMessage_ != null) {
  1931. output.WriteRawTag(218, 1);
  1932. output.WriteMessage(RecursiveMessage);
  1933. }
  1934. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  1935. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  1936. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  1937. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  1938. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  1939. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  1940. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  1941. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  1942. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  1943. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  1944. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  1945. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  1946. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  1947. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  1948. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  1949. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  1950. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  1951. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  1952. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  1953. repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
  1954. repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
  1955. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  1956. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  1957. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  1958. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  1959. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  1960. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  1961. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  1962. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  1963. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  1964. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  1965. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  1966. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  1967. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  1968. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  1969. mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
  1970. mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
  1971. mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
  1972. mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
  1973. mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
  1974. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  1975. output.WriteRawTag(248, 6);
  1976. output.WriteUInt32(OneofUint32);
  1977. }
  1978. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1979. output.WriteRawTag(130, 7);
  1980. output.WriteMessage(OneofNestedMessage);
  1981. }
  1982. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  1983. output.WriteRawTag(138, 7);
  1984. output.WriteString(OneofString);
  1985. }
  1986. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  1987. output.WriteRawTag(146, 7);
  1988. output.WriteBytes(OneofBytes);
  1989. }
  1990. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBool) {
  1991. output.WriteRawTag(152, 7);
  1992. output.WriteBool(OneofBool);
  1993. }
  1994. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint64) {
  1995. output.WriteRawTag(160, 7);
  1996. output.WriteUInt64(OneofUint64);
  1997. }
  1998. if (oneofFieldCase_ == OneofFieldOneofCase.OneofFloat) {
  1999. output.WriteRawTag(173, 7);
  2000. output.WriteFloat(OneofFloat);
  2001. }
  2002. if (oneofFieldCase_ == OneofFieldOneofCase.OneofDouble) {
  2003. output.WriteRawTag(177, 7);
  2004. output.WriteDouble(OneofDouble);
  2005. }
  2006. if (oneofFieldCase_ == OneofFieldOneofCase.OneofEnum) {
  2007. output.WriteRawTag(184, 7);
  2008. output.WriteEnum((int) OneofEnum);
  2009. }
  2010. if (optionalBoolWrapper_ != null) {
  2011. _single_optionalBoolWrapper_codec.WriteTagAndValue(output, OptionalBoolWrapper);
  2012. }
  2013. if (optionalInt32Wrapper_ != null) {
  2014. _single_optionalInt32Wrapper_codec.WriteTagAndValue(output, OptionalInt32Wrapper);
  2015. }
  2016. if (optionalInt64Wrapper_ != null) {
  2017. _single_optionalInt64Wrapper_codec.WriteTagAndValue(output, OptionalInt64Wrapper);
  2018. }
  2019. if (optionalUint32Wrapper_ != null) {
  2020. _single_optionalUint32Wrapper_codec.WriteTagAndValue(output, OptionalUint32Wrapper);
  2021. }
  2022. if (optionalUint64Wrapper_ != null) {
  2023. _single_optionalUint64Wrapper_codec.WriteTagAndValue(output, OptionalUint64Wrapper);
  2024. }
  2025. if (optionalFloatWrapper_ != null) {
  2026. _single_optionalFloatWrapper_codec.WriteTagAndValue(output, OptionalFloatWrapper);
  2027. }
  2028. if (optionalDoubleWrapper_ != null) {
  2029. _single_optionalDoubleWrapper_codec.WriteTagAndValue(output, OptionalDoubleWrapper);
  2030. }
  2031. if (optionalStringWrapper_ != null) {
  2032. _single_optionalStringWrapper_codec.WriteTagAndValue(output, OptionalStringWrapper);
  2033. }
  2034. if (optionalBytesWrapper_ != null) {
  2035. _single_optionalBytesWrapper_codec.WriteTagAndValue(output, OptionalBytesWrapper);
  2036. }
  2037. repeatedBoolWrapper_.WriteTo(output, _repeated_repeatedBoolWrapper_codec);
  2038. repeatedInt32Wrapper_.WriteTo(output, _repeated_repeatedInt32Wrapper_codec);
  2039. repeatedInt64Wrapper_.WriteTo(output, _repeated_repeatedInt64Wrapper_codec);
  2040. repeatedUint32Wrapper_.WriteTo(output, _repeated_repeatedUint32Wrapper_codec);
  2041. repeatedUint64Wrapper_.WriteTo(output, _repeated_repeatedUint64Wrapper_codec);
  2042. repeatedFloatWrapper_.WriteTo(output, _repeated_repeatedFloatWrapper_codec);
  2043. repeatedDoubleWrapper_.WriteTo(output, _repeated_repeatedDoubleWrapper_codec);
  2044. repeatedStringWrapper_.WriteTo(output, _repeated_repeatedStringWrapper_codec);
  2045. repeatedBytesWrapper_.WriteTo(output, _repeated_repeatedBytesWrapper_codec);
  2046. if (optionalDuration_ != null) {
  2047. output.WriteRawTag(234, 18);
  2048. output.WriteMessage(OptionalDuration);
  2049. }
  2050. if (optionalTimestamp_ != null) {
  2051. output.WriteRawTag(242, 18);
  2052. output.WriteMessage(OptionalTimestamp);
  2053. }
  2054. if (optionalFieldMask_ != null) {
  2055. output.WriteRawTag(250, 18);
  2056. output.WriteMessage(OptionalFieldMask);
  2057. }
  2058. if (optionalStruct_ != null) {
  2059. output.WriteRawTag(130, 19);
  2060. output.WriteMessage(OptionalStruct);
  2061. }
  2062. if (optionalAny_ != null) {
  2063. output.WriteRawTag(138, 19);
  2064. output.WriteMessage(OptionalAny);
  2065. }
  2066. if (optionalValue_ != null) {
  2067. output.WriteRawTag(146, 19);
  2068. output.WriteMessage(OptionalValue);
  2069. }
  2070. repeatedDuration_.WriteTo(output, _repeated_repeatedDuration_codec);
  2071. repeatedTimestamp_.WriteTo(output, _repeated_repeatedTimestamp_codec);
  2072. repeatedFieldmask_.WriteTo(output, _repeated_repeatedFieldmask_codec);
  2073. repeatedAny_.WriteTo(output, _repeated_repeatedAny_codec);
  2074. repeatedValue_.WriteTo(output, _repeated_repeatedValue_codec);
  2075. repeatedStruct_.WriteTo(output, _repeated_repeatedStruct_codec);
  2076. if (Fieldname1 != 0) {
  2077. output.WriteRawTag(136, 25);
  2078. output.WriteInt32(Fieldname1);
  2079. }
  2080. if (FieldName2 != 0) {
  2081. output.WriteRawTag(144, 25);
  2082. output.WriteInt32(FieldName2);
  2083. }
  2084. if (FieldName3 != 0) {
  2085. output.WriteRawTag(152, 25);
  2086. output.WriteInt32(FieldName3);
  2087. }
  2088. if (FieldName4 != 0) {
  2089. output.WriteRawTag(160, 25);
  2090. output.WriteInt32(FieldName4);
  2091. }
  2092. if (Field0Name5 != 0) {
  2093. output.WriteRawTag(168, 25);
  2094. output.WriteInt32(Field0Name5);
  2095. }
  2096. if (Field0Name6 != 0) {
  2097. output.WriteRawTag(176, 25);
  2098. output.WriteInt32(Field0Name6);
  2099. }
  2100. if (FieldName7 != 0) {
  2101. output.WriteRawTag(184, 25);
  2102. output.WriteInt32(FieldName7);
  2103. }
  2104. if (FieldName8 != 0) {
  2105. output.WriteRawTag(192, 25);
  2106. output.WriteInt32(FieldName8);
  2107. }
  2108. if (FieldName9 != 0) {
  2109. output.WriteRawTag(200, 25);
  2110. output.WriteInt32(FieldName9);
  2111. }
  2112. if (FieldName10 != 0) {
  2113. output.WriteRawTag(208, 25);
  2114. output.WriteInt32(FieldName10);
  2115. }
  2116. if (FIELDNAME11 != 0) {
  2117. output.WriteRawTag(216, 25);
  2118. output.WriteInt32(FIELDNAME11);
  2119. }
  2120. if (FIELDName12 != 0) {
  2121. output.WriteRawTag(224, 25);
  2122. output.WriteInt32(FIELDName12);
  2123. }
  2124. if (FieldName13 != 0) {
  2125. output.WriteRawTag(232, 25);
  2126. output.WriteInt32(FieldName13);
  2127. }
  2128. if (FieldName14 != 0) {
  2129. output.WriteRawTag(240, 25);
  2130. output.WriteInt32(FieldName14);
  2131. }
  2132. if (FieldName15 != 0) {
  2133. output.WriteRawTag(248, 25);
  2134. output.WriteInt32(FieldName15);
  2135. }
  2136. if (FieldName16 != 0) {
  2137. output.WriteRawTag(128, 26);
  2138. output.WriteInt32(FieldName16);
  2139. }
  2140. if (FieldName17 != 0) {
  2141. output.WriteRawTag(136, 26);
  2142. output.WriteInt32(FieldName17);
  2143. }
  2144. if (FieldName18 != 0) {
  2145. output.WriteRawTag(144, 26);
  2146. output.WriteInt32(FieldName18);
  2147. }
  2148. if (_unknownFields != null) {
  2149. _unknownFields.WriteTo(output);
  2150. }
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2153. public int CalculateSize() {
  2154. int size = 0;
  2155. if (OptionalInt32 != 0) {
  2156. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  2157. }
  2158. if (OptionalInt64 != 0L) {
  2159. size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
  2160. }
  2161. if (OptionalUint32 != 0) {
  2162. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
  2163. }
  2164. if (OptionalUint64 != 0UL) {
  2165. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
  2166. }
  2167. if (OptionalSint32 != 0) {
  2168. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
  2169. }
  2170. if (OptionalSint64 != 0L) {
  2171. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
  2172. }
  2173. if (OptionalFixed32 != 0) {
  2174. size += 1 + 4;
  2175. }
  2176. if (OptionalFixed64 != 0UL) {
  2177. size += 1 + 8;
  2178. }
  2179. if (OptionalSfixed32 != 0) {
  2180. size += 1 + 4;
  2181. }
  2182. if (OptionalSfixed64 != 0L) {
  2183. size += 1 + 8;
  2184. }
  2185. if (OptionalFloat != 0F) {
  2186. size += 1 + 4;
  2187. }
  2188. if (OptionalDouble != 0D) {
  2189. size += 1 + 8;
  2190. }
  2191. if (OptionalBool != false) {
  2192. size += 1 + 1;
  2193. }
  2194. if (OptionalString.Length != 0) {
  2195. size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  2196. }
  2197. if (OptionalBytes.Length != 0) {
  2198. size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  2199. }
  2200. if (optionalNestedMessage_ != null) {
  2201. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  2202. }
  2203. if (optionalForeignMessage_ != null) {
  2204. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
  2205. }
  2206. if (OptionalNestedEnum != 0) {
  2207. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
  2208. }
  2209. if (OptionalForeignEnum != 0) {
  2210. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  2211. }
  2212. if (OptionalStringPiece.Length != 0) {
  2213. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
  2214. }
  2215. if (OptionalCord.Length != 0) {
  2216. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
  2217. }
  2218. if (recursiveMessage_ != null) {
  2219. size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
  2220. }
  2221. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  2222. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  2223. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  2224. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  2225. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  2226. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  2227. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  2228. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  2229. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  2230. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  2231. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  2232. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  2233. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  2234. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  2235. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  2236. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  2237. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  2238. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  2239. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  2240. size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
  2241. size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
  2242. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  2243. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  2244. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  2245. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  2246. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  2247. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  2248. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  2249. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  2250. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  2251. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  2252. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  2253. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  2254. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  2255. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  2256. size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
  2257. size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
  2258. size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
  2259. size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
  2260. size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
  2261. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  2262. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  2263. }
  2264. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  2265. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  2266. }
  2267. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  2268. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  2269. }
  2270. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  2271. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  2272. }
  2273. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBool) {
  2274. size += 2 + 1;
  2275. }
  2276. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint64) {
  2277. size += 2 + pb::CodedOutputStream.ComputeUInt64Size(OneofUint64);
  2278. }
  2279. if (oneofFieldCase_ == OneofFieldOneofCase.OneofFloat) {
  2280. size += 2 + 4;
  2281. }
  2282. if (oneofFieldCase_ == OneofFieldOneofCase.OneofDouble) {
  2283. size += 2 + 8;
  2284. }
  2285. if (oneofFieldCase_ == OneofFieldOneofCase.OneofEnum) {
  2286. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OneofEnum);
  2287. }
  2288. if (optionalBoolWrapper_ != null) {
  2289. size += _single_optionalBoolWrapper_codec.CalculateSizeWithTag(OptionalBoolWrapper);
  2290. }
  2291. if (optionalInt32Wrapper_ != null) {
  2292. size += _single_optionalInt32Wrapper_codec.CalculateSizeWithTag(OptionalInt32Wrapper);
  2293. }
  2294. if (optionalInt64Wrapper_ != null) {
  2295. size += _single_optionalInt64Wrapper_codec.CalculateSizeWithTag(OptionalInt64Wrapper);
  2296. }
  2297. if (optionalUint32Wrapper_ != null) {
  2298. size += _single_optionalUint32Wrapper_codec.CalculateSizeWithTag(OptionalUint32Wrapper);
  2299. }
  2300. if (optionalUint64Wrapper_ != null) {
  2301. size += _single_optionalUint64Wrapper_codec.CalculateSizeWithTag(OptionalUint64Wrapper);
  2302. }
  2303. if (optionalFloatWrapper_ != null) {
  2304. size += _single_optionalFloatWrapper_codec.CalculateSizeWithTag(OptionalFloatWrapper);
  2305. }
  2306. if (optionalDoubleWrapper_ != null) {
  2307. size += _single_optionalDoubleWrapper_codec.CalculateSizeWithTag(OptionalDoubleWrapper);
  2308. }
  2309. if (optionalStringWrapper_ != null) {
  2310. size += _single_optionalStringWrapper_codec.CalculateSizeWithTag(OptionalStringWrapper);
  2311. }
  2312. if (optionalBytesWrapper_ != null) {
  2313. size += _single_optionalBytesWrapper_codec.CalculateSizeWithTag(OptionalBytesWrapper);
  2314. }
  2315. size += repeatedBoolWrapper_.CalculateSize(_repeated_repeatedBoolWrapper_codec);
  2316. size += repeatedInt32Wrapper_.CalculateSize(_repeated_repeatedInt32Wrapper_codec);
  2317. size += repeatedInt64Wrapper_.CalculateSize(_repeated_repeatedInt64Wrapper_codec);
  2318. size += repeatedUint32Wrapper_.CalculateSize(_repeated_repeatedUint32Wrapper_codec);
  2319. size += repeatedUint64Wrapper_.CalculateSize(_repeated_repeatedUint64Wrapper_codec);
  2320. size += repeatedFloatWrapper_.CalculateSize(_repeated_repeatedFloatWrapper_codec);
  2321. size += repeatedDoubleWrapper_.CalculateSize(_repeated_repeatedDoubleWrapper_codec);
  2322. size += repeatedStringWrapper_.CalculateSize(_repeated_repeatedStringWrapper_codec);
  2323. size += repeatedBytesWrapper_.CalculateSize(_repeated_repeatedBytesWrapper_codec);
  2324. if (optionalDuration_ != null) {
  2325. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalDuration);
  2326. }
  2327. if (optionalTimestamp_ != null) {
  2328. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalTimestamp);
  2329. }
  2330. if (optionalFieldMask_ != null) {
  2331. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalFieldMask);
  2332. }
  2333. if (optionalStruct_ != null) {
  2334. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalStruct);
  2335. }
  2336. if (optionalAny_ != null) {
  2337. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalAny);
  2338. }
  2339. if (optionalValue_ != null) {
  2340. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalValue);
  2341. }
  2342. size += repeatedDuration_.CalculateSize(_repeated_repeatedDuration_codec);
  2343. size += repeatedTimestamp_.CalculateSize(_repeated_repeatedTimestamp_codec);
  2344. size += repeatedFieldmask_.CalculateSize(_repeated_repeatedFieldmask_codec);
  2345. size += repeatedStruct_.CalculateSize(_repeated_repeatedStruct_codec);
  2346. size += repeatedAny_.CalculateSize(_repeated_repeatedAny_codec);
  2347. size += repeatedValue_.CalculateSize(_repeated_repeatedValue_codec);
  2348. if (Fieldname1 != 0) {
  2349. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1);
  2350. }
  2351. if (FieldName2 != 0) {
  2352. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
  2353. }
  2354. if (FieldName3 != 0) {
  2355. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
  2356. }
  2357. if (FieldName4 != 0) {
  2358. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
  2359. }
  2360. if (Field0Name5 != 0) {
  2361. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5);
  2362. }
  2363. if (Field0Name6 != 0) {
  2364. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6);
  2365. }
  2366. if (FieldName7 != 0) {
  2367. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7);
  2368. }
  2369. if (FieldName8 != 0) {
  2370. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8);
  2371. }
  2372. if (FieldName9 != 0) {
  2373. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9);
  2374. }
  2375. if (FieldName10 != 0) {
  2376. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10);
  2377. }
  2378. if (FIELDNAME11 != 0) {
  2379. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11);
  2380. }
  2381. if (FIELDName12 != 0) {
  2382. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12);
  2383. }
  2384. if (FieldName13 != 0) {
  2385. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName13);
  2386. }
  2387. if (FieldName14 != 0) {
  2388. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName14);
  2389. }
  2390. if (FieldName15 != 0) {
  2391. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName15);
  2392. }
  2393. if (FieldName16 != 0) {
  2394. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName16);
  2395. }
  2396. if (FieldName17 != 0) {
  2397. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName17);
  2398. }
  2399. if (FieldName18 != 0) {
  2400. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName18);
  2401. }
  2402. if (_unknownFields != null) {
  2403. size += _unknownFields.CalculateSize();
  2404. }
  2405. return size;
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2408. public void MergeFrom(TestAllTypesProto3 other) {
  2409. if (other == null) {
  2410. return;
  2411. }
  2412. if (other.OptionalInt32 != 0) {
  2413. OptionalInt32 = other.OptionalInt32;
  2414. }
  2415. if (other.OptionalInt64 != 0L) {
  2416. OptionalInt64 = other.OptionalInt64;
  2417. }
  2418. if (other.OptionalUint32 != 0) {
  2419. OptionalUint32 = other.OptionalUint32;
  2420. }
  2421. if (other.OptionalUint64 != 0UL) {
  2422. OptionalUint64 = other.OptionalUint64;
  2423. }
  2424. if (other.OptionalSint32 != 0) {
  2425. OptionalSint32 = other.OptionalSint32;
  2426. }
  2427. if (other.OptionalSint64 != 0L) {
  2428. OptionalSint64 = other.OptionalSint64;
  2429. }
  2430. if (other.OptionalFixed32 != 0) {
  2431. OptionalFixed32 = other.OptionalFixed32;
  2432. }
  2433. if (other.OptionalFixed64 != 0UL) {
  2434. OptionalFixed64 = other.OptionalFixed64;
  2435. }
  2436. if (other.OptionalSfixed32 != 0) {
  2437. OptionalSfixed32 = other.OptionalSfixed32;
  2438. }
  2439. if (other.OptionalSfixed64 != 0L) {
  2440. OptionalSfixed64 = other.OptionalSfixed64;
  2441. }
  2442. if (other.OptionalFloat != 0F) {
  2443. OptionalFloat = other.OptionalFloat;
  2444. }
  2445. if (other.OptionalDouble != 0D) {
  2446. OptionalDouble = other.OptionalDouble;
  2447. }
  2448. if (other.OptionalBool != false) {
  2449. OptionalBool = other.OptionalBool;
  2450. }
  2451. if (other.OptionalString.Length != 0) {
  2452. OptionalString = other.OptionalString;
  2453. }
  2454. if (other.OptionalBytes.Length != 0) {
  2455. OptionalBytes = other.OptionalBytes;
  2456. }
  2457. if (other.optionalNestedMessage_ != null) {
  2458. if (optionalNestedMessage_ == null) {
  2459. OptionalNestedMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
  2460. }
  2461. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  2462. }
  2463. if (other.optionalForeignMessage_ != null) {
  2464. if (optionalForeignMessage_ == null) {
  2465. OptionalForeignMessage = new global::ProtobufTestMessages.Proto3.ForeignMessage();
  2466. }
  2467. OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
  2468. }
  2469. if (other.OptionalNestedEnum != 0) {
  2470. OptionalNestedEnum = other.OptionalNestedEnum;
  2471. }
  2472. if (other.OptionalForeignEnum != 0) {
  2473. OptionalForeignEnum = other.OptionalForeignEnum;
  2474. }
  2475. if (other.OptionalStringPiece.Length != 0) {
  2476. OptionalStringPiece = other.OptionalStringPiece;
  2477. }
  2478. if (other.OptionalCord.Length != 0) {
  2479. OptionalCord = other.OptionalCord;
  2480. }
  2481. if (other.recursiveMessage_ != null) {
  2482. if (recursiveMessage_ == null) {
  2483. RecursiveMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
  2484. }
  2485. RecursiveMessage.MergeFrom(other.RecursiveMessage);
  2486. }
  2487. repeatedInt32_.Add(other.repeatedInt32_);
  2488. repeatedInt64_.Add(other.repeatedInt64_);
  2489. repeatedUint32_.Add(other.repeatedUint32_);
  2490. repeatedUint64_.Add(other.repeatedUint64_);
  2491. repeatedSint32_.Add(other.repeatedSint32_);
  2492. repeatedSint64_.Add(other.repeatedSint64_);
  2493. repeatedFixed32_.Add(other.repeatedFixed32_);
  2494. repeatedFixed64_.Add(other.repeatedFixed64_);
  2495. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  2496. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  2497. repeatedFloat_.Add(other.repeatedFloat_);
  2498. repeatedDouble_.Add(other.repeatedDouble_);
  2499. repeatedBool_.Add(other.repeatedBool_);
  2500. repeatedString_.Add(other.repeatedString_);
  2501. repeatedBytes_.Add(other.repeatedBytes_);
  2502. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  2503. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  2504. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  2505. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  2506. repeatedStringPiece_.Add(other.repeatedStringPiece_);
  2507. repeatedCord_.Add(other.repeatedCord_);
  2508. mapInt32Int32_.Add(other.mapInt32Int32_);
  2509. mapInt64Int64_.Add(other.mapInt64Int64_);
  2510. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  2511. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  2512. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  2513. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  2514. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  2515. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  2516. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  2517. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  2518. mapInt32Float_.Add(other.mapInt32Float_);
  2519. mapInt32Double_.Add(other.mapInt32Double_);
  2520. mapBoolBool_.Add(other.mapBoolBool_);
  2521. mapStringString_.Add(other.mapStringString_);
  2522. mapStringBytes_.Add(other.mapStringBytes_);
  2523. mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
  2524. mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
  2525. mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
  2526. mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
  2527. if (other.optionalBoolWrapper_ != null) {
  2528. if (optionalBoolWrapper_ == null || other.OptionalBoolWrapper != false) {
  2529. OptionalBoolWrapper = other.OptionalBoolWrapper;
  2530. }
  2531. }
  2532. if (other.optionalInt32Wrapper_ != null) {
  2533. if (optionalInt32Wrapper_ == null || other.OptionalInt32Wrapper != 0) {
  2534. OptionalInt32Wrapper = other.OptionalInt32Wrapper;
  2535. }
  2536. }
  2537. if (other.optionalInt64Wrapper_ != null) {
  2538. if (optionalInt64Wrapper_ == null || other.OptionalInt64Wrapper != 0L) {
  2539. OptionalInt64Wrapper = other.OptionalInt64Wrapper;
  2540. }
  2541. }
  2542. if (other.optionalUint32Wrapper_ != null) {
  2543. if (optionalUint32Wrapper_ == null || other.OptionalUint32Wrapper != 0) {
  2544. OptionalUint32Wrapper = other.OptionalUint32Wrapper;
  2545. }
  2546. }
  2547. if (other.optionalUint64Wrapper_ != null) {
  2548. if (optionalUint64Wrapper_ == null || other.OptionalUint64Wrapper != 0UL) {
  2549. OptionalUint64Wrapper = other.OptionalUint64Wrapper;
  2550. }
  2551. }
  2552. if (other.optionalFloatWrapper_ != null) {
  2553. if (optionalFloatWrapper_ == null || other.OptionalFloatWrapper != 0F) {
  2554. OptionalFloatWrapper = other.OptionalFloatWrapper;
  2555. }
  2556. }
  2557. if (other.optionalDoubleWrapper_ != null) {
  2558. if (optionalDoubleWrapper_ == null || other.OptionalDoubleWrapper != 0D) {
  2559. OptionalDoubleWrapper = other.OptionalDoubleWrapper;
  2560. }
  2561. }
  2562. if (other.optionalStringWrapper_ != null) {
  2563. if (optionalStringWrapper_ == null || other.OptionalStringWrapper != "") {
  2564. OptionalStringWrapper = other.OptionalStringWrapper;
  2565. }
  2566. }
  2567. if (other.optionalBytesWrapper_ != null) {
  2568. if (optionalBytesWrapper_ == null || other.OptionalBytesWrapper != pb::ByteString.Empty) {
  2569. OptionalBytesWrapper = other.OptionalBytesWrapper;
  2570. }
  2571. }
  2572. repeatedBoolWrapper_.Add(other.repeatedBoolWrapper_);
  2573. repeatedInt32Wrapper_.Add(other.repeatedInt32Wrapper_);
  2574. repeatedInt64Wrapper_.Add(other.repeatedInt64Wrapper_);
  2575. repeatedUint32Wrapper_.Add(other.repeatedUint32Wrapper_);
  2576. repeatedUint64Wrapper_.Add(other.repeatedUint64Wrapper_);
  2577. repeatedFloatWrapper_.Add(other.repeatedFloatWrapper_);
  2578. repeatedDoubleWrapper_.Add(other.repeatedDoubleWrapper_);
  2579. repeatedStringWrapper_.Add(other.repeatedStringWrapper_);
  2580. repeatedBytesWrapper_.Add(other.repeatedBytesWrapper_);
  2581. if (other.optionalDuration_ != null) {
  2582. if (optionalDuration_ == null) {
  2583. OptionalDuration = new global::Google.Protobuf.WellKnownTypes.Duration();
  2584. }
  2585. OptionalDuration.MergeFrom(other.OptionalDuration);
  2586. }
  2587. if (other.optionalTimestamp_ != null) {
  2588. if (optionalTimestamp_ == null) {
  2589. OptionalTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  2590. }
  2591. OptionalTimestamp.MergeFrom(other.OptionalTimestamp);
  2592. }
  2593. if (other.optionalFieldMask_ != null) {
  2594. if (optionalFieldMask_ == null) {
  2595. OptionalFieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  2596. }
  2597. OptionalFieldMask.MergeFrom(other.OptionalFieldMask);
  2598. }
  2599. if (other.optionalStruct_ != null) {
  2600. if (optionalStruct_ == null) {
  2601. OptionalStruct = new global::Google.Protobuf.WellKnownTypes.Struct();
  2602. }
  2603. OptionalStruct.MergeFrom(other.OptionalStruct);
  2604. }
  2605. if (other.optionalAny_ != null) {
  2606. if (optionalAny_ == null) {
  2607. OptionalAny = new global::Google.Protobuf.WellKnownTypes.Any();
  2608. }
  2609. OptionalAny.MergeFrom(other.OptionalAny);
  2610. }
  2611. if (other.optionalValue_ != null) {
  2612. if (optionalValue_ == null) {
  2613. OptionalValue = new global::Google.Protobuf.WellKnownTypes.Value();
  2614. }
  2615. OptionalValue.MergeFrom(other.OptionalValue);
  2616. }
  2617. repeatedDuration_.Add(other.repeatedDuration_);
  2618. repeatedTimestamp_.Add(other.repeatedTimestamp_);
  2619. repeatedFieldmask_.Add(other.repeatedFieldmask_);
  2620. repeatedStruct_.Add(other.repeatedStruct_);
  2621. repeatedAny_.Add(other.repeatedAny_);
  2622. repeatedValue_.Add(other.repeatedValue_);
  2623. if (other.Fieldname1 != 0) {
  2624. Fieldname1 = other.Fieldname1;
  2625. }
  2626. if (other.FieldName2 != 0) {
  2627. FieldName2 = other.FieldName2;
  2628. }
  2629. if (other.FieldName3 != 0) {
  2630. FieldName3 = other.FieldName3;
  2631. }
  2632. if (other.FieldName4 != 0) {
  2633. FieldName4 = other.FieldName4;
  2634. }
  2635. if (other.Field0Name5 != 0) {
  2636. Field0Name5 = other.Field0Name5;
  2637. }
  2638. if (other.Field0Name6 != 0) {
  2639. Field0Name6 = other.Field0Name6;
  2640. }
  2641. if (other.FieldName7 != 0) {
  2642. FieldName7 = other.FieldName7;
  2643. }
  2644. if (other.FieldName8 != 0) {
  2645. FieldName8 = other.FieldName8;
  2646. }
  2647. if (other.FieldName9 != 0) {
  2648. FieldName9 = other.FieldName9;
  2649. }
  2650. if (other.FieldName10 != 0) {
  2651. FieldName10 = other.FieldName10;
  2652. }
  2653. if (other.FIELDNAME11 != 0) {
  2654. FIELDNAME11 = other.FIELDNAME11;
  2655. }
  2656. if (other.FIELDName12 != 0) {
  2657. FIELDName12 = other.FIELDName12;
  2658. }
  2659. if (other.FieldName13 != 0) {
  2660. FieldName13 = other.FieldName13;
  2661. }
  2662. if (other.FieldName14 != 0) {
  2663. FieldName14 = other.FieldName14;
  2664. }
  2665. if (other.FieldName15 != 0) {
  2666. FieldName15 = other.FieldName15;
  2667. }
  2668. if (other.FieldName16 != 0) {
  2669. FieldName16 = other.FieldName16;
  2670. }
  2671. if (other.FieldName17 != 0) {
  2672. FieldName17 = other.FieldName17;
  2673. }
  2674. if (other.FieldName18 != 0) {
  2675. FieldName18 = other.FieldName18;
  2676. }
  2677. switch (other.OneofFieldCase) {
  2678. case OneofFieldOneofCase.OneofUint32:
  2679. OneofUint32 = other.OneofUint32;
  2680. break;
  2681. case OneofFieldOneofCase.OneofNestedMessage:
  2682. if (OneofNestedMessage == null) {
  2683. OneofNestedMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
  2684. }
  2685. OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
  2686. break;
  2687. case OneofFieldOneofCase.OneofString:
  2688. OneofString = other.OneofString;
  2689. break;
  2690. case OneofFieldOneofCase.OneofBytes:
  2691. OneofBytes = other.OneofBytes;
  2692. break;
  2693. case OneofFieldOneofCase.OneofBool:
  2694. OneofBool = other.OneofBool;
  2695. break;
  2696. case OneofFieldOneofCase.OneofUint64:
  2697. OneofUint64 = other.OneofUint64;
  2698. break;
  2699. case OneofFieldOneofCase.OneofFloat:
  2700. OneofFloat = other.OneofFloat;
  2701. break;
  2702. case OneofFieldOneofCase.OneofDouble:
  2703. OneofDouble = other.OneofDouble;
  2704. break;
  2705. case OneofFieldOneofCase.OneofEnum:
  2706. OneofEnum = other.OneofEnum;
  2707. break;
  2708. }
  2709. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2712. public void MergeFrom(pb::CodedInputStream input) {
  2713. uint tag;
  2714. while ((tag = input.ReadTag()) != 0) {
  2715. switch(tag) {
  2716. default:
  2717. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  2718. return;
  2719. }
  2720. break;
  2721. case 8: {
  2722. OptionalInt32 = input.ReadInt32();
  2723. break;
  2724. }
  2725. case 16: {
  2726. OptionalInt64 = input.ReadInt64();
  2727. break;
  2728. }
  2729. case 24: {
  2730. OptionalUint32 = input.ReadUInt32();
  2731. break;
  2732. }
  2733. case 32: {
  2734. OptionalUint64 = input.ReadUInt64();
  2735. break;
  2736. }
  2737. case 40: {
  2738. OptionalSint32 = input.ReadSInt32();
  2739. break;
  2740. }
  2741. case 48: {
  2742. OptionalSint64 = input.ReadSInt64();
  2743. break;
  2744. }
  2745. case 61: {
  2746. OptionalFixed32 = input.ReadFixed32();
  2747. break;
  2748. }
  2749. case 65: {
  2750. OptionalFixed64 = input.ReadFixed64();
  2751. break;
  2752. }
  2753. case 77: {
  2754. OptionalSfixed32 = input.ReadSFixed32();
  2755. break;
  2756. }
  2757. case 81: {
  2758. OptionalSfixed64 = input.ReadSFixed64();
  2759. break;
  2760. }
  2761. case 93: {
  2762. OptionalFloat = input.ReadFloat();
  2763. break;
  2764. }
  2765. case 97: {
  2766. OptionalDouble = input.ReadDouble();
  2767. break;
  2768. }
  2769. case 104: {
  2770. OptionalBool = input.ReadBool();
  2771. break;
  2772. }
  2773. case 114: {
  2774. OptionalString = input.ReadString();
  2775. break;
  2776. }
  2777. case 122: {
  2778. OptionalBytes = input.ReadBytes();
  2779. break;
  2780. }
  2781. case 146: {
  2782. if (optionalNestedMessage_ == null) {
  2783. OptionalNestedMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
  2784. }
  2785. input.ReadMessage(OptionalNestedMessage);
  2786. break;
  2787. }
  2788. case 154: {
  2789. if (optionalForeignMessage_ == null) {
  2790. OptionalForeignMessage = new global::ProtobufTestMessages.Proto3.ForeignMessage();
  2791. }
  2792. input.ReadMessage(OptionalForeignMessage);
  2793. break;
  2794. }
  2795. case 168: {
  2796. OptionalNestedEnum = (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) input.ReadEnum();
  2797. break;
  2798. }
  2799. case 176: {
  2800. OptionalForeignEnum = (global::ProtobufTestMessages.Proto3.ForeignEnum) input.ReadEnum();
  2801. break;
  2802. }
  2803. case 194: {
  2804. OptionalStringPiece = input.ReadString();
  2805. break;
  2806. }
  2807. case 202: {
  2808. OptionalCord = input.ReadString();
  2809. break;
  2810. }
  2811. case 218: {
  2812. if (recursiveMessage_ == null) {
  2813. RecursiveMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
  2814. }
  2815. input.ReadMessage(RecursiveMessage);
  2816. break;
  2817. }
  2818. case 250:
  2819. case 248: {
  2820. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  2821. break;
  2822. }
  2823. case 258:
  2824. case 256: {
  2825. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  2826. break;
  2827. }
  2828. case 266:
  2829. case 264: {
  2830. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  2831. break;
  2832. }
  2833. case 274:
  2834. case 272: {
  2835. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  2836. break;
  2837. }
  2838. case 282:
  2839. case 280: {
  2840. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  2841. break;
  2842. }
  2843. case 290:
  2844. case 288: {
  2845. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  2846. break;
  2847. }
  2848. case 298:
  2849. case 301: {
  2850. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  2851. break;
  2852. }
  2853. case 306:
  2854. case 305: {
  2855. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  2856. break;
  2857. }
  2858. case 314:
  2859. case 317: {
  2860. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  2861. break;
  2862. }
  2863. case 322:
  2864. case 321: {
  2865. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  2866. break;
  2867. }
  2868. case 330:
  2869. case 333: {
  2870. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  2871. break;
  2872. }
  2873. case 338:
  2874. case 337: {
  2875. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  2876. break;
  2877. }
  2878. case 346:
  2879. case 344: {
  2880. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  2881. break;
  2882. }
  2883. case 354: {
  2884. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  2885. break;
  2886. }
  2887. case 362: {
  2888. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  2889. break;
  2890. }
  2891. case 386: {
  2892. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  2893. break;
  2894. }
  2895. case 394: {
  2896. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  2897. break;
  2898. }
  2899. case 410:
  2900. case 408: {
  2901. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  2902. break;
  2903. }
  2904. case 418:
  2905. case 416: {
  2906. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  2907. break;
  2908. }
  2909. case 434: {
  2910. repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
  2911. break;
  2912. }
  2913. case 442: {
  2914. repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
  2915. break;
  2916. }
  2917. case 450: {
  2918. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  2919. break;
  2920. }
  2921. case 458: {
  2922. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  2923. break;
  2924. }
  2925. case 466: {
  2926. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  2927. break;
  2928. }
  2929. case 474: {
  2930. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  2931. break;
  2932. }
  2933. case 482: {
  2934. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  2935. break;
  2936. }
  2937. case 490: {
  2938. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  2939. break;
  2940. }
  2941. case 498: {
  2942. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  2943. break;
  2944. }
  2945. case 506: {
  2946. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  2947. break;
  2948. }
  2949. case 514: {
  2950. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  2951. break;
  2952. }
  2953. case 522: {
  2954. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  2955. break;
  2956. }
  2957. case 530: {
  2958. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  2959. break;
  2960. }
  2961. case 538: {
  2962. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  2963. break;
  2964. }
  2965. case 546: {
  2966. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  2967. break;
  2968. }
  2969. case 554: {
  2970. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  2971. break;
  2972. }
  2973. case 562: {
  2974. mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
  2975. break;
  2976. }
  2977. case 570: {
  2978. mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
  2979. break;
  2980. }
  2981. case 578: {
  2982. mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
  2983. break;
  2984. }
  2985. case 586: {
  2986. mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
  2987. break;
  2988. }
  2989. case 594: {
  2990. mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
  2991. break;
  2992. }
  2993. case 888: {
  2994. OneofUint32 = input.ReadUInt32();
  2995. break;
  2996. }
  2997. case 898: {
  2998. global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
  2999. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  3000. subBuilder.MergeFrom(OneofNestedMessage);
  3001. }
  3002. input.ReadMessage(subBuilder);
  3003. OneofNestedMessage = subBuilder;
  3004. break;
  3005. }
  3006. case 906: {
  3007. OneofString = input.ReadString();
  3008. break;
  3009. }
  3010. case 914: {
  3011. OneofBytes = input.ReadBytes();
  3012. break;
  3013. }
  3014. case 920: {
  3015. OneofBool = input.ReadBool();
  3016. break;
  3017. }
  3018. case 928: {
  3019. OneofUint64 = input.ReadUInt64();
  3020. break;
  3021. }
  3022. case 941: {
  3023. OneofFloat = input.ReadFloat();
  3024. break;
  3025. }
  3026. case 945: {
  3027. OneofDouble = input.ReadDouble();
  3028. break;
  3029. }
  3030. case 952: {
  3031. oneofField_ = input.ReadEnum();
  3032. oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
  3033. break;
  3034. }
  3035. case 1610: {
  3036. bool? value = _single_optionalBoolWrapper_codec.Read(input);
  3037. if (optionalBoolWrapper_ == null || value != false) {
  3038. OptionalBoolWrapper = value;
  3039. }
  3040. break;
  3041. }
  3042. case 1618: {
  3043. int? value = _single_optionalInt32Wrapper_codec.Read(input);
  3044. if (optionalInt32Wrapper_ == null || value != 0) {
  3045. OptionalInt32Wrapper = value;
  3046. }
  3047. break;
  3048. }
  3049. case 1626: {
  3050. long? value = _single_optionalInt64Wrapper_codec.Read(input);
  3051. if (optionalInt64Wrapper_ == null || value != 0L) {
  3052. OptionalInt64Wrapper = value;
  3053. }
  3054. break;
  3055. }
  3056. case 1634: {
  3057. uint? value = _single_optionalUint32Wrapper_codec.Read(input);
  3058. if (optionalUint32Wrapper_ == null || value != 0) {
  3059. OptionalUint32Wrapper = value;
  3060. }
  3061. break;
  3062. }
  3063. case 1642: {
  3064. ulong? value = _single_optionalUint64Wrapper_codec.Read(input);
  3065. if (optionalUint64Wrapper_ == null || value != 0UL) {
  3066. OptionalUint64Wrapper = value;
  3067. }
  3068. break;
  3069. }
  3070. case 1650: {
  3071. float? value = _single_optionalFloatWrapper_codec.Read(input);
  3072. if (optionalFloatWrapper_ == null || value != 0F) {
  3073. OptionalFloatWrapper = value;
  3074. }
  3075. break;
  3076. }
  3077. case 1658: {
  3078. double? value = _single_optionalDoubleWrapper_codec.Read(input);
  3079. if (optionalDoubleWrapper_ == null || value != 0D) {
  3080. OptionalDoubleWrapper = value;
  3081. }
  3082. break;
  3083. }
  3084. case 1666: {
  3085. string value = _single_optionalStringWrapper_codec.Read(input);
  3086. if (optionalStringWrapper_ == null || value != "") {
  3087. OptionalStringWrapper = value;
  3088. }
  3089. break;
  3090. }
  3091. case 1674: {
  3092. pb::ByteString value = _single_optionalBytesWrapper_codec.Read(input);
  3093. if (optionalBytesWrapper_ == null || value != pb::ByteString.Empty) {
  3094. OptionalBytesWrapper = value;
  3095. }
  3096. break;
  3097. }
  3098. case 1690: {
  3099. repeatedBoolWrapper_.AddEntriesFrom(input, _repeated_repeatedBoolWrapper_codec);
  3100. break;
  3101. }
  3102. case 1698: {
  3103. repeatedInt32Wrapper_.AddEntriesFrom(input, _repeated_repeatedInt32Wrapper_codec);
  3104. break;
  3105. }
  3106. case 1706: {
  3107. repeatedInt64Wrapper_.AddEntriesFrom(input, _repeated_repeatedInt64Wrapper_codec);
  3108. break;
  3109. }
  3110. case 1714: {
  3111. repeatedUint32Wrapper_.AddEntriesFrom(input, _repeated_repeatedUint32Wrapper_codec);
  3112. break;
  3113. }
  3114. case 1722: {
  3115. repeatedUint64Wrapper_.AddEntriesFrom(input, _repeated_repeatedUint64Wrapper_codec);
  3116. break;
  3117. }
  3118. case 1730: {
  3119. repeatedFloatWrapper_.AddEntriesFrom(input, _repeated_repeatedFloatWrapper_codec);
  3120. break;
  3121. }
  3122. case 1738: {
  3123. repeatedDoubleWrapper_.AddEntriesFrom(input, _repeated_repeatedDoubleWrapper_codec);
  3124. break;
  3125. }
  3126. case 1746: {
  3127. repeatedStringWrapper_.AddEntriesFrom(input, _repeated_repeatedStringWrapper_codec);
  3128. break;
  3129. }
  3130. case 1754: {
  3131. repeatedBytesWrapper_.AddEntriesFrom(input, _repeated_repeatedBytesWrapper_codec);
  3132. break;
  3133. }
  3134. case 2410: {
  3135. if (optionalDuration_ == null) {
  3136. OptionalDuration = new global::Google.Protobuf.WellKnownTypes.Duration();
  3137. }
  3138. input.ReadMessage(OptionalDuration);
  3139. break;
  3140. }
  3141. case 2418: {
  3142. if (optionalTimestamp_ == null) {
  3143. OptionalTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  3144. }
  3145. input.ReadMessage(OptionalTimestamp);
  3146. break;
  3147. }
  3148. case 2426: {
  3149. if (optionalFieldMask_ == null) {
  3150. OptionalFieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  3151. }
  3152. input.ReadMessage(OptionalFieldMask);
  3153. break;
  3154. }
  3155. case 2434: {
  3156. if (optionalStruct_ == null) {
  3157. OptionalStruct = new global::Google.Protobuf.WellKnownTypes.Struct();
  3158. }
  3159. input.ReadMessage(OptionalStruct);
  3160. break;
  3161. }
  3162. case 2442: {
  3163. if (optionalAny_ == null) {
  3164. OptionalAny = new global::Google.Protobuf.WellKnownTypes.Any();
  3165. }
  3166. input.ReadMessage(OptionalAny);
  3167. break;
  3168. }
  3169. case 2450: {
  3170. if (optionalValue_ == null) {
  3171. OptionalValue = new global::Google.Protobuf.WellKnownTypes.Value();
  3172. }
  3173. input.ReadMessage(OptionalValue);
  3174. break;
  3175. }
  3176. case 2490: {
  3177. repeatedDuration_.AddEntriesFrom(input, _repeated_repeatedDuration_codec);
  3178. break;
  3179. }
  3180. case 2498: {
  3181. repeatedTimestamp_.AddEntriesFrom(input, _repeated_repeatedTimestamp_codec);
  3182. break;
  3183. }
  3184. case 2506: {
  3185. repeatedFieldmask_.AddEntriesFrom(input, _repeated_repeatedFieldmask_codec);
  3186. break;
  3187. }
  3188. case 2522: {
  3189. repeatedAny_.AddEntriesFrom(input, _repeated_repeatedAny_codec);
  3190. break;
  3191. }
  3192. case 2530: {
  3193. repeatedValue_.AddEntriesFrom(input, _repeated_repeatedValue_codec);
  3194. break;
  3195. }
  3196. case 2594: {
  3197. repeatedStruct_.AddEntriesFrom(input, _repeated_repeatedStruct_codec);
  3198. break;
  3199. }
  3200. case 3208: {
  3201. Fieldname1 = input.ReadInt32();
  3202. break;
  3203. }
  3204. case 3216: {
  3205. FieldName2 = input.ReadInt32();
  3206. break;
  3207. }
  3208. case 3224: {
  3209. FieldName3 = input.ReadInt32();
  3210. break;
  3211. }
  3212. case 3232: {
  3213. FieldName4 = input.ReadInt32();
  3214. break;
  3215. }
  3216. case 3240: {
  3217. Field0Name5 = input.ReadInt32();
  3218. break;
  3219. }
  3220. case 3248: {
  3221. Field0Name6 = input.ReadInt32();
  3222. break;
  3223. }
  3224. case 3256: {
  3225. FieldName7 = input.ReadInt32();
  3226. break;
  3227. }
  3228. case 3264: {
  3229. FieldName8 = input.ReadInt32();
  3230. break;
  3231. }
  3232. case 3272: {
  3233. FieldName9 = input.ReadInt32();
  3234. break;
  3235. }
  3236. case 3280: {
  3237. FieldName10 = input.ReadInt32();
  3238. break;
  3239. }
  3240. case 3288: {
  3241. FIELDNAME11 = input.ReadInt32();
  3242. break;
  3243. }
  3244. case 3296: {
  3245. FIELDName12 = input.ReadInt32();
  3246. break;
  3247. }
  3248. case 3304: {
  3249. FieldName13 = input.ReadInt32();
  3250. break;
  3251. }
  3252. case 3312: {
  3253. FieldName14 = input.ReadInt32();
  3254. break;
  3255. }
  3256. case 3320: {
  3257. FieldName15 = input.ReadInt32();
  3258. break;
  3259. }
  3260. case 3328: {
  3261. FieldName16 = input.ReadInt32();
  3262. break;
  3263. }
  3264. case 3336: {
  3265. FieldName17 = input.ReadInt32();
  3266. break;
  3267. }
  3268. case 3344: {
  3269. FieldName18 = input.ReadInt32();
  3270. break;
  3271. }
  3272. }
  3273. }
  3274. }
  3275. #region Nested types
  3276. /// <summary>Container for nested types declared in the TestAllTypesProto3 message type.</summary>
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3278. public static partial class Types {
  3279. public enum NestedEnum {
  3280. [pbr::OriginalName("FOO")] Foo = 0,
  3281. [pbr::OriginalName("BAR")] Bar = 1,
  3282. [pbr::OriginalName("BAZ")] Baz = 2,
  3283. /// <summary>
  3284. /// Intentionally negative.
  3285. /// </summary>
  3286. [pbr::OriginalName("NEG")] Neg = -1,
  3287. }
  3288. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  3289. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3290. private pb::UnknownFieldSet _unknownFields;
  3291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3292. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3294. public static pbr::MessageDescriptor Descriptor {
  3295. get { return global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Descriptor.NestedTypes[0]; }
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3298. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3299. get { return Descriptor; }
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3302. public NestedMessage() {
  3303. OnConstruction();
  3304. }
  3305. partial void OnConstruction();
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3307. public NestedMessage(NestedMessage other) : this() {
  3308. a_ = other.a_;
  3309. corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
  3310. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3313. public NestedMessage Clone() {
  3314. return new NestedMessage(this);
  3315. }
  3316. /// <summary>Field number for the "a" field.</summary>
  3317. public const int AFieldNumber = 1;
  3318. private int a_;
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3320. public int A {
  3321. get { return a_; }
  3322. set {
  3323. a_ = value;
  3324. }
  3325. }
  3326. /// <summary>Field number for the "corecursive" field.</summary>
  3327. public const int CorecursiveFieldNumber = 2;
  3328. private global::ProtobufTestMessages.Proto3.TestAllTypesProto3 corecursive_;
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3330. public global::ProtobufTestMessages.Proto3.TestAllTypesProto3 Corecursive {
  3331. get { return corecursive_; }
  3332. set {
  3333. corecursive_ = value;
  3334. }
  3335. }
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3337. public override bool Equals(object other) {
  3338. return Equals(other as NestedMessage);
  3339. }
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3341. public bool Equals(NestedMessage other) {
  3342. if (ReferenceEquals(other, null)) {
  3343. return false;
  3344. }
  3345. if (ReferenceEquals(other, this)) {
  3346. return true;
  3347. }
  3348. if (A != other.A) return false;
  3349. if (!object.Equals(Corecursive, other.Corecursive)) return false;
  3350. return Equals(_unknownFields, other._unknownFields);
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3353. public override int GetHashCode() {
  3354. int hash = 1;
  3355. if (A != 0) hash ^= A.GetHashCode();
  3356. if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
  3357. if (_unknownFields != null) {
  3358. hash ^= _unknownFields.GetHashCode();
  3359. }
  3360. return hash;
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3363. public override string ToString() {
  3364. return pb::JsonFormatter.ToDiagnosticString(this);
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3367. public void WriteTo(pb::CodedOutputStream output) {
  3368. if (A != 0) {
  3369. output.WriteRawTag(8);
  3370. output.WriteInt32(A);
  3371. }
  3372. if (corecursive_ != null) {
  3373. output.WriteRawTag(18);
  3374. output.WriteMessage(Corecursive);
  3375. }
  3376. if (_unknownFields != null) {
  3377. _unknownFields.WriteTo(output);
  3378. }
  3379. }
  3380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3381. public int CalculateSize() {
  3382. int size = 0;
  3383. if (A != 0) {
  3384. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  3385. }
  3386. if (corecursive_ != null) {
  3387. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
  3388. }
  3389. if (_unknownFields != null) {
  3390. size += _unknownFields.CalculateSize();
  3391. }
  3392. return size;
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3395. public void MergeFrom(NestedMessage other) {
  3396. if (other == null) {
  3397. return;
  3398. }
  3399. if (other.A != 0) {
  3400. A = other.A;
  3401. }
  3402. if (other.corecursive_ != null) {
  3403. if (corecursive_ == null) {
  3404. Corecursive = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
  3405. }
  3406. Corecursive.MergeFrom(other.Corecursive);
  3407. }
  3408. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3411. public void MergeFrom(pb::CodedInputStream input) {
  3412. uint tag;
  3413. while ((tag = input.ReadTag()) != 0) {
  3414. switch(tag) {
  3415. default:
  3416. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  3417. return;
  3418. }
  3419. break;
  3420. case 8: {
  3421. A = input.ReadInt32();
  3422. break;
  3423. }
  3424. case 18: {
  3425. if (corecursive_ == null) {
  3426. Corecursive = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
  3427. }
  3428. input.ReadMessage(Corecursive);
  3429. break;
  3430. }
  3431. }
  3432. }
  3433. }
  3434. }
  3435. }
  3436. #endregion
  3437. }
  3438. public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
  3439. private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
  3440. private pb::UnknownFieldSet _unknownFields;
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3442. public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3444. public static pbr::MessageDescriptor Descriptor {
  3445. get { return global::ProtobufTestMessages.Proto3.TestMessagesProto3Reflection.Descriptor.MessageTypes[1]; }
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3448. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3449. get { return Descriptor; }
  3450. }
  3451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3452. public ForeignMessage() {
  3453. OnConstruction();
  3454. }
  3455. partial void OnConstruction();
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3457. public ForeignMessage(ForeignMessage other) : this() {
  3458. c_ = other.c_;
  3459. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3460. }
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3462. public ForeignMessage Clone() {
  3463. return new ForeignMessage(this);
  3464. }
  3465. /// <summary>Field number for the "c" field.</summary>
  3466. public const int CFieldNumber = 1;
  3467. private int c_;
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3469. public int C {
  3470. get { return c_; }
  3471. set {
  3472. c_ = value;
  3473. }
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3476. public override bool Equals(object other) {
  3477. return Equals(other as ForeignMessage);
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3480. public bool Equals(ForeignMessage other) {
  3481. if (ReferenceEquals(other, null)) {
  3482. return false;
  3483. }
  3484. if (ReferenceEquals(other, this)) {
  3485. return true;
  3486. }
  3487. if (C != other.C) return false;
  3488. return Equals(_unknownFields, other._unknownFields);
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3491. public override int GetHashCode() {
  3492. int hash = 1;
  3493. if (C != 0) hash ^= C.GetHashCode();
  3494. if (_unknownFields != null) {
  3495. hash ^= _unknownFields.GetHashCode();
  3496. }
  3497. return hash;
  3498. }
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3500. public override string ToString() {
  3501. return pb::JsonFormatter.ToDiagnosticString(this);
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3504. public void WriteTo(pb::CodedOutputStream output) {
  3505. if (C != 0) {
  3506. output.WriteRawTag(8);
  3507. output.WriteInt32(C);
  3508. }
  3509. if (_unknownFields != null) {
  3510. _unknownFields.WriteTo(output);
  3511. }
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3514. public int CalculateSize() {
  3515. int size = 0;
  3516. if (C != 0) {
  3517. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  3518. }
  3519. if (_unknownFields != null) {
  3520. size += _unknownFields.CalculateSize();
  3521. }
  3522. return size;
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3525. public void MergeFrom(ForeignMessage other) {
  3526. if (other == null) {
  3527. return;
  3528. }
  3529. if (other.C != 0) {
  3530. C = other.C;
  3531. }
  3532. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3533. }
  3534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3535. public void MergeFrom(pb::CodedInputStream input) {
  3536. uint tag;
  3537. while ((tag = input.ReadTag()) != 0) {
  3538. switch(tag) {
  3539. default:
  3540. if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) {
  3541. return;
  3542. }
  3543. break;
  3544. case 8: {
  3545. C = input.ReadInt32();
  3546. break;
  3547. }
  3548. }
  3549. }
  3550. }
  3551. }
  3552. #endregion
  3553. }
  3554. #endregion Designer generated code