MapUnittestProto3.cs 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/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. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. public static partial class MapUnittestProto3 {
  12. #region Descriptor
  13. public static pbr::FileDescriptor Descriptor {
  14. get { return descriptor; }
  15. }
  16. private static pbr::FileDescriptor descriptor;
  17. static MapUnittestProto3() {
  18. byte[] descriptorData = global::System.Convert.FromBase64String(
  19. string.Concat(
  20. "Cilnb29nbGUvcHJvdG9idWYvbWFwX3VuaXR0ZXN0X3Byb3RvMy5wcm90bxIR",
  21. "cHJvdG9idWZfdW5pdHRlc3QaJWdvb2dsZS9wcm90b2J1Zi91bml0dGVzdF9w",
  22. "cm90bzMucHJvdG8ilhIKB1Rlc3RNYXASRgoPbWFwX2ludDMyX2ludDMyGAEg",
  23. "AygLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkludDMy",
  24. "RW50cnkSRgoPbWFwX2ludDY0X2ludDY0GAIgAygLMi0ucHJvdG9idWZfdW5p",
  25. "dHRlc3QuVGVzdE1hcC5NYXBJbnQ2NEludDY0RW50cnkSSgoRbWFwX3VpbnQz",
  26. "Ml91aW50MzIYAyADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1h",
  27. "cFVpbnQzMlVpbnQzMkVudHJ5EkoKEW1hcF91aW50NjRfdWludDY0GAQgAygL",
  28. "Mi8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBVaW50NjRVaW50NjRF",
  29. "bnRyeRJKChFtYXBfc2ludDMyX3NpbnQzMhgFIAMoCzIvLnByb3RvYnVmX3Vu",
  30. "aXR0ZXN0LlRlc3RNYXAuTWFwU2ludDMyU2ludDMyRW50cnkSSgoRbWFwX3Np",
  31. "bnQ2NF9zaW50NjQYBiADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFw",
  32. "Lk1hcFNpbnQ2NFNpbnQ2NEVudHJ5Ek4KE21hcF9maXhlZDMyX2ZpeGVkMzIY",
  33. "ByADKAsyMS5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1hcEZpeGVkMzJG",
  34. "aXhlZDMyRW50cnkSTgoTbWFwX2ZpeGVkNjRfZml4ZWQ2NBgIIAMoCzIxLnBy",
  35. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RNYXAuTWFwRml4ZWQ2NEZpeGVkNjRFbnRy",
  36. "eRJSChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYCSADKAsyMy5wcm90b2J1Zl91",
  37. "bml0dGVzdC5UZXN0TWFwLk1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRJSChVt",
  38. "YXBfc2ZpeGVkNjRfc2ZpeGVkNjQYCiADKAsyMy5wcm90b2J1Zl91bml0dGVz",
  39. "dC5UZXN0TWFwLk1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRJGCg9tYXBfaW50",
  40. "MzJfZmxvYXQYCyADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1h",
  41. "cEludDMyRmxvYXRFbnRyeRJIChBtYXBfaW50MzJfZG91YmxlGAwgAygLMi4u",
  42. "cHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkRvdWJsZUVudHJ5",
  43. "EkIKDW1hcF9ib29sX2Jvb2wYDSADKAsyKy5wcm90b2J1Zl91bml0dGVzdC5U",
  44. "ZXN0TWFwLk1hcEJvb2xCb29sRW50cnkSSgoRbWFwX3N0cmluZ19zdHJpbmcY",
  45. "DiADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1hcFN0cmluZ1N0",
  46. "cmluZ0VudHJ5EkYKD21hcF9pbnQzMl9ieXRlcxgPIAMoCzItLnByb3RvYnVm",
  47. "X3VuaXR0ZXN0LlRlc3RNYXAuTWFwSW50MzJCeXRlc0VudHJ5EkQKDm1hcF9p",
  48. "bnQzMl9lbnVtGBAgAygLMiwucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5N",
  49. "YXBJbnQzMkVudW1FbnRyeRJZChltYXBfaW50MzJfZm9yZWlnbl9tZXNzYWdl",
  50. "GBEgAygLMjYucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkZv",
  51. "cmVpZ25NZXNzYWdlRW50cnkaNAoSTWFwSW50MzJJbnQzMkVudHJ5EgsKA2tl",
  52. "eRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFwSW50NjRJbnQ2NEVu",
  53. "dHJ5EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoCOAEaNgoUTWFwVWlu",
  54. "dDMyVWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4",
  55. "ARo2ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkYASABKAQSDQoFdmFs",
  56. "dWUYAiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVudHJ5EgsKA2tleRgB",
  57. "IAEoERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2ludDY0U2ludDY0RW50",
  58. "cnkSCwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4ARo4ChZNYXBGaXhl",
  59. "ZDMyRml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2YWx1ZRgCIAEoBzoC",
  60. "OAEaOAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNrZXkYASABKAYSDQoF",
  61. "dmFsdWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRIL",
  62. "CgNrZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoKGE1hcFNmaXhlZDY0",
  63. "U2ZpeGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFsdWUYAiABKBA6AjgB",
  64. "GjQKEk1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUY",
  65. "AiABKAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkSCwoDa2V5GAEgASgF",
  66. "Eg0KBXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9vbEVudHJ5EgsKA2tl",
  67. "eRgBIAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaNgoUTWFwU3RyaW5nU3RyaW5n",
  68. "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo0ChJNYXBJ",
  69. "bnQzMkJ5dGVzRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgMOgI4",
  70. "ARpPChFNYXBJbnQzMkVudW1FbnRyeRILCgNrZXkYASABKAUSKQoFdmFsdWUY",
  71. "AiABKA4yGi5wcm90b2J1Zl91bml0dGVzdC5NYXBFbnVtOgI4ARpgChtNYXBJ",
  72. "bnQzMkZvcmVpZ25NZXNzYWdlRW50cnkSCwoDa2V5GAEgASgFEjAKBXZhbHVl",
  73. "GAIgASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2U6AjgB",
  74. "IkEKEVRlc3RNYXBTdWJtZXNzYWdlEiwKCHRlc3RfbWFwGAEgASgLMhoucHJv",
  75. "dG9idWZfdW5pdHRlc3QuVGVzdE1hcCK8AQoOVGVzdE1lc3NhZ2VNYXASUQoR",
  76. "bWFwX2ludDMyX21lc3NhZ2UYASADKAsyNi5wcm90b2J1Zl91bml0dGVzdC5U",
  77. "ZXN0TWVzc2FnZU1hcC5NYXBJbnQzMk1lc3NhZ2VFbnRyeRpXChRNYXBJbnQz",
  78. "Mk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAUSLgoFdmFsdWUYAiABKAsyHy5w",
  79. "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXM6AjgBIuMBCg9UZXN0U2Ft",
  80. "ZVR5cGVNYXASOgoEbWFwMRgBIAMoCzIsLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  81. "c3RTYW1lVHlwZU1hcC5NYXAxRW50cnkSOgoEbWFwMhgCIAMoCzIsLnByb3Rv",
  82. "YnVmX3VuaXR0ZXN0LlRlc3RTYW1lVHlwZU1hcC5NYXAyRW50cnkaKwoJTWFw",
  83. "MUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaKwoJTWFw",
  84. "MkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEi5BAKDFRl",
  85. "c3RBcmVuYU1hcBJLCg9tYXBfaW50MzJfaW50MzIYASADKAsyMi5wcm90b2J1",
  86. "Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwSW50MzJJbnQzMkVudHJ5EksK",
  87. "D21hcF9pbnQ2NF9pbnQ2NBgCIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  88. "c3RBcmVuYU1hcC5NYXBJbnQ2NEludDY0RW50cnkSTwoRbWFwX3VpbnQzMl91",
  89. "aW50MzIYAyADKAsyNC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAu",
  90. "TWFwVWludDMyVWludDMyRW50cnkSTwoRbWFwX3VpbnQ2NF91aW50NjQYBCAD",
  91. "KAsyNC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwVWludDY0",
  92. "VWludDY0RW50cnkSTwoRbWFwX3NpbnQzMl9zaW50MzIYBSADKAsyNC5wcm90",
  93. "b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwU2ludDMyU2ludDMyRW50",
  94. "cnkSTwoRbWFwX3NpbnQ2NF9zaW50NjQYBiADKAsyNC5wcm90b2J1Zl91bml0",
  95. "dGVzdC5UZXN0QXJlbmFNYXAuTWFwU2ludDY0U2ludDY0RW50cnkSUwoTbWFw",
  96. "X2ZpeGVkMzJfZml4ZWQzMhgHIAMoCzI2LnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  97. "c3RBcmVuYU1hcC5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5ElMKE21hcF9maXhl",
  98. "ZDY0X2ZpeGVkNjQYCCADKAsyNi5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJl",
  99. "bmFNYXAuTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRJXChVtYXBfc2ZpeGVkMzJf",
  100. "c2ZpeGVkMzIYCSADKAsyOC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFN",
  101. "YXAuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5ElcKFW1hcF9zZml4ZWQ2NF9z",
  102. "Zml4ZWQ2NBgKIAMoCzI4LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBcmVuYU1h",
  103. "cC5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSSwoPbWFwX2ludDMyX2Zsb2F0",
  104. "GAsgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1hcElu",
  105. "dDMyRmxvYXRFbnRyeRJNChBtYXBfaW50MzJfZG91YmxlGAwgAygLMjMucHJv",
  106. "dG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1hcEludDMyRG91YmxlRW50",
  107. "cnkSRwoNbWFwX2Jvb2xfYm9vbBgNIAMoCzIwLnByb3RvYnVmX3VuaXR0ZXN0",
  108. "LlRlc3RBcmVuYU1hcC5NYXBCb29sQm9vbEVudHJ5EkkKDm1hcF9pbnQzMl9l",
  109. "bnVtGA4gAygLMjEucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1h",
  110. "cEludDMyRW51bUVudHJ5El4KGW1hcF9pbnQzMl9mb3JlaWduX21lc3NhZ2UY",
  111. "DyADKAsyOy5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwSW50",
  112. "MzJGb3JlaWduTWVzc2FnZUVudHJ5GjQKEk1hcEludDMySW50MzJFbnRyeRIL",
  113. "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50",
  114. "NjRFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1h",
  115. "cFVpbnQzMlVpbnQzMkVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEo",
  116. "DToCOAEaNgoUTWFwVWludDY0VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0K",
  117. "BXZhbHVlGAIgASgEOgI4ARo2ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNr",
  118. "ZXkYASABKBESDQoFdmFsdWUYAiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2",
  119. "NEVudHJ5EgsKA2tleRgBIAEoEhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFw",
  120. "Rml4ZWQzMkZpeGVkMzJFbnRyeRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiAB",
  121. "KAc6AjgBGjgKFk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgG",
  122. "Eg0KBXZhbHVlGAIgASgGOgI4ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50",
  123. "cnkSCwoDa2V5GAEgASgPEg0KBXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4",
  124. "ZWQ2NFNmaXhlZDY0RW50cnkSCwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQ",
  125. "OgI4ARo0ChJNYXBJbnQzMkZsb2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZh",
  126. "bHVlGAIgASgCOgI4ARo1ChNNYXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgB",
  127. "IAEoBRINCgV2YWx1ZRgCIAEoAToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRIL",
  128. "CgNrZXkYASABKAgSDQoFdmFsdWUYAiABKAg6AjgBGk8KEU1hcEludDMyRW51",
  129. "bUVudHJ5EgsKA2tleRgBIAEoBRIpCgV2YWx1ZRgCIAEoDjIaLnByb3RvYnVm",
  130. "X3VuaXR0ZXN0Lk1hcEVudW06AjgBGmAKG01hcEludDMyRm9yZWlnbk1lc3Nh",
  131. "Z2VFbnRyeRILCgNrZXkYASABKAUSMAoFdmFsdWUYAiABKAsyIS5wcm90b2J1",
  132. "Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZToCOAEi5AEKH01lc3NhZ2VDb250",
  133. "YWluaW5nRW51bUNhbGxlZFR5cGUSSgoEdHlwZRgBIAMoCzI8LnByb3RvYnVm",
  134. "X3VuaXR0ZXN0Lk1lc3NhZ2VDb250YWluaW5nRW51bUNhbGxlZFR5cGUuVHlw",
  135. "ZUVudHJ5Gl8KCVR5cGVFbnRyeRILCgNrZXkYASABKAUSQQoFdmFsdWUYAiAB",
  136. "KAsyMi5wcm90b2J1Zl91bml0dGVzdC5NZXNzYWdlQ29udGFpbmluZ0VudW1D",
  137. "YWxsZWRUeXBlOgI4ASIUCgRUeXBlEgwKCFRZUEVfRk9PEAAinQEKH01lc3Nh",
  138. "Z2VDb250YWluaW5nTWFwQ2FsbGVkRW50cnkSTAoFZW50cnkYASADKAsyPS5w",
  139. "cm90b2J1Zl91bml0dGVzdC5NZXNzYWdlQ29udGFpbmluZ01hcENhbGxlZEVu",
  140. "dHJ5LkVudHJ5RW50cnkaLAoKRW50cnlFbnRyeRILCgNrZXkYASABKAUSDQoF",
  141. "dmFsdWUYAiABKAU6AjgBKj8KB01hcEVudW0SEAoMTUFQX0VOVU1fRk9PEAAS",
  142. "EAoMTUFQX0VOVU1fQkFSEAESEAoMTUFQX0VOVU1fQkFaEAJCIPgBAaoCGkdv",
  143. "b2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zYgZwcm90bzM="));
  144. descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  145. new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor, },
  146. new pbr::GeneratedCodeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, new pbr::GeneratedCodeInfo[] {
  147. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedCodeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  148. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), new[]{ "TestMap" }, null, null, null),
  149. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), new[]{ "MapInt32Message" }, null, null, new pbr::GeneratedCodeInfo[] { null, }),
  150. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), new[]{ "Map1", "Map2" }, null, null, new pbr::GeneratedCodeInfo[] { null, null, }),
  151. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedCodeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  152. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, new pbr::GeneratedCodeInfo[] { null, }),
  153. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), new[]{ "Entry" }, null, null, new pbr::GeneratedCodeInfo[] { null, })
  154. }));
  155. }
  156. #endregion
  157. }
  158. #region Enums
  159. public enum MapEnum {
  160. MAP_ENUM_FOO = 0,
  161. MAP_ENUM_BAR = 1,
  162. MAP_ENUM_BAZ = 2,
  163. }
  164. #endregion
  165. #region Messages
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. public sealed partial class TestMap : pb::IMessage<TestMap> {
  168. private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
  169. public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
  170. public static pbr::MessageDescriptor Descriptor {
  171. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[0]; }
  172. }
  173. pbr::MessageDescriptor pb::IMessage.Descriptor {
  174. get { return Descriptor; }
  175. }
  176. public TestMap() {
  177. OnConstruction();
  178. }
  179. partial void OnConstruction();
  180. public TestMap(TestMap other) : this() {
  181. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  182. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  183. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  184. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  185. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  186. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  187. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  188. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  189. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  190. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  191. mapInt32Float_ = other.mapInt32Float_.Clone();
  192. mapInt32Double_ = other.mapInt32Double_.Clone();
  193. mapBoolBool_ = other.mapBoolBool_.Clone();
  194. mapStringString_ = other.mapStringString_.Clone();
  195. mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
  196. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  197. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  198. }
  199. public TestMap Clone() {
  200. return new TestMap(this);
  201. }
  202. public const int MapInt32Int32FieldNumber = 1;
  203. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  204. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  205. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  206. public pbc::MapField<int, int> MapInt32Int32 {
  207. get { return mapInt32Int32_; }
  208. }
  209. public const int MapInt64Int64FieldNumber = 2;
  210. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  211. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  212. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  213. public pbc::MapField<long, long> MapInt64Int64 {
  214. get { return mapInt64Int64_; }
  215. }
  216. public const int MapUint32Uint32FieldNumber = 3;
  217. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  218. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  219. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  220. public pbc::MapField<uint, uint> MapUint32Uint32 {
  221. get { return mapUint32Uint32_; }
  222. }
  223. public const int MapUint64Uint64FieldNumber = 4;
  224. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  225. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  226. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  227. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  228. get { return mapUint64Uint64_; }
  229. }
  230. public const int MapSint32Sint32FieldNumber = 5;
  231. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  232. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  233. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  234. public pbc::MapField<int, int> MapSint32Sint32 {
  235. get { return mapSint32Sint32_; }
  236. }
  237. public const int MapSint64Sint64FieldNumber = 6;
  238. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  239. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  240. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  241. public pbc::MapField<long, long> MapSint64Sint64 {
  242. get { return mapSint64Sint64_; }
  243. }
  244. public const int MapFixed32Fixed32FieldNumber = 7;
  245. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  246. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  247. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  248. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  249. get { return mapFixed32Fixed32_; }
  250. }
  251. public const int MapFixed64Fixed64FieldNumber = 8;
  252. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  253. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  254. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  255. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  256. get { return mapFixed64Fixed64_; }
  257. }
  258. public const int MapSfixed32Sfixed32FieldNumber = 9;
  259. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  260. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  261. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  262. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  263. get { return mapSfixed32Sfixed32_; }
  264. }
  265. public const int MapSfixed64Sfixed64FieldNumber = 10;
  266. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  267. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  268. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  269. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  270. get { return mapSfixed64Sfixed64_; }
  271. }
  272. public const int MapInt32FloatFieldNumber = 11;
  273. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  274. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  275. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  276. public pbc::MapField<int, float> MapInt32Float {
  277. get { return mapInt32Float_; }
  278. }
  279. public const int MapInt32DoubleFieldNumber = 12;
  280. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  281. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  282. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  283. public pbc::MapField<int, double> MapInt32Double {
  284. get { return mapInt32Double_; }
  285. }
  286. public const int MapBoolBoolFieldNumber = 13;
  287. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  288. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  289. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  290. public pbc::MapField<bool, bool> MapBoolBool {
  291. get { return mapBoolBool_; }
  292. }
  293. public const int MapStringStringFieldNumber = 14;
  294. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  295. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
  296. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  297. public pbc::MapField<string, string> MapStringString {
  298. get { return mapStringString_; }
  299. }
  300. public const int MapInt32BytesFieldNumber = 15;
  301. private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
  302. = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
  303. private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
  304. public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
  305. get { return mapInt32Bytes_; }
  306. }
  307. public const int MapInt32EnumFieldNumber = 16;
  308. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  309. = 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);
  310. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  311. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  312. get { return mapInt32Enum_; }
  313. }
  314. public const int MapInt32ForeignMessageFieldNumber = 17;
  315. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  316. = 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);
  317. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  318. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  319. get { return mapInt32ForeignMessage_; }
  320. }
  321. public override bool Equals(object other) {
  322. return Equals(other as TestMap);
  323. }
  324. public bool Equals(TestMap other) {
  325. if (ReferenceEquals(other, null)) {
  326. return false;
  327. }
  328. if (ReferenceEquals(other, this)) {
  329. return true;
  330. }
  331. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  332. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  333. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  334. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  335. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  336. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  337. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  338. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  339. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  340. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  341. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  342. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  343. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  344. if (!MapStringString.Equals(other.MapStringString)) return false;
  345. if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
  346. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  347. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  348. return true;
  349. }
  350. public override int GetHashCode() {
  351. int hash = 1;
  352. hash ^= MapInt32Int32.GetHashCode();
  353. hash ^= MapInt64Int64.GetHashCode();
  354. hash ^= MapUint32Uint32.GetHashCode();
  355. hash ^= MapUint64Uint64.GetHashCode();
  356. hash ^= MapSint32Sint32.GetHashCode();
  357. hash ^= MapSint64Sint64.GetHashCode();
  358. hash ^= MapFixed32Fixed32.GetHashCode();
  359. hash ^= MapFixed64Fixed64.GetHashCode();
  360. hash ^= MapSfixed32Sfixed32.GetHashCode();
  361. hash ^= MapSfixed64Sfixed64.GetHashCode();
  362. hash ^= MapInt32Float.GetHashCode();
  363. hash ^= MapInt32Double.GetHashCode();
  364. hash ^= MapBoolBool.GetHashCode();
  365. hash ^= MapStringString.GetHashCode();
  366. hash ^= MapInt32Bytes.GetHashCode();
  367. hash ^= MapInt32Enum.GetHashCode();
  368. hash ^= MapInt32ForeignMessage.GetHashCode();
  369. return hash;
  370. }
  371. public override string ToString() {
  372. return pb::JsonFormatter.Default.Format(this);
  373. }
  374. public void WriteTo(pb::CodedOutputStream output) {
  375. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  376. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  377. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  378. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  379. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  380. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  381. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  382. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  383. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  384. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  385. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  386. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  387. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  388. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  389. mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
  390. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  391. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  392. }
  393. public int CalculateSize() {
  394. int size = 0;
  395. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  396. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  397. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  398. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  399. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  400. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  401. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  402. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  403. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  404. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  405. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  406. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  407. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  408. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  409. size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
  410. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  411. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  412. return size;
  413. }
  414. public void MergeFrom(TestMap other) {
  415. if (other == null) {
  416. return;
  417. }
  418. mapInt32Int32_.Add(other.mapInt32Int32_);
  419. mapInt64Int64_.Add(other.mapInt64Int64_);
  420. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  421. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  422. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  423. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  424. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  425. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  426. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  427. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  428. mapInt32Float_.Add(other.mapInt32Float_);
  429. mapInt32Double_.Add(other.mapInt32Double_);
  430. mapBoolBool_.Add(other.mapBoolBool_);
  431. mapStringString_.Add(other.mapStringString_);
  432. mapInt32Bytes_.Add(other.mapInt32Bytes_);
  433. mapInt32Enum_.Add(other.mapInt32Enum_);
  434. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  435. }
  436. public void MergeFrom(pb::CodedInputStream input) {
  437. uint tag;
  438. while (input.ReadTag(out tag)) {
  439. switch(tag) {
  440. case 0:
  441. throw pb::InvalidProtocolBufferException.InvalidTag();
  442. default:
  443. if (pb::WireFormat.IsEndGroupTag(tag)) {
  444. return;
  445. }
  446. break;
  447. case 10: {
  448. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  449. break;
  450. }
  451. case 18: {
  452. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  453. break;
  454. }
  455. case 26: {
  456. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  457. break;
  458. }
  459. case 34: {
  460. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  461. break;
  462. }
  463. case 42: {
  464. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  465. break;
  466. }
  467. case 50: {
  468. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  469. break;
  470. }
  471. case 58: {
  472. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  473. break;
  474. }
  475. case 66: {
  476. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  477. break;
  478. }
  479. case 74: {
  480. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  481. break;
  482. }
  483. case 82: {
  484. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  485. break;
  486. }
  487. case 90: {
  488. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  489. break;
  490. }
  491. case 98: {
  492. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  493. break;
  494. }
  495. case 106: {
  496. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  497. break;
  498. }
  499. case 114: {
  500. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  501. break;
  502. }
  503. case 122: {
  504. mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
  505. break;
  506. }
  507. case 130: {
  508. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  509. break;
  510. }
  511. case 138: {
  512. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  513. break;
  514. }
  515. }
  516. }
  517. }
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
  521. private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
  522. public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
  523. public static pbr::MessageDescriptor Descriptor {
  524. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[1]; }
  525. }
  526. pbr::MessageDescriptor pb::IMessage.Descriptor {
  527. get { return Descriptor; }
  528. }
  529. public TestMapSubmessage() {
  530. OnConstruction();
  531. }
  532. partial void OnConstruction();
  533. public TestMapSubmessage(TestMapSubmessage other) : this() {
  534. TestMap = other.testMap_ != null ? other.TestMap.Clone() : null;
  535. }
  536. public TestMapSubmessage Clone() {
  537. return new TestMapSubmessage(this);
  538. }
  539. public const int TestMapFieldNumber = 1;
  540. private global::Google.Protobuf.TestProtos.TestMap testMap_;
  541. public global::Google.Protobuf.TestProtos.TestMap TestMap {
  542. get { return testMap_; }
  543. set {
  544. testMap_ = value;
  545. }
  546. }
  547. public override bool Equals(object other) {
  548. return Equals(other as TestMapSubmessage);
  549. }
  550. public bool Equals(TestMapSubmessage other) {
  551. if (ReferenceEquals(other, null)) {
  552. return false;
  553. }
  554. if (ReferenceEquals(other, this)) {
  555. return true;
  556. }
  557. if (!object.Equals(TestMap, other.TestMap)) return false;
  558. return true;
  559. }
  560. public override int GetHashCode() {
  561. int hash = 1;
  562. if (testMap_ != null) hash ^= TestMap.GetHashCode();
  563. return hash;
  564. }
  565. public override string ToString() {
  566. return pb::JsonFormatter.Default.Format(this);
  567. }
  568. public void WriteTo(pb::CodedOutputStream output) {
  569. if (testMap_ != null) {
  570. output.WriteRawTag(10);
  571. output.WriteMessage(TestMap);
  572. }
  573. }
  574. public int CalculateSize() {
  575. int size = 0;
  576. if (testMap_ != null) {
  577. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
  578. }
  579. return size;
  580. }
  581. public void MergeFrom(TestMapSubmessage other) {
  582. if (other == null) {
  583. return;
  584. }
  585. if (other.testMap_ != null) {
  586. if (testMap_ == null) {
  587. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  588. }
  589. TestMap.MergeFrom(other.TestMap);
  590. }
  591. }
  592. public void MergeFrom(pb::CodedInputStream input) {
  593. uint tag;
  594. while (input.ReadTag(out tag)) {
  595. switch(tag) {
  596. case 0:
  597. throw pb::InvalidProtocolBufferException.InvalidTag();
  598. default:
  599. if (pb::WireFormat.IsEndGroupTag(tag)) {
  600. return;
  601. }
  602. break;
  603. case 10: {
  604. if (testMap_ == null) {
  605. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  606. }
  607. input.ReadMessage(testMap_);
  608. break;
  609. }
  610. }
  611. }
  612. }
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
  616. private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
  617. public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
  618. public static pbr::MessageDescriptor Descriptor {
  619. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[2]; }
  620. }
  621. pbr::MessageDescriptor pb::IMessage.Descriptor {
  622. get { return Descriptor; }
  623. }
  624. public TestMessageMap() {
  625. OnConstruction();
  626. }
  627. partial void OnConstruction();
  628. public TestMessageMap(TestMessageMap other) : this() {
  629. mapInt32Message_ = other.mapInt32Message_.Clone();
  630. }
  631. public TestMessageMap Clone() {
  632. return new TestMessageMap(this);
  633. }
  634. public const int MapInt32MessageFieldNumber = 1;
  635. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
  636. = 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);
  637. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
  638. public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
  639. get { return mapInt32Message_; }
  640. }
  641. public override bool Equals(object other) {
  642. return Equals(other as TestMessageMap);
  643. }
  644. public bool Equals(TestMessageMap other) {
  645. if (ReferenceEquals(other, null)) {
  646. return false;
  647. }
  648. if (ReferenceEquals(other, this)) {
  649. return true;
  650. }
  651. if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
  652. return true;
  653. }
  654. public override int GetHashCode() {
  655. int hash = 1;
  656. hash ^= MapInt32Message.GetHashCode();
  657. return hash;
  658. }
  659. public override string ToString() {
  660. return pb::JsonFormatter.Default.Format(this);
  661. }
  662. public void WriteTo(pb::CodedOutputStream output) {
  663. mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
  664. }
  665. public int CalculateSize() {
  666. int size = 0;
  667. size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
  668. return size;
  669. }
  670. public void MergeFrom(TestMessageMap other) {
  671. if (other == null) {
  672. return;
  673. }
  674. mapInt32Message_.Add(other.mapInt32Message_);
  675. }
  676. public void MergeFrom(pb::CodedInputStream input) {
  677. uint tag;
  678. while (input.ReadTag(out tag)) {
  679. switch(tag) {
  680. case 0:
  681. throw pb::InvalidProtocolBufferException.InvalidTag();
  682. default:
  683. if (pb::WireFormat.IsEndGroupTag(tag)) {
  684. return;
  685. }
  686. break;
  687. case 10: {
  688. mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
  689. break;
  690. }
  691. }
  692. }
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
  697. private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
  698. public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
  699. public static pbr::MessageDescriptor Descriptor {
  700. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[3]; }
  701. }
  702. pbr::MessageDescriptor pb::IMessage.Descriptor {
  703. get { return Descriptor; }
  704. }
  705. public TestSameTypeMap() {
  706. OnConstruction();
  707. }
  708. partial void OnConstruction();
  709. public TestSameTypeMap(TestSameTypeMap other) : this() {
  710. map1_ = other.map1_.Clone();
  711. map2_ = other.map2_.Clone();
  712. }
  713. public TestSameTypeMap Clone() {
  714. return new TestSameTypeMap(this);
  715. }
  716. public const int Map1FieldNumber = 1;
  717. private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
  718. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  719. private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
  720. public pbc::MapField<int, int> Map1 {
  721. get { return map1_; }
  722. }
  723. public const int Map2FieldNumber = 2;
  724. private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
  725. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
  726. private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
  727. public pbc::MapField<int, int> Map2 {
  728. get { return map2_; }
  729. }
  730. public override bool Equals(object other) {
  731. return Equals(other as TestSameTypeMap);
  732. }
  733. public bool Equals(TestSameTypeMap other) {
  734. if (ReferenceEquals(other, null)) {
  735. return false;
  736. }
  737. if (ReferenceEquals(other, this)) {
  738. return true;
  739. }
  740. if (!Map1.Equals(other.Map1)) return false;
  741. if (!Map2.Equals(other.Map2)) return false;
  742. return true;
  743. }
  744. public override int GetHashCode() {
  745. int hash = 1;
  746. hash ^= Map1.GetHashCode();
  747. hash ^= Map2.GetHashCode();
  748. return hash;
  749. }
  750. public override string ToString() {
  751. return pb::JsonFormatter.Default.Format(this);
  752. }
  753. public void WriteTo(pb::CodedOutputStream output) {
  754. map1_.WriteTo(output, _map_map1_codec);
  755. map2_.WriteTo(output, _map_map2_codec);
  756. }
  757. public int CalculateSize() {
  758. int size = 0;
  759. size += map1_.CalculateSize(_map_map1_codec);
  760. size += map2_.CalculateSize(_map_map2_codec);
  761. return size;
  762. }
  763. public void MergeFrom(TestSameTypeMap other) {
  764. if (other == null) {
  765. return;
  766. }
  767. map1_.Add(other.map1_);
  768. map2_.Add(other.map2_);
  769. }
  770. public void MergeFrom(pb::CodedInputStream input) {
  771. uint tag;
  772. while (input.ReadTag(out tag)) {
  773. switch(tag) {
  774. case 0:
  775. throw pb::InvalidProtocolBufferException.InvalidTag();
  776. default:
  777. if (pb::WireFormat.IsEndGroupTag(tag)) {
  778. return;
  779. }
  780. break;
  781. case 10: {
  782. map1_.AddEntriesFrom(input, _map_map1_codec);
  783. break;
  784. }
  785. case 18: {
  786. map2_.AddEntriesFrom(input, _map_map2_codec);
  787. break;
  788. }
  789. }
  790. }
  791. }
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
  795. private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
  796. public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
  797. public static pbr::MessageDescriptor Descriptor {
  798. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[4]; }
  799. }
  800. pbr::MessageDescriptor pb::IMessage.Descriptor {
  801. get { return Descriptor; }
  802. }
  803. public TestArenaMap() {
  804. OnConstruction();
  805. }
  806. partial void OnConstruction();
  807. public TestArenaMap(TestArenaMap other) : this() {
  808. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  809. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  810. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  811. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  812. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  813. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  814. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  815. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  816. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  817. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  818. mapInt32Float_ = other.mapInt32Float_.Clone();
  819. mapInt32Double_ = other.mapInt32Double_.Clone();
  820. mapBoolBool_ = other.mapBoolBool_.Clone();
  821. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  822. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  823. }
  824. public TestArenaMap Clone() {
  825. return new TestArenaMap(this);
  826. }
  827. public const int MapInt32Int32FieldNumber = 1;
  828. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  829. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  830. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  831. public pbc::MapField<int, int> MapInt32Int32 {
  832. get { return mapInt32Int32_; }
  833. }
  834. public const int MapInt64Int64FieldNumber = 2;
  835. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  836. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  837. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  838. public pbc::MapField<long, long> MapInt64Int64 {
  839. get { return mapInt64Int64_; }
  840. }
  841. public const int MapUint32Uint32FieldNumber = 3;
  842. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  843. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  844. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  845. public pbc::MapField<uint, uint> MapUint32Uint32 {
  846. get { return mapUint32Uint32_; }
  847. }
  848. public const int MapUint64Uint64FieldNumber = 4;
  849. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  850. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  851. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  852. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  853. get { return mapUint64Uint64_; }
  854. }
  855. public const int MapSint32Sint32FieldNumber = 5;
  856. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  857. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  858. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  859. public pbc::MapField<int, int> MapSint32Sint32 {
  860. get { return mapSint32Sint32_; }
  861. }
  862. public const int MapSint64Sint64FieldNumber = 6;
  863. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  864. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  865. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  866. public pbc::MapField<long, long> MapSint64Sint64 {
  867. get { return mapSint64Sint64_; }
  868. }
  869. public const int MapFixed32Fixed32FieldNumber = 7;
  870. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  871. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  872. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  873. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  874. get { return mapFixed32Fixed32_; }
  875. }
  876. public const int MapFixed64Fixed64FieldNumber = 8;
  877. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  878. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  879. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  880. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  881. get { return mapFixed64Fixed64_; }
  882. }
  883. public const int MapSfixed32Sfixed32FieldNumber = 9;
  884. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  885. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  886. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  887. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  888. get { return mapSfixed32Sfixed32_; }
  889. }
  890. public const int MapSfixed64Sfixed64FieldNumber = 10;
  891. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  892. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  893. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  894. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  895. get { return mapSfixed64Sfixed64_; }
  896. }
  897. public const int MapInt32FloatFieldNumber = 11;
  898. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  899. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  900. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  901. public pbc::MapField<int, float> MapInt32Float {
  902. get { return mapInt32Float_; }
  903. }
  904. public const int MapInt32DoubleFieldNumber = 12;
  905. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  906. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  907. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  908. public pbc::MapField<int, double> MapInt32Double {
  909. get { return mapInt32Double_; }
  910. }
  911. public const int MapBoolBoolFieldNumber = 13;
  912. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  913. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  914. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  915. public pbc::MapField<bool, bool> MapBoolBool {
  916. get { return mapBoolBool_; }
  917. }
  918. public const int MapInt32EnumFieldNumber = 14;
  919. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  920. = 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);
  921. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  922. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  923. get { return mapInt32Enum_; }
  924. }
  925. public const int MapInt32ForeignMessageFieldNumber = 15;
  926. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  927. = 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);
  928. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  929. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  930. get { return mapInt32ForeignMessage_; }
  931. }
  932. public override bool Equals(object other) {
  933. return Equals(other as TestArenaMap);
  934. }
  935. public bool Equals(TestArenaMap other) {
  936. if (ReferenceEquals(other, null)) {
  937. return false;
  938. }
  939. if (ReferenceEquals(other, this)) {
  940. return true;
  941. }
  942. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  943. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  944. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  945. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  946. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  947. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  948. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  949. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  950. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  951. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  952. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  953. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  954. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  955. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  956. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  957. return true;
  958. }
  959. public override int GetHashCode() {
  960. int hash = 1;
  961. hash ^= MapInt32Int32.GetHashCode();
  962. hash ^= MapInt64Int64.GetHashCode();
  963. hash ^= MapUint32Uint32.GetHashCode();
  964. hash ^= MapUint64Uint64.GetHashCode();
  965. hash ^= MapSint32Sint32.GetHashCode();
  966. hash ^= MapSint64Sint64.GetHashCode();
  967. hash ^= MapFixed32Fixed32.GetHashCode();
  968. hash ^= MapFixed64Fixed64.GetHashCode();
  969. hash ^= MapSfixed32Sfixed32.GetHashCode();
  970. hash ^= MapSfixed64Sfixed64.GetHashCode();
  971. hash ^= MapInt32Float.GetHashCode();
  972. hash ^= MapInt32Double.GetHashCode();
  973. hash ^= MapBoolBool.GetHashCode();
  974. hash ^= MapInt32Enum.GetHashCode();
  975. hash ^= MapInt32ForeignMessage.GetHashCode();
  976. return hash;
  977. }
  978. public override string ToString() {
  979. return pb::JsonFormatter.Default.Format(this);
  980. }
  981. public void WriteTo(pb::CodedOutputStream output) {
  982. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  983. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  984. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  985. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  986. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  987. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  988. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  989. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  990. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  991. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  992. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  993. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  994. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  995. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  996. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  997. }
  998. public int CalculateSize() {
  999. int size = 0;
  1000. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  1001. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  1002. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  1003. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  1004. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  1005. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  1006. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  1007. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  1008. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  1009. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  1010. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  1011. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  1012. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  1013. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  1014. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  1015. return size;
  1016. }
  1017. public void MergeFrom(TestArenaMap other) {
  1018. if (other == null) {
  1019. return;
  1020. }
  1021. mapInt32Int32_.Add(other.mapInt32Int32_);
  1022. mapInt64Int64_.Add(other.mapInt64Int64_);
  1023. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  1024. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  1025. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  1026. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  1027. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  1028. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  1029. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  1030. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  1031. mapInt32Float_.Add(other.mapInt32Float_);
  1032. mapInt32Double_.Add(other.mapInt32Double_);
  1033. mapBoolBool_.Add(other.mapBoolBool_);
  1034. mapInt32Enum_.Add(other.mapInt32Enum_);
  1035. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  1036. }
  1037. public void MergeFrom(pb::CodedInputStream input) {
  1038. uint tag;
  1039. while (input.ReadTag(out tag)) {
  1040. switch(tag) {
  1041. case 0:
  1042. throw pb::InvalidProtocolBufferException.InvalidTag();
  1043. default:
  1044. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1045. return;
  1046. }
  1047. break;
  1048. case 10: {
  1049. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  1050. break;
  1051. }
  1052. case 18: {
  1053. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  1054. break;
  1055. }
  1056. case 26: {
  1057. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  1058. break;
  1059. }
  1060. case 34: {
  1061. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  1062. break;
  1063. }
  1064. case 42: {
  1065. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  1066. break;
  1067. }
  1068. case 50: {
  1069. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  1070. break;
  1071. }
  1072. case 58: {
  1073. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  1074. break;
  1075. }
  1076. case 66: {
  1077. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  1078. break;
  1079. }
  1080. case 74: {
  1081. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  1082. break;
  1083. }
  1084. case 82: {
  1085. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  1086. break;
  1087. }
  1088. case 90: {
  1089. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  1090. break;
  1091. }
  1092. case 98: {
  1093. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  1094. break;
  1095. }
  1096. case 106: {
  1097. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  1098. break;
  1099. }
  1100. case 114: {
  1101. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  1102. break;
  1103. }
  1104. case 122: {
  1105. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  1106. break;
  1107. }
  1108. }
  1109. }
  1110. }
  1111. }
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1113. public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
  1114. private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
  1115. public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
  1116. public static pbr::MessageDescriptor Descriptor {
  1117. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[5]; }
  1118. }
  1119. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1120. get { return Descriptor; }
  1121. }
  1122. public MessageContainingEnumCalledType() {
  1123. OnConstruction();
  1124. }
  1125. partial void OnConstruction();
  1126. public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
  1127. type_ = other.type_.Clone();
  1128. }
  1129. public MessageContainingEnumCalledType Clone() {
  1130. return new MessageContainingEnumCalledType(this);
  1131. }
  1132. public const int TypeFieldNumber = 1;
  1133. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
  1134. = 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);
  1135. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
  1136. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
  1137. get { return type_; }
  1138. }
  1139. public override bool Equals(object other) {
  1140. return Equals(other as MessageContainingEnumCalledType);
  1141. }
  1142. public bool Equals(MessageContainingEnumCalledType other) {
  1143. if (ReferenceEquals(other, null)) {
  1144. return false;
  1145. }
  1146. if (ReferenceEquals(other, this)) {
  1147. return true;
  1148. }
  1149. if (!Type.Equals(other.Type)) return false;
  1150. return true;
  1151. }
  1152. public override int GetHashCode() {
  1153. int hash = 1;
  1154. hash ^= Type.GetHashCode();
  1155. return hash;
  1156. }
  1157. public override string ToString() {
  1158. return pb::JsonFormatter.Default.Format(this);
  1159. }
  1160. public void WriteTo(pb::CodedOutputStream output) {
  1161. type_.WriteTo(output, _map_type_codec);
  1162. }
  1163. public int CalculateSize() {
  1164. int size = 0;
  1165. size += type_.CalculateSize(_map_type_codec);
  1166. return size;
  1167. }
  1168. public void MergeFrom(MessageContainingEnumCalledType other) {
  1169. if (other == null) {
  1170. return;
  1171. }
  1172. type_.Add(other.type_);
  1173. }
  1174. public void MergeFrom(pb::CodedInputStream input) {
  1175. uint tag;
  1176. while (input.ReadTag(out tag)) {
  1177. switch(tag) {
  1178. case 0:
  1179. throw pb::InvalidProtocolBufferException.InvalidTag();
  1180. default:
  1181. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1182. return;
  1183. }
  1184. break;
  1185. case 10: {
  1186. type_.AddEntriesFrom(input, _map_type_codec);
  1187. break;
  1188. }
  1189. }
  1190. }
  1191. }
  1192. #region Nested types
  1193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1194. public static partial class Types {
  1195. public enum Type {
  1196. TYPE_FOO = 0,
  1197. }
  1198. }
  1199. #endregion
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
  1203. private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
  1204. public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
  1205. public static pbr::MessageDescriptor Descriptor {
  1206. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3.Descriptor.MessageTypes[6]; }
  1207. }
  1208. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1209. get { return Descriptor; }
  1210. }
  1211. public MessageContainingMapCalledEntry() {
  1212. OnConstruction();
  1213. }
  1214. partial void OnConstruction();
  1215. public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
  1216. entry_ = other.entry_.Clone();
  1217. }
  1218. public MessageContainingMapCalledEntry Clone() {
  1219. return new MessageContainingMapCalledEntry(this);
  1220. }
  1221. public const int EntryFieldNumber = 1;
  1222. private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
  1223. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  1224. private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
  1225. public pbc::MapField<int, int> Entry {
  1226. get { return entry_; }
  1227. }
  1228. public override bool Equals(object other) {
  1229. return Equals(other as MessageContainingMapCalledEntry);
  1230. }
  1231. public bool Equals(MessageContainingMapCalledEntry other) {
  1232. if (ReferenceEquals(other, null)) {
  1233. return false;
  1234. }
  1235. if (ReferenceEquals(other, this)) {
  1236. return true;
  1237. }
  1238. if (!Entry.Equals(other.Entry)) return false;
  1239. return true;
  1240. }
  1241. public override int GetHashCode() {
  1242. int hash = 1;
  1243. hash ^= Entry.GetHashCode();
  1244. return hash;
  1245. }
  1246. public override string ToString() {
  1247. return pb::JsonFormatter.Default.Format(this);
  1248. }
  1249. public void WriteTo(pb::CodedOutputStream output) {
  1250. entry_.WriteTo(output, _map_entry_codec);
  1251. }
  1252. public int CalculateSize() {
  1253. int size = 0;
  1254. size += entry_.CalculateSize(_map_entry_codec);
  1255. return size;
  1256. }
  1257. public void MergeFrom(MessageContainingMapCalledEntry other) {
  1258. if (other == null) {
  1259. return;
  1260. }
  1261. entry_.Add(other.entry_);
  1262. }
  1263. public void MergeFrom(pb::CodedInputStream input) {
  1264. uint tag;
  1265. while (input.ReadTag(out tag)) {
  1266. switch(tag) {
  1267. case 0:
  1268. throw pb::InvalidProtocolBufferException.InvalidTag();
  1269. default:
  1270. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1271. return;
  1272. }
  1273. break;
  1274. case 10: {
  1275. entry_.AddEntriesFrom(input, _map_entry_codec);
  1276. break;
  1277. }
  1278. }
  1279. }
  1280. }
  1281. }
  1282. #endregion
  1283. }
  1284. #endregion Designer generated code