UnittestCustomOptionsProto3.cs 142 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_custom_options_proto3.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace UnitTest.Issues.TestProtos {
  12. /// <summary>Holder for reflection information generated from unittest_custom_options_proto3.proto</summary>
  13. public static partial class UnittestCustomOptionsProto3Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_custom_options_proto3.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestCustomOptionsProto3Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiR1bml0dGVzdF9jdXN0b21fb3B0aW9uc19wcm90bzMucHJvdG8SEXByb3Rv",
  24. "YnVmX3VuaXR0ZXN0GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90",
  25. "byLXAQocVGVzdE1lc3NhZ2VXaXRoQ3VzdG9tT3B0aW9ucxIeCgZmaWVsZDEY",
  26. "ASABKAlCDggBweDDHS3hdQoCAAAAEhUKC29uZW9mX2ZpZWxkGAIgASgFSAAi",
  27. "UwoGQW5FbnVtEhYKEkFORU5VTV9VTlNQRUNJRklFRBAAEg8KC0FORU5VTV9W",
  28. "QUwxEAESFgoLQU5FTlVNX1ZBTDIQAhoFsIb6BXsaCMX2yR3r/P//OhAIAODp",
  29. "wh3I//////////8BQhkKB0FuT25lb2YSDviswx2d//////////8BIhgKFkN1",
  30. "c3RvbU9wdGlvbkZvb1JlcXVlc3QiGQoXQ3VzdG9tT3B0aW9uRm9vUmVzcG9u",
  31. "c2UiHgocQ3VzdG9tT3B0aW9uRm9vQ2xpZW50TWVzc2FnZSIeChxDdXN0b21P",
  32. "cHRpb25Gb29TZXJ2ZXJNZXNzYWdlIo8BChpEdW1teU1lc3NhZ2VDb250YWlu",
  33. "aW5nRW51bSJxCgxUZXN0RW51bVR5cGUSIAocVEVTVF9PUFRJT05fRU5VTV9V",
  34. "TlNQRUNJRklFRBAAEhoKFlRFU1RfT1BUSU9OX0VOVU1fVFlQRTEQFhIjChZU",
  35. "RVNUX09QVElPTl9FTlVNX1RZUEUyEOn//////////wEiIQofRHVtbXlNZXNz",
  36. "YWdlSW52YWxpZEFzT3B0aW9uVHlwZSKKAQocQ3VzdG9tT3B0aW9uTWluSW50",
  37. "ZWdlclZhbHVlczpq0N6yHQDoxrIdgICAgPj/////AbC8sh2AgICAgICAgIAB",
  38. "gJOyHQD49bAdAIDEsB3/////D/iXsB3///////////8BnfWvHQAAAACR7q8d",
  39. "AAAAAAAAAACtja8dAAAAgJnWqB0AAAAAAAAAgCKRAQocQ3VzdG9tT3B0aW9u",
  40. "TWF4SW50ZWdlclZhbHVlczpx0N6yHQHoxrId/////wewvLId//////////9/",
  41. "gJOyHf////8P+PWwHf///////////wGAxLAd/v///w/4l7Ad/v//////////",
  42. "AZ31rx3/////ke6vHf//////////rY2vHf///3+Z1qgd/////////38ibgoX",
  43. "Q3VzdG9tT3B0aW9uT3RoZXJWYWx1ZXM6U+jGsh2c//////////8B9d+jHeeH",
  44. "RUHp3KId+1mMQsrA8z+q3KIdDkhlbGxvLCAiV29ybGQistmiHQtIZWxsbwBX",
  45. "b3JsZIjZoh3p//////////8BIjQKHFNldHRpbmdSZWFsc0Zyb21Qb3NpdGl2",
  46. "ZUludHM6FPXfox0AAEBB6dyiHQAAAAAAQGNAIjQKHFNldHRpbmdSZWFsc0Zy",
  47. "b21OZWdhdGl2ZUludHM6FPXfox0AAEDB6dyiHQAAAAAAQGPAIksKEkNvbXBs",
  48. "ZXhPcHRpb25UeXBlMRILCgNmb28YASABKAUSDAoEZm9vMhgCIAEoBRIMCgRm",
  49. "b28zGAMgASgFEgwKBGZvbzQYBCADKAUigQMKEkNvbXBsZXhPcHRpb25UeXBl",
  50. "MhIyCgNiYXIYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0",
  51. "aW9uVHlwZTESCwoDYmF6GAIgASgFEkYKBGZyZWQYAyABKAsyOC5wcm90b2J1",
  52. "Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlvblR5",
  53. "cGU0EkgKBmJhcm5leRgEIAMoCzI4LnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBs",
  54. "ZXhPcHRpb25UeXBlMi5Db21wbGV4T3B0aW9uVHlwZTQalwEKEkNvbXBsZXhP",
  55. "cHRpb25UeXBlNBINCgV3YWxkbxgBIAEoBTJyCgxjb21wbGV4X29wdDQSHy5n",
  56. "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYivXRAyABKAsyOC5wcm90",
  57. "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlv",
  58. "blR5cGU0IiEKEkNvbXBsZXhPcHRpb25UeXBlMxILCgNxdXgYASABKAUibAoV",
  59. "VmFyaW91c0NvbXBsZXhPcHRpb25zOlOi4pUdAggqouKVHQIgY6LilR0CIFiq",
  60. "/ZAdAxDbB6r9kB0FCgMI5wXSqI8dAwizD6r9kB0FGgMIwQKq/ZAdBCICCGWq",
  61. "/ZAdBSIDCNQB+t6QHQIICSJMCglBZ2dyZWdhdGUSCQoBaRgBIAEoBRIJCgFz",
  62. "GAIgASgJEikKA3N1YhgDIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl",
  63. "Z2F0ZSJZChBBZ2dyZWdhdGVNZXNzYWdlEikKCWZpZWxkbmFtZRgBIAEoBUIW",
  64. "8qGHOxESD0ZpZWxkQW5ub3RhdGlvbjoawtGGOxUIZRIRTWVzc2FnZUFubm90",
  65. "YXRpb24ilwEKEE5lc3RlZE9wdGlvblR5cGUaOwoNTmVzdGVkTWVzc2FnZRIi",
  66. "CgxuZXN0ZWRfZmllbGQYASABKAVCDMHgwx3qAwAAAAAAADoG4OnCHekHIkYK",
  67. "Ck5lc3RlZEVudW0SDwoLVU5TUEVDSUZJRUQQABIdChFORVNURURfRU5VTV9W",
  68. "QUxVRRABGgawhvoF7AcaCMX2yR3rAwAAKlIKCk1ldGhvZE9wdDESGgoWTUVU",
  69. "SE9ET1BUMV9VTlNQRUNJRklFRBAAEhMKD01FVEhPRE9QVDFfVkFMMRABEhMK",
  70. "D01FVEhPRE9QVDFfVkFMMhACKl4KDUFnZ3JlZ2F0ZUVudW0SDwoLVU5TUEVD",
  71. "SUZJRUQQABIlCgVWQUxVRRABGhrK/Ik7FRITRW51bVZhbHVlQW5ub3RhdGlv",
  72. "bhoVkpWIOxASDkVudW1Bbm5vdGF0aW9uMo4BChxUZXN0U2VydmljZVdpdGhD",
  73. "dXN0b21PcHRpb25zEmMKA0ZvbxIpLnByb3RvYnVmX3VuaXR0ZXN0LkN1c3Rv",
  74. "bU9wdGlvbkZvb1JlcXVlc3QaKi5wcm90b2J1Zl91bml0dGVzdC5DdXN0b21P",
  75. "cHRpb25Gb29SZXNwb25zZSIF4PqMHgIaCZCyix7T24DLSTKZAQoQQWdncmVn",
  76. "YXRlU2VydmljZRJrCgZNZXRob2QSIy5wcm90b2J1Zl91bml0dGVzdC5BZ2dy",
  77. "ZWdhdGVNZXNzYWdlGiMucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlTWVz",
  78. "c2FnZSIXysiWOxISEE1ldGhvZEFubm90YXRpb24aGMr7jjsTEhFTZXJ2aWNl",
  79. "QW5ub3RhdGlvbjoyCglmaWxlX29wdDESHC5nb29nbGUucHJvdG9idWYuRmls",
  80. "ZU9wdGlvbnMYjp3YAyABKAQ6OAoMbWVzc2FnZV9vcHQxEh8uZ29vZ2xlLnBy",
  81. "b3RvYnVmLk1lc3NhZ2VPcHRpb25zGJyt2AMgASgFOjQKCmZpZWxkX29wdDES",
  82. "HS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGIi82AMgASgGOjQKCm9u",
  83. "ZW9mX29wdDESHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zGM+12AMg",
  84. "ASgFOjIKCWVudW1fb3B0MRIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u",
  85. "cxjontkDIAEoDzo8Cg9lbnVtX3ZhbHVlX29wdDESIS5nb29nbGUucHJvdG9i",
  86. "dWYuRW51bVZhbHVlT3B0aW9ucxjmoF8gASgFOjgKDHNlcnZpY2Vfb3B0MRIf",
  87. "Lmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0aW9ucxiituEDIAEoEjpVCgtt",
  88. "ZXRob2Rfb3B0MRIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKzP",
  89. "4QMgASgOMh0ucHJvdG9idWZfdW5pdHRlc3QuTWV0aG9kT3B0MTo0Cghib29s",
  90. "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjqq9YDIAEo",
  91. "CDo1CglpbnQzMl9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlv",
  92. "bnMY7ajWAyABKAU6NQoJaW50NjRfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1l",
  93. "c3NhZ2VPcHRpb25zGMan1gMgASgDOjYKCnVpbnQzMl9vcHQSHy5nb29nbGUu",
  94. "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYsKLWAyABKA06NgoKdWludDY0X29w",
  95. "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjfjtYDIAEoBDo2",
  96. "CgpzaW50MzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25z",
  97. "GMCI1gMgASgROjYKCnNpbnQ2NF9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVz",
  98. "c2FnZU9wdGlvbnMY/4LWAyABKBI6NwoLZml4ZWQzMl9vcHQSHy5nb29nbGUu",
  99. "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY0/7VAyABKAc6NwoLZml4ZWQ2NF9v",
  100. "cHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY4v3VAyABKAY6",
  101. "OAoMc2ZpeGVkMzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp",
  102. "b25zGNXx1QMgASgPOjgKDHNmaXhlZDY0X29wdBIfLmdvb2dsZS5wcm90b2J1",
  103. "Zi5NZXNzYWdlT3B0aW9ucxjjitUDIAEoEDo1CglmbG9hdF9vcHQSHy5nb29n",
  104. "bGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY/rvUAyABKAI6NgoKZG91Ymxl",
  105. "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjNq9QDIAEo",
  106. "ATo2CgpzdHJpbmdfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp",
  107. "b25zGMWr1AMgASgJOjUKCWJ5dGVzX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5N",
  108. "ZXNzYWdlT3B0aW9ucxiWq9QDIAEoDDpwCghlbnVtX29wdBIfLmdvb2dsZS5w",
  109. "cm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiRq9QDIAEoDjI6LnByb3RvYnVmX3Vu",
  110. "aXR0ZXN0LkR1bW15TWVzc2FnZUNvbnRhaW5pbmdFbnVtLlRlc3RFbnVtVHlw",
  111. "ZTpwChBtZXNzYWdlX3R5cGVfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3Nh",
  112. "Z2VPcHRpb25zGK/y0wMgASgLMjIucHJvdG9idWZfdW5pdHRlc3QuRHVtbXlN",
  113. "ZXNzYWdlSW52YWxpZEFzT3B0aW9uVHlwZTpfCgxjb21wbGV4X29wdDESHy5n",
  114. "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYpNzSAyABKAsyJS5wcm90",
  115. "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTE6XwoMY29tcGxleF9v",
  116. "cHQyEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGNWP0gMgASgL",
  117. "MiUucHJvdG9idWZfdW5pdHRlc3QuQ29tcGxleE9wdGlvblR5cGUyOl8KDGNv",
  118. "bXBsZXhfb3B0MxIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjv",
  119. "i9IDIAEoCzIlLnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBl",
  120. "MzpOCgdmaWxlb3B0EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGM/d",
  121. "sAcgASgLMhwucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlOlAKBm1zZ29w",
  122. "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiY6rAHIAEoCzIc",
  123. "LnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZTpQCghmaWVsZG9wdBIdLmdv",
  124. "b2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYnvSwByABKAsyHC5wcm90b2J1",
  125. "Zl91bml0dGVzdC5BZ2dyZWdhdGU6TgoHZW51bW9wdBIcLmdvb2dsZS5wcm90",
  126. "b2J1Zi5FbnVtT3B0aW9ucxjSgrEHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0",
  127. "LkFnZ3JlZ2F0ZTpWCgplbnVtdmFsb3B0EiEuZ29vZ2xlLnByb3RvYnVmLkVu",
  128. "dW1WYWx1ZU9wdGlvbnMYyZ+xByABKAsyHC5wcm90b2J1Zl91bml0dGVzdC5B",
  129. "Z2dyZWdhdGU6VAoKc2VydmljZW9wdBIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2",
  130. "aWNlT3B0aW9ucxi577EHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl",
  131. "Z2F0ZTpSCgltZXRob2RvcHQSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0",
  132. "aW9ucxiJ6bIHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZUJV",
  133. "qgIaVW5pdFRlc3QuSXNzdWVzLlRlc3RQcm90b3Pw6MEd6q3A5ST67IU7Kghk",
  134. "Eg5GaWxlQW5ub3RhdGlvbhoWEhROZXN0ZWRGaWxlQW5ub3RhdGlvbmIGcHJv",
  135. "dG8z"));
  136. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  137. new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, },
  138. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.MethodOpt1), typeof(global::UnitTest.Issues.TestProtos.AggregateEnum), }, new pb::Extension[] { UnittestCustomOptionsProto3Extensions.FileOpt1, UnittestCustomOptionsProto3Extensions.MessageOpt1, UnittestCustomOptionsProto3Extensions.FieldOpt1, UnittestCustomOptionsProto3Extensions.OneofOpt1, UnittestCustomOptionsProto3Extensions.EnumOpt1, UnittestCustomOptionsProto3Extensions.EnumValueOpt1, UnittestCustomOptionsProto3Extensions.ServiceOpt1, UnittestCustomOptionsProto3Extensions.MethodOpt1, UnittestCustomOptionsProto3Extensions.BoolOpt, UnittestCustomOptionsProto3Extensions.Int32Opt, UnittestCustomOptionsProto3Extensions.Int64Opt, UnittestCustomOptionsProto3Extensions.Uint32Opt, UnittestCustomOptionsProto3Extensions.Uint64Opt, UnittestCustomOptionsProto3Extensions.Sint32Opt, UnittestCustomOptionsProto3Extensions.Sint64Opt, UnittestCustomOptionsProto3Extensions.Fixed32Opt, UnittestCustomOptionsProto3Extensions.Fixed64Opt, UnittestCustomOptionsProto3Extensions.Sfixed32Opt, UnittestCustomOptionsProto3Extensions.Sfixed64Opt, UnittestCustomOptionsProto3Extensions.FloatOpt, UnittestCustomOptionsProto3Extensions.DoubleOpt, UnittestCustomOptionsProto3Extensions.StringOpt, UnittestCustomOptionsProto3Extensions.BytesOpt, UnittestCustomOptionsProto3Extensions.EnumOpt, UnittestCustomOptionsProto3Extensions.MessageTypeOpt, UnittestCustomOptionsProto3Extensions.ComplexOpt1, UnittestCustomOptionsProto3Extensions.ComplexOpt2, UnittestCustomOptionsProto3Extensions.ComplexOpt3, UnittestCustomOptionsProto3Extensions.Fileopt, UnittestCustomOptionsProto3Extensions.Msgopt, UnittestCustomOptionsProto3Extensions.Fieldopt, UnittestCustomOptionsProto3Extensions.Enumopt, UnittestCustomOptionsProto3Extensions.Enumvalopt, UnittestCustomOptionsProto3Extensions.Serviceopt, UnittestCustomOptionsProto3Extensions.Methodopt }, new pbr::GeneratedClrTypeInfo[] {
  139. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions), global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Parser, new[]{ "Field1", "OneofField" }, new[]{ "AnOneof" }, new[]{ typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Types.AnEnum) }, null, null),
  140. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooRequest), global::UnitTest.Issues.TestProtos.CustomOptionFooRequest.Parser, null, null, null, null, null),
  141. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooResponse), global::UnitTest.Issues.TestProtos.CustomOptionFooResponse.Parser, null, null, null, null, null),
  142. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage.Parser, null, null, null, null, null),
  143. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage.Parser, null, null, null, null, null),
  144. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum), global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType) }, null, null),
  145. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType), global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType.Parser, null, null, null, null, null),
  146. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues.Parser, null, null, null, null, null),
  147. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues.Parser, null, null, null, null, null),
  148. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionOtherValues), global::UnitTest.Issues.TestProtos.CustomOptionOtherValues.Parser, null, null, null, null, null),
  149. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts), global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts.Parser, null, null, null, null, null),
  150. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts), global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts.Parser, null, null, null, null, null),
  151. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType1), global::UnitTest.Issues.TestProtos.ComplexOptionType1.Parser, new[]{ "Foo", "Foo2", "Foo3", "Foo4" }, null, null, null, null),
  152. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType2), global::UnitTest.Issues.TestProtos.ComplexOptionType2.Parser, new[]{ "Bar", "Baz", "Fred", "Barney" }, null, 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, new pb::Extension[] { global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Extensions.ComplexOpt4 }, null)}),
  153. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType3), global::UnitTest.Issues.TestProtos.ComplexOptionType3.Parser, new[]{ "Qux" }, null, null, null, null),
  154. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.VariousComplexOptions), global::UnitTest.Issues.TestProtos.VariousComplexOptions.Parser, null, null, null, null, null),
  155. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Aggregate), global::UnitTest.Issues.TestProtos.Aggregate.Parser, new[]{ "I", "S", "Sub" }, null, null, null, null),
  156. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.AggregateMessage), global::UnitTest.Issues.TestProtos.AggregateMessage.Parser, new[]{ "Fieldname" }, null, null, null, null),
  157. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NestedOptionType), global::UnitTest.Issues.TestProtos.NestedOptionType.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedEnum) }, null, 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, null)})
  158. }));
  159. }
  160. #endregion
  161. }
  162. /// <summary>Holder for extension identifiers generated from the top level of unittest_custom_options_proto3.proto</summary>
  163. public static partial class UnittestCustomOptionsProto3Extensions {
  164. public static readonly pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong> FileOpt1 =
  165. new pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong>(7736974, pb::FieldCodec.ForUInt64(61895792, 0UL));
  166. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> MessageOpt1 =
  167. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7739036, pb::FieldCodec.ForInt32(61912288, 0));
  168. public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong> FieldOpt1 =
  169. new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong>(7740936, pb::FieldCodec.ForFixed64(61927489, 0UL));
  170. public static readonly pb::Extension<global::Google.Protobuf.Reflection.OneofOptions, int> OneofOpt1 =
  171. new pb::Extension<global::Google.Protobuf.Reflection.OneofOptions, int>(7740111, pb::FieldCodec.ForInt32(61920888, 0));
  172. public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, int> EnumOpt1 =
  173. new pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, int>(7753576, pb::FieldCodec.ForSFixed32(62028613, 0));
  174. public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, int> EnumValueOpt1 =
  175. new pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, int>(1560678, pb::FieldCodec.ForInt32(12485424, 0));
  176. public static readonly pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, long> ServiceOpt1 =
  177. new pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, long>(7887650, pb::FieldCodec.ForSInt64(63101200, 0L));
  178. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.MethodOpt1> MethodOpt1 =
  179. new pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.MethodOpt1>(7890860, pb::FieldCodec.ForEnum(63126880, x => (int) x, x => (global::UnitTest.Issues.TestProtos.MethodOpt1) x, global::UnitTest.Issues.TestProtos.MethodOpt1.Unspecified));
  180. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, bool> BoolOpt =
  181. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, bool>(7706090, pb::FieldCodec.ForBool(61648720, false));
  182. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Int32Opt =
  183. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7705709, pb::FieldCodec.ForInt32(61645672, 0));
  184. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Int64Opt =
  185. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7705542, pb::FieldCodec.ForInt64(61644336, 0L));
  186. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint> Uint32Opt =
  187. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint>(7704880, pb::FieldCodec.ForUInt32(61639040, 0));
  188. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong> Uint64Opt =
  189. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong>(7702367, pb::FieldCodec.ForUInt64(61618936, 0UL));
  190. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Sint32Opt =
  191. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7701568, pb::FieldCodec.ForSInt32(61612544, 0));
  192. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Sint64Opt =
  193. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7700863, pb::FieldCodec.ForSInt64(61606904, 0L));
  194. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint> Fixed32Opt =
  195. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint>(7700307, pb::FieldCodec.ForFixed32(61602461, 0));
  196. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong> Fixed64Opt =
  197. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong>(7700194, pb::FieldCodec.ForFixed64(61601553, 0UL));
  198. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Sfixed32Opt =
  199. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7698645, pb::FieldCodec.ForSFixed32(61589165, 0));
  200. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Sfixed64Opt =
  201. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7685475, pb::FieldCodec.ForSFixed64(61483801, 0L));
  202. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, float> FloatOpt =
  203. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, float>(7675390, pb::FieldCodec.ForFloat(61403125, 0F));
  204. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, double> DoubleOpt =
  205. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, double>(7673293, pb::FieldCodec.ForDouble(61386345, 0D));
  206. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, string> StringOpt =
  207. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, string>(7673285, pb::FieldCodec.ForString(61386282, ""));
  208. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, pb::ByteString> BytesOpt =
  209. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, pb::ByteString>(7673238, pb::FieldCodec.ForBytes(61385906, pb::ByteString.Empty));
  210. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType> EnumOpt =
  211. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType>(7673233, pb::FieldCodec.ForEnum(61385864, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType) x, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType.TestOptionEnumUnspecified));
  212. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType> MessageTypeOpt =
  213. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType>(7665967, pb::FieldCodec.ForMessage(61327738, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType.Parser));
  214. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType1> ComplexOpt1 =
  215. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType1>(7646756, pb::FieldCodec.ForMessage(61174050, global::UnitTest.Issues.TestProtos.ComplexOptionType1.Parser));
  216. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2> ComplexOpt2 =
  217. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2>(7636949, pb::FieldCodec.ForMessage(61095594, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Parser));
  218. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType3> ComplexOpt3 =
  219. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType3>(7636463, pb::FieldCodec.ForMessage(61091706, global::UnitTest.Issues.TestProtos.ComplexOptionType3.Parser));
  220. public static readonly pb::Extension<global::Google.Protobuf.Reflection.FileOptions, global::UnitTest.Issues.TestProtos.Aggregate> Fileopt =
  221. new pb::Extension<global::Google.Protobuf.Reflection.FileOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15478479, pb::FieldCodec.ForMessage(123827834, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  222. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.Aggregate> Msgopt =
  223. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15480088, pb::FieldCodec.ForMessage(123840706, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  224. public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.Aggregate> Fieldopt =
  225. new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15481374, pb::FieldCodec.ForMessage(123850994, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  226. public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, global::UnitTest.Issues.TestProtos.Aggregate> Enumopt =
  227. new pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15483218, pb::FieldCodec.ForMessage(123865746, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  228. public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::UnitTest.Issues.TestProtos.Aggregate> Enumvalopt =
  229. new pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15486921, pb::FieldCodec.ForMessage(123895370, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  230. public static readonly pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, global::UnitTest.Issues.TestProtos.Aggregate> Serviceopt =
  231. new pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15497145, pb::FieldCodec.ForMessage(123977162, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  232. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.Aggregate> Methodopt =
  233. new pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15512713, pb::FieldCodec.ForMessage(124101706, global::UnitTest.Issues.TestProtos.Aggregate.Parser));
  234. }
  235. #region Enums
  236. public enum MethodOpt1 {
  237. [pbr::OriginalName("METHODOPT1_UNSPECIFIED")] Unspecified = 0,
  238. [pbr::OriginalName("METHODOPT1_VAL1")] Val1 = 1,
  239. [pbr::OriginalName("METHODOPT1_VAL2")] Val2 = 2,
  240. }
  241. public enum AggregateEnum {
  242. [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
  243. [pbr::OriginalName("VALUE")] Value = 1,
  244. }
  245. #endregion
  246. #region Messages
  247. /// <summary>
  248. /// A test message with custom options at all possible locations (and also some
  249. /// regular options, to make sure they interact nicely).
  250. /// </summary>
  251. public sealed partial class TestMessageWithCustomOptions : pb::IMessage<TestMessageWithCustomOptions>
  252. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  253. , pb::IBufferMessage
  254. #endif
  255. {
  256. private static readonly pb::MessageParser<TestMessageWithCustomOptions> _parser = new pb::MessageParser<TestMessageWithCustomOptions>(() => new TestMessageWithCustomOptions());
  257. private pb::UnknownFieldSet _unknownFields;
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  259. public static pb::MessageParser<TestMessageWithCustomOptions> Parser { get { return _parser; } }
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. public static pbr::MessageDescriptor Descriptor {
  262. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[0]; }
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  265. pbr::MessageDescriptor pb::IMessage.Descriptor {
  266. get { return Descriptor; }
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public TestMessageWithCustomOptions() {
  270. OnConstruction();
  271. }
  272. partial void OnConstruction();
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  274. public TestMessageWithCustomOptions(TestMessageWithCustomOptions other) : this() {
  275. field1_ = other.field1_;
  276. switch (other.AnOneofCase) {
  277. case AnOneofOneofCase.OneofField:
  278. OneofField = other.OneofField;
  279. break;
  280. }
  281. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  282. }
  283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  284. public TestMessageWithCustomOptions Clone() {
  285. return new TestMessageWithCustomOptions(this);
  286. }
  287. /// <summary>Field number for the "field1" field.</summary>
  288. public const int Field1FieldNumber = 1;
  289. private string field1_ = "";
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  291. public string Field1 {
  292. get { return field1_; }
  293. set {
  294. field1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  295. }
  296. }
  297. /// <summary>Field number for the "oneof_field" field.</summary>
  298. public const int OneofFieldFieldNumber = 2;
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  300. public int OneofField {
  301. get { return anOneofCase_ == AnOneofOneofCase.OneofField ? (int) anOneof_ : 0; }
  302. set {
  303. anOneof_ = value;
  304. anOneofCase_ = AnOneofOneofCase.OneofField;
  305. }
  306. }
  307. private object anOneof_;
  308. /// <summary>Enum of possible cases for the "AnOneof" oneof.</summary>
  309. public enum AnOneofOneofCase {
  310. None = 0,
  311. OneofField = 2,
  312. }
  313. private AnOneofOneofCase anOneofCase_ = AnOneofOneofCase.None;
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  315. public AnOneofOneofCase AnOneofCase {
  316. get { return anOneofCase_; }
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  319. public void ClearAnOneof() {
  320. anOneofCase_ = AnOneofOneofCase.None;
  321. anOneof_ = null;
  322. }
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  324. public override bool Equals(object other) {
  325. return Equals(other as TestMessageWithCustomOptions);
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  328. public bool Equals(TestMessageWithCustomOptions other) {
  329. if (ReferenceEquals(other, null)) {
  330. return false;
  331. }
  332. if (ReferenceEquals(other, this)) {
  333. return true;
  334. }
  335. if (Field1 != other.Field1) return false;
  336. if (OneofField != other.OneofField) return false;
  337. if (AnOneofCase != other.AnOneofCase) return false;
  338. return Equals(_unknownFields, other._unknownFields);
  339. }
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  341. public override int GetHashCode() {
  342. int hash = 1;
  343. if (Field1.Length != 0) hash ^= Field1.GetHashCode();
  344. if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode();
  345. hash ^= (int) anOneofCase_;
  346. if (_unknownFields != null) {
  347. hash ^= _unknownFields.GetHashCode();
  348. }
  349. return hash;
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public override string ToString() {
  353. return pb::JsonFormatter.ToDiagnosticString(this);
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  356. public void WriteTo(pb::CodedOutputStream output) {
  357. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  358. output.WriteRawMessage(this);
  359. #else
  360. if (Field1.Length != 0) {
  361. output.WriteRawTag(10);
  362. output.WriteString(Field1);
  363. }
  364. if (anOneofCase_ == AnOneofOneofCase.OneofField) {
  365. output.WriteRawTag(16);
  366. output.WriteInt32(OneofField);
  367. }
  368. if (_unknownFields != null) {
  369. _unknownFields.WriteTo(output);
  370. }
  371. #endif
  372. }
  373. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  375. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  376. if (Field1.Length != 0) {
  377. output.WriteRawTag(10);
  378. output.WriteString(Field1);
  379. }
  380. if (anOneofCase_ == AnOneofOneofCase.OneofField) {
  381. output.WriteRawTag(16);
  382. output.WriteInt32(OneofField);
  383. }
  384. if (_unknownFields != null) {
  385. _unknownFields.WriteTo(ref output);
  386. }
  387. }
  388. #endif
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  390. public int CalculateSize() {
  391. int size = 0;
  392. if (Field1.Length != 0) {
  393. size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1);
  394. }
  395. if (anOneofCase_ == AnOneofOneofCase.OneofField) {
  396. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofField);
  397. }
  398. if (_unknownFields != null) {
  399. size += _unknownFields.CalculateSize();
  400. }
  401. return size;
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  404. public void MergeFrom(TestMessageWithCustomOptions other) {
  405. if (other == null) {
  406. return;
  407. }
  408. if (other.Field1.Length != 0) {
  409. Field1 = other.Field1;
  410. }
  411. switch (other.AnOneofCase) {
  412. case AnOneofOneofCase.OneofField:
  413. OneofField = other.OneofField;
  414. break;
  415. }
  416. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  419. public void MergeFrom(pb::CodedInputStream input) {
  420. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  421. input.ReadRawMessage(this);
  422. #else
  423. uint tag;
  424. while ((tag = input.ReadTag()) != 0) {
  425. switch(tag) {
  426. default:
  427. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  428. break;
  429. case 10: {
  430. Field1 = input.ReadString();
  431. break;
  432. }
  433. case 16: {
  434. OneofField = input.ReadInt32();
  435. break;
  436. }
  437. }
  438. }
  439. #endif
  440. }
  441. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  443. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  444. uint tag;
  445. while ((tag = input.ReadTag()) != 0) {
  446. switch(tag) {
  447. default:
  448. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  449. break;
  450. case 10: {
  451. Field1 = input.ReadString();
  452. break;
  453. }
  454. case 16: {
  455. OneofField = input.ReadInt32();
  456. break;
  457. }
  458. }
  459. }
  460. }
  461. #endif
  462. #region Nested types
  463. /// <summary>Container for nested types declared in the TestMessageWithCustomOptions message type.</summary>
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  465. public static partial class Types {
  466. public enum AnEnum {
  467. [pbr::OriginalName("ANENUM_UNSPECIFIED")] Unspecified = 0,
  468. [pbr::OriginalName("ANENUM_VAL1")] Val1 = 1,
  469. [pbr::OriginalName("ANENUM_VAL2")] Val2 = 2,
  470. }
  471. }
  472. #endregion
  473. }
  474. /// <summary>
  475. /// A test RPC service with custom options at all possible locations (and also
  476. /// some regular options, to make sure they interact nicely).
  477. /// </summary>
  478. public sealed partial class CustomOptionFooRequest : pb::IMessage<CustomOptionFooRequest>
  479. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  480. , pb::IBufferMessage
  481. #endif
  482. {
  483. private static readonly pb::MessageParser<CustomOptionFooRequest> _parser = new pb::MessageParser<CustomOptionFooRequest>(() => new CustomOptionFooRequest());
  484. private pb::UnknownFieldSet _unknownFields;
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  486. public static pb::MessageParser<CustomOptionFooRequest> Parser { get { return _parser; } }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  488. public static pbr::MessageDescriptor Descriptor {
  489. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[1]; }
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. pbr::MessageDescriptor pb::IMessage.Descriptor {
  493. get { return Descriptor; }
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  496. public CustomOptionFooRequest() {
  497. OnConstruction();
  498. }
  499. partial void OnConstruction();
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public CustomOptionFooRequest(CustomOptionFooRequest other) : this() {
  502. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. public CustomOptionFooRequest Clone() {
  506. return new CustomOptionFooRequest(this);
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  509. public override bool Equals(object other) {
  510. return Equals(other as CustomOptionFooRequest);
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. public bool Equals(CustomOptionFooRequest other) {
  514. if (ReferenceEquals(other, null)) {
  515. return false;
  516. }
  517. if (ReferenceEquals(other, this)) {
  518. return true;
  519. }
  520. return Equals(_unknownFields, other._unknownFields);
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  523. public override int GetHashCode() {
  524. int hash = 1;
  525. if (_unknownFields != null) {
  526. hash ^= _unknownFields.GetHashCode();
  527. }
  528. return hash;
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  531. public override string ToString() {
  532. return pb::JsonFormatter.ToDiagnosticString(this);
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  535. public void WriteTo(pb::CodedOutputStream output) {
  536. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  537. output.WriteRawMessage(this);
  538. #else
  539. if (_unknownFields != null) {
  540. _unknownFields.WriteTo(output);
  541. }
  542. #endif
  543. }
  544. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  546. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  547. if (_unknownFields != null) {
  548. _unknownFields.WriteTo(ref output);
  549. }
  550. }
  551. #endif
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  553. public int CalculateSize() {
  554. int size = 0;
  555. if (_unknownFields != null) {
  556. size += _unknownFields.CalculateSize();
  557. }
  558. return size;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  561. public void MergeFrom(CustomOptionFooRequest other) {
  562. if (other == null) {
  563. return;
  564. }
  565. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  566. }
  567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  568. public void MergeFrom(pb::CodedInputStream input) {
  569. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  570. input.ReadRawMessage(this);
  571. #else
  572. uint tag;
  573. while ((tag = input.ReadTag()) != 0) {
  574. switch(tag) {
  575. default:
  576. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  577. break;
  578. }
  579. }
  580. #endif
  581. }
  582. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  585. uint tag;
  586. while ((tag = input.ReadTag()) != 0) {
  587. switch(tag) {
  588. default:
  589. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  590. break;
  591. }
  592. }
  593. }
  594. #endif
  595. }
  596. public sealed partial class CustomOptionFooResponse : pb::IMessage<CustomOptionFooResponse>
  597. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  598. , pb::IBufferMessage
  599. #endif
  600. {
  601. private static readonly pb::MessageParser<CustomOptionFooResponse> _parser = new pb::MessageParser<CustomOptionFooResponse>(() => new CustomOptionFooResponse());
  602. private pb::UnknownFieldSet _unknownFields;
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  604. public static pb::MessageParser<CustomOptionFooResponse> Parser { get { return _parser; } }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  606. public static pbr::MessageDescriptor Descriptor {
  607. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[2]; }
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. pbr::MessageDescriptor pb::IMessage.Descriptor {
  611. get { return Descriptor; }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  614. public CustomOptionFooResponse() {
  615. OnConstruction();
  616. }
  617. partial void OnConstruction();
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  619. public CustomOptionFooResponse(CustomOptionFooResponse other) : this() {
  620. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public CustomOptionFooResponse Clone() {
  624. return new CustomOptionFooResponse(this);
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  627. public override bool Equals(object other) {
  628. return Equals(other as CustomOptionFooResponse);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. public bool Equals(CustomOptionFooResponse other) {
  632. if (ReferenceEquals(other, null)) {
  633. return false;
  634. }
  635. if (ReferenceEquals(other, this)) {
  636. return true;
  637. }
  638. return Equals(_unknownFields, other._unknownFields);
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  641. public override int GetHashCode() {
  642. int hash = 1;
  643. if (_unknownFields != null) {
  644. hash ^= _unknownFields.GetHashCode();
  645. }
  646. return hash;
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  649. public override string ToString() {
  650. return pb::JsonFormatter.ToDiagnosticString(this);
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  653. public void WriteTo(pb::CodedOutputStream output) {
  654. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  655. output.WriteRawMessage(this);
  656. #else
  657. if (_unknownFields != null) {
  658. _unknownFields.WriteTo(output);
  659. }
  660. #endif
  661. }
  662. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  664. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  665. if (_unknownFields != null) {
  666. _unknownFields.WriteTo(ref output);
  667. }
  668. }
  669. #endif
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  671. public int CalculateSize() {
  672. int size = 0;
  673. if (_unknownFields != null) {
  674. size += _unknownFields.CalculateSize();
  675. }
  676. return size;
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  679. public void MergeFrom(CustomOptionFooResponse other) {
  680. if (other == null) {
  681. return;
  682. }
  683. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  686. public void MergeFrom(pb::CodedInputStream input) {
  687. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  688. input.ReadRawMessage(this);
  689. #else
  690. uint tag;
  691. while ((tag = input.ReadTag()) != 0) {
  692. switch(tag) {
  693. default:
  694. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  695. break;
  696. }
  697. }
  698. #endif
  699. }
  700. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  703. uint tag;
  704. while ((tag = input.ReadTag()) != 0) {
  705. switch(tag) {
  706. default:
  707. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  708. break;
  709. }
  710. }
  711. }
  712. #endif
  713. }
  714. public sealed partial class CustomOptionFooClientMessage : pb::IMessage<CustomOptionFooClientMessage>
  715. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  716. , pb::IBufferMessage
  717. #endif
  718. {
  719. private static readonly pb::MessageParser<CustomOptionFooClientMessage> _parser = new pb::MessageParser<CustomOptionFooClientMessage>(() => new CustomOptionFooClientMessage());
  720. private pb::UnknownFieldSet _unknownFields;
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  722. public static pb::MessageParser<CustomOptionFooClientMessage> Parser { get { return _parser; } }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. public static pbr::MessageDescriptor Descriptor {
  725. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[3]; }
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  728. pbr::MessageDescriptor pb::IMessage.Descriptor {
  729. get { return Descriptor; }
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  732. public CustomOptionFooClientMessage() {
  733. OnConstruction();
  734. }
  735. partial void OnConstruction();
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public CustomOptionFooClientMessage(CustomOptionFooClientMessage other) : this() {
  738. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. public CustomOptionFooClientMessage Clone() {
  742. return new CustomOptionFooClientMessage(this);
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public override bool Equals(object other) {
  746. return Equals(other as CustomOptionFooClientMessage);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public bool Equals(CustomOptionFooClientMessage other) {
  750. if (ReferenceEquals(other, null)) {
  751. return false;
  752. }
  753. if (ReferenceEquals(other, this)) {
  754. return true;
  755. }
  756. return Equals(_unknownFields, other._unknownFields);
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public override int GetHashCode() {
  760. int hash = 1;
  761. if (_unknownFields != null) {
  762. hash ^= _unknownFields.GetHashCode();
  763. }
  764. return hash;
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  767. public override string ToString() {
  768. return pb::JsonFormatter.ToDiagnosticString(this);
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  771. public void WriteTo(pb::CodedOutputStream output) {
  772. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  773. output.WriteRawMessage(this);
  774. #else
  775. if (_unknownFields != null) {
  776. _unknownFields.WriteTo(output);
  777. }
  778. #endif
  779. }
  780. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  782. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  783. if (_unknownFields != null) {
  784. _unknownFields.WriteTo(ref output);
  785. }
  786. }
  787. #endif
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. public int CalculateSize() {
  790. int size = 0;
  791. if (_unknownFields != null) {
  792. size += _unknownFields.CalculateSize();
  793. }
  794. return size;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  797. public void MergeFrom(CustomOptionFooClientMessage other) {
  798. if (other == null) {
  799. return;
  800. }
  801. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  804. public void MergeFrom(pb::CodedInputStream input) {
  805. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  806. input.ReadRawMessage(this);
  807. #else
  808. uint tag;
  809. while ((tag = input.ReadTag()) != 0) {
  810. switch(tag) {
  811. default:
  812. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  813. break;
  814. }
  815. }
  816. #endif
  817. }
  818. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  820. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  821. uint tag;
  822. while ((tag = input.ReadTag()) != 0) {
  823. switch(tag) {
  824. default:
  825. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  826. break;
  827. }
  828. }
  829. }
  830. #endif
  831. }
  832. public sealed partial class CustomOptionFooServerMessage : pb::IMessage<CustomOptionFooServerMessage>
  833. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  834. , pb::IBufferMessage
  835. #endif
  836. {
  837. private static readonly pb::MessageParser<CustomOptionFooServerMessage> _parser = new pb::MessageParser<CustomOptionFooServerMessage>(() => new CustomOptionFooServerMessage());
  838. private pb::UnknownFieldSet _unknownFields;
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  840. public static pb::MessageParser<CustomOptionFooServerMessage> Parser { get { return _parser; } }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  842. public static pbr::MessageDescriptor Descriptor {
  843. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[4]; }
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  846. pbr::MessageDescriptor pb::IMessage.Descriptor {
  847. get { return Descriptor; }
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  850. public CustomOptionFooServerMessage() {
  851. OnConstruction();
  852. }
  853. partial void OnConstruction();
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  855. public CustomOptionFooServerMessage(CustomOptionFooServerMessage other) : this() {
  856. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public CustomOptionFooServerMessage Clone() {
  860. return new CustomOptionFooServerMessage(this);
  861. }
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  863. public override bool Equals(object other) {
  864. return Equals(other as CustomOptionFooServerMessage);
  865. }
  866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  867. public bool Equals(CustomOptionFooServerMessage other) {
  868. if (ReferenceEquals(other, null)) {
  869. return false;
  870. }
  871. if (ReferenceEquals(other, this)) {
  872. return true;
  873. }
  874. return Equals(_unknownFields, other._unknownFields);
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  877. public override int GetHashCode() {
  878. int hash = 1;
  879. if (_unknownFields != null) {
  880. hash ^= _unknownFields.GetHashCode();
  881. }
  882. return hash;
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  885. public override string ToString() {
  886. return pb::JsonFormatter.ToDiagnosticString(this);
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  889. public void WriteTo(pb::CodedOutputStream output) {
  890. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  891. output.WriteRawMessage(this);
  892. #else
  893. if (_unknownFields != null) {
  894. _unknownFields.WriteTo(output);
  895. }
  896. #endif
  897. }
  898. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  900. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  901. if (_unknownFields != null) {
  902. _unknownFields.WriteTo(ref output);
  903. }
  904. }
  905. #endif
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  907. public int CalculateSize() {
  908. int size = 0;
  909. if (_unknownFields != null) {
  910. size += _unknownFields.CalculateSize();
  911. }
  912. return size;
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. public void MergeFrom(CustomOptionFooServerMessage other) {
  916. if (other == null) {
  917. return;
  918. }
  919. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  922. public void MergeFrom(pb::CodedInputStream input) {
  923. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  924. input.ReadRawMessage(this);
  925. #else
  926. uint tag;
  927. while ((tag = input.ReadTag()) != 0) {
  928. switch(tag) {
  929. default:
  930. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  931. break;
  932. }
  933. }
  934. #endif
  935. }
  936. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  938. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  939. uint tag;
  940. while ((tag = input.ReadTag()) != 0) {
  941. switch(tag) {
  942. default:
  943. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  944. break;
  945. }
  946. }
  947. }
  948. #endif
  949. }
  950. public sealed partial class DummyMessageContainingEnum : pb::IMessage<DummyMessageContainingEnum>
  951. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  952. , pb::IBufferMessage
  953. #endif
  954. {
  955. private static readonly pb::MessageParser<DummyMessageContainingEnum> _parser = new pb::MessageParser<DummyMessageContainingEnum>(() => new DummyMessageContainingEnum());
  956. private pb::UnknownFieldSet _unknownFields;
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  958. public static pb::MessageParser<DummyMessageContainingEnum> Parser { get { return _parser; } }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  960. public static pbr::MessageDescriptor Descriptor {
  961. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[5]; }
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. pbr::MessageDescriptor pb::IMessage.Descriptor {
  965. get { return Descriptor; }
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  968. public DummyMessageContainingEnum() {
  969. OnConstruction();
  970. }
  971. partial void OnConstruction();
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. public DummyMessageContainingEnum(DummyMessageContainingEnum other) : this() {
  974. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  977. public DummyMessageContainingEnum Clone() {
  978. return new DummyMessageContainingEnum(this);
  979. }
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  981. public override bool Equals(object other) {
  982. return Equals(other as DummyMessageContainingEnum);
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  985. public bool Equals(DummyMessageContainingEnum other) {
  986. if (ReferenceEquals(other, null)) {
  987. return false;
  988. }
  989. if (ReferenceEquals(other, this)) {
  990. return true;
  991. }
  992. return Equals(_unknownFields, other._unknownFields);
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public override int GetHashCode() {
  996. int hash = 1;
  997. if (_unknownFields != null) {
  998. hash ^= _unknownFields.GetHashCode();
  999. }
  1000. return hash;
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1003. public override string ToString() {
  1004. return pb::JsonFormatter.ToDiagnosticString(this);
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1007. public void WriteTo(pb::CodedOutputStream output) {
  1008. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1009. output.WriteRawMessage(this);
  1010. #else
  1011. if (_unknownFields != null) {
  1012. _unknownFields.WriteTo(output);
  1013. }
  1014. #endif
  1015. }
  1016. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1018. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1019. if (_unknownFields != null) {
  1020. _unknownFields.WriteTo(ref output);
  1021. }
  1022. }
  1023. #endif
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1025. public int CalculateSize() {
  1026. int size = 0;
  1027. if (_unknownFields != null) {
  1028. size += _unknownFields.CalculateSize();
  1029. }
  1030. return size;
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1033. public void MergeFrom(DummyMessageContainingEnum other) {
  1034. if (other == null) {
  1035. return;
  1036. }
  1037. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1040. public void MergeFrom(pb::CodedInputStream input) {
  1041. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1042. input.ReadRawMessage(this);
  1043. #else
  1044. uint tag;
  1045. while ((tag = input.ReadTag()) != 0) {
  1046. switch(tag) {
  1047. default:
  1048. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1049. break;
  1050. }
  1051. }
  1052. #endif
  1053. }
  1054. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1056. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1057. uint tag;
  1058. while ((tag = input.ReadTag()) != 0) {
  1059. switch(tag) {
  1060. default:
  1061. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1062. break;
  1063. }
  1064. }
  1065. }
  1066. #endif
  1067. #region Nested types
  1068. /// <summary>Container for nested types declared in the DummyMessageContainingEnum message type.</summary>
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1070. public static partial class Types {
  1071. public enum TestEnumType {
  1072. [pbr::OriginalName("TEST_OPTION_ENUM_UNSPECIFIED")] TestOptionEnumUnspecified = 0,
  1073. [pbr::OriginalName("TEST_OPTION_ENUM_TYPE1")] TestOptionEnumType1 = 22,
  1074. [pbr::OriginalName("TEST_OPTION_ENUM_TYPE2")] TestOptionEnumType2 = -23,
  1075. }
  1076. }
  1077. #endregion
  1078. }
  1079. public sealed partial class DummyMessageInvalidAsOptionType : pb::IMessage<DummyMessageInvalidAsOptionType>
  1080. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1081. , pb::IBufferMessage
  1082. #endif
  1083. {
  1084. private static readonly pb::MessageParser<DummyMessageInvalidAsOptionType> _parser = new pb::MessageParser<DummyMessageInvalidAsOptionType>(() => new DummyMessageInvalidAsOptionType());
  1085. private pb::UnknownFieldSet _unknownFields;
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1087. public static pb::MessageParser<DummyMessageInvalidAsOptionType> Parser { get { return _parser; } }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1089. public static pbr::MessageDescriptor Descriptor {
  1090. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[6]; }
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1093. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1094. get { return Descriptor; }
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1097. public DummyMessageInvalidAsOptionType() {
  1098. OnConstruction();
  1099. }
  1100. partial void OnConstruction();
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1102. public DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other) : this() {
  1103. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1106. public DummyMessageInvalidAsOptionType Clone() {
  1107. return new DummyMessageInvalidAsOptionType(this);
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1110. public override bool Equals(object other) {
  1111. return Equals(other as DummyMessageInvalidAsOptionType);
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1114. public bool Equals(DummyMessageInvalidAsOptionType other) {
  1115. if (ReferenceEquals(other, null)) {
  1116. return false;
  1117. }
  1118. if (ReferenceEquals(other, this)) {
  1119. return true;
  1120. }
  1121. return Equals(_unknownFields, other._unknownFields);
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1124. public override int GetHashCode() {
  1125. int hash = 1;
  1126. if (_unknownFields != null) {
  1127. hash ^= _unknownFields.GetHashCode();
  1128. }
  1129. return hash;
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1132. public override string ToString() {
  1133. return pb::JsonFormatter.ToDiagnosticString(this);
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1136. public void WriteTo(pb::CodedOutputStream output) {
  1137. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1138. output.WriteRawMessage(this);
  1139. #else
  1140. if (_unknownFields != null) {
  1141. _unknownFields.WriteTo(output);
  1142. }
  1143. #endif
  1144. }
  1145. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1147. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1148. if (_unknownFields != null) {
  1149. _unknownFields.WriteTo(ref output);
  1150. }
  1151. }
  1152. #endif
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1154. public int CalculateSize() {
  1155. int size = 0;
  1156. if (_unknownFields != null) {
  1157. size += _unknownFields.CalculateSize();
  1158. }
  1159. return size;
  1160. }
  1161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1162. public void MergeFrom(DummyMessageInvalidAsOptionType other) {
  1163. if (other == null) {
  1164. return;
  1165. }
  1166. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1169. public void MergeFrom(pb::CodedInputStream input) {
  1170. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1171. input.ReadRawMessage(this);
  1172. #else
  1173. uint tag;
  1174. while ((tag = input.ReadTag()) != 0) {
  1175. switch(tag) {
  1176. default:
  1177. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1178. break;
  1179. }
  1180. }
  1181. #endif
  1182. }
  1183. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1185. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1186. uint tag;
  1187. while ((tag = input.ReadTag()) != 0) {
  1188. switch(tag) {
  1189. default:
  1190. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1191. break;
  1192. }
  1193. }
  1194. }
  1195. #endif
  1196. }
  1197. public sealed partial class CustomOptionMinIntegerValues : pb::IMessage<CustomOptionMinIntegerValues>
  1198. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1199. , pb::IBufferMessage
  1200. #endif
  1201. {
  1202. private static readonly pb::MessageParser<CustomOptionMinIntegerValues> _parser = new pb::MessageParser<CustomOptionMinIntegerValues>(() => new CustomOptionMinIntegerValues());
  1203. private pb::UnknownFieldSet _unknownFields;
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1205. public static pb::MessageParser<CustomOptionMinIntegerValues> Parser { get { return _parser; } }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1207. public static pbr::MessageDescriptor Descriptor {
  1208. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[7]; }
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1211. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1212. get { return Descriptor; }
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1215. public CustomOptionMinIntegerValues() {
  1216. OnConstruction();
  1217. }
  1218. partial void OnConstruction();
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1220. public CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other) : this() {
  1221. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1224. public CustomOptionMinIntegerValues Clone() {
  1225. return new CustomOptionMinIntegerValues(this);
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1228. public override bool Equals(object other) {
  1229. return Equals(other as CustomOptionMinIntegerValues);
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1232. public bool Equals(CustomOptionMinIntegerValues other) {
  1233. if (ReferenceEquals(other, null)) {
  1234. return false;
  1235. }
  1236. if (ReferenceEquals(other, this)) {
  1237. return true;
  1238. }
  1239. return Equals(_unknownFields, other._unknownFields);
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1242. public override int GetHashCode() {
  1243. int hash = 1;
  1244. if (_unknownFields != null) {
  1245. hash ^= _unknownFields.GetHashCode();
  1246. }
  1247. return hash;
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1250. public override string ToString() {
  1251. return pb::JsonFormatter.ToDiagnosticString(this);
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1254. public void WriteTo(pb::CodedOutputStream output) {
  1255. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1256. output.WriteRawMessage(this);
  1257. #else
  1258. if (_unknownFields != null) {
  1259. _unknownFields.WriteTo(output);
  1260. }
  1261. #endif
  1262. }
  1263. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1265. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1266. if (_unknownFields != null) {
  1267. _unknownFields.WriteTo(ref output);
  1268. }
  1269. }
  1270. #endif
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1272. public int CalculateSize() {
  1273. int size = 0;
  1274. if (_unknownFields != null) {
  1275. size += _unknownFields.CalculateSize();
  1276. }
  1277. return size;
  1278. }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1280. public void MergeFrom(CustomOptionMinIntegerValues other) {
  1281. if (other == null) {
  1282. return;
  1283. }
  1284. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1285. }
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1287. public void MergeFrom(pb::CodedInputStream input) {
  1288. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1289. input.ReadRawMessage(this);
  1290. #else
  1291. uint tag;
  1292. while ((tag = input.ReadTag()) != 0) {
  1293. switch(tag) {
  1294. default:
  1295. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1296. break;
  1297. }
  1298. }
  1299. #endif
  1300. }
  1301. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1303. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1304. uint tag;
  1305. while ((tag = input.ReadTag()) != 0) {
  1306. switch(tag) {
  1307. default:
  1308. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1309. break;
  1310. }
  1311. }
  1312. }
  1313. #endif
  1314. }
  1315. public sealed partial class CustomOptionMaxIntegerValues : pb::IMessage<CustomOptionMaxIntegerValues>
  1316. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1317. , pb::IBufferMessage
  1318. #endif
  1319. {
  1320. private static readonly pb::MessageParser<CustomOptionMaxIntegerValues> _parser = new pb::MessageParser<CustomOptionMaxIntegerValues>(() => new CustomOptionMaxIntegerValues());
  1321. private pb::UnknownFieldSet _unknownFields;
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1323. public static pb::MessageParser<CustomOptionMaxIntegerValues> Parser { get { return _parser; } }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1325. public static pbr::MessageDescriptor Descriptor {
  1326. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[8]; }
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1330. get { return Descriptor; }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1333. public CustomOptionMaxIntegerValues() {
  1334. OnConstruction();
  1335. }
  1336. partial void OnConstruction();
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1338. public CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other) : this() {
  1339. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1342. public CustomOptionMaxIntegerValues Clone() {
  1343. return new CustomOptionMaxIntegerValues(this);
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1346. public override bool Equals(object other) {
  1347. return Equals(other as CustomOptionMaxIntegerValues);
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1350. public bool Equals(CustomOptionMaxIntegerValues other) {
  1351. if (ReferenceEquals(other, null)) {
  1352. return false;
  1353. }
  1354. if (ReferenceEquals(other, this)) {
  1355. return true;
  1356. }
  1357. return Equals(_unknownFields, other._unknownFields);
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1360. public override int GetHashCode() {
  1361. int hash = 1;
  1362. if (_unknownFields != null) {
  1363. hash ^= _unknownFields.GetHashCode();
  1364. }
  1365. return hash;
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1368. public override string ToString() {
  1369. return pb::JsonFormatter.ToDiagnosticString(this);
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1372. public void WriteTo(pb::CodedOutputStream output) {
  1373. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1374. output.WriteRawMessage(this);
  1375. #else
  1376. if (_unknownFields != null) {
  1377. _unknownFields.WriteTo(output);
  1378. }
  1379. #endif
  1380. }
  1381. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1383. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1384. if (_unknownFields != null) {
  1385. _unknownFields.WriteTo(ref output);
  1386. }
  1387. }
  1388. #endif
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1390. public int CalculateSize() {
  1391. int size = 0;
  1392. if (_unknownFields != null) {
  1393. size += _unknownFields.CalculateSize();
  1394. }
  1395. return size;
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1398. public void MergeFrom(CustomOptionMaxIntegerValues other) {
  1399. if (other == null) {
  1400. return;
  1401. }
  1402. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1403. }
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1405. public void MergeFrom(pb::CodedInputStream input) {
  1406. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1407. input.ReadRawMessage(this);
  1408. #else
  1409. uint tag;
  1410. while ((tag = input.ReadTag()) != 0) {
  1411. switch(tag) {
  1412. default:
  1413. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1414. break;
  1415. }
  1416. }
  1417. #endif
  1418. }
  1419. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1421. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1422. uint tag;
  1423. while ((tag = input.ReadTag()) != 0) {
  1424. switch(tag) {
  1425. default:
  1426. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1427. break;
  1428. }
  1429. }
  1430. }
  1431. #endif
  1432. }
  1433. public sealed partial class CustomOptionOtherValues : pb::IMessage<CustomOptionOtherValues>
  1434. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1435. , pb::IBufferMessage
  1436. #endif
  1437. {
  1438. private static readonly pb::MessageParser<CustomOptionOtherValues> _parser = new pb::MessageParser<CustomOptionOtherValues>(() => new CustomOptionOtherValues());
  1439. private pb::UnknownFieldSet _unknownFields;
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1441. public static pb::MessageParser<CustomOptionOtherValues> Parser { get { return _parser; } }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1443. public static pbr::MessageDescriptor Descriptor {
  1444. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[9]; }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1447. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1448. get { return Descriptor; }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1451. public CustomOptionOtherValues() {
  1452. OnConstruction();
  1453. }
  1454. partial void OnConstruction();
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1456. public CustomOptionOtherValues(CustomOptionOtherValues other) : this() {
  1457. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1460. public CustomOptionOtherValues Clone() {
  1461. return new CustomOptionOtherValues(this);
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1464. public override bool Equals(object other) {
  1465. return Equals(other as CustomOptionOtherValues);
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1468. public bool Equals(CustomOptionOtherValues other) {
  1469. if (ReferenceEquals(other, null)) {
  1470. return false;
  1471. }
  1472. if (ReferenceEquals(other, this)) {
  1473. return true;
  1474. }
  1475. return Equals(_unknownFields, other._unknownFields);
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1478. public override int GetHashCode() {
  1479. int hash = 1;
  1480. if (_unknownFields != null) {
  1481. hash ^= _unknownFields.GetHashCode();
  1482. }
  1483. return hash;
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1486. public override string ToString() {
  1487. return pb::JsonFormatter.ToDiagnosticString(this);
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1490. public void WriteTo(pb::CodedOutputStream output) {
  1491. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1492. output.WriteRawMessage(this);
  1493. #else
  1494. if (_unknownFields != null) {
  1495. _unknownFields.WriteTo(output);
  1496. }
  1497. #endif
  1498. }
  1499. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1501. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1502. if (_unknownFields != null) {
  1503. _unknownFields.WriteTo(ref output);
  1504. }
  1505. }
  1506. #endif
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1508. public int CalculateSize() {
  1509. int size = 0;
  1510. if (_unknownFields != null) {
  1511. size += _unknownFields.CalculateSize();
  1512. }
  1513. return size;
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1516. public void MergeFrom(CustomOptionOtherValues other) {
  1517. if (other == null) {
  1518. return;
  1519. }
  1520. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1523. public void MergeFrom(pb::CodedInputStream input) {
  1524. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1525. input.ReadRawMessage(this);
  1526. #else
  1527. uint tag;
  1528. while ((tag = input.ReadTag()) != 0) {
  1529. switch(tag) {
  1530. default:
  1531. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1532. break;
  1533. }
  1534. }
  1535. #endif
  1536. }
  1537. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1539. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1540. uint tag;
  1541. while ((tag = input.ReadTag()) != 0) {
  1542. switch(tag) {
  1543. default:
  1544. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1545. break;
  1546. }
  1547. }
  1548. }
  1549. #endif
  1550. }
  1551. public sealed partial class SettingRealsFromPositiveInts : pb::IMessage<SettingRealsFromPositiveInts>
  1552. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1553. , pb::IBufferMessage
  1554. #endif
  1555. {
  1556. private static readonly pb::MessageParser<SettingRealsFromPositiveInts> _parser = new pb::MessageParser<SettingRealsFromPositiveInts>(() => new SettingRealsFromPositiveInts());
  1557. private pb::UnknownFieldSet _unknownFields;
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1559. public static pb::MessageParser<SettingRealsFromPositiveInts> Parser { get { return _parser; } }
  1560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1561. public static pbr::MessageDescriptor Descriptor {
  1562. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[10]; }
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1565. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1566. get { return Descriptor; }
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1569. public SettingRealsFromPositiveInts() {
  1570. OnConstruction();
  1571. }
  1572. partial void OnConstruction();
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1574. public SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other) : this() {
  1575. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1576. }
  1577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1578. public SettingRealsFromPositiveInts Clone() {
  1579. return new SettingRealsFromPositiveInts(this);
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1582. public override bool Equals(object other) {
  1583. return Equals(other as SettingRealsFromPositiveInts);
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1586. public bool Equals(SettingRealsFromPositiveInts other) {
  1587. if (ReferenceEquals(other, null)) {
  1588. return false;
  1589. }
  1590. if (ReferenceEquals(other, this)) {
  1591. return true;
  1592. }
  1593. return Equals(_unknownFields, other._unknownFields);
  1594. }
  1595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1596. public override int GetHashCode() {
  1597. int hash = 1;
  1598. if (_unknownFields != null) {
  1599. hash ^= _unknownFields.GetHashCode();
  1600. }
  1601. return hash;
  1602. }
  1603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1604. public override string ToString() {
  1605. return pb::JsonFormatter.ToDiagnosticString(this);
  1606. }
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1608. public void WriteTo(pb::CodedOutputStream output) {
  1609. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1610. output.WriteRawMessage(this);
  1611. #else
  1612. if (_unknownFields != null) {
  1613. _unknownFields.WriteTo(output);
  1614. }
  1615. #endif
  1616. }
  1617. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1619. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1620. if (_unknownFields != null) {
  1621. _unknownFields.WriteTo(ref output);
  1622. }
  1623. }
  1624. #endif
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1626. public int CalculateSize() {
  1627. int size = 0;
  1628. if (_unknownFields != null) {
  1629. size += _unknownFields.CalculateSize();
  1630. }
  1631. return size;
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1634. public void MergeFrom(SettingRealsFromPositiveInts other) {
  1635. if (other == null) {
  1636. return;
  1637. }
  1638. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1639. }
  1640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1641. public void MergeFrom(pb::CodedInputStream input) {
  1642. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1643. input.ReadRawMessage(this);
  1644. #else
  1645. uint tag;
  1646. while ((tag = input.ReadTag()) != 0) {
  1647. switch(tag) {
  1648. default:
  1649. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1650. break;
  1651. }
  1652. }
  1653. #endif
  1654. }
  1655. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1657. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1658. uint tag;
  1659. while ((tag = input.ReadTag()) != 0) {
  1660. switch(tag) {
  1661. default:
  1662. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1663. break;
  1664. }
  1665. }
  1666. }
  1667. #endif
  1668. }
  1669. public sealed partial class SettingRealsFromNegativeInts : pb::IMessage<SettingRealsFromNegativeInts>
  1670. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1671. , pb::IBufferMessage
  1672. #endif
  1673. {
  1674. private static readonly pb::MessageParser<SettingRealsFromNegativeInts> _parser = new pb::MessageParser<SettingRealsFromNegativeInts>(() => new SettingRealsFromNegativeInts());
  1675. private pb::UnknownFieldSet _unknownFields;
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1677. public static pb::MessageParser<SettingRealsFromNegativeInts> Parser { get { return _parser; } }
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1679. public static pbr::MessageDescriptor Descriptor {
  1680. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[11]; }
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1683. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1684. get { return Descriptor; }
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1687. public SettingRealsFromNegativeInts() {
  1688. OnConstruction();
  1689. }
  1690. partial void OnConstruction();
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1692. public SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other) : this() {
  1693. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1696. public SettingRealsFromNegativeInts Clone() {
  1697. return new SettingRealsFromNegativeInts(this);
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1700. public override bool Equals(object other) {
  1701. return Equals(other as SettingRealsFromNegativeInts);
  1702. }
  1703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1704. public bool Equals(SettingRealsFromNegativeInts other) {
  1705. if (ReferenceEquals(other, null)) {
  1706. return false;
  1707. }
  1708. if (ReferenceEquals(other, this)) {
  1709. return true;
  1710. }
  1711. return Equals(_unknownFields, other._unknownFields);
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1714. public override int GetHashCode() {
  1715. int hash = 1;
  1716. if (_unknownFields != null) {
  1717. hash ^= _unknownFields.GetHashCode();
  1718. }
  1719. return hash;
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1722. public override string ToString() {
  1723. return pb::JsonFormatter.ToDiagnosticString(this);
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1726. public void WriteTo(pb::CodedOutputStream output) {
  1727. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1728. output.WriteRawMessage(this);
  1729. #else
  1730. if (_unknownFields != null) {
  1731. _unknownFields.WriteTo(output);
  1732. }
  1733. #endif
  1734. }
  1735. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1737. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1738. if (_unknownFields != null) {
  1739. _unknownFields.WriteTo(ref output);
  1740. }
  1741. }
  1742. #endif
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1744. public int CalculateSize() {
  1745. int size = 0;
  1746. if (_unknownFields != null) {
  1747. size += _unknownFields.CalculateSize();
  1748. }
  1749. return size;
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1752. public void MergeFrom(SettingRealsFromNegativeInts other) {
  1753. if (other == null) {
  1754. return;
  1755. }
  1756. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1759. public void MergeFrom(pb::CodedInputStream input) {
  1760. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1761. input.ReadRawMessage(this);
  1762. #else
  1763. uint tag;
  1764. while ((tag = input.ReadTag()) != 0) {
  1765. switch(tag) {
  1766. default:
  1767. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1768. break;
  1769. }
  1770. }
  1771. #endif
  1772. }
  1773. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1775. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1776. uint tag;
  1777. while ((tag = input.ReadTag()) != 0) {
  1778. switch(tag) {
  1779. default:
  1780. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1781. break;
  1782. }
  1783. }
  1784. }
  1785. #endif
  1786. }
  1787. public sealed partial class ComplexOptionType1 : pb::IMessage<ComplexOptionType1>
  1788. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1789. , pb::IBufferMessage
  1790. #endif
  1791. {
  1792. private static readonly pb::MessageParser<ComplexOptionType1> _parser = new pb::MessageParser<ComplexOptionType1>(() => new ComplexOptionType1());
  1793. private pb::UnknownFieldSet _unknownFields;
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1795. public static pb::MessageParser<ComplexOptionType1> Parser { get { return _parser; } }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1797. public static pbr::MessageDescriptor Descriptor {
  1798. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[12]; }
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1801. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1802. get { return Descriptor; }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1805. public ComplexOptionType1() {
  1806. OnConstruction();
  1807. }
  1808. partial void OnConstruction();
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1810. public ComplexOptionType1(ComplexOptionType1 other) : this() {
  1811. foo_ = other.foo_;
  1812. foo2_ = other.foo2_;
  1813. foo3_ = other.foo3_;
  1814. foo4_ = other.foo4_.Clone();
  1815. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1818. public ComplexOptionType1 Clone() {
  1819. return new ComplexOptionType1(this);
  1820. }
  1821. /// <summary>Field number for the "foo" field.</summary>
  1822. public const int FooFieldNumber = 1;
  1823. private int foo_;
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1825. public int Foo {
  1826. get { return foo_; }
  1827. set {
  1828. foo_ = value;
  1829. }
  1830. }
  1831. /// <summary>Field number for the "foo2" field.</summary>
  1832. public const int Foo2FieldNumber = 2;
  1833. private int foo2_;
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1835. public int Foo2 {
  1836. get { return foo2_; }
  1837. set {
  1838. foo2_ = value;
  1839. }
  1840. }
  1841. /// <summary>Field number for the "foo3" field.</summary>
  1842. public const int Foo3FieldNumber = 3;
  1843. private int foo3_;
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1845. public int Foo3 {
  1846. get { return foo3_; }
  1847. set {
  1848. foo3_ = value;
  1849. }
  1850. }
  1851. /// <summary>Field number for the "foo4" field.</summary>
  1852. public const int Foo4FieldNumber = 4;
  1853. private static readonly pb::FieldCodec<int> _repeated_foo4_codec
  1854. = pb::FieldCodec.ForInt32(34);
  1855. private readonly pbc::RepeatedField<int> foo4_ = new pbc::RepeatedField<int>();
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1857. public pbc::RepeatedField<int> Foo4 {
  1858. get { return foo4_; }
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1861. public override bool Equals(object other) {
  1862. return Equals(other as ComplexOptionType1);
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1865. public bool Equals(ComplexOptionType1 other) {
  1866. if (ReferenceEquals(other, null)) {
  1867. return false;
  1868. }
  1869. if (ReferenceEquals(other, this)) {
  1870. return true;
  1871. }
  1872. if (Foo != other.Foo) return false;
  1873. if (Foo2 != other.Foo2) return false;
  1874. if (Foo3 != other.Foo3) return false;
  1875. if(!foo4_.Equals(other.foo4_)) return false;
  1876. return Equals(_unknownFields, other._unknownFields);
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1879. public override int GetHashCode() {
  1880. int hash = 1;
  1881. if (Foo != 0) hash ^= Foo.GetHashCode();
  1882. if (Foo2 != 0) hash ^= Foo2.GetHashCode();
  1883. if (Foo3 != 0) hash ^= Foo3.GetHashCode();
  1884. hash ^= foo4_.GetHashCode();
  1885. if (_unknownFields != null) {
  1886. hash ^= _unknownFields.GetHashCode();
  1887. }
  1888. return hash;
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1891. public override string ToString() {
  1892. return pb::JsonFormatter.ToDiagnosticString(this);
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1895. public void WriteTo(pb::CodedOutputStream output) {
  1896. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1897. output.WriteRawMessage(this);
  1898. #else
  1899. if (Foo != 0) {
  1900. output.WriteRawTag(8);
  1901. output.WriteInt32(Foo);
  1902. }
  1903. if (Foo2 != 0) {
  1904. output.WriteRawTag(16);
  1905. output.WriteInt32(Foo2);
  1906. }
  1907. if (Foo3 != 0) {
  1908. output.WriteRawTag(24);
  1909. output.WriteInt32(Foo3);
  1910. }
  1911. foo4_.WriteTo(output, _repeated_foo4_codec);
  1912. if (_unknownFields != null) {
  1913. _unknownFields.WriteTo(output);
  1914. }
  1915. #endif
  1916. }
  1917. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1919. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1920. if (Foo != 0) {
  1921. output.WriteRawTag(8);
  1922. output.WriteInt32(Foo);
  1923. }
  1924. if (Foo2 != 0) {
  1925. output.WriteRawTag(16);
  1926. output.WriteInt32(Foo2);
  1927. }
  1928. if (Foo3 != 0) {
  1929. output.WriteRawTag(24);
  1930. output.WriteInt32(Foo3);
  1931. }
  1932. foo4_.WriteTo(ref output, _repeated_foo4_codec);
  1933. if (_unknownFields != null) {
  1934. _unknownFields.WriteTo(ref output);
  1935. }
  1936. }
  1937. #endif
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1939. public int CalculateSize() {
  1940. int size = 0;
  1941. if (Foo != 0) {
  1942. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo);
  1943. }
  1944. if (Foo2 != 0) {
  1945. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo2);
  1946. }
  1947. if (Foo3 != 0) {
  1948. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo3);
  1949. }
  1950. size += foo4_.CalculateSize(_repeated_foo4_codec);
  1951. if (_unknownFields != null) {
  1952. size += _unknownFields.CalculateSize();
  1953. }
  1954. return size;
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1957. public void MergeFrom(ComplexOptionType1 other) {
  1958. if (other == null) {
  1959. return;
  1960. }
  1961. if (other.Foo != 0) {
  1962. Foo = other.Foo;
  1963. }
  1964. if (other.Foo2 != 0) {
  1965. Foo2 = other.Foo2;
  1966. }
  1967. if (other.Foo3 != 0) {
  1968. Foo3 = other.Foo3;
  1969. }
  1970. foo4_.Add(other.foo4_);
  1971. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1974. public void MergeFrom(pb::CodedInputStream input) {
  1975. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1976. input.ReadRawMessage(this);
  1977. #else
  1978. uint tag;
  1979. while ((tag = input.ReadTag()) != 0) {
  1980. switch(tag) {
  1981. default:
  1982. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1983. break;
  1984. case 8: {
  1985. Foo = input.ReadInt32();
  1986. break;
  1987. }
  1988. case 16: {
  1989. Foo2 = input.ReadInt32();
  1990. break;
  1991. }
  1992. case 24: {
  1993. Foo3 = input.ReadInt32();
  1994. break;
  1995. }
  1996. case 34:
  1997. case 32: {
  1998. foo4_.AddEntriesFrom(input, _repeated_foo4_codec);
  1999. break;
  2000. }
  2001. }
  2002. }
  2003. #endif
  2004. }
  2005. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2007. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2008. uint tag;
  2009. while ((tag = input.ReadTag()) != 0) {
  2010. switch(tag) {
  2011. default:
  2012. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2013. break;
  2014. case 8: {
  2015. Foo = input.ReadInt32();
  2016. break;
  2017. }
  2018. case 16: {
  2019. Foo2 = input.ReadInt32();
  2020. break;
  2021. }
  2022. case 24: {
  2023. Foo3 = input.ReadInt32();
  2024. break;
  2025. }
  2026. case 34:
  2027. case 32: {
  2028. foo4_.AddEntriesFrom(ref input, _repeated_foo4_codec);
  2029. break;
  2030. }
  2031. }
  2032. }
  2033. }
  2034. #endif
  2035. }
  2036. public sealed partial class ComplexOptionType2 : pb::IMessage<ComplexOptionType2>
  2037. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2038. , pb::IBufferMessage
  2039. #endif
  2040. {
  2041. private static readonly pb::MessageParser<ComplexOptionType2> _parser = new pb::MessageParser<ComplexOptionType2>(() => new ComplexOptionType2());
  2042. private pb::UnknownFieldSet _unknownFields;
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2044. public static pb::MessageParser<ComplexOptionType2> Parser { get { return _parser; } }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2046. public static pbr::MessageDescriptor Descriptor {
  2047. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[13]; }
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2050. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2051. get { return Descriptor; }
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2054. public ComplexOptionType2() {
  2055. OnConstruction();
  2056. }
  2057. partial void OnConstruction();
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2059. public ComplexOptionType2(ComplexOptionType2 other) : this() {
  2060. bar_ = other.bar_ != null ? other.bar_.Clone() : null;
  2061. baz_ = other.baz_;
  2062. fred_ = other.fred_ != null ? other.fred_.Clone() : null;
  2063. barney_ = other.barney_.Clone();
  2064. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2067. public ComplexOptionType2 Clone() {
  2068. return new ComplexOptionType2(this);
  2069. }
  2070. /// <summary>Field number for the "bar" field.</summary>
  2071. public const int BarFieldNumber = 1;
  2072. private global::UnitTest.Issues.TestProtos.ComplexOptionType1 bar_;
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2074. public global::UnitTest.Issues.TestProtos.ComplexOptionType1 Bar {
  2075. get { return bar_; }
  2076. set {
  2077. bar_ = value;
  2078. }
  2079. }
  2080. /// <summary>Field number for the "baz" field.</summary>
  2081. public const int BazFieldNumber = 2;
  2082. private int baz_;
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2084. public int Baz {
  2085. get { return baz_; }
  2086. set {
  2087. baz_ = value;
  2088. }
  2089. }
  2090. /// <summary>Field number for the "fred" field.</summary>
  2091. public const int FredFieldNumber = 3;
  2092. private global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 fred_;
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2094. public global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred {
  2095. get { return fred_; }
  2096. set {
  2097. fred_ = value;
  2098. }
  2099. }
  2100. /// <summary>Field number for the "barney" field.</summary>
  2101. public const int BarneyFieldNumber = 4;
  2102. private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> _repeated_barney_codec
  2103. = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser);
  2104. private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> barney_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>();
  2105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2106. public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> Barney {
  2107. get { return barney_; }
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2110. public override bool Equals(object other) {
  2111. return Equals(other as ComplexOptionType2);
  2112. }
  2113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2114. public bool Equals(ComplexOptionType2 other) {
  2115. if (ReferenceEquals(other, null)) {
  2116. return false;
  2117. }
  2118. if (ReferenceEquals(other, this)) {
  2119. return true;
  2120. }
  2121. if (!object.Equals(Bar, other.Bar)) return false;
  2122. if (Baz != other.Baz) return false;
  2123. if (!object.Equals(Fred, other.Fred)) return false;
  2124. if(!barney_.Equals(other.barney_)) return false;
  2125. return Equals(_unknownFields, other._unknownFields);
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2128. public override int GetHashCode() {
  2129. int hash = 1;
  2130. if (bar_ != null) hash ^= Bar.GetHashCode();
  2131. if (Baz != 0) hash ^= Baz.GetHashCode();
  2132. if (fred_ != null) hash ^= Fred.GetHashCode();
  2133. hash ^= barney_.GetHashCode();
  2134. if (_unknownFields != null) {
  2135. hash ^= _unknownFields.GetHashCode();
  2136. }
  2137. return hash;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2140. public override string ToString() {
  2141. return pb::JsonFormatter.ToDiagnosticString(this);
  2142. }
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2144. public void WriteTo(pb::CodedOutputStream output) {
  2145. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2146. output.WriteRawMessage(this);
  2147. #else
  2148. if (bar_ != null) {
  2149. output.WriteRawTag(10);
  2150. output.WriteMessage(Bar);
  2151. }
  2152. if (Baz != 0) {
  2153. output.WriteRawTag(16);
  2154. output.WriteInt32(Baz);
  2155. }
  2156. if (fred_ != null) {
  2157. output.WriteRawTag(26);
  2158. output.WriteMessage(Fred);
  2159. }
  2160. barney_.WriteTo(output, _repeated_barney_codec);
  2161. if (_unknownFields != null) {
  2162. _unknownFields.WriteTo(output);
  2163. }
  2164. #endif
  2165. }
  2166. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2168. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2169. if (bar_ != null) {
  2170. output.WriteRawTag(10);
  2171. output.WriteMessage(Bar);
  2172. }
  2173. if (Baz != 0) {
  2174. output.WriteRawTag(16);
  2175. output.WriteInt32(Baz);
  2176. }
  2177. if (fred_ != null) {
  2178. output.WriteRawTag(26);
  2179. output.WriteMessage(Fred);
  2180. }
  2181. barney_.WriteTo(ref output, _repeated_barney_codec);
  2182. if (_unknownFields != null) {
  2183. _unknownFields.WriteTo(ref output);
  2184. }
  2185. }
  2186. #endif
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2188. public int CalculateSize() {
  2189. int size = 0;
  2190. if (bar_ != null) {
  2191. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bar);
  2192. }
  2193. if (Baz != 0) {
  2194. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Baz);
  2195. }
  2196. if (fred_ != null) {
  2197. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fred);
  2198. }
  2199. size += barney_.CalculateSize(_repeated_barney_codec);
  2200. if (_unknownFields != null) {
  2201. size += _unknownFields.CalculateSize();
  2202. }
  2203. return size;
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2206. public void MergeFrom(ComplexOptionType2 other) {
  2207. if (other == null) {
  2208. return;
  2209. }
  2210. if (other.bar_ != null) {
  2211. if (bar_ == null) {
  2212. Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1();
  2213. }
  2214. Bar.MergeFrom(other.Bar);
  2215. }
  2216. if (other.Baz != 0) {
  2217. Baz = other.Baz;
  2218. }
  2219. if (other.fred_ != null) {
  2220. if (fred_ == null) {
  2221. Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4();
  2222. }
  2223. Fred.MergeFrom(other.Fred);
  2224. }
  2225. barney_.Add(other.barney_);
  2226. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2229. public void MergeFrom(pb::CodedInputStream input) {
  2230. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2231. input.ReadRawMessage(this);
  2232. #else
  2233. uint tag;
  2234. while ((tag = input.ReadTag()) != 0) {
  2235. switch(tag) {
  2236. default:
  2237. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2238. break;
  2239. case 10: {
  2240. if (bar_ == null) {
  2241. Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1();
  2242. }
  2243. input.ReadMessage(Bar);
  2244. break;
  2245. }
  2246. case 16: {
  2247. Baz = input.ReadInt32();
  2248. break;
  2249. }
  2250. case 26: {
  2251. if (fred_ == null) {
  2252. Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4();
  2253. }
  2254. input.ReadMessage(Fred);
  2255. break;
  2256. }
  2257. case 34: {
  2258. barney_.AddEntriesFrom(input, _repeated_barney_codec);
  2259. break;
  2260. }
  2261. }
  2262. }
  2263. #endif
  2264. }
  2265. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2267. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2268. uint tag;
  2269. while ((tag = input.ReadTag()) != 0) {
  2270. switch(tag) {
  2271. default:
  2272. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2273. break;
  2274. case 10: {
  2275. if (bar_ == null) {
  2276. Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1();
  2277. }
  2278. input.ReadMessage(Bar);
  2279. break;
  2280. }
  2281. case 16: {
  2282. Baz = input.ReadInt32();
  2283. break;
  2284. }
  2285. case 26: {
  2286. if (fred_ == null) {
  2287. Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4();
  2288. }
  2289. input.ReadMessage(Fred);
  2290. break;
  2291. }
  2292. case 34: {
  2293. barney_.AddEntriesFrom(ref input, _repeated_barney_codec);
  2294. break;
  2295. }
  2296. }
  2297. }
  2298. }
  2299. #endif
  2300. #region Nested types
  2301. /// <summary>Container for nested types declared in the ComplexOptionType2 message type.</summary>
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2303. public static partial class Types {
  2304. public sealed partial class ComplexOptionType4 : pb::IMessage<ComplexOptionType4>
  2305. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2306. , pb::IBufferMessage
  2307. #endif
  2308. {
  2309. private static readonly pb::MessageParser<ComplexOptionType4> _parser = new pb::MessageParser<ComplexOptionType4>(() => new ComplexOptionType4());
  2310. private pb::UnknownFieldSet _unknownFields;
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2312. public static pb::MessageParser<ComplexOptionType4> Parser { get { return _parser; } }
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2314. public static pbr::MessageDescriptor Descriptor {
  2315. get { return global::UnitTest.Issues.TestProtos.ComplexOptionType2.Descriptor.NestedTypes[0]; }
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2318. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2319. get { return Descriptor; }
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2322. public ComplexOptionType4() {
  2323. OnConstruction();
  2324. }
  2325. partial void OnConstruction();
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2327. public ComplexOptionType4(ComplexOptionType4 other) : this() {
  2328. waldo_ = other.waldo_;
  2329. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2330. }
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2332. public ComplexOptionType4 Clone() {
  2333. return new ComplexOptionType4(this);
  2334. }
  2335. /// <summary>Field number for the "waldo" field.</summary>
  2336. public const int WaldoFieldNumber = 1;
  2337. private int waldo_;
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2339. public int Waldo {
  2340. get { return waldo_; }
  2341. set {
  2342. waldo_ = value;
  2343. }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2346. public override bool Equals(object other) {
  2347. return Equals(other as ComplexOptionType4);
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2350. public bool Equals(ComplexOptionType4 other) {
  2351. if (ReferenceEquals(other, null)) {
  2352. return false;
  2353. }
  2354. if (ReferenceEquals(other, this)) {
  2355. return true;
  2356. }
  2357. if (Waldo != other.Waldo) return false;
  2358. return Equals(_unknownFields, other._unknownFields);
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2361. public override int GetHashCode() {
  2362. int hash = 1;
  2363. if (Waldo != 0) hash ^= Waldo.GetHashCode();
  2364. if (_unknownFields != null) {
  2365. hash ^= _unknownFields.GetHashCode();
  2366. }
  2367. return hash;
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2370. public override string ToString() {
  2371. return pb::JsonFormatter.ToDiagnosticString(this);
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2374. public void WriteTo(pb::CodedOutputStream output) {
  2375. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2376. output.WriteRawMessage(this);
  2377. #else
  2378. if (Waldo != 0) {
  2379. output.WriteRawTag(8);
  2380. output.WriteInt32(Waldo);
  2381. }
  2382. if (_unknownFields != null) {
  2383. _unknownFields.WriteTo(output);
  2384. }
  2385. #endif
  2386. }
  2387. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2389. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2390. if (Waldo != 0) {
  2391. output.WriteRawTag(8);
  2392. output.WriteInt32(Waldo);
  2393. }
  2394. if (_unknownFields != null) {
  2395. _unknownFields.WriteTo(ref output);
  2396. }
  2397. }
  2398. #endif
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2400. public int CalculateSize() {
  2401. int size = 0;
  2402. if (Waldo != 0) {
  2403. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Waldo);
  2404. }
  2405. if (_unknownFields != null) {
  2406. size += _unknownFields.CalculateSize();
  2407. }
  2408. return size;
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2411. public void MergeFrom(ComplexOptionType4 other) {
  2412. if (other == null) {
  2413. return;
  2414. }
  2415. if (other.Waldo != 0) {
  2416. Waldo = other.Waldo;
  2417. }
  2418. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2421. public void MergeFrom(pb::CodedInputStream input) {
  2422. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2423. input.ReadRawMessage(this);
  2424. #else
  2425. uint tag;
  2426. while ((tag = input.ReadTag()) != 0) {
  2427. switch(tag) {
  2428. default:
  2429. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2430. break;
  2431. case 8: {
  2432. Waldo = input.ReadInt32();
  2433. break;
  2434. }
  2435. }
  2436. }
  2437. #endif
  2438. }
  2439. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2441. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2442. uint tag;
  2443. while ((tag = input.ReadTag()) != 0) {
  2444. switch(tag) {
  2445. default:
  2446. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2447. break;
  2448. case 8: {
  2449. Waldo = input.ReadInt32();
  2450. break;
  2451. }
  2452. }
  2453. }
  2454. }
  2455. #endif
  2456. #region Extensions
  2457. /// <summary>Container for extensions for other messages declared in the ComplexOptionType4 message type.</summary>
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2459. public static partial class Extensions {
  2460. public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> ComplexOpt4 =
  2461. new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>(7633546, pb::FieldCodec.ForMessage(61068370, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser));
  2462. }
  2463. #endregion
  2464. }
  2465. }
  2466. #endregion
  2467. }
  2468. public sealed partial class ComplexOptionType3 : pb::IMessage<ComplexOptionType3>
  2469. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2470. , pb::IBufferMessage
  2471. #endif
  2472. {
  2473. private static readonly pb::MessageParser<ComplexOptionType3> _parser = new pb::MessageParser<ComplexOptionType3>(() => new ComplexOptionType3());
  2474. private pb::UnknownFieldSet _unknownFields;
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2476. public static pb::MessageParser<ComplexOptionType3> Parser { get { return _parser; } }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2478. public static pbr::MessageDescriptor Descriptor {
  2479. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[14]; }
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2482. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2483. get { return Descriptor; }
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2486. public ComplexOptionType3() {
  2487. OnConstruction();
  2488. }
  2489. partial void OnConstruction();
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2491. public ComplexOptionType3(ComplexOptionType3 other) : this() {
  2492. qux_ = other.qux_;
  2493. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2494. }
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2496. public ComplexOptionType3 Clone() {
  2497. return new ComplexOptionType3(this);
  2498. }
  2499. /// <summary>Field number for the "qux" field.</summary>
  2500. public const int QuxFieldNumber = 1;
  2501. private int qux_;
  2502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2503. public int Qux {
  2504. get { return qux_; }
  2505. set {
  2506. qux_ = value;
  2507. }
  2508. }
  2509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2510. public override bool Equals(object other) {
  2511. return Equals(other as ComplexOptionType3);
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2514. public bool Equals(ComplexOptionType3 other) {
  2515. if (ReferenceEquals(other, null)) {
  2516. return false;
  2517. }
  2518. if (ReferenceEquals(other, this)) {
  2519. return true;
  2520. }
  2521. if (Qux != other.Qux) return false;
  2522. return Equals(_unknownFields, other._unknownFields);
  2523. }
  2524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2525. public override int GetHashCode() {
  2526. int hash = 1;
  2527. if (Qux != 0) hash ^= Qux.GetHashCode();
  2528. if (_unknownFields != null) {
  2529. hash ^= _unknownFields.GetHashCode();
  2530. }
  2531. return hash;
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2534. public override string ToString() {
  2535. return pb::JsonFormatter.ToDiagnosticString(this);
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2538. public void WriteTo(pb::CodedOutputStream output) {
  2539. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2540. output.WriteRawMessage(this);
  2541. #else
  2542. if (Qux != 0) {
  2543. output.WriteRawTag(8);
  2544. output.WriteInt32(Qux);
  2545. }
  2546. if (_unknownFields != null) {
  2547. _unknownFields.WriteTo(output);
  2548. }
  2549. #endif
  2550. }
  2551. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2553. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2554. if (Qux != 0) {
  2555. output.WriteRawTag(8);
  2556. output.WriteInt32(Qux);
  2557. }
  2558. if (_unknownFields != null) {
  2559. _unknownFields.WriteTo(ref output);
  2560. }
  2561. }
  2562. #endif
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2564. public int CalculateSize() {
  2565. int size = 0;
  2566. if (Qux != 0) {
  2567. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qux);
  2568. }
  2569. if (_unknownFields != null) {
  2570. size += _unknownFields.CalculateSize();
  2571. }
  2572. return size;
  2573. }
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2575. public void MergeFrom(ComplexOptionType3 other) {
  2576. if (other == null) {
  2577. return;
  2578. }
  2579. if (other.Qux != 0) {
  2580. Qux = other.Qux;
  2581. }
  2582. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2585. public void MergeFrom(pb::CodedInputStream input) {
  2586. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2587. input.ReadRawMessage(this);
  2588. #else
  2589. uint tag;
  2590. while ((tag = input.ReadTag()) != 0) {
  2591. switch(tag) {
  2592. default:
  2593. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2594. break;
  2595. case 8: {
  2596. Qux = input.ReadInt32();
  2597. break;
  2598. }
  2599. }
  2600. }
  2601. #endif
  2602. }
  2603. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2605. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2606. uint tag;
  2607. while ((tag = input.ReadTag()) != 0) {
  2608. switch(tag) {
  2609. default:
  2610. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2611. break;
  2612. case 8: {
  2613. Qux = input.ReadInt32();
  2614. break;
  2615. }
  2616. }
  2617. }
  2618. }
  2619. #endif
  2620. }
  2621. /// <summary>
  2622. /// Note that we try various different ways of naming the same extension.
  2623. /// </summary>
  2624. public sealed partial class VariousComplexOptions : pb::IMessage<VariousComplexOptions>
  2625. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2626. , pb::IBufferMessage
  2627. #endif
  2628. {
  2629. private static readonly pb::MessageParser<VariousComplexOptions> _parser = new pb::MessageParser<VariousComplexOptions>(() => new VariousComplexOptions());
  2630. private pb::UnknownFieldSet _unknownFields;
  2631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2632. public static pb::MessageParser<VariousComplexOptions> Parser { get { return _parser; } }
  2633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2634. public static pbr::MessageDescriptor Descriptor {
  2635. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[15]; }
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2638. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2639. get { return Descriptor; }
  2640. }
  2641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2642. public VariousComplexOptions() {
  2643. OnConstruction();
  2644. }
  2645. partial void OnConstruction();
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2647. public VariousComplexOptions(VariousComplexOptions other) : this() {
  2648. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2651. public VariousComplexOptions Clone() {
  2652. return new VariousComplexOptions(this);
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2655. public override bool Equals(object other) {
  2656. return Equals(other as VariousComplexOptions);
  2657. }
  2658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2659. public bool Equals(VariousComplexOptions other) {
  2660. if (ReferenceEquals(other, null)) {
  2661. return false;
  2662. }
  2663. if (ReferenceEquals(other, this)) {
  2664. return true;
  2665. }
  2666. return Equals(_unknownFields, other._unknownFields);
  2667. }
  2668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2669. public override int GetHashCode() {
  2670. int hash = 1;
  2671. if (_unknownFields != null) {
  2672. hash ^= _unknownFields.GetHashCode();
  2673. }
  2674. return hash;
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2677. public override string ToString() {
  2678. return pb::JsonFormatter.ToDiagnosticString(this);
  2679. }
  2680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2681. public void WriteTo(pb::CodedOutputStream output) {
  2682. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2683. output.WriteRawMessage(this);
  2684. #else
  2685. if (_unknownFields != null) {
  2686. _unknownFields.WriteTo(output);
  2687. }
  2688. #endif
  2689. }
  2690. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2692. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2693. if (_unknownFields != null) {
  2694. _unknownFields.WriteTo(ref output);
  2695. }
  2696. }
  2697. #endif
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2699. public int CalculateSize() {
  2700. int size = 0;
  2701. if (_unknownFields != null) {
  2702. size += _unknownFields.CalculateSize();
  2703. }
  2704. return size;
  2705. }
  2706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2707. public void MergeFrom(VariousComplexOptions other) {
  2708. if (other == null) {
  2709. return;
  2710. }
  2711. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2714. public void MergeFrom(pb::CodedInputStream input) {
  2715. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2716. input.ReadRawMessage(this);
  2717. #else
  2718. uint tag;
  2719. while ((tag = input.ReadTag()) != 0) {
  2720. switch(tag) {
  2721. default:
  2722. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2723. break;
  2724. }
  2725. }
  2726. #endif
  2727. }
  2728. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2730. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2731. uint tag;
  2732. while ((tag = input.ReadTag()) != 0) {
  2733. switch(tag) {
  2734. default:
  2735. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2736. break;
  2737. }
  2738. }
  2739. }
  2740. #endif
  2741. }
  2742. /// <summary>
  2743. /// A helper type used to test aggregate option parsing
  2744. /// </summary>
  2745. public sealed partial class Aggregate : pb::IMessage<Aggregate>
  2746. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2747. , pb::IBufferMessage
  2748. #endif
  2749. {
  2750. private static readonly pb::MessageParser<Aggregate> _parser = new pb::MessageParser<Aggregate>(() => new Aggregate());
  2751. private pb::UnknownFieldSet _unknownFields;
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2753. public static pb::MessageParser<Aggregate> Parser { get { return _parser; } }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2755. public static pbr::MessageDescriptor Descriptor {
  2756. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[16]; }
  2757. }
  2758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2759. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2760. get { return Descriptor; }
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2763. public Aggregate() {
  2764. OnConstruction();
  2765. }
  2766. partial void OnConstruction();
  2767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2768. public Aggregate(Aggregate other) : this() {
  2769. i_ = other.i_;
  2770. s_ = other.s_;
  2771. sub_ = other.sub_ != null ? other.sub_.Clone() : null;
  2772. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2775. public Aggregate Clone() {
  2776. return new Aggregate(this);
  2777. }
  2778. /// <summary>Field number for the "i" field.</summary>
  2779. public const int IFieldNumber = 1;
  2780. private int i_;
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2782. public int I {
  2783. get { return i_; }
  2784. set {
  2785. i_ = value;
  2786. }
  2787. }
  2788. /// <summary>Field number for the "s" field.</summary>
  2789. public const int SFieldNumber = 2;
  2790. private string s_ = "";
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2792. public string S {
  2793. get { return s_; }
  2794. set {
  2795. s_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2796. }
  2797. }
  2798. /// <summary>Field number for the "sub" field.</summary>
  2799. public const int SubFieldNumber = 3;
  2800. private global::UnitTest.Issues.TestProtos.Aggregate sub_;
  2801. /// <summary>
  2802. /// A nested object
  2803. /// </summary>
  2804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2805. public global::UnitTest.Issues.TestProtos.Aggregate Sub {
  2806. get { return sub_; }
  2807. set {
  2808. sub_ = value;
  2809. }
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2812. public override bool Equals(object other) {
  2813. return Equals(other as Aggregate);
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2816. public bool Equals(Aggregate other) {
  2817. if (ReferenceEquals(other, null)) {
  2818. return false;
  2819. }
  2820. if (ReferenceEquals(other, this)) {
  2821. return true;
  2822. }
  2823. if (I != other.I) return false;
  2824. if (S != other.S) return false;
  2825. if (!object.Equals(Sub, other.Sub)) return false;
  2826. return Equals(_unknownFields, other._unknownFields);
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2829. public override int GetHashCode() {
  2830. int hash = 1;
  2831. if (I != 0) hash ^= I.GetHashCode();
  2832. if (S.Length != 0) hash ^= S.GetHashCode();
  2833. if (sub_ != null) hash ^= Sub.GetHashCode();
  2834. if (_unknownFields != null) {
  2835. hash ^= _unknownFields.GetHashCode();
  2836. }
  2837. return hash;
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2840. public override string ToString() {
  2841. return pb::JsonFormatter.ToDiagnosticString(this);
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2844. public void WriteTo(pb::CodedOutputStream output) {
  2845. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2846. output.WriteRawMessage(this);
  2847. #else
  2848. if (I != 0) {
  2849. output.WriteRawTag(8);
  2850. output.WriteInt32(I);
  2851. }
  2852. if (S.Length != 0) {
  2853. output.WriteRawTag(18);
  2854. output.WriteString(S);
  2855. }
  2856. if (sub_ != null) {
  2857. output.WriteRawTag(26);
  2858. output.WriteMessage(Sub);
  2859. }
  2860. if (_unknownFields != null) {
  2861. _unknownFields.WriteTo(output);
  2862. }
  2863. #endif
  2864. }
  2865. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2867. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2868. if (I != 0) {
  2869. output.WriteRawTag(8);
  2870. output.WriteInt32(I);
  2871. }
  2872. if (S.Length != 0) {
  2873. output.WriteRawTag(18);
  2874. output.WriteString(S);
  2875. }
  2876. if (sub_ != null) {
  2877. output.WriteRawTag(26);
  2878. output.WriteMessage(Sub);
  2879. }
  2880. if (_unknownFields != null) {
  2881. _unknownFields.WriteTo(ref output);
  2882. }
  2883. }
  2884. #endif
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2886. public int CalculateSize() {
  2887. int size = 0;
  2888. if (I != 0) {
  2889. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  2890. }
  2891. if (S.Length != 0) {
  2892. size += 1 + pb::CodedOutputStream.ComputeStringSize(S);
  2893. }
  2894. if (sub_ != null) {
  2895. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sub);
  2896. }
  2897. if (_unknownFields != null) {
  2898. size += _unknownFields.CalculateSize();
  2899. }
  2900. return size;
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2903. public void MergeFrom(Aggregate other) {
  2904. if (other == null) {
  2905. return;
  2906. }
  2907. if (other.I != 0) {
  2908. I = other.I;
  2909. }
  2910. if (other.S.Length != 0) {
  2911. S = other.S;
  2912. }
  2913. if (other.sub_ != null) {
  2914. if (sub_ == null) {
  2915. Sub = new global::UnitTest.Issues.TestProtos.Aggregate();
  2916. }
  2917. Sub.MergeFrom(other.Sub);
  2918. }
  2919. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2920. }
  2921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2922. public void MergeFrom(pb::CodedInputStream input) {
  2923. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2924. input.ReadRawMessage(this);
  2925. #else
  2926. uint tag;
  2927. while ((tag = input.ReadTag()) != 0) {
  2928. switch(tag) {
  2929. default:
  2930. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2931. break;
  2932. case 8: {
  2933. I = input.ReadInt32();
  2934. break;
  2935. }
  2936. case 18: {
  2937. S = input.ReadString();
  2938. break;
  2939. }
  2940. case 26: {
  2941. if (sub_ == null) {
  2942. Sub = new global::UnitTest.Issues.TestProtos.Aggregate();
  2943. }
  2944. input.ReadMessage(Sub);
  2945. break;
  2946. }
  2947. }
  2948. }
  2949. #endif
  2950. }
  2951. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2953. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2954. uint tag;
  2955. while ((tag = input.ReadTag()) != 0) {
  2956. switch(tag) {
  2957. default:
  2958. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2959. break;
  2960. case 8: {
  2961. I = input.ReadInt32();
  2962. break;
  2963. }
  2964. case 18: {
  2965. S = input.ReadString();
  2966. break;
  2967. }
  2968. case 26: {
  2969. if (sub_ == null) {
  2970. Sub = new global::UnitTest.Issues.TestProtos.Aggregate();
  2971. }
  2972. input.ReadMessage(Sub);
  2973. break;
  2974. }
  2975. }
  2976. }
  2977. }
  2978. #endif
  2979. }
  2980. public sealed partial class AggregateMessage : pb::IMessage<AggregateMessage>
  2981. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2982. , pb::IBufferMessage
  2983. #endif
  2984. {
  2985. private static readonly pb::MessageParser<AggregateMessage> _parser = new pb::MessageParser<AggregateMessage>(() => new AggregateMessage());
  2986. private pb::UnknownFieldSet _unknownFields;
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2988. public static pb::MessageParser<AggregateMessage> Parser { get { return _parser; } }
  2989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2990. public static pbr::MessageDescriptor Descriptor {
  2991. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[17]; }
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2994. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2995. get { return Descriptor; }
  2996. }
  2997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2998. public AggregateMessage() {
  2999. OnConstruction();
  3000. }
  3001. partial void OnConstruction();
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3003. public AggregateMessage(AggregateMessage other) : this() {
  3004. fieldname_ = other.fieldname_;
  3005. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3008. public AggregateMessage Clone() {
  3009. return new AggregateMessage(this);
  3010. }
  3011. /// <summary>Field number for the "fieldname" field.</summary>
  3012. public const int FieldnameFieldNumber = 1;
  3013. private int fieldname_;
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3015. public int Fieldname {
  3016. get { return fieldname_; }
  3017. set {
  3018. fieldname_ = value;
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3022. public override bool Equals(object other) {
  3023. return Equals(other as AggregateMessage);
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3026. public bool Equals(AggregateMessage other) {
  3027. if (ReferenceEquals(other, null)) {
  3028. return false;
  3029. }
  3030. if (ReferenceEquals(other, this)) {
  3031. return true;
  3032. }
  3033. if (Fieldname != other.Fieldname) return false;
  3034. return Equals(_unknownFields, other._unknownFields);
  3035. }
  3036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3037. public override int GetHashCode() {
  3038. int hash = 1;
  3039. if (Fieldname != 0) hash ^= Fieldname.GetHashCode();
  3040. if (_unknownFields != null) {
  3041. hash ^= _unknownFields.GetHashCode();
  3042. }
  3043. return hash;
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3046. public override string ToString() {
  3047. return pb::JsonFormatter.ToDiagnosticString(this);
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3050. public void WriteTo(pb::CodedOutputStream output) {
  3051. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3052. output.WriteRawMessage(this);
  3053. #else
  3054. if (Fieldname != 0) {
  3055. output.WriteRawTag(8);
  3056. output.WriteInt32(Fieldname);
  3057. }
  3058. if (_unknownFields != null) {
  3059. _unknownFields.WriteTo(output);
  3060. }
  3061. #endif
  3062. }
  3063. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3065. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3066. if (Fieldname != 0) {
  3067. output.WriteRawTag(8);
  3068. output.WriteInt32(Fieldname);
  3069. }
  3070. if (_unknownFields != null) {
  3071. _unknownFields.WriteTo(ref output);
  3072. }
  3073. }
  3074. #endif
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3076. public int CalculateSize() {
  3077. int size = 0;
  3078. if (Fieldname != 0) {
  3079. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fieldname);
  3080. }
  3081. if (_unknownFields != null) {
  3082. size += _unknownFields.CalculateSize();
  3083. }
  3084. return size;
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3087. public void MergeFrom(AggregateMessage other) {
  3088. if (other == null) {
  3089. return;
  3090. }
  3091. if (other.Fieldname != 0) {
  3092. Fieldname = other.Fieldname;
  3093. }
  3094. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3097. public void MergeFrom(pb::CodedInputStream input) {
  3098. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3099. input.ReadRawMessage(this);
  3100. #else
  3101. uint tag;
  3102. while ((tag = input.ReadTag()) != 0) {
  3103. switch(tag) {
  3104. default:
  3105. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3106. break;
  3107. case 8: {
  3108. Fieldname = input.ReadInt32();
  3109. break;
  3110. }
  3111. }
  3112. }
  3113. #endif
  3114. }
  3115. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3117. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3118. uint tag;
  3119. while ((tag = input.ReadTag()) != 0) {
  3120. switch(tag) {
  3121. default:
  3122. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3123. break;
  3124. case 8: {
  3125. Fieldname = input.ReadInt32();
  3126. break;
  3127. }
  3128. }
  3129. }
  3130. }
  3131. #endif
  3132. }
  3133. /// <summary>
  3134. /// Test custom options for nested type.
  3135. /// </summary>
  3136. public sealed partial class NestedOptionType : pb::IMessage<NestedOptionType>
  3137. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3138. , pb::IBufferMessage
  3139. #endif
  3140. {
  3141. private static readonly pb::MessageParser<NestedOptionType> _parser = new pb::MessageParser<NestedOptionType>(() => new NestedOptionType());
  3142. private pb::UnknownFieldSet _unknownFields;
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3144. public static pb::MessageParser<NestedOptionType> Parser { get { return _parser; } }
  3145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3146. public static pbr::MessageDescriptor Descriptor {
  3147. get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[18]; }
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3150. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3151. get { return Descriptor; }
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3154. public NestedOptionType() {
  3155. OnConstruction();
  3156. }
  3157. partial void OnConstruction();
  3158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3159. public NestedOptionType(NestedOptionType other) : this() {
  3160. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3163. public NestedOptionType Clone() {
  3164. return new NestedOptionType(this);
  3165. }
  3166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3167. public override bool Equals(object other) {
  3168. return Equals(other as NestedOptionType);
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3171. public bool Equals(NestedOptionType other) {
  3172. if (ReferenceEquals(other, null)) {
  3173. return false;
  3174. }
  3175. if (ReferenceEquals(other, this)) {
  3176. return true;
  3177. }
  3178. return Equals(_unknownFields, other._unknownFields);
  3179. }
  3180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3181. public override int GetHashCode() {
  3182. int hash = 1;
  3183. if (_unknownFields != null) {
  3184. hash ^= _unknownFields.GetHashCode();
  3185. }
  3186. return hash;
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3189. public override string ToString() {
  3190. return pb::JsonFormatter.ToDiagnosticString(this);
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3193. public void WriteTo(pb::CodedOutputStream output) {
  3194. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3195. output.WriteRawMessage(this);
  3196. #else
  3197. if (_unknownFields != null) {
  3198. _unknownFields.WriteTo(output);
  3199. }
  3200. #endif
  3201. }
  3202. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3204. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3205. if (_unknownFields != null) {
  3206. _unknownFields.WriteTo(ref output);
  3207. }
  3208. }
  3209. #endif
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3211. public int CalculateSize() {
  3212. int size = 0;
  3213. if (_unknownFields != null) {
  3214. size += _unknownFields.CalculateSize();
  3215. }
  3216. return size;
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3219. public void MergeFrom(NestedOptionType other) {
  3220. if (other == null) {
  3221. return;
  3222. }
  3223. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3226. public void MergeFrom(pb::CodedInputStream input) {
  3227. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3228. input.ReadRawMessage(this);
  3229. #else
  3230. uint tag;
  3231. while ((tag = input.ReadTag()) != 0) {
  3232. switch(tag) {
  3233. default:
  3234. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3235. break;
  3236. }
  3237. }
  3238. #endif
  3239. }
  3240. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3242. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3243. uint tag;
  3244. while ((tag = input.ReadTag()) != 0) {
  3245. switch(tag) {
  3246. default:
  3247. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3248. break;
  3249. }
  3250. }
  3251. }
  3252. #endif
  3253. #region Nested types
  3254. /// <summary>Container for nested types declared in the NestedOptionType message type.</summary>
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3256. public static partial class Types {
  3257. public enum NestedEnum {
  3258. [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
  3259. [pbr::OriginalName("NESTED_ENUM_VALUE")] Value = 1,
  3260. }
  3261. public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
  3262. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3263. , pb::IBufferMessage
  3264. #endif
  3265. {
  3266. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3267. private pb::UnknownFieldSet _unknownFields;
  3268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3269. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3271. public static pbr::MessageDescriptor Descriptor {
  3272. get { return global::UnitTest.Issues.TestProtos.NestedOptionType.Descriptor.NestedTypes[0]; }
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3275. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3276. get { return Descriptor; }
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3279. public NestedMessage() {
  3280. OnConstruction();
  3281. }
  3282. partial void OnConstruction();
  3283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3284. public NestedMessage(NestedMessage other) : this() {
  3285. nestedField_ = other.nestedField_;
  3286. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3287. }
  3288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3289. public NestedMessage Clone() {
  3290. return new NestedMessage(this);
  3291. }
  3292. /// <summary>Field number for the "nested_field" field.</summary>
  3293. public const int NestedFieldFieldNumber = 1;
  3294. private int nestedField_;
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3296. public int NestedField {
  3297. get { return nestedField_; }
  3298. set {
  3299. nestedField_ = value;
  3300. }
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3303. public override bool Equals(object other) {
  3304. return Equals(other as NestedMessage);
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3307. public bool Equals(NestedMessage other) {
  3308. if (ReferenceEquals(other, null)) {
  3309. return false;
  3310. }
  3311. if (ReferenceEquals(other, this)) {
  3312. return true;
  3313. }
  3314. if (NestedField != other.NestedField) return false;
  3315. return Equals(_unknownFields, other._unknownFields);
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3318. public override int GetHashCode() {
  3319. int hash = 1;
  3320. if (NestedField != 0) hash ^= NestedField.GetHashCode();
  3321. if (_unknownFields != null) {
  3322. hash ^= _unknownFields.GetHashCode();
  3323. }
  3324. return hash;
  3325. }
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3327. public override string ToString() {
  3328. return pb::JsonFormatter.ToDiagnosticString(this);
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3331. public void WriteTo(pb::CodedOutputStream output) {
  3332. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3333. output.WriteRawMessage(this);
  3334. #else
  3335. if (NestedField != 0) {
  3336. output.WriteRawTag(8);
  3337. output.WriteInt32(NestedField);
  3338. }
  3339. if (_unknownFields != null) {
  3340. _unknownFields.WriteTo(output);
  3341. }
  3342. #endif
  3343. }
  3344. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3346. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3347. if (NestedField != 0) {
  3348. output.WriteRawTag(8);
  3349. output.WriteInt32(NestedField);
  3350. }
  3351. if (_unknownFields != null) {
  3352. _unknownFields.WriteTo(ref output);
  3353. }
  3354. }
  3355. #endif
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3357. public int CalculateSize() {
  3358. int size = 0;
  3359. if (NestedField != 0) {
  3360. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NestedField);
  3361. }
  3362. if (_unknownFields != null) {
  3363. size += _unknownFields.CalculateSize();
  3364. }
  3365. return size;
  3366. }
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3368. public void MergeFrom(NestedMessage other) {
  3369. if (other == null) {
  3370. return;
  3371. }
  3372. if (other.NestedField != 0) {
  3373. NestedField = other.NestedField;
  3374. }
  3375. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3378. public void MergeFrom(pb::CodedInputStream input) {
  3379. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3380. input.ReadRawMessage(this);
  3381. #else
  3382. uint tag;
  3383. while ((tag = input.ReadTag()) != 0) {
  3384. switch(tag) {
  3385. default:
  3386. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3387. break;
  3388. case 8: {
  3389. NestedField = input.ReadInt32();
  3390. break;
  3391. }
  3392. }
  3393. }
  3394. #endif
  3395. }
  3396. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3398. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3399. uint tag;
  3400. while ((tag = input.ReadTag()) != 0) {
  3401. switch(tag) {
  3402. default:
  3403. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3404. break;
  3405. case 8: {
  3406. NestedField = input.ReadInt32();
  3407. break;
  3408. }
  3409. }
  3410. }
  3411. }
  3412. #endif
  3413. }
  3414. }
  3415. #endregion
  3416. }
  3417. #endregion
  3418. }
  3419. #endregion Designer generated code