MapUnittestProto3.cs 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: map_unittest_proto3.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Google.Protobuf.TestProtos {
  10. /// <summary>Holder for reflection information generated from map_unittest_proto3.proto</summary>
  11. public static partial class MapUnittestProto3Reflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for map_unittest_proto3.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static MapUnittestProto3Reflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "ChltYXBfdW5pdHRlc3RfcHJvdG8zLnByb3RvEhJwcm90b2J1Zl91bml0dGVz",
  22. "dDMaFXVuaXR0ZXN0X3Byb3RvMy5wcm90byKpEgoHVGVzdE1hcBJHCg9tYXBf",
  23. "aW50MzJfaW50MzIYASADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
  24. "cC5NYXBJbnQzMkludDMyRW50cnkSRwoPbWFwX2ludDY0X2ludDY0GAIgAygL",
  25. "Mi4ucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50NjRJbnQ2NEVu",
  26. "dHJ5EksKEW1hcF91aW50MzJfdWludDMyGAMgAygLMjAucHJvdG9idWZfdW5p",
  27. "dHRlc3QzLlRlc3RNYXAuTWFwVWludDMyVWludDMyRW50cnkSSwoRbWFwX3Vp",
  28. "bnQ2NF91aW50NjQYBCADKAsyMC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
  29. "cC5NYXBVaW50NjRVaW50NjRFbnRyeRJLChFtYXBfc2ludDMyX3NpbnQzMhgF",
  30. "IAMoCzIwLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNpbnQzMlNp",
  31. "bnQzMkVudHJ5EksKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjAucHJvdG9i",
  32. "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2ludDY0U2ludDY0RW50cnkSTwoT",
  33. "bWFwX2ZpeGVkMzJfZml4ZWQzMhgHIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0",
  34. "My5UZXN0TWFwLk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSTwoTbWFwX2ZpeGVk",
  35. "NjRfZml4ZWQ2NBgIIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFw",
  36. "Lk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSUwoVbWFwX3NmaXhlZDMyX3NmaXhl",
  37. "ZDMyGAkgAygLMjQucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2Zp",
  38. "eGVkMzJTZml4ZWQzMkVudHJ5ElMKFW1hcF9zZml4ZWQ2NF9zZml4ZWQ2NBgK",
  39. "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNmaXhlZDY0",
  40. "U2ZpeGVkNjRFbnRyeRJHCg9tYXBfaW50MzJfZmxvYXQYCyADKAsyLi5wcm90",
  41. "b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkZsb2F0RW50cnkSSQoQ",
  42. "bWFwX2ludDMyX2RvdWJsZRgMIAMoCzIvLnByb3RvYnVmX3VuaXR0ZXN0My5U",
  43. "ZXN0TWFwLk1hcEludDMyRG91YmxlRW50cnkSQwoNbWFwX2Jvb2xfYm9vbBgN",
  44. "IAMoCzIsLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcEJvb2xCb29s",
  45. "RW50cnkSSwoRbWFwX3N0cmluZ19zdHJpbmcYDiADKAsyMC5wcm90b2J1Zl91",
  46. "bml0dGVzdDMuVGVzdE1hcC5NYXBTdHJpbmdTdHJpbmdFbnRyeRJHCg9tYXBf",
  47. "aW50MzJfYnl0ZXMYDyADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
  48. "cC5NYXBJbnQzMkJ5dGVzRW50cnkSRQoObWFwX2ludDMyX2VudW0YECADKAsy",
  49. "LS5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkVudW1FbnRy",
  50. "eRJaChltYXBfaW50MzJfZm9yZWlnbl9tZXNzYWdlGBEgAygLMjcucHJvdG9i",
  51. "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50MzJGb3JlaWduTWVzc2FnZUVu",
  52. "dHJ5GjQKEk1hcEludDMySW50MzJFbnRyeRILCgNrZXkYASABKAUSDQoFdmFs",
  53. "dWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50NjRFbnRyeRILCgNrZXkYASAB",
  54. "KAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1hcFVpbnQzMlVpbnQzMkVudHJ5",
  55. "EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaNgoUTWFwVWludDY0",
  56. "VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0KBXZhbHVlGAIgASgEOgI4ARo2",
  57. "ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNrZXkYASABKBESDQoFdmFsdWUY",
  58. "AiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2NEVudHJ5EgsKA2tleRgBIAEo",
  59. "EhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRy",
  60. "eRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiABKAc6AjgBGjgKFk1hcEZpeGVk",
  61. "NjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgGEg0KBXZhbHVlGAIgASgGOgI4",
  62. "ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSCwoDa2V5GAEgASgPEg0K",
  63. "BXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkS",
  64. "CwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQOgI4ARo0ChJNYXBJbnQzMkZs",
  65. "b2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgCOgI4ARo1ChNN",
  66. "YXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo",
  67. "AToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRILCgNrZXkYASABKAgSDQoFdmFs",
  68. "dWUYAiABKAg6AjgBGjYKFE1hcFN0cmluZ1N0cmluZ0VudHJ5EgsKA2tleRgB",
  69. "IAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaNAoSTWFwSW50MzJCeXRlc0VudHJ5",
  70. "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoDDoCOAEaUAoRTWFwSW50MzJF",
  71. "bnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsucHJvdG9i",
  72. "dWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9yZWlnbk1l",
  73. "c3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsyIi5wcm90",
  74. "b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIkIKEVRlc3RNYXBT",
  75. "dWJtZXNzYWdlEi0KCHRlc3RfbWFwGAEgASgLMhsucHJvdG9idWZfdW5pdHRl",
  76. "c3QzLlRlc3RNYXAivgEKDlRlc3RNZXNzYWdlTWFwElIKEW1hcF9pbnQzMl9t",
  77. "ZXNzYWdlGAEgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNZXNzYWdl",
  78. "TWFwLk1hcEludDMyTWVzc2FnZUVudHJ5GlgKFE1hcEludDMyTWVzc2FnZUVu",
  79. "dHJ5EgsKA2tleRgBIAEoBRIvCgV2YWx1ZRgCIAEoCzIgLnByb3RvYnVmX3Vu",
  80. "aXR0ZXN0My5UZXN0QWxsVHlwZXM6AjgBIuUBCg9UZXN0U2FtZVR5cGVNYXAS",
  81. "OwoEbWFwMRgBIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0U2FtZVR5",
  82. "cGVNYXAuTWFwMUVudHJ5EjsKBG1hcDIYAiADKAsyLS5wcm90b2J1Zl91bml0",
  83. "dGVzdDMuVGVzdFNhbWVUeXBlTWFwLk1hcDJFbnRyeRorCglNYXAxRW50cnkS",
  84. "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARorCglNYXAyRW50cnkS",
  85. "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASL1EAoMVGVzdEFyZW5h",
  86. "TWFwEkwKD21hcF9pbnQzMl9pbnQzMhgBIAMoCzIzLnByb3RvYnVmX3VuaXR0",
  87. "ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJJbnQzMkVudHJ5EkwKD21hcF9p",
  88. "bnQ2NF9pbnQ2NBgCIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJl",
  89. "bmFNYXAuTWFwSW50NjRJbnQ2NEVudHJ5ElAKEW1hcF91aW50MzJfdWludDMy",
  90. "GAMgAygLMjUucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBV",
  91. "aW50MzJVaW50MzJFbnRyeRJQChFtYXBfdWludDY0X3VpbnQ2NBgEIAMoCzI1",
  92. "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwVWludDY0VWlu",
  93. "dDY0RW50cnkSUAoRbWFwX3NpbnQzMl9zaW50MzIYBSADKAsyNS5wcm90b2J1",
  94. "Zl91bml0dGVzdDMuVGVzdEFyZW5hTWFwLk1hcFNpbnQzMlNpbnQzMkVudHJ5",
  95. "ElAKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjUucHJvdG9idWZfdW5pdHRl",
  96. "c3QzLlRlc3RBcmVuYU1hcC5NYXBTaW50NjRTaW50NjRFbnRyeRJUChNtYXBf",
  97. "Zml4ZWQzMl9maXhlZDMyGAcgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRl",
  98. "c3RBcmVuYU1hcC5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5ElQKE21hcF9maXhl",
  99. "ZDY0X2ZpeGVkNjQYCCADKAsyNy5wcm90b2J1Zl91bml0dGVzdDMuVGVzdEFy",
  100. "ZW5hTWFwLk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSWAoVbWFwX3NmaXhlZDMy",
  101. "X3NmaXhlZDMyGAkgAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
  102. "YU1hcC5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSWAoVbWFwX3NmaXhlZDY0",
  103. "X3NmaXhlZDY0GAogAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
  104. "YU1hcC5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSTAoPbWFwX2ludDMyX2Zs",
  105. "b2F0GAsgAygLMjMucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5N",
  106. "YXBJbnQzMkZsb2F0RW50cnkSTgoQbWFwX2ludDMyX2RvdWJsZRgMIAMoCzI0",
  107. "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJEb3Vi",
  108. "bGVFbnRyeRJICg1tYXBfYm9vbF9ib29sGA0gAygLMjEucHJvdG9idWZfdW5p",
  109. "dHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBCb29sQm9vbEVudHJ5EkoKDm1hcF9p",
  110. "bnQzMl9lbnVtGA4gAygLMjIucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
  111. "YU1hcC5NYXBJbnQzMkVudW1FbnRyeRJfChltYXBfaW50MzJfZm9yZWlnbl9t",
  112. "ZXNzYWdlGA8gAygLMjwucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1h",
  113. "cC5NYXBJbnQzMkZvcmVpZ25NZXNzYWdlRW50cnkaNAoSTWFwSW50MzJJbnQz",
  114. "MkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFw",
  115. "SW50NjRJbnQ2NEVudHJ5EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoC",
  116. "OAEaNgoUTWFwVWludDMyVWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZh",
  117. "bHVlGAIgASgNOgI4ARo2ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkY",
  118. "ASABKAQSDQoFdmFsdWUYAiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVu",
  119. "dHJ5EgsKA2tleRgBIAEoERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2lu",
  120. "dDY0U2ludDY0RW50cnkSCwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4",
  121. "ARo4ChZNYXBGaXhlZDMyRml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2",
  122. "YWx1ZRgCIAEoBzoCOAEaOAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNr",
  123. "ZXkYASABKAYSDQoFdmFsdWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2Zp",
  124. "eGVkMzJFbnRyeRILCgNrZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoK",
  125. "GE1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFs",
  126. "dWUYAiABKBA6AjgBGjQKEk1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASAB",
  127. "KAUSDQoFdmFsdWUYAiABKAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkS",
  128. "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9v",
  129. "bEVudHJ5EgsKA2tleRgBIAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaUAoRTWFw",
  130. "SW50MzJFbnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsu",
  131. "cHJvdG9idWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9y",
  132. "ZWlnbk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsy",
  133. "Ii5wcm90b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIuYBCh9N",
  134. "ZXNzYWdlQ29udGFpbmluZ0VudW1DYWxsZWRUeXBlEksKBHR5cGUYASADKAsy",
  135. "PS5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5pbmdFbnVtQ2Fs",
  136. "bGVkVHlwZS5UeXBlRW50cnkaYAoJVHlwZUVudHJ5EgsKA2tleRgBIAEoBRJC",
  137. "CgV2YWx1ZRgCIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5NZXNzYWdlQ29u",
  138. "dGFpbmluZ0VudW1DYWxsZWRUeXBlOgI4ASIUCgRUeXBlEgwKCFRZUEVfRk9P",
  139. "EAAingEKH01lc3NhZ2VDb250YWluaW5nTWFwQ2FsbGVkRW50cnkSTQoFZW50",
  140. "cnkYASADKAsyPi5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5p",
  141. "bmdNYXBDYWxsZWRFbnRyeS5FbnRyeUVudHJ5GiwKCkVudHJ5RW50cnkSCwoD",
  142. "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASo/CgdNYXBFbnVtEhAKDE1B",
  143. "UF9FTlVNX0ZPTxAAEhAKDE1BUF9FTlVNX0JBUhABEhAKDE1BUF9FTlVNX0JB",
  144. "WhACQh2qAhpHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvc2IGcHJvdG8z"));
  145. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  146. new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, },
  147. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, new pbr::GeneratedClrTypeInfo[] {
  148. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.TestMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  149. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null),
  150. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  151. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
  152. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), global::Google.Protobuf.TestProtos.TestArenaMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  153. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, new pbr::GeneratedClrTypeInfo[] { null, }),
  154. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
  155. }));
  156. }
  157. #endregion
  158. }
  159. #region Enums
  160. public enum MapEnum {
  161. [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0,
  162. [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1,
  163. [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2,
  164. }
  165. #endregion
  166. #region Messages
  167. /// <summary>
  168. /// Tests maps.
  169. /// </summary>
  170. public sealed partial class TestMap : pb::IMessage<TestMap> {
  171. private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  173. public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  175. public static pbr::MessageDescriptor Descriptor {
  176. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  179. pbr::MessageDescriptor pb::IMessage.Descriptor {
  180. get { return Descriptor; }
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  183. public TestMap() {
  184. OnConstruction();
  185. }
  186. partial void OnConstruction();
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  188. public TestMap(TestMap other) : this() {
  189. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  190. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  191. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  192. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  193. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  194. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  195. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  196. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  197. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  198. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  199. mapInt32Float_ = other.mapInt32Float_.Clone();
  200. mapInt32Double_ = other.mapInt32Double_.Clone();
  201. mapBoolBool_ = other.mapBoolBool_.Clone();
  202. mapStringString_ = other.mapStringString_.Clone();
  203. mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
  204. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  205. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  208. public TestMap Clone() {
  209. return new TestMap(this);
  210. }
  211. /// <summary>Field number for the "map_int32_int32" field.</summary>
  212. public const int MapInt32Int32FieldNumber = 1;
  213. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  214. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  215. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  217. public pbc::MapField<int, int> MapInt32Int32 {
  218. get { return mapInt32Int32_; }
  219. }
  220. /// <summary>Field number for the "map_int64_int64" field.</summary>
  221. public const int MapInt64Int64FieldNumber = 2;
  222. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  223. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  224. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. public pbc::MapField<long, long> MapInt64Int64 {
  227. get { return mapInt64Int64_; }
  228. }
  229. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  230. public const int MapUint32Uint32FieldNumber = 3;
  231. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  232. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  233. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. public pbc::MapField<uint, uint> MapUint32Uint32 {
  236. get { return mapUint32Uint32_; }
  237. }
  238. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  239. public const int MapUint64Uint64FieldNumber = 4;
  240. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  241. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  242. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  244. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  245. get { return mapUint64Uint64_; }
  246. }
  247. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  248. public const int MapSint32Sint32FieldNumber = 5;
  249. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  250. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  251. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. public pbc::MapField<int, int> MapSint32Sint32 {
  254. get { return mapSint32Sint32_; }
  255. }
  256. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  257. public const int MapSint64Sint64FieldNumber = 6;
  258. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  259. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  260. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  262. public pbc::MapField<long, long> MapSint64Sint64 {
  263. get { return mapSint64Sint64_; }
  264. }
  265. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  266. public const int MapFixed32Fixed32FieldNumber = 7;
  267. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  268. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  269. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  271. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  272. get { return mapFixed32Fixed32_; }
  273. }
  274. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  275. public const int MapFixed64Fixed64FieldNumber = 8;
  276. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  277. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  278. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  281. get { return mapFixed64Fixed64_; }
  282. }
  283. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  284. public const int MapSfixed32Sfixed32FieldNumber = 9;
  285. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  286. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  287. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  289. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  290. get { return mapSfixed32Sfixed32_; }
  291. }
  292. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  293. public const int MapSfixed64Sfixed64FieldNumber = 10;
  294. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  295. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  296. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  298. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  299. get { return mapSfixed64Sfixed64_; }
  300. }
  301. /// <summary>Field number for the "map_int32_float" field.</summary>
  302. public const int MapInt32FloatFieldNumber = 11;
  303. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  304. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  305. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public pbc::MapField<int, float> MapInt32Float {
  308. get { return mapInt32Float_; }
  309. }
  310. /// <summary>Field number for the "map_int32_double" field.</summary>
  311. public const int MapInt32DoubleFieldNumber = 12;
  312. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  313. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  314. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  316. public pbc::MapField<int, double> MapInt32Double {
  317. get { return mapInt32Double_; }
  318. }
  319. /// <summary>Field number for the "map_bool_bool" field.</summary>
  320. public const int MapBoolBoolFieldNumber = 13;
  321. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  322. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  323. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  325. public pbc::MapField<bool, bool> MapBoolBool {
  326. get { return mapBoolBool_; }
  327. }
  328. /// <summary>Field number for the "map_string_string" field.</summary>
  329. public const int MapStringStringFieldNumber = 14;
  330. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  331. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
  332. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  334. public pbc::MapField<string, string> MapStringString {
  335. get { return mapStringString_; }
  336. }
  337. /// <summary>Field number for the "map_int32_bytes" field.</summary>
  338. public const int MapInt32BytesFieldNumber = 15;
  339. private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
  340. = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
  341. private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
  344. get { return mapInt32Bytes_; }
  345. }
  346. /// <summary>Field number for the "map_int32_enum" field.</summary>
  347. public const int MapInt32EnumFieldNumber = 16;
  348. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  349. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
  350. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  353. get { return mapInt32Enum_; }
  354. }
  355. /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
  356. public const int MapInt32ForeignMessageFieldNumber = 17;
  357. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  358. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
  359. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  361. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  362. get { return mapInt32ForeignMessage_; }
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  365. public override bool Equals(object other) {
  366. return Equals(other as TestMap);
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. public bool Equals(TestMap other) {
  370. if (ReferenceEquals(other, null)) {
  371. return false;
  372. }
  373. if (ReferenceEquals(other, this)) {
  374. return true;
  375. }
  376. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  377. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  378. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  379. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  380. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  381. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  382. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  383. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  384. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  385. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  386. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  387. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  388. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  389. if (!MapStringString.Equals(other.MapStringString)) return false;
  390. if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
  391. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  392. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  393. return true;
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  396. public override int GetHashCode() {
  397. int hash = 1;
  398. hash ^= MapInt32Int32.GetHashCode();
  399. hash ^= MapInt64Int64.GetHashCode();
  400. hash ^= MapUint32Uint32.GetHashCode();
  401. hash ^= MapUint64Uint64.GetHashCode();
  402. hash ^= MapSint32Sint32.GetHashCode();
  403. hash ^= MapSint64Sint64.GetHashCode();
  404. hash ^= MapFixed32Fixed32.GetHashCode();
  405. hash ^= MapFixed64Fixed64.GetHashCode();
  406. hash ^= MapSfixed32Sfixed32.GetHashCode();
  407. hash ^= MapSfixed64Sfixed64.GetHashCode();
  408. hash ^= MapInt32Float.GetHashCode();
  409. hash ^= MapInt32Double.GetHashCode();
  410. hash ^= MapBoolBool.GetHashCode();
  411. hash ^= MapStringString.GetHashCode();
  412. hash ^= MapInt32Bytes.GetHashCode();
  413. hash ^= MapInt32Enum.GetHashCode();
  414. hash ^= MapInt32ForeignMessage.GetHashCode();
  415. return hash;
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  418. public override string ToString() {
  419. return pb::JsonFormatter.ToDiagnosticString(this);
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  422. public void WriteTo(pb::CodedOutputStream output) {
  423. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  424. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  425. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  426. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  427. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  428. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  429. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  430. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  431. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  432. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  433. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  434. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  435. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  436. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  437. mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
  438. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  439. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  440. }
  441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  442. public int CalculateSize() {
  443. int size = 0;
  444. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  445. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  446. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  447. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  448. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  449. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  450. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  451. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  452. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  453. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  454. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  455. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  456. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  457. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  458. size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
  459. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  460. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  461. return size;
  462. }
  463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  464. public void MergeFrom(TestMap other) {
  465. if (other == null) {
  466. return;
  467. }
  468. mapInt32Int32_.Add(other.mapInt32Int32_);
  469. mapInt64Int64_.Add(other.mapInt64Int64_);
  470. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  471. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  472. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  473. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  474. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  475. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  476. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  477. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  478. mapInt32Float_.Add(other.mapInt32Float_);
  479. mapInt32Double_.Add(other.mapInt32Double_);
  480. mapBoolBool_.Add(other.mapBoolBool_);
  481. mapStringString_.Add(other.mapStringString_);
  482. mapInt32Bytes_.Add(other.mapInt32Bytes_);
  483. mapInt32Enum_.Add(other.mapInt32Enum_);
  484. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  487. public void MergeFrom(pb::CodedInputStream input) {
  488. uint tag;
  489. while ((tag = input.ReadTag()) != 0) {
  490. switch(tag) {
  491. default:
  492. input.SkipLastField();
  493. break;
  494. case 10: {
  495. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  496. break;
  497. }
  498. case 18: {
  499. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  500. break;
  501. }
  502. case 26: {
  503. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  504. break;
  505. }
  506. case 34: {
  507. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  508. break;
  509. }
  510. case 42: {
  511. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  512. break;
  513. }
  514. case 50: {
  515. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  516. break;
  517. }
  518. case 58: {
  519. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  520. break;
  521. }
  522. case 66: {
  523. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  524. break;
  525. }
  526. case 74: {
  527. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  528. break;
  529. }
  530. case 82: {
  531. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  532. break;
  533. }
  534. case 90: {
  535. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  536. break;
  537. }
  538. case 98: {
  539. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  540. break;
  541. }
  542. case 106: {
  543. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  544. break;
  545. }
  546. case 114: {
  547. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  548. break;
  549. }
  550. case 122: {
  551. mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
  552. break;
  553. }
  554. case 130: {
  555. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  556. break;
  557. }
  558. case 138: {
  559. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  560. break;
  561. }
  562. }
  563. }
  564. }
  565. }
  566. public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
  567. private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  569. public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  571. public static pbr::MessageDescriptor Descriptor {
  572. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. pbr::MessageDescriptor pb::IMessage.Descriptor {
  576. get { return Descriptor; }
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  579. public TestMapSubmessage() {
  580. OnConstruction();
  581. }
  582. partial void OnConstruction();
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. public TestMapSubmessage(TestMapSubmessage other) : this() {
  585. TestMap = other.testMap_ != null ? other.TestMap.Clone() : null;
  586. }
  587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  588. public TestMapSubmessage Clone() {
  589. return new TestMapSubmessage(this);
  590. }
  591. /// <summary>Field number for the "test_map" field.</summary>
  592. public const int TestMapFieldNumber = 1;
  593. private global::Google.Protobuf.TestProtos.TestMap testMap_;
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  595. public global::Google.Protobuf.TestProtos.TestMap TestMap {
  596. get { return testMap_; }
  597. set {
  598. testMap_ = value;
  599. }
  600. }
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  602. public override bool Equals(object other) {
  603. return Equals(other as TestMapSubmessage);
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  606. public bool Equals(TestMapSubmessage other) {
  607. if (ReferenceEquals(other, null)) {
  608. return false;
  609. }
  610. if (ReferenceEquals(other, this)) {
  611. return true;
  612. }
  613. if (!object.Equals(TestMap, other.TestMap)) return false;
  614. return true;
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public override int GetHashCode() {
  618. int hash = 1;
  619. if (testMap_ != null) hash ^= TestMap.GetHashCode();
  620. return hash;
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public override string ToString() {
  624. return pb::JsonFormatter.ToDiagnosticString(this);
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  627. public void WriteTo(pb::CodedOutputStream output) {
  628. if (testMap_ != null) {
  629. output.WriteRawTag(10);
  630. output.WriteMessage(TestMap);
  631. }
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  634. public int CalculateSize() {
  635. int size = 0;
  636. if (testMap_ != null) {
  637. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
  638. }
  639. return size;
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. public void MergeFrom(TestMapSubmessage other) {
  643. if (other == null) {
  644. return;
  645. }
  646. if (other.testMap_ != null) {
  647. if (testMap_ == null) {
  648. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  649. }
  650. TestMap.MergeFrom(other.TestMap);
  651. }
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  654. public void MergeFrom(pb::CodedInputStream input) {
  655. uint tag;
  656. while ((tag = input.ReadTag()) != 0) {
  657. switch(tag) {
  658. default:
  659. input.SkipLastField();
  660. break;
  661. case 10: {
  662. if (testMap_ == null) {
  663. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  664. }
  665. input.ReadMessage(testMap_);
  666. break;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
  673. private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  675. public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  677. public static pbr::MessageDescriptor Descriptor {
  678. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  681. pbr::MessageDescriptor pb::IMessage.Descriptor {
  682. get { return Descriptor; }
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  685. public TestMessageMap() {
  686. OnConstruction();
  687. }
  688. partial void OnConstruction();
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  690. public TestMessageMap(TestMessageMap other) : this() {
  691. mapInt32Message_ = other.mapInt32Message_.Clone();
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  694. public TestMessageMap Clone() {
  695. return new TestMessageMap(this);
  696. }
  697. /// <summary>Field number for the "map_int32_message" field.</summary>
  698. public const int MapInt32MessageFieldNumber = 1;
  699. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
  700. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
  701. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  703. public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
  704. get { return mapInt32Message_; }
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  707. public override bool Equals(object other) {
  708. return Equals(other as TestMessageMap);
  709. }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. public bool Equals(TestMessageMap other) {
  712. if (ReferenceEquals(other, null)) {
  713. return false;
  714. }
  715. if (ReferenceEquals(other, this)) {
  716. return true;
  717. }
  718. if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
  719. return true;
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  722. public override int GetHashCode() {
  723. int hash = 1;
  724. hash ^= MapInt32Message.GetHashCode();
  725. return hash;
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  728. public override string ToString() {
  729. return pb::JsonFormatter.ToDiagnosticString(this);
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  732. public void WriteTo(pb::CodedOutputStream output) {
  733. mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  736. public int CalculateSize() {
  737. int size = 0;
  738. size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
  739. return size;
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  742. public void MergeFrom(TestMessageMap other) {
  743. if (other == null) {
  744. return;
  745. }
  746. mapInt32Message_.Add(other.mapInt32Message_);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public void MergeFrom(pb::CodedInputStream input) {
  750. uint tag;
  751. while ((tag = input.ReadTag()) != 0) {
  752. switch(tag) {
  753. default:
  754. input.SkipLastField();
  755. break;
  756. case 10: {
  757. mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
  758. break;
  759. }
  760. }
  761. }
  762. }
  763. }
  764. /// <summary>
  765. /// Two map fields share the same entry default instance.
  766. /// </summary>
  767. public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
  768. private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  772. public static pbr::MessageDescriptor Descriptor {
  773. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  776. pbr::MessageDescriptor pb::IMessage.Descriptor {
  777. get { return Descriptor; }
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  780. public TestSameTypeMap() {
  781. OnConstruction();
  782. }
  783. partial void OnConstruction();
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  785. public TestSameTypeMap(TestSameTypeMap other) : this() {
  786. map1_ = other.map1_.Clone();
  787. map2_ = other.map2_.Clone();
  788. }
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  790. public TestSameTypeMap Clone() {
  791. return new TestSameTypeMap(this);
  792. }
  793. /// <summary>Field number for the "map1" field.</summary>
  794. public const int Map1FieldNumber = 1;
  795. private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
  796. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  797. private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  799. public pbc::MapField<int, int> Map1 {
  800. get { return map1_; }
  801. }
  802. /// <summary>Field number for the "map2" field.</summary>
  803. public const int Map2FieldNumber = 2;
  804. private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
  805. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
  806. private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  808. public pbc::MapField<int, int> Map2 {
  809. get { return map2_; }
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  812. public override bool Equals(object other) {
  813. return Equals(other as TestSameTypeMap);
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  816. public bool Equals(TestSameTypeMap other) {
  817. if (ReferenceEquals(other, null)) {
  818. return false;
  819. }
  820. if (ReferenceEquals(other, this)) {
  821. return true;
  822. }
  823. if (!Map1.Equals(other.Map1)) return false;
  824. if (!Map2.Equals(other.Map2)) return false;
  825. return true;
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  828. public override int GetHashCode() {
  829. int hash = 1;
  830. hash ^= Map1.GetHashCode();
  831. hash ^= Map2.GetHashCode();
  832. return hash;
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  835. public override string ToString() {
  836. return pb::JsonFormatter.ToDiagnosticString(this);
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  839. public void WriteTo(pb::CodedOutputStream output) {
  840. map1_.WriteTo(output, _map_map1_codec);
  841. map2_.WriteTo(output, _map_map2_codec);
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  844. public int CalculateSize() {
  845. int size = 0;
  846. size += map1_.CalculateSize(_map_map1_codec);
  847. size += map2_.CalculateSize(_map_map2_codec);
  848. return size;
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. public void MergeFrom(TestSameTypeMap other) {
  852. if (other == null) {
  853. return;
  854. }
  855. map1_.Add(other.map1_);
  856. map2_.Add(other.map2_);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public void MergeFrom(pb::CodedInputStream input) {
  860. uint tag;
  861. while ((tag = input.ReadTag()) != 0) {
  862. switch(tag) {
  863. default:
  864. input.SkipLastField();
  865. break;
  866. case 10: {
  867. map1_.AddEntriesFrom(input, _map_map1_codec);
  868. break;
  869. }
  870. case 18: {
  871. map2_.AddEntriesFrom(input, _map_map2_codec);
  872. break;
  873. }
  874. }
  875. }
  876. }
  877. }
  878. public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
  879. private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. public static pbr::MessageDescriptor Descriptor {
  884. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  887. pbr::MessageDescriptor pb::IMessage.Descriptor {
  888. get { return Descriptor; }
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  891. public TestArenaMap() {
  892. OnConstruction();
  893. }
  894. partial void OnConstruction();
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  896. public TestArenaMap(TestArenaMap other) : this() {
  897. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  898. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  899. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  900. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  901. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  902. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  903. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  904. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  905. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  906. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  907. mapInt32Float_ = other.mapInt32Float_.Clone();
  908. mapInt32Double_ = other.mapInt32Double_.Clone();
  909. mapBoolBool_ = other.mapBoolBool_.Clone();
  910. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  911. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  914. public TestArenaMap Clone() {
  915. return new TestArenaMap(this);
  916. }
  917. /// <summary>Field number for the "map_int32_int32" field.</summary>
  918. public const int MapInt32Int32FieldNumber = 1;
  919. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  920. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  921. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  923. public pbc::MapField<int, int> MapInt32Int32 {
  924. get { return mapInt32Int32_; }
  925. }
  926. /// <summary>Field number for the "map_int64_int64" field.</summary>
  927. public const int MapInt64Int64FieldNumber = 2;
  928. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  929. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  930. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  932. public pbc::MapField<long, long> MapInt64Int64 {
  933. get { return mapInt64Int64_; }
  934. }
  935. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  936. public const int MapUint32Uint32FieldNumber = 3;
  937. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  938. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  939. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  941. public pbc::MapField<uint, uint> MapUint32Uint32 {
  942. get { return mapUint32Uint32_; }
  943. }
  944. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  945. public const int MapUint64Uint64FieldNumber = 4;
  946. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  947. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  948. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  950. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  951. get { return mapUint64Uint64_; }
  952. }
  953. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  954. public const int MapSint32Sint32FieldNumber = 5;
  955. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  956. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  957. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  959. public pbc::MapField<int, int> MapSint32Sint32 {
  960. get { return mapSint32Sint32_; }
  961. }
  962. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  963. public const int MapSint64Sint64FieldNumber = 6;
  964. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  965. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  966. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  968. public pbc::MapField<long, long> MapSint64Sint64 {
  969. get { return mapSint64Sint64_; }
  970. }
  971. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  972. public const int MapFixed32Fixed32FieldNumber = 7;
  973. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  974. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  975. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  977. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  978. get { return mapFixed32Fixed32_; }
  979. }
  980. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  981. public const int MapFixed64Fixed64FieldNumber = 8;
  982. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  983. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  984. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  986. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  987. get { return mapFixed64Fixed64_; }
  988. }
  989. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  990. public const int MapSfixed32Sfixed32FieldNumber = 9;
  991. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  992. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  993. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  996. get { return mapSfixed32Sfixed32_; }
  997. }
  998. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  999. public const int MapSfixed64Sfixed64FieldNumber = 10;
  1000. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  1001. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  1002. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1004. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  1005. get { return mapSfixed64Sfixed64_; }
  1006. }
  1007. /// <summary>Field number for the "map_int32_float" field.</summary>
  1008. public const int MapInt32FloatFieldNumber = 11;
  1009. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  1010. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  1011. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1013. public pbc::MapField<int, float> MapInt32Float {
  1014. get { return mapInt32Float_; }
  1015. }
  1016. /// <summary>Field number for the "map_int32_double" field.</summary>
  1017. public const int MapInt32DoubleFieldNumber = 12;
  1018. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  1019. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  1020. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1022. public pbc::MapField<int, double> MapInt32Double {
  1023. get { return mapInt32Double_; }
  1024. }
  1025. /// <summary>Field number for the "map_bool_bool" field.</summary>
  1026. public const int MapBoolBoolFieldNumber = 13;
  1027. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  1028. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  1029. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1031. public pbc::MapField<bool, bool> MapBoolBool {
  1032. get { return mapBoolBool_; }
  1033. }
  1034. /// <summary>Field number for the "map_int32_enum" field.</summary>
  1035. public const int MapInt32EnumFieldNumber = 14;
  1036. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  1037. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
  1038. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1040. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  1041. get { return mapInt32Enum_; }
  1042. }
  1043. /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
  1044. public const int MapInt32ForeignMessageFieldNumber = 15;
  1045. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  1046. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
  1047. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1049. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  1050. get { return mapInt32ForeignMessage_; }
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1053. public override bool Equals(object other) {
  1054. return Equals(other as TestArenaMap);
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. public bool Equals(TestArenaMap other) {
  1058. if (ReferenceEquals(other, null)) {
  1059. return false;
  1060. }
  1061. if (ReferenceEquals(other, this)) {
  1062. return true;
  1063. }
  1064. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1065. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1066. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1067. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1068. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1069. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1070. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1071. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1072. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1073. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1074. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1075. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1076. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1077. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  1078. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  1079. return true;
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1082. public override int GetHashCode() {
  1083. int hash = 1;
  1084. hash ^= MapInt32Int32.GetHashCode();
  1085. hash ^= MapInt64Int64.GetHashCode();
  1086. hash ^= MapUint32Uint32.GetHashCode();
  1087. hash ^= MapUint64Uint64.GetHashCode();
  1088. hash ^= MapSint32Sint32.GetHashCode();
  1089. hash ^= MapSint64Sint64.GetHashCode();
  1090. hash ^= MapFixed32Fixed32.GetHashCode();
  1091. hash ^= MapFixed64Fixed64.GetHashCode();
  1092. hash ^= MapSfixed32Sfixed32.GetHashCode();
  1093. hash ^= MapSfixed64Sfixed64.GetHashCode();
  1094. hash ^= MapInt32Float.GetHashCode();
  1095. hash ^= MapInt32Double.GetHashCode();
  1096. hash ^= MapBoolBool.GetHashCode();
  1097. hash ^= MapInt32Enum.GetHashCode();
  1098. hash ^= MapInt32ForeignMessage.GetHashCode();
  1099. return hash;
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1102. public override string ToString() {
  1103. return pb::JsonFormatter.ToDiagnosticString(this);
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1106. public void WriteTo(pb::CodedOutputStream output) {
  1107. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  1108. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  1109. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  1110. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  1111. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  1112. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  1113. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  1114. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  1115. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  1116. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  1117. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  1118. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  1119. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  1120. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  1121. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1124. public int CalculateSize() {
  1125. int size = 0;
  1126. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  1127. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  1128. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  1129. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  1130. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  1131. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  1132. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  1133. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  1134. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  1135. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  1136. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  1137. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  1138. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  1139. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  1140. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  1141. return size;
  1142. }
  1143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1144. public void MergeFrom(TestArenaMap other) {
  1145. if (other == null) {
  1146. return;
  1147. }
  1148. mapInt32Int32_.Add(other.mapInt32Int32_);
  1149. mapInt64Int64_.Add(other.mapInt64Int64_);
  1150. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  1151. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  1152. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  1153. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  1154. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  1155. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  1156. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  1157. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  1158. mapInt32Float_.Add(other.mapInt32Float_);
  1159. mapInt32Double_.Add(other.mapInt32Double_);
  1160. mapBoolBool_.Add(other.mapBoolBool_);
  1161. mapInt32Enum_.Add(other.mapInt32Enum_);
  1162. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1165. public void MergeFrom(pb::CodedInputStream input) {
  1166. uint tag;
  1167. while ((tag = input.ReadTag()) != 0) {
  1168. switch(tag) {
  1169. default:
  1170. input.SkipLastField();
  1171. break;
  1172. case 10: {
  1173. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  1174. break;
  1175. }
  1176. case 18: {
  1177. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  1178. break;
  1179. }
  1180. case 26: {
  1181. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  1182. break;
  1183. }
  1184. case 34: {
  1185. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  1186. break;
  1187. }
  1188. case 42: {
  1189. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  1190. break;
  1191. }
  1192. case 50: {
  1193. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  1194. break;
  1195. }
  1196. case 58: {
  1197. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  1198. break;
  1199. }
  1200. case 66: {
  1201. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  1202. break;
  1203. }
  1204. case 74: {
  1205. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  1206. break;
  1207. }
  1208. case 82: {
  1209. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  1210. break;
  1211. }
  1212. case 90: {
  1213. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  1214. break;
  1215. }
  1216. case 98: {
  1217. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  1218. break;
  1219. }
  1220. case 106: {
  1221. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  1222. break;
  1223. }
  1224. case 114: {
  1225. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  1226. break;
  1227. }
  1228. case 122: {
  1229. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  1230. break;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. }
  1236. /// <summary>
  1237. /// Previously, message containing enum called Type cannot be used as value of
  1238. /// map field.
  1239. /// </summary>
  1240. public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
  1241. private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1243. public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1245. public static pbr::MessageDescriptor Descriptor {
  1246. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1249. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1250. get { return Descriptor; }
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1253. public MessageContainingEnumCalledType() {
  1254. OnConstruction();
  1255. }
  1256. partial void OnConstruction();
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1258. public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
  1259. type_ = other.type_.Clone();
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1262. public MessageContainingEnumCalledType Clone() {
  1263. return new MessageContainingEnumCalledType(this);
  1264. }
  1265. /// <summary>Field number for the "type" field.</summary>
  1266. public const int TypeFieldNumber = 1;
  1267. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
  1268. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
  1269. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1271. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
  1272. get { return type_; }
  1273. }
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1275. public override bool Equals(object other) {
  1276. return Equals(other as MessageContainingEnumCalledType);
  1277. }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1279. public bool Equals(MessageContainingEnumCalledType other) {
  1280. if (ReferenceEquals(other, null)) {
  1281. return false;
  1282. }
  1283. if (ReferenceEquals(other, this)) {
  1284. return true;
  1285. }
  1286. if (!Type.Equals(other.Type)) return false;
  1287. return true;
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1290. public override int GetHashCode() {
  1291. int hash = 1;
  1292. hash ^= Type.GetHashCode();
  1293. return hash;
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1296. public override string ToString() {
  1297. return pb::JsonFormatter.ToDiagnosticString(this);
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1300. public void WriteTo(pb::CodedOutputStream output) {
  1301. type_.WriteTo(output, _map_type_codec);
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1304. public int CalculateSize() {
  1305. int size = 0;
  1306. size += type_.CalculateSize(_map_type_codec);
  1307. return size;
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1310. public void MergeFrom(MessageContainingEnumCalledType other) {
  1311. if (other == null) {
  1312. return;
  1313. }
  1314. type_.Add(other.type_);
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1317. public void MergeFrom(pb::CodedInputStream input) {
  1318. uint tag;
  1319. while ((tag = input.ReadTag()) != 0) {
  1320. switch(tag) {
  1321. default:
  1322. input.SkipLastField();
  1323. break;
  1324. case 10: {
  1325. type_.AddEntriesFrom(input, _map_type_codec);
  1326. break;
  1327. }
  1328. }
  1329. }
  1330. }
  1331. #region Nested types
  1332. /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1334. public static partial class Types {
  1335. public enum Type {
  1336. [pbr::OriginalName("TYPE_FOO")] Foo = 0,
  1337. }
  1338. }
  1339. #endregion
  1340. }
  1341. /// <summary>
  1342. /// Previously, message cannot contain map field called "entry".
  1343. /// </summary>
  1344. public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
  1345. private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1347. public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1349. public static pbr::MessageDescriptor Descriptor {
  1350. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1353. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1354. get { return Descriptor; }
  1355. }
  1356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1357. public MessageContainingMapCalledEntry() {
  1358. OnConstruction();
  1359. }
  1360. partial void OnConstruction();
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1362. public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
  1363. entry_ = other.entry_.Clone();
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1366. public MessageContainingMapCalledEntry Clone() {
  1367. return new MessageContainingMapCalledEntry(this);
  1368. }
  1369. /// <summary>Field number for the "entry" field.</summary>
  1370. public const int EntryFieldNumber = 1;
  1371. private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
  1372. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  1373. private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1375. public pbc::MapField<int, int> Entry {
  1376. get { return entry_; }
  1377. }
  1378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1379. public override bool Equals(object other) {
  1380. return Equals(other as MessageContainingMapCalledEntry);
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. public bool Equals(MessageContainingMapCalledEntry other) {
  1384. if (ReferenceEquals(other, null)) {
  1385. return false;
  1386. }
  1387. if (ReferenceEquals(other, this)) {
  1388. return true;
  1389. }
  1390. if (!Entry.Equals(other.Entry)) return false;
  1391. return true;
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1394. public override int GetHashCode() {
  1395. int hash = 1;
  1396. hash ^= Entry.GetHashCode();
  1397. return hash;
  1398. }
  1399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1400. public override string ToString() {
  1401. return pb::JsonFormatter.ToDiagnosticString(this);
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1404. public void WriteTo(pb::CodedOutputStream output) {
  1405. entry_.WriteTo(output, _map_entry_codec);
  1406. }
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1408. public int CalculateSize() {
  1409. int size = 0;
  1410. size += entry_.CalculateSize(_map_entry_codec);
  1411. return size;
  1412. }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1414. public void MergeFrom(MessageContainingMapCalledEntry other) {
  1415. if (other == null) {
  1416. return;
  1417. }
  1418. entry_.Add(other.entry_);
  1419. }
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1421. public void MergeFrom(pb::CodedInputStream input) {
  1422. uint tag;
  1423. while ((tag = input.ReadTag()) != 0) {
  1424. switch(tag) {
  1425. default:
  1426. input.SkipLastField();
  1427. break;
  1428. case 10: {
  1429. entry_.AddEntriesFrom(input, _map_entry_codec);
  1430. break;
  1431. }
  1432. }
  1433. }
  1434. }
  1435. }
  1436. #endregion
  1437. }
  1438. #endregion Designer generated code