MapUnittestProto3.cs 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685
  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), }, 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, 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),
  152. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, 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, 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, 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) }, new pbr::GeneratedClrTypeInfo[] { null, }),
  156. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, 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. private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
  174. private pb::UnknownFieldSet _unknownFields;
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  178. public static pbr::MessageDescriptor Descriptor {
  179. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. pbr::MessageDescriptor pb::IMessage.Descriptor {
  183. get { return Descriptor; }
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  186. public TestMap() {
  187. OnConstruction();
  188. }
  189. partial void OnConstruction();
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public TestMap(TestMap other) : this() {
  192. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  193. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  194. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  195. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  196. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  197. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  198. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  199. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  200. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  201. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  202. mapInt32Float_ = other.mapInt32Float_.Clone();
  203. mapInt32Double_ = other.mapInt32Double_.Clone();
  204. mapBoolBool_ = other.mapBoolBool_.Clone();
  205. mapStringString_ = other.mapStringString_.Clone();
  206. mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
  207. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  208. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  209. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  212. public TestMap Clone() {
  213. return new TestMap(this);
  214. }
  215. /// <summary>Field number for the "map_int32_int32" field.</summary>
  216. public const int MapInt32Int32FieldNumber = 1;
  217. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  218. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  219. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  221. public pbc::MapField<int, int> MapInt32Int32 {
  222. get { return mapInt32Int32_; }
  223. }
  224. /// <summary>Field number for the "map_int64_int64" field.</summary>
  225. public const int MapInt64Int64FieldNumber = 2;
  226. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  227. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  228. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  230. public pbc::MapField<long, long> MapInt64Int64 {
  231. get { return mapInt64Int64_; }
  232. }
  233. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  234. public const int MapUint32Uint32FieldNumber = 3;
  235. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  236. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  237. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. public pbc::MapField<uint, uint> MapUint32Uint32 {
  240. get { return mapUint32Uint32_; }
  241. }
  242. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  243. public const int MapUint64Uint64FieldNumber = 4;
  244. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  245. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  246. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  248. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  249. get { return mapUint64Uint64_; }
  250. }
  251. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  252. public const int MapSint32Sint32FieldNumber = 5;
  253. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  254. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  255. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  257. public pbc::MapField<int, int> MapSint32Sint32 {
  258. get { return mapSint32Sint32_; }
  259. }
  260. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  261. public const int MapSint64Sint64FieldNumber = 6;
  262. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  263. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  264. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  266. public pbc::MapField<long, long> MapSint64Sint64 {
  267. get { return mapSint64Sint64_; }
  268. }
  269. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  270. public const int MapFixed32Fixed32FieldNumber = 7;
  271. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  272. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  273. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  275. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  276. get { return mapFixed32Fixed32_; }
  277. }
  278. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  279. public const int MapFixed64Fixed64FieldNumber = 8;
  280. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  281. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  282. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  284. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  285. get { return mapFixed64Fixed64_; }
  286. }
  287. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  288. public const int MapSfixed32Sfixed32FieldNumber = 9;
  289. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  290. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  291. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  293. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  294. get { return mapSfixed32Sfixed32_; }
  295. }
  296. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  297. public const int MapSfixed64Sfixed64FieldNumber = 10;
  298. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  299. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  300. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  302. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  303. get { return mapSfixed64Sfixed64_; }
  304. }
  305. /// <summary>Field number for the "map_int32_float" field.</summary>
  306. public const int MapInt32FloatFieldNumber = 11;
  307. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  308. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  309. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  311. public pbc::MapField<int, float> MapInt32Float {
  312. get { return mapInt32Float_; }
  313. }
  314. /// <summary>Field number for the "map_int32_double" field.</summary>
  315. public const int MapInt32DoubleFieldNumber = 12;
  316. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  317. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  318. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  320. public pbc::MapField<int, double> MapInt32Double {
  321. get { return mapInt32Double_; }
  322. }
  323. /// <summary>Field number for the "map_bool_bool" field.</summary>
  324. public const int MapBoolBoolFieldNumber = 13;
  325. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  326. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  327. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  329. public pbc::MapField<bool, bool> MapBoolBool {
  330. get { return mapBoolBool_; }
  331. }
  332. /// <summary>Field number for the "map_string_string" field.</summary>
  333. public const int MapStringStringFieldNumber = 14;
  334. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  335. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
  336. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  338. public pbc::MapField<string, string> MapStringString {
  339. get { return mapStringString_; }
  340. }
  341. /// <summary>Field number for the "map_int32_bytes" field.</summary>
  342. public const int MapInt32BytesFieldNumber = 15;
  343. private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
  344. = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
  345. private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
  348. get { return mapInt32Bytes_; }
  349. }
  350. /// <summary>Field number for the "map_int32_enum" field.</summary>
  351. public const int MapInt32EnumFieldNumber = 16;
  352. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  353. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
  354. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  356. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  357. get { return mapInt32Enum_; }
  358. }
  359. /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
  360. public const int MapInt32ForeignMessageFieldNumber = 17;
  361. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  362. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
  363. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  365. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  366. get { return mapInt32ForeignMessage_; }
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. public override bool Equals(object other) {
  370. return Equals(other as TestMap);
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. public bool Equals(TestMap other) {
  374. if (ReferenceEquals(other, null)) {
  375. return false;
  376. }
  377. if (ReferenceEquals(other, this)) {
  378. return true;
  379. }
  380. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  381. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  382. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  383. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  384. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  385. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  386. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  387. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  388. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  389. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  390. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  391. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  392. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  393. if (!MapStringString.Equals(other.MapStringString)) return false;
  394. if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
  395. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  396. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  397. return Equals(_unknownFields, other._unknownFields);
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. public override int GetHashCode() {
  401. int hash = 1;
  402. hash ^= MapInt32Int32.GetHashCode();
  403. hash ^= MapInt64Int64.GetHashCode();
  404. hash ^= MapUint32Uint32.GetHashCode();
  405. hash ^= MapUint64Uint64.GetHashCode();
  406. hash ^= MapSint32Sint32.GetHashCode();
  407. hash ^= MapSint64Sint64.GetHashCode();
  408. hash ^= MapFixed32Fixed32.GetHashCode();
  409. hash ^= MapFixed64Fixed64.GetHashCode();
  410. hash ^= MapSfixed32Sfixed32.GetHashCode();
  411. hash ^= MapSfixed64Sfixed64.GetHashCode();
  412. hash ^= MapInt32Float.GetHashCode();
  413. hash ^= MapInt32Double.GetHashCode();
  414. hash ^= MapBoolBool.GetHashCode();
  415. hash ^= MapStringString.GetHashCode();
  416. hash ^= MapInt32Bytes.GetHashCode();
  417. hash ^= MapInt32Enum.GetHashCode();
  418. hash ^= MapInt32ForeignMessage.GetHashCode();
  419. if (_unknownFields != null) {
  420. hash ^= _unknownFields.GetHashCode();
  421. }
  422. return hash;
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  425. public override string ToString() {
  426. return pb::JsonFormatter.ToDiagnosticString(this);
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. public void WriteTo(pb::CodedOutputStream output) {
  430. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  431. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  432. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  433. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  434. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  435. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  436. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  437. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  438. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  439. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  440. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  441. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  442. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  443. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  444. mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
  445. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  446. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  447. if (_unknownFields != null) {
  448. _unknownFields.WriteTo(output);
  449. }
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public int CalculateSize() {
  453. int size = 0;
  454. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  455. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  456. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  457. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  458. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  459. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  460. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  461. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  462. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  463. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  464. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  465. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  466. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  467. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  468. size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
  469. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  470. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  471. if (_unknownFields != null) {
  472. size += _unknownFields.CalculateSize();
  473. }
  474. return size;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  477. public void MergeFrom(TestMap other) {
  478. if (other == null) {
  479. return;
  480. }
  481. mapInt32Int32_.Add(other.mapInt32Int32_);
  482. mapInt64Int64_.Add(other.mapInt64Int64_);
  483. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  484. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  485. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  486. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  487. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  488. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  489. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  490. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  491. mapInt32Float_.Add(other.mapInt32Float_);
  492. mapInt32Double_.Add(other.mapInt32Double_);
  493. mapBoolBool_.Add(other.mapBoolBool_);
  494. mapStringString_.Add(other.mapStringString_);
  495. mapInt32Bytes_.Add(other.mapInt32Bytes_);
  496. mapInt32Enum_.Add(other.mapInt32Enum_);
  497. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  498. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public void MergeFrom(pb::CodedInputStream input) {
  502. uint tag;
  503. while ((tag = input.ReadTag()) != 0) {
  504. switch(tag) {
  505. default:
  506. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  507. break;
  508. case 10: {
  509. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  510. break;
  511. }
  512. case 18: {
  513. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  514. break;
  515. }
  516. case 26: {
  517. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  518. break;
  519. }
  520. case 34: {
  521. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  522. break;
  523. }
  524. case 42: {
  525. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  526. break;
  527. }
  528. case 50: {
  529. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  530. break;
  531. }
  532. case 58: {
  533. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  534. break;
  535. }
  536. case 66: {
  537. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  538. break;
  539. }
  540. case 74: {
  541. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  542. break;
  543. }
  544. case 82: {
  545. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  546. break;
  547. }
  548. case 90: {
  549. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  550. break;
  551. }
  552. case 98: {
  553. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  554. break;
  555. }
  556. case 106: {
  557. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  558. break;
  559. }
  560. case 114: {
  561. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  562. break;
  563. }
  564. case 122: {
  565. mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
  566. break;
  567. }
  568. case 130: {
  569. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  570. break;
  571. }
  572. case 138: {
  573. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  574. break;
  575. }
  576. }
  577. }
  578. }
  579. }
  580. public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
  581. private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
  582. private pb::UnknownFieldSet _unknownFields;
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  586. public static pbr::MessageDescriptor Descriptor {
  587. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  590. pbr::MessageDescriptor pb::IMessage.Descriptor {
  591. get { return Descriptor; }
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. public TestMapSubmessage() {
  595. OnConstruction();
  596. }
  597. partial void OnConstruction();
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  599. public TestMapSubmessage(TestMapSubmessage other) : this() {
  600. TestMap = other.testMap_ != null ? other.TestMap.Clone() : null;
  601. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  604. public TestMapSubmessage Clone() {
  605. return new TestMapSubmessage(this);
  606. }
  607. /// <summary>Field number for the "test_map" field.</summary>
  608. public const int TestMapFieldNumber = 1;
  609. private global::Google.Protobuf.TestProtos.TestMap testMap_;
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  611. public global::Google.Protobuf.TestProtos.TestMap TestMap {
  612. get { return testMap_; }
  613. set {
  614. testMap_ = value;
  615. }
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  618. public override bool Equals(object other) {
  619. return Equals(other as TestMapSubmessage);
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  622. public bool Equals(TestMapSubmessage other) {
  623. if (ReferenceEquals(other, null)) {
  624. return false;
  625. }
  626. if (ReferenceEquals(other, this)) {
  627. return true;
  628. }
  629. if (!object.Equals(TestMap, other.TestMap)) return false;
  630. return Equals(_unknownFields, other._unknownFields);
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  633. public override int GetHashCode() {
  634. int hash = 1;
  635. if (testMap_ != null) hash ^= TestMap.GetHashCode();
  636. if (_unknownFields != null) {
  637. hash ^= _unknownFields.GetHashCode();
  638. }
  639. return hash;
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. public override string ToString() {
  643. return pb::JsonFormatter.ToDiagnosticString(this);
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. public void WriteTo(pb::CodedOutputStream output) {
  647. if (testMap_ != null) {
  648. output.WriteRawTag(10);
  649. output.WriteMessage(TestMap);
  650. }
  651. if (_unknownFields != null) {
  652. _unknownFields.WriteTo(output);
  653. }
  654. }
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  656. public int CalculateSize() {
  657. int size = 0;
  658. if (testMap_ != null) {
  659. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
  660. }
  661. if (_unknownFields != null) {
  662. size += _unknownFields.CalculateSize();
  663. }
  664. return size;
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  667. public void MergeFrom(TestMapSubmessage other) {
  668. if (other == null) {
  669. return;
  670. }
  671. if (other.testMap_ != null) {
  672. if (testMap_ == null) {
  673. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  674. }
  675. TestMap.MergeFrom(other.TestMap);
  676. }
  677. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  680. public void MergeFrom(pb::CodedInputStream input) {
  681. uint tag;
  682. while ((tag = input.ReadTag()) != 0) {
  683. switch(tag) {
  684. default:
  685. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  686. break;
  687. case 10: {
  688. if (testMap_ == null) {
  689. testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
  690. }
  691. input.ReadMessage(testMap_);
  692. break;
  693. }
  694. }
  695. }
  696. }
  697. }
  698. public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
  699. private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
  700. private pb::UnknownFieldSet _unknownFields;
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  704. public static pbr::MessageDescriptor Descriptor {
  705. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  708. pbr::MessageDescriptor pb::IMessage.Descriptor {
  709. get { return Descriptor; }
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  712. public TestMessageMap() {
  713. OnConstruction();
  714. }
  715. partial void OnConstruction();
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  717. public TestMessageMap(TestMessageMap other) : this() {
  718. mapInt32Message_ = other.mapInt32Message_.Clone();
  719. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  722. public TestMessageMap Clone() {
  723. return new TestMessageMap(this);
  724. }
  725. /// <summary>Field number for the "map_int32_message" field.</summary>
  726. public const int MapInt32MessageFieldNumber = 1;
  727. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
  728. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
  729. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
  730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  731. public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
  732. get { return mapInt32Message_; }
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  735. public override bool Equals(object other) {
  736. return Equals(other as TestMessageMap);
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  739. public bool Equals(TestMessageMap other) {
  740. if (ReferenceEquals(other, null)) {
  741. return false;
  742. }
  743. if (ReferenceEquals(other, this)) {
  744. return true;
  745. }
  746. if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
  747. return Equals(_unknownFields, other._unknownFields);
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  750. public override int GetHashCode() {
  751. int hash = 1;
  752. hash ^= MapInt32Message.GetHashCode();
  753. if (_unknownFields != null) {
  754. hash ^= _unknownFields.GetHashCode();
  755. }
  756. return hash;
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public override string ToString() {
  760. return pb::JsonFormatter.ToDiagnosticString(this);
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  763. public void WriteTo(pb::CodedOutputStream output) {
  764. mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
  765. if (_unknownFields != null) {
  766. _unknownFields.WriteTo(output);
  767. }
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public int CalculateSize() {
  771. int size = 0;
  772. size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
  773. if (_unknownFields != null) {
  774. size += _unknownFields.CalculateSize();
  775. }
  776. return size;
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  779. public void MergeFrom(TestMessageMap other) {
  780. if (other == null) {
  781. return;
  782. }
  783. mapInt32Message_.Add(other.mapInt32Message_);
  784. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. public void MergeFrom(pb::CodedInputStream input) {
  788. uint tag;
  789. while ((tag = input.ReadTag()) != 0) {
  790. switch(tag) {
  791. default:
  792. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  793. break;
  794. case 10: {
  795. mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
  796. break;
  797. }
  798. }
  799. }
  800. }
  801. }
  802. /// <summary>
  803. /// Two map fields share the same entry default instance.
  804. /// </summary>
  805. public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
  806. private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
  807. private pb::UnknownFieldSet _unknownFields;
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  809. public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  811. public static pbr::MessageDescriptor Descriptor {
  812. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  815. pbr::MessageDescriptor pb::IMessage.Descriptor {
  816. get { return Descriptor; }
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  819. public TestSameTypeMap() {
  820. OnConstruction();
  821. }
  822. partial void OnConstruction();
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  824. public TestSameTypeMap(TestSameTypeMap other) : this() {
  825. map1_ = other.map1_.Clone();
  826. map2_ = other.map2_.Clone();
  827. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  830. public TestSameTypeMap Clone() {
  831. return new TestSameTypeMap(this);
  832. }
  833. /// <summary>Field number for the "map1" field.</summary>
  834. public const int Map1FieldNumber = 1;
  835. private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
  836. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  837. private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  839. public pbc::MapField<int, int> Map1 {
  840. get { return map1_; }
  841. }
  842. /// <summary>Field number for the "map2" field.</summary>
  843. public const int Map2FieldNumber = 2;
  844. private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
  845. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
  846. private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  848. public pbc::MapField<int, int> Map2 {
  849. get { return map2_; }
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  852. public override bool Equals(object other) {
  853. return Equals(other as TestSameTypeMap);
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  856. public bool Equals(TestSameTypeMap other) {
  857. if (ReferenceEquals(other, null)) {
  858. return false;
  859. }
  860. if (ReferenceEquals(other, this)) {
  861. return true;
  862. }
  863. if (!Map1.Equals(other.Map1)) return false;
  864. if (!Map2.Equals(other.Map2)) return false;
  865. return Equals(_unknownFields, other._unknownFields);
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  868. public override int GetHashCode() {
  869. int hash = 1;
  870. hash ^= Map1.GetHashCode();
  871. hash ^= Map2.GetHashCode();
  872. if (_unknownFields != null) {
  873. hash ^= _unknownFields.GetHashCode();
  874. }
  875. return hash;
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  878. public override string ToString() {
  879. return pb::JsonFormatter.ToDiagnosticString(this);
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  882. public void WriteTo(pb::CodedOutputStream output) {
  883. map1_.WriteTo(output, _map_map1_codec);
  884. map2_.WriteTo(output, _map_map2_codec);
  885. if (_unknownFields != null) {
  886. _unknownFields.WriteTo(output);
  887. }
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  890. public int CalculateSize() {
  891. int size = 0;
  892. size += map1_.CalculateSize(_map_map1_codec);
  893. size += map2_.CalculateSize(_map_map2_codec);
  894. if (_unknownFields != null) {
  895. size += _unknownFields.CalculateSize();
  896. }
  897. return size;
  898. }
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  900. public void MergeFrom(TestSameTypeMap other) {
  901. if (other == null) {
  902. return;
  903. }
  904. map1_.Add(other.map1_);
  905. map2_.Add(other.map2_);
  906. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  909. public void MergeFrom(pb::CodedInputStream input) {
  910. uint tag;
  911. while ((tag = input.ReadTag()) != 0) {
  912. switch(tag) {
  913. default:
  914. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  915. break;
  916. case 10: {
  917. map1_.AddEntriesFrom(input, _map_map1_codec);
  918. break;
  919. }
  920. case 18: {
  921. map2_.AddEntriesFrom(input, _map_map2_codec);
  922. break;
  923. }
  924. }
  925. }
  926. }
  927. }
  928. public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
  929. private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
  930. private pb::UnknownFieldSet _unknownFields;
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  932. public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  934. public static pbr::MessageDescriptor Descriptor {
  935. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  938. pbr::MessageDescriptor pb::IMessage.Descriptor {
  939. get { return Descriptor; }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. public TestArenaMap() {
  943. OnConstruction();
  944. }
  945. partial void OnConstruction();
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  947. public TestArenaMap(TestArenaMap other) : this() {
  948. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  949. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  950. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  951. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  952. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  953. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  954. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  955. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  956. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  957. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  958. mapInt32Float_ = other.mapInt32Float_.Clone();
  959. mapInt32Double_ = other.mapInt32Double_.Clone();
  960. mapBoolBool_ = other.mapBoolBool_.Clone();
  961. mapInt32Enum_ = other.mapInt32Enum_.Clone();
  962. mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
  963. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public TestArenaMap Clone() {
  967. return new TestArenaMap(this);
  968. }
  969. /// <summary>Field number for the "map_int32_int32" field.</summary>
  970. public const int MapInt32Int32FieldNumber = 1;
  971. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  972. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  973. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  975. public pbc::MapField<int, int> MapInt32Int32 {
  976. get { return mapInt32Int32_; }
  977. }
  978. /// <summary>Field number for the "map_int64_int64" field.</summary>
  979. public const int MapInt64Int64FieldNumber = 2;
  980. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  981. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
  982. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  984. public pbc::MapField<long, long> MapInt64Int64 {
  985. get { return mapInt64Int64_; }
  986. }
  987. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  988. public const int MapUint32Uint32FieldNumber = 3;
  989. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  990. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
  991. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  993. public pbc::MapField<uint, uint> MapUint32Uint32 {
  994. get { return mapUint32Uint32_; }
  995. }
  996. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  997. public const int MapUint64Uint64FieldNumber = 4;
  998. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  999. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
  1000. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1002. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  1003. get { return mapUint64Uint64_; }
  1004. }
  1005. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  1006. public const int MapSint32Sint32FieldNumber = 5;
  1007. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  1008. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
  1009. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1011. public pbc::MapField<int, int> MapSint32Sint32 {
  1012. get { return mapSint32Sint32_; }
  1013. }
  1014. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  1015. public const int MapSint64Sint64FieldNumber = 6;
  1016. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  1017. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
  1018. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1020. public pbc::MapField<long, long> MapSint64Sint64 {
  1021. get { return mapSint64Sint64_; }
  1022. }
  1023. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  1024. public const int MapFixed32Fixed32FieldNumber = 7;
  1025. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  1026. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
  1027. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1029. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  1030. get { return mapFixed32Fixed32_; }
  1031. }
  1032. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  1033. public const int MapFixed64Fixed64FieldNumber = 8;
  1034. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  1035. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
  1036. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1038. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  1039. get { return mapFixed64Fixed64_; }
  1040. }
  1041. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  1042. public const int MapSfixed32Sfixed32FieldNumber = 9;
  1043. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  1044. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
  1045. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1047. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  1048. get { return mapSfixed32Sfixed32_; }
  1049. }
  1050. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  1051. public const int MapSfixed64Sfixed64FieldNumber = 10;
  1052. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  1053. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
  1054. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  1055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1056. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  1057. get { return mapSfixed64Sfixed64_; }
  1058. }
  1059. /// <summary>Field number for the "map_int32_float" field.</summary>
  1060. public const int MapInt32FloatFieldNumber = 11;
  1061. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  1062. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
  1063. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1065. public pbc::MapField<int, float> MapInt32Float {
  1066. get { return mapInt32Float_; }
  1067. }
  1068. /// <summary>Field number for the "map_int32_double" field.</summary>
  1069. public const int MapInt32DoubleFieldNumber = 12;
  1070. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  1071. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
  1072. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1074. public pbc::MapField<int, double> MapInt32Double {
  1075. get { return mapInt32Double_; }
  1076. }
  1077. /// <summary>Field number for the "map_bool_bool" field.</summary>
  1078. public const int MapBoolBoolFieldNumber = 13;
  1079. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  1080. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
  1081. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1083. public pbc::MapField<bool, bool> MapBoolBool {
  1084. get { return mapBoolBool_; }
  1085. }
  1086. /// <summary>Field number for the "map_int32_enum" field.</summary>
  1087. public const int MapInt32EnumFieldNumber = 14;
  1088. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
  1089. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
  1090. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1092. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
  1093. get { return mapInt32Enum_; }
  1094. }
  1095. /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
  1096. public const int MapInt32ForeignMessageFieldNumber = 15;
  1097. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
  1098. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
  1099. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1101. public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
  1102. get { return mapInt32ForeignMessage_; }
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1105. public override bool Equals(object other) {
  1106. return Equals(other as TestArenaMap);
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1109. public bool Equals(TestArenaMap other) {
  1110. if (ReferenceEquals(other, null)) {
  1111. return false;
  1112. }
  1113. if (ReferenceEquals(other, this)) {
  1114. return true;
  1115. }
  1116. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1117. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1118. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1119. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1120. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1121. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1122. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1123. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1124. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1125. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1126. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1127. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1128. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1129. if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
  1130. if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
  1131. return Equals(_unknownFields, other._unknownFields);
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1134. public override int GetHashCode() {
  1135. int hash = 1;
  1136. hash ^= MapInt32Int32.GetHashCode();
  1137. hash ^= MapInt64Int64.GetHashCode();
  1138. hash ^= MapUint32Uint32.GetHashCode();
  1139. hash ^= MapUint64Uint64.GetHashCode();
  1140. hash ^= MapSint32Sint32.GetHashCode();
  1141. hash ^= MapSint64Sint64.GetHashCode();
  1142. hash ^= MapFixed32Fixed32.GetHashCode();
  1143. hash ^= MapFixed64Fixed64.GetHashCode();
  1144. hash ^= MapSfixed32Sfixed32.GetHashCode();
  1145. hash ^= MapSfixed64Sfixed64.GetHashCode();
  1146. hash ^= MapInt32Float.GetHashCode();
  1147. hash ^= MapInt32Double.GetHashCode();
  1148. hash ^= MapBoolBool.GetHashCode();
  1149. hash ^= MapInt32Enum.GetHashCode();
  1150. hash ^= MapInt32ForeignMessage.GetHashCode();
  1151. if (_unknownFields != null) {
  1152. hash ^= _unknownFields.GetHashCode();
  1153. }
  1154. return hash;
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1157. public override string ToString() {
  1158. return pb::JsonFormatter.ToDiagnosticString(this);
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1161. public void WriteTo(pb::CodedOutputStream output) {
  1162. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  1163. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  1164. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  1165. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  1166. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  1167. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  1168. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  1169. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  1170. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  1171. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  1172. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  1173. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  1174. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  1175. mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
  1176. mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
  1177. if (_unknownFields != null) {
  1178. _unknownFields.WriteTo(output);
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1182. public int CalculateSize() {
  1183. int size = 0;
  1184. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  1185. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  1186. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  1187. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  1188. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  1189. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  1190. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  1191. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  1192. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  1193. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  1194. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  1195. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  1196. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  1197. size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
  1198. size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
  1199. if (_unknownFields != null) {
  1200. size += _unknownFields.CalculateSize();
  1201. }
  1202. return size;
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1205. public void MergeFrom(TestArenaMap other) {
  1206. if (other == null) {
  1207. return;
  1208. }
  1209. mapInt32Int32_.Add(other.mapInt32Int32_);
  1210. mapInt64Int64_.Add(other.mapInt64Int64_);
  1211. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  1212. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  1213. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  1214. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  1215. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  1216. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  1217. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  1218. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  1219. mapInt32Float_.Add(other.mapInt32Float_);
  1220. mapInt32Double_.Add(other.mapInt32Double_);
  1221. mapBoolBool_.Add(other.mapBoolBool_);
  1222. mapInt32Enum_.Add(other.mapInt32Enum_);
  1223. mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
  1224. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1227. public void MergeFrom(pb::CodedInputStream input) {
  1228. uint tag;
  1229. while ((tag = input.ReadTag()) != 0) {
  1230. switch(tag) {
  1231. default:
  1232. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1233. break;
  1234. case 10: {
  1235. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  1236. break;
  1237. }
  1238. case 18: {
  1239. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  1240. break;
  1241. }
  1242. case 26: {
  1243. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  1244. break;
  1245. }
  1246. case 34: {
  1247. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  1248. break;
  1249. }
  1250. case 42: {
  1251. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  1252. break;
  1253. }
  1254. case 50: {
  1255. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  1256. break;
  1257. }
  1258. case 58: {
  1259. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  1260. break;
  1261. }
  1262. case 66: {
  1263. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  1264. break;
  1265. }
  1266. case 74: {
  1267. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  1268. break;
  1269. }
  1270. case 82: {
  1271. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  1272. break;
  1273. }
  1274. case 90: {
  1275. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  1276. break;
  1277. }
  1278. case 98: {
  1279. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  1280. break;
  1281. }
  1282. case 106: {
  1283. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  1284. break;
  1285. }
  1286. case 114: {
  1287. mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
  1288. break;
  1289. }
  1290. case 122: {
  1291. mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
  1292. break;
  1293. }
  1294. }
  1295. }
  1296. }
  1297. }
  1298. /// <summary>
  1299. /// Previously, message containing enum called Type cannot be used as value of
  1300. /// map field.
  1301. /// </summary>
  1302. public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
  1303. private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
  1304. private pb::UnknownFieldSet _unknownFields;
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1306. public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1308. public static pbr::MessageDescriptor Descriptor {
  1309. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1313. get { return Descriptor; }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1316. public MessageContainingEnumCalledType() {
  1317. OnConstruction();
  1318. }
  1319. partial void OnConstruction();
  1320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1321. public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
  1322. type_ = other.type_.Clone();
  1323. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1326. public MessageContainingEnumCalledType Clone() {
  1327. return new MessageContainingEnumCalledType(this);
  1328. }
  1329. /// <summary>Field number for the "type" field.</summary>
  1330. public const int TypeFieldNumber = 1;
  1331. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
  1332. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
  1333. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1335. public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
  1336. get { return type_; }
  1337. }
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1339. public override bool Equals(object other) {
  1340. return Equals(other as MessageContainingEnumCalledType);
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1343. public bool Equals(MessageContainingEnumCalledType other) {
  1344. if (ReferenceEquals(other, null)) {
  1345. return false;
  1346. }
  1347. if (ReferenceEquals(other, this)) {
  1348. return true;
  1349. }
  1350. if (!Type.Equals(other.Type)) return false;
  1351. return Equals(_unknownFields, other._unknownFields);
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1354. public override int GetHashCode() {
  1355. int hash = 1;
  1356. hash ^= Type.GetHashCode();
  1357. if (_unknownFields != null) {
  1358. hash ^= _unknownFields.GetHashCode();
  1359. }
  1360. return hash;
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1363. public override string ToString() {
  1364. return pb::JsonFormatter.ToDiagnosticString(this);
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1367. public void WriteTo(pb::CodedOutputStream output) {
  1368. type_.WriteTo(output, _map_type_codec);
  1369. if (_unknownFields != null) {
  1370. _unknownFields.WriteTo(output);
  1371. }
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1374. public int CalculateSize() {
  1375. int size = 0;
  1376. size += type_.CalculateSize(_map_type_codec);
  1377. if (_unknownFields != null) {
  1378. size += _unknownFields.CalculateSize();
  1379. }
  1380. return size;
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. public void MergeFrom(MessageContainingEnumCalledType other) {
  1384. if (other == null) {
  1385. return;
  1386. }
  1387. type_.Add(other.type_);
  1388. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1391. public void MergeFrom(pb::CodedInputStream input) {
  1392. uint tag;
  1393. while ((tag = input.ReadTag()) != 0) {
  1394. switch(tag) {
  1395. default:
  1396. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1397. break;
  1398. case 10: {
  1399. type_.AddEntriesFrom(input, _map_type_codec);
  1400. break;
  1401. }
  1402. }
  1403. }
  1404. }
  1405. #region Nested types
  1406. /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1408. public static partial class Types {
  1409. public enum Type {
  1410. [pbr::OriginalName("TYPE_FOO")] Foo = 0,
  1411. }
  1412. }
  1413. #endregion
  1414. }
  1415. /// <summary>
  1416. /// Previously, message cannot contain map field called "entry".
  1417. /// </summary>
  1418. public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
  1419. private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
  1420. private pb::UnknownFieldSet _unknownFields;
  1421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1422. public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1424. public static pbr::MessageDescriptor Descriptor {
  1425. get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1428. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1429. get { return Descriptor; }
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1432. public MessageContainingMapCalledEntry() {
  1433. OnConstruction();
  1434. }
  1435. partial void OnConstruction();
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1437. public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
  1438. entry_ = other.entry_.Clone();
  1439. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1440. }
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1442. public MessageContainingMapCalledEntry Clone() {
  1443. return new MessageContainingMapCalledEntry(this);
  1444. }
  1445. /// <summary>Field number for the "entry" field.</summary>
  1446. public const int EntryFieldNumber = 1;
  1447. private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
  1448. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
  1449. private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1451. public pbc::MapField<int, int> Entry {
  1452. get { return entry_; }
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1455. public override bool Equals(object other) {
  1456. return Equals(other as MessageContainingMapCalledEntry);
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1459. public bool Equals(MessageContainingMapCalledEntry other) {
  1460. if (ReferenceEquals(other, null)) {
  1461. return false;
  1462. }
  1463. if (ReferenceEquals(other, this)) {
  1464. return true;
  1465. }
  1466. if (!Entry.Equals(other.Entry)) return false;
  1467. return Equals(_unknownFields, other._unknownFields);
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. public override int GetHashCode() {
  1471. int hash = 1;
  1472. hash ^= Entry.GetHashCode();
  1473. if (_unknownFields != null) {
  1474. hash ^= _unknownFields.GetHashCode();
  1475. }
  1476. return hash;
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1479. public override string ToString() {
  1480. return pb::JsonFormatter.ToDiagnosticString(this);
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1483. public void WriteTo(pb::CodedOutputStream output) {
  1484. entry_.WriteTo(output, _map_entry_codec);
  1485. if (_unknownFields != null) {
  1486. _unknownFields.WriteTo(output);
  1487. }
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1490. public int CalculateSize() {
  1491. int size = 0;
  1492. size += entry_.CalculateSize(_map_entry_codec);
  1493. if (_unknownFields != null) {
  1494. size += _unknownFields.CalculateSize();
  1495. }
  1496. return size;
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1499. public void MergeFrom(MessageContainingMapCalledEntry other) {
  1500. if (other == null) {
  1501. return;
  1502. }
  1503. entry_.Add(other.entry_);
  1504. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1507. public void MergeFrom(pb::CodedInputStream input) {
  1508. uint tag;
  1509. while ((tag = input.ReadTag()) != 0) {
  1510. switch(tag) {
  1511. default:
  1512. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1513. break;
  1514. case 10: {
  1515. entry_.AddEntriesFrom(input, _map_entry_codec);
  1516. break;
  1517. }
  1518. }
  1519. }
  1520. }
  1521. }
  1522. #endregion
  1523. }
  1524. #endregion Designer generated code