Conformance.cs 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: conformance.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Conformance {
  10. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. public static partial class Conformance {
  12. #region Descriptor
  13. public static pbr::FileDescriptor Descriptor {
  14. get { return descriptor; }
  15. }
  16. private static pbr::FileDescriptor descriptor;
  17. static Conformance() {
  18. byte[] descriptorData = global::System.Convert.FromBase64String(
  19. string.Concat(
  20. "ChFjb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2UijQEKEkNvbmZvcm1h",
  21. "bmNlUmVxdWVzdBIaChBwcm90b2J1Zl9wYXlsb2FkGAEgASgMSAASFgoManNv",
  22. "bl9wYXlsb2FkGAIgASgJSAASOAoXcmVxdWVzdGVkX291dHB1dF9mb3JtYXQY",
  23. "AyABKA4yFy5jb25mb3JtYW5jZS5XaXJlRm9ybWF0QgkKB3BheWxvYWQilgEK",
  24. "E0NvbmZvcm1hbmNlUmVzcG9uc2USFQoLcGFyc2VfZXJyb3IYASABKAlIABIX",
  25. "Cg1ydW50aW1lX2Vycm9yGAIgASgJSAASGgoQcHJvdG9idWZfcGF5bG9hZBgD",
  26. "IAEoDEgAEhYKDGpzb25fcGF5bG9hZBgEIAEoCUgAEhEKB3NraXBwZWQYBSAB",
  27. "KAlIAEIICgZyZXN1bHQi6yIKDFRlc3RBbGxUeXBlcxIWCg5vcHRpb25hbF9p",
  28. "bnQzMhgBIAEoBRIWCg5vcHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9vcHRpb25h",
  29. "bF91aW50MzIYAyABKA0SFwoPb3B0aW9uYWxfdWludDY0GAQgASgEEhcKD29w",
  30. "dGlvbmFsX3NpbnQzMhgFIAEoERIXCg9vcHRpb25hbF9zaW50NjQYBiABKBIS",
  31. "GAoQb3B0aW9uYWxfZml4ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9maXhlZDY0",
  32. "GAggASgGEhkKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPEhkKEW9wdGlvbmFs",
  33. "X3NmaXhlZDY0GAogASgQEhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgCEhcKD29w",
  34. "dGlvbmFsX2RvdWJsZRgMIAEoARIVCg1vcHRpb25hbF9ib29sGA0gASgIEhcK",
  35. "D29wdGlvbmFsX3N0cmluZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRlcxgPIAEo",
  36. "DBJIChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRgSIAEoCzInLmNvbmZvcm1h",
  37. "bmNlLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEj0KGG9wdGlvbmFsX2Zv",
  38. "cmVpZ25fbWVzc2FnZRgTIAEoCzIbLmNvbmZvcm1hbmNlLkZvcmVpZ25NZXNz",
  39. "YWdlEkIKFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUgASgOMiQuY29uZm9ybWFu",
  40. "Y2UuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SNwoVb3B0aW9uYWxfZm9yZWln",
  41. "bl9lbnVtGBYgASgOMhguY29uZm9ybWFuY2UuRm9yZWlnbkVudW0SIQoVb3B0",
  42. "aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJQgIIAhIZCg1vcHRpb25hbF9jb3Jk",
  43. "GBkgASgJQgIIARI0ChFyZWN1cnNpdmVfbWVzc2FnZRgbIAEoCzIZLmNvbmZv",
  44. "cm1hbmNlLlRlc3RBbGxUeXBlcxIWCg5yZXBlYXRlZF9pbnQzMhgfIAMoBRIW",
  45. "Cg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBlYXRlZF91aW50MzIYISAD",
  46. "KA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcKD3JlcGVhdGVkX3NpbnQz",
  47. "MhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCADKBISGAoQcmVwZWF0ZWRf",
  48. "Zml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhlZDY0GCYgAygGEhkKEXJl",
  49. "cGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVhdGVkX3NmaXhlZDY0GCgg",
  50. "AygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcKD3JlcGVhdGVkX2RvdWJs",
  51. "ZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygIEhcKD3JlcGVhdGVkX3N0",
  52. "cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgtIAMoDBJIChdyZXBlYXRl",
  53. "ZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzInLmNvbmZvcm1hbmNlLlRlc3RBbGxU",
  54. "eXBlcy5OZXN0ZWRNZXNzYWdlEj0KGHJlcGVhdGVkX2ZvcmVpZ25fbWVzc2Fn",
  55. "ZRgxIAMoCzIbLmNvbmZvcm1hbmNlLkZvcmVpZ25NZXNzYWdlEkIKFHJlcGVh",
  56. "dGVkX25lc3RlZF9lbnVtGDMgAygOMiQuY29uZm9ybWFuY2UuVGVzdEFsbFR5",
  57. "cGVzLk5lc3RlZEVudW0SNwoVcmVwZWF0ZWRfZm9yZWlnbl9lbnVtGDQgAygO",
  58. "MhguY29uZm9ybWFuY2UuRm9yZWlnbkVudW0SIQoVcmVwZWF0ZWRfc3RyaW5n",
  59. "X3BpZWNlGDYgAygJQgIIAhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJF",
  60. "Cg9tYXBfaW50MzJfaW50MzIYOCADKAsyLC5jb25mb3JtYW5jZS5UZXN0QWxs",
  61. "VHlwZXMuTWFwSW50MzJJbnQzMkVudHJ5EkUKD21hcF9pbnQ2NF9pbnQ2NBg5",
  62. "IAMoCzIsLmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBJbnQ2NEludDY0",
  63. "RW50cnkSSQoRbWFwX3VpbnQzMl91aW50MzIYOiADKAsyLi5jb25mb3JtYW5j",
  64. "ZS5UZXN0QWxsVHlwZXMuTWFwVWludDMyVWludDMyRW50cnkSSQoRbWFwX3Vp",
  65. "bnQ2NF91aW50NjQYOyADKAsyLi5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMu",
  66. "TWFwVWludDY0VWludDY0RW50cnkSSQoRbWFwX3NpbnQzMl9zaW50MzIYPCAD",
  67. "KAsyLi5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwU2ludDMyU2ludDMy",
  68. "RW50cnkSSQoRbWFwX3NpbnQ2NF9zaW50NjQYPSADKAsyLi5jb25mb3JtYW5j",
  69. "ZS5UZXN0QWxsVHlwZXMuTWFwU2ludDY0U2ludDY0RW50cnkSTQoTbWFwX2Zp",
  70. "eGVkMzJfZml4ZWQzMhg+IAMoCzIwLmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBl",
  71. "cy5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5Ek0KE21hcF9maXhlZDY0X2ZpeGVk",
  72. "NjQYPyADKAsyMC5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwRml4ZWQ2",
  73. "NEZpeGVkNjRFbnRyeRJRChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYQCADKAsy",
  74. "Mi5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwU2ZpeGVkMzJTZml4ZWQz",
  75. "MkVudHJ5ElEKFW1hcF9zZml4ZWQ2NF9zZml4ZWQ2NBhBIAMoCzIyLmNvbmZv",
  76. "cm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkS",
  77. "RQoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMiwuY29uZm9ybWFuY2UuVGVzdEFs",
  78. "bFR5cGVzLk1hcEludDMyRmxvYXRFbnRyeRJHChBtYXBfaW50MzJfZG91Ymxl",
  79. "GEMgAygLMi0uY29uZm9ybWFuY2UuVGVzdEFsbFR5cGVzLk1hcEludDMyRG91",
  80. "YmxlRW50cnkSQQoNbWFwX2Jvb2xfYm9vbBhEIAMoCzIqLmNvbmZvcm1hbmNl",
  81. "LlRlc3RBbGxUeXBlcy5NYXBCb29sQm9vbEVudHJ5EkkKEW1hcF9zdHJpbmdf",
  82. "c3RyaW5nGEUgAygLMi4uY29uZm9ybWFuY2UuVGVzdEFsbFR5cGVzLk1hcFN0",
  83. "cmluZ1N0cmluZ0VudHJ5EkcKEG1hcF9zdHJpbmdfYnl0ZXMYRiADKAsyLS5j",
  84. "b25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwU3RyaW5nQnl0ZXNFbnRyeRJY",
  85. "ChltYXBfc3RyaW5nX25lc3RlZF9tZXNzYWdlGEcgAygLMjUuY29uZm9ybWFu",
  86. "Y2UuVGVzdEFsbFR5cGVzLk1hcFN0cmluZ05lc3RlZE1lc3NhZ2VFbnRyeRJa",
  87. "ChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVzc2FnZRhIIAMoCzI2LmNvbmZvcm1h",
  88. "bmNlLlRlc3RBbGxUeXBlcy5NYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5",
  89. "ElIKFm1hcF9zdHJpbmdfbmVzdGVkX2VudW0YSSADKAsyMi5jb25mb3JtYW5j",
  90. "ZS5UZXN0QWxsVHlwZXMuTWFwU3RyaW5nTmVzdGVkRW51bUVudHJ5ElQKF21h",
  91. "cF9zdHJpbmdfZm9yZWlnbl9lbnVtGEogAygLMjMuY29uZm9ybWFuY2UuVGVz",
  92. "dEFsbFR5cGVzLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSFgoMb25lb2Zf",
  93. "dWludDMyGG8gASgNSAASRwoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsy",
  94. "Jy5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUgAEhYK",
  95. "DG9uZW9mX3N0cmluZxhxIAEoCUgAEhUKC29uZW9mX2J5dGVzGHIgASgMSAAa",
  96. "SgoNTmVzdGVkTWVzc2FnZRIJCgFhGAEgASgFEi4KC2NvcmVjdXJzaXZlGAIg",
  97. "ASgLMhkuY29uZm9ybWFuY2UuVGVzdEFsbFR5cGVzGjQKEk1hcEludDMySW50",
  98. "MzJFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBGjQKEk1h",
  99. "cEludDY0SW50NjRFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAM6",
  100. "AjgBGjYKFE1hcFVpbnQzMlVpbnQzMkVudHJ5EgsKA2tleRgBIAEoDRINCgV2",
  101. "YWx1ZRgCIAEoDToCOAEaNgoUTWFwVWludDY0VWludDY0RW50cnkSCwoDa2V5",
  102. "GAEgASgEEg0KBXZhbHVlGAIgASgEOgI4ARo2ChRNYXBTaW50MzJTaW50MzJF",
  103. "bnRyeRILCgNrZXkYASABKBESDQoFdmFsdWUYAiABKBE6AjgBGjYKFE1hcFNp",
  104. "bnQ2NFNpbnQ2NEVudHJ5EgsKA2tleRgBIAEoEhINCgV2YWx1ZRgCIAEoEjoC",
  105. "OAEaOAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRyeRILCgNrZXkYASABKAcSDQoF",
  106. "dmFsdWUYAiABKAc6AjgBGjgKFk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSCwoD",
  107. "a2V5GAEgASgGEg0KBXZhbHVlGAIgASgGOgI4ARo6ChhNYXBTZml4ZWQzMlNm",
  108. "aXhlZDMyRW50cnkSCwoDa2V5GAEgASgPEg0KBXZhbHVlGAIgASgPOgI4ARo6",
  109. "ChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSCwoDa2V5GAEgASgQEg0KBXZh",
  110. "bHVlGAIgASgQOgI4ARo0ChJNYXBJbnQzMkZsb2F0RW50cnkSCwoDa2V5GAEg",
  111. "ASgFEg0KBXZhbHVlGAIgASgCOgI4ARo1ChNNYXBJbnQzMkRvdWJsZUVudHJ5",
  112. "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoAToCOAEaMgoQTWFwQm9vbEJv",
  113. "b2xFbnRyeRILCgNrZXkYASABKAgSDQoFdmFsdWUYAiABKAg6AjgBGjYKFE1h",
  114. "cFN0cmluZ1N0cmluZ0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo",
  115. "CToCOAEaNQoTTWFwU3RyaW5nQnl0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoF",
  116. "dmFsdWUYAiABKAw6AjgBGmYKG01hcFN0cmluZ05lc3RlZE1lc3NhZ2VFbnRy",
  117. "eRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiABKAsyJy5jb25mb3JtYW5jZS5U",
  118. "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZToCOAEaWwocTWFwU3RyaW5nRm9y",
  119. "ZWlnbk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAkSKgoFdmFsdWUYAiABKAsy",
  120. "Gy5jb25mb3JtYW5jZS5Gb3JlaWduTWVzc2FnZToCOAEaYAoYTWFwU3RyaW5n",
  121. "TmVzdGVkRW51bUVudHJ5EgsKA2tleRgBIAEoCRIzCgV2YWx1ZRgCIAEoDjIk",
  122. "LmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOgI4ARpVChlN",
  123. "YXBTdHJpbmdGb3JlaWduRW51bUVudHJ5EgsKA2tleRgBIAEoCRInCgV2YWx1",
  124. "ZRgCIAEoDjIYLmNvbmZvcm1hbmNlLkZvcmVpZ25FbnVtOgI4ASI5CgpOZXN0",
  125. "ZWRFbnVtEgcKA0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD/////",
  126. "//////8BQg0KC29uZW9mX2ZpZWxkIhsKDkZvcmVpZ25NZXNzYWdlEgkKAWMY",
  127. "ASABKAUqNQoKV2lyZUZvcm1hdBIPCgtVTlNQRUNJRklFRBAAEgwKCFBST1RP",
  128. "QlVGEAESCAoESlNPThACKkAKC0ZvcmVpZ25FbnVtEg8KC0ZPUkVJR05fRk9P",
  129. "EAASDwoLRk9SRUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhACQiEKH2NvbS5n",
  130. "b29nbGUucHJvdG9idWYuY29uZm9ybWFuY2ViBnByb3RvMw=="));
  131. descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  132. new pbr::FileDescriptor[] { },
  133. new pbr::GeneratedCodeInfo(new[] {typeof(global::Conformance.WireFormat), typeof(global::Conformance.ForeignEnum), }, new pbr::GeneratedCodeInfo[] {
  134. new pbr::GeneratedCodeInfo(typeof(global::Conformance.ConformanceRequest), new[]{ "ProtobufPayload", "JsonPayload", "RequestedOutputFormat" }, new[]{ "Payload" }, null, null),
  135. new pbr::GeneratedCodeInfo(typeof(global::Conformance.ConformanceResponse), new[]{ "ParseError", "RuntimeError", "ProtobufPayload", "JsonPayload", "Skipped" }, new[]{ "Result" }, null, null),
  136. new pbr::GeneratedCodeInfo(typeof(global::Conformance.TestAllTypes), 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" }, new[]{ "OneofField" }, new[]{ typeof(global::Conformance.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Conformance.TestAllTypes.Types.NestedMessage), new[]{ "A", "Corecursive" }, null, null, null),
  137. null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  138. new pbr::GeneratedCodeInfo(typeof(global::Conformance.ForeignMessage), new[]{ "C" }, null, null, null)
  139. }));
  140. }
  141. #endregion
  142. }
  143. #region Enums
  144. public enum WireFormat {
  145. UNSPECIFIED = 0,
  146. PROTOBUF = 1,
  147. JSON = 2,
  148. }
  149. public enum ForeignEnum {
  150. FOREIGN_FOO = 0,
  151. FOREIGN_BAR = 1,
  152. FOREIGN_BAZ = 2,
  153. }
  154. #endregion
  155. #region Messages
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. public sealed partial class ConformanceRequest : pb::IMessage<ConformanceRequest> {
  158. private static readonly pb::MessageParser<ConformanceRequest> _parser = new pb::MessageParser<ConformanceRequest>(() => new ConformanceRequest());
  159. public static pb::MessageParser<ConformanceRequest> Parser { get { return _parser; } }
  160. public static pbr::MessageDescriptor Descriptor {
  161. get { return global::Conformance.Conformance.Descriptor.MessageTypes[0]; }
  162. }
  163. pbr::MessageDescriptor pb::IMessage.Descriptor {
  164. get { return Descriptor; }
  165. }
  166. public ConformanceRequest() {
  167. OnConstruction();
  168. }
  169. partial void OnConstruction();
  170. public ConformanceRequest(ConformanceRequest other) : this() {
  171. requestedOutputFormat_ = other.requestedOutputFormat_;
  172. switch (other.PayloadCase) {
  173. case PayloadOneofCase.ProtobufPayload:
  174. ProtobufPayload = other.ProtobufPayload;
  175. break;
  176. case PayloadOneofCase.JsonPayload:
  177. JsonPayload = other.JsonPayload;
  178. break;
  179. }
  180. }
  181. public ConformanceRequest Clone() {
  182. return new ConformanceRequest(this);
  183. }
  184. public const int ProtobufPayloadFieldNumber = 1;
  185. public pb::ByteString ProtobufPayload {
  186. get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
  187. set {
  188. payload_ = pb::Preconditions.CheckNotNull(value, "value");
  189. payloadCase_ = PayloadOneofCase.ProtobufPayload;
  190. }
  191. }
  192. public const int JsonPayloadFieldNumber = 2;
  193. public string JsonPayload {
  194. get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
  195. set {
  196. payload_ = pb::Preconditions.CheckNotNull(value, "value");
  197. payloadCase_ = PayloadOneofCase.JsonPayload;
  198. }
  199. }
  200. public const int RequestedOutputFormatFieldNumber = 3;
  201. private global::Conformance.WireFormat requestedOutputFormat_ = global::Conformance.WireFormat.UNSPECIFIED;
  202. public global::Conformance.WireFormat RequestedOutputFormat {
  203. get { return requestedOutputFormat_; }
  204. set {
  205. requestedOutputFormat_ = value;
  206. }
  207. }
  208. private object payload_;
  209. public enum PayloadOneofCase {
  210. None = 0,
  211. ProtobufPayload = 1,
  212. JsonPayload = 2,
  213. }
  214. private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
  215. public PayloadOneofCase PayloadCase {
  216. get { return payloadCase_; }
  217. }
  218. public void ClearPayload() {
  219. payloadCase_ = PayloadOneofCase.None;
  220. payload_ = null;
  221. }
  222. public override bool Equals(object other) {
  223. return Equals(other as ConformanceRequest);
  224. }
  225. public bool Equals(ConformanceRequest other) {
  226. if (ReferenceEquals(other, null)) {
  227. return false;
  228. }
  229. if (ReferenceEquals(other, this)) {
  230. return true;
  231. }
  232. if (ProtobufPayload != other.ProtobufPayload) return false;
  233. if (JsonPayload != other.JsonPayload) return false;
  234. if (RequestedOutputFormat != other.RequestedOutputFormat) return false;
  235. return true;
  236. }
  237. public override int GetHashCode() {
  238. int hash = 1;
  239. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
  240. if (payloadCase_ == PayloadOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
  241. if (RequestedOutputFormat != global::Conformance.WireFormat.UNSPECIFIED) hash ^= RequestedOutputFormat.GetHashCode();
  242. return hash;
  243. }
  244. public override string ToString() {
  245. return pb::JsonFormatter.Default.Format(this);
  246. }
  247. public void WriteTo(pb::CodedOutputStream output) {
  248. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
  249. output.WriteRawTag(10);
  250. output.WriteBytes(ProtobufPayload);
  251. }
  252. if (payloadCase_ == PayloadOneofCase.JsonPayload) {
  253. output.WriteRawTag(18);
  254. output.WriteString(JsonPayload);
  255. }
  256. if (RequestedOutputFormat != global::Conformance.WireFormat.UNSPECIFIED) {
  257. output.WriteRawTag(24);
  258. output.WriteEnum((int) RequestedOutputFormat);
  259. }
  260. }
  261. public int CalculateSize() {
  262. int size = 0;
  263. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
  264. size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
  265. }
  266. if (payloadCase_ == PayloadOneofCase.JsonPayload) {
  267. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
  268. }
  269. if (RequestedOutputFormat != global::Conformance.WireFormat.UNSPECIFIED) {
  270. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOutputFormat);
  271. }
  272. return size;
  273. }
  274. public void MergeFrom(ConformanceRequest other) {
  275. if (other == null) {
  276. return;
  277. }
  278. if (other.RequestedOutputFormat != global::Conformance.WireFormat.UNSPECIFIED) {
  279. RequestedOutputFormat = other.RequestedOutputFormat;
  280. }
  281. switch (other.PayloadCase) {
  282. case PayloadOneofCase.ProtobufPayload:
  283. ProtobufPayload = other.ProtobufPayload;
  284. break;
  285. case PayloadOneofCase.JsonPayload:
  286. JsonPayload = other.JsonPayload;
  287. break;
  288. }
  289. }
  290. public void MergeFrom(pb::CodedInputStream input) {
  291. uint tag;
  292. while ((tag = input.ReadTag()) != 0) {
  293. switch(tag) {
  294. default:
  295. input.SkipLastField();
  296. break;
  297. case 10: {
  298. ProtobufPayload = input.ReadBytes();
  299. break;
  300. }
  301. case 18: {
  302. JsonPayload = input.ReadString();
  303. break;
  304. }
  305. case 24: {
  306. requestedOutputFormat_ = (global::Conformance.WireFormat) input.ReadEnum();
  307. break;
  308. }
  309. }
  310. }
  311. }
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  314. public sealed partial class ConformanceResponse : pb::IMessage<ConformanceResponse> {
  315. private static readonly pb::MessageParser<ConformanceResponse> _parser = new pb::MessageParser<ConformanceResponse>(() => new ConformanceResponse());
  316. public static pb::MessageParser<ConformanceResponse> Parser { get { return _parser; } }
  317. public static pbr::MessageDescriptor Descriptor {
  318. get { return global::Conformance.Conformance.Descriptor.MessageTypes[1]; }
  319. }
  320. pbr::MessageDescriptor pb::IMessage.Descriptor {
  321. get { return Descriptor; }
  322. }
  323. public ConformanceResponse() {
  324. OnConstruction();
  325. }
  326. partial void OnConstruction();
  327. public ConformanceResponse(ConformanceResponse other) : this() {
  328. switch (other.ResultCase) {
  329. case ResultOneofCase.ParseError:
  330. ParseError = other.ParseError;
  331. break;
  332. case ResultOneofCase.RuntimeError:
  333. RuntimeError = other.RuntimeError;
  334. break;
  335. case ResultOneofCase.ProtobufPayload:
  336. ProtobufPayload = other.ProtobufPayload;
  337. break;
  338. case ResultOneofCase.JsonPayload:
  339. JsonPayload = other.JsonPayload;
  340. break;
  341. case ResultOneofCase.Skipped:
  342. Skipped = other.Skipped;
  343. break;
  344. }
  345. }
  346. public ConformanceResponse Clone() {
  347. return new ConformanceResponse(this);
  348. }
  349. public const int ParseErrorFieldNumber = 1;
  350. public string ParseError {
  351. get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
  352. set {
  353. result_ = pb::Preconditions.CheckNotNull(value, "value");
  354. resultCase_ = ResultOneofCase.ParseError;
  355. }
  356. }
  357. public const int RuntimeErrorFieldNumber = 2;
  358. public string RuntimeError {
  359. get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
  360. set {
  361. result_ = pb::Preconditions.CheckNotNull(value, "value");
  362. resultCase_ = ResultOneofCase.RuntimeError;
  363. }
  364. }
  365. public const int ProtobufPayloadFieldNumber = 3;
  366. public pb::ByteString ProtobufPayload {
  367. get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
  368. set {
  369. result_ = pb::Preconditions.CheckNotNull(value, "value");
  370. resultCase_ = ResultOneofCase.ProtobufPayload;
  371. }
  372. }
  373. public const int JsonPayloadFieldNumber = 4;
  374. public string JsonPayload {
  375. get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
  376. set {
  377. result_ = pb::Preconditions.CheckNotNull(value, "value");
  378. resultCase_ = ResultOneofCase.JsonPayload;
  379. }
  380. }
  381. public const int SkippedFieldNumber = 5;
  382. public string Skipped {
  383. get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
  384. set {
  385. result_ = pb::Preconditions.CheckNotNull(value, "value");
  386. resultCase_ = ResultOneofCase.Skipped;
  387. }
  388. }
  389. private object result_;
  390. public enum ResultOneofCase {
  391. None = 0,
  392. ParseError = 1,
  393. RuntimeError = 2,
  394. ProtobufPayload = 3,
  395. JsonPayload = 4,
  396. Skipped = 5,
  397. }
  398. private ResultOneofCase resultCase_ = ResultOneofCase.None;
  399. public ResultOneofCase ResultCase {
  400. get { return resultCase_; }
  401. }
  402. public void ClearResult() {
  403. resultCase_ = ResultOneofCase.None;
  404. result_ = null;
  405. }
  406. public override bool Equals(object other) {
  407. return Equals(other as ConformanceResponse);
  408. }
  409. public bool Equals(ConformanceResponse other) {
  410. if (ReferenceEquals(other, null)) {
  411. return false;
  412. }
  413. if (ReferenceEquals(other, this)) {
  414. return true;
  415. }
  416. if (ParseError != other.ParseError) return false;
  417. if (RuntimeError != other.RuntimeError) return false;
  418. if (ProtobufPayload != other.ProtobufPayload) return false;
  419. if (JsonPayload != other.JsonPayload) return false;
  420. if (Skipped != other.Skipped) return false;
  421. return true;
  422. }
  423. public override int GetHashCode() {
  424. int hash = 1;
  425. if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode();
  426. if (resultCase_ == ResultOneofCase.RuntimeError) hash ^= RuntimeError.GetHashCode();
  427. if (resultCase_ == ResultOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
  428. if (resultCase_ == ResultOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
  429. if (resultCase_ == ResultOneofCase.Skipped) hash ^= Skipped.GetHashCode();
  430. return hash;
  431. }
  432. public override string ToString() {
  433. return pb::JsonFormatter.Default.Format(this);
  434. }
  435. public void WriteTo(pb::CodedOutputStream output) {
  436. if (resultCase_ == ResultOneofCase.ParseError) {
  437. output.WriteRawTag(10);
  438. output.WriteString(ParseError);
  439. }
  440. if (resultCase_ == ResultOneofCase.RuntimeError) {
  441. output.WriteRawTag(18);
  442. output.WriteString(RuntimeError);
  443. }
  444. if (resultCase_ == ResultOneofCase.ProtobufPayload) {
  445. output.WriteRawTag(26);
  446. output.WriteBytes(ProtobufPayload);
  447. }
  448. if (resultCase_ == ResultOneofCase.JsonPayload) {
  449. output.WriteRawTag(34);
  450. output.WriteString(JsonPayload);
  451. }
  452. if (resultCase_ == ResultOneofCase.Skipped) {
  453. output.WriteRawTag(42);
  454. output.WriteString(Skipped);
  455. }
  456. }
  457. public int CalculateSize() {
  458. int size = 0;
  459. if (resultCase_ == ResultOneofCase.ParseError) {
  460. size += 1 + pb::CodedOutputStream.ComputeStringSize(ParseError);
  461. }
  462. if (resultCase_ == ResultOneofCase.RuntimeError) {
  463. size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeError);
  464. }
  465. if (resultCase_ == ResultOneofCase.ProtobufPayload) {
  466. size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
  467. }
  468. if (resultCase_ == ResultOneofCase.JsonPayload) {
  469. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
  470. }
  471. if (resultCase_ == ResultOneofCase.Skipped) {
  472. size += 1 + pb::CodedOutputStream.ComputeStringSize(Skipped);
  473. }
  474. return size;
  475. }
  476. public void MergeFrom(ConformanceResponse other) {
  477. if (other == null) {
  478. return;
  479. }
  480. switch (other.ResultCase) {
  481. case ResultOneofCase.ParseError:
  482. ParseError = other.ParseError;
  483. break;
  484. case ResultOneofCase.RuntimeError:
  485. RuntimeError = other.RuntimeError;
  486. break;
  487. case ResultOneofCase.ProtobufPayload:
  488. ProtobufPayload = other.ProtobufPayload;
  489. break;
  490. case ResultOneofCase.JsonPayload:
  491. JsonPayload = other.JsonPayload;
  492. break;
  493. case ResultOneofCase.Skipped:
  494. Skipped = other.Skipped;
  495. break;
  496. }
  497. }
  498. public void MergeFrom(pb::CodedInputStream input) {
  499. uint tag;
  500. while ((tag = input.ReadTag()) != 0) {
  501. switch(tag) {
  502. default:
  503. input.SkipLastField();
  504. break;
  505. case 10: {
  506. ParseError = input.ReadString();
  507. break;
  508. }
  509. case 18: {
  510. RuntimeError = input.ReadString();
  511. break;
  512. }
  513. case 26: {
  514. ProtobufPayload = input.ReadBytes();
  515. break;
  516. }
  517. case 34: {
  518. JsonPayload = input.ReadString();
  519. break;
  520. }
  521. case 42: {
  522. Skipped = input.ReadString();
  523. break;
  524. }
  525. }
  526. }
  527. }
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
  531. private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
  532. public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
  533. public static pbr::MessageDescriptor Descriptor {
  534. get { return global::Conformance.Conformance.Descriptor.MessageTypes[2]; }
  535. }
  536. pbr::MessageDescriptor pb::IMessage.Descriptor {
  537. get { return Descriptor; }
  538. }
  539. public TestAllTypes() {
  540. OnConstruction();
  541. }
  542. partial void OnConstruction();
  543. public TestAllTypes(TestAllTypes other) : this() {
  544. optionalInt32_ = other.optionalInt32_;
  545. optionalInt64_ = other.optionalInt64_;
  546. optionalUint32_ = other.optionalUint32_;
  547. optionalUint64_ = other.optionalUint64_;
  548. optionalSint32_ = other.optionalSint32_;
  549. optionalSint64_ = other.optionalSint64_;
  550. optionalFixed32_ = other.optionalFixed32_;
  551. optionalFixed64_ = other.optionalFixed64_;
  552. optionalSfixed32_ = other.optionalSfixed32_;
  553. optionalSfixed64_ = other.optionalSfixed64_;
  554. optionalFloat_ = other.optionalFloat_;
  555. optionalDouble_ = other.optionalDouble_;
  556. optionalBool_ = other.optionalBool_;
  557. optionalString_ = other.optionalString_;
  558. optionalBytes_ = other.optionalBytes_;
  559. OptionalNestedMessage = other.optionalNestedMessage_ != null ? other.OptionalNestedMessage.Clone() : null;
  560. OptionalForeignMessage = other.optionalForeignMessage_ != null ? other.OptionalForeignMessage.Clone() : null;
  561. optionalNestedEnum_ = other.optionalNestedEnum_;
  562. optionalForeignEnum_ = other.optionalForeignEnum_;
  563. optionalStringPiece_ = other.optionalStringPiece_;
  564. optionalCord_ = other.optionalCord_;
  565. RecursiveMessage = other.recursiveMessage_ != null ? other.RecursiveMessage.Clone() : null;
  566. repeatedInt32_ = other.repeatedInt32_.Clone();
  567. repeatedInt64_ = other.repeatedInt64_.Clone();
  568. repeatedUint32_ = other.repeatedUint32_.Clone();
  569. repeatedUint64_ = other.repeatedUint64_.Clone();
  570. repeatedSint32_ = other.repeatedSint32_.Clone();
  571. repeatedSint64_ = other.repeatedSint64_.Clone();
  572. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  573. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  574. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  575. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  576. repeatedFloat_ = other.repeatedFloat_.Clone();
  577. repeatedDouble_ = other.repeatedDouble_.Clone();
  578. repeatedBool_ = other.repeatedBool_.Clone();
  579. repeatedString_ = other.repeatedString_.Clone();
  580. repeatedBytes_ = other.repeatedBytes_.Clone();
  581. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  582. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  583. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  584. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  585. repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
  586. repeatedCord_ = other.repeatedCord_.Clone();
  587. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  588. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  589. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  590. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  591. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  592. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  593. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  594. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  595. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  596. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  597. mapInt32Float_ = other.mapInt32Float_.Clone();
  598. mapInt32Double_ = other.mapInt32Double_.Clone();
  599. mapBoolBool_ = other.mapBoolBool_.Clone();
  600. mapStringString_ = other.mapStringString_.Clone();
  601. mapStringBytes_ = other.mapStringBytes_.Clone();
  602. mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
  603. mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
  604. mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
  605. mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
  606. switch (other.OneofFieldCase) {
  607. case OneofFieldOneofCase.OneofUint32:
  608. OneofUint32 = other.OneofUint32;
  609. break;
  610. case OneofFieldOneofCase.OneofNestedMessage:
  611. OneofNestedMessage = other.OneofNestedMessage.Clone();
  612. break;
  613. case OneofFieldOneofCase.OneofString:
  614. OneofString = other.OneofString;
  615. break;
  616. case OneofFieldOneofCase.OneofBytes:
  617. OneofBytes = other.OneofBytes;
  618. break;
  619. }
  620. }
  621. public TestAllTypes Clone() {
  622. return new TestAllTypes(this);
  623. }
  624. public const int OptionalInt32FieldNumber = 1;
  625. private int optionalInt32_;
  626. public int OptionalInt32 {
  627. get { return optionalInt32_; }
  628. set {
  629. optionalInt32_ = value;
  630. }
  631. }
  632. public const int OptionalInt64FieldNumber = 2;
  633. private long optionalInt64_;
  634. public long OptionalInt64 {
  635. get { return optionalInt64_; }
  636. set {
  637. optionalInt64_ = value;
  638. }
  639. }
  640. public const int OptionalUint32FieldNumber = 3;
  641. private uint optionalUint32_;
  642. public uint OptionalUint32 {
  643. get { return optionalUint32_; }
  644. set {
  645. optionalUint32_ = value;
  646. }
  647. }
  648. public const int OptionalUint64FieldNumber = 4;
  649. private ulong optionalUint64_;
  650. public ulong OptionalUint64 {
  651. get { return optionalUint64_; }
  652. set {
  653. optionalUint64_ = value;
  654. }
  655. }
  656. public const int OptionalSint32FieldNumber = 5;
  657. private int optionalSint32_;
  658. public int OptionalSint32 {
  659. get { return optionalSint32_; }
  660. set {
  661. optionalSint32_ = value;
  662. }
  663. }
  664. public const int OptionalSint64FieldNumber = 6;
  665. private long optionalSint64_;
  666. public long OptionalSint64 {
  667. get { return optionalSint64_; }
  668. set {
  669. optionalSint64_ = value;
  670. }
  671. }
  672. public const int OptionalFixed32FieldNumber = 7;
  673. private uint optionalFixed32_;
  674. public uint OptionalFixed32 {
  675. get { return optionalFixed32_; }
  676. set {
  677. optionalFixed32_ = value;
  678. }
  679. }
  680. public const int OptionalFixed64FieldNumber = 8;
  681. private ulong optionalFixed64_;
  682. public ulong OptionalFixed64 {
  683. get { return optionalFixed64_; }
  684. set {
  685. optionalFixed64_ = value;
  686. }
  687. }
  688. public const int OptionalSfixed32FieldNumber = 9;
  689. private int optionalSfixed32_;
  690. public int OptionalSfixed32 {
  691. get { return optionalSfixed32_; }
  692. set {
  693. optionalSfixed32_ = value;
  694. }
  695. }
  696. public const int OptionalSfixed64FieldNumber = 10;
  697. private long optionalSfixed64_;
  698. public long OptionalSfixed64 {
  699. get { return optionalSfixed64_; }
  700. set {
  701. optionalSfixed64_ = value;
  702. }
  703. }
  704. public const int OptionalFloatFieldNumber = 11;
  705. private float optionalFloat_;
  706. public float OptionalFloat {
  707. get { return optionalFloat_; }
  708. set {
  709. optionalFloat_ = value;
  710. }
  711. }
  712. public const int OptionalDoubleFieldNumber = 12;
  713. private double optionalDouble_;
  714. public double OptionalDouble {
  715. get { return optionalDouble_; }
  716. set {
  717. optionalDouble_ = value;
  718. }
  719. }
  720. public const int OptionalBoolFieldNumber = 13;
  721. private bool optionalBool_;
  722. public bool OptionalBool {
  723. get { return optionalBool_; }
  724. set {
  725. optionalBool_ = value;
  726. }
  727. }
  728. public const int OptionalStringFieldNumber = 14;
  729. private string optionalString_ = "";
  730. public string OptionalString {
  731. get { return optionalString_; }
  732. set {
  733. optionalString_ = pb::Preconditions.CheckNotNull(value, "value");
  734. }
  735. }
  736. public const int OptionalBytesFieldNumber = 15;
  737. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  738. public pb::ByteString OptionalBytes {
  739. get { return optionalBytes_; }
  740. set {
  741. optionalBytes_ = pb::Preconditions.CheckNotNull(value, "value");
  742. }
  743. }
  744. public const int OptionalNestedMessageFieldNumber = 18;
  745. private global::Conformance.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
  746. public global::Conformance.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  747. get { return optionalNestedMessage_; }
  748. set {
  749. optionalNestedMessage_ = value;
  750. }
  751. }
  752. public const int OptionalForeignMessageFieldNumber = 19;
  753. private global::Conformance.ForeignMessage optionalForeignMessage_;
  754. public global::Conformance.ForeignMessage OptionalForeignMessage {
  755. get { return optionalForeignMessage_; }
  756. set {
  757. optionalForeignMessage_ = value;
  758. }
  759. }
  760. public const int OptionalNestedEnumFieldNumber = 21;
  761. private global::Conformance.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Conformance.TestAllTypes.Types.NestedEnum.FOO;
  762. public global::Conformance.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  763. get { return optionalNestedEnum_; }
  764. set {
  765. optionalNestedEnum_ = value;
  766. }
  767. }
  768. public const int OptionalForeignEnumFieldNumber = 22;
  769. private global::Conformance.ForeignEnum optionalForeignEnum_ = global::Conformance.ForeignEnum.FOREIGN_FOO;
  770. public global::Conformance.ForeignEnum OptionalForeignEnum {
  771. get { return optionalForeignEnum_; }
  772. set {
  773. optionalForeignEnum_ = value;
  774. }
  775. }
  776. public const int OptionalStringPieceFieldNumber = 24;
  777. private string optionalStringPiece_ = "";
  778. public string OptionalStringPiece {
  779. get { return optionalStringPiece_; }
  780. set {
  781. optionalStringPiece_ = pb::Preconditions.CheckNotNull(value, "value");
  782. }
  783. }
  784. public const int OptionalCordFieldNumber = 25;
  785. private string optionalCord_ = "";
  786. public string OptionalCord {
  787. get { return optionalCord_; }
  788. set {
  789. optionalCord_ = pb::Preconditions.CheckNotNull(value, "value");
  790. }
  791. }
  792. public const int RecursiveMessageFieldNumber = 27;
  793. private global::Conformance.TestAllTypes recursiveMessage_;
  794. public global::Conformance.TestAllTypes RecursiveMessage {
  795. get { return recursiveMessage_; }
  796. set {
  797. recursiveMessage_ = value;
  798. }
  799. }
  800. public const int RepeatedInt32FieldNumber = 31;
  801. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  802. = pb::FieldCodec.ForInt32(250);
  803. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  804. public pbc::RepeatedField<int> RepeatedInt32 {
  805. get { return repeatedInt32_; }
  806. }
  807. public const int RepeatedInt64FieldNumber = 32;
  808. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  809. = pb::FieldCodec.ForInt64(258);
  810. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  811. public pbc::RepeatedField<long> RepeatedInt64 {
  812. get { return repeatedInt64_; }
  813. }
  814. public const int RepeatedUint32FieldNumber = 33;
  815. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  816. = pb::FieldCodec.ForUInt32(266);
  817. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  818. public pbc::RepeatedField<uint> RepeatedUint32 {
  819. get { return repeatedUint32_; }
  820. }
  821. public const int RepeatedUint64FieldNumber = 34;
  822. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  823. = pb::FieldCodec.ForUInt64(274);
  824. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  825. public pbc::RepeatedField<ulong> RepeatedUint64 {
  826. get { return repeatedUint64_; }
  827. }
  828. public const int RepeatedSint32FieldNumber = 35;
  829. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  830. = pb::FieldCodec.ForSInt32(282);
  831. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  832. public pbc::RepeatedField<int> RepeatedSint32 {
  833. get { return repeatedSint32_; }
  834. }
  835. public const int RepeatedSint64FieldNumber = 36;
  836. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  837. = pb::FieldCodec.ForSInt64(290);
  838. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  839. public pbc::RepeatedField<long> RepeatedSint64 {
  840. get { return repeatedSint64_; }
  841. }
  842. public const int RepeatedFixed32FieldNumber = 37;
  843. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  844. = pb::FieldCodec.ForFixed32(298);
  845. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  846. public pbc::RepeatedField<uint> RepeatedFixed32 {
  847. get { return repeatedFixed32_; }
  848. }
  849. public const int RepeatedFixed64FieldNumber = 38;
  850. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  851. = pb::FieldCodec.ForFixed64(306);
  852. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  853. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  854. get { return repeatedFixed64_; }
  855. }
  856. public const int RepeatedSfixed32FieldNumber = 39;
  857. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  858. = pb::FieldCodec.ForSFixed32(314);
  859. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  860. public pbc::RepeatedField<int> RepeatedSfixed32 {
  861. get { return repeatedSfixed32_; }
  862. }
  863. public const int RepeatedSfixed64FieldNumber = 40;
  864. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  865. = pb::FieldCodec.ForSFixed64(322);
  866. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  867. public pbc::RepeatedField<long> RepeatedSfixed64 {
  868. get { return repeatedSfixed64_; }
  869. }
  870. public const int RepeatedFloatFieldNumber = 41;
  871. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  872. = pb::FieldCodec.ForFloat(330);
  873. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  874. public pbc::RepeatedField<float> RepeatedFloat {
  875. get { return repeatedFloat_; }
  876. }
  877. public const int RepeatedDoubleFieldNumber = 42;
  878. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  879. = pb::FieldCodec.ForDouble(338);
  880. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  881. public pbc::RepeatedField<double> RepeatedDouble {
  882. get { return repeatedDouble_; }
  883. }
  884. public const int RepeatedBoolFieldNumber = 43;
  885. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  886. = pb::FieldCodec.ForBool(346);
  887. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  888. public pbc::RepeatedField<bool> RepeatedBool {
  889. get { return repeatedBool_; }
  890. }
  891. public const int RepeatedStringFieldNumber = 44;
  892. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  893. = pb::FieldCodec.ForString(354);
  894. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  895. public pbc::RepeatedField<string> RepeatedString {
  896. get { return repeatedString_; }
  897. }
  898. public const int RepeatedBytesFieldNumber = 45;
  899. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  900. = pb::FieldCodec.ForBytes(362);
  901. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  902. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  903. get { return repeatedBytes_; }
  904. }
  905. public const int RepeatedNestedMessageFieldNumber = 48;
  906. private static readonly pb::FieldCodec<global::Conformance.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  907. = pb::FieldCodec.ForMessage(386, global::Conformance.TestAllTypes.Types.NestedMessage.Parser);
  908. private readonly pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage>();
  909. public pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
  910. get { return repeatedNestedMessage_; }
  911. }
  912. public const int RepeatedForeignMessageFieldNumber = 49;
  913. private static readonly pb::FieldCodec<global::Conformance.ForeignMessage> _repeated_repeatedForeignMessage_codec
  914. = pb::FieldCodec.ForMessage(394, global::Conformance.ForeignMessage.Parser);
  915. private readonly pbc::RepeatedField<global::Conformance.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Conformance.ForeignMessage>();
  916. public pbc::RepeatedField<global::Conformance.ForeignMessage> RepeatedForeignMessage {
  917. get { return repeatedForeignMessage_; }
  918. }
  919. public const int RepeatedNestedEnumFieldNumber = 51;
  920. private static readonly pb::FieldCodec<global::Conformance.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  921. = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x);
  922. private readonly pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum>();
  923. public pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
  924. get { return repeatedNestedEnum_; }
  925. }
  926. public const int RepeatedForeignEnumFieldNumber = 52;
  927. private static readonly pb::FieldCodec<global::Conformance.ForeignEnum> _repeated_repeatedForeignEnum_codec
  928. = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Conformance.ForeignEnum) x);
  929. private readonly pbc::RepeatedField<global::Conformance.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Conformance.ForeignEnum>();
  930. public pbc::RepeatedField<global::Conformance.ForeignEnum> RepeatedForeignEnum {
  931. get { return repeatedForeignEnum_; }
  932. }
  933. public const int RepeatedStringPieceFieldNumber = 54;
  934. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
  935. = pb::FieldCodec.ForString(434);
  936. private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
  937. public pbc::RepeatedField<string> RepeatedStringPiece {
  938. get { return repeatedStringPiece_; }
  939. }
  940. public const int RepeatedCordFieldNumber = 55;
  941. private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
  942. = pb::FieldCodec.ForString(442);
  943. private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
  944. public pbc::RepeatedField<string> RepeatedCord {
  945. get { return repeatedCord_; }
  946. }
  947. public const int MapInt32Int32FieldNumber = 56;
  948. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  949. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 450);
  950. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  951. public pbc::MapField<int, int> MapInt32Int32 {
  952. get { return mapInt32Int32_; }
  953. }
  954. public const int MapInt64Int64FieldNumber = 57;
  955. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  956. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 458);
  957. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  958. public pbc::MapField<long, long> MapInt64Int64 {
  959. get { return mapInt64Int64_; }
  960. }
  961. public const int MapUint32Uint32FieldNumber = 58;
  962. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  963. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 466);
  964. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  965. public pbc::MapField<uint, uint> MapUint32Uint32 {
  966. get { return mapUint32Uint32_; }
  967. }
  968. public const int MapUint64Uint64FieldNumber = 59;
  969. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  970. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 474);
  971. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  972. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  973. get { return mapUint64Uint64_; }
  974. }
  975. public const int MapSint32Sint32FieldNumber = 60;
  976. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  977. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 482);
  978. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  979. public pbc::MapField<int, int> MapSint32Sint32 {
  980. get { return mapSint32Sint32_; }
  981. }
  982. public const int MapSint64Sint64FieldNumber = 61;
  983. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  984. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 490);
  985. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  986. public pbc::MapField<long, long> MapSint64Sint64 {
  987. get { return mapSint64Sint64_; }
  988. }
  989. public const int MapFixed32Fixed32FieldNumber = 62;
  990. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  991. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 498);
  992. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  993. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  994. get { return mapFixed32Fixed32_; }
  995. }
  996. public const int MapFixed64Fixed64FieldNumber = 63;
  997. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  998. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 506);
  999. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  1000. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  1001. get { return mapFixed64Fixed64_; }
  1002. }
  1003. public const int MapSfixed32Sfixed32FieldNumber = 64;
  1004. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  1005. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 514);
  1006. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  1007. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  1008. get { return mapSfixed32Sfixed32_; }
  1009. }
  1010. public const int MapSfixed64Sfixed64FieldNumber = 65;
  1011. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  1012. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 522);
  1013. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  1014. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  1015. get { return mapSfixed64Sfixed64_; }
  1016. }
  1017. public const int MapInt32FloatFieldNumber = 66;
  1018. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  1019. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 530);
  1020. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  1021. public pbc::MapField<int, float> MapInt32Float {
  1022. get { return mapInt32Float_; }
  1023. }
  1024. public const int MapInt32DoubleFieldNumber = 67;
  1025. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  1026. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 538);
  1027. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  1028. public pbc::MapField<int, double> MapInt32Double {
  1029. get { return mapInt32Double_; }
  1030. }
  1031. public const int MapBoolBoolFieldNumber = 68;
  1032. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  1033. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 546);
  1034. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  1035. public pbc::MapField<bool, bool> MapBoolBool {
  1036. get { return mapBoolBool_; }
  1037. }
  1038. public const int MapStringStringFieldNumber = 69;
  1039. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  1040. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 554);
  1041. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  1042. public pbc::MapField<string, string> MapStringString {
  1043. get { return mapStringString_; }
  1044. }
  1045. public const int MapStringBytesFieldNumber = 70;
  1046. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
  1047. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 562);
  1048. private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
  1049. public pbc::MapField<string, pb::ByteString> MapStringBytes {
  1050. get { return mapStringBytes_; }
  1051. }
  1052. public const int MapStringNestedMessageFieldNumber = 71;
  1053. private static readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
  1054. = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.TestAllTypes.Types.NestedMessage.Parser), 570);
  1055. private readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>();
  1056. public pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage> MapStringNestedMessage {
  1057. get { return mapStringNestedMessage_; }
  1058. }
  1059. public const int MapStringForeignMessageFieldNumber = 72;
  1060. private static readonly pbc::MapField<string, global::Conformance.ForeignMessage>.Codec _map_mapStringForeignMessage_codec
  1061. = new pbc::MapField<string, global::Conformance.ForeignMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.ForeignMessage.Parser), 578);
  1062. private readonly pbc::MapField<string, global::Conformance.ForeignMessage> mapStringForeignMessage_ = new pbc::MapField<string, global::Conformance.ForeignMessage>();
  1063. public pbc::MapField<string, global::Conformance.ForeignMessage> MapStringForeignMessage {
  1064. get { return mapStringForeignMessage_; }
  1065. }
  1066. public const int MapStringNestedEnumFieldNumber = 73;
  1067. private static readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
  1068. = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x), 586);
  1069. private readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>();
  1070. public pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum> MapStringNestedEnum {
  1071. get { return mapStringNestedEnum_; }
  1072. }
  1073. public const int MapStringForeignEnumFieldNumber = 74;
  1074. private static readonly pbc::MapField<string, global::Conformance.ForeignEnum>.Codec _map_mapStringForeignEnum_codec
  1075. = new pbc::MapField<string, global::Conformance.ForeignEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.ForeignEnum) x), 594);
  1076. private readonly pbc::MapField<string, global::Conformance.ForeignEnum> mapStringForeignEnum_ = new pbc::MapField<string, global::Conformance.ForeignEnum>();
  1077. public pbc::MapField<string, global::Conformance.ForeignEnum> MapStringForeignEnum {
  1078. get { return mapStringForeignEnum_; }
  1079. }
  1080. public const int OneofUint32FieldNumber = 111;
  1081. public uint OneofUint32 {
  1082. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
  1083. set {
  1084. oneofField_ = value;
  1085. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  1086. }
  1087. }
  1088. public const int OneofNestedMessageFieldNumber = 112;
  1089. public global::Conformance.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  1090. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Conformance.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
  1091. set {
  1092. oneofField_ = value;
  1093. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  1094. }
  1095. }
  1096. public const int OneofStringFieldNumber = 113;
  1097. public string OneofString {
  1098. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
  1099. set {
  1100. oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
  1101. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  1102. }
  1103. }
  1104. public const int OneofBytesFieldNumber = 114;
  1105. public pb::ByteString OneofBytes {
  1106. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  1107. set {
  1108. oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
  1109. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  1110. }
  1111. }
  1112. private object oneofField_;
  1113. public enum OneofFieldOneofCase {
  1114. None = 0,
  1115. OneofUint32 = 111,
  1116. OneofNestedMessage = 112,
  1117. OneofString = 113,
  1118. OneofBytes = 114,
  1119. }
  1120. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  1121. public OneofFieldOneofCase OneofFieldCase {
  1122. get { return oneofFieldCase_; }
  1123. }
  1124. public void ClearOneofField() {
  1125. oneofFieldCase_ = OneofFieldOneofCase.None;
  1126. oneofField_ = null;
  1127. }
  1128. public override bool Equals(object other) {
  1129. return Equals(other as TestAllTypes);
  1130. }
  1131. public bool Equals(TestAllTypes other) {
  1132. if (ReferenceEquals(other, null)) {
  1133. return false;
  1134. }
  1135. if (ReferenceEquals(other, this)) {
  1136. return true;
  1137. }
  1138. if (OptionalInt32 != other.OptionalInt32) return false;
  1139. if (OptionalInt64 != other.OptionalInt64) return false;
  1140. if (OptionalUint32 != other.OptionalUint32) return false;
  1141. if (OptionalUint64 != other.OptionalUint64) return false;
  1142. if (OptionalSint32 != other.OptionalSint32) return false;
  1143. if (OptionalSint64 != other.OptionalSint64) return false;
  1144. if (OptionalFixed32 != other.OptionalFixed32) return false;
  1145. if (OptionalFixed64 != other.OptionalFixed64) return false;
  1146. if (OptionalSfixed32 != other.OptionalSfixed32) return false;
  1147. if (OptionalSfixed64 != other.OptionalSfixed64) return false;
  1148. if (OptionalFloat != other.OptionalFloat) return false;
  1149. if (OptionalDouble != other.OptionalDouble) return false;
  1150. if (OptionalBool != other.OptionalBool) return false;
  1151. if (OptionalString != other.OptionalString) return false;
  1152. if (OptionalBytes != other.OptionalBytes) return false;
  1153. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  1154. if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
  1155. if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
  1156. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  1157. if (OptionalStringPiece != other.OptionalStringPiece) return false;
  1158. if (OptionalCord != other.OptionalCord) return false;
  1159. if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
  1160. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  1161. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  1162. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  1163. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  1164. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  1165. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  1166. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  1167. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  1168. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  1169. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  1170. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  1171. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  1172. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  1173. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  1174. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  1175. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  1176. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  1177. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  1178. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  1179. if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
  1180. if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
  1181. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1182. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1183. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1184. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1185. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1186. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1187. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1188. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1189. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1190. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1191. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1192. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1193. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1194. if (!MapStringString.Equals(other.MapStringString)) return false;
  1195. if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
  1196. if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
  1197. if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
  1198. if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
  1199. if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
  1200. if (OneofUint32 != other.OneofUint32) return false;
  1201. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  1202. if (OneofString != other.OneofString) return false;
  1203. if (OneofBytes != other.OneofBytes) return false;
  1204. return true;
  1205. }
  1206. public override int GetHashCode() {
  1207. int hash = 1;
  1208. if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
  1209. if (OptionalInt64 != 0L) hash ^= OptionalInt64.GetHashCode();
  1210. if (OptionalUint32 != 0) hash ^= OptionalUint32.GetHashCode();
  1211. if (OptionalUint64 != 0UL) hash ^= OptionalUint64.GetHashCode();
  1212. if (OptionalSint32 != 0) hash ^= OptionalSint32.GetHashCode();
  1213. if (OptionalSint64 != 0L) hash ^= OptionalSint64.GetHashCode();
  1214. if (OptionalFixed32 != 0) hash ^= OptionalFixed32.GetHashCode();
  1215. if (OptionalFixed64 != 0UL) hash ^= OptionalFixed64.GetHashCode();
  1216. if (OptionalSfixed32 != 0) hash ^= OptionalSfixed32.GetHashCode();
  1217. if (OptionalSfixed64 != 0L) hash ^= OptionalSfixed64.GetHashCode();
  1218. if (OptionalFloat != 0F) hash ^= OptionalFloat.GetHashCode();
  1219. if (OptionalDouble != 0D) hash ^= OptionalDouble.GetHashCode();
  1220. if (OptionalBool != false) hash ^= OptionalBool.GetHashCode();
  1221. if (OptionalString.Length != 0) hash ^= OptionalString.GetHashCode();
  1222. if (OptionalBytes.Length != 0) hash ^= OptionalBytes.GetHashCode();
  1223. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  1224. if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
  1225. if (OptionalNestedEnum != global::Conformance.TestAllTypes.Types.NestedEnum.FOO) hash ^= OptionalNestedEnum.GetHashCode();
  1226. if (OptionalForeignEnum != global::Conformance.ForeignEnum.FOREIGN_FOO) hash ^= OptionalForeignEnum.GetHashCode();
  1227. if (OptionalStringPiece.Length != 0) hash ^= OptionalStringPiece.GetHashCode();
  1228. if (OptionalCord.Length != 0) hash ^= OptionalCord.GetHashCode();
  1229. if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
  1230. hash ^= repeatedInt32_.GetHashCode();
  1231. hash ^= repeatedInt64_.GetHashCode();
  1232. hash ^= repeatedUint32_.GetHashCode();
  1233. hash ^= repeatedUint64_.GetHashCode();
  1234. hash ^= repeatedSint32_.GetHashCode();
  1235. hash ^= repeatedSint64_.GetHashCode();
  1236. hash ^= repeatedFixed32_.GetHashCode();
  1237. hash ^= repeatedFixed64_.GetHashCode();
  1238. hash ^= repeatedSfixed32_.GetHashCode();
  1239. hash ^= repeatedSfixed64_.GetHashCode();
  1240. hash ^= repeatedFloat_.GetHashCode();
  1241. hash ^= repeatedDouble_.GetHashCode();
  1242. hash ^= repeatedBool_.GetHashCode();
  1243. hash ^= repeatedString_.GetHashCode();
  1244. hash ^= repeatedBytes_.GetHashCode();
  1245. hash ^= repeatedNestedMessage_.GetHashCode();
  1246. hash ^= repeatedForeignMessage_.GetHashCode();
  1247. hash ^= repeatedNestedEnum_.GetHashCode();
  1248. hash ^= repeatedForeignEnum_.GetHashCode();
  1249. hash ^= repeatedStringPiece_.GetHashCode();
  1250. hash ^= repeatedCord_.GetHashCode();
  1251. hash ^= MapInt32Int32.GetHashCode();
  1252. hash ^= MapInt64Int64.GetHashCode();
  1253. hash ^= MapUint32Uint32.GetHashCode();
  1254. hash ^= MapUint64Uint64.GetHashCode();
  1255. hash ^= MapSint32Sint32.GetHashCode();
  1256. hash ^= MapSint64Sint64.GetHashCode();
  1257. hash ^= MapFixed32Fixed32.GetHashCode();
  1258. hash ^= MapFixed64Fixed64.GetHashCode();
  1259. hash ^= MapSfixed32Sfixed32.GetHashCode();
  1260. hash ^= MapSfixed64Sfixed64.GetHashCode();
  1261. hash ^= MapInt32Float.GetHashCode();
  1262. hash ^= MapInt32Double.GetHashCode();
  1263. hash ^= MapBoolBool.GetHashCode();
  1264. hash ^= MapStringString.GetHashCode();
  1265. hash ^= MapStringBytes.GetHashCode();
  1266. hash ^= MapStringNestedMessage.GetHashCode();
  1267. hash ^= MapStringForeignMessage.GetHashCode();
  1268. hash ^= MapStringNestedEnum.GetHashCode();
  1269. hash ^= MapStringForeignEnum.GetHashCode();
  1270. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
  1271. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  1272. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
  1273. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
  1274. return hash;
  1275. }
  1276. public override string ToString() {
  1277. return pb::JsonFormatter.Default.Format(this);
  1278. }
  1279. public void WriteTo(pb::CodedOutputStream output) {
  1280. if (OptionalInt32 != 0) {
  1281. output.WriteRawTag(8);
  1282. output.WriteInt32(OptionalInt32);
  1283. }
  1284. if (OptionalInt64 != 0L) {
  1285. output.WriteRawTag(16);
  1286. output.WriteInt64(OptionalInt64);
  1287. }
  1288. if (OptionalUint32 != 0) {
  1289. output.WriteRawTag(24);
  1290. output.WriteUInt32(OptionalUint32);
  1291. }
  1292. if (OptionalUint64 != 0UL) {
  1293. output.WriteRawTag(32);
  1294. output.WriteUInt64(OptionalUint64);
  1295. }
  1296. if (OptionalSint32 != 0) {
  1297. output.WriteRawTag(40);
  1298. output.WriteSInt32(OptionalSint32);
  1299. }
  1300. if (OptionalSint64 != 0L) {
  1301. output.WriteRawTag(48);
  1302. output.WriteSInt64(OptionalSint64);
  1303. }
  1304. if (OptionalFixed32 != 0) {
  1305. output.WriteRawTag(61);
  1306. output.WriteFixed32(OptionalFixed32);
  1307. }
  1308. if (OptionalFixed64 != 0UL) {
  1309. output.WriteRawTag(65);
  1310. output.WriteFixed64(OptionalFixed64);
  1311. }
  1312. if (OptionalSfixed32 != 0) {
  1313. output.WriteRawTag(77);
  1314. output.WriteSFixed32(OptionalSfixed32);
  1315. }
  1316. if (OptionalSfixed64 != 0L) {
  1317. output.WriteRawTag(81);
  1318. output.WriteSFixed64(OptionalSfixed64);
  1319. }
  1320. if (OptionalFloat != 0F) {
  1321. output.WriteRawTag(93);
  1322. output.WriteFloat(OptionalFloat);
  1323. }
  1324. if (OptionalDouble != 0D) {
  1325. output.WriteRawTag(97);
  1326. output.WriteDouble(OptionalDouble);
  1327. }
  1328. if (OptionalBool != false) {
  1329. output.WriteRawTag(104);
  1330. output.WriteBool(OptionalBool);
  1331. }
  1332. if (OptionalString.Length != 0) {
  1333. output.WriteRawTag(114);
  1334. output.WriteString(OptionalString);
  1335. }
  1336. if (OptionalBytes.Length != 0) {
  1337. output.WriteRawTag(122);
  1338. output.WriteBytes(OptionalBytes);
  1339. }
  1340. if (optionalNestedMessage_ != null) {
  1341. output.WriteRawTag(146, 1);
  1342. output.WriteMessage(OptionalNestedMessage);
  1343. }
  1344. if (optionalForeignMessage_ != null) {
  1345. output.WriteRawTag(154, 1);
  1346. output.WriteMessage(OptionalForeignMessage);
  1347. }
  1348. if (OptionalNestedEnum != global::Conformance.TestAllTypes.Types.NestedEnum.FOO) {
  1349. output.WriteRawTag(168, 1);
  1350. output.WriteEnum((int) OptionalNestedEnum);
  1351. }
  1352. if (OptionalForeignEnum != global::Conformance.ForeignEnum.FOREIGN_FOO) {
  1353. output.WriteRawTag(176, 1);
  1354. output.WriteEnum((int) OptionalForeignEnum);
  1355. }
  1356. if (OptionalStringPiece.Length != 0) {
  1357. output.WriteRawTag(194, 1);
  1358. output.WriteString(OptionalStringPiece);
  1359. }
  1360. if (OptionalCord.Length != 0) {
  1361. output.WriteRawTag(202, 1);
  1362. output.WriteString(OptionalCord);
  1363. }
  1364. if (recursiveMessage_ != null) {
  1365. output.WriteRawTag(218, 1);
  1366. output.WriteMessage(RecursiveMessage);
  1367. }
  1368. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  1369. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  1370. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  1371. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  1372. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  1373. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  1374. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  1375. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  1376. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  1377. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  1378. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  1379. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  1380. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  1381. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  1382. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  1383. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  1384. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  1385. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  1386. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  1387. repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
  1388. repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
  1389. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  1390. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  1391. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  1392. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  1393. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  1394. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  1395. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  1396. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  1397. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  1398. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  1399. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  1400. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  1401. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  1402. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  1403. mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
  1404. mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
  1405. mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
  1406. mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
  1407. mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
  1408. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  1409. output.WriteRawTag(248, 6);
  1410. output.WriteUInt32(OneofUint32);
  1411. }
  1412. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1413. output.WriteRawTag(130, 7);
  1414. output.WriteMessage(OneofNestedMessage);
  1415. }
  1416. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  1417. output.WriteRawTag(138, 7);
  1418. output.WriteString(OneofString);
  1419. }
  1420. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  1421. output.WriteRawTag(146, 7);
  1422. output.WriteBytes(OneofBytes);
  1423. }
  1424. }
  1425. public int CalculateSize() {
  1426. int size = 0;
  1427. if (OptionalInt32 != 0) {
  1428. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  1429. }
  1430. if (OptionalInt64 != 0L) {
  1431. size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
  1432. }
  1433. if (OptionalUint32 != 0) {
  1434. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
  1435. }
  1436. if (OptionalUint64 != 0UL) {
  1437. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
  1438. }
  1439. if (OptionalSint32 != 0) {
  1440. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
  1441. }
  1442. if (OptionalSint64 != 0L) {
  1443. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
  1444. }
  1445. if (OptionalFixed32 != 0) {
  1446. size += 1 + 4;
  1447. }
  1448. if (OptionalFixed64 != 0UL) {
  1449. size += 1 + 8;
  1450. }
  1451. if (OptionalSfixed32 != 0) {
  1452. size += 1 + 4;
  1453. }
  1454. if (OptionalSfixed64 != 0L) {
  1455. size += 1 + 8;
  1456. }
  1457. if (OptionalFloat != 0F) {
  1458. size += 1 + 4;
  1459. }
  1460. if (OptionalDouble != 0D) {
  1461. size += 1 + 8;
  1462. }
  1463. if (OptionalBool != false) {
  1464. size += 1 + 1;
  1465. }
  1466. if (OptionalString.Length != 0) {
  1467. size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  1468. }
  1469. if (OptionalBytes.Length != 0) {
  1470. size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  1471. }
  1472. if (optionalNestedMessage_ != null) {
  1473. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  1474. }
  1475. if (optionalForeignMessage_ != null) {
  1476. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
  1477. }
  1478. if (OptionalNestedEnum != global::Conformance.TestAllTypes.Types.NestedEnum.FOO) {
  1479. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
  1480. }
  1481. if (OptionalForeignEnum != global::Conformance.ForeignEnum.FOREIGN_FOO) {
  1482. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  1483. }
  1484. if (OptionalStringPiece.Length != 0) {
  1485. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
  1486. }
  1487. if (OptionalCord.Length != 0) {
  1488. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
  1489. }
  1490. if (recursiveMessage_ != null) {
  1491. size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
  1492. }
  1493. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  1494. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  1495. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  1496. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  1497. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  1498. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  1499. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  1500. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  1501. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  1502. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  1503. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  1504. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  1505. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  1506. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  1507. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  1508. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  1509. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  1510. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  1511. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  1512. size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
  1513. size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
  1514. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  1515. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  1516. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  1517. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  1518. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  1519. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  1520. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  1521. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  1522. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  1523. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  1524. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  1525. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  1526. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  1527. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  1528. size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
  1529. size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
  1530. size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
  1531. size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
  1532. size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
  1533. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  1534. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  1535. }
  1536. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1537. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  1538. }
  1539. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  1540. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  1541. }
  1542. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  1543. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  1544. }
  1545. return size;
  1546. }
  1547. public void MergeFrom(TestAllTypes other) {
  1548. if (other == null) {
  1549. return;
  1550. }
  1551. if (other.OptionalInt32 != 0) {
  1552. OptionalInt32 = other.OptionalInt32;
  1553. }
  1554. if (other.OptionalInt64 != 0L) {
  1555. OptionalInt64 = other.OptionalInt64;
  1556. }
  1557. if (other.OptionalUint32 != 0) {
  1558. OptionalUint32 = other.OptionalUint32;
  1559. }
  1560. if (other.OptionalUint64 != 0UL) {
  1561. OptionalUint64 = other.OptionalUint64;
  1562. }
  1563. if (other.OptionalSint32 != 0) {
  1564. OptionalSint32 = other.OptionalSint32;
  1565. }
  1566. if (other.OptionalSint64 != 0L) {
  1567. OptionalSint64 = other.OptionalSint64;
  1568. }
  1569. if (other.OptionalFixed32 != 0) {
  1570. OptionalFixed32 = other.OptionalFixed32;
  1571. }
  1572. if (other.OptionalFixed64 != 0UL) {
  1573. OptionalFixed64 = other.OptionalFixed64;
  1574. }
  1575. if (other.OptionalSfixed32 != 0) {
  1576. OptionalSfixed32 = other.OptionalSfixed32;
  1577. }
  1578. if (other.OptionalSfixed64 != 0L) {
  1579. OptionalSfixed64 = other.OptionalSfixed64;
  1580. }
  1581. if (other.OptionalFloat != 0F) {
  1582. OptionalFloat = other.OptionalFloat;
  1583. }
  1584. if (other.OptionalDouble != 0D) {
  1585. OptionalDouble = other.OptionalDouble;
  1586. }
  1587. if (other.OptionalBool != false) {
  1588. OptionalBool = other.OptionalBool;
  1589. }
  1590. if (other.OptionalString.Length != 0) {
  1591. OptionalString = other.OptionalString;
  1592. }
  1593. if (other.OptionalBytes.Length != 0) {
  1594. OptionalBytes = other.OptionalBytes;
  1595. }
  1596. if (other.optionalNestedMessage_ != null) {
  1597. if (optionalNestedMessage_ == null) {
  1598. optionalNestedMessage_ = new global::Conformance.TestAllTypes.Types.NestedMessage();
  1599. }
  1600. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  1601. }
  1602. if (other.optionalForeignMessage_ != null) {
  1603. if (optionalForeignMessage_ == null) {
  1604. optionalForeignMessage_ = new global::Conformance.ForeignMessage();
  1605. }
  1606. OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
  1607. }
  1608. if (other.OptionalNestedEnum != global::Conformance.TestAllTypes.Types.NestedEnum.FOO) {
  1609. OptionalNestedEnum = other.OptionalNestedEnum;
  1610. }
  1611. if (other.OptionalForeignEnum != global::Conformance.ForeignEnum.FOREIGN_FOO) {
  1612. OptionalForeignEnum = other.OptionalForeignEnum;
  1613. }
  1614. if (other.OptionalStringPiece.Length != 0) {
  1615. OptionalStringPiece = other.OptionalStringPiece;
  1616. }
  1617. if (other.OptionalCord.Length != 0) {
  1618. OptionalCord = other.OptionalCord;
  1619. }
  1620. if (other.recursiveMessage_ != null) {
  1621. if (recursiveMessage_ == null) {
  1622. recursiveMessage_ = new global::Conformance.TestAllTypes();
  1623. }
  1624. RecursiveMessage.MergeFrom(other.RecursiveMessage);
  1625. }
  1626. repeatedInt32_.Add(other.repeatedInt32_);
  1627. repeatedInt64_.Add(other.repeatedInt64_);
  1628. repeatedUint32_.Add(other.repeatedUint32_);
  1629. repeatedUint64_.Add(other.repeatedUint64_);
  1630. repeatedSint32_.Add(other.repeatedSint32_);
  1631. repeatedSint64_.Add(other.repeatedSint64_);
  1632. repeatedFixed32_.Add(other.repeatedFixed32_);
  1633. repeatedFixed64_.Add(other.repeatedFixed64_);
  1634. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  1635. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  1636. repeatedFloat_.Add(other.repeatedFloat_);
  1637. repeatedDouble_.Add(other.repeatedDouble_);
  1638. repeatedBool_.Add(other.repeatedBool_);
  1639. repeatedString_.Add(other.repeatedString_);
  1640. repeatedBytes_.Add(other.repeatedBytes_);
  1641. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  1642. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  1643. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  1644. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  1645. repeatedStringPiece_.Add(other.repeatedStringPiece_);
  1646. repeatedCord_.Add(other.repeatedCord_);
  1647. mapInt32Int32_.Add(other.mapInt32Int32_);
  1648. mapInt64Int64_.Add(other.mapInt64Int64_);
  1649. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  1650. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  1651. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  1652. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  1653. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  1654. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  1655. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  1656. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  1657. mapInt32Float_.Add(other.mapInt32Float_);
  1658. mapInt32Double_.Add(other.mapInt32Double_);
  1659. mapBoolBool_.Add(other.mapBoolBool_);
  1660. mapStringString_.Add(other.mapStringString_);
  1661. mapStringBytes_.Add(other.mapStringBytes_);
  1662. mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
  1663. mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
  1664. mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
  1665. mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
  1666. switch (other.OneofFieldCase) {
  1667. case OneofFieldOneofCase.OneofUint32:
  1668. OneofUint32 = other.OneofUint32;
  1669. break;
  1670. case OneofFieldOneofCase.OneofNestedMessage:
  1671. OneofNestedMessage = other.OneofNestedMessage;
  1672. break;
  1673. case OneofFieldOneofCase.OneofString:
  1674. OneofString = other.OneofString;
  1675. break;
  1676. case OneofFieldOneofCase.OneofBytes:
  1677. OneofBytes = other.OneofBytes;
  1678. break;
  1679. }
  1680. }
  1681. public void MergeFrom(pb::CodedInputStream input) {
  1682. uint tag;
  1683. while ((tag = input.ReadTag()) != 0) {
  1684. switch(tag) {
  1685. default:
  1686. input.SkipLastField();
  1687. break;
  1688. case 8: {
  1689. OptionalInt32 = input.ReadInt32();
  1690. break;
  1691. }
  1692. case 16: {
  1693. OptionalInt64 = input.ReadInt64();
  1694. break;
  1695. }
  1696. case 24: {
  1697. OptionalUint32 = input.ReadUInt32();
  1698. break;
  1699. }
  1700. case 32: {
  1701. OptionalUint64 = input.ReadUInt64();
  1702. break;
  1703. }
  1704. case 40: {
  1705. OptionalSint32 = input.ReadSInt32();
  1706. break;
  1707. }
  1708. case 48: {
  1709. OptionalSint64 = input.ReadSInt64();
  1710. break;
  1711. }
  1712. case 61: {
  1713. OptionalFixed32 = input.ReadFixed32();
  1714. break;
  1715. }
  1716. case 65: {
  1717. OptionalFixed64 = input.ReadFixed64();
  1718. break;
  1719. }
  1720. case 77: {
  1721. OptionalSfixed32 = input.ReadSFixed32();
  1722. break;
  1723. }
  1724. case 81: {
  1725. OptionalSfixed64 = input.ReadSFixed64();
  1726. break;
  1727. }
  1728. case 93: {
  1729. OptionalFloat = input.ReadFloat();
  1730. break;
  1731. }
  1732. case 97: {
  1733. OptionalDouble = input.ReadDouble();
  1734. break;
  1735. }
  1736. case 104: {
  1737. OptionalBool = input.ReadBool();
  1738. break;
  1739. }
  1740. case 114: {
  1741. OptionalString = input.ReadString();
  1742. break;
  1743. }
  1744. case 122: {
  1745. OptionalBytes = input.ReadBytes();
  1746. break;
  1747. }
  1748. case 146: {
  1749. if (optionalNestedMessage_ == null) {
  1750. optionalNestedMessage_ = new global::Conformance.TestAllTypes.Types.NestedMessage();
  1751. }
  1752. input.ReadMessage(optionalNestedMessage_);
  1753. break;
  1754. }
  1755. case 154: {
  1756. if (optionalForeignMessage_ == null) {
  1757. optionalForeignMessage_ = new global::Conformance.ForeignMessage();
  1758. }
  1759. input.ReadMessage(optionalForeignMessage_);
  1760. break;
  1761. }
  1762. case 168: {
  1763. optionalNestedEnum_ = (global::Conformance.TestAllTypes.Types.NestedEnum) input.ReadEnum();
  1764. break;
  1765. }
  1766. case 176: {
  1767. optionalForeignEnum_ = (global::Conformance.ForeignEnum) input.ReadEnum();
  1768. break;
  1769. }
  1770. case 194: {
  1771. OptionalStringPiece = input.ReadString();
  1772. break;
  1773. }
  1774. case 202: {
  1775. OptionalCord = input.ReadString();
  1776. break;
  1777. }
  1778. case 218: {
  1779. if (recursiveMessage_ == null) {
  1780. recursiveMessage_ = new global::Conformance.TestAllTypes();
  1781. }
  1782. input.ReadMessage(recursiveMessage_);
  1783. break;
  1784. }
  1785. case 250:
  1786. case 248: {
  1787. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  1788. break;
  1789. }
  1790. case 258:
  1791. case 256: {
  1792. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  1793. break;
  1794. }
  1795. case 266:
  1796. case 264: {
  1797. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  1798. break;
  1799. }
  1800. case 274:
  1801. case 272: {
  1802. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  1803. break;
  1804. }
  1805. case 282:
  1806. case 280: {
  1807. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  1808. break;
  1809. }
  1810. case 290:
  1811. case 288: {
  1812. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  1813. break;
  1814. }
  1815. case 298:
  1816. case 301: {
  1817. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  1818. break;
  1819. }
  1820. case 306:
  1821. case 305: {
  1822. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  1823. break;
  1824. }
  1825. case 314:
  1826. case 317: {
  1827. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  1828. break;
  1829. }
  1830. case 322:
  1831. case 321: {
  1832. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  1833. break;
  1834. }
  1835. case 330:
  1836. case 333: {
  1837. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  1838. break;
  1839. }
  1840. case 338:
  1841. case 337: {
  1842. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  1843. break;
  1844. }
  1845. case 346:
  1846. case 344: {
  1847. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  1848. break;
  1849. }
  1850. case 354: {
  1851. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  1852. break;
  1853. }
  1854. case 362: {
  1855. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  1856. break;
  1857. }
  1858. case 386: {
  1859. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  1860. break;
  1861. }
  1862. case 394: {
  1863. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  1864. break;
  1865. }
  1866. case 410:
  1867. case 408: {
  1868. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  1869. break;
  1870. }
  1871. case 418:
  1872. case 416: {
  1873. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  1874. break;
  1875. }
  1876. case 434: {
  1877. repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
  1878. break;
  1879. }
  1880. case 442: {
  1881. repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
  1882. break;
  1883. }
  1884. case 450: {
  1885. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  1886. break;
  1887. }
  1888. case 458: {
  1889. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  1890. break;
  1891. }
  1892. case 466: {
  1893. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  1894. break;
  1895. }
  1896. case 474: {
  1897. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  1898. break;
  1899. }
  1900. case 482: {
  1901. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  1902. break;
  1903. }
  1904. case 490: {
  1905. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  1906. break;
  1907. }
  1908. case 498: {
  1909. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  1910. break;
  1911. }
  1912. case 506: {
  1913. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  1914. break;
  1915. }
  1916. case 514: {
  1917. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  1918. break;
  1919. }
  1920. case 522: {
  1921. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  1922. break;
  1923. }
  1924. case 530: {
  1925. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  1926. break;
  1927. }
  1928. case 538: {
  1929. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  1930. break;
  1931. }
  1932. case 546: {
  1933. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  1934. break;
  1935. }
  1936. case 554: {
  1937. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  1938. break;
  1939. }
  1940. case 562: {
  1941. mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
  1942. break;
  1943. }
  1944. case 570: {
  1945. mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
  1946. break;
  1947. }
  1948. case 578: {
  1949. mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
  1950. break;
  1951. }
  1952. case 586: {
  1953. mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
  1954. break;
  1955. }
  1956. case 594: {
  1957. mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
  1958. break;
  1959. }
  1960. case 888: {
  1961. OneofUint32 = input.ReadUInt32();
  1962. break;
  1963. }
  1964. case 898: {
  1965. global::Conformance.TestAllTypes.Types.NestedMessage subBuilder = new global::Conformance.TestAllTypes.Types.NestedMessage();
  1966. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1967. subBuilder.MergeFrom(OneofNestedMessage);
  1968. }
  1969. input.ReadMessage(subBuilder);
  1970. OneofNestedMessage = subBuilder;
  1971. break;
  1972. }
  1973. case 906: {
  1974. OneofString = input.ReadString();
  1975. break;
  1976. }
  1977. case 914: {
  1978. OneofBytes = input.ReadBytes();
  1979. break;
  1980. }
  1981. }
  1982. }
  1983. }
  1984. #region Nested types
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. public static partial class Types {
  1987. public enum NestedEnum {
  1988. FOO = 0,
  1989. BAR = 1,
  1990. BAZ = 2,
  1991. NEG = -1,
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  1995. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  1996. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  1997. public static pbr::MessageDescriptor Descriptor {
  1998. get { return global::Conformance.TestAllTypes.Descriptor.NestedTypes[0]; }
  1999. }
  2000. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2001. get { return Descriptor; }
  2002. }
  2003. public NestedMessage() {
  2004. OnConstruction();
  2005. }
  2006. partial void OnConstruction();
  2007. public NestedMessage(NestedMessage other) : this() {
  2008. a_ = other.a_;
  2009. Corecursive = other.corecursive_ != null ? other.Corecursive.Clone() : null;
  2010. }
  2011. public NestedMessage Clone() {
  2012. return new NestedMessage(this);
  2013. }
  2014. public const int AFieldNumber = 1;
  2015. private int a_;
  2016. public int A {
  2017. get { return a_; }
  2018. set {
  2019. a_ = value;
  2020. }
  2021. }
  2022. public const int CorecursiveFieldNumber = 2;
  2023. private global::Conformance.TestAllTypes corecursive_;
  2024. public global::Conformance.TestAllTypes Corecursive {
  2025. get { return corecursive_; }
  2026. set {
  2027. corecursive_ = value;
  2028. }
  2029. }
  2030. public override bool Equals(object other) {
  2031. return Equals(other as NestedMessage);
  2032. }
  2033. public bool Equals(NestedMessage other) {
  2034. if (ReferenceEquals(other, null)) {
  2035. return false;
  2036. }
  2037. if (ReferenceEquals(other, this)) {
  2038. return true;
  2039. }
  2040. if (A != other.A) return false;
  2041. if (!object.Equals(Corecursive, other.Corecursive)) return false;
  2042. return true;
  2043. }
  2044. public override int GetHashCode() {
  2045. int hash = 1;
  2046. if (A != 0) hash ^= A.GetHashCode();
  2047. if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
  2048. return hash;
  2049. }
  2050. public override string ToString() {
  2051. return pb::JsonFormatter.Default.Format(this);
  2052. }
  2053. public void WriteTo(pb::CodedOutputStream output) {
  2054. if (A != 0) {
  2055. output.WriteRawTag(8);
  2056. output.WriteInt32(A);
  2057. }
  2058. if (corecursive_ != null) {
  2059. output.WriteRawTag(18);
  2060. output.WriteMessage(Corecursive);
  2061. }
  2062. }
  2063. public int CalculateSize() {
  2064. int size = 0;
  2065. if (A != 0) {
  2066. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  2067. }
  2068. if (corecursive_ != null) {
  2069. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
  2070. }
  2071. return size;
  2072. }
  2073. public void MergeFrom(NestedMessage other) {
  2074. if (other == null) {
  2075. return;
  2076. }
  2077. if (other.A != 0) {
  2078. A = other.A;
  2079. }
  2080. if (other.corecursive_ != null) {
  2081. if (corecursive_ == null) {
  2082. corecursive_ = new global::Conformance.TestAllTypes();
  2083. }
  2084. Corecursive.MergeFrom(other.Corecursive);
  2085. }
  2086. }
  2087. public void MergeFrom(pb::CodedInputStream input) {
  2088. uint tag;
  2089. while ((tag = input.ReadTag()) != 0) {
  2090. switch(tag) {
  2091. default:
  2092. input.SkipLastField();
  2093. break;
  2094. case 8: {
  2095. A = input.ReadInt32();
  2096. break;
  2097. }
  2098. case 18: {
  2099. if (corecursive_ == null) {
  2100. corecursive_ = new global::Conformance.TestAllTypes();
  2101. }
  2102. input.ReadMessage(corecursive_);
  2103. break;
  2104. }
  2105. }
  2106. }
  2107. }
  2108. }
  2109. }
  2110. #endregion
  2111. }
  2112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2113. public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
  2114. private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
  2115. public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
  2116. public static pbr::MessageDescriptor Descriptor {
  2117. get { return global::Conformance.Conformance.Descriptor.MessageTypes[3]; }
  2118. }
  2119. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2120. get { return Descriptor; }
  2121. }
  2122. public ForeignMessage() {
  2123. OnConstruction();
  2124. }
  2125. partial void OnConstruction();
  2126. public ForeignMessage(ForeignMessage other) : this() {
  2127. c_ = other.c_;
  2128. }
  2129. public ForeignMessage Clone() {
  2130. return new ForeignMessage(this);
  2131. }
  2132. public const int CFieldNumber = 1;
  2133. private int c_;
  2134. public int C {
  2135. get { return c_; }
  2136. set {
  2137. c_ = value;
  2138. }
  2139. }
  2140. public override bool Equals(object other) {
  2141. return Equals(other as ForeignMessage);
  2142. }
  2143. public bool Equals(ForeignMessage other) {
  2144. if (ReferenceEquals(other, null)) {
  2145. return false;
  2146. }
  2147. if (ReferenceEquals(other, this)) {
  2148. return true;
  2149. }
  2150. if (C != other.C) return false;
  2151. return true;
  2152. }
  2153. public override int GetHashCode() {
  2154. int hash = 1;
  2155. if (C != 0) hash ^= C.GetHashCode();
  2156. return hash;
  2157. }
  2158. public override string ToString() {
  2159. return pb::JsonFormatter.Default.Format(this);
  2160. }
  2161. public void WriteTo(pb::CodedOutputStream output) {
  2162. if (C != 0) {
  2163. output.WriteRawTag(8);
  2164. output.WriteInt32(C);
  2165. }
  2166. }
  2167. public int CalculateSize() {
  2168. int size = 0;
  2169. if (C != 0) {
  2170. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  2171. }
  2172. return size;
  2173. }
  2174. public void MergeFrom(ForeignMessage other) {
  2175. if (other == null) {
  2176. return;
  2177. }
  2178. if (other.C != 0) {
  2179. C = other.C;
  2180. }
  2181. }
  2182. public void MergeFrom(pb::CodedInputStream input) {
  2183. uint tag;
  2184. while ((tag = input.ReadTag()) != 0) {
  2185. switch(tag) {
  2186. default:
  2187. input.SkipLastField();
  2188. break;
  2189. case 8: {
  2190. C = input.ReadInt32();
  2191. break;
  2192. }
  2193. }
  2194. }
  2195. }
  2196. }
  2197. #endregion
  2198. }
  2199. #endregion Designer generated code