UnittestCustomOptionsProto3.cs 91 KB

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