Conformance.cs 106 KB

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