Conformance.cs 160 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: conformance.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Conformance {
  10. /// <summary>Holder for reflection information generated from conformance.proto</summary>
  11. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12. public static partial class ConformanceReflection {
  13. #region Descriptor
  14. /// <summary>File descriptor for conformance.proto</summary>
  15. public static pbr::FileDescriptor Descriptor {
  16. get { return descriptor; }
  17. }
  18. private static pbr::FileDescriptor descriptor;
  19. static ConformanceReflection() {
  20. byte[] descriptorData = global::System.Convert.FromBase64String(
  21. string.Concat(
  22. "ChFjb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2UaGWdvb2dsZS9wcm90",
  23. "b2J1Zi9hbnkucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90",
  24. "bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aHGdvb2dsZS9w",
  25. "cm90b2J1Zi9zdHJ1Y3QucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3Rh",
  26. "bXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byKNAQoS",
  27. "Q29uZm9ybWFuY2VSZXF1ZXN0EhoKEHByb3RvYnVmX3BheWxvYWQYASABKAxI",
  28. "ABIWCgxqc29uX3BheWxvYWQYAiABKAlIABI4ChdyZXF1ZXN0ZWRfb3V0cHV0",
  29. "X2Zvcm1hdBgDIAEoDjIXLmNvbmZvcm1hbmNlLldpcmVGb3JtYXRCCQoHcGF5",
  30. "bG9hZCKxAQoTQ29uZm9ybWFuY2VSZXNwb25zZRIVCgtwYXJzZV9lcnJvchgB",
  31. "IAEoCUgAEhkKD3NlcmlhbGl6ZV9lcnJvchgGIAEoCUgAEhcKDXJ1bnRpbWVf",
  32. "ZXJyb3IYAiABKAlIABIaChBwcm90b2J1Zl9wYXlsb2FkGAMgASgMSAASFgoM",
  33. "anNvbl9wYXlsb2FkGAQgASgJSAASEQoHc2tpcHBlZBgFIAEoCUgAQggKBnJl",
  34. "c3VsdCLVMgoMVGVzdEFsbFR5cGVzEhYKDm9wdGlvbmFsX2ludDMyGAEgASgF",
  35. "EhYKDm9wdGlvbmFsX2ludDY0GAIgASgDEhcKD29wdGlvbmFsX3VpbnQzMhgD",
  36. "IAEoDRIXCg9vcHRpb25hbF91aW50NjQYBCABKAQSFwoPb3B0aW9uYWxfc2lu",
  37. "dDMyGAUgASgREhcKD29wdGlvbmFsX3NpbnQ2NBgGIAEoEhIYChBvcHRpb25h",
  38. "bF9maXhlZDMyGAcgASgHEhgKEG9wdGlvbmFsX2ZpeGVkNjQYCCABKAYSGQoR",
  39. "b3B0aW9uYWxfc2ZpeGVkMzIYCSABKA8SGQoRb3B0aW9uYWxfc2ZpeGVkNjQY",
  40. "CiABKBASFgoOb3B0aW9uYWxfZmxvYXQYCyABKAISFwoPb3B0aW9uYWxfZG91",
  41. "YmxlGAwgASgBEhUKDW9wdGlvbmFsX2Jvb2wYDSABKAgSFwoPb3B0aW9uYWxf",
  42. "c3RyaW5nGA4gASgJEhYKDm9wdGlvbmFsX2J5dGVzGA8gASgMEkgKF29wdGlv",
  43. "bmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMicuY29uZm9ybWFuY2UuVGVzdEFs",
  44. "bFR5cGVzLk5lc3RlZE1lc3NhZ2USPQoYb3B0aW9uYWxfZm9yZWlnbl9tZXNz",
  45. "YWdlGBMgASgLMhsuY29uZm9ybWFuY2UuRm9yZWlnbk1lc3NhZ2USQgoUb3B0",
  46. "aW9uYWxfbmVzdGVkX2VudW0YFSABKA4yJC5jb25mb3JtYW5jZS5UZXN0QWxs",
  47. "VHlwZXMuTmVzdGVkRW51bRI3ChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiAB",
  48. "KA4yGC5jb25mb3JtYW5jZS5Gb3JlaWduRW51bRIhChVvcHRpb25hbF9zdHJp",
  49. "bmdfcGllY2UYGCABKAlCAggCEhkKDW9wdGlvbmFsX2NvcmQYGSABKAlCAggB",
  50. "EjQKEXJlY3Vyc2l2ZV9tZXNzYWdlGBsgASgLMhkuY29uZm9ybWFuY2UuVGVz",
  51. "dEFsbFR5cGVzEhYKDnJlcGVhdGVkX2ludDMyGB8gAygFEhYKDnJlcGVhdGVk",
  52. "X2ludDY0GCAgAygDEhcKD3JlcGVhdGVkX3VpbnQzMhghIAMoDRIXCg9yZXBl",
  53. "YXRlZF91aW50NjQYIiADKAQSFwoPcmVwZWF0ZWRfc2ludDMyGCMgAygREhcK",
  54. "D3JlcGVhdGVkX3NpbnQ2NBgkIAMoEhIYChByZXBlYXRlZF9maXhlZDMyGCUg",
  55. "AygHEhgKEHJlcGVhdGVkX2ZpeGVkNjQYJiADKAYSGQoRcmVwZWF0ZWRfc2Zp",
  56. "eGVkMzIYJyADKA8SGQoRcmVwZWF0ZWRfc2ZpeGVkNjQYKCADKBASFgoOcmVw",
  57. "ZWF0ZWRfZmxvYXQYKSADKAISFwoPcmVwZWF0ZWRfZG91YmxlGCogAygBEhUK",
  58. "DXJlcGVhdGVkX2Jvb2wYKyADKAgSFwoPcmVwZWF0ZWRfc3RyaW5nGCwgAygJ",
  59. "EhYKDnJlcGVhdGVkX2J5dGVzGC0gAygMEkgKF3JlcGVhdGVkX25lc3RlZF9t",
  60. "ZXNzYWdlGDAgAygLMicuY29uZm9ybWFuY2UuVGVzdEFsbFR5cGVzLk5lc3Rl",
  61. "ZE1lc3NhZ2USPQoYcmVwZWF0ZWRfZm9yZWlnbl9tZXNzYWdlGDEgAygLMhsu",
  62. "Y29uZm9ybWFuY2UuRm9yZWlnbk1lc3NhZ2USQgoUcmVwZWF0ZWRfbmVzdGVk",
  63. "X2VudW0YMyADKA4yJC5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTmVzdGVk",
  64. "RW51bRI3ChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yGC5jb25mb3Jt",
  65. "YW5jZS5Gb3JlaWduRW51bRIhChVyZXBlYXRlZF9zdHJpbmdfcGllY2UYNiAD",
  66. "KAlCAggCEhkKDXJlcGVhdGVkX2NvcmQYNyADKAlCAggBEkUKD21hcF9pbnQz",
  67. "Ml9pbnQzMhg4IAMoCzIsLmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBJ",
  68. "bnQzMkludDMyRW50cnkSRQoPbWFwX2ludDY0X2ludDY0GDkgAygLMiwuY29u",
  69. "Zm9ybWFuY2UuVGVzdEFsbFR5cGVzLk1hcEludDY0SW50NjRFbnRyeRJJChFt",
  70. "YXBfdWludDMyX3VpbnQzMhg6IAMoCzIuLmNvbmZvcm1hbmNlLlRlc3RBbGxU",
  71. "eXBlcy5NYXBVaW50MzJVaW50MzJFbnRyeRJJChFtYXBfdWludDY0X3VpbnQ2",
  72. "NBg7IAMoCzIuLmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBVaW50NjRV",
  73. "aW50NjRFbnRyeRJJChFtYXBfc2ludDMyX3NpbnQzMhg8IAMoCzIuLmNvbmZv",
  74. "cm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBTaW50MzJTaW50MzJFbnRyeRJJChFt",
  75. "YXBfc2ludDY0X3NpbnQ2NBg9IAMoCzIuLmNvbmZvcm1hbmNlLlRlc3RBbGxU",
  76. "eXBlcy5NYXBTaW50NjRTaW50NjRFbnRyeRJNChNtYXBfZml4ZWQzMl9maXhl",
  77. "ZDMyGD4gAygLMjAuY29uZm9ybWFuY2UuVGVzdEFsbFR5cGVzLk1hcEZpeGVk",
  78. "MzJGaXhlZDMyRW50cnkSTQoTbWFwX2ZpeGVkNjRfZml4ZWQ2NBg/IAMoCzIw",
  79. "LmNvbmZvcm1hbmNlLlRlc3RBbGxUeXBlcy5NYXBGaXhlZDY0Rml4ZWQ2NEVu",
  80. "dHJ5ElEKFW1hcF9zZml4ZWQzMl9zZml4ZWQzMhhAIAMoCzIyLmNvbmZvcm1h",
  81. "bmNlLlRlc3RBbGxUeXBlcy5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSUQoV",
  82. "bWFwX3NmaXhlZDY0X3NmaXhlZDY0GEEgAygLMjIuY29uZm9ybWFuY2UuVGVz",
  83. "dEFsbFR5cGVzLk1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRJFCg9tYXBfaW50",
  84. "MzJfZmxvYXQYQiADKAsyLC5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFw",
  85. "SW50MzJGbG9hdEVudHJ5EkcKEG1hcF9pbnQzMl9kb3VibGUYQyADKAsyLS5j",
  86. "b25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwSW50MzJEb3VibGVFbnRyeRJB",
  87. "Cg1tYXBfYm9vbF9ib29sGEQgAygLMiouY29uZm9ybWFuY2UuVGVzdEFsbFR5",
  88. "cGVzLk1hcEJvb2xCb29sRW50cnkSSQoRbWFwX3N0cmluZ19zdHJpbmcYRSAD",
  89. "KAsyLi5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMuTWFwU3RyaW5nU3RyaW5n",
  90. "RW50cnkSRwoQbWFwX3N0cmluZ19ieXRlcxhGIAMoCzItLmNvbmZvcm1hbmNl",
  91. "LlRlc3RBbGxUeXBlcy5NYXBTdHJpbmdCeXRlc0VudHJ5ElgKGW1hcF9zdHJp",
  92. "bmdfbmVzdGVkX21lc3NhZ2UYRyADKAsyNS5jb25mb3JtYW5jZS5UZXN0QWxs",
  93. "VHlwZXMuTWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5EloKGm1hcF9zdHJp",
  94. "bmdfZm9yZWlnbl9tZXNzYWdlGEggAygLMjYuY29uZm9ybWFuY2UuVGVzdEFs",
  95. "bFR5cGVzLk1hcFN0cmluZ0ZvcmVpZ25NZXNzYWdlRW50cnkSUgoWbWFwX3N0",
  96. "cmluZ19uZXN0ZWRfZW51bRhJIAMoCzIyLmNvbmZvcm1hbmNlLlRlc3RBbGxU",
  97. "eXBlcy5NYXBTdHJpbmdOZXN0ZWRFbnVtRW50cnkSVAoXbWFwX3N0cmluZ19m",
  98. "b3JlaWduX2VudW0YSiADKAsyMy5jb25mb3JtYW5jZS5UZXN0QWxsVHlwZXMu",
  99. "TWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeRIWCgxvbmVvZl91aW50MzIYbyAB",
  100. "KA1IABJHChRvbmVvZl9uZXN0ZWRfbWVzc2FnZRhwIAEoCzInLmNvbmZvcm1h",
  101. "bmNlLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlSAASFgoMb25lb2Zfc3Ry",
  102. "aW5nGHEgASgJSAASFQoLb25lb2ZfYnl0ZXMYciABKAxIABI6ChVvcHRpb25h",
  103. "bF9ib29sX3dyYXBwZXIYyQEgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xW",
  104. "YWx1ZRI8ChZvcHRpb25hbF9pbnQzMl93cmFwcGVyGMoBIAEoCzIbLmdvb2ds",
  105. "ZS5wcm90b2J1Zi5JbnQzMlZhbHVlEjwKFm9wdGlvbmFsX2ludDY0X3dyYXBw",
  106. "ZXIYywEgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUSPgoXb3B0",
  107. "aW9uYWxfdWludDMyX3dyYXBwZXIYzAEgASgLMhwuZ29vZ2xlLnByb3RvYnVm",
  108. "LlVJbnQzMlZhbHVlEj4KF29wdGlvbmFsX3VpbnQ2NF93cmFwcGVyGM0BIAEo",
  109. "CzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50NjRWYWx1ZRI8ChZvcHRpb25hbF9m",
  110. "bG9hdF93cmFwcGVyGM4BIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GbG9hdFZh",
  111. "bHVlEj4KF29wdGlvbmFsX2RvdWJsZV93cmFwcGVyGM8BIAEoCzIcLmdvb2ds",
  112. "ZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZRI+ChdvcHRpb25hbF9zdHJpbmdfd3Jh",
  113. "cHBlchjQASABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSPAoW",
  114. "b3B0aW9uYWxfYnl0ZXNfd3JhcHBlchjRASABKAsyGy5nb29nbGUucHJvdG9i",
  115. "dWYuQnl0ZXNWYWx1ZRI6ChVyZXBlYXRlZF9ib29sX3dyYXBwZXIY0wEgAygL",
  116. "MhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRI8ChZyZXBlYXRlZF9pbnQz",
  117. "Ml93cmFwcGVyGNQBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVl",
  118. "EjwKFnJlcGVhdGVkX2ludDY0X3dyYXBwZXIY1QEgAygLMhsuZ29vZ2xlLnBy",
  119. "b3RvYnVmLkludDY0VmFsdWUSPgoXcmVwZWF0ZWRfdWludDMyX3dyYXBwZXIY",
  120. "1gEgAygLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEj4KF3JlcGVh",
  121. "dGVkX3VpbnQ2NF93cmFwcGVyGNcBIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5V",
  122. "SW50NjRWYWx1ZRI8ChZyZXBlYXRlZF9mbG9hdF93cmFwcGVyGNgBIAMoCzIb",
  123. "Lmdvb2dsZS5wcm90b2J1Zi5GbG9hdFZhbHVlEj4KF3JlcGVhdGVkX2RvdWJs",
  124. "ZV93cmFwcGVyGNkBIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5Eb3VibGVWYWx1",
  125. "ZRI+ChdyZXBlYXRlZF9zdHJpbmdfd3JhcHBlchjaASADKAsyHC5nb29nbGUu",
  126. "cHJvdG9idWYuU3RyaW5nVmFsdWUSPAoWcmVwZWF0ZWRfYnl0ZXNfd3JhcHBl",
  127. "chjbASADKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZRI1ChFvcHRp",
  128. "b25hbF9kdXJhdGlvbhitAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRp",
  129. "b24SNwoSb3B0aW9uYWxfdGltZXN0YW1wGK4CIAEoCzIaLmdvb2dsZS5wcm90",
  130. "b2J1Zi5UaW1lc3RhbXASOAoTb3B0aW9uYWxfZmllbGRfbWFzaxivAiABKAsy",
  131. "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEjEKD29wdGlvbmFsX3N0cnVj",
  132. "dBiwAiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EisKDG9wdGlvbmFs",
  133. "X2FueRixAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55Ei8KDm9wdGlvbmFs",
  134. "X3ZhbHVlGLICIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZRI1ChFyZXBl",
  135. "YXRlZF9kdXJhdGlvbhi3AiADKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRp",
  136. "b24SNwoScmVwZWF0ZWRfdGltZXN0YW1wGLgCIAMoCzIaLmdvb2dsZS5wcm90",
  137. "b2J1Zi5UaW1lc3RhbXASNwoScmVwZWF0ZWRfZmllbGRtYXNrGLkCIAMoCzIa",
  138. "Lmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSMQoPcmVwZWF0ZWRfc3RydWN0",
  139. "GMQCIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSKwoMcmVwZWF0ZWRf",
  140. "YW55GLsCIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSLwoOcmVwZWF0ZWRf",
  141. "dmFsdWUYvAIgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlEhMKCmZpZWxk",
  142. "bmFtZTEYkQMgASgFEhQKC2ZpZWxkX25hbWUyGJIDIAEoBRIVCgxfZmllbGRf",
  143. "bmFtZTMYkwMgASgFEhYKDWZpZWxkX19uYW1lNF8YlAMgASgFEhQKC2ZpZWxk",
  144. "MG5hbWU1GJUDIAEoBRIWCg1maWVsZF8wX25hbWU2GJYDIAEoBRITCgpmaWVs",
  145. "ZE5hbWU3GJcDIAEoBRITCgpGaWVsZE5hbWU4GJgDIAEoBRIUCgtmaWVsZF9O",
  146. "YW1lORiZAyABKAUSFQoMRmllbGRfTmFtZTEwGJoDIAEoBRIVCgxGSUVMRF9O",
  147. "QU1FMTEYmwMgASgFEhUKDEZJRUxEX25hbWUxMhicAyABKAUaSgoNTmVzdGVk",
  148. "TWVzc2FnZRIJCgFhGAEgASgFEi4KC2NvcmVjdXJzaXZlGAIgASgLMhkuY29u",
  149. "Zm9ybWFuY2UuVGVzdEFsbFR5cGVzGjQKEk1hcEludDMySW50MzJFbnRyeRIL",
  150. "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50",
  151. "NjRFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1h",
  152. "cFVpbnQzMlVpbnQzMkVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEo",
  153. "DToCOAEaNgoUTWFwVWludDY0VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0K",
  154. "BXZhbHVlGAIgASgEOgI4ARo2ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNr",
  155. "ZXkYASABKBESDQoFdmFsdWUYAiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2",
  156. "NEVudHJ5EgsKA2tleRgBIAEoEhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFw",
  157. "Rml4ZWQzMkZpeGVkMzJFbnRyeRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiAB",
  158. "KAc6AjgBGjgKFk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgG",
  159. "Eg0KBXZhbHVlGAIgASgGOgI4ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50",
  160. "cnkSCwoDa2V5GAEgASgPEg0KBXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4",
  161. "ZWQ2NFNmaXhlZDY0RW50cnkSCwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQ",
  162. "OgI4ARo0ChJNYXBJbnQzMkZsb2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZh",
  163. "bHVlGAIgASgCOgI4ARo1ChNNYXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgB",
  164. "IAEoBRINCgV2YWx1ZRgCIAEoAToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRIL",
  165. "CgNrZXkYASABKAgSDQoFdmFsdWUYAiABKAg6AjgBGjYKFE1hcFN0cmluZ1N0",
  166. "cmluZ0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaNQoT",
  167. "TWFwU3RyaW5nQnl0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiAB",
  168. "KAw6AjgBGmYKG01hcFN0cmluZ05lc3RlZE1lc3NhZ2VFbnRyeRILCgNrZXkY",
  169. "ASABKAkSNgoFdmFsdWUYAiABKAsyJy5jb25mb3JtYW5jZS5UZXN0QWxsVHlw",
  170. "ZXMuTmVzdGVkTWVzc2FnZToCOAEaWwocTWFwU3RyaW5nRm9yZWlnbk1lc3Nh",
  171. "Z2VFbnRyeRILCgNrZXkYASABKAkSKgoFdmFsdWUYAiABKAsyGy5jb25mb3Jt",
  172. "YW5jZS5Gb3JlaWduTWVzc2FnZToCOAEaYAoYTWFwU3RyaW5nTmVzdGVkRW51",
  173. "bUVudHJ5EgsKA2tleRgBIAEoCRIzCgV2YWx1ZRgCIAEoDjIkLmNvbmZvcm1h",
  174. "bmNlLlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOgI4ARpVChlNYXBTdHJpbmdG",
  175. "b3JlaWduRW51bUVudHJ5EgsKA2tleRgBIAEoCRInCgV2YWx1ZRgCIAEoDjIY",
  176. "LmNvbmZvcm1hbmNlLkZvcmVpZ25FbnVtOgI4ASI5CgpOZXN0ZWRFbnVtEgcK",
  177. "A0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BQg0K",
  178. "C29uZW9mX2ZpZWxkIhsKDkZvcmVpZ25NZXNzYWdlEgkKAWMYASABKAUqNQoK",
  179. "V2lyZUZvcm1hdBIPCgtVTlNQRUNJRklFRBAAEgwKCFBST1RPQlVGEAESCAoE",
  180. "SlNPThACKkAKC0ZvcmVpZ25FbnVtEg8KC0ZPUkVJR05fRk9PEAASDwoLRk9S",
  181. "RUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhACQiEKH2NvbS5nb29nbGUucHJv",
  182. "dG9idWYuY29uZm9ybWFuY2ViBnByb3RvMw=="));
  183. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  184. new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
  185. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Conformance.WireFormat), typeof(global::Conformance.ForeignEnum), }, new pbr::GeneratedClrTypeInfo[] {
  186. new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceRequest), global::Conformance.ConformanceRequest.Parser, new[]{ "ProtobufPayload", "JsonPayload", "RequestedOutputFormat" }, new[]{ "Payload" }, null, null),
  187. new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceResponse), global::Conformance.ConformanceResponse.Parser, new[]{ "ParseError", "SerializeError", "RuntimeError", "ProtobufPayload", "JsonPayload", "Skipped" }, new[]{ "Result" }, null, null),
  188. new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.TestAllTypes), global::Conformance.TestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OptionalBoolWrapper", "OptionalInt32Wrapper", "OptionalInt64Wrapper", "OptionalUint32Wrapper", "OptionalUint64Wrapper", "OptionalFloatWrapper", "OptionalDoubleWrapper", "OptionalStringWrapper", "OptionalBytesWrapper", "RepeatedBoolWrapper", "RepeatedInt32Wrapper", "RepeatedInt64Wrapper", "RepeatedUint32Wrapper", "RepeatedUint64Wrapper", "RepeatedFloatWrapper", "RepeatedDoubleWrapper", "RepeatedStringWrapper", "RepeatedBytesWrapper", "OptionalDuration", "OptionalTimestamp", "OptionalFieldMask", "OptionalStruct", "OptionalAny", "OptionalValue", "RepeatedDuration", "RepeatedTimestamp", "RepeatedFieldmask", "RepeatedStruct", "RepeatedAny", "RepeatedValue", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12" }, new[]{ "OneofField" }, new[]{ typeof(global::Conformance.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.TestAllTypes.Types.NestedMessage), global::Conformance.TestAllTypes.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null),
  189. null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
  190. new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ForeignMessage), global::Conformance.ForeignMessage.Parser, new[]{ "C" }, null, null, null)
  191. }));
  192. }
  193. #endregion
  194. }
  195. #region Enums
  196. public enum WireFormat {
  197. [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
  198. [pbr::OriginalName("PROTOBUF")] Protobuf = 1,
  199. [pbr::OriginalName("JSON")] Json = 2,
  200. }
  201. public enum ForeignEnum {
  202. [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0,
  203. [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1,
  204. [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2,
  205. }
  206. #endregion
  207. #region Messages
  208. /// <summary>
  209. /// Represents a single test case's input. The testee should:
  210. ///
  211. /// 1. parse this proto (which should always succeed)
  212. /// 2. parse the protobuf or JSON payload in "payload" (which may fail)
  213. /// 3. if the parse succeeded, serialize the message in the requested format.
  214. /// </summary>
  215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  216. public sealed partial class ConformanceRequest : pb::IMessage<ConformanceRequest> {
  217. private static readonly pb::MessageParser<ConformanceRequest> _parser = new pb::MessageParser<ConformanceRequest>(() => new ConformanceRequest());
  218. public static pb::MessageParser<ConformanceRequest> Parser { get { return _parser; } }
  219. public static pbr::MessageDescriptor Descriptor {
  220. get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[0]; }
  221. }
  222. pbr::MessageDescriptor pb::IMessage.Descriptor {
  223. get { return Descriptor; }
  224. }
  225. public ConformanceRequest() {
  226. OnConstruction();
  227. }
  228. partial void OnConstruction();
  229. public ConformanceRequest(ConformanceRequest other) : this() {
  230. requestedOutputFormat_ = other.requestedOutputFormat_;
  231. switch (other.PayloadCase) {
  232. case PayloadOneofCase.ProtobufPayload:
  233. ProtobufPayload = other.ProtobufPayload;
  234. break;
  235. case PayloadOneofCase.JsonPayload:
  236. JsonPayload = other.JsonPayload;
  237. break;
  238. }
  239. }
  240. public ConformanceRequest Clone() {
  241. return new ConformanceRequest(this);
  242. }
  243. /// <summary>Field number for the "protobuf_payload" field.</summary>
  244. public const int ProtobufPayloadFieldNumber = 1;
  245. public pb::ByteString ProtobufPayload {
  246. get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
  247. set {
  248. payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  249. payloadCase_ = PayloadOneofCase.ProtobufPayload;
  250. }
  251. }
  252. /// <summary>Field number for the "json_payload" field.</summary>
  253. public const int JsonPayloadFieldNumber = 2;
  254. public string JsonPayload {
  255. get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
  256. set {
  257. payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  258. payloadCase_ = PayloadOneofCase.JsonPayload;
  259. }
  260. }
  261. /// <summary>Field number for the "requested_output_format" field.</summary>
  262. public const int RequestedOutputFormatFieldNumber = 3;
  263. private global::Conformance.WireFormat requestedOutputFormat_ = 0;
  264. /// <summary>
  265. /// Which format should the testee serialize its message to?
  266. /// </summary>
  267. public global::Conformance.WireFormat RequestedOutputFormat {
  268. get { return requestedOutputFormat_; }
  269. set {
  270. requestedOutputFormat_ = value;
  271. }
  272. }
  273. private object payload_;
  274. /// <summary>Enum of possible cases for the "payload" oneof.</summary>
  275. public enum PayloadOneofCase {
  276. None = 0,
  277. ProtobufPayload = 1,
  278. JsonPayload = 2,
  279. }
  280. private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
  281. public PayloadOneofCase PayloadCase {
  282. get { return payloadCase_; }
  283. }
  284. public void ClearPayload() {
  285. payloadCase_ = PayloadOneofCase.None;
  286. payload_ = null;
  287. }
  288. public override bool Equals(object other) {
  289. return Equals(other as ConformanceRequest);
  290. }
  291. public bool Equals(ConformanceRequest other) {
  292. if (ReferenceEquals(other, null)) {
  293. return false;
  294. }
  295. if (ReferenceEquals(other, this)) {
  296. return true;
  297. }
  298. if (ProtobufPayload != other.ProtobufPayload) return false;
  299. if (JsonPayload != other.JsonPayload) return false;
  300. if (RequestedOutputFormat != other.RequestedOutputFormat) return false;
  301. if (PayloadCase != other.PayloadCase) return false;
  302. return true;
  303. }
  304. public override int GetHashCode() {
  305. int hash = 1;
  306. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
  307. if (payloadCase_ == PayloadOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
  308. if (RequestedOutputFormat != 0) hash ^= RequestedOutputFormat.GetHashCode();
  309. hash ^= (int) payloadCase_;
  310. return hash;
  311. }
  312. public override string ToString() {
  313. return pb::JsonFormatter.ToDiagnosticString(this);
  314. }
  315. public void WriteTo(pb::CodedOutputStream output) {
  316. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
  317. output.WriteRawTag(10);
  318. output.WriteBytes(ProtobufPayload);
  319. }
  320. if (payloadCase_ == PayloadOneofCase.JsonPayload) {
  321. output.WriteRawTag(18);
  322. output.WriteString(JsonPayload);
  323. }
  324. if (RequestedOutputFormat != 0) {
  325. output.WriteRawTag(24);
  326. output.WriteEnum((int) RequestedOutputFormat);
  327. }
  328. }
  329. public int CalculateSize() {
  330. int size = 0;
  331. if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
  332. size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
  333. }
  334. if (payloadCase_ == PayloadOneofCase.JsonPayload) {
  335. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
  336. }
  337. if (RequestedOutputFormat != 0) {
  338. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOutputFormat);
  339. }
  340. return size;
  341. }
  342. public void MergeFrom(ConformanceRequest other) {
  343. if (other == null) {
  344. return;
  345. }
  346. if (other.RequestedOutputFormat != 0) {
  347. RequestedOutputFormat = other.RequestedOutputFormat;
  348. }
  349. switch (other.PayloadCase) {
  350. case PayloadOneofCase.ProtobufPayload:
  351. ProtobufPayload = other.ProtobufPayload;
  352. break;
  353. case PayloadOneofCase.JsonPayload:
  354. JsonPayload = other.JsonPayload;
  355. break;
  356. }
  357. }
  358. public void MergeFrom(pb::CodedInputStream input) {
  359. uint tag;
  360. while ((tag = input.ReadTag()) != 0) {
  361. switch(tag) {
  362. default:
  363. input.SkipLastField();
  364. break;
  365. case 10: {
  366. ProtobufPayload = input.ReadBytes();
  367. break;
  368. }
  369. case 18: {
  370. JsonPayload = input.ReadString();
  371. break;
  372. }
  373. case 24: {
  374. requestedOutputFormat_ = (global::Conformance.WireFormat) input.ReadEnum();
  375. break;
  376. }
  377. }
  378. }
  379. }
  380. }
  381. /// <summary>
  382. /// Represents a single test case's output.
  383. /// </summary>
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. public sealed partial class ConformanceResponse : pb::IMessage<ConformanceResponse> {
  386. private static readonly pb::MessageParser<ConformanceResponse> _parser = new pb::MessageParser<ConformanceResponse>(() => new ConformanceResponse());
  387. public static pb::MessageParser<ConformanceResponse> Parser { get { return _parser; } }
  388. public static pbr::MessageDescriptor Descriptor {
  389. get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[1]; }
  390. }
  391. pbr::MessageDescriptor pb::IMessage.Descriptor {
  392. get { return Descriptor; }
  393. }
  394. public ConformanceResponse() {
  395. OnConstruction();
  396. }
  397. partial void OnConstruction();
  398. public ConformanceResponse(ConformanceResponse other) : this() {
  399. switch (other.ResultCase) {
  400. case ResultOneofCase.ParseError:
  401. ParseError = other.ParseError;
  402. break;
  403. case ResultOneofCase.SerializeError:
  404. SerializeError = other.SerializeError;
  405. break;
  406. case ResultOneofCase.RuntimeError:
  407. RuntimeError = other.RuntimeError;
  408. break;
  409. case ResultOneofCase.ProtobufPayload:
  410. ProtobufPayload = other.ProtobufPayload;
  411. break;
  412. case ResultOneofCase.JsonPayload:
  413. JsonPayload = other.JsonPayload;
  414. break;
  415. case ResultOneofCase.Skipped:
  416. Skipped = other.Skipped;
  417. break;
  418. }
  419. }
  420. public ConformanceResponse Clone() {
  421. return new ConformanceResponse(this);
  422. }
  423. /// <summary>Field number for the "parse_error" field.</summary>
  424. public const int ParseErrorFieldNumber = 1;
  425. /// <summary>
  426. /// This string should be set to indicate parsing failed. The string can
  427. /// provide more information about the parse error if it is available.
  428. ///
  429. /// Setting this string does not necessarily mean the testee failed the
  430. /// test. Some of the test cases are intentionally invalid input.
  431. /// </summary>
  432. public string ParseError {
  433. get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
  434. set {
  435. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  436. resultCase_ = ResultOneofCase.ParseError;
  437. }
  438. }
  439. /// <summary>Field number for the "serialize_error" field.</summary>
  440. public const int SerializeErrorFieldNumber = 6;
  441. /// <summary>
  442. /// If the input was successfully parsed but errors occurred when
  443. /// serializing it to the requested output format, set the error message in
  444. /// this field.
  445. /// </summary>
  446. public string SerializeError {
  447. get { return resultCase_ == ResultOneofCase.SerializeError ? (string) result_ : ""; }
  448. set {
  449. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  450. resultCase_ = ResultOneofCase.SerializeError;
  451. }
  452. }
  453. /// <summary>Field number for the "runtime_error" field.</summary>
  454. public const int RuntimeErrorFieldNumber = 2;
  455. /// <summary>
  456. /// This should be set if some other error occurred. This will always
  457. /// indicate that the test failed. The string can provide more information
  458. /// about the failure.
  459. /// </summary>
  460. public string RuntimeError {
  461. get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
  462. set {
  463. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  464. resultCase_ = ResultOneofCase.RuntimeError;
  465. }
  466. }
  467. /// <summary>Field number for the "protobuf_payload" field.</summary>
  468. public const int ProtobufPayloadFieldNumber = 3;
  469. /// <summary>
  470. /// If the input was successfully parsed and the requested output was
  471. /// protobuf, serialize it to protobuf and set it in this field.
  472. /// </summary>
  473. public pb::ByteString ProtobufPayload {
  474. get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
  475. set {
  476. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  477. resultCase_ = ResultOneofCase.ProtobufPayload;
  478. }
  479. }
  480. /// <summary>Field number for the "json_payload" field.</summary>
  481. public const int JsonPayloadFieldNumber = 4;
  482. /// <summary>
  483. /// If the input was successfully parsed and the requested output was JSON,
  484. /// serialize to JSON and set it in this field.
  485. /// </summary>
  486. public string JsonPayload {
  487. get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
  488. set {
  489. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  490. resultCase_ = ResultOneofCase.JsonPayload;
  491. }
  492. }
  493. /// <summary>Field number for the "skipped" field.</summary>
  494. public const int SkippedFieldNumber = 5;
  495. /// <summary>
  496. /// For when the testee skipped the test, likely because a certain feature
  497. /// wasn't supported, like JSON input/output.
  498. /// </summary>
  499. public string Skipped {
  500. get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
  501. set {
  502. result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  503. resultCase_ = ResultOneofCase.Skipped;
  504. }
  505. }
  506. private object result_;
  507. /// <summary>Enum of possible cases for the "result" oneof.</summary>
  508. public enum ResultOneofCase {
  509. None = 0,
  510. ParseError = 1,
  511. SerializeError = 6,
  512. RuntimeError = 2,
  513. ProtobufPayload = 3,
  514. JsonPayload = 4,
  515. Skipped = 5,
  516. }
  517. private ResultOneofCase resultCase_ = ResultOneofCase.None;
  518. public ResultOneofCase ResultCase {
  519. get { return resultCase_; }
  520. }
  521. public void ClearResult() {
  522. resultCase_ = ResultOneofCase.None;
  523. result_ = null;
  524. }
  525. public override bool Equals(object other) {
  526. return Equals(other as ConformanceResponse);
  527. }
  528. public bool Equals(ConformanceResponse other) {
  529. if (ReferenceEquals(other, null)) {
  530. return false;
  531. }
  532. if (ReferenceEquals(other, this)) {
  533. return true;
  534. }
  535. if (ParseError != other.ParseError) return false;
  536. if (SerializeError != other.SerializeError) return false;
  537. if (RuntimeError != other.RuntimeError) return false;
  538. if (ProtobufPayload != other.ProtobufPayload) return false;
  539. if (JsonPayload != other.JsonPayload) return false;
  540. if (Skipped != other.Skipped) return false;
  541. if (ResultCase != other.ResultCase) return false;
  542. return true;
  543. }
  544. public override int GetHashCode() {
  545. int hash = 1;
  546. if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode();
  547. if (resultCase_ == ResultOneofCase.SerializeError) hash ^= SerializeError.GetHashCode();
  548. if (resultCase_ == ResultOneofCase.RuntimeError) hash ^= RuntimeError.GetHashCode();
  549. if (resultCase_ == ResultOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
  550. if (resultCase_ == ResultOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
  551. if (resultCase_ == ResultOneofCase.Skipped) hash ^= Skipped.GetHashCode();
  552. hash ^= (int) resultCase_;
  553. return hash;
  554. }
  555. public override string ToString() {
  556. return pb::JsonFormatter.ToDiagnosticString(this);
  557. }
  558. public void WriteTo(pb::CodedOutputStream output) {
  559. if (resultCase_ == ResultOneofCase.ParseError) {
  560. output.WriteRawTag(10);
  561. output.WriteString(ParseError);
  562. }
  563. if (resultCase_ == ResultOneofCase.RuntimeError) {
  564. output.WriteRawTag(18);
  565. output.WriteString(RuntimeError);
  566. }
  567. if (resultCase_ == ResultOneofCase.ProtobufPayload) {
  568. output.WriteRawTag(26);
  569. output.WriteBytes(ProtobufPayload);
  570. }
  571. if (resultCase_ == ResultOneofCase.JsonPayload) {
  572. output.WriteRawTag(34);
  573. output.WriteString(JsonPayload);
  574. }
  575. if (resultCase_ == ResultOneofCase.Skipped) {
  576. output.WriteRawTag(42);
  577. output.WriteString(Skipped);
  578. }
  579. if (resultCase_ == ResultOneofCase.SerializeError) {
  580. output.WriteRawTag(50);
  581. output.WriteString(SerializeError);
  582. }
  583. }
  584. public int CalculateSize() {
  585. int size = 0;
  586. if (resultCase_ == ResultOneofCase.ParseError) {
  587. size += 1 + pb::CodedOutputStream.ComputeStringSize(ParseError);
  588. }
  589. if (resultCase_ == ResultOneofCase.SerializeError) {
  590. size += 1 + pb::CodedOutputStream.ComputeStringSize(SerializeError);
  591. }
  592. if (resultCase_ == ResultOneofCase.RuntimeError) {
  593. size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeError);
  594. }
  595. if (resultCase_ == ResultOneofCase.ProtobufPayload) {
  596. size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
  597. }
  598. if (resultCase_ == ResultOneofCase.JsonPayload) {
  599. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
  600. }
  601. if (resultCase_ == ResultOneofCase.Skipped) {
  602. size += 1 + pb::CodedOutputStream.ComputeStringSize(Skipped);
  603. }
  604. return size;
  605. }
  606. public void MergeFrom(ConformanceResponse other) {
  607. if (other == null) {
  608. return;
  609. }
  610. switch (other.ResultCase) {
  611. case ResultOneofCase.ParseError:
  612. ParseError = other.ParseError;
  613. break;
  614. case ResultOneofCase.SerializeError:
  615. SerializeError = other.SerializeError;
  616. break;
  617. case ResultOneofCase.RuntimeError:
  618. RuntimeError = other.RuntimeError;
  619. break;
  620. case ResultOneofCase.ProtobufPayload:
  621. ProtobufPayload = other.ProtobufPayload;
  622. break;
  623. case ResultOneofCase.JsonPayload:
  624. JsonPayload = other.JsonPayload;
  625. break;
  626. case ResultOneofCase.Skipped:
  627. Skipped = other.Skipped;
  628. break;
  629. }
  630. }
  631. public void MergeFrom(pb::CodedInputStream input) {
  632. uint tag;
  633. while ((tag = input.ReadTag()) != 0) {
  634. switch(tag) {
  635. default:
  636. input.SkipLastField();
  637. break;
  638. case 10: {
  639. ParseError = input.ReadString();
  640. break;
  641. }
  642. case 18: {
  643. RuntimeError = input.ReadString();
  644. break;
  645. }
  646. case 26: {
  647. ProtobufPayload = input.ReadBytes();
  648. break;
  649. }
  650. case 34: {
  651. JsonPayload = input.ReadString();
  652. break;
  653. }
  654. case 42: {
  655. Skipped = input.ReadString();
  656. break;
  657. }
  658. case 50: {
  659. SerializeError = input.ReadString();
  660. break;
  661. }
  662. }
  663. }
  664. }
  665. }
  666. /// <summary>
  667. /// This proto includes every type of field in both singular and repeated
  668. /// forms.
  669. /// </summary>
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
  672. private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
  673. public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
  674. public static pbr::MessageDescriptor Descriptor {
  675. get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[2]; }
  676. }
  677. pbr::MessageDescriptor pb::IMessage.Descriptor {
  678. get { return Descriptor; }
  679. }
  680. public TestAllTypes() {
  681. OnConstruction();
  682. }
  683. partial void OnConstruction();
  684. public TestAllTypes(TestAllTypes other) : this() {
  685. optionalInt32_ = other.optionalInt32_;
  686. optionalInt64_ = other.optionalInt64_;
  687. optionalUint32_ = other.optionalUint32_;
  688. optionalUint64_ = other.optionalUint64_;
  689. optionalSint32_ = other.optionalSint32_;
  690. optionalSint64_ = other.optionalSint64_;
  691. optionalFixed32_ = other.optionalFixed32_;
  692. optionalFixed64_ = other.optionalFixed64_;
  693. optionalSfixed32_ = other.optionalSfixed32_;
  694. optionalSfixed64_ = other.optionalSfixed64_;
  695. optionalFloat_ = other.optionalFloat_;
  696. optionalDouble_ = other.optionalDouble_;
  697. optionalBool_ = other.optionalBool_;
  698. optionalString_ = other.optionalString_;
  699. optionalBytes_ = other.optionalBytes_;
  700. OptionalNestedMessage = other.optionalNestedMessage_ != null ? other.OptionalNestedMessage.Clone() : null;
  701. OptionalForeignMessage = other.optionalForeignMessage_ != null ? other.OptionalForeignMessage.Clone() : null;
  702. optionalNestedEnum_ = other.optionalNestedEnum_;
  703. optionalForeignEnum_ = other.optionalForeignEnum_;
  704. optionalStringPiece_ = other.optionalStringPiece_;
  705. optionalCord_ = other.optionalCord_;
  706. RecursiveMessage = other.recursiveMessage_ != null ? other.RecursiveMessage.Clone() : null;
  707. repeatedInt32_ = other.repeatedInt32_.Clone();
  708. repeatedInt64_ = other.repeatedInt64_.Clone();
  709. repeatedUint32_ = other.repeatedUint32_.Clone();
  710. repeatedUint64_ = other.repeatedUint64_.Clone();
  711. repeatedSint32_ = other.repeatedSint32_.Clone();
  712. repeatedSint64_ = other.repeatedSint64_.Clone();
  713. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  714. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  715. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  716. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  717. repeatedFloat_ = other.repeatedFloat_.Clone();
  718. repeatedDouble_ = other.repeatedDouble_.Clone();
  719. repeatedBool_ = other.repeatedBool_.Clone();
  720. repeatedString_ = other.repeatedString_.Clone();
  721. repeatedBytes_ = other.repeatedBytes_.Clone();
  722. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  723. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  724. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  725. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  726. repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
  727. repeatedCord_ = other.repeatedCord_.Clone();
  728. mapInt32Int32_ = other.mapInt32Int32_.Clone();
  729. mapInt64Int64_ = other.mapInt64Int64_.Clone();
  730. mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
  731. mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
  732. mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
  733. mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
  734. mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
  735. mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
  736. mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
  737. mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
  738. mapInt32Float_ = other.mapInt32Float_.Clone();
  739. mapInt32Double_ = other.mapInt32Double_.Clone();
  740. mapBoolBool_ = other.mapBoolBool_.Clone();
  741. mapStringString_ = other.mapStringString_.Clone();
  742. mapStringBytes_ = other.mapStringBytes_.Clone();
  743. mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
  744. mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
  745. mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
  746. mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
  747. OptionalBoolWrapper = other.OptionalBoolWrapper;
  748. OptionalInt32Wrapper = other.OptionalInt32Wrapper;
  749. OptionalInt64Wrapper = other.OptionalInt64Wrapper;
  750. OptionalUint32Wrapper = other.OptionalUint32Wrapper;
  751. OptionalUint64Wrapper = other.OptionalUint64Wrapper;
  752. OptionalFloatWrapper = other.OptionalFloatWrapper;
  753. OptionalDoubleWrapper = other.OptionalDoubleWrapper;
  754. OptionalStringWrapper = other.OptionalStringWrapper;
  755. OptionalBytesWrapper = other.OptionalBytesWrapper;
  756. repeatedBoolWrapper_ = other.repeatedBoolWrapper_.Clone();
  757. repeatedInt32Wrapper_ = other.repeatedInt32Wrapper_.Clone();
  758. repeatedInt64Wrapper_ = other.repeatedInt64Wrapper_.Clone();
  759. repeatedUint32Wrapper_ = other.repeatedUint32Wrapper_.Clone();
  760. repeatedUint64Wrapper_ = other.repeatedUint64Wrapper_.Clone();
  761. repeatedFloatWrapper_ = other.repeatedFloatWrapper_.Clone();
  762. repeatedDoubleWrapper_ = other.repeatedDoubleWrapper_.Clone();
  763. repeatedStringWrapper_ = other.repeatedStringWrapper_.Clone();
  764. repeatedBytesWrapper_ = other.repeatedBytesWrapper_.Clone();
  765. OptionalDuration = other.optionalDuration_ != null ? other.OptionalDuration.Clone() : null;
  766. OptionalTimestamp = other.optionalTimestamp_ != null ? other.OptionalTimestamp.Clone() : null;
  767. OptionalFieldMask = other.optionalFieldMask_ != null ? other.OptionalFieldMask.Clone() : null;
  768. OptionalStruct = other.optionalStruct_ != null ? other.OptionalStruct.Clone() : null;
  769. OptionalAny = other.optionalAny_ != null ? other.OptionalAny.Clone() : null;
  770. OptionalValue = other.optionalValue_ != null ? other.OptionalValue.Clone() : null;
  771. repeatedDuration_ = other.repeatedDuration_.Clone();
  772. repeatedTimestamp_ = other.repeatedTimestamp_.Clone();
  773. repeatedFieldmask_ = other.repeatedFieldmask_.Clone();
  774. repeatedStruct_ = other.repeatedStruct_.Clone();
  775. repeatedAny_ = other.repeatedAny_.Clone();
  776. repeatedValue_ = other.repeatedValue_.Clone();
  777. fieldname1_ = other.fieldname1_;
  778. fieldName2_ = other.fieldName2_;
  779. FieldName3_ = other.FieldName3_;
  780. fieldName4_ = other.fieldName4_;
  781. field0Name5_ = other.field0Name5_;
  782. field0Name6_ = other.field0Name6_;
  783. fieldName7_ = other.fieldName7_;
  784. fieldName8_ = other.fieldName8_;
  785. fieldName9_ = other.fieldName9_;
  786. fieldName10_ = other.fieldName10_;
  787. fIELDNAME11_ = other.fIELDNAME11_;
  788. fIELDName12_ = other.fIELDName12_;
  789. switch (other.OneofFieldCase) {
  790. case OneofFieldOneofCase.OneofUint32:
  791. OneofUint32 = other.OneofUint32;
  792. break;
  793. case OneofFieldOneofCase.OneofNestedMessage:
  794. OneofNestedMessage = other.OneofNestedMessage.Clone();
  795. break;
  796. case OneofFieldOneofCase.OneofString:
  797. OneofString = other.OneofString;
  798. break;
  799. case OneofFieldOneofCase.OneofBytes:
  800. OneofBytes = other.OneofBytes;
  801. break;
  802. }
  803. }
  804. public TestAllTypes Clone() {
  805. return new TestAllTypes(this);
  806. }
  807. /// <summary>Field number for the "optional_int32" field.</summary>
  808. public const int OptionalInt32FieldNumber = 1;
  809. private int optionalInt32_;
  810. /// <summary>
  811. /// Singular
  812. /// </summary>
  813. public int OptionalInt32 {
  814. get { return optionalInt32_; }
  815. set {
  816. optionalInt32_ = value;
  817. }
  818. }
  819. /// <summary>Field number for the "optional_int64" field.</summary>
  820. public const int OptionalInt64FieldNumber = 2;
  821. private long optionalInt64_;
  822. public long OptionalInt64 {
  823. get { return optionalInt64_; }
  824. set {
  825. optionalInt64_ = value;
  826. }
  827. }
  828. /// <summary>Field number for the "optional_uint32" field.</summary>
  829. public const int OptionalUint32FieldNumber = 3;
  830. private uint optionalUint32_;
  831. public uint OptionalUint32 {
  832. get { return optionalUint32_; }
  833. set {
  834. optionalUint32_ = value;
  835. }
  836. }
  837. /// <summary>Field number for the "optional_uint64" field.</summary>
  838. public const int OptionalUint64FieldNumber = 4;
  839. private ulong optionalUint64_;
  840. public ulong OptionalUint64 {
  841. get { return optionalUint64_; }
  842. set {
  843. optionalUint64_ = value;
  844. }
  845. }
  846. /// <summary>Field number for the "optional_sint32" field.</summary>
  847. public const int OptionalSint32FieldNumber = 5;
  848. private int optionalSint32_;
  849. public int OptionalSint32 {
  850. get { return optionalSint32_; }
  851. set {
  852. optionalSint32_ = value;
  853. }
  854. }
  855. /// <summary>Field number for the "optional_sint64" field.</summary>
  856. public const int OptionalSint64FieldNumber = 6;
  857. private long optionalSint64_;
  858. public long OptionalSint64 {
  859. get { return optionalSint64_; }
  860. set {
  861. optionalSint64_ = value;
  862. }
  863. }
  864. /// <summary>Field number for the "optional_fixed32" field.</summary>
  865. public const int OptionalFixed32FieldNumber = 7;
  866. private uint optionalFixed32_;
  867. public uint OptionalFixed32 {
  868. get { return optionalFixed32_; }
  869. set {
  870. optionalFixed32_ = value;
  871. }
  872. }
  873. /// <summary>Field number for the "optional_fixed64" field.</summary>
  874. public const int OptionalFixed64FieldNumber = 8;
  875. private ulong optionalFixed64_;
  876. public ulong OptionalFixed64 {
  877. get { return optionalFixed64_; }
  878. set {
  879. optionalFixed64_ = value;
  880. }
  881. }
  882. /// <summary>Field number for the "optional_sfixed32" field.</summary>
  883. public const int OptionalSfixed32FieldNumber = 9;
  884. private int optionalSfixed32_;
  885. public int OptionalSfixed32 {
  886. get { return optionalSfixed32_; }
  887. set {
  888. optionalSfixed32_ = value;
  889. }
  890. }
  891. /// <summary>Field number for the "optional_sfixed64" field.</summary>
  892. public const int OptionalSfixed64FieldNumber = 10;
  893. private long optionalSfixed64_;
  894. public long OptionalSfixed64 {
  895. get { return optionalSfixed64_; }
  896. set {
  897. optionalSfixed64_ = value;
  898. }
  899. }
  900. /// <summary>Field number for the "optional_float" field.</summary>
  901. public const int OptionalFloatFieldNumber = 11;
  902. private float optionalFloat_;
  903. public float OptionalFloat {
  904. get { return optionalFloat_; }
  905. set {
  906. optionalFloat_ = value;
  907. }
  908. }
  909. /// <summary>Field number for the "optional_double" field.</summary>
  910. public const int OptionalDoubleFieldNumber = 12;
  911. private double optionalDouble_;
  912. public double OptionalDouble {
  913. get { return optionalDouble_; }
  914. set {
  915. optionalDouble_ = value;
  916. }
  917. }
  918. /// <summary>Field number for the "optional_bool" field.</summary>
  919. public const int OptionalBoolFieldNumber = 13;
  920. private bool optionalBool_;
  921. public bool OptionalBool {
  922. get { return optionalBool_; }
  923. set {
  924. optionalBool_ = value;
  925. }
  926. }
  927. /// <summary>Field number for the "optional_string" field.</summary>
  928. public const int OptionalStringFieldNumber = 14;
  929. private string optionalString_ = "";
  930. public string OptionalString {
  931. get { return optionalString_; }
  932. set {
  933. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  934. }
  935. }
  936. /// <summary>Field number for the "optional_bytes" field.</summary>
  937. public const int OptionalBytesFieldNumber = 15;
  938. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  939. public pb::ByteString OptionalBytes {
  940. get { return optionalBytes_; }
  941. set {
  942. optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  943. }
  944. }
  945. /// <summary>Field number for the "optional_nested_message" field.</summary>
  946. public const int OptionalNestedMessageFieldNumber = 18;
  947. private global::Conformance.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
  948. public global::Conformance.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  949. get { return optionalNestedMessage_; }
  950. set {
  951. optionalNestedMessage_ = value;
  952. }
  953. }
  954. /// <summary>Field number for the "optional_foreign_message" field.</summary>
  955. public const int OptionalForeignMessageFieldNumber = 19;
  956. private global::Conformance.ForeignMessage optionalForeignMessage_;
  957. public global::Conformance.ForeignMessage OptionalForeignMessage {
  958. get { return optionalForeignMessage_; }
  959. set {
  960. optionalForeignMessage_ = value;
  961. }
  962. }
  963. /// <summary>Field number for the "optional_nested_enum" field.</summary>
  964. public const int OptionalNestedEnumFieldNumber = 21;
  965. private global::Conformance.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = 0;
  966. public global::Conformance.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  967. get { return optionalNestedEnum_; }
  968. set {
  969. optionalNestedEnum_ = value;
  970. }
  971. }
  972. /// <summary>Field number for the "optional_foreign_enum" field.</summary>
  973. public const int OptionalForeignEnumFieldNumber = 22;
  974. private global::Conformance.ForeignEnum optionalForeignEnum_ = 0;
  975. public global::Conformance.ForeignEnum OptionalForeignEnum {
  976. get { return optionalForeignEnum_; }
  977. set {
  978. optionalForeignEnum_ = value;
  979. }
  980. }
  981. /// <summary>Field number for the "optional_string_piece" field.</summary>
  982. public const int OptionalStringPieceFieldNumber = 24;
  983. private string optionalStringPiece_ = "";
  984. public string OptionalStringPiece {
  985. get { return optionalStringPiece_; }
  986. set {
  987. optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  988. }
  989. }
  990. /// <summary>Field number for the "optional_cord" field.</summary>
  991. public const int OptionalCordFieldNumber = 25;
  992. private string optionalCord_ = "";
  993. public string OptionalCord {
  994. get { return optionalCord_; }
  995. set {
  996. optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  997. }
  998. }
  999. /// <summary>Field number for the "recursive_message" field.</summary>
  1000. public const int RecursiveMessageFieldNumber = 27;
  1001. private global::Conformance.TestAllTypes recursiveMessage_;
  1002. public global::Conformance.TestAllTypes RecursiveMessage {
  1003. get { return recursiveMessage_; }
  1004. set {
  1005. recursiveMessage_ = value;
  1006. }
  1007. }
  1008. /// <summary>Field number for the "repeated_int32" field.</summary>
  1009. public const int RepeatedInt32FieldNumber = 31;
  1010. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  1011. = pb::FieldCodec.ForInt32(250);
  1012. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  1013. /// <summary>
  1014. /// Repeated
  1015. /// </summary>
  1016. public pbc::RepeatedField<int> RepeatedInt32 {
  1017. get { return repeatedInt32_; }
  1018. }
  1019. /// <summary>Field number for the "repeated_int64" field.</summary>
  1020. public const int RepeatedInt64FieldNumber = 32;
  1021. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  1022. = pb::FieldCodec.ForInt64(258);
  1023. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  1024. public pbc::RepeatedField<long> RepeatedInt64 {
  1025. get { return repeatedInt64_; }
  1026. }
  1027. /// <summary>Field number for the "repeated_uint32" field.</summary>
  1028. public const int RepeatedUint32FieldNumber = 33;
  1029. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  1030. = pb::FieldCodec.ForUInt32(266);
  1031. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  1032. public pbc::RepeatedField<uint> RepeatedUint32 {
  1033. get { return repeatedUint32_; }
  1034. }
  1035. /// <summary>Field number for the "repeated_uint64" field.</summary>
  1036. public const int RepeatedUint64FieldNumber = 34;
  1037. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  1038. = pb::FieldCodec.ForUInt64(274);
  1039. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  1040. public pbc::RepeatedField<ulong> RepeatedUint64 {
  1041. get { return repeatedUint64_; }
  1042. }
  1043. /// <summary>Field number for the "repeated_sint32" field.</summary>
  1044. public const int RepeatedSint32FieldNumber = 35;
  1045. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  1046. = pb::FieldCodec.ForSInt32(282);
  1047. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  1048. public pbc::RepeatedField<int> RepeatedSint32 {
  1049. get { return repeatedSint32_; }
  1050. }
  1051. /// <summary>Field number for the "repeated_sint64" field.</summary>
  1052. public const int RepeatedSint64FieldNumber = 36;
  1053. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  1054. = pb::FieldCodec.ForSInt64(290);
  1055. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  1056. public pbc::RepeatedField<long> RepeatedSint64 {
  1057. get { return repeatedSint64_; }
  1058. }
  1059. /// <summary>Field number for the "repeated_fixed32" field.</summary>
  1060. public const int RepeatedFixed32FieldNumber = 37;
  1061. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  1062. = pb::FieldCodec.ForFixed32(298);
  1063. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  1064. public pbc::RepeatedField<uint> RepeatedFixed32 {
  1065. get { return repeatedFixed32_; }
  1066. }
  1067. /// <summary>Field number for the "repeated_fixed64" field.</summary>
  1068. public const int RepeatedFixed64FieldNumber = 38;
  1069. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  1070. = pb::FieldCodec.ForFixed64(306);
  1071. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  1072. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  1073. get { return repeatedFixed64_; }
  1074. }
  1075. /// <summary>Field number for the "repeated_sfixed32" field.</summary>
  1076. public const int RepeatedSfixed32FieldNumber = 39;
  1077. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  1078. = pb::FieldCodec.ForSFixed32(314);
  1079. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  1080. public pbc::RepeatedField<int> RepeatedSfixed32 {
  1081. get { return repeatedSfixed32_; }
  1082. }
  1083. /// <summary>Field number for the "repeated_sfixed64" field.</summary>
  1084. public const int RepeatedSfixed64FieldNumber = 40;
  1085. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  1086. = pb::FieldCodec.ForSFixed64(322);
  1087. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  1088. public pbc::RepeatedField<long> RepeatedSfixed64 {
  1089. get { return repeatedSfixed64_; }
  1090. }
  1091. /// <summary>Field number for the "repeated_float" field.</summary>
  1092. public const int RepeatedFloatFieldNumber = 41;
  1093. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  1094. = pb::FieldCodec.ForFloat(330);
  1095. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  1096. public pbc::RepeatedField<float> RepeatedFloat {
  1097. get { return repeatedFloat_; }
  1098. }
  1099. /// <summary>Field number for the "repeated_double" field.</summary>
  1100. public const int RepeatedDoubleFieldNumber = 42;
  1101. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  1102. = pb::FieldCodec.ForDouble(338);
  1103. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  1104. public pbc::RepeatedField<double> RepeatedDouble {
  1105. get { return repeatedDouble_; }
  1106. }
  1107. /// <summary>Field number for the "repeated_bool" field.</summary>
  1108. public const int RepeatedBoolFieldNumber = 43;
  1109. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  1110. = pb::FieldCodec.ForBool(346);
  1111. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  1112. public pbc::RepeatedField<bool> RepeatedBool {
  1113. get { return repeatedBool_; }
  1114. }
  1115. /// <summary>Field number for the "repeated_string" field.</summary>
  1116. public const int RepeatedStringFieldNumber = 44;
  1117. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  1118. = pb::FieldCodec.ForString(354);
  1119. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  1120. public pbc::RepeatedField<string> RepeatedString {
  1121. get { return repeatedString_; }
  1122. }
  1123. /// <summary>Field number for the "repeated_bytes" field.</summary>
  1124. public const int RepeatedBytesFieldNumber = 45;
  1125. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  1126. = pb::FieldCodec.ForBytes(362);
  1127. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  1128. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  1129. get { return repeatedBytes_; }
  1130. }
  1131. /// <summary>Field number for the "repeated_nested_message" field.</summary>
  1132. public const int RepeatedNestedMessageFieldNumber = 48;
  1133. private static readonly pb::FieldCodec<global::Conformance.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  1134. = pb::FieldCodec.ForMessage(386, global::Conformance.TestAllTypes.Types.NestedMessage.Parser);
  1135. private readonly pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage>();
  1136. public pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
  1137. get { return repeatedNestedMessage_; }
  1138. }
  1139. /// <summary>Field number for the "repeated_foreign_message" field.</summary>
  1140. public const int RepeatedForeignMessageFieldNumber = 49;
  1141. private static readonly pb::FieldCodec<global::Conformance.ForeignMessage> _repeated_repeatedForeignMessage_codec
  1142. = pb::FieldCodec.ForMessage(394, global::Conformance.ForeignMessage.Parser);
  1143. private readonly pbc::RepeatedField<global::Conformance.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Conformance.ForeignMessage>();
  1144. public pbc::RepeatedField<global::Conformance.ForeignMessage> RepeatedForeignMessage {
  1145. get { return repeatedForeignMessage_; }
  1146. }
  1147. /// <summary>Field number for the "repeated_nested_enum" field.</summary>
  1148. public const int RepeatedNestedEnumFieldNumber = 51;
  1149. private static readonly pb::FieldCodec<global::Conformance.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  1150. = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x);
  1151. private readonly pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum>();
  1152. public pbc::RepeatedField<global::Conformance.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
  1153. get { return repeatedNestedEnum_; }
  1154. }
  1155. /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
  1156. public const int RepeatedForeignEnumFieldNumber = 52;
  1157. private static readonly pb::FieldCodec<global::Conformance.ForeignEnum> _repeated_repeatedForeignEnum_codec
  1158. = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Conformance.ForeignEnum) x);
  1159. private readonly pbc::RepeatedField<global::Conformance.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Conformance.ForeignEnum>();
  1160. public pbc::RepeatedField<global::Conformance.ForeignEnum> RepeatedForeignEnum {
  1161. get { return repeatedForeignEnum_; }
  1162. }
  1163. /// <summary>Field number for the "repeated_string_piece" field.</summary>
  1164. public const int RepeatedStringPieceFieldNumber = 54;
  1165. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
  1166. = pb::FieldCodec.ForString(434);
  1167. private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
  1168. public pbc::RepeatedField<string> RepeatedStringPiece {
  1169. get { return repeatedStringPiece_; }
  1170. }
  1171. /// <summary>Field number for the "repeated_cord" field.</summary>
  1172. public const int RepeatedCordFieldNumber = 55;
  1173. private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
  1174. = pb::FieldCodec.ForString(442);
  1175. private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
  1176. public pbc::RepeatedField<string> RepeatedCord {
  1177. get { return repeatedCord_; }
  1178. }
  1179. /// <summary>Field number for the "map_int32_int32" field.</summary>
  1180. public const int MapInt32Int32FieldNumber = 56;
  1181. private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
  1182. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 450);
  1183. private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
  1184. /// <summary>
  1185. /// Map
  1186. /// </summary>
  1187. public pbc::MapField<int, int> MapInt32Int32 {
  1188. get { return mapInt32Int32_; }
  1189. }
  1190. /// <summary>Field number for the "map_int64_int64" field.</summary>
  1191. public const int MapInt64Int64FieldNumber = 57;
  1192. private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
  1193. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 458);
  1194. private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
  1195. public pbc::MapField<long, long> MapInt64Int64 {
  1196. get { return mapInt64Int64_; }
  1197. }
  1198. /// <summary>Field number for the "map_uint32_uint32" field.</summary>
  1199. public const int MapUint32Uint32FieldNumber = 58;
  1200. private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
  1201. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 466);
  1202. private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
  1203. public pbc::MapField<uint, uint> MapUint32Uint32 {
  1204. get { return mapUint32Uint32_; }
  1205. }
  1206. /// <summary>Field number for the "map_uint64_uint64" field.</summary>
  1207. public const int MapUint64Uint64FieldNumber = 59;
  1208. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
  1209. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 474);
  1210. private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
  1211. public pbc::MapField<ulong, ulong> MapUint64Uint64 {
  1212. get { return mapUint64Uint64_; }
  1213. }
  1214. /// <summary>Field number for the "map_sint32_sint32" field.</summary>
  1215. public const int MapSint32Sint32FieldNumber = 60;
  1216. private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
  1217. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 482);
  1218. private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
  1219. public pbc::MapField<int, int> MapSint32Sint32 {
  1220. get { return mapSint32Sint32_; }
  1221. }
  1222. /// <summary>Field number for the "map_sint64_sint64" field.</summary>
  1223. public const int MapSint64Sint64FieldNumber = 61;
  1224. private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
  1225. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 490);
  1226. private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
  1227. public pbc::MapField<long, long> MapSint64Sint64 {
  1228. get { return mapSint64Sint64_; }
  1229. }
  1230. /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
  1231. public const int MapFixed32Fixed32FieldNumber = 62;
  1232. private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
  1233. = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 498);
  1234. private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
  1235. public pbc::MapField<uint, uint> MapFixed32Fixed32 {
  1236. get { return mapFixed32Fixed32_; }
  1237. }
  1238. /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
  1239. public const int MapFixed64Fixed64FieldNumber = 63;
  1240. private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
  1241. = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 506);
  1242. private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
  1243. public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
  1244. get { return mapFixed64Fixed64_; }
  1245. }
  1246. /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
  1247. public const int MapSfixed32Sfixed32FieldNumber = 64;
  1248. private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
  1249. = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 514);
  1250. private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
  1251. public pbc::MapField<int, int> MapSfixed32Sfixed32 {
  1252. get { return mapSfixed32Sfixed32_; }
  1253. }
  1254. /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
  1255. public const int MapSfixed64Sfixed64FieldNumber = 65;
  1256. private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
  1257. = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 522);
  1258. private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
  1259. public pbc::MapField<long, long> MapSfixed64Sfixed64 {
  1260. get { return mapSfixed64Sfixed64_; }
  1261. }
  1262. /// <summary>Field number for the "map_int32_float" field.</summary>
  1263. public const int MapInt32FloatFieldNumber = 66;
  1264. private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
  1265. = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 530);
  1266. private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
  1267. public pbc::MapField<int, float> MapInt32Float {
  1268. get { return mapInt32Float_; }
  1269. }
  1270. /// <summary>Field number for the "map_int32_double" field.</summary>
  1271. public const int MapInt32DoubleFieldNumber = 67;
  1272. private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
  1273. = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 538);
  1274. private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
  1275. public pbc::MapField<int, double> MapInt32Double {
  1276. get { return mapInt32Double_; }
  1277. }
  1278. /// <summary>Field number for the "map_bool_bool" field.</summary>
  1279. public const int MapBoolBoolFieldNumber = 68;
  1280. private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
  1281. = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 546);
  1282. private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
  1283. public pbc::MapField<bool, bool> MapBoolBool {
  1284. get { return mapBoolBool_; }
  1285. }
  1286. /// <summary>Field number for the "map_string_string" field.</summary>
  1287. public const int MapStringStringFieldNumber = 69;
  1288. private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
  1289. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 554);
  1290. private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
  1291. public pbc::MapField<string, string> MapStringString {
  1292. get { return mapStringString_; }
  1293. }
  1294. /// <summary>Field number for the "map_string_bytes" field.</summary>
  1295. public const int MapStringBytesFieldNumber = 70;
  1296. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec
  1297. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 562);
  1298. private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>();
  1299. public pbc::MapField<string, pb::ByteString> MapStringBytes {
  1300. get { return mapStringBytes_; }
  1301. }
  1302. /// <summary>Field number for the "map_string_nested_message" field.</summary>
  1303. public const int MapStringNestedMessageFieldNumber = 71;
  1304. private static readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec
  1305. = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.TestAllTypes.Types.NestedMessage.Parser), 570);
  1306. private readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage>();
  1307. public pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedMessage> MapStringNestedMessage {
  1308. get { return mapStringNestedMessage_; }
  1309. }
  1310. /// <summary>Field number for the "map_string_foreign_message" field.</summary>
  1311. public const int MapStringForeignMessageFieldNumber = 72;
  1312. private static readonly pbc::MapField<string, global::Conformance.ForeignMessage>.Codec _map_mapStringForeignMessage_codec
  1313. = new pbc::MapField<string, global::Conformance.ForeignMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.ForeignMessage.Parser), 578);
  1314. private readonly pbc::MapField<string, global::Conformance.ForeignMessage> mapStringForeignMessage_ = new pbc::MapField<string, global::Conformance.ForeignMessage>();
  1315. public pbc::MapField<string, global::Conformance.ForeignMessage> MapStringForeignMessage {
  1316. get { return mapStringForeignMessage_; }
  1317. }
  1318. /// <summary>Field number for the "map_string_nested_enum" field.</summary>
  1319. public const int MapStringNestedEnumFieldNumber = 73;
  1320. private static readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec
  1321. = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x), 586);
  1322. private readonly pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum>();
  1323. public pbc::MapField<string, global::Conformance.TestAllTypes.Types.NestedEnum> MapStringNestedEnum {
  1324. get { return mapStringNestedEnum_; }
  1325. }
  1326. /// <summary>Field number for the "map_string_foreign_enum" field.</summary>
  1327. public const int MapStringForeignEnumFieldNumber = 74;
  1328. private static readonly pbc::MapField<string, global::Conformance.ForeignEnum>.Codec _map_mapStringForeignEnum_codec
  1329. = new pbc::MapField<string, global::Conformance.ForeignEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.ForeignEnum) x), 594);
  1330. private readonly pbc::MapField<string, global::Conformance.ForeignEnum> mapStringForeignEnum_ = new pbc::MapField<string, global::Conformance.ForeignEnum>();
  1331. public pbc::MapField<string, global::Conformance.ForeignEnum> MapStringForeignEnum {
  1332. get { return mapStringForeignEnum_; }
  1333. }
  1334. /// <summary>Field number for the "oneof_uint32" field.</summary>
  1335. public const int OneofUint32FieldNumber = 111;
  1336. public uint OneofUint32 {
  1337. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
  1338. set {
  1339. oneofField_ = value;
  1340. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  1341. }
  1342. }
  1343. /// <summary>Field number for the "oneof_nested_message" field.</summary>
  1344. public const int OneofNestedMessageFieldNumber = 112;
  1345. public global::Conformance.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  1346. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Conformance.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
  1347. set {
  1348. oneofField_ = value;
  1349. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  1350. }
  1351. }
  1352. /// <summary>Field number for the "oneof_string" field.</summary>
  1353. public const int OneofStringFieldNumber = 113;
  1354. public string OneofString {
  1355. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
  1356. set {
  1357. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1358. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  1359. }
  1360. }
  1361. /// <summary>Field number for the "oneof_bytes" field.</summary>
  1362. public const int OneofBytesFieldNumber = 114;
  1363. public pb::ByteString OneofBytes {
  1364. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  1365. set {
  1366. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1367. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  1368. }
  1369. }
  1370. /// <summary>Field number for the "optional_bool_wrapper" field.</summary>
  1371. public const int OptionalBoolWrapperFieldNumber = 201;
  1372. private static readonly pb::FieldCodec<bool?> _single_optionalBoolWrapper_codec = pb::FieldCodec.ForStructWrapper<bool>(1610);
  1373. private bool? optionalBoolWrapper_;
  1374. /// <summary>
  1375. /// Well-known types
  1376. /// </summary>
  1377. public bool? OptionalBoolWrapper {
  1378. get { return optionalBoolWrapper_; }
  1379. set {
  1380. optionalBoolWrapper_ = value;
  1381. }
  1382. }
  1383. /// <summary>Field number for the "optional_int32_wrapper" field.</summary>
  1384. public const int OptionalInt32WrapperFieldNumber = 202;
  1385. private static readonly pb::FieldCodec<int?> _single_optionalInt32Wrapper_codec = pb::FieldCodec.ForStructWrapper<int>(1618);
  1386. private int? optionalInt32Wrapper_;
  1387. public int? OptionalInt32Wrapper {
  1388. get { return optionalInt32Wrapper_; }
  1389. set {
  1390. optionalInt32Wrapper_ = value;
  1391. }
  1392. }
  1393. /// <summary>Field number for the "optional_int64_wrapper" field.</summary>
  1394. public const int OptionalInt64WrapperFieldNumber = 203;
  1395. private static readonly pb::FieldCodec<long?> _single_optionalInt64Wrapper_codec = pb::FieldCodec.ForStructWrapper<long>(1626);
  1396. private long? optionalInt64Wrapper_;
  1397. public long? OptionalInt64Wrapper {
  1398. get { return optionalInt64Wrapper_; }
  1399. set {
  1400. optionalInt64Wrapper_ = value;
  1401. }
  1402. }
  1403. /// <summary>Field number for the "optional_uint32_wrapper" field.</summary>
  1404. public const int OptionalUint32WrapperFieldNumber = 204;
  1405. private static readonly pb::FieldCodec<uint?> _single_optionalUint32Wrapper_codec = pb::FieldCodec.ForStructWrapper<uint>(1634);
  1406. private uint? optionalUint32Wrapper_;
  1407. public uint? OptionalUint32Wrapper {
  1408. get { return optionalUint32Wrapper_; }
  1409. set {
  1410. optionalUint32Wrapper_ = value;
  1411. }
  1412. }
  1413. /// <summary>Field number for the "optional_uint64_wrapper" field.</summary>
  1414. public const int OptionalUint64WrapperFieldNumber = 205;
  1415. private static readonly pb::FieldCodec<ulong?> _single_optionalUint64Wrapper_codec = pb::FieldCodec.ForStructWrapper<ulong>(1642);
  1416. private ulong? optionalUint64Wrapper_;
  1417. public ulong? OptionalUint64Wrapper {
  1418. get { return optionalUint64Wrapper_; }
  1419. set {
  1420. optionalUint64Wrapper_ = value;
  1421. }
  1422. }
  1423. /// <summary>Field number for the "optional_float_wrapper" field.</summary>
  1424. public const int OptionalFloatWrapperFieldNumber = 206;
  1425. private static readonly pb::FieldCodec<float?> _single_optionalFloatWrapper_codec = pb::FieldCodec.ForStructWrapper<float>(1650);
  1426. private float? optionalFloatWrapper_;
  1427. public float? OptionalFloatWrapper {
  1428. get { return optionalFloatWrapper_; }
  1429. set {
  1430. optionalFloatWrapper_ = value;
  1431. }
  1432. }
  1433. /// <summary>Field number for the "optional_double_wrapper" field.</summary>
  1434. public const int OptionalDoubleWrapperFieldNumber = 207;
  1435. private static readonly pb::FieldCodec<double?> _single_optionalDoubleWrapper_codec = pb::FieldCodec.ForStructWrapper<double>(1658);
  1436. private double? optionalDoubleWrapper_;
  1437. public double? OptionalDoubleWrapper {
  1438. get { return optionalDoubleWrapper_; }
  1439. set {
  1440. optionalDoubleWrapper_ = value;
  1441. }
  1442. }
  1443. /// <summary>Field number for the "optional_string_wrapper" field.</summary>
  1444. public const int OptionalStringWrapperFieldNumber = 208;
  1445. private static readonly pb::FieldCodec<string> _single_optionalStringWrapper_codec = pb::FieldCodec.ForClassWrapper<string>(1666);
  1446. private string optionalStringWrapper_;
  1447. public string OptionalStringWrapper {
  1448. get { return optionalStringWrapper_; }
  1449. set {
  1450. optionalStringWrapper_ = value;
  1451. }
  1452. }
  1453. /// <summary>Field number for the "optional_bytes_wrapper" field.</summary>
  1454. public const int OptionalBytesWrapperFieldNumber = 209;
  1455. private static readonly pb::FieldCodec<pb::ByteString> _single_optionalBytesWrapper_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(1674);
  1456. private pb::ByteString optionalBytesWrapper_;
  1457. public pb::ByteString OptionalBytesWrapper {
  1458. get { return optionalBytesWrapper_; }
  1459. set {
  1460. optionalBytesWrapper_ = value;
  1461. }
  1462. }
  1463. /// <summary>Field number for the "repeated_bool_wrapper" field.</summary>
  1464. public const int RepeatedBoolWrapperFieldNumber = 211;
  1465. private static readonly pb::FieldCodec<bool?> _repeated_repeatedBoolWrapper_codec
  1466. = pb::FieldCodec.ForStructWrapper<bool>(1690);
  1467. private readonly pbc::RepeatedField<bool?> repeatedBoolWrapper_ = new pbc::RepeatedField<bool?>();
  1468. public pbc::RepeatedField<bool?> RepeatedBoolWrapper {
  1469. get { return repeatedBoolWrapper_; }
  1470. }
  1471. /// <summary>Field number for the "repeated_int32_wrapper" field.</summary>
  1472. public const int RepeatedInt32WrapperFieldNumber = 212;
  1473. private static readonly pb::FieldCodec<int?> _repeated_repeatedInt32Wrapper_codec
  1474. = pb::FieldCodec.ForStructWrapper<int>(1698);
  1475. private readonly pbc::RepeatedField<int?> repeatedInt32Wrapper_ = new pbc::RepeatedField<int?>();
  1476. public pbc::RepeatedField<int?> RepeatedInt32Wrapper {
  1477. get { return repeatedInt32Wrapper_; }
  1478. }
  1479. /// <summary>Field number for the "repeated_int64_wrapper" field.</summary>
  1480. public const int RepeatedInt64WrapperFieldNumber = 213;
  1481. private static readonly pb::FieldCodec<long?> _repeated_repeatedInt64Wrapper_codec
  1482. = pb::FieldCodec.ForStructWrapper<long>(1706);
  1483. private readonly pbc::RepeatedField<long?> repeatedInt64Wrapper_ = new pbc::RepeatedField<long?>();
  1484. public pbc::RepeatedField<long?> RepeatedInt64Wrapper {
  1485. get { return repeatedInt64Wrapper_; }
  1486. }
  1487. /// <summary>Field number for the "repeated_uint32_wrapper" field.</summary>
  1488. public const int RepeatedUint32WrapperFieldNumber = 214;
  1489. private static readonly pb::FieldCodec<uint?> _repeated_repeatedUint32Wrapper_codec
  1490. = pb::FieldCodec.ForStructWrapper<uint>(1714);
  1491. private readonly pbc::RepeatedField<uint?> repeatedUint32Wrapper_ = new pbc::RepeatedField<uint?>();
  1492. public pbc::RepeatedField<uint?> RepeatedUint32Wrapper {
  1493. get { return repeatedUint32Wrapper_; }
  1494. }
  1495. /// <summary>Field number for the "repeated_uint64_wrapper" field.</summary>
  1496. public const int RepeatedUint64WrapperFieldNumber = 215;
  1497. private static readonly pb::FieldCodec<ulong?> _repeated_repeatedUint64Wrapper_codec
  1498. = pb::FieldCodec.ForStructWrapper<ulong>(1722);
  1499. private readonly pbc::RepeatedField<ulong?> repeatedUint64Wrapper_ = new pbc::RepeatedField<ulong?>();
  1500. public pbc::RepeatedField<ulong?> RepeatedUint64Wrapper {
  1501. get { return repeatedUint64Wrapper_; }
  1502. }
  1503. /// <summary>Field number for the "repeated_float_wrapper" field.</summary>
  1504. public const int RepeatedFloatWrapperFieldNumber = 216;
  1505. private static readonly pb::FieldCodec<float?> _repeated_repeatedFloatWrapper_codec
  1506. = pb::FieldCodec.ForStructWrapper<float>(1730);
  1507. private readonly pbc::RepeatedField<float?> repeatedFloatWrapper_ = new pbc::RepeatedField<float?>();
  1508. public pbc::RepeatedField<float?> RepeatedFloatWrapper {
  1509. get { return repeatedFloatWrapper_; }
  1510. }
  1511. /// <summary>Field number for the "repeated_double_wrapper" field.</summary>
  1512. public const int RepeatedDoubleWrapperFieldNumber = 217;
  1513. private static readonly pb::FieldCodec<double?> _repeated_repeatedDoubleWrapper_codec
  1514. = pb::FieldCodec.ForStructWrapper<double>(1738);
  1515. private readonly pbc::RepeatedField<double?> repeatedDoubleWrapper_ = new pbc::RepeatedField<double?>();
  1516. public pbc::RepeatedField<double?> RepeatedDoubleWrapper {
  1517. get { return repeatedDoubleWrapper_; }
  1518. }
  1519. /// <summary>Field number for the "repeated_string_wrapper" field.</summary>
  1520. public const int RepeatedStringWrapperFieldNumber = 218;
  1521. private static readonly pb::FieldCodec<string> _repeated_repeatedStringWrapper_codec
  1522. = pb::FieldCodec.ForClassWrapper<string>(1746);
  1523. private readonly pbc::RepeatedField<string> repeatedStringWrapper_ = new pbc::RepeatedField<string>();
  1524. public pbc::RepeatedField<string> RepeatedStringWrapper {
  1525. get { return repeatedStringWrapper_; }
  1526. }
  1527. /// <summary>Field number for the "repeated_bytes_wrapper" field.</summary>
  1528. public const int RepeatedBytesWrapperFieldNumber = 219;
  1529. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytesWrapper_codec
  1530. = pb::FieldCodec.ForClassWrapper<pb::ByteString>(1754);
  1531. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytesWrapper_ = new pbc::RepeatedField<pb::ByteString>();
  1532. public pbc::RepeatedField<pb::ByteString> RepeatedBytesWrapper {
  1533. get { return repeatedBytesWrapper_; }
  1534. }
  1535. /// <summary>Field number for the "optional_duration" field.</summary>
  1536. public const int OptionalDurationFieldNumber = 301;
  1537. private global::Google.Protobuf.WellKnownTypes.Duration optionalDuration_;
  1538. public global::Google.Protobuf.WellKnownTypes.Duration OptionalDuration {
  1539. get { return optionalDuration_; }
  1540. set {
  1541. optionalDuration_ = value;
  1542. }
  1543. }
  1544. /// <summary>Field number for the "optional_timestamp" field.</summary>
  1545. public const int OptionalTimestampFieldNumber = 302;
  1546. private global::Google.Protobuf.WellKnownTypes.Timestamp optionalTimestamp_;
  1547. public global::Google.Protobuf.WellKnownTypes.Timestamp OptionalTimestamp {
  1548. get { return optionalTimestamp_; }
  1549. set {
  1550. optionalTimestamp_ = value;
  1551. }
  1552. }
  1553. /// <summary>Field number for the "optional_field_mask" field.</summary>
  1554. public const int OptionalFieldMaskFieldNumber = 303;
  1555. private global::Google.Protobuf.WellKnownTypes.FieldMask optionalFieldMask_;
  1556. public global::Google.Protobuf.WellKnownTypes.FieldMask OptionalFieldMask {
  1557. get { return optionalFieldMask_; }
  1558. set {
  1559. optionalFieldMask_ = value;
  1560. }
  1561. }
  1562. /// <summary>Field number for the "optional_struct" field.</summary>
  1563. public const int OptionalStructFieldNumber = 304;
  1564. private global::Google.Protobuf.WellKnownTypes.Struct optionalStruct_;
  1565. public global::Google.Protobuf.WellKnownTypes.Struct OptionalStruct {
  1566. get { return optionalStruct_; }
  1567. set {
  1568. optionalStruct_ = value;
  1569. }
  1570. }
  1571. /// <summary>Field number for the "optional_any" field.</summary>
  1572. public const int OptionalAnyFieldNumber = 305;
  1573. private global::Google.Protobuf.WellKnownTypes.Any optionalAny_;
  1574. public global::Google.Protobuf.WellKnownTypes.Any OptionalAny {
  1575. get { return optionalAny_; }
  1576. set {
  1577. optionalAny_ = value;
  1578. }
  1579. }
  1580. /// <summary>Field number for the "optional_value" field.</summary>
  1581. public const int OptionalValueFieldNumber = 306;
  1582. private global::Google.Protobuf.WellKnownTypes.Value optionalValue_;
  1583. public global::Google.Protobuf.WellKnownTypes.Value OptionalValue {
  1584. get { return optionalValue_; }
  1585. set {
  1586. optionalValue_ = value;
  1587. }
  1588. }
  1589. /// <summary>Field number for the "repeated_duration" field.</summary>
  1590. public const int RepeatedDurationFieldNumber = 311;
  1591. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_repeatedDuration_codec
  1592. = pb::FieldCodec.ForMessage(2490, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
  1593. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> repeatedDuration_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
  1594. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> RepeatedDuration {
  1595. get { return repeatedDuration_; }
  1596. }
  1597. /// <summary>Field number for the "repeated_timestamp" field.</summary>
  1598. public const int RepeatedTimestampFieldNumber = 312;
  1599. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_repeatedTimestamp_codec
  1600. = pb::FieldCodec.ForMessage(2498, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
  1601. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> repeatedTimestamp_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
  1602. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> RepeatedTimestamp {
  1603. get { return repeatedTimestamp_; }
  1604. }
  1605. /// <summary>Field number for the "repeated_fieldmask" field.</summary>
  1606. public const int RepeatedFieldmaskFieldNumber = 313;
  1607. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_repeatedFieldmask_codec
  1608. = pb::FieldCodec.ForMessage(2506, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
  1609. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> repeatedFieldmask_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
  1610. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> RepeatedFieldmask {
  1611. get { return repeatedFieldmask_; }
  1612. }
  1613. /// <summary>Field number for the "repeated_struct" field.</summary>
  1614. public const int RepeatedStructFieldNumber = 324;
  1615. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_repeatedStruct_codec
  1616. = pb::FieldCodec.ForMessage(2594, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
  1617. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> repeatedStruct_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
  1618. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> RepeatedStruct {
  1619. get { return repeatedStruct_; }
  1620. }
  1621. /// <summary>Field number for the "repeated_any" field.</summary>
  1622. public const int RepeatedAnyFieldNumber = 315;
  1623. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_repeatedAny_codec
  1624. = pb::FieldCodec.ForMessage(2522, global::Google.Protobuf.WellKnownTypes.Any.Parser);
  1625. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> repeatedAny_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
  1626. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> RepeatedAny {
  1627. get { return repeatedAny_; }
  1628. }
  1629. /// <summary>Field number for the "repeated_value" field.</summary>
  1630. public const int RepeatedValueFieldNumber = 316;
  1631. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_repeatedValue_codec
  1632. = pb::FieldCodec.ForMessage(2530, global::Google.Protobuf.WellKnownTypes.Value.Parser);
  1633. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> repeatedValue_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>();
  1634. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> RepeatedValue {
  1635. get { return repeatedValue_; }
  1636. }
  1637. /// <summary>Field number for the "fieldname1" field.</summary>
  1638. public const int Fieldname1FieldNumber = 401;
  1639. private int fieldname1_;
  1640. /// <summary>
  1641. /// Test field-name-to-JSON-name convention.
  1642. /// </summary>
  1643. public int Fieldname1 {
  1644. get { return fieldname1_; }
  1645. set {
  1646. fieldname1_ = value;
  1647. }
  1648. }
  1649. /// <summary>Field number for the "field_name2" field.</summary>
  1650. public const int FieldName2FieldNumber = 402;
  1651. private int fieldName2_;
  1652. public int FieldName2 {
  1653. get { return fieldName2_; }
  1654. set {
  1655. fieldName2_ = value;
  1656. }
  1657. }
  1658. /// <summary>Field number for the "_field_name3" field.</summary>
  1659. public const int FieldName3FieldNumber = 403;
  1660. private int FieldName3_;
  1661. public int FieldName3 {
  1662. get { return FieldName3_; }
  1663. set {
  1664. FieldName3_ = value;
  1665. }
  1666. }
  1667. /// <summary>Field number for the "field__name4_" field.</summary>
  1668. public const int FieldName4FieldNumber = 404;
  1669. private int fieldName4_;
  1670. public int FieldName4 {
  1671. get { return fieldName4_; }
  1672. set {
  1673. fieldName4_ = value;
  1674. }
  1675. }
  1676. /// <summary>Field number for the "field0name5" field.</summary>
  1677. public const int Field0Name5FieldNumber = 405;
  1678. private int field0Name5_;
  1679. public int Field0Name5 {
  1680. get { return field0Name5_; }
  1681. set {
  1682. field0Name5_ = value;
  1683. }
  1684. }
  1685. /// <summary>Field number for the "field_0_name6" field.</summary>
  1686. public const int Field0Name6FieldNumber = 406;
  1687. private int field0Name6_;
  1688. public int Field0Name6 {
  1689. get { return field0Name6_; }
  1690. set {
  1691. field0Name6_ = value;
  1692. }
  1693. }
  1694. /// <summary>Field number for the "fieldName7" field.</summary>
  1695. public const int FieldName7FieldNumber = 407;
  1696. private int fieldName7_;
  1697. public int FieldName7 {
  1698. get { return fieldName7_; }
  1699. set {
  1700. fieldName7_ = value;
  1701. }
  1702. }
  1703. /// <summary>Field number for the "FieldName8" field.</summary>
  1704. public const int FieldName8FieldNumber = 408;
  1705. private int fieldName8_;
  1706. public int FieldName8 {
  1707. get { return fieldName8_; }
  1708. set {
  1709. fieldName8_ = value;
  1710. }
  1711. }
  1712. /// <summary>Field number for the "field_Name9" field.</summary>
  1713. public const int FieldName9FieldNumber = 409;
  1714. private int fieldName9_;
  1715. public int FieldName9 {
  1716. get { return fieldName9_; }
  1717. set {
  1718. fieldName9_ = value;
  1719. }
  1720. }
  1721. /// <summary>Field number for the "Field_Name10" field.</summary>
  1722. public const int FieldName10FieldNumber = 410;
  1723. private int fieldName10_;
  1724. public int FieldName10 {
  1725. get { return fieldName10_; }
  1726. set {
  1727. fieldName10_ = value;
  1728. }
  1729. }
  1730. /// <summary>Field number for the "FIELD_NAME11" field.</summary>
  1731. public const int FIELDNAME11FieldNumber = 411;
  1732. private int fIELDNAME11_;
  1733. public int FIELDNAME11 {
  1734. get { return fIELDNAME11_; }
  1735. set {
  1736. fIELDNAME11_ = value;
  1737. }
  1738. }
  1739. /// <summary>Field number for the "FIELD_name12" field.</summary>
  1740. public const int FIELDName12FieldNumber = 412;
  1741. private int fIELDName12_;
  1742. public int FIELDName12 {
  1743. get { return fIELDName12_; }
  1744. set {
  1745. fIELDName12_ = value;
  1746. }
  1747. }
  1748. private object oneofField_;
  1749. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  1750. public enum OneofFieldOneofCase {
  1751. None = 0,
  1752. OneofUint32 = 111,
  1753. OneofNestedMessage = 112,
  1754. OneofString = 113,
  1755. OneofBytes = 114,
  1756. }
  1757. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  1758. public OneofFieldOneofCase OneofFieldCase {
  1759. get { return oneofFieldCase_; }
  1760. }
  1761. public void ClearOneofField() {
  1762. oneofFieldCase_ = OneofFieldOneofCase.None;
  1763. oneofField_ = null;
  1764. }
  1765. public override bool Equals(object other) {
  1766. return Equals(other as TestAllTypes);
  1767. }
  1768. public bool Equals(TestAllTypes other) {
  1769. if (ReferenceEquals(other, null)) {
  1770. return false;
  1771. }
  1772. if (ReferenceEquals(other, this)) {
  1773. return true;
  1774. }
  1775. if (OptionalInt32 != other.OptionalInt32) return false;
  1776. if (OptionalInt64 != other.OptionalInt64) return false;
  1777. if (OptionalUint32 != other.OptionalUint32) return false;
  1778. if (OptionalUint64 != other.OptionalUint64) return false;
  1779. if (OptionalSint32 != other.OptionalSint32) return false;
  1780. if (OptionalSint64 != other.OptionalSint64) return false;
  1781. if (OptionalFixed32 != other.OptionalFixed32) return false;
  1782. if (OptionalFixed64 != other.OptionalFixed64) return false;
  1783. if (OptionalSfixed32 != other.OptionalSfixed32) return false;
  1784. if (OptionalSfixed64 != other.OptionalSfixed64) return false;
  1785. if (OptionalFloat != other.OptionalFloat) return false;
  1786. if (OptionalDouble != other.OptionalDouble) return false;
  1787. if (OptionalBool != other.OptionalBool) return false;
  1788. if (OptionalString != other.OptionalString) return false;
  1789. if (OptionalBytes != other.OptionalBytes) return false;
  1790. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  1791. if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
  1792. if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
  1793. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  1794. if (OptionalStringPiece != other.OptionalStringPiece) return false;
  1795. if (OptionalCord != other.OptionalCord) return false;
  1796. if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
  1797. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  1798. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  1799. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  1800. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  1801. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  1802. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  1803. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  1804. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  1805. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  1806. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  1807. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  1808. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  1809. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  1810. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  1811. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  1812. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  1813. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  1814. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  1815. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  1816. if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
  1817. if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
  1818. if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
  1819. if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
  1820. if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
  1821. if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
  1822. if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
  1823. if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
  1824. if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
  1825. if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
  1826. if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
  1827. if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
  1828. if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
  1829. if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
  1830. if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
  1831. if (!MapStringString.Equals(other.MapStringString)) return false;
  1832. if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
  1833. if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
  1834. if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
  1835. if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
  1836. if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
  1837. if (OneofUint32 != other.OneofUint32) return false;
  1838. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  1839. if (OneofString != other.OneofString) return false;
  1840. if (OneofBytes != other.OneofBytes) return false;
  1841. if (OptionalBoolWrapper != other.OptionalBoolWrapper) return false;
  1842. if (OptionalInt32Wrapper != other.OptionalInt32Wrapper) return false;
  1843. if (OptionalInt64Wrapper != other.OptionalInt64Wrapper) return false;
  1844. if (OptionalUint32Wrapper != other.OptionalUint32Wrapper) return false;
  1845. if (OptionalUint64Wrapper != other.OptionalUint64Wrapper) return false;
  1846. if (OptionalFloatWrapper != other.OptionalFloatWrapper) return false;
  1847. if (OptionalDoubleWrapper != other.OptionalDoubleWrapper) return false;
  1848. if (OptionalStringWrapper != other.OptionalStringWrapper) return false;
  1849. if (OptionalBytesWrapper != other.OptionalBytesWrapper) return false;
  1850. if(!repeatedBoolWrapper_.Equals(other.repeatedBoolWrapper_)) return false;
  1851. if(!repeatedInt32Wrapper_.Equals(other.repeatedInt32Wrapper_)) return false;
  1852. if(!repeatedInt64Wrapper_.Equals(other.repeatedInt64Wrapper_)) return false;
  1853. if(!repeatedUint32Wrapper_.Equals(other.repeatedUint32Wrapper_)) return false;
  1854. if(!repeatedUint64Wrapper_.Equals(other.repeatedUint64Wrapper_)) return false;
  1855. if(!repeatedFloatWrapper_.Equals(other.repeatedFloatWrapper_)) return false;
  1856. if(!repeatedDoubleWrapper_.Equals(other.repeatedDoubleWrapper_)) return false;
  1857. if(!repeatedStringWrapper_.Equals(other.repeatedStringWrapper_)) return false;
  1858. if(!repeatedBytesWrapper_.Equals(other.repeatedBytesWrapper_)) return false;
  1859. if (!object.Equals(OptionalDuration, other.OptionalDuration)) return false;
  1860. if (!object.Equals(OptionalTimestamp, other.OptionalTimestamp)) return false;
  1861. if (!object.Equals(OptionalFieldMask, other.OptionalFieldMask)) return false;
  1862. if (!object.Equals(OptionalStruct, other.OptionalStruct)) return false;
  1863. if (!object.Equals(OptionalAny, other.OptionalAny)) return false;
  1864. if (!object.Equals(OptionalValue, other.OptionalValue)) return false;
  1865. if(!repeatedDuration_.Equals(other.repeatedDuration_)) return false;
  1866. if(!repeatedTimestamp_.Equals(other.repeatedTimestamp_)) return false;
  1867. if(!repeatedFieldmask_.Equals(other.repeatedFieldmask_)) return false;
  1868. if(!repeatedStruct_.Equals(other.repeatedStruct_)) return false;
  1869. if(!repeatedAny_.Equals(other.repeatedAny_)) return false;
  1870. if(!repeatedValue_.Equals(other.repeatedValue_)) return false;
  1871. if (Fieldname1 != other.Fieldname1) return false;
  1872. if (FieldName2 != other.FieldName2) return false;
  1873. if (FieldName3 != other.FieldName3) return false;
  1874. if (FieldName4 != other.FieldName4) return false;
  1875. if (Field0Name5 != other.Field0Name5) return false;
  1876. if (Field0Name6 != other.Field0Name6) return false;
  1877. if (FieldName7 != other.FieldName7) return false;
  1878. if (FieldName8 != other.FieldName8) return false;
  1879. if (FieldName9 != other.FieldName9) return false;
  1880. if (FieldName10 != other.FieldName10) return false;
  1881. if (FIELDNAME11 != other.FIELDNAME11) return false;
  1882. if (FIELDName12 != other.FIELDName12) return false;
  1883. if (OneofFieldCase != other.OneofFieldCase) return false;
  1884. return true;
  1885. }
  1886. public override int GetHashCode() {
  1887. int hash = 1;
  1888. if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
  1889. if (OptionalInt64 != 0L) hash ^= OptionalInt64.GetHashCode();
  1890. if (OptionalUint32 != 0) hash ^= OptionalUint32.GetHashCode();
  1891. if (OptionalUint64 != 0UL) hash ^= OptionalUint64.GetHashCode();
  1892. if (OptionalSint32 != 0) hash ^= OptionalSint32.GetHashCode();
  1893. if (OptionalSint64 != 0L) hash ^= OptionalSint64.GetHashCode();
  1894. if (OptionalFixed32 != 0) hash ^= OptionalFixed32.GetHashCode();
  1895. if (OptionalFixed64 != 0UL) hash ^= OptionalFixed64.GetHashCode();
  1896. if (OptionalSfixed32 != 0) hash ^= OptionalSfixed32.GetHashCode();
  1897. if (OptionalSfixed64 != 0L) hash ^= OptionalSfixed64.GetHashCode();
  1898. if (OptionalFloat != 0F) hash ^= OptionalFloat.GetHashCode();
  1899. if (OptionalDouble != 0D) hash ^= OptionalDouble.GetHashCode();
  1900. if (OptionalBool != false) hash ^= OptionalBool.GetHashCode();
  1901. if (OptionalString.Length != 0) hash ^= OptionalString.GetHashCode();
  1902. if (OptionalBytes.Length != 0) hash ^= OptionalBytes.GetHashCode();
  1903. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  1904. if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
  1905. if (OptionalNestedEnum != 0) hash ^= OptionalNestedEnum.GetHashCode();
  1906. if (OptionalForeignEnum != 0) hash ^= OptionalForeignEnum.GetHashCode();
  1907. if (OptionalStringPiece.Length != 0) hash ^= OptionalStringPiece.GetHashCode();
  1908. if (OptionalCord.Length != 0) hash ^= OptionalCord.GetHashCode();
  1909. if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode();
  1910. hash ^= repeatedInt32_.GetHashCode();
  1911. hash ^= repeatedInt64_.GetHashCode();
  1912. hash ^= repeatedUint32_.GetHashCode();
  1913. hash ^= repeatedUint64_.GetHashCode();
  1914. hash ^= repeatedSint32_.GetHashCode();
  1915. hash ^= repeatedSint64_.GetHashCode();
  1916. hash ^= repeatedFixed32_.GetHashCode();
  1917. hash ^= repeatedFixed64_.GetHashCode();
  1918. hash ^= repeatedSfixed32_.GetHashCode();
  1919. hash ^= repeatedSfixed64_.GetHashCode();
  1920. hash ^= repeatedFloat_.GetHashCode();
  1921. hash ^= repeatedDouble_.GetHashCode();
  1922. hash ^= repeatedBool_.GetHashCode();
  1923. hash ^= repeatedString_.GetHashCode();
  1924. hash ^= repeatedBytes_.GetHashCode();
  1925. hash ^= repeatedNestedMessage_.GetHashCode();
  1926. hash ^= repeatedForeignMessage_.GetHashCode();
  1927. hash ^= repeatedNestedEnum_.GetHashCode();
  1928. hash ^= repeatedForeignEnum_.GetHashCode();
  1929. hash ^= repeatedStringPiece_.GetHashCode();
  1930. hash ^= repeatedCord_.GetHashCode();
  1931. hash ^= MapInt32Int32.GetHashCode();
  1932. hash ^= MapInt64Int64.GetHashCode();
  1933. hash ^= MapUint32Uint32.GetHashCode();
  1934. hash ^= MapUint64Uint64.GetHashCode();
  1935. hash ^= MapSint32Sint32.GetHashCode();
  1936. hash ^= MapSint64Sint64.GetHashCode();
  1937. hash ^= MapFixed32Fixed32.GetHashCode();
  1938. hash ^= MapFixed64Fixed64.GetHashCode();
  1939. hash ^= MapSfixed32Sfixed32.GetHashCode();
  1940. hash ^= MapSfixed64Sfixed64.GetHashCode();
  1941. hash ^= MapInt32Float.GetHashCode();
  1942. hash ^= MapInt32Double.GetHashCode();
  1943. hash ^= MapBoolBool.GetHashCode();
  1944. hash ^= MapStringString.GetHashCode();
  1945. hash ^= MapStringBytes.GetHashCode();
  1946. hash ^= MapStringNestedMessage.GetHashCode();
  1947. hash ^= MapStringForeignMessage.GetHashCode();
  1948. hash ^= MapStringNestedEnum.GetHashCode();
  1949. hash ^= MapStringForeignEnum.GetHashCode();
  1950. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
  1951. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  1952. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
  1953. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
  1954. if (optionalBoolWrapper_ != null) hash ^= OptionalBoolWrapper.GetHashCode();
  1955. if (optionalInt32Wrapper_ != null) hash ^= OptionalInt32Wrapper.GetHashCode();
  1956. if (optionalInt64Wrapper_ != null) hash ^= OptionalInt64Wrapper.GetHashCode();
  1957. if (optionalUint32Wrapper_ != null) hash ^= OptionalUint32Wrapper.GetHashCode();
  1958. if (optionalUint64Wrapper_ != null) hash ^= OptionalUint64Wrapper.GetHashCode();
  1959. if (optionalFloatWrapper_ != null) hash ^= OptionalFloatWrapper.GetHashCode();
  1960. if (optionalDoubleWrapper_ != null) hash ^= OptionalDoubleWrapper.GetHashCode();
  1961. if (optionalStringWrapper_ != null) hash ^= OptionalStringWrapper.GetHashCode();
  1962. if (optionalBytesWrapper_ != null) hash ^= OptionalBytesWrapper.GetHashCode();
  1963. hash ^= repeatedBoolWrapper_.GetHashCode();
  1964. hash ^= repeatedInt32Wrapper_.GetHashCode();
  1965. hash ^= repeatedInt64Wrapper_.GetHashCode();
  1966. hash ^= repeatedUint32Wrapper_.GetHashCode();
  1967. hash ^= repeatedUint64Wrapper_.GetHashCode();
  1968. hash ^= repeatedFloatWrapper_.GetHashCode();
  1969. hash ^= repeatedDoubleWrapper_.GetHashCode();
  1970. hash ^= repeatedStringWrapper_.GetHashCode();
  1971. hash ^= repeatedBytesWrapper_.GetHashCode();
  1972. if (optionalDuration_ != null) hash ^= OptionalDuration.GetHashCode();
  1973. if (optionalTimestamp_ != null) hash ^= OptionalTimestamp.GetHashCode();
  1974. if (optionalFieldMask_ != null) hash ^= OptionalFieldMask.GetHashCode();
  1975. if (optionalStruct_ != null) hash ^= OptionalStruct.GetHashCode();
  1976. if (optionalAny_ != null) hash ^= OptionalAny.GetHashCode();
  1977. if (optionalValue_ != null) hash ^= OptionalValue.GetHashCode();
  1978. hash ^= repeatedDuration_.GetHashCode();
  1979. hash ^= repeatedTimestamp_.GetHashCode();
  1980. hash ^= repeatedFieldmask_.GetHashCode();
  1981. hash ^= repeatedStruct_.GetHashCode();
  1982. hash ^= repeatedAny_.GetHashCode();
  1983. hash ^= repeatedValue_.GetHashCode();
  1984. if (Fieldname1 != 0) hash ^= Fieldname1.GetHashCode();
  1985. if (FieldName2 != 0) hash ^= FieldName2.GetHashCode();
  1986. if (FieldName3 != 0) hash ^= FieldName3.GetHashCode();
  1987. if (FieldName4 != 0) hash ^= FieldName4.GetHashCode();
  1988. if (Field0Name5 != 0) hash ^= Field0Name5.GetHashCode();
  1989. if (Field0Name6 != 0) hash ^= Field0Name6.GetHashCode();
  1990. if (FieldName7 != 0) hash ^= FieldName7.GetHashCode();
  1991. if (FieldName8 != 0) hash ^= FieldName8.GetHashCode();
  1992. if (FieldName9 != 0) hash ^= FieldName9.GetHashCode();
  1993. if (FieldName10 != 0) hash ^= FieldName10.GetHashCode();
  1994. if (FIELDNAME11 != 0) hash ^= FIELDNAME11.GetHashCode();
  1995. if (FIELDName12 != 0) hash ^= FIELDName12.GetHashCode();
  1996. hash ^= (int) oneofFieldCase_;
  1997. return hash;
  1998. }
  1999. public override string ToString() {
  2000. return pb::JsonFormatter.ToDiagnosticString(this);
  2001. }
  2002. public void WriteTo(pb::CodedOutputStream output) {
  2003. if (OptionalInt32 != 0) {
  2004. output.WriteRawTag(8);
  2005. output.WriteInt32(OptionalInt32);
  2006. }
  2007. if (OptionalInt64 != 0L) {
  2008. output.WriteRawTag(16);
  2009. output.WriteInt64(OptionalInt64);
  2010. }
  2011. if (OptionalUint32 != 0) {
  2012. output.WriteRawTag(24);
  2013. output.WriteUInt32(OptionalUint32);
  2014. }
  2015. if (OptionalUint64 != 0UL) {
  2016. output.WriteRawTag(32);
  2017. output.WriteUInt64(OptionalUint64);
  2018. }
  2019. if (OptionalSint32 != 0) {
  2020. output.WriteRawTag(40);
  2021. output.WriteSInt32(OptionalSint32);
  2022. }
  2023. if (OptionalSint64 != 0L) {
  2024. output.WriteRawTag(48);
  2025. output.WriteSInt64(OptionalSint64);
  2026. }
  2027. if (OptionalFixed32 != 0) {
  2028. output.WriteRawTag(61);
  2029. output.WriteFixed32(OptionalFixed32);
  2030. }
  2031. if (OptionalFixed64 != 0UL) {
  2032. output.WriteRawTag(65);
  2033. output.WriteFixed64(OptionalFixed64);
  2034. }
  2035. if (OptionalSfixed32 != 0) {
  2036. output.WriteRawTag(77);
  2037. output.WriteSFixed32(OptionalSfixed32);
  2038. }
  2039. if (OptionalSfixed64 != 0L) {
  2040. output.WriteRawTag(81);
  2041. output.WriteSFixed64(OptionalSfixed64);
  2042. }
  2043. if (OptionalFloat != 0F) {
  2044. output.WriteRawTag(93);
  2045. output.WriteFloat(OptionalFloat);
  2046. }
  2047. if (OptionalDouble != 0D) {
  2048. output.WriteRawTag(97);
  2049. output.WriteDouble(OptionalDouble);
  2050. }
  2051. if (OptionalBool != false) {
  2052. output.WriteRawTag(104);
  2053. output.WriteBool(OptionalBool);
  2054. }
  2055. if (OptionalString.Length != 0) {
  2056. output.WriteRawTag(114);
  2057. output.WriteString(OptionalString);
  2058. }
  2059. if (OptionalBytes.Length != 0) {
  2060. output.WriteRawTag(122);
  2061. output.WriteBytes(OptionalBytes);
  2062. }
  2063. if (optionalNestedMessage_ != null) {
  2064. output.WriteRawTag(146, 1);
  2065. output.WriteMessage(OptionalNestedMessage);
  2066. }
  2067. if (optionalForeignMessage_ != null) {
  2068. output.WriteRawTag(154, 1);
  2069. output.WriteMessage(OptionalForeignMessage);
  2070. }
  2071. if (OptionalNestedEnum != 0) {
  2072. output.WriteRawTag(168, 1);
  2073. output.WriteEnum((int) OptionalNestedEnum);
  2074. }
  2075. if (OptionalForeignEnum != 0) {
  2076. output.WriteRawTag(176, 1);
  2077. output.WriteEnum((int) OptionalForeignEnum);
  2078. }
  2079. if (OptionalStringPiece.Length != 0) {
  2080. output.WriteRawTag(194, 1);
  2081. output.WriteString(OptionalStringPiece);
  2082. }
  2083. if (OptionalCord.Length != 0) {
  2084. output.WriteRawTag(202, 1);
  2085. output.WriteString(OptionalCord);
  2086. }
  2087. if (recursiveMessage_ != null) {
  2088. output.WriteRawTag(218, 1);
  2089. output.WriteMessage(RecursiveMessage);
  2090. }
  2091. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  2092. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  2093. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  2094. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  2095. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  2096. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  2097. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  2098. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  2099. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  2100. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  2101. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  2102. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  2103. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  2104. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  2105. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  2106. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  2107. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  2108. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  2109. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  2110. repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
  2111. repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
  2112. mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
  2113. mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
  2114. mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
  2115. mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
  2116. mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
  2117. mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
  2118. mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
  2119. mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
  2120. mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
  2121. mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
  2122. mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
  2123. mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
  2124. mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
  2125. mapStringString_.WriteTo(output, _map_mapStringString_codec);
  2126. mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec);
  2127. mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec);
  2128. mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec);
  2129. mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec);
  2130. mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec);
  2131. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  2132. output.WriteRawTag(248, 6);
  2133. output.WriteUInt32(OneofUint32);
  2134. }
  2135. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  2136. output.WriteRawTag(130, 7);
  2137. output.WriteMessage(OneofNestedMessage);
  2138. }
  2139. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  2140. output.WriteRawTag(138, 7);
  2141. output.WriteString(OneofString);
  2142. }
  2143. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  2144. output.WriteRawTag(146, 7);
  2145. output.WriteBytes(OneofBytes);
  2146. }
  2147. if (optionalBoolWrapper_ != null) {
  2148. _single_optionalBoolWrapper_codec.WriteTagAndValue(output, OptionalBoolWrapper);
  2149. }
  2150. if (optionalInt32Wrapper_ != null) {
  2151. _single_optionalInt32Wrapper_codec.WriteTagAndValue(output, OptionalInt32Wrapper);
  2152. }
  2153. if (optionalInt64Wrapper_ != null) {
  2154. _single_optionalInt64Wrapper_codec.WriteTagAndValue(output, OptionalInt64Wrapper);
  2155. }
  2156. if (optionalUint32Wrapper_ != null) {
  2157. _single_optionalUint32Wrapper_codec.WriteTagAndValue(output, OptionalUint32Wrapper);
  2158. }
  2159. if (optionalUint64Wrapper_ != null) {
  2160. _single_optionalUint64Wrapper_codec.WriteTagAndValue(output, OptionalUint64Wrapper);
  2161. }
  2162. if (optionalFloatWrapper_ != null) {
  2163. _single_optionalFloatWrapper_codec.WriteTagAndValue(output, OptionalFloatWrapper);
  2164. }
  2165. if (optionalDoubleWrapper_ != null) {
  2166. _single_optionalDoubleWrapper_codec.WriteTagAndValue(output, OptionalDoubleWrapper);
  2167. }
  2168. if (optionalStringWrapper_ != null) {
  2169. _single_optionalStringWrapper_codec.WriteTagAndValue(output, OptionalStringWrapper);
  2170. }
  2171. if (optionalBytesWrapper_ != null) {
  2172. _single_optionalBytesWrapper_codec.WriteTagAndValue(output, OptionalBytesWrapper);
  2173. }
  2174. repeatedBoolWrapper_.WriteTo(output, _repeated_repeatedBoolWrapper_codec);
  2175. repeatedInt32Wrapper_.WriteTo(output, _repeated_repeatedInt32Wrapper_codec);
  2176. repeatedInt64Wrapper_.WriteTo(output, _repeated_repeatedInt64Wrapper_codec);
  2177. repeatedUint32Wrapper_.WriteTo(output, _repeated_repeatedUint32Wrapper_codec);
  2178. repeatedUint64Wrapper_.WriteTo(output, _repeated_repeatedUint64Wrapper_codec);
  2179. repeatedFloatWrapper_.WriteTo(output, _repeated_repeatedFloatWrapper_codec);
  2180. repeatedDoubleWrapper_.WriteTo(output, _repeated_repeatedDoubleWrapper_codec);
  2181. repeatedStringWrapper_.WriteTo(output, _repeated_repeatedStringWrapper_codec);
  2182. repeatedBytesWrapper_.WriteTo(output, _repeated_repeatedBytesWrapper_codec);
  2183. if (optionalDuration_ != null) {
  2184. output.WriteRawTag(234, 18);
  2185. output.WriteMessage(OptionalDuration);
  2186. }
  2187. if (optionalTimestamp_ != null) {
  2188. output.WriteRawTag(242, 18);
  2189. output.WriteMessage(OptionalTimestamp);
  2190. }
  2191. if (optionalFieldMask_ != null) {
  2192. output.WriteRawTag(250, 18);
  2193. output.WriteMessage(OptionalFieldMask);
  2194. }
  2195. if (optionalStruct_ != null) {
  2196. output.WriteRawTag(130, 19);
  2197. output.WriteMessage(OptionalStruct);
  2198. }
  2199. if (optionalAny_ != null) {
  2200. output.WriteRawTag(138, 19);
  2201. output.WriteMessage(OptionalAny);
  2202. }
  2203. if (optionalValue_ != null) {
  2204. output.WriteRawTag(146, 19);
  2205. output.WriteMessage(OptionalValue);
  2206. }
  2207. repeatedDuration_.WriteTo(output, _repeated_repeatedDuration_codec);
  2208. repeatedTimestamp_.WriteTo(output, _repeated_repeatedTimestamp_codec);
  2209. repeatedFieldmask_.WriteTo(output, _repeated_repeatedFieldmask_codec);
  2210. repeatedAny_.WriteTo(output, _repeated_repeatedAny_codec);
  2211. repeatedValue_.WriteTo(output, _repeated_repeatedValue_codec);
  2212. repeatedStruct_.WriteTo(output, _repeated_repeatedStruct_codec);
  2213. if (Fieldname1 != 0) {
  2214. output.WriteRawTag(136, 25);
  2215. output.WriteInt32(Fieldname1);
  2216. }
  2217. if (FieldName2 != 0) {
  2218. output.WriteRawTag(144, 25);
  2219. output.WriteInt32(FieldName2);
  2220. }
  2221. if (FieldName3 != 0) {
  2222. output.WriteRawTag(152, 25);
  2223. output.WriteInt32(FieldName3);
  2224. }
  2225. if (FieldName4 != 0) {
  2226. output.WriteRawTag(160, 25);
  2227. output.WriteInt32(FieldName4);
  2228. }
  2229. if (Field0Name5 != 0) {
  2230. output.WriteRawTag(168, 25);
  2231. output.WriteInt32(Field0Name5);
  2232. }
  2233. if (Field0Name6 != 0) {
  2234. output.WriteRawTag(176, 25);
  2235. output.WriteInt32(Field0Name6);
  2236. }
  2237. if (FieldName7 != 0) {
  2238. output.WriteRawTag(184, 25);
  2239. output.WriteInt32(FieldName7);
  2240. }
  2241. if (FieldName8 != 0) {
  2242. output.WriteRawTag(192, 25);
  2243. output.WriteInt32(FieldName8);
  2244. }
  2245. if (FieldName9 != 0) {
  2246. output.WriteRawTag(200, 25);
  2247. output.WriteInt32(FieldName9);
  2248. }
  2249. if (FieldName10 != 0) {
  2250. output.WriteRawTag(208, 25);
  2251. output.WriteInt32(FieldName10);
  2252. }
  2253. if (FIELDNAME11 != 0) {
  2254. output.WriteRawTag(216, 25);
  2255. output.WriteInt32(FIELDNAME11);
  2256. }
  2257. if (FIELDName12 != 0) {
  2258. output.WriteRawTag(224, 25);
  2259. output.WriteInt32(FIELDName12);
  2260. }
  2261. }
  2262. public int CalculateSize() {
  2263. int size = 0;
  2264. if (OptionalInt32 != 0) {
  2265. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  2266. }
  2267. if (OptionalInt64 != 0L) {
  2268. size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
  2269. }
  2270. if (OptionalUint32 != 0) {
  2271. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
  2272. }
  2273. if (OptionalUint64 != 0UL) {
  2274. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
  2275. }
  2276. if (OptionalSint32 != 0) {
  2277. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
  2278. }
  2279. if (OptionalSint64 != 0L) {
  2280. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
  2281. }
  2282. if (OptionalFixed32 != 0) {
  2283. size += 1 + 4;
  2284. }
  2285. if (OptionalFixed64 != 0UL) {
  2286. size += 1 + 8;
  2287. }
  2288. if (OptionalSfixed32 != 0) {
  2289. size += 1 + 4;
  2290. }
  2291. if (OptionalSfixed64 != 0L) {
  2292. size += 1 + 8;
  2293. }
  2294. if (OptionalFloat != 0F) {
  2295. size += 1 + 4;
  2296. }
  2297. if (OptionalDouble != 0D) {
  2298. size += 1 + 8;
  2299. }
  2300. if (OptionalBool != false) {
  2301. size += 1 + 1;
  2302. }
  2303. if (OptionalString.Length != 0) {
  2304. size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  2305. }
  2306. if (OptionalBytes.Length != 0) {
  2307. size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  2308. }
  2309. if (optionalNestedMessage_ != null) {
  2310. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  2311. }
  2312. if (optionalForeignMessage_ != null) {
  2313. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
  2314. }
  2315. if (OptionalNestedEnum != 0) {
  2316. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
  2317. }
  2318. if (OptionalForeignEnum != 0) {
  2319. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  2320. }
  2321. if (OptionalStringPiece.Length != 0) {
  2322. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
  2323. }
  2324. if (OptionalCord.Length != 0) {
  2325. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
  2326. }
  2327. if (recursiveMessage_ != null) {
  2328. size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage);
  2329. }
  2330. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  2331. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  2332. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  2333. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  2334. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  2335. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  2336. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  2337. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  2338. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  2339. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  2340. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  2341. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  2342. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  2343. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  2344. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  2345. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  2346. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  2347. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  2348. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  2349. size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
  2350. size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
  2351. size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
  2352. size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
  2353. size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
  2354. size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
  2355. size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
  2356. size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
  2357. size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
  2358. size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
  2359. size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
  2360. size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
  2361. size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
  2362. size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
  2363. size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
  2364. size += mapStringString_.CalculateSize(_map_mapStringString_codec);
  2365. size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec);
  2366. size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec);
  2367. size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec);
  2368. size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec);
  2369. size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec);
  2370. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  2371. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  2372. }
  2373. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  2374. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  2375. }
  2376. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  2377. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  2378. }
  2379. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  2380. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  2381. }
  2382. if (optionalBoolWrapper_ != null) {
  2383. size += _single_optionalBoolWrapper_codec.CalculateSizeWithTag(OptionalBoolWrapper);
  2384. }
  2385. if (optionalInt32Wrapper_ != null) {
  2386. size += _single_optionalInt32Wrapper_codec.CalculateSizeWithTag(OptionalInt32Wrapper);
  2387. }
  2388. if (optionalInt64Wrapper_ != null) {
  2389. size += _single_optionalInt64Wrapper_codec.CalculateSizeWithTag(OptionalInt64Wrapper);
  2390. }
  2391. if (optionalUint32Wrapper_ != null) {
  2392. size += _single_optionalUint32Wrapper_codec.CalculateSizeWithTag(OptionalUint32Wrapper);
  2393. }
  2394. if (optionalUint64Wrapper_ != null) {
  2395. size += _single_optionalUint64Wrapper_codec.CalculateSizeWithTag(OptionalUint64Wrapper);
  2396. }
  2397. if (optionalFloatWrapper_ != null) {
  2398. size += _single_optionalFloatWrapper_codec.CalculateSizeWithTag(OptionalFloatWrapper);
  2399. }
  2400. if (optionalDoubleWrapper_ != null) {
  2401. size += _single_optionalDoubleWrapper_codec.CalculateSizeWithTag(OptionalDoubleWrapper);
  2402. }
  2403. if (optionalStringWrapper_ != null) {
  2404. size += _single_optionalStringWrapper_codec.CalculateSizeWithTag(OptionalStringWrapper);
  2405. }
  2406. if (optionalBytesWrapper_ != null) {
  2407. size += _single_optionalBytesWrapper_codec.CalculateSizeWithTag(OptionalBytesWrapper);
  2408. }
  2409. size += repeatedBoolWrapper_.CalculateSize(_repeated_repeatedBoolWrapper_codec);
  2410. size += repeatedInt32Wrapper_.CalculateSize(_repeated_repeatedInt32Wrapper_codec);
  2411. size += repeatedInt64Wrapper_.CalculateSize(_repeated_repeatedInt64Wrapper_codec);
  2412. size += repeatedUint32Wrapper_.CalculateSize(_repeated_repeatedUint32Wrapper_codec);
  2413. size += repeatedUint64Wrapper_.CalculateSize(_repeated_repeatedUint64Wrapper_codec);
  2414. size += repeatedFloatWrapper_.CalculateSize(_repeated_repeatedFloatWrapper_codec);
  2415. size += repeatedDoubleWrapper_.CalculateSize(_repeated_repeatedDoubleWrapper_codec);
  2416. size += repeatedStringWrapper_.CalculateSize(_repeated_repeatedStringWrapper_codec);
  2417. size += repeatedBytesWrapper_.CalculateSize(_repeated_repeatedBytesWrapper_codec);
  2418. if (optionalDuration_ != null) {
  2419. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalDuration);
  2420. }
  2421. if (optionalTimestamp_ != null) {
  2422. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalTimestamp);
  2423. }
  2424. if (optionalFieldMask_ != null) {
  2425. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalFieldMask);
  2426. }
  2427. if (optionalStruct_ != null) {
  2428. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalStruct);
  2429. }
  2430. if (optionalAny_ != null) {
  2431. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalAny);
  2432. }
  2433. if (optionalValue_ != null) {
  2434. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalValue);
  2435. }
  2436. size += repeatedDuration_.CalculateSize(_repeated_repeatedDuration_codec);
  2437. size += repeatedTimestamp_.CalculateSize(_repeated_repeatedTimestamp_codec);
  2438. size += repeatedFieldmask_.CalculateSize(_repeated_repeatedFieldmask_codec);
  2439. size += repeatedStruct_.CalculateSize(_repeated_repeatedStruct_codec);
  2440. size += repeatedAny_.CalculateSize(_repeated_repeatedAny_codec);
  2441. size += repeatedValue_.CalculateSize(_repeated_repeatedValue_codec);
  2442. if (Fieldname1 != 0) {
  2443. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1);
  2444. }
  2445. if (FieldName2 != 0) {
  2446. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
  2447. }
  2448. if (FieldName3 != 0) {
  2449. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
  2450. }
  2451. if (FieldName4 != 0) {
  2452. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
  2453. }
  2454. if (Field0Name5 != 0) {
  2455. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5);
  2456. }
  2457. if (Field0Name6 != 0) {
  2458. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6);
  2459. }
  2460. if (FieldName7 != 0) {
  2461. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7);
  2462. }
  2463. if (FieldName8 != 0) {
  2464. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8);
  2465. }
  2466. if (FieldName9 != 0) {
  2467. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9);
  2468. }
  2469. if (FieldName10 != 0) {
  2470. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10);
  2471. }
  2472. if (FIELDNAME11 != 0) {
  2473. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11);
  2474. }
  2475. if (FIELDName12 != 0) {
  2476. size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12);
  2477. }
  2478. return size;
  2479. }
  2480. public void MergeFrom(TestAllTypes other) {
  2481. if (other == null) {
  2482. return;
  2483. }
  2484. if (other.OptionalInt32 != 0) {
  2485. OptionalInt32 = other.OptionalInt32;
  2486. }
  2487. if (other.OptionalInt64 != 0L) {
  2488. OptionalInt64 = other.OptionalInt64;
  2489. }
  2490. if (other.OptionalUint32 != 0) {
  2491. OptionalUint32 = other.OptionalUint32;
  2492. }
  2493. if (other.OptionalUint64 != 0UL) {
  2494. OptionalUint64 = other.OptionalUint64;
  2495. }
  2496. if (other.OptionalSint32 != 0) {
  2497. OptionalSint32 = other.OptionalSint32;
  2498. }
  2499. if (other.OptionalSint64 != 0L) {
  2500. OptionalSint64 = other.OptionalSint64;
  2501. }
  2502. if (other.OptionalFixed32 != 0) {
  2503. OptionalFixed32 = other.OptionalFixed32;
  2504. }
  2505. if (other.OptionalFixed64 != 0UL) {
  2506. OptionalFixed64 = other.OptionalFixed64;
  2507. }
  2508. if (other.OptionalSfixed32 != 0) {
  2509. OptionalSfixed32 = other.OptionalSfixed32;
  2510. }
  2511. if (other.OptionalSfixed64 != 0L) {
  2512. OptionalSfixed64 = other.OptionalSfixed64;
  2513. }
  2514. if (other.OptionalFloat != 0F) {
  2515. OptionalFloat = other.OptionalFloat;
  2516. }
  2517. if (other.OptionalDouble != 0D) {
  2518. OptionalDouble = other.OptionalDouble;
  2519. }
  2520. if (other.OptionalBool != false) {
  2521. OptionalBool = other.OptionalBool;
  2522. }
  2523. if (other.OptionalString.Length != 0) {
  2524. OptionalString = other.OptionalString;
  2525. }
  2526. if (other.OptionalBytes.Length != 0) {
  2527. OptionalBytes = other.OptionalBytes;
  2528. }
  2529. if (other.optionalNestedMessage_ != null) {
  2530. if (optionalNestedMessage_ == null) {
  2531. optionalNestedMessage_ = new global::Conformance.TestAllTypes.Types.NestedMessage();
  2532. }
  2533. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  2534. }
  2535. if (other.optionalForeignMessage_ != null) {
  2536. if (optionalForeignMessage_ == null) {
  2537. optionalForeignMessage_ = new global::Conformance.ForeignMessage();
  2538. }
  2539. OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
  2540. }
  2541. if (other.OptionalNestedEnum != 0) {
  2542. OptionalNestedEnum = other.OptionalNestedEnum;
  2543. }
  2544. if (other.OptionalForeignEnum != 0) {
  2545. OptionalForeignEnum = other.OptionalForeignEnum;
  2546. }
  2547. if (other.OptionalStringPiece.Length != 0) {
  2548. OptionalStringPiece = other.OptionalStringPiece;
  2549. }
  2550. if (other.OptionalCord.Length != 0) {
  2551. OptionalCord = other.OptionalCord;
  2552. }
  2553. if (other.recursiveMessage_ != null) {
  2554. if (recursiveMessage_ == null) {
  2555. recursiveMessage_ = new global::Conformance.TestAllTypes();
  2556. }
  2557. RecursiveMessage.MergeFrom(other.RecursiveMessage);
  2558. }
  2559. repeatedInt32_.Add(other.repeatedInt32_);
  2560. repeatedInt64_.Add(other.repeatedInt64_);
  2561. repeatedUint32_.Add(other.repeatedUint32_);
  2562. repeatedUint64_.Add(other.repeatedUint64_);
  2563. repeatedSint32_.Add(other.repeatedSint32_);
  2564. repeatedSint64_.Add(other.repeatedSint64_);
  2565. repeatedFixed32_.Add(other.repeatedFixed32_);
  2566. repeatedFixed64_.Add(other.repeatedFixed64_);
  2567. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  2568. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  2569. repeatedFloat_.Add(other.repeatedFloat_);
  2570. repeatedDouble_.Add(other.repeatedDouble_);
  2571. repeatedBool_.Add(other.repeatedBool_);
  2572. repeatedString_.Add(other.repeatedString_);
  2573. repeatedBytes_.Add(other.repeatedBytes_);
  2574. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  2575. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  2576. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  2577. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  2578. repeatedStringPiece_.Add(other.repeatedStringPiece_);
  2579. repeatedCord_.Add(other.repeatedCord_);
  2580. mapInt32Int32_.Add(other.mapInt32Int32_);
  2581. mapInt64Int64_.Add(other.mapInt64Int64_);
  2582. mapUint32Uint32_.Add(other.mapUint32Uint32_);
  2583. mapUint64Uint64_.Add(other.mapUint64Uint64_);
  2584. mapSint32Sint32_.Add(other.mapSint32Sint32_);
  2585. mapSint64Sint64_.Add(other.mapSint64Sint64_);
  2586. mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
  2587. mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
  2588. mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
  2589. mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
  2590. mapInt32Float_.Add(other.mapInt32Float_);
  2591. mapInt32Double_.Add(other.mapInt32Double_);
  2592. mapBoolBool_.Add(other.mapBoolBool_);
  2593. mapStringString_.Add(other.mapStringString_);
  2594. mapStringBytes_.Add(other.mapStringBytes_);
  2595. mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
  2596. mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
  2597. mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
  2598. mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
  2599. if (other.optionalBoolWrapper_ != null) {
  2600. if (optionalBoolWrapper_ == null || other.OptionalBoolWrapper != false) {
  2601. OptionalBoolWrapper = other.OptionalBoolWrapper;
  2602. }
  2603. }
  2604. if (other.optionalInt32Wrapper_ != null) {
  2605. if (optionalInt32Wrapper_ == null || other.OptionalInt32Wrapper != 0) {
  2606. OptionalInt32Wrapper = other.OptionalInt32Wrapper;
  2607. }
  2608. }
  2609. if (other.optionalInt64Wrapper_ != null) {
  2610. if (optionalInt64Wrapper_ == null || other.OptionalInt64Wrapper != 0L) {
  2611. OptionalInt64Wrapper = other.OptionalInt64Wrapper;
  2612. }
  2613. }
  2614. if (other.optionalUint32Wrapper_ != null) {
  2615. if (optionalUint32Wrapper_ == null || other.OptionalUint32Wrapper != 0) {
  2616. OptionalUint32Wrapper = other.OptionalUint32Wrapper;
  2617. }
  2618. }
  2619. if (other.optionalUint64Wrapper_ != null) {
  2620. if (optionalUint64Wrapper_ == null || other.OptionalUint64Wrapper != 0UL) {
  2621. OptionalUint64Wrapper = other.OptionalUint64Wrapper;
  2622. }
  2623. }
  2624. if (other.optionalFloatWrapper_ != null) {
  2625. if (optionalFloatWrapper_ == null || other.OptionalFloatWrapper != 0F) {
  2626. OptionalFloatWrapper = other.OptionalFloatWrapper;
  2627. }
  2628. }
  2629. if (other.optionalDoubleWrapper_ != null) {
  2630. if (optionalDoubleWrapper_ == null || other.OptionalDoubleWrapper != 0D) {
  2631. OptionalDoubleWrapper = other.OptionalDoubleWrapper;
  2632. }
  2633. }
  2634. if (other.optionalStringWrapper_ != null) {
  2635. if (optionalStringWrapper_ == null || other.OptionalStringWrapper != "") {
  2636. OptionalStringWrapper = other.OptionalStringWrapper;
  2637. }
  2638. }
  2639. if (other.optionalBytesWrapper_ != null) {
  2640. if (optionalBytesWrapper_ == null || other.OptionalBytesWrapper != pb::ByteString.Empty) {
  2641. OptionalBytesWrapper = other.OptionalBytesWrapper;
  2642. }
  2643. }
  2644. repeatedBoolWrapper_.Add(other.repeatedBoolWrapper_);
  2645. repeatedInt32Wrapper_.Add(other.repeatedInt32Wrapper_);
  2646. repeatedInt64Wrapper_.Add(other.repeatedInt64Wrapper_);
  2647. repeatedUint32Wrapper_.Add(other.repeatedUint32Wrapper_);
  2648. repeatedUint64Wrapper_.Add(other.repeatedUint64Wrapper_);
  2649. repeatedFloatWrapper_.Add(other.repeatedFloatWrapper_);
  2650. repeatedDoubleWrapper_.Add(other.repeatedDoubleWrapper_);
  2651. repeatedStringWrapper_.Add(other.repeatedStringWrapper_);
  2652. repeatedBytesWrapper_.Add(other.repeatedBytesWrapper_);
  2653. if (other.optionalDuration_ != null) {
  2654. if (optionalDuration_ == null) {
  2655. optionalDuration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
  2656. }
  2657. OptionalDuration.MergeFrom(other.OptionalDuration);
  2658. }
  2659. if (other.optionalTimestamp_ != null) {
  2660. if (optionalTimestamp_ == null) {
  2661. optionalTimestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  2662. }
  2663. OptionalTimestamp.MergeFrom(other.OptionalTimestamp);
  2664. }
  2665. if (other.optionalFieldMask_ != null) {
  2666. if (optionalFieldMask_ == null) {
  2667. optionalFieldMask_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  2668. }
  2669. OptionalFieldMask.MergeFrom(other.OptionalFieldMask);
  2670. }
  2671. if (other.optionalStruct_ != null) {
  2672. if (optionalStruct_ == null) {
  2673. optionalStruct_ = new global::Google.Protobuf.WellKnownTypes.Struct();
  2674. }
  2675. OptionalStruct.MergeFrom(other.OptionalStruct);
  2676. }
  2677. if (other.optionalAny_ != null) {
  2678. if (optionalAny_ == null) {
  2679. optionalAny_ = new global::Google.Protobuf.WellKnownTypes.Any();
  2680. }
  2681. OptionalAny.MergeFrom(other.OptionalAny);
  2682. }
  2683. if (other.optionalValue_ != null) {
  2684. if (optionalValue_ == null) {
  2685. optionalValue_ = new global::Google.Protobuf.WellKnownTypes.Value();
  2686. }
  2687. OptionalValue.MergeFrom(other.OptionalValue);
  2688. }
  2689. repeatedDuration_.Add(other.repeatedDuration_);
  2690. repeatedTimestamp_.Add(other.repeatedTimestamp_);
  2691. repeatedFieldmask_.Add(other.repeatedFieldmask_);
  2692. repeatedStruct_.Add(other.repeatedStruct_);
  2693. repeatedAny_.Add(other.repeatedAny_);
  2694. repeatedValue_.Add(other.repeatedValue_);
  2695. if (other.Fieldname1 != 0) {
  2696. Fieldname1 = other.Fieldname1;
  2697. }
  2698. if (other.FieldName2 != 0) {
  2699. FieldName2 = other.FieldName2;
  2700. }
  2701. if (other.FieldName3 != 0) {
  2702. FieldName3 = other.FieldName3;
  2703. }
  2704. if (other.FieldName4 != 0) {
  2705. FieldName4 = other.FieldName4;
  2706. }
  2707. if (other.Field0Name5 != 0) {
  2708. Field0Name5 = other.Field0Name5;
  2709. }
  2710. if (other.Field0Name6 != 0) {
  2711. Field0Name6 = other.Field0Name6;
  2712. }
  2713. if (other.FieldName7 != 0) {
  2714. FieldName7 = other.FieldName7;
  2715. }
  2716. if (other.FieldName8 != 0) {
  2717. FieldName8 = other.FieldName8;
  2718. }
  2719. if (other.FieldName9 != 0) {
  2720. FieldName9 = other.FieldName9;
  2721. }
  2722. if (other.FieldName10 != 0) {
  2723. FieldName10 = other.FieldName10;
  2724. }
  2725. if (other.FIELDNAME11 != 0) {
  2726. FIELDNAME11 = other.FIELDNAME11;
  2727. }
  2728. if (other.FIELDName12 != 0) {
  2729. FIELDName12 = other.FIELDName12;
  2730. }
  2731. switch (other.OneofFieldCase) {
  2732. case OneofFieldOneofCase.OneofUint32:
  2733. OneofUint32 = other.OneofUint32;
  2734. break;
  2735. case OneofFieldOneofCase.OneofNestedMessage:
  2736. OneofNestedMessage = other.OneofNestedMessage;
  2737. break;
  2738. case OneofFieldOneofCase.OneofString:
  2739. OneofString = other.OneofString;
  2740. break;
  2741. case OneofFieldOneofCase.OneofBytes:
  2742. OneofBytes = other.OneofBytes;
  2743. break;
  2744. }
  2745. }
  2746. public void MergeFrom(pb::CodedInputStream input) {
  2747. uint tag;
  2748. while ((tag = input.ReadTag()) != 0) {
  2749. switch(tag) {
  2750. default:
  2751. input.SkipLastField();
  2752. break;
  2753. case 8: {
  2754. OptionalInt32 = input.ReadInt32();
  2755. break;
  2756. }
  2757. case 16: {
  2758. OptionalInt64 = input.ReadInt64();
  2759. break;
  2760. }
  2761. case 24: {
  2762. OptionalUint32 = input.ReadUInt32();
  2763. break;
  2764. }
  2765. case 32: {
  2766. OptionalUint64 = input.ReadUInt64();
  2767. break;
  2768. }
  2769. case 40: {
  2770. OptionalSint32 = input.ReadSInt32();
  2771. break;
  2772. }
  2773. case 48: {
  2774. OptionalSint64 = input.ReadSInt64();
  2775. break;
  2776. }
  2777. case 61: {
  2778. OptionalFixed32 = input.ReadFixed32();
  2779. break;
  2780. }
  2781. case 65: {
  2782. OptionalFixed64 = input.ReadFixed64();
  2783. break;
  2784. }
  2785. case 77: {
  2786. OptionalSfixed32 = input.ReadSFixed32();
  2787. break;
  2788. }
  2789. case 81: {
  2790. OptionalSfixed64 = input.ReadSFixed64();
  2791. break;
  2792. }
  2793. case 93: {
  2794. OptionalFloat = input.ReadFloat();
  2795. break;
  2796. }
  2797. case 97: {
  2798. OptionalDouble = input.ReadDouble();
  2799. break;
  2800. }
  2801. case 104: {
  2802. OptionalBool = input.ReadBool();
  2803. break;
  2804. }
  2805. case 114: {
  2806. OptionalString = input.ReadString();
  2807. break;
  2808. }
  2809. case 122: {
  2810. OptionalBytes = input.ReadBytes();
  2811. break;
  2812. }
  2813. case 146: {
  2814. if (optionalNestedMessage_ == null) {
  2815. optionalNestedMessage_ = new global::Conformance.TestAllTypes.Types.NestedMessage();
  2816. }
  2817. input.ReadMessage(optionalNestedMessage_);
  2818. break;
  2819. }
  2820. case 154: {
  2821. if (optionalForeignMessage_ == null) {
  2822. optionalForeignMessage_ = new global::Conformance.ForeignMessage();
  2823. }
  2824. input.ReadMessage(optionalForeignMessage_);
  2825. break;
  2826. }
  2827. case 168: {
  2828. optionalNestedEnum_ = (global::Conformance.TestAllTypes.Types.NestedEnum) input.ReadEnum();
  2829. break;
  2830. }
  2831. case 176: {
  2832. optionalForeignEnum_ = (global::Conformance.ForeignEnum) input.ReadEnum();
  2833. break;
  2834. }
  2835. case 194: {
  2836. OptionalStringPiece = input.ReadString();
  2837. break;
  2838. }
  2839. case 202: {
  2840. OptionalCord = input.ReadString();
  2841. break;
  2842. }
  2843. case 218: {
  2844. if (recursiveMessage_ == null) {
  2845. recursiveMessage_ = new global::Conformance.TestAllTypes();
  2846. }
  2847. input.ReadMessage(recursiveMessage_);
  2848. break;
  2849. }
  2850. case 250:
  2851. case 248: {
  2852. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  2853. break;
  2854. }
  2855. case 258:
  2856. case 256: {
  2857. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  2858. break;
  2859. }
  2860. case 266:
  2861. case 264: {
  2862. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  2863. break;
  2864. }
  2865. case 274:
  2866. case 272: {
  2867. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  2868. break;
  2869. }
  2870. case 282:
  2871. case 280: {
  2872. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  2873. break;
  2874. }
  2875. case 290:
  2876. case 288: {
  2877. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  2878. break;
  2879. }
  2880. case 298:
  2881. case 301: {
  2882. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  2883. break;
  2884. }
  2885. case 306:
  2886. case 305: {
  2887. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  2888. break;
  2889. }
  2890. case 314:
  2891. case 317: {
  2892. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  2893. break;
  2894. }
  2895. case 322:
  2896. case 321: {
  2897. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  2898. break;
  2899. }
  2900. case 330:
  2901. case 333: {
  2902. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  2903. break;
  2904. }
  2905. case 338:
  2906. case 337: {
  2907. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  2908. break;
  2909. }
  2910. case 346:
  2911. case 344: {
  2912. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  2913. break;
  2914. }
  2915. case 354: {
  2916. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  2917. break;
  2918. }
  2919. case 362: {
  2920. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  2921. break;
  2922. }
  2923. case 386: {
  2924. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  2925. break;
  2926. }
  2927. case 394: {
  2928. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  2929. break;
  2930. }
  2931. case 410:
  2932. case 408: {
  2933. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  2934. break;
  2935. }
  2936. case 418:
  2937. case 416: {
  2938. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  2939. break;
  2940. }
  2941. case 434: {
  2942. repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
  2943. break;
  2944. }
  2945. case 442: {
  2946. repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
  2947. break;
  2948. }
  2949. case 450: {
  2950. mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
  2951. break;
  2952. }
  2953. case 458: {
  2954. mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
  2955. break;
  2956. }
  2957. case 466: {
  2958. mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
  2959. break;
  2960. }
  2961. case 474: {
  2962. mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
  2963. break;
  2964. }
  2965. case 482: {
  2966. mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
  2967. break;
  2968. }
  2969. case 490: {
  2970. mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
  2971. break;
  2972. }
  2973. case 498: {
  2974. mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
  2975. break;
  2976. }
  2977. case 506: {
  2978. mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
  2979. break;
  2980. }
  2981. case 514: {
  2982. mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
  2983. break;
  2984. }
  2985. case 522: {
  2986. mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
  2987. break;
  2988. }
  2989. case 530: {
  2990. mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
  2991. break;
  2992. }
  2993. case 538: {
  2994. mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
  2995. break;
  2996. }
  2997. case 546: {
  2998. mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
  2999. break;
  3000. }
  3001. case 554: {
  3002. mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
  3003. break;
  3004. }
  3005. case 562: {
  3006. mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec);
  3007. break;
  3008. }
  3009. case 570: {
  3010. mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec);
  3011. break;
  3012. }
  3013. case 578: {
  3014. mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec);
  3015. break;
  3016. }
  3017. case 586: {
  3018. mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec);
  3019. break;
  3020. }
  3021. case 594: {
  3022. mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec);
  3023. break;
  3024. }
  3025. case 888: {
  3026. OneofUint32 = input.ReadUInt32();
  3027. break;
  3028. }
  3029. case 898: {
  3030. global::Conformance.TestAllTypes.Types.NestedMessage subBuilder = new global::Conformance.TestAllTypes.Types.NestedMessage();
  3031. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  3032. subBuilder.MergeFrom(OneofNestedMessage);
  3033. }
  3034. input.ReadMessage(subBuilder);
  3035. OneofNestedMessage = subBuilder;
  3036. break;
  3037. }
  3038. case 906: {
  3039. OneofString = input.ReadString();
  3040. break;
  3041. }
  3042. case 914: {
  3043. OneofBytes = input.ReadBytes();
  3044. break;
  3045. }
  3046. case 1610: {
  3047. bool? value = _single_optionalBoolWrapper_codec.Read(input);
  3048. if (optionalBoolWrapper_ == null || value != false) {
  3049. OptionalBoolWrapper = value;
  3050. }
  3051. break;
  3052. }
  3053. case 1618: {
  3054. int? value = _single_optionalInt32Wrapper_codec.Read(input);
  3055. if (optionalInt32Wrapper_ == null || value != 0) {
  3056. OptionalInt32Wrapper = value;
  3057. }
  3058. break;
  3059. }
  3060. case 1626: {
  3061. long? value = _single_optionalInt64Wrapper_codec.Read(input);
  3062. if (optionalInt64Wrapper_ == null || value != 0L) {
  3063. OptionalInt64Wrapper = value;
  3064. }
  3065. break;
  3066. }
  3067. case 1634: {
  3068. uint? value = _single_optionalUint32Wrapper_codec.Read(input);
  3069. if (optionalUint32Wrapper_ == null || value != 0) {
  3070. OptionalUint32Wrapper = value;
  3071. }
  3072. break;
  3073. }
  3074. case 1642: {
  3075. ulong? value = _single_optionalUint64Wrapper_codec.Read(input);
  3076. if (optionalUint64Wrapper_ == null || value != 0UL) {
  3077. OptionalUint64Wrapper = value;
  3078. }
  3079. break;
  3080. }
  3081. case 1650: {
  3082. float? value = _single_optionalFloatWrapper_codec.Read(input);
  3083. if (optionalFloatWrapper_ == null || value != 0F) {
  3084. OptionalFloatWrapper = value;
  3085. }
  3086. break;
  3087. }
  3088. case 1658: {
  3089. double? value = _single_optionalDoubleWrapper_codec.Read(input);
  3090. if (optionalDoubleWrapper_ == null || value != 0D) {
  3091. OptionalDoubleWrapper = value;
  3092. }
  3093. break;
  3094. }
  3095. case 1666: {
  3096. string value = _single_optionalStringWrapper_codec.Read(input);
  3097. if (optionalStringWrapper_ == null || value != "") {
  3098. OptionalStringWrapper = value;
  3099. }
  3100. break;
  3101. }
  3102. case 1674: {
  3103. pb::ByteString value = _single_optionalBytesWrapper_codec.Read(input);
  3104. if (optionalBytesWrapper_ == null || value != pb::ByteString.Empty) {
  3105. OptionalBytesWrapper = value;
  3106. }
  3107. break;
  3108. }
  3109. case 1690: {
  3110. repeatedBoolWrapper_.AddEntriesFrom(input, _repeated_repeatedBoolWrapper_codec);
  3111. break;
  3112. }
  3113. case 1698: {
  3114. repeatedInt32Wrapper_.AddEntriesFrom(input, _repeated_repeatedInt32Wrapper_codec);
  3115. break;
  3116. }
  3117. case 1706: {
  3118. repeatedInt64Wrapper_.AddEntriesFrom(input, _repeated_repeatedInt64Wrapper_codec);
  3119. break;
  3120. }
  3121. case 1714: {
  3122. repeatedUint32Wrapper_.AddEntriesFrom(input, _repeated_repeatedUint32Wrapper_codec);
  3123. break;
  3124. }
  3125. case 1722: {
  3126. repeatedUint64Wrapper_.AddEntriesFrom(input, _repeated_repeatedUint64Wrapper_codec);
  3127. break;
  3128. }
  3129. case 1730: {
  3130. repeatedFloatWrapper_.AddEntriesFrom(input, _repeated_repeatedFloatWrapper_codec);
  3131. break;
  3132. }
  3133. case 1738: {
  3134. repeatedDoubleWrapper_.AddEntriesFrom(input, _repeated_repeatedDoubleWrapper_codec);
  3135. break;
  3136. }
  3137. case 1746: {
  3138. repeatedStringWrapper_.AddEntriesFrom(input, _repeated_repeatedStringWrapper_codec);
  3139. break;
  3140. }
  3141. case 1754: {
  3142. repeatedBytesWrapper_.AddEntriesFrom(input, _repeated_repeatedBytesWrapper_codec);
  3143. break;
  3144. }
  3145. case 2410: {
  3146. if (optionalDuration_ == null) {
  3147. optionalDuration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
  3148. }
  3149. input.ReadMessage(optionalDuration_);
  3150. break;
  3151. }
  3152. case 2418: {
  3153. if (optionalTimestamp_ == null) {
  3154. optionalTimestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  3155. }
  3156. input.ReadMessage(optionalTimestamp_);
  3157. break;
  3158. }
  3159. case 2426: {
  3160. if (optionalFieldMask_ == null) {
  3161. optionalFieldMask_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  3162. }
  3163. input.ReadMessage(optionalFieldMask_);
  3164. break;
  3165. }
  3166. case 2434: {
  3167. if (optionalStruct_ == null) {
  3168. optionalStruct_ = new global::Google.Protobuf.WellKnownTypes.Struct();
  3169. }
  3170. input.ReadMessage(optionalStruct_);
  3171. break;
  3172. }
  3173. case 2442: {
  3174. if (optionalAny_ == null) {
  3175. optionalAny_ = new global::Google.Protobuf.WellKnownTypes.Any();
  3176. }
  3177. input.ReadMessage(optionalAny_);
  3178. break;
  3179. }
  3180. case 2450: {
  3181. if (optionalValue_ == null) {
  3182. optionalValue_ = new global::Google.Protobuf.WellKnownTypes.Value();
  3183. }
  3184. input.ReadMessage(optionalValue_);
  3185. break;
  3186. }
  3187. case 2490: {
  3188. repeatedDuration_.AddEntriesFrom(input, _repeated_repeatedDuration_codec);
  3189. break;
  3190. }
  3191. case 2498: {
  3192. repeatedTimestamp_.AddEntriesFrom(input, _repeated_repeatedTimestamp_codec);
  3193. break;
  3194. }
  3195. case 2506: {
  3196. repeatedFieldmask_.AddEntriesFrom(input, _repeated_repeatedFieldmask_codec);
  3197. break;
  3198. }
  3199. case 2522: {
  3200. repeatedAny_.AddEntriesFrom(input, _repeated_repeatedAny_codec);
  3201. break;
  3202. }
  3203. case 2530: {
  3204. repeatedValue_.AddEntriesFrom(input, _repeated_repeatedValue_codec);
  3205. break;
  3206. }
  3207. case 2594: {
  3208. repeatedStruct_.AddEntriesFrom(input, _repeated_repeatedStruct_codec);
  3209. break;
  3210. }
  3211. case 3208: {
  3212. Fieldname1 = input.ReadInt32();
  3213. break;
  3214. }
  3215. case 3216: {
  3216. FieldName2 = input.ReadInt32();
  3217. break;
  3218. }
  3219. case 3224: {
  3220. FieldName3 = input.ReadInt32();
  3221. break;
  3222. }
  3223. case 3232: {
  3224. FieldName4 = input.ReadInt32();
  3225. break;
  3226. }
  3227. case 3240: {
  3228. Field0Name5 = input.ReadInt32();
  3229. break;
  3230. }
  3231. case 3248: {
  3232. Field0Name6 = input.ReadInt32();
  3233. break;
  3234. }
  3235. case 3256: {
  3236. FieldName7 = input.ReadInt32();
  3237. break;
  3238. }
  3239. case 3264: {
  3240. FieldName8 = input.ReadInt32();
  3241. break;
  3242. }
  3243. case 3272: {
  3244. FieldName9 = input.ReadInt32();
  3245. break;
  3246. }
  3247. case 3280: {
  3248. FieldName10 = input.ReadInt32();
  3249. break;
  3250. }
  3251. case 3288: {
  3252. FIELDNAME11 = input.ReadInt32();
  3253. break;
  3254. }
  3255. case 3296: {
  3256. FIELDName12 = input.ReadInt32();
  3257. break;
  3258. }
  3259. }
  3260. }
  3261. }
  3262. #region Nested types
  3263. /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3265. public static partial class Types {
  3266. public enum NestedEnum {
  3267. [pbr::OriginalName("FOO")] Foo = 0,
  3268. [pbr::OriginalName("BAR")] Bar = 1,
  3269. [pbr::OriginalName("BAZ")] Baz = 2,
  3270. /// <summary>
  3271. /// Intentionally negative.
  3272. /// </summary>
  3273. [pbr::OriginalName("NEG")] Neg = -1,
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  3277. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3278. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3279. public static pbr::MessageDescriptor Descriptor {
  3280. get { return global::Conformance.TestAllTypes.Descriptor.NestedTypes[0]; }
  3281. }
  3282. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3283. get { return Descriptor; }
  3284. }
  3285. public NestedMessage() {
  3286. OnConstruction();
  3287. }
  3288. partial void OnConstruction();
  3289. public NestedMessage(NestedMessage other) : this() {
  3290. a_ = other.a_;
  3291. Corecursive = other.corecursive_ != null ? other.Corecursive.Clone() : null;
  3292. }
  3293. public NestedMessage Clone() {
  3294. return new NestedMessage(this);
  3295. }
  3296. /// <summary>Field number for the "a" field.</summary>
  3297. public const int AFieldNumber = 1;
  3298. private int a_;
  3299. public int A {
  3300. get { return a_; }
  3301. set {
  3302. a_ = value;
  3303. }
  3304. }
  3305. /// <summary>Field number for the "corecursive" field.</summary>
  3306. public const int CorecursiveFieldNumber = 2;
  3307. private global::Conformance.TestAllTypes corecursive_;
  3308. public global::Conformance.TestAllTypes Corecursive {
  3309. get { return corecursive_; }
  3310. set {
  3311. corecursive_ = value;
  3312. }
  3313. }
  3314. public override bool Equals(object other) {
  3315. return Equals(other as NestedMessage);
  3316. }
  3317. public bool Equals(NestedMessage other) {
  3318. if (ReferenceEquals(other, null)) {
  3319. return false;
  3320. }
  3321. if (ReferenceEquals(other, this)) {
  3322. return true;
  3323. }
  3324. if (A != other.A) return false;
  3325. if (!object.Equals(Corecursive, other.Corecursive)) return false;
  3326. return true;
  3327. }
  3328. public override int GetHashCode() {
  3329. int hash = 1;
  3330. if (A != 0) hash ^= A.GetHashCode();
  3331. if (corecursive_ != null) hash ^= Corecursive.GetHashCode();
  3332. return hash;
  3333. }
  3334. public override string ToString() {
  3335. return pb::JsonFormatter.ToDiagnosticString(this);
  3336. }
  3337. public void WriteTo(pb::CodedOutputStream output) {
  3338. if (A != 0) {
  3339. output.WriteRawTag(8);
  3340. output.WriteInt32(A);
  3341. }
  3342. if (corecursive_ != null) {
  3343. output.WriteRawTag(18);
  3344. output.WriteMessage(Corecursive);
  3345. }
  3346. }
  3347. public int CalculateSize() {
  3348. int size = 0;
  3349. if (A != 0) {
  3350. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  3351. }
  3352. if (corecursive_ != null) {
  3353. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive);
  3354. }
  3355. return size;
  3356. }
  3357. public void MergeFrom(NestedMessage other) {
  3358. if (other == null) {
  3359. return;
  3360. }
  3361. if (other.A != 0) {
  3362. A = other.A;
  3363. }
  3364. if (other.corecursive_ != null) {
  3365. if (corecursive_ == null) {
  3366. corecursive_ = new global::Conformance.TestAllTypes();
  3367. }
  3368. Corecursive.MergeFrom(other.Corecursive);
  3369. }
  3370. }
  3371. public void MergeFrom(pb::CodedInputStream input) {
  3372. uint tag;
  3373. while ((tag = input.ReadTag()) != 0) {
  3374. switch(tag) {
  3375. default:
  3376. input.SkipLastField();
  3377. break;
  3378. case 8: {
  3379. A = input.ReadInt32();
  3380. break;
  3381. }
  3382. case 18: {
  3383. if (corecursive_ == null) {
  3384. corecursive_ = new global::Conformance.TestAllTypes();
  3385. }
  3386. input.ReadMessage(corecursive_);
  3387. break;
  3388. }
  3389. }
  3390. }
  3391. }
  3392. }
  3393. }
  3394. #endregion
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
  3398. private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
  3399. public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
  3400. public static pbr::MessageDescriptor Descriptor {
  3401. get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[3]; }
  3402. }
  3403. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3404. get { return Descriptor; }
  3405. }
  3406. public ForeignMessage() {
  3407. OnConstruction();
  3408. }
  3409. partial void OnConstruction();
  3410. public ForeignMessage(ForeignMessage other) : this() {
  3411. c_ = other.c_;
  3412. }
  3413. public ForeignMessage Clone() {
  3414. return new ForeignMessage(this);
  3415. }
  3416. /// <summary>Field number for the "c" field.</summary>
  3417. public const int CFieldNumber = 1;
  3418. private int c_;
  3419. public int C {
  3420. get { return c_; }
  3421. set {
  3422. c_ = value;
  3423. }
  3424. }
  3425. public override bool Equals(object other) {
  3426. return Equals(other as ForeignMessage);
  3427. }
  3428. public bool Equals(ForeignMessage other) {
  3429. if (ReferenceEquals(other, null)) {
  3430. return false;
  3431. }
  3432. if (ReferenceEquals(other, this)) {
  3433. return true;
  3434. }
  3435. if (C != other.C) return false;
  3436. return true;
  3437. }
  3438. public override int GetHashCode() {
  3439. int hash = 1;
  3440. if (C != 0) hash ^= C.GetHashCode();
  3441. return hash;
  3442. }
  3443. public override string ToString() {
  3444. return pb::JsonFormatter.ToDiagnosticString(this);
  3445. }
  3446. public void WriteTo(pb::CodedOutputStream output) {
  3447. if (C != 0) {
  3448. output.WriteRawTag(8);
  3449. output.WriteInt32(C);
  3450. }
  3451. }
  3452. public int CalculateSize() {
  3453. int size = 0;
  3454. if (C != 0) {
  3455. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  3456. }
  3457. return size;
  3458. }
  3459. public void MergeFrom(ForeignMessage other) {
  3460. if (other == null) {
  3461. return;
  3462. }
  3463. if (other.C != 0) {
  3464. C = other.C;
  3465. }
  3466. }
  3467. public void MergeFrom(pb::CodedInputStream input) {
  3468. uint tag;
  3469. while ((tag = input.ReadTag()) != 0) {
  3470. switch(tag) {
  3471. default:
  3472. input.SkipLastField();
  3473. break;
  3474. case 8: {
  3475. C = input.ReadInt32();
  3476. break;
  3477. }
  3478. }
  3479. }
  3480. }
  3481. }
  3482. #endregion
  3483. }
  3484. #endregion Designer generated code