MapUnittestProto3.cs 88 KB

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