UnittestCustomOptionsProto3.cs 103 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_custom_options_proto3.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace UnitTest.Issues.TestProtos {
  12. /// <summary>Holder for reflection information generated from unittest_custom_options_proto3.proto</summary>
  13. public static partial class UnittestCustomOptionsProto3Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_custom_options_proto3.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestCustomOptionsProto3Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiR1bml0dGVzdF9jdXN0b21fb3B0aW9uc19wcm90bzMucHJvdG8SEXByb3Rv",
  24. "YnVmX3VuaXR0ZXN0GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90",
  25. "byLXAQocVGVzdE1lc3NhZ2VXaXRoQ3VzdG9tT3B0aW9ucxIeCgZmaWVsZDEY",
  26. "ASABKAlCDggBweDDHS3hdQoCAAAAEhUKC29uZW9mX2ZpZWxkGAIgASgFSAAi",
  27. "UwoGQW5FbnVtEhYKEkFORU5VTV9VTlNQRUNJRklFRBAAEg8KC0FORU5VTV9W",
  28. "QUwxEAESFgoLQU5FTlVNX1ZBTDIQAhoFsIb6BXsaCMX2yR3r/P//OhAIAODp",
  29. "wh3I//////////8BQhkKB0FuT25lb2YSDviswx2d//////////8BIhgKFkN1",
  30. "c3RvbU9wdGlvbkZvb1JlcXVlc3QiGQoXQ3VzdG9tT3B0aW9uRm9vUmVzcG9u",
  31. "c2UiHgocQ3VzdG9tT3B0aW9uRm9vQ2xpZW50TWVzc2FnZSIeChxDdXN0b21P",
  32. "cHRpb25Gb29TZXJ2ZXJNZXNzYWdlIo8BChpEdW1teU1lc3NhZ2VDb250YWlu",
  33. "aW5nRW51bSJxCgxUZXN0RW51bVR5cGUSIAocVEVTVF9PUFRJT05fRU5VTV9V",
  34. "TlNQRUNJRklFRBAAEhoKFlRFU1RfT1BUSU9OX0VOVU1fVFlQRTEQFhIjChZU",
  35. "RVNUX09QVElPTl9FTlVNX1RZUEUyEOn//////////wEiIQofRHVtbXlNZXNz",
  36. "YWdlSW52YWxpZEFzT3B0aW9uVHlwZSKKAQocQ3VzdG9tT3B0aW9uTWluSW50",
  37. "ZWdlclZhbHVlczpq0N6yHQDoxrIdgICAgPj/////AbC8sh2AgICAgICAgIAB",
  38. "gJOyHQD49bAdAIDEsB3/////D/iXsB3///////////8BnfWvHQAAAACR7q8d",
  39. "AAAAAAAAAACtja8dAAAAgJnWqB0AAAAAAAAAgCKRAQocQ3VzdG9tT3B0aW9u",
  40. "TWF4SW50ZWdlclZhbHVlczpx0N6yHQHoxrId/////wewvLId//////////9/",
  41. "gJOyHf////8P+PWwHf///////////wGAxLAd/v///w/4l7Ad/v//////////",
  42. "AZ31rx3/////ke6vHf//////////rY2vHf///3+Z1qgd/////////38ibgoX",
  43. "Q3VzdG9tT3B0aW9uT3RoZXJWYWx1ZXM6U+jGsh2c//////////8B9d+jHeeH",
  44. "RUHp3KId+1mMQsrA8z+q3KIdDkhlbGxvLCAiV29ybGQistmiHQtIZWxsbwBX",
  45. "b3JsZIjZoh3p//////////8BIjQKHFNldHRpbmdSZWFsc0Zyb21Qb3NpdGl2",
  46. "ZUludHM6FPXfox0AAEBB6dyiHQAAAAAAQGNAIjQKHFNldHRpbmdSZWFsc0Zy",
  47. "b21OZWdhdGl2ZUludHM6FPXfox0AAEDB6dyiHQAAAAAAQGPAIksKEkNvbXBs",
  48. "ZXhPcHRpb25UeXBlMRILCgNmb28YASABKAUSDAoEZm9vMhgCIAEoBRIMCgRm",
  49. "b28zGAMgASgFEgwKBGZvbzQYBCADKAUigQMKEkNvbXBsZXhPcHRpb25UeXBl",
  50. "MhIyCgNiYXIYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0",
  51. "aW9uVHlwZTESCwoDYmF6GAIgASgFEkYKBGZyZWQYAyABKAsyOC5wcm90b2J1",
  52. "Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlvblR5",
  53. "cGU0EkgKBmJhcm5leRgEIAMoCzI4LnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBs",
  54. "ZXhPcHRpb25UeXBlMi5Db21wbGV4T3B0aW9uVHlwZTQalwEKEkNvbXBsZXhP",
  55. "cHRpb25UeXBlNBINCgV3YWxkbxgBIAEoBTJyCgxjb21wbGV4X29wdDQSHy5n",
  56. "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYivXRAyABKAsyOC5wcm90",
  57. "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlv",
  58. "blR5cGU0IiEKEkNvbXBsZXhPcHRpb25UeXBlMxILCgNxdXgYASABKAUibAoV",
  59. "VmFyaW91c0NvbXBsZXhPcHRpb25zOlOi4pUdAggqouKVHQIgY6LilR0CIFiq",
  60. "/ZAdAxDbB6r9kB0FCgMI5wXSqI8dAwizD6r9kB0FGgMIwQKq/ZAdBCICCGWq",
  61. "/ZAdBSIDCNQB+t6QHQIICSJMCglBZ2dyZWdhdGUSCQoBaRgBIAEoBRIJCgFz",
  62. "GAIgASgJEikKA3N1YhgDIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl",
  63. "Z2F0ZSJZChBBZ2dyZWdhdGVNZXNzYWdlEikKCWZpZWxkbmFtZRgBIAEoBUIW",
  64. "8qGHOxESD0ZpZWxkQW5ub3RhdGlvbjoawtGGOxUIZRIRTWVzc2FnZUFubm90",
  65. "YXRpb24ilwEKEE5lc3RlZE9wdGlvblR5cGUaOwoNTmVzdGVkTWVzc2FnZRIi",
  66. "CgxuZXN0ZWRfZmllbGQYASABKAVCDMHgwx3qAwAAAAAAADoG4OnCHekHIkYK",
  67. "Ck5lc3RlZEVudW0SDwoLVU5TUEVDSUZJRUQQABIdChFORVNURURfRU5VTV9W",
  68. "QUxVRRABGgawhvoF7AcaCMX2yR3rAwAAKlIKCk1ldGhvZE9wdDESGgoWTUVU",
  69. "SE9ET1BUMV9VTlNQRUNJRklFRBAAEhMKD01FVEhPRE9QVDFfVkFMMRABEhMK",
  70. "D01FVEhPRE9QVDFfVkFMMhACKl4KDUFnZ3JlZ2F0ZUVudW0SDwoLVU5TUEVD",
  71. "SUZJRUQQABIlCgVWQUxVRRABGhrK/Ik7FRITRW51bVZhbHVlQW5ub3RhdGlv",
  72. "bhoVkpWIOxASDkVudW1Bbm5vdGF0aW9uMo4BChxUZXN0U2VydmljZVdpdGhD",
  73. "dXN0b21PcHRpb25zEmMKA0ZvbxIpLnByb3RvYnVmX3VuaXR0ZXN0LkN1c3Rv",
  74. "bU9wdGlvbkZvb1JlcXVlc3QaKi5wcm90b2J1Zl91bml0dGVzdC5DdXN0b21P",
  75. "cHRpb25Gb29SZXNwb25zZSIF4PqMHgIaCZCyix7T24DLSTKZAQoQQWdncmVn",
  76. "YXRlU2VydmljZRJrCgZNZXRob2QSIy5wcm90b2J1Zl91bml0dGVzdC5BZ2dy",
  77. "ZWdhdGVNZXNzYWdlGiMucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlTWVz",
  78. "c2FnZSIXysiWOxISEE1ldGhvZEFubm90YXRpb24aGMr7jjsTEhFTZXJ2aWNl",
  79. "QW5ub3RhdGlvbjoyCglmaWxlX29wdDESHC5nb29nbGUucHJvdG9idWYuRmls",
  80. "ZU9wdGlvbnMYjp3YAyABKAQ6OAoMbWVzc2FnZV9vcHQxEh8uZ29vZ2xlLnBy",
  81. "b3RvYnVmLk1lc3NhZ2VPcHRpb25zGJyt2AMgASgFOjQKCmZpZWxkX29wdDES",
  82. "HS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGIi82AMgASgGOjQKCm9u",
  83. "ZW9mX29wdDESHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zGM+12AMg",
  84. "ASgFOjIKCWVudW1fb3B0MRIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u",
  85. "cxjontkDIAEoDzo8Cg9lbnVtX3ZhbHVlX29wdDESIS5nb29nbGUucHJvdG9i",
  86. "dWYuRW51bVZhbHVlT3B0aW9ucxjmoF8gASgFOjgKDHNlcnZpY2Vfb3B0MRIf",
  87. "Lmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0aW9ucxiituEDIAEoEjpVCgtt",
  88. "ZXRob2Rfb3B0MRIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKzP",
  89. "4QMgASgOMh0ucHJvdG9idWZfdW5pdHRlc3QuTWV0aG9kT3B0MTo0Cghib29s",
  90. "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjqq9YDIAEo",
  91. "CDo1CglpbnQzMl9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlv",
  92. "bnMY7ajWAyABKAU6NQoJaW50NjRfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1l",
  93. "c3NhZ2VPcHRpb25zGMan1gMgASgDOjYKCnVpbnQzMl9vcHQSHy5nb29nbGUu",
  94. "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYsKLWAyABKA06NgoKdWludDY0X29w",
  95. "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjfjtYDIAEoBDo2",
  96. "CgpzaW50MzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25z",
  97. "GMCI1gMgASgROjYKCnNpbnQ2NF9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVz",
  98. "c2FnZU9wdGlvbnMY/4LWAyABKBI6NwoLZml4ZWQzMl9vcHQSHy5nb29nbGUu",
  99. "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY0/7VAyABKAc6NwoLZml4ZWQ2NF9v",
  100. "cHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY4v3VAyABKAY6",
  101. "OAoMc2ZpeGVkMzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp",
  102. "b25zGNXx1QMgASgPOjgKDHNmaXhlZDY0X29wdBIfLmdvb2dsZS5wcm90b2J1",
  103. "Zi5NZXNzYWdlT3B0aW9ucxjjitUDIAEoEDo1CglmbG9hdF9vcHQSHy5nb29n",
  104. "bGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY/rvUAyABKAI6NgoKZG91Ymxl",
  105. "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjNq9QDIAEo",
  106. "ATo2CgpzdHJpbmdfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp",
  107. "b25zGMWr1AMgASgJOjUKCWJ5dGVzX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5N",
  108. "ZXNzYWdlT3B0aW9ucxiWq9QDIAEoDDpwCghlbnVtX29wdBIfLmdvb2dsZS5w",
  109. "cm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiRq9QDIAEoDjI6LnByb3RvYnVmX3Vu",
  110. "aXR0ZXN0LkR1bW15TWVzc2FnZUNvbnRhaW5pbmdFbnVtLlRlc3RFbnVtVHlw",
  111. "ZTpwChBtZXNzYWdlX3R5cGVfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3Nh",
  112. "Z2VPcHRpb25zGK/y0wMgASgLMjIucHJvdG9idWZfdW5pdHRlc3QuRHVtbXlN",
  113. "ZXNzYWdlSW52YWxpZEFzT3B0aW9uVHlwZTpfCgxjb21wbGV4X29wdDESHy5n",
  114. "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYpNzSAyABKAsyJS5wcm90",
  115. "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTE6XwoMY29tcGxleF9v",
  116. "cHQyEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGNWP0gMgASgL",
  117. "MiUucHJvdG9idWZfdW5pdHRlc3QuQ29tcGxleE9wdGlvblR5cGUyOl8KDGNv",
  118. "bXBsZXhfb3B0MxIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjv",
  119. "i9IDIAEoCzIlLnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBl",
  120. "MzpOCgdmaWxlb3B0EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGM/d",
  121. "sAcgASgLMhwucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlOlAKBm1zZ29w",
  122. "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiY6rAHIAEoCzIc",
  123. "LnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZTpQCghmaWVsZG9wdBIdLmdv",
  124. "b2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYnvSwByABKAsyHC5wcm90b2J1",
  125. "Zl91bml0dGVzdC5BZ2dyZWdhdGU6TgoHZW51bW9wdBIcLmdvb2dsZS5wcm90",
  126. "b2J1Zi5FbnVtT3B0aW9ucxjSgrEHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0",
  127. "LkFnZ3JlZ2F0ZTpWCgplbnVtdmFsb3B0EiEuZ29vZ2xlLnByb3RvYnVmLkVu",
  128. "dW1WYWx1ZU9wdGlvbnMYyZ+xByABKAsyHC5wcm90b2J1Zl91bml0dGVzdC5B",
  129. "Z2dyZWdhdGU6VAoKc2VydmljZW9wdBIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2",
  130. "aWNlT3B0aW9ucxi577EHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl",
  131. "Z2F0ZTpSCgltZXRob2RvcHQSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0",
  132. "aW9ucxiJ6bIHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZUJV",
  133. "qgIaVW5pdFRlc3QuSXNzdWVzLlRlc3RQcm90b3Pw6MEd6q3A5ST67IU7Kghk",
  134. "Eg5GaWxlQW5ub3RhdGlvbhoWEhROZXN0ZWRGaWxlQW5ub3RhdGlvbmIGcHJv",
  135. "dG8z"));
  136. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  137. new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
  138. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.MethodOpt1), typeof(global::UnitTest.Issues.TestProtos.AggregateEnum), }, new pbr::GeneratedClrTypeInfo[] {
  139. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions), global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Parser, new[]{ "Field1", "OneofField" }, new[]{ "AnOneof" }, new[]{ typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Types.AnEnum) }, null),
  140. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooRequest), global::UnitTest.Issues.TestProtos.CustomOptionFooRequest.Parser, null, null, null, null),
  141. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooResponse), global::UnitTest.Issues.TestProtos.CustomOptionFooResponse.Parser, null, null, null, null),
  142. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage.Parser, null, null, null, null),
  143. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage.Parser, null, null, null, null),
  144. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum), global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType) }, null),
  145. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType), global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType.Parser, null, null, null, null),
  146. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues.Parser, null, null, null, null),
  147. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues.Parser, null, null, null, null),
  148. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionOtherValues), global::UnitTest.Issues.TestProtos.CustomOptionOtherValues.Parser, null, null, null, null),
  149. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts), global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts.Parser, null, null, null, null),
  150. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts), global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts.Parser, null, null, null, null),
  151. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType1), global::UnitTest.Issues.TestProtos.ComplexOptionType1.Parser, new[]{ "Foo", "Foo2", "Foo3", "Foo4" }, null, null, null),
  152. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType2), global::UnitTest.Issues.TestProtos.ComplexOptionType2.Parser, new[]{ "Bar", "Baz", "Fred", "Barney" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4), global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser, new[]{ "Waldo" }, null, null, null)}),
  153. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType3), global::UnitTest.Issues.TestProtos.ComplexOptionType3.Parser, new[]{ "Qux" }, null, null, null),
  154. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.VariousComplexOptions), global::UnitTest.Issues.TestProtos.VariousComplexOptions.Parser, null, null, null, null),
  155. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Aggregate), global::UnitTest.Issues.TestProtos.Aggregate.Parser, new[]{ "I", "S", "Sub" }, null, null, null),
  156. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.AggregateMessage), global::UnitTest.Issues.TestProtos.AggregateMessage.Parser, new[]{ "Fieldname" }, null, null, null),
  157. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NestedOptionType), global::UnitTest.Issues.TestProtos.NestedOptionType.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedMessage), global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedMessage.Parser, new[]{ "NestedField" }, null, null, null)})
  158. }));
  159. }
  160. #endregion
  161. }
  162. #region Enums
  163. public enum MethodOpt1 {
  164. [pbr::OriginalName("METHODOPT1_UNSPECIFIED")] Unspecified = 0,
  165. [pbr::OriginalName("METHODOPT1_VAL1")] Val1 = 1,
  166. [pbr::OriginalName("METHODOPT1_VAL2")] Val2 = 2,
  167. }
  168. public enum AggregateEnum {
  169. [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
  170. [pbr::OriginalName("VALUE")] Value = 1,
  171. }
  172. #endregion
  173. #region Messages
  174. /// <summary>
  175. /// A test message with custom options at all possible locations (and also some
  176. /// regular options, to make sure they interact nicely).
  177. /// </summary>
  178. public sealed partial class TestMessageWithCustomOptions : pb::IMessage<TestMessageWithCustomOptions> {
  179. private static readonly pb::MessageParser<TestMessageWithCustomOptions> _parser = new pb::MessageParser<TestMessageWithCustomOptions>(() => new TestMessageWithCustomOptions());
  180. private pb::UnknownFieldSet _unknownFields;
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. public static pb::MessageParser<TestMessageWithCustomOptions> Parser { get { return _parser; } }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public static pbr::MessageDescriptor Descriptor {
  185. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[0]; }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  188. pbr::MessageDescriptor pb::IMessage.Descriptor {
  189. get { return Descriptor; }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  192. public TestMessageWithCustomOptions() {
  193. OnConstruction();
  194. }
  195. partial void OnConstruction();
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. public TestMessageWithCustomOptions(TestMessageWithCustomOptions other) : this() {
  198. field1_ = other.field1_;
  199. switch (other.AnOneofCase) {
  200. case AnOneofOneofCase.OneofField:
  201. OneofField = other.OneofField;
  202. break;
  203. }
  204. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public TestMessageWithCustomOptions Clone() {
  208. return new TestMessageWithCustomOptions(this);
  209. }
  210. /// <summary>Field number for the "field1" field.</summary>
  211. public const int Field1FieldNumber = 1;
  212. private string field1_ = "";
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public string Field1 {
  215. get { return field1_; }
  216. set {
  217. field1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  218. }
  219. }
  220. /// <summary>Field number for the "oneof_field" field.</summary>
  221. public const int OneofFieldFieldNumber = 2;
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public int OneofField {
  224. get { return anOneofCase_ == AnOneofOneofCase.OneofField ? (int) anOneof_ : 0; }
  225. set {
  226. anOneof_ = value;
  227. anOneofCase_ = AnOneofOneofCase.OneofField;
  228. }
  229. }
  230. private object anOneof_;
  231. /// <summary>Enum of possible cases for the "AnOneof" oneof.</summary>
  232. public enum AnOneofOneofCase {
  233. None = 0,
  234. OneofField = 2,
  235. }
  236. private AnOneofOneofCase anOneofCase_ = AnOneofOneofCase.None;
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  238. public AnOneofOneofCase AnOneofCase {
  239. get { return anOneofCase_; }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  242. public void ClearAnOneof() {
  243. anOneofCase_ = AnOneofOneofCase.None;
  244. anOneof_ = null;
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  247. public override bool Equals(object other) {
  248. return Equals(other as TestMessageWithCustomOptions);
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  251. public bool Equals(TestMessageWithCustomOptions other) {
  252. if (ReferenceEquals(other, null)) {
  253. return false;
  254. }
  255. if (ReferenceEquals(other, this)) {
  256. return true;
  257. }
  258. if (Field1 != other.Field1) return false;
  259. if (OneofField != other.OneofField) return false;
  260. if (AnOneofCase != other.AnOneofCase) return false;
  261. return Equals(_unknownFields, other._unknownFields);
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  264. public override int GetHashCode() {
  265. int hash = 1;
  266. if (Field1.Length != 0) hash ^= Field1.GetHashCode();
  267. if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode();
  268. hash ^= (int) anOneofCase_;
  269. if (_unknownFields != null) {
  270. hash ^= _unknownFields.GetHashCode();
  271. }
  272. return hash;
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  275. public override string ToString() {
  276. return pb::JsonFormatter.ToDiagnosticString(this);
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  279. public void WriteTo(pb::CodedOutputStream output) {
  280. if (Field1.Length != 0) {
  281. output.WriteRawTag(10);
  282. output.WriteString(Field1);
  283. }
  284. if (anOneofCase_ == AnOneofOneofCase.OneofField) {
  285. output.WriteRawTag(16);
  286. output.WriteInt32(OneofField);
  287. }
  288. if (_unknownFields != null) {
  289. _unknownFields.WriteTo(output);
  290. }
  291. }
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  293. public int CalculateSize() {
  294. int size = 0;
  295. if (Field1.Length != 0) {
  296. size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1);
  297. }
  298. if (anOneofCase_ == AnOneofOneofCase.OneofField) {
  299. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofField);
  300. }
  301. if (_unknownFields != null) {
  302. size += _unknownFields.CalculateSize();
  303. }
  304. return size;
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public void MergeFrom(TestMessageWithCustomOptions other) {
  308. if (other == null) {
  309. return;
  310. }
  311. if (other.Field1.Length != 0) {
  312. Field1 = other.Field1;
  313. }
  314. switch (other.AnOneofCase) {
  315. case AnOneofOneofCase.OneofField:
  316. OneofField = other.OneofField;
  317. break;
  318. }
  319. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  322. public void MergeFrom(pb::CodedInputStream input) {
  323. uint tag;
  324. while ((tag = input.ReadTag()) != 0) {
  325. switch(tag) {
  326. default:
  327. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  328. break;
  329. case 10: {
  330. Field1 = input.ReadString();
  331. break;
  332. }
  333. case 16: {
  334. OneofField = input.ReadInt32();
  335. break;
  336. }
  337. }
  338. }
  339. }
  340. #region Nested types
  341. /// <summary>Container for nested types declared in the TestMessageWithCustomOptions message type.</summary>
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. public static partial class Types {
  344. public enum AnEnum {
  345. [pbr::OriginalName("ANENUM_UNSPECIFIED")] Unspecified = 0,
  346. [pbr::OriginalName("ANENUM_VAL1")] Val1 = 1,
  347. [pbr::OriginalName("ANENUM_VAL2")] Val2 = 2,
  348. }
  349. }
  350. #endregion
  351. }
  352. /// <summary>
  353. /// A test RPC service with custom options at all possible locations (and also
  354. /// some regular options, to make sure they interact nicely).
  355. /// </summary>
  356. public sealed partial class CustomOptionFooRequest : pb::IMessage<CustomOptionFooRequest> {
  357. private static readonly pb::MessageParser<CustomOptionFooRequest> _parser = new pb::MessageParser<CustomOptionFooRequest>(() => new CustomOptionFooRequest());
  358. private pb::UnknownFieldSet _unknownFields;
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  360. public static pb::MessageParser<CustomOptionFooRequest> Parser { get { return _parser; } }
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  362. public static pbr::MessageDescriptor Descriptor {
  363. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[1]; }
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  366. pbr::MessageDescriptor pb::IMessage.Descriptor {
  367. get { return Descriptor; }
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  370. public CustomOptionFooRequest() {
  371. OnConstruction();
  372. }
  373. partial void OnConstruction();
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  375. public CustomOptionFooRequest(CustomOptionFooRequest other) : this() {
  376. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. public CustomOptionFooRequest Clone() {
  380. return new CustomOptionFooRequest(this);
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public override bool Equals(object other) {
  384. return Equals(other as CustomOptionFooRequest);
  385. }
  386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  387. public bool Equals(CustomOptionFooRequest other) {
  388. if (ReferenceEquals(other, null)) {
  389. return false;
  390. }
  391. if (ReferenceEquals(other, this)) {
  392. return true;
  393. }
  394. return Equals(_unknownFields, other._unknownFields);
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  397. public override int GetHashCode() {
  398. int hash = 1;
  399. if (_unknownFields != null) {
  400. hash ^= _unknownFields.GetHashCode();
  401. }
  402. return hash;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  405. public override string ToString() {
  406. return pb::JsonFormatter.ToDiagnosticString(this);
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public void WriteTo(pb::CodedOutputStream output) {
  410. if (_unknownFields != null) {
  411. _unknownFields.WriteTo(output);
  412. }
  413. }
  414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  415. public int CalculateSize() {
  416. int size = 0;
  417. if (_unknownFields != null) {
  418. size += _unknownFields.CalculateSize();
  419. }
  420. return size;
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public void MergeFrom(CustomOptionFooRequest other) {
  424. if (other == null) {
  425. return;
  426. }
  427. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  430. public void MergeFrom(pb::CodedInputStream input) {
  431. uint tag;
  432. while ((tag = input.ReadTag()) != 0) {
  433. switch(tag) {
  434. default:
  435. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  436. break;
  437. }
  438. }
  439. }
  440. }
  441. public sealed partial class CustomOptionFooResponse : pb::IMessage<CustomOptionFooResponse> {
  442. private static readonly pb::MessageParser<CustomOptionFooResponse> _parser = new pb::MessageParser<CustomOptionFooResponse>(() => new CustomOptionFooResponse());
  443. private pb::UnknownFieldSet _unknownFields;
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  445. public static pb::MessageParser<CustomOptionFooResponse> Parser { get { return _parser; } }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  447. public static pbr::MessageDescriptor Descriptor {
  448. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[2]; }
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  451. pbr::MessageDescriptor pb::IMessage.Descriptor {
  452. get { return Descriptor; }
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  455. public CustomOptionFooResponse() {
  456. OnConstruction();
  457. }
  458. partial void OnConstruction();
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  460. public CustomOptionFooResponse(CustomOptionFooResponse other) : this() {
  461. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  462. }
  463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  464. public CustomOptionFooResponse Clone() {
  465. return new CustomOptionFooResponse(this);
  466. }
  467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  468. public override bool Equals(object other) {
  469. return Equals(other as CustomOptionFooResponse);
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  472. public bool Equals(CustomOptionFooResponse other) {
  473. if (ReferenceEquals(other, null)) {
  474. return false;
  475. }
  476. if (ReferenceEquals(other, this)) {
  477. return true;
  478. }
  479. return Equals(_unknownFields, other._unknownFields);
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  482. public override int GetHashCode() {
  483. int hash = 1;
  484. if (_unknownFields != null) {
  485. hash ^= _unknownFields.GetHashCode();
  486. }
  487. return hash;
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  490. public override string ToString() {
  491. return pb::JsonFormatter.ToDiagnosticString(this);
  492. }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public void WriteTo(pb::CodedOutputStream output) {
  495. if (_unknownFields != null) {
  496. _unknownFields.WriteTo(output);
  497. }
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  500. public int CalculateSize() {
  501. int size = 0;
  502. if (_unknownFields != null) {
  503. size += _unknownFields.CalculateSize();
  504. }
  505. return size;
  506. }
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  508. public void MergeFrom(CustomOptionFooResponse other) {
  509. if (other == null) {
  510. return;
  511. }
  512. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public void MergeFrom(pb::CodedInputStream input) {
  516. uint tag;
  517. while ((tag = input.ReadTag()) != 0) {
  518. switch(tag) {
  519. default:
  520. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  521. break;
  522. }
  523. }
  524. }
  525. }
  526. public sealed partial class CustomOptionFooClientMessage : pb::IMessage<CustomOptionFooClientMessage> {
  527. private static readonly pb::MessageParser<CustomOptionFooClientMessage> _parser = new pb::MessageParser<CustomOptionFooClientMessage>(() => new CustomOptionFooClientMessage());
  528. private pb::UnknownFieldSet _unknownFields;
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public static pb::MessageParser<CustomOptionFooClientMessage> Parser { get { return _parser; } }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  532. public static pbr::MessageDescriptor Descriptor {
  533. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[3]; }
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  536. pbr::MessageDescriptor pb::IMessage.Descriptor {
  537. get { return Descriptor; }
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  540. public CustomOptionFooClientMessage() {
  541. OnConstruction();
  542. }
  543. partial void OnConstruction();
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  545. public CustomOptionFooClientMessage(CustomOptionFooClientMessage other) : this() {
  546. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  549. public CustomOptionFooClientMessage Clone() {
  550. return new CustomOptionFooClientMessage(this);
  551. }
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  553. public override bool Equals(object other) {
  554. return Equals(other as CustomOptionFooClientMessage);
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  557. public bool Equals(CustomOptionFooClientMessage other) {
  558. if (ReferenceEquals(other, null)) {
  559. return false;
  560. }
  561. if (ReferenceEquals(other, this)) {
  562. return true;
  563. }
  564. return Equals(_unknownFields, other._unknownFields);
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public override int GetHashCode() {
  568. int hash = 1;
  569. if (_unknownFields != null) {
  570. hash ^= _unknownFields.GetHashCode();
  571. }
  572. return hash;
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. public override string ToString() {
  576. return pb::JsonFormatter.ToDiagnosticString(this);
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  579. public void WriteTo(pb::CodedOutputStream output) {
  580. if (_unknownFields != null) {
  581. _unknownFields.WriteTo(output);
  582. }
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  585. public int CalculateSize() {
  586. int size = 0;
  587. if (_unknownFields != null) {
  588. size += _unknownFields.CalculateSize();
  589. }
  590. return size;
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  593. public void MergeFrom(CustomOptionFooClientMessage other) {
  594. if (other == null) {
  595. return;
  596. }
  597. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  600. public void MergeFrom(pb::CodedInputStream input) {
  601. uint tag;
  602. while ((tag = input.ReadTag()) != 0) {
  603. switch(tag) {
  604. default:
  605. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  606. break;
  607. }
  608. }
  609. }
  610. }
  611. public sealed partial class CustomOptionFooServerMessage : pb::IMessage<CustomOptionFooServerMessage> {
  612. private static readonly pb::MessageParser<CustomOptionFooServerMessage> _parser = new pb::MessageParser<CustomOptionFooServerMessage>(() => new CustomOptionFooServerMessage());
  613. private pb::UnknownFieldSet _unknownFields;
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  615. public static pb::MessageParser<CustomOptionFooServerMessage> Parser { get { return _parser; } }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public static pbr::MessageDescriptor Descriptor {
  618. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[4]; }
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  621. pbr::MessageDescriptor pb::IMessage.Descriptor {
  622. get { return Descriptor; }
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  625. public CustomOptionFooServerMessage() {
  626. OnConstruction();
  627. }
  628. partial void OnConstruction();
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  630. public CustomOptionFooServerMessage(CustomOptionFooServerMessage other) : this() {
  631. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  634. public CustomOptionFooServerMessage Clone() {
  635. return new CustomOptionFooServerMessage(this);
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  638. public override bool Equals(object other) {
  639. return Equals(other as CustomOptionFooServerMessage);
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. public bool Equals(CustomOptionFooServerMessage other) {
  643. if (ReferenceEquals(other, null)) {
  644. return false;
  645. }
  646. if (ReferenceEquals(other, this)) {
  647. return true;
  648. }
  649. return Equals(_unknownFields, other._unknownFields);
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  652. public override int GetHashCode() {
  653. int hash = 1;
  654. if (_unknownFields != null) {
  655. hash ^= _unknownFields.GetHashCode();
  656. }
  657. return hash;
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  660. public override string ToString() {
  661. return pb::JsonFormatter.ToDiagnosticString(this);
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  664. public void WriteTo(pb::CodedOutputStream output) {
  665. if (_unknownFields != null) {
  666. _unknownFields.WriteTo(output);
  667. }
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. public int CalculateSize() {
  671. int size = 0;
  672. if (_unknownFields != null) {
  673. size += _unknownFields.CalculateSize();
  674. }
  675. return size;
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  678. public void MergeFrom(CustomOptionFooServerMessage other) {
  679. if (other == null) {
  680. return;
  681. }
  682. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  685. public void MergeFrom(pb::CodedInputStream input) {
  686. uint tag;
  687. while ((tag = input.ReadTag()) != 0) {
  688. switch(tag) {
  689. default:
  690. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  691. break;
  692. }
  693. }
  694. }
  695. }
  696. public sealed partial class DummyMessageContainingEnum : pb::IMessage<DummyMessageContainingEnum> {
  697. private static readonly pb::MessageParser<DummyMessageContainingEnum> _parser = new pb::MessageParser<DummyMessageContainingEnum>(() => new DummyMessageContainingEnum());
  698. private pb::UnknownFieldSet _unknownFields;
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  700. public static pb::MessageParser<DummyMessageContainingEnum> Parser { get { return _parser; } }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. public static pbr::MessageDescriptor Descriptor {
  703. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[5]; }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  706. pbr::MessageDescriptor pb::IMessage.Descriptor {
  707. get { return Descriptor; }
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  710. public DummyMessageContainingEnum() {
  711. OnConstruction();
  712. }
  713. partial void OnConstruction();
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  715. public DummyMessageContainingEnum(DummyMessageContainingEnum other) : this() {
  716. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. public DummyMessageContainingEnum Clone() {
  720. return new DummyMessageContainingEnum(this);
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  723. public override bool Equals(object other) {
  724. return Equals(other as DummyMessageContainingEnum);
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  727. public bool Equals(DummyMessageContainingEnum other) {
  728. if (ReferenceEquals(other, null)) {
  729. return false;
  730. }
  731. if (ReferenceEquals(other, this)) {
  732. return true;
  733. }
  734. return Equals(_unknownFields, other._unknownFields);
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public override int GetHashCode() {
  738. int hash = 1;
  739. if (_unknownFields != null) {
  740. hash ^= _unknownFields.GetHashCode();
  741. }
  742. return hash;
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public override string ToString() {
  746. return pb::JsonFormatter.ToDiagnosticString(this);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public void WriteTo(pb::CodedOutputStream output) {
  750. if (_unknownFields != null) {
  751. _unknownFields.WriteTo(output);
  752. }
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  755. public int CalculateSize() {
  756. int size = 0;
  757. if (_unknownFields != null) {
  758. size += _unknownFields.CalculateSize();
  759. }
  760. return size;
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  763. public void MergeFrom(DummyMessageContainingEnum other) {
  764. if (other == null) {
  765. return;
  766. }
  767. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public void MergeFrom(pb::CodedInputStream input) {
  771. uint tag;
  772. while ((tag = input.ReadTag()) != 0) {
  773. switch(tag) {
  774. default:
  775. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  776. break;
  777. }
  778. }
  779. }
  780. #region Nested types
  781. /// <summary>Container for nested types declared in the DummyMessageContainingEnum message type.</summary>
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  783. public static partial class Types {
  784. public enum TestEnumType {
  785. [pbr::OriginalName("TEST_OPTION_ENUM_UNSPECIFIED")] TestOptionEnumUnspecified = 0,
  786. [pbr::OriginalName("TEST_OPTION_ENUM_TYPE1")] TestOptionEnumType1 = 22,
  787. [pbr::OriginalName("TEST_OPTION_ENUM_TYPE2")] TestOptionEnumType2 = -23,
  788. }
  789. }
  790. #endregion
  791. }
  792. public sealed partial class DummyMessageInvalidAsOptionType : pb::IMessage<DummyMessageInvalidAsOptionType> {
  793. private static readonly pb::MessageParser<DummyMessageInvalidAsOptionType> _parser = new pb::MessageParser<DummyMessageInvalidAsOptionType>(() => new DummyMessageInvalidAsOptionType());
  794. private pb::UnknownFieldSet _unknownFields;
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  796. public static pb::MessageParser<DummyMessageInvalidAsOptionType> Parser { get { return _parser; } }
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  798. public static pbr::MessageDescriptor Descriptor {
  799. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[6]; }
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  802. pbr::MessageDescriptor pb::IMessage.Descriptor {
  803. get { return Descriptor; }
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  806. public DummyMessageInvalidAsOptionType() {
  807. OnConstruction();
  808. }
  809. partial void OnConstruction();
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  811. public DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other) : this() {
  812. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  815. public DummyMessageInvalidAsOptionType Clone() {
  816. return new DummyMessageInvalidAsOptionType(this);
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  819. public override bool Equals(object other) {
  820. return Equals(other as DummyMessageInvalidAsOptionType);
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  823. public bool Equals(DummyMessageInvalidAsOptionType other) {
  824. if (ReferenceEquals(other, null)) {
  825. return false;
  826. }
  827. if (ReferenceEquals(other, this)) {
  828. return true;
  829. }
  830. return Equals(_unknownFields, other._unknownFields);
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  833. public override int GetHashCode() {
  834. int hash = 1;
  835. if (_unknownFields != null) {
  836. hash ^= _unknownFields.GetHashCode();
  837. }
  838. return hash;
  839. }
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  841. public override string ToString() {
  842. return pb::JsonFormatter.ToDiagnosticString(this);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. public void WriteTo(pb::CodedOutputStream output) {
  846. if (_unknownFields != null) {
  847. _unknownFields.WriteTo(output);
  848. }
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. public int CalculateSize() {
  852. int size = 0;
  853. if (_unknownFields != null) {
  854. size += _unknownFields.CalculateSize();
  855. }
  856. return size;
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public void MergeFrom(DummyMessageInvalidAsOptionType other) {
  860. if (other == null) {
  861. return;
  862. }
  863. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  866. public void MergeFrom(pb::CodedInputStream input) {
  867. uint tag;
  868. while ((tag = input.ReadTag()) != 0) {
  869. switch(tag) {
  870. default:
  871. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  872. break;
  873. }
  874. }
  875. }
  876. }
  877. public sealed partial class CustomOptionMinIntegerValues : pb::IMessage<CustomOptionMinIntegerValues> {
  878. private static readonly pb::MessageParser<CustomOptionMinIntegerValues> _parser = new pb::MessageParser<CustomOptionMinIntegerValues>(() => new CustomOptionMinIntegerValues());
  879. private pb::UnknownFieldSet _unknownFields;
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public static pb::MessageParser<CustomOptionMinIntegerValues> Parser { get { return _parser; } }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. public static pbr::MessageDescriptor Descriptor {
  884. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[7]; }
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  887. pbr::MessageDescriptor pb::IMessage.Descriptor {
  888. get { return Descriptor; }
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  891. public CustomOptionMinIntegerValues() {
  892. OnConstruction();
  893. }
  894. partial void OnConstruction();
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  896. public CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other) : this() {
  897. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  898. }
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  900. public CustomOptionMinIntegerValues Clone() {
  901. return new CustomOptionMinIntegerValues(this);
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  904. public override bool Equals(object other) {
  905. return Equals(other as CustomOptionMinIntegerValues);
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. public bool Equals(CustomOptionMinIntegerValues other) {
  909. if (ReferenceEquals(other, null)) {
  910. return false;
  911. }
  912. if (ReferenceEquals(other, this)) {
  913. return true;
  914. }
  915. return Equals(_unknownFields, other._unknownFields);
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  918. public override int GetHashCode() {
  919. int hash = 1;
  920. if (_unknownFields != null) {
  921. hash ^= _unknownFields.GetHashCode();
  922. }
  923. return hash;
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  926. public override string ToString() {
  927. return pb::JsonFormatter.ToDiagnosticString(this);
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  930. public void WriteTo(pb::CodedOutputStream output) {
  931. if (_unknownFields != null) {
  932. _unknownFields.WriteTo(output);
  933. }
  934. }
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  936. public int CalculateSize() {
  937. int size = 0;
  938. if (_unknownFields != null) {
  939. size += _unknownFields.CalculateSize();
  940. }
  941. return size;
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  944. public void MergeFrom(CustomOptionMinIntegerValues other) {
  945. if (other == null) {
  946. return;
  947. }
  948. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  951. public void MergeFrom(pb::CodedInputStream input) {
  952. uint tag;
  953. while ((tag = input.ReadTag()) != 0) {
  954. switch(tag) {
  955. default:
  956. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  957. break;
  958. }
  959. }
  960. }
  961. }
  962. public sealed partial class CustomOptionMaxIntegerValues : pb::IMessage<CustomOptionMaxIntegerValues> {
  963. private static readonly pb::MessageParser<CustomOptionMaxIntegerValues> _parser = new pb::MessageParser<CustomOptionMaxIntegerValues>(() => new CustomOptionMaxIntegerValues());
  964. private pb::UnknownFieldSet _unknownFields;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public static pb::MessageParser<CustomOptionMaxIntegerValues> Parser { get { return _parser; } }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  968. public static pbr::MessageDescriptor Descriptor {
  969. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[8]; }
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  972. pbr::MessageDescriptor pb::IMessage.Descriptor {
  973. get { return Descriptor; }
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  976. public CustomOptionMaxIntegerValues() {
  977. OnConstruction();
  978. }
  979. partial void OnConstruction();
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  981. public CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other) : this() {
  982. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  985. public CustomOptionMaxIntegerValues Clone() {
  986. return new CustomOptionMaxIntegerValues(this);
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  989. public override bool Equals(object other) {
  990. return Equals(other as CustomOptionMaxIntegerValues);
  991. }
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  993. public bool Equals(CustomOptionMaxIntegerValues other) {
  994. if (ReferenceEquals(other, null)) {
  995. return false;
  996. }
  997. if (ReferenceEquals(other, this)) {
  998. return true;
  999. }
  1000. return Equals(_unknownFields, other._unknownFields);
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1003. public override int GetHashCode() {
  1004. int hash = 1;
  1005. if (_unknownFields != null) {
  1006. hash ^= _unknownFields.GetHashCode();
  1007. }
  1008. return hash;
  1009. }
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1011. public override string ToString() {
  1012. return pb::JsonFormatter.ToDiagnosticString(this);
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1015. public void WriteTo(pb::CodedOutputStream output) {
  1016. if (_unknownFields != null) {
  1017. _unknownFields.WriteTo(output);
  1018. }
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1021. public int CalculateSize() {
  1022. int size = 0;
  1023. if (_unknownFields != null) {
  1024. size += _unknownFields.CalculateSize();
  1025. }
  1026. return size;
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1029. public void MergeFrom(CustomOptionMaxIntegerValues other) {
  1030. if (other == null) {
  1031. return;
  1032. }
  1033. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1036. public void MergeFrom(pb::CodedInputStream input) {
  1037. uint tag;
  1038. while ((tag = input.ReadTag()) != 0) {
  1039. switch(tag) {
  1040. default:
  1041. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1042. break;
  1043. }
  1044. }
  1045. }
  1046. }
  1047. public sealed partial class CustomOptionOtherValues : pb::IMessage<CustomOptionOtherValues> {
  1048. private static readonly pb::MessageParser<CustomOptionOtherValues> _parser = new pb::MessageParser<CustomOptionOtherValues>(() => new CustomOptionOtherValues());
  1049. private pb::UnknownFieldSet _unknownFields;
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1051. public static pb::MessageParser<CustomOptionOtherValues> Parser { get { return _parser; } }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1053. public static pbr::MessageDescriptor Descriptor {
  1054. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[9]; }
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1058. get { return Descriptor; }
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1061. public CustomOptionOtherValues() {
  1062. OnConstruction();
  1063. }
  1064. partial void OnConstruction();
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1066. public CustomOptionOtherValues(CustomOptionOtherValues other) : this() {
  1067. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1070. public CustomOptionOtherValues Clone() {
  1071. return new CustomOptionOtherValues(this);
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1074. public override bool Equals(object other) {
  1075. return Equals(other as CustomOptionOtherValues);
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1078. public bool Equals(CustomOptionOtherValues other) {
  1079. if (ReferenceEquals(other, null)) {
  1080. return false;
  1081. }
  1082. if (ReferenceEquals(other, this)) {
  1083. return true;
  1084. }
  1085. return Equals(_unknownFields, other._unknownFields);
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1088. public override int GetHashCode() {
  1089. int hash = 1;
  1090. if (_unknownFields != null) {
  1091. hash ^= _unknownFields.GetHashCode();
  1092. }
  1093. return hash;
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1096. public override string ToString() {
  1097. return pb::JsonFormatter.ToDiagnosticString(this);
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1100. public void WriteTo(pb::CodedOutputStream output) {
  1101. if (_unknownFields != null) {
  1102. _unknownFields.WriteTo(output);
  1103. }
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1106. public int CalculateSize() {
  1107. int size = 0;
  1108. if (_unknownFields != null) {
  1109. size += _unknownFields.CalculateSize();
  1110. }
  1111. return size;
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1114. public void MergeFrom(CustomOptionOtherValues other) {
  1115. if (other == null) {
  1116. return;
  1117. }
  1118. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1121. public void MergeFrom(pb::CodedInputStream input) {
  1122. uint tag;
  1123. while ((tag = input.ReadTag()) != 0) {
  1124. switch(tag) {
  1125. default:
  1126. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1127. break;
  1128. }
  1129. }
  1130. }
  1131. }
  1132. public sealed partial class SettingRealsFromPositiveInts : pb::IMessage<SettingRealsFromPositiveInts> {
  1133. private static readonly pb::MessageParser<SettingRealsFromPositiveInts> _parser = new pb::MessageParser<SettingRealsFromPositiveInts>(() => new SettingRealsFromPositiveInts());
  1134. private pb::UnknownFieldSet _unknownFields;
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1136. public static pb::MessageParser<SettingRealsFromPositiveInts> Parser { get { return _parser; } }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1138. public static pbr::MessageDescriptor Descriptor {
  1139. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[10]; }
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1142. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1143. get { return Descriptor; }
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1146. public SettingRealsFromPositiveInts() {
  1147. OnConstruction();
  1148. }
  1149. partial void OnConstruction();
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1151. public SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other) : this() {
  1152. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1153. }
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1155. public SettingRealsFromPositiveInts Clone() {
  1156. return new SettingRealsFromPositiveInts(this);
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1159. public override bool Equals(object other) {
  1160. return Equals(other as SettingRealsFromPositiveInts);
  1161. }
  1162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1163. public bool Equals(SettingRealsFromPositiveInts other) {
  1164. if (ReferenceEquals(other, null)) {
  1165. return false;
  1166. }
  1167. if (ReferenceEquals(other, this)) {
  1168. return true;
  1169. }
  1170. return Equals(_unknownFields, other._unknownFields);
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1173. public override int GetHashCode() {
  1174. int hash = 1;
  1175. if (_unknownFields != null) {
  1176. hash ^= _unknownFields.GetHashCode();
  1177. }
  1178. return hash;
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1181. public override string ToString() {
  1182. return pb::JsonFormatter.ToDiagnosticString(this);
  1183. }
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1185. public void WriteTo(pb::CodedOutputStream output) {
  1186. if (_unknownFields != null) {
  1187. _unknownFields.WriteTo(output);
  1188. }
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1191. public int CalculateSize() {
  1192. int size = 0;
  1193. if (_unknownFields != null) {
  1194. size += _unknownFields.CalculateSize();
  1195. }
  1196. return size;
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1199. public void MergeFrom(SettingRealsFromPositiveInts other) {
  1200. if (other == null) {
  1201. return;
  1202. }
  1203. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1206. public void MergeFrom(pb::CodedInputStream input) {
  1207. uint tag;
  1208. while ((tag = input.ReadTag()) != 0) {
  1209. switch(tag) {
  1210. default:
  1211. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1212. break;
  1213. }
  1214. }
  1215. }
  1216. }
  1217. public sealed partial class SettingRealsFromNegativeInts : pb::IMessage<SettingRealsFromNegativeInts> {
  1218. private static readonly pb::MessageParser<SettingRealsFromNegativeInts> _parser = new pb::MessageParser<SettingRealsFromNegativeInts>(() => new SettingRealsFromNegativeInts());
  1219. private pb::UnknownFieldSet _unknownFields;
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1221. public static pb::MessageParser<SettingRealsFromNegativeInts> Parser { get { return _parser; } }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1223. public static pbr::MessageDescriptor Descriptor {
  1224. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[11]; }
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1227. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1228. get { return Descriptor; }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1231. public SettingRealsFromNegativeInts() {
  1232. OnConstruction();
  1233. }
  1234. partial void OnConstruction();
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1236. public SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other) : this() {
  1237. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1240. public SettingRealsFromNegativeInts Clone() {
  1241. return new SettingRealsFromNegativeInts(this);
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1244. public override bool Equals(object other) {
  1245. return Equals(other as SettingRealsFromNegativeInts);
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1248. public bool Equals(SettingRealsFromNegativeInts other) {
  1249. if (ReferenceEquals(other, null)) {
  1250. return false;
  1251. }
  1252. if (ReferenceEquals(other, this)) {
  1253. return true;
  1254. }
  1255. return Equals(_unknownFields, other._unknownFields);
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1258. public override int GetHashCode() {
  1259. int hash = 1;
  1260. if (_unknownFields != null) {
  1261. hash ^= _unknownFields.GetHashCode();
  1262. }
  1263. return hash;
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1266. public override string ToString() {
  1267. return pb::JsonFormatter.ToDiagnosticString(this);
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1270. public void WriteTo(pb::CodedOutputStream output) {
  1271. if (_unknownFields != null) {
  1272. _unknownFields.WriteTo(output);
  1273. }
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1276. public int CalculateSize() {
  1277. int size = 0;
  1278. if (_unknownFields != null) {
  1279. size += _unknownFields.CalculateSize();
  1280. }
  1281. return size;
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1284. public void MergeFrom(SettingRealsFromNegativeInts other) {
  1285. if (other == null) {
  1286. return;
  1287. }
  1288. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1291. public void MergeFrom(pb::CodedInputStream input) {
  1292. uint tag;
  1293. while ((tag = input.ReadTag()) != 0) {
  1294. switch(tag) {
  1295. default:
  1296. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1297. break;
  1298. }
  1299. }
  1300. }
  1301. }
  1302. public sealed partial class ComplexOptionType1 : pb::IMessage<ComplexOptionType1> {
  1303. private static readonly pb::MessageParser<ComplexOptionType1> _parser = new pb::MessageParser<ComplexOptionType1>(() => new ComplexOptionType1());
  1304. private pb::UnknownFieldSet _unknownFields;
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1306. public static pb::MessageParser<ComplexOptionType1> Parser { get { return _parser; } }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1308. public static pbr::MessageDescriptor Descriptor {
  1309. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[12]; }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1313. get { return Descriptor; }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1316. public ComplexOptionType1() {
  1317. OnConstruction();
  1318. }
  1319. partial void OnConstruction();
  1320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1321. public ComplexOptionType1(ComplexOptionType1 other) : this() {
  1322. foo_ = other.foo_;
  1323. foo2_ = other.foo2_;
  1324. foo3_ = other.foo3_;
  1325. foo4_ = other.foo4_.Clone();
  1326. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. public ComplexOptionType1 Clone() {
  1330. return new ComplexOptionType1(this);
  1331. }
  1332. /// <summary>Field number for the "foo" field.</summary>
  1333. public const int FooFieldNumber = 1;
  1334. private int foo_;
  1335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1336. public int Foo {
  1337. get { return foo_; }
  1338. set {
  1339. foo_ = value;
  1340. }
  1341. }
  1342. /// <summary>Field number for the "foo2" field.</summary>
  1343. public const int Foo2FieldNumber = 2;
  1344. private int foo2_;
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1346. public int Foo2 {
  1347. get { return foo2_; }
  1348. set {
  1349. foo2_ = value;
  1350. }
  1351. }
  1352. /// <summary>Field number for the "foo3" field.</summary>
  1353. public const int Foo3FieldNumber = 3;
  1354. private int foo3_;
  1355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1356. public int Foo3 {
  1357. get { return foo3_; }
  1358. set {
  1359. foo3_ = value;
  1360. }
  1361. }
  1362. /// <summary>Field number for the "foo4" field.</summary>
  1363. public const int Foo4FieldNumber = 4;
  1364. private static readonly pb::FieldCodec<int> _repeated_foo4_codec
  1365. = pb::FieldCodec.ForInt32(34);
  1366. private readonly pbc::RepeatedField<int> foo4_ = new pbc::RepeatedField<int>();
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1368. public pbc::RepeatedField<int> Foo4 {
  1369. get { return foo4_; }
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1372. public override bool Equals(object other) {
  1373. return Equals(other as ComplexOptionType1);
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1376. public bool Equals(ComplexOptionType1 other) {
  1377. if (ReferenceEquals(other, null)) {
  1378. return false;
  1379. }
  1380. if (ReferenceEquals(other, this)) {
  1381. return true;
  1382. }
  1383. if (Foo != other.Foo) return false;
  1384. if (Foo2 != other.Foo2) return false;
  1385. if (Foo3 != other.Foo3) return false;
  1386. if(!foo4_.Equals(other.foo4_)) return false;
  1387. return Equals(_unknownFields, other._unknownFields);
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1390. public override int GetHashCode() {
  1391. int hash = 1;
  1392. if (Foo != 0) hash ^= Foo.GetHashCode();
  1393. if (Foo2 != 0) hash ^= Foo2.GetHashCode();
  1394. if (Foo3 != 0) hash ^= Foo3.GetHashCode();
  1395. hash ^= foo4_.GetHashCode();
  1396. if (_unknownFields != null) {
  1397. hash ^= _unknownFields.GetHashCode();
  1398. }
  1399. return hash;
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1402. public override string ToString() {
  1403. return pb::JsonFormatter.ToDiagnosticString(this);
  1404. }
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1406. public void WriteTo(pb::CodedOutputStream output) {
  1407. if (Foo != 0) {
  1408. output.WriteRawTag(8);
  1409. output.WriteInt32(Foo);
  1410. }
  1411. if (Foo2 != 0) {
  1412. output.WriteRawTag(16);
  1413. output.WriteInt32(Foo2);
  1414. }
  1415. if (Foo3 != 0) {
  1416. output.WriteRawTag(24);
  1417. output.WriteInt32(Foo3);
  1418. }
  1419. foo4_.WriteTo(output, _repeated_foo4_codec);
  1420. if (_unknownFields != null) {
  1421. _unknownFields.WriteTo(output);
  1422. }
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1425. public int CalculateSize() {
  1426. int size = 0;
  1427. if (Foo != 0) {
  1428. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo);
  1429. }
  1430. if (Foo2 != 0) {
  1431. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo2);
  1432. }
  1433. if (Foo3 != 0) {
  1434. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo3);
  1435. }
  1436. size += foo4_.CalculateSize(_repeated_foo4_codec);
  1437. if (_unknownFields != null) {
  1438. size += _unknownFields.CalculateSize();
  1439. }
  1440. return size;
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1443. public void MergeFrom(ComplexOptionType1 other) {
  1444. if (other == null) {
  1445. return;
  1446. }
  1447. if (other.Foo != 0) {
  1448. Foo = other.Foo;
  1449. }
  1450. if (other.Foo2 != 0) {
  1451. Foo2 = other.Foo2;
  1452. }
  1453. if (other.Foo3 != 0) {
  1454. Foo3 = other.Foo3;
  1455. }
  1456. foo4_.Add(other.foo4_);
  1457. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1460. public void MergeFrom(pb::CodedInputStream input) {
  1461. uint tag;
  1462. while ((tag = input.ReadTag()) != 0) {
  1463. switch(tag) {
  1464. default:
  1465. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1466. break;
  1467. case 8: {
  1468. Foo = input.ReadInt32();
  1469. break;
  1470. }
  1471. case 16: {
  1472. Foo2 = input.ReadInt32();
  1473. break;
  1474. }
  1475. case 24: {
  1476. Foo3 = input.ReadInt32();
  1477. break;
  1478. }
  1479. case 34:
  1480. case 32: {
  1481. foo4_.AddEntriesFrom(input, _repeated_foo4_codec);
  1482. break;
  1483. }
  1484. }
  1485. }
  1486. }
  1487. }
  1488. public sealed partial class ComplexOptionType2 : pb::IMessage<ComplexOptionType2> {
  1489. private static readonly pb::MessageParser<ComplexOptionType2> _parser = new pb::MessageParser<ComplexOptionType2>(() => new ComplexOptionType2());
  1490. private pb::UnknownFieldSet _unknownFields;
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1492. public static pb::MessageParser<ComplexOptionType2> Parser { get { return _parser; } }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1494. public static pbr::MessageDescriptor Descriptor {
  1495. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[13]; }
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1498. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1499. get { return Descriptor; }
  1500. }
  1501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1502. public ComplexOptionType2() {
  1503. OnConstruction();
  1504. }
  1505. partial void OnConstruction();
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1507. public ComplexOptionType2(ComplexOptionType2 other) : this() {
  1508. bar_ = other.bar_ != null ? other.bar_.Clone() : null;
  1509. baz_ = other.baz_;
  1510. fred_ = other.fred_ != null ? other.fred_.Clone() : null;
  1511. barney_ = other.barney_.Clone();
  1512. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1513. }
  1514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1515. public ComplexOptionType2 Clone() {
  1516. return new ComplexOptionType2(this);
  1517. }
  1518. /// <summary>Field number for the "bar" field.</summary>
  1519. public const int BarFieldNumber = 1;
  1520. private global::UnitTest.Issues.TestProtos.ComplexOptionType1 bar_;
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1522. public global::UnitTest.Issues.TestProtos.ComplexOptionType1 Bar {
  1523. get { return bar_; }
  1524. set {
  1525. bar_ = value;
  1526. }
  1527. }
  1528. /// <summary>Field number for the "baz" field.</summary>
  1529. public const int BazFieldNumber = 2;
  1530. private int baz_;
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1532. public int Baz {
  1533. get { return baz_; }
  1534. set {
  1535. baz_ = value;
  1536. }
  1537. }
  1538. /// <summary>Field number for the "fred" field.</summary>
  1539. public const int FredFieldNumber = 3;
  1540. private global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 fred_;
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1542. public global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred {
  1543. get { return fred_; }
  1544. set {
  1545. fred_ = value;
  1546. }
  1547. }
  1548. /// <summary>Field number for the "barney" field.</summary>
  1549. public const int BarneyFieldNumber = 4;
  1550. private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> _repeated_barney_codec
  1551. = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser);
  1552. private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> barney_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>();
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1554. public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> Barney {
  1555. get { return barney_; }
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1558. public override bool Equals(object other) {
  1559. return Equals(other as ComplexOptionType2);
  1560. }
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1562. public bool Equals(ComplexOptionType2 other) {
  1563. if (ReferenceEquals(other, null)) {
  1564. return false;
  1565. }
  1566. if (ReferenceEquals(other, this)) {
  1567. return true;
  1568. }
  1569. if (!object.Equals(Bar, other.Bar)) return false;
  1570. if (Baz != other.Baz) return false;
  1571. if (!object.Equals(Fred, other.Fred)) return false;
  1572. if(!barney_.Equals(other.barney_)) return false;
  1573. return Equals(_unknownFields, other._unknownFields);
  1574. }
  1575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1576. public override int GetHashCode() {
  1577. int hash = 1;
  1578. if (bar_ != null) hash ^= Bar.GetHashCode();
  1579. if (Baz != 0) hash ^= Baz.GetHashCode();
  1580. if (fred_ != null) hash ^= Fred.GetHashCode();
  1581. hash ^= barney_.GetHashCode();
  1582. if (_unknownFields != null) {
  1583. hash ^= _unknownFields.GetHashCode();
  1584. }
  1585. return hash;
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1588. public override string ToString() {
  1589. return pb::JsonFormatter.ToDiagnosticString(this);
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1592. public void WriteTo(pb::CodedOutputStream output) {
  1593. if (bar_ != null) {
  1594. output.WriteRawTag(10);
  1595. output.WriteMessage(Bar);
  1596. }
  1597. if (Baz != 0) {
  1598. output.WriteRawTag(16);
  1599. output.WriteInt32(Baz);
  1600. }
  1601. if (fred_ != null) {
  1602. output.WriteRawTag(26);
  1603. output.WriteMessage(Fred);
  1604. }
  1605. barney_.WriteTo(output, _repeated_barney_codec);
  1606. if (_unknownFields != null) {
  1607. _unknownFields.WriteTo(output);
  1608. }
  1609. }
  1610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1611. public int CalculateSize() {
  1612. int size = 0;
  1613. if (bar_ != null) {
  1614. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bar);
  1615. }
  1616. if (Baz != 0) {
  1617. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Baz);
  1618. }
  1619. if (fred_ != null) {
  1620. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fred);
  1621. }
  1622. size += barney_.CalculateSize(_repeated_barney_codec);
  1623. if (_unknownFields != null) {
  1624. size += _unknownFields.CalculateSize();
  1625. }
  1626. return size;
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1629. public void MergeFrom(ComplexOptionType2 other) {
  1630. if (other == null) {
  1631. return;
  1632. }
  1633. if (other.bar_ != null) {
  1634. if (bar_ == null) {
  1635. Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1();
  1636. }
  1637. Bar.MergeFrom(other.Bar);
  1638. }
  1639. if (other.Baz != 0) {
  1640. Baz = other.Baz;
  1641. }
  1642. if (other.fred_ != null) {
  1643. if (fred_ == null) {
  1644. Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4();
  1645. }
  1646. Fred.MergeFrom(other.Fred);
  1647. }
  1648. barney_.Add(other.barney_);
  1649. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1652. public void MergeFrom(pb::CodedInputStream input) {
  1653. uint tag;
  1654. while ((tag = input.ReadTag()) != 0) {
  1655. switch(tag) {
  1656. default:
  1657. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1658. break;
  1659. case 10: {
  1660. if (bar_ == null) {
  1661. Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1();
  1662. }
  1663. input.ReadMessage(Bar);
  1664. break;
  1665. }
  1666. case 16: {
  1667. Baz = input.ReadInt32();
  1668. break;
  1669. }
  1670. case 26: {
  1671. if (fred_ == null) {
  1672. Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4();
  1673. }
  1674. input.ReadMessage(Fred);
  1675. break;
  1676. }
  1677. case 34: {
  1678. barney_.AddEntriesFrom(input, _repeated_barney_codec);
  1679. break;
  1680. }
  1681. }
  1682. }
  1683. }
  1684. #region Nested types
  1685. /// <summary>Container for nested types declared in the ComplexOptionType2 message type.</summary>
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1687. public static partial class Types {
  1688. public sealed partial class ComplexOptionType4 : pb::IMessage<ComplexOptionType4> {
  1689. private static readonly pb::MessageParser<ComplexOptionType4> _parser = new pb::MessageParser<ComplexOptionType4>(() => new ComplexOptionType4());
  1690. private pb::UnknownFieldSet _unknownFields;
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1692. public static pb::MessageParser<ComplexOptionType4> Parser { get { return _parser; } }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1694. public static pbr::MessageDescriptor Descriptor {
  1695. get { return global::UnitTest.Issues.TestProtos.ComplexOptionType2.Descriptor.NestedTypes[0]; }
  1696. }
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1698. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1699. get { return Descriptor; }
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1702. public ComplexOptionType4() {
  1703. OnConstruction();
  1704. }
  1705. partial void OnConstruction();
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1707. public ComplexOptionType4(ComplexOptionType4 other) : this() {
  1708. waldo_ = other.waldo_;
  1709. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1710. }
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1712. public ComplexOptionType4 Clone() {
  1713. return new ComplexOptionType4(this);
  1714. }
  1715. /// <summary>Field number for the "waldo" field.</summary>
  1716. public const int WaldoFieldNumber = 1;
  1717. private int waldo_;
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1719. public int Waldo {
  1720. get { return waldo_; }
  1721. set {
  1722. waldo_ = value;
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1726. public override bool Equals(object other) {
  1727. return Equals(other as ComplexOptionType4);
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1730. public bool Equals(ComplexOptionType4 other) {
  1731. if (ReferenceEquals(other, null)) {
  1732. return false;
  1733. }
  1734. if (ReferenceEquals(other, this)) {
  1735. return true;
  1736. }
  1737. if (Waldo != other.Waldo) return false;
  1738. return Equals(_unknownFields, other._unknownFields);
  1739. }
  1740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1741. public override int GetHashCode() {
  1742. int hash = 1;
  1743. if (Waldo != 0) hash ^= Waldo.GetHashCode();
  1744. if (_unknownFields != null) {
  1745. hash ^= _unknownFields.GetHashCode();
  1746. }
  1747. return hash;
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1750. public override string ToString() {
  1751. return pb::JsonFormatter.ToDiagnosticString(this);
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1754. public void WriteTo(pb::CodedOutputStream output) {
  1755. if (Waldo != 0) {
  1756. output.WriteRawTag(8);
  1757. output.WriteInt32(Waldo);
  1758. }
  1759. if (_unknownFields != null) {
  1760. _unknownFields.WriteTo(output);
  1761. }
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1764. public int CalculateSize() {
  1765. int size = 0;
  1766. if (Waldo != 0) {
  1767. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Waldo);
  1768. }
  1769. if (_unknownFields != null) {
  1770. size += _unknownFields.CalculateSize();
  1771. }
  1772. return size;
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1775. public void MergeFrom(ComplexOptionType4 other) {
  1776. if (other == null) {
  1777. return;
  1778. }
  1779. if (other.Waldo != 0) {
  1780. Waldo = other.Waldo;
  1781. }
  1782. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1785. public void MergeFrom(pb::CodedInputStream input) {
  1786. uint tag;
  1787. while ((tag = input.ReadTag()) != 0) {
  1788. switch(tag) {
  1789. default:
  1790. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1791. break;
  1792. case 8: {
  1793. Waldo = input.ReadInt32();
  1794. break;
  1795. }
  1796. }
  1797. }
  1798. }
  1799. }
  1800. }
  1801. #endregion
  1802. }
  1803. public sealed partial class ComplexOptionType3 : pb::IMessage<ComplexOptionType3> {
  1804. private static readonly pb::MessageParser<ComplexOptionType3> _parser = new pb::MessageParser<ComplexOptionType3>(() => new ComplexOptionType3());
  1805. private pb::UnknownFieldSet _unknownFields;
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1807. public static pb::MessageParser<ComplexOptionType3> Parser { get { return _parser; } }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1809. public static pbr::MessageDescriptor Descriptor {
  1810. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[14]; }
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1813. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1814. get { return Descriptor; }
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1817. public ComplexOptionType3() {
  1818. OnConstruction();
  1819. }
  1820. partial void OnConstruction();
  1821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1822. public ComplexOptionType3(ComplexOptionType3 other) : this() {
  1823. qux_ = other.qux_;
  1824. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1827. public ComplexOptionType3 Clone() {
  1828. return new ComplexOptionType3(this);
  1829. }
  1830. /// <summary>Field number for the "qux" field.</summary>
  1831. public const int QuxFieldNumber = 1;
  1832. private int qux_;
  1833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1834. public int Qux {
  1835. get { return qux_; }
  1836. set {
  1837. qux_ = value;
  1838. }
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1841. public override bool Equals(object other) {
  1842. return Equals(other as ComplexOptionType3);
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1845. public bool Equals(ComplexOptionType3 other) {
  1846. if (ReferenceEquals(other, null)) {
  1847. return false;
  1848. }
  1849. if (ReferenceEquals(other, this)) {
  1850. return true;
  1851. }
  1852. if (Qux != other.Qux) return false;
  1853. return Equals(_unknownFields, other._unknownFields);
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1856. public override int GetHashCode() {
  1857. int hash = 1;
  1858. if (Qux != 0) hash ^= Qux.GetHashCode();
  1859. if (_unknownFields != null) {
  1860. hash ^= _unknownFields.GetHashCode();
  1861. }
  1862. return hash;
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1865. public override string ToString() {
  1866. return pb::JsonFormatter.ToDiagnosticString(this);
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1869. public void WriteTo(pb::CodedOutputStream output) {
  1870. if (Qux != 0) {
  1871. output.WriteRawTag(8);
  1872. output.WriteInt32(Qux);
  1873. }
  1874. if (_unknownFields != null) {
  1875. _unknownFields.WriteTo(output);
  1876. }
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1879. public int CalculateSize() {
  1880. int size = 0;
  1881. if (Qux != 0) {
  1882. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qux);
  1883. }
  1884. if (_unknownFields != null) {
  1885. size += _unknownFields.CalculateSize();
  1886. }
  1887. return size;
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1890. public void MergeFrom(ComplexOptionType3 other) {
  1891. if (other == null) {
  1892. return;
  1893. }
  1894. if (other.Qux != 0) {
  1895. Qux = other.Qux;
  1896. }
  1897. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1900. public void MergeFrom(pb::CodedInputStream input) {
  1901. uint tag;
  1902. while ((tag = input.ReadTag()) != 0) {
  1903. switch(tag) {
  1904. default:
  1905. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1906. break;
  1907. case 8: {
  1908. Qux = input.ReadInt32();
  1909. break;
  1910. }
  1911. }
  1912. }
  1913. }
  1914. }
  1915. /// <summary>
  1916. /// Note that we try various different ways of naming the same extension.
  1917. /// </summary>
  1918. public sealed partial class VariousComplexOptions : pb::IMessage<VariousComplexOptions> {
  1919. private static readonly pb::MessageParser<VariousComplexOptions> _parser = new pb::MessageParser<VariousComplexOptions>(() => new VariousComplexOptions());
  1920. private pb::UnknownFieldSet _unknownFields;
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1922. public static pb::MessageParser<VariousComplexOptions> Parser { get { return _parser; } }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1924. public static pbr::MessageDescriptor Descriptor {
  1925. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[15]; }
  1926. }
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1928. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1929. get { return Descriptor; }
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1932. public VariousComplexOptions() {
  1933. OnConstruction();
  1934. }
  1935. partial void OnConstruction();
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1937. public VariousComplexOptions(VariousComplexOptions other) : this() {
  1938. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1939. }
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1941. public VariousComplexOptions Clone() {
  1942. return new VariousComplexOptions(this);
  1943. }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1945. public override bool Equals(object other) {
  1946. return Equals(other as VariousComplexOptions);
  1947. }
  1948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1949. public bool Equals(VariousComplexOptions other) {
  1950. if (ReferenceEquals(other, null)) {
  1951. return false;
  1952. }
  1953. if (ReferenceEquals(other, this)) {
  1954. return true;
  1955. }
  1956. return Equals(_unknownFields, other._unknownFields);
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1959. public override int GetHashCode() {
  1960. int hash = 1;
  1961. if (_unknownFields != null) {
  1962. hash ^= _unknownFields.GetHashCode();
  1963. }
  1964. return hash;
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1967. public override string ToString() {
  1968. return pb::JsonFormatter.ToDiagnosticString(this);
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1971. public void WriteTo(pb::CodedOutputStream output) {
  1972. if (_unknownFields != null) {
  1973. _unknownFields.WriteTo(output);
  1974. }
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1977. public int CalculateSize() {
  1978. int size = 0;
  1979. if (_unknownFields != null) {
  1980. size += _unknownFields.CalculateSize();
  1981. }
  1982. return size;
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1985. public void MergeFrom(VariousComplexOptions other) {
  1986. if (other == null) {
  1987. return;
  1988. }
  1989. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1992. public void MergeFrom(pb::CodedInputStream input) {
  1993. uint tag;
  1994. while ((tag = input.ReadTag()) != 0) {
  1995. switch(tag) {
  1996. default:
  1997. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1998. break;
  1999. }
  2000. }
  2001. }
  2002. }
  2003. /// <summary>
  2004. /// A helper type used to test aggregate option parsing
  2005. /// </summary>
  2006. public sealed partial class Aggregate : pb::IMessage<Aggregate> {
  2007. private static readonly pb::MessageParser<Aggregate> _parser = new pb::MessageParser<Aggregate>(() => new Aggregate());
  2008. private pb::UnknownFieldSet _unknownFields;
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2010. public static pb::MessageParser<Aggregate> Parser { get { return _parser; } }
  2011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2012. public static pbr::MessageDescriptor Descriptor {
  2013. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[16]; }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2016. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2017. get { return Descriptor; }
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2020. public Aggregate() {
  2021. OnConstruction();
  2022. }
  2023. partial void OnConstruction();
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2025. public Aggregate(Aggregate other) : this() {
  2026. i_ = other.i_;
  2027. s_ = other.s_;
  2028. sub_ = other.sub_ != null ? other.sub_.Clone() : null;
  2029. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2032. public Aggregate Clone() {
  2033. return new Aggregate(this);
  2034. }
  2035. /// <summary>Field number for the "i" field.</summary>
  2036. public const int IFieldNumber = 1;
  2037. private int i_;
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2039. public int I {
  2040. get { return i_; }
  2041. set {
  2042. i_ = value;
  2043. }
  2044. }
  2045. /// <summary>Field number for the "s" field.</summary>
  2046. public const int SFieldNumber = 2;
  2047. private string s_ = "";
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2049. public string S {
  2050. get { return s_; }
  2051. set {
  2052. s_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2053. }
  2054. }
  2055. /// <summary>Field number for the "sub" field.</summary>
  2056. public const int SubFieldNumber = 3;
  2057. private global::UnitTest.Issues.TestProtos.Aggregate sub_;
  2058. /// <summary>
  2059. /// A nested object
  2060. /// </summary>
  2061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2062. public global::UnitTest.Issues.TestProtos.Aggregate Sub {
  2063. get { return sub_; }
  2064. set {
  2065. sub_ = value;
  2066. }
  2067. }
  2068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2069. public override bool Equals(object other) {
  2070. return Equals(other as Aggregate);
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2073. public bool Equals(Aggregate other) {
  2074. if (ReferenceEquals(other, null)) {
  2075. return false;
  2076. }
  2077. if (ReferenceEquals(other, this)) {
  2078. return true;
  2079. }
  2080. if (I != other.I) return false;
  2081. if (S != other.S) return false;
  2082. if (!object.Equals(Sub, other.Sub)) return false;
  2083. return Equals(_unknownFields, other._unknownFields);
  2084. }
  2085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2086. public override int GetHashCode() {
  2087. int hash = 1;
  2088. if (I != 0) hash ^= I.GetHashCode();
  2089. if (S.Length != 0) hash ^= S.GetHashCode();
  2090. if (sub_ != null) hash ^= Sub.GetHashCode();
  2091. if (_unknownFields != null) {
  2092. hash ^= _unknownFields.GetHashCode();
  2093. }
  2094. return hash;
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2097. public override string ToString() {
  2098. return pb::JsonFormatter.ToDiagnosticString(this);
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2101. public void WriteTo(pb::CodedOutputStream output) {
  2102. if (I != 0) {
  2103. output.WriteRawTag(8);
  2104. output.WriteInt32(I);
  2105. }
  2106. if (S.Length != 0) {
  2107. output.WriteRawTag(18);
  2108. output.WriteString(S);
  2109. }
  2110. if (sub_ != null) {
  2111. output.WriteRawTag(26);
  2112. output.WriteMessage(Sub);
  2113. }
  2114. if (_unknownFields != null) {
  2115. _unknownFields.WriteTo(output);
  2116. }
  2117. }
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2119. public int CalculateSize() {
  2120. int size = 0;
  2121. if (I != 0) {
  2122. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  2123. }
  2124. if (S.Length != 0) {
  2125. size += 1 + pb::CodedOutputStream.ComputeStringSize(S);
  2126. }
  2127. if (sub_ != null) {
  2128. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sub);
  2129. }
  2130. if (_unknownFields != null) {
  2131. size += _unknownFields.CalculateSize();
  2132. }
  2133. return size;
  2134. }
  2135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2136. public void MergeFrom(Aggregate other) {
  2137. if (other == null) {
  2138. return;
  2139. }
  2140. if (other.I != 0) {
  2141. I = other.I;
  2142. }
  2143. if (other.S.Length != 0) {
  2144. S = other.S;
  2145. }
  2146. if (other.sub_ != null) {
  2147. if (sub_ == null) {
  2148. Sub = new global::UnitTest.Issues.TestProtos.Aggregate();
  2149. }
  2150. Sub.MergeFrom(other.Sub);
  2151. }
  2152. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2155. public void MergeFrom(pb::CodedInputStream input) {
  2156. uint tag;
  2157. while ((tag = input.ReadTag()) != 0) {
  2158. switch(tag) {
  2159. default:
  2160. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2161. break;
  2162. case 8: {
  2163. I = input.ReadInt32();
  2164. break;
  2165. }
  2166. case 18: {
  2167. S = input.ReadString();
  2168. break;
  2169. }
  2170. case 26: {
  2171. if (sub_ == null) {
  2172. Sub = new global::UnitTest.Issues.TestProtos.Aggregate();
  2173. }
  2174. input.ReadMessage(Sub);
  2175. break;
  2176. }
  2177. }
  2178. }
  2179. }
  2180. }
  2181. public sealed partial class AggregateMessage : pb::IMessage<AggregateMessage> {
  2182. private static readonly pb::MessageParser<AggregateMessage> _parser = new pb::MessageParser<AggregateMessage>(() => new AggregateMessage());
  2183. private pb::UnknownFieldSet _unknownFields;
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2185. public static pb::MessageParser<AggregateMessage> Parser { get { return _parser; } }
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2187. public static pbr::MessageDescriptor Descriptor {
  2188. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[17]; }
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2191. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2192. get { return Descriptor; }
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2195. public AggregateMessage() {
  2196. OnConstruction();
  2197. }
  2198. partial void OnConstruction();
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2200. public AggregateMessage(AggregateMessage other) : this() {
  2201. fieldname_ = other.fieldname_;
  2202. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2205. public AggregateMessage Clone() {
  2206. return new AggregateMessage(this);
  2207. }
  2208. /// <summary>Field number for the "fieldname" field.</summary>
  2209. public const int FieldnameFieldNumber = 1;
  2210. private int fieldname_;
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2212. public int Fieldname {
  2213. get { return fieldname_; }
  2214. set {
  2215. fieldname_ = value;
  2216. }
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2219. public override bool Equals(object other) {
  2220. return Equals(other as AggregateMessage);
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2223. public bool Equals(AggregateMessage other) {
  2224. if (ReferenceEquals(other, null)) {
  2225. return false;
  2226. }
  2227. if (ReferenceEquals(other, this)) {
  2228. return true;
  2229. }
  2230. if (Fieldname != other.Fieldname) return false;
  2231. return Equals(_unknownFields, other._unknownFields);
  2232. }
  2233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2234. public override int GetHashCode() {
  2235. int hash = 1;
  2236. if (Fieldname != 0) hash ^= Fieldname.GetHashCode();
  2237. if (_unknownFields != null) {
  2238. hash ^= _unknownFields.GetHashCode();
  2239. }
  2240. return hash;
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2243. public override string ToString() {
  2244. return pb::JsonFormatter.ToDiagnosticString(this);
  2245. }
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2247. public void WriteTo(pb::CodedOutputStream output) {
  2248. if (Fieldname != 0) {
  2249. output.WriteRawTag(8);
  2250. output.WriteInt32(Fieldname);
  2251. }
  2252. if (_unknownFields != null) {
  2253. _unknownFields.WriteTo(output);
  2254. }
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2257. public int CalculateSize() {
  2258. int size = 0;
  2259. if (Fieldname != 0) {
  2260. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fieldname);
  2261. }
  2262. if (_unknownFields != null) {
  2263. size += _unknownFields.CalculateSize();
  2264. }
  2265. return size;
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2268. public void MergeFrom(AggregateMessage other) {
  2269. if (other == null) {
  2270. return;
  2271. }
  2272. if (other.Fieldname != 0) {
  2273. Fieldname = other.Fieldname;
  2274. }
  2275. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2278. public void MergeFrom(pb::CodedInputStream input) {
  2279. uint tag;
  2280. while ((tag = input.ReadTag()) != 0) {
  2281. switch(tag) {
  2282. default:
  2283. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2284. break;
  2285. case 8: {
  2286. Fieldname = input.ReadInt32();
  2287. break;
  2288. }
  2289. }
  2290. }
  2291. }
  2292. }
  2293. /// <summary>
  2294. /// Test custom options for nested type.
  2295. /// </summary>
  2296. public sealed partial class NestedOptionType : pb::IMessage<NestedOptionType> {
  2297. private static readonly pb::MessageParser<NestedOptionType> _parser = new pb::MessageParser<NestedOptionType>(() => new NestedOptionType());
  2298. private pb::UnknownFieldSet _unknownFields;
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2300. public static pb::MessageParser<NestedOptionType> Parser { get { return _parser; } }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2302. public static pbr::MessageDescriptor Descriptor {
  2303. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[18]; }
  2304. }
  2305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2306. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2307. get { return Descriptor; }
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2310. public NestedOptionType() {
  2311. OnConstruction();
  2312. }
  2313. partial void OnConstruction();
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2315. public NestedOptionType(NestedOptionType other) : this() {
  2316. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2317. }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2319. public NestedOptionType Clone() {
  2320. return new NestedOptionType(this);
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2323. public override bool Equals(object other) {
  2324. return Equals(other as NestedOptionType);
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2327. public bool Equals(NestedOptionType other) {
  2328. if (ReferenceEquals(other, null)) {
  2329. return false;
  2330. }
  2331. if (ReferenceEquals(other, this)) {
  2332. return true;
  2333. }
  2334. return Equals(_unknownFields, other._unknownFields);
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2337. public override int GetHashCode() {
  2338. int hash = 1;
  2339. if (_unknownFields != null) {
  2340. hash ^= _unknownFields.GetHashCode();
  2341. }
  2342. return hash;
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2345. public override string ToString() {
  2346. return pb::JsonFormatter.ToDiagnosticString(this);
  2347. }
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2349. public void WriteTo(pb::CodedOutputStream output) {
  2350. if (_unknownFields != null) {
  2351. _unknownFields.WriteTo(output);
  2352. }
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2355. public int CalculateSize() {
  2356. int size = 0;
  2357. if (_unknownFields != null) {
  2358. size += _unknownFields.CalculateSize();
  2359. }
  2360. return size;
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2363. public void MergeFrom(NestedOptionType other) {
  2364. if (other == null) {
  2365. return;
  2366. }
  2367. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2370. public void MergeFrom(pb::CodedInputStream input) {
  2371. uint tag;
  2372. while ((tag = input.ReadTag()) != 0) {
  2373. switch(tag) {
  2374. default:
  2375. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2376. break;
  2377. }
  2378. }
  2379. }
  2380. #region Nested types
  2381. /// <summary>Container for nested types declared in the NestedOptionType message type.</summary>
  2382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2383. public static partial class Types {
  2384. public enum NestedEnum {
  2385. [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
  2386. [pbr::OriginalName("NESTED_ENUM_VALUE")] Value = 1,
  2387. }
  2388. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  2389. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  2390. private pb::UnknownFieldSet _unknownFields;
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2392. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2394. public static pbr::MessageDescriptor Descriptor {
  2395. get { return global::UnitTest.Issues.TestProtos.NestedOptionType.Descriptor.NestedTypes[0]; }
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2398. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2399. get { return Descriptor; }
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2402. public NestedMessage() {
  2403. OnConstruction();
  2404. }
  2405. partial void OnConstruction();
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2407. public NestedMessage(NestedMessage other) : this() {
  2408. nestedField_ = other.nestedField_;
  2409. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2412. public NestedMessage Clone() {
  2413. return new NestedMessage(this);
  2414. }
  2415. /// <summary>Field number for the "nested_field" field.</summary>
  2416. public const int NestedFieldFieldNumber = 1;
  2417. private int nestedField_;
  2418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2419. public int NestedField {
  2420. get { return nestedField_; }
  2421. set {
  2422. nestedField_ = value;
  2423. }
  2424. }
  2425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2426. public override bool Equals(object other) {
  2427. return Equals(other as NestedMessage);
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2430. public bool Equals(NestedMessage other) {
  2431. if (ReferenceEquals(other, null)) {
  2432. return false;
  2433. }
  2434. if (ReferenceEquals(other, this)) {
  2435. return true;
  2436. }
  2437. if (NestedField != other.NestedField) return false;
  2438. return Equals(_unknownFields, other._unknownFields);
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2441. public override int GetHashCode() {
  2442. int hash = 1;
  2443. if (NestedField != 0) hash ^= NestedField.GetHashCode();
  2444. if (_unknownFields != null) {
  2445. hash ^= _unknownFields.GetHashCode();
  2446. }
  2447. return hash;
  2448. }
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2450. public override string ToString() {
  2451. return pb::JsonFormatter.ToDiagnosticString(this);
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2454. public void WriteTo(pb::CodedOutputStream output) {
  2455. if (NestedField != 0) {
  2456. output.WriteRawTag(8);
  2457. output.WriteInt32(NestedField);
  2458. }
  2459. if (_unknownFields != null) {
  2460. _unknownFields.WriteTo(output);
  2461. }
  2462. }
  2463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2464. public int CalculateSize() {
  2465. int size = 0;
  2466. if (NestedField != 0) {
  2467. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NestedField);
  2468. }
  2469. if (_unknownFields != null) {
  2470. size += _unknownFields.CalculateSize();
  2471. }
  2472. return size;
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2475. public void MergeFrom(NestedMessage other) {
  2476. if (other == null) {
  2477. return;
  2478. }
  2479. if (other.NestedField != 0) {
  2480. NestedField = other.NestedField;
  2481. }
  2482. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2483. }
  2484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2485. public void MergeFrom(pb::CodedInputStream input) {
  2486. uint tag;
  2487. while ((tag = input.ReadTag()) != 0) {
  2488. switch(tag) {
  2489. default:
  2490. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2491. break;
  2492. case 8: {
  2493. NestedField = input.ReadInt32();
  2494. break;
  2495. }
  2496. }
  2497. }
  2498. }
  2499. }
  2500. }
  2501. #endregion
  2502. }
  2503. #endregion
  2504. }
  2505. #endregion Designer generated code