UnittestWellKnownTypes.cs 145 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/unittest_well_known_types.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Google.Protobuf.TestProtos {
  12. /// <summary>Holder for reflection information generated from google/protobuf/unittest_well_known_types.proto</summary>
  13. public static partial class UnittestWellKnownTypesReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for google/protobuf/unittest_well_known_types.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestWellKnownTypesReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Ci9nb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rfd2VsbF9rbm93bl90eXBlcy5w",
  24. "cm90bxIRcHJvdG9idWZfdW5pdHRlc3QaGWdvb2dsZS9wcm90b2J1Zi9hbnku",
  25. "cHJvdG8aGWdvb2dsZS9wcm90b2J1Zi9hcGkucHJvdG8aHmdvb2dsZS9wcm90",
  26. "b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy",
  27. "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxokZ29vZ2xl",
  28. "L3Byb3RvYnVmL3NvdXJjZV9jb250ZXh0LnByb3RvGhxnb29nbGUvcHJvdG9i",
  29. "dWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy",
  30. "b3RvGhpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxoeZ29vZ2xlL3Byb3Rv",
  31. "YnVmL3dyYXBwZXJzLnByb3RvIr4HChJUZXN0V2VsbEtub3duVHlwZXMSJwoJ",
  32. "YW55X2ZpZWxkGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRInCglhcGlf",
  33. "ZmllbGQYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpEjEKDmR1cmF0aW9u",
  34. "X2ZpZWxkGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEisKC2Vt",
  35. "cHR5X2ZpZWxkGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EjQKEGZp",
  36. "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
  37. "YXNrEjwKFHNvdXJjZV9jb250ZXh0X2ZpZWxkGAYgASgLMh4uZ29vZ2xlLnBy",
  38. "b3RvYnVmLlNvdXJjZUNvbnRleHQSLQoMc3RydWN0X2ZpZWxkGAcgASgLMhcu",
  39. "Z29vZ2xlLnByb3RvYnVmLlN0cnVjdBIzCg90aW1lc3RhbXBfZmllbGQYCCAB",
  40. "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEikKCnR5cGVfZmllbGQY",
  41. "CSABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZRIyCgxkb3VibGVfZmllbGQY",
  42. "CiABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSMAoLZmxvYXRf",
  43. "ZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRIwCgtp",
  44. "bnQ2NF9maWVsZBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
  45. "EjIKDHVpbnQ2NF9maWVsZBgNIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50",
  46. "NjRWYWx1ZRIwCgtpbnQzMl9maWVsZBgOIAEoCzIbLmdvb2dsZS5wcm90b2J1",
  47. "Zi5JbnQzMlZhbHVlEjIKDHVpbnQzMl9maWVsZBgPIAEoCzIcLmdvb2dsZS5w",
  48. "cm90b2J1Zi5VSW50MzJWYWx1ZRIuCgpib29sX2ZpZWxkGBAgASgLMhouZ29v",
  49. "Z2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIyCgxzdHJpbmdfZmllbGQYESABKAsy",
  50. "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMAoLYnl0ZXNfZmllbGQY",
  51. "EiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZRIrCgt2YWx1ZV9m",
  52. "aWVsZBgTIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSKVBwoWUmVwZWF0",
  53. "ZWRXZWxsS25vd25UeXBlcxInCglhbnlfZmllbGQYASADKAsyFC5nb29nbGUu",
  54. "cHJvdG9idWYuQW55EicKCWFwaV9maWVsZBgCIAMoCzIULmdvb2dsZS5wcm90",
  55. "b2J1Zi5BcGkSMQoOZHVyYXRpb25fZmllbGQYAyADKAsyGS5nb29nbGUucHJv",
  56. "dG9idWYuRHVyYXRpb24SKwoLZW1wdHlfZmllbGQYBCADKAsyFi5nb29nbGUu",
  57. "cHJvdG9idWYuRW1wdHkSNAoQZmllbGRfbWFza19maWVsZBgFIAMoCzIaLmdv",
  58. "b2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSPAoUc291cmNlX2NvbnRleHRfZmll",
  59. "bGQYBiADKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBItCgxz",
  60. "dHJ1Y3RfZmllbGQYByADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjMK",
  61. "D3RpbWVzdGFtcF9maWVsZBgIIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l",
  62. "c3RhbXASKQoKdHlwZV9maWVsZBgJIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5U",
  63. "eXBlEjIKDGRvdWJsZV9maWVsZBgKIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5E",
  64. "b3VibGVWYWx1ZRIwCgtmbG9hdF9maWVsZBgLIAMoCzIbLmdvb2dsZS5wcm90",
  65. "b2J1Zi5GbG9hdFZhbHVlEjAKC2ludDY0X2ZpZWxkGAwgAygLMhsuZ29vZ2xl",
  66. "LnByb3RvYnVmLkludDY0VmFsdWUSMgoMdWludDY0X2ZpZWxkGA0gAygLMhwu",
  67. "Z29vZ2xlLnByb3RvYnVmLlVJbnQ2NFZhbHVlEjAKC2ludDMyX2ZpZWxkGA4g",
  68. "AygLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMgoMdWludDMyX2Zp",
  69. "ZWxkGA8gAygLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEi4KCmJv",
  70. "b2xfZmllbGQYECADKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlEjIK",
  71. "DHN0cmluZ19maWVsZBgRIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
  72. "YWx1ZRIwCgtieXRlc19maWVsZBgSIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5C",
  73. "eXRlc1ZhbHVlIsUHChNPbmVvZldlbGxLbm93blR5cGVzEikKCWFueV9maWVs",
  74. "ZBgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIABIpCglhcGlfZmllbGQY",
  75. "AiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpSAASMwoOZHVyYXRpb25fZmll",
  76. "bGQYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IABItCgtlbXB0",
  77. "eV9maWVsZBgEIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEjYKEGZp",
  78. "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
  79. "YXNrSAASPgoUc291cmNlX2NvbnRleHRfZmllbGQYBiABKAsyHi5nb29nbGUu",
  80. "cHJvdG9idWYuU291cmNlQ29udGV4dEgAEi8KDHN0cnVjdF9maWVsZBgHIAEo",
  81. "CzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABI1Cg90aW1lc3RhbXBfZmll",
  82. "bGQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASKwoKdHlw",
  83. "ZV9maWVsZBgJIAEoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlSAASNAoMZG91",
  84. "YmxlX2ZpZWxkGAogASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZhbHVl",
  85. "SAASMgoLZmxvYXRfZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxv",
  86. "YXRWYWx1ZUgAEjIKC2ludDY0X2ZpZWxkGAwgASgLMhsuZ29vZ2xlLnByb3Rv",
  87. "YnVmLkludDY0VmFsdWVIABI0Cgx1aW50NjRfZmllbGQYDSABKAsyHC5nb29n",
  88. "bGUucHJvdG9idWYuVUludDY0VmFsdWVIABIyCgtpbnQzMl9maWVsZBgOIAEo",
  89. "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlSAASNAoMdWludDMyX2Zp",
  90. "ZWxkGA8gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlSAASMAoK",
  91. "Ym9vbF9maWVsZBgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWVI",
  92. "ABI0CgxzdHJpbmdfZmllbGQYESABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry",
  93. "aW5nVmFsdWVIABIyCgtieXRlc19maWVsZBgSIAEoCzIbLmdvb2dsZS5wcm90",
  94. "b2J1Zi5CeXRlc1ZhbHVlSABCDQoLb25lb2ZfZmllbGQilhYKEU1hcFdlbGxL",
  95. "bm93blR5cGVzEkUKCWFueV9maWVsZBgBIAMoCzIyLnByb3RvYnVmX3VuaXR0",
  96. "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkFueUZpZWxkRW50cnkSRQoJYXBpX2Zp",
  97. "ZWxkGAIgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlw",
  98. "ZXMuQXBpRmllbGRFbnRyeRJPCg5kdXJhdGlvbl9maWVsZBgDIAMoCzI3LnBy",
  99. "b3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkR1cmF0aW9uRmll",
  100. "bGRFbnRyeRJJCgtlbXB0eV9maWVsZBgEIAMoCzI0LnByb3RvYnVmX3VuaXR0",
  101. "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkVtcHR5RmllbGRFbnRyeRJSChBmaWVs",
  102. "ZF9tYXNrX2ZpZWxkGAUgAygLMjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
  103. "bEtub3duVHlwZXMuRmllbGRNYXNrRmllbGRFbnRyeRJaChRzb3VyY2VfY29u",
  104. "dGV4dF9maWVsZBgGIAMoCzI8LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxL",
  105. "bm93blR5cGVzLlNvdXJjZUNvbnRleHRGaWVsZEVudHJ5EksKDHN0cnVjdF9m",
  106. "aWVsZBgHIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5",
  107. "cGVzLlN0cnVjdEZpZWxkRW50cnkSUQoPdGltZXN0YW1wX2ZpZWxkGAggAygL",
  108. "MjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVGltZXN0",
  109. "YW1wRmllbGRFbnRyeRJHCgp0eXBlX2ZpZWxkGAkgAygLMjMucHJvdG9idWZf",
  110. "dW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVHlwZUZpZWxkRW50cnkSSwoM",
  111. "ZG91YmxlX2ZpZWxkGAogAygLMjUucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
  112. "bEtub3duVHlwZXMuRG91YmxlRmllbGRFbnRyeRJJCgtmbG9hdF9maWVsZBgL",
  113. "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkZs",
  114. "b2F0RmllbGRFbnRyeRJJCgtpbnQ2NF9maWVsZBgMIAMoCzI0LnByb3RvYnVm",
  115. "X3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkludDY0RmllbGRFbnRyeRJL",
  116. "Cgx1aW50NjRfZmllbGQYDSADKAsyNS5wcm90b2J1Zl91bml0dGVzdC5NYXBX",
  117. "ZWxsS25vd25UeXBlcy5VaW50NjRGaWVsZEVudHJ5EkkKC2ludDMyX2ZpZWxk",
  118. "GA4gAygLMjQucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMu",
  119. "SW50MzJGaWVsZEVudHJ5EksKDHVpbnQzMl9maWVsZBgPIAMoCzI1LnByb3Rv",
  120. "YnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLlVpbnQzMkZpZWxkRW50",
  121. "cnkSRwoKYm9vbF9maWVsZBgQIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0Lk1h",
  122. "cFdlbGxLbm93blR5cGVzLkJvb2xGaWVsZEVudHJ5EksKDHN0cmluZ19maWVs",
  123. "ZBgRIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVz",
  124. "LlN0cmluZ0ZpZWxkRW50cnkSSQoLYnl0ZXNfZmllbGQYEiADKAsyNC5wcm90",
  125. "b2J1Zl91bml0dGVzdC5NYXBXZWxsS25vd25UeXBlcy5CeXRlc0ZpZWxkRW50",
  126. "cnkaRQoNQW55RmllbGRFbnRyeRILCgNrZXkYASABKAUSIwoFdmFsdWUYAiAB",
  127. "KAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARpFCg1BcGlGaWVsZEVudHJ5",
  128. "EgsKA2tleRgBIAEoBRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1",
  129. "Zi5BcGk6AjgBGk8KEkR1cmF0aW9uRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
  130. "KAoFdmFsdWUYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb246AjgB",
  131. "GkkKD0VtcHR5RmllbGRFbnRyeRILCgNrZXkYASABKAUSJQoFdmFsdWUYAiAB",
  132. "KAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHk6AjgBGlEKE0ZpZWxkTWFza0Zp",
  133. "ZWxkRW50cnkSCwoDa2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xl",
  134. "LnByb3RvYnVmLkZpZWxkTWFzazoCOAEaWQoXU291cmNlQ29udGV4dEZpZWxk",
  135. "RW50cnkSCwoDa2V5GAEgASgFEi0KBXZhbHVlGAIgASgLMh4uZ29vZ2xlLnBy",
  136. "b3RvYnVmLlNvdXJjZUNvbnRleHQ6AjgBGksKEFN0cnVjdEZpZWxkRW50cnkS",
  137. "CwoDa2V5GAEgASgFEiYKBXZhbHVlGAIgASgLMhcuZ29vZ2xlLnByb3RvYnVm",
  138. "LlN0cnVjdDoCOAEaUQoTVGltZXN0YW1wRmllbGRFbnRyeRILCgNrZXkYASAB",
  139. "KAUSKQoFdmFsdWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w",
  140. "OgI4ARpHCg5UeXBlRmllbGRFbnRyeRILCgNrZXkYASABKAUSJAoFdmFsdWUY",
  141. "AiABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZToCOAEaUAoQRG91YmxlRmll",
  142. "bGRFbnRyeRILCgNrZXkYASABKAUSKwoFdmFsdWUYAiABKAsyHC5nb29nbGUu",
  143. "cHJvdG9idWYuRG91YmxlVmFsdWU6AjgBGk4KD0Zsb2F0RmllbGRFbnRyeRIL",
  144. "CgNrZXkYASABKAUSKgoFdmFsdWUYAiABKAsyGy5nb29nbGUucHJvdG9idWYu",
  145. "RmxvYXRWYWx1ZToCOAEaTgoPSW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEo",
  146. "BRIqCgV2YWx1ZRgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
  147. "OgI4ARpQChBVaW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1",
  148. "ZRgCIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50NjRWYWx1ZToCOAEaTgoP",
  149. "SW50MzJGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIqCgV2YWx1ZRgCIAEoCzIb",
  150. "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlOgI4ARpQChBVaW50MzJGaWVs",
  151. "ZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1ZRgCIAEoCzIcLmdvb2dsZS5w",
  152. "cm90b2J1Zi5VSW50MzJWYWx1ZToCOAEaTAoOQm9vbEZpZWxkRW50cnkSCwoD",
  153. "a2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJv",
  154. "b2xWYWx1ZToCOAEaUAoQU3RyaW5nRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
  155. "KwoFdmFsdWUYAiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWU6",
  156. "AjgBGk4KD0J5dGVzRmllbGRFbnRyeRILCgNrZXkYASABKAUSKgoFdmFsdWUY",
  157. "AiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZToCOAFCOQoYY29t",
  158. "Lmdvb2dsZS5wcm90b2J1Zi50ZXN0UAGqAhpHb29nbGUuUHJvdG9idWYuVGVz",
  159. "dFByb3Rvc2IGcHJvdG8z"));
  160. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  161. new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TypeReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
  162. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  163. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestWellKnownTypes), global::Google.Protobuf.TestProtos.TestWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField", "ValueField" }, null, null, null, null),
  164. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes), global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, null, null),
  165. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneofWellKnownTypes), global::Google.Protobuf.TestProtos.OneofWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, new[]{ "OneofField" }, null, null, null),
  166. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MapWellKnownTypes), global::Google.Protobuf.TestProtos.MapWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, })
  167. }));
  168. }
  169. #endregion
  170. }
  171. #region Messages
  172. /// <summary>
  173. /// Test that we can include all well-known types.
  174. /// Each wrapper type is included separately, as languages
  175. /// map handle different wrappers in different ways.
  176. /// </summary>
  177. public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTypes>
  178. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  179. , pb::IBufferMessage
  180. #endif
  181. {
  182. private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes());
  183. private pb::UnknownFieldSet _unknownFields;
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  185. public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _parser; } }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  187. public static pbr::MessageDescriptor Descriptor {
  188. get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[0]; }
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. pbr::MessageDescriptor pb::IMessage.Descriptor {
  192. get { return Descriptor; }
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. public TestWellKnownTypes() {
  196. OnConstruction();
  197. }
  198. partial void OnConstruction();
  199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  200. public TestWellKnownTypes(TestWellKnownTypes other) : this() {
  201. anyField_ = other.anyField_ != null ? other.anyField_.Clone() : null;
  202. apiField_ = other.apiField_ != null ? other.apiField_.Clone() : null;
  203. durationField_ = other.durationField_ != null ? other.durationField_.Clone() : null;
  204. emptyField_ = other.emptyField_ != null ? other.emptyField_.Clone() : null;
  205. fieldMaskField_ = other.fieldMaskField_ != null ? other.fieldMaskField_.Clone() : null;
  206. sourceContextField_ = other.sourceContextField_ != null ? other.sourceContextField_.Clone() : null;
  207. structField_ = other.structField_ != null ? other.structField_.Clone() : null;
  208. timestampField_ = other.timestampField_ != null ? other.timestampField_.Clone() : null;
  209. typeField_ = other.typeField_ != null ? other.typeField_.Clone() : null;
  210. DoubleField = other.DoubleField;
  211. FloatField = other.FloatField;
  212. Int64Field = other.Int64Field;
  213. Uint64Field = other.Uint64Field;
  214. Int32Field = other.Int32Field;
  215. Uint32Field = other.Uint32Field;
  216. BoolField = other.BoolField;
  217. StringField = other.StringField;
  218. BytesField = other.BytesField;
  219. valueField_ = other.valueField_ != null ? other.valueField_.Clone() : null;
  220. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public TestWellKnownTypes Clone() {
  224. return new TestWellKnownTypes(this);
  225. }
  226. /// <summary>Field number for the "any_field" field.</summary>
  227. public const int AnyFieldFieldNumber = 1;
  228. private global::Google.Protobuf.WellKnownTypes.Any anyField_;
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  230. public global::Google.Protobuf.WellKnownTypes.Any AnyField {
  231. get { return anyField_; }
  232. set {
  233. anyField_ = value;
  234. }
  235. }
  236. /// <summary>Field number for the "api_field" field.</summary>
  237. public const int ApiFieldFieldNumber = 2;
  238. private global::Google.Protobuf.WellKnownTypes.Api apiField_;
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  240. public global::Google.Protobuf.WellKnownTypes.Api ApiField {
  241. get { return apiField_; }
  242. set {
  243. apiField_ = value;
  244. }
  245. }
  246. /// <summary>Field number for the "duration_field" field.</summary>
  247. public const int DurationFieldFieldNumber = 3;
  248. private global::Google.Protobuf.WellKnownTypes.Duration durationField_;
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  250. public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
  251. get { return durationField_; }
  252. set {
  253. durationField_ = value;
  254. }
  255. }
  256. /// <summary>Field number for the "empty_field" field.</summary>
  257. public const int EmptyFieldFieldNumber = 4;
  258. private global::Google.Protobuf.WellKnownTypes.Empty emptyField_;
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
  261. get { return emptyField_; }
  262. set {
  263. emptyField_ = value;
  264. }
  265. }
  266. /// <summary>Field number for the "field_mask_field" field.</summary>
  267. public const int FieldMaskFieldFieldNumber = 5;
  268. private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_;
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  270. public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
  271. get { return fieldMaskField_; }
  272. set {
  273. fieldMaskField_ = value;
  274. }
  275. }
  276. /// <summary>Field number for the "source_context_field" field.</summary>
  277. public const int SourceContextFieldFieldNumber = 6;
  278. private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextField_;
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
  281. get { return sourceContextField_; }
  282. set {
  283. sourceContextField_ = value;
  284. }
  285. }
  286. /// <summary>Field number for the "struct_field" field.</summary>
  287. public const int StructFieldFieldNumber = 7;
  288. private global::Google.Protobuf.WellKnownTypes.Struct structField_;
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  290. public global::Google.Protobuf.WellKnownTypes.Struct StructField {
  291. get { return structField_; }
  292. set {
  293. structField_ = value;
  294. }
  295. }
  296. /// <summary>Field number for the "timestamp_field" field.</summary>
  297. public const int TimestampFieldFieldNumber = 8;
  298. private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_;
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  300. public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
  301. get { return timestampField_; }
  302. set {
  303. timestampField_ = value;
  304. }
  305. }
  306. /// <summary>Field number for the "type_field" field.</summary>
  307. public const int TypeFieldFieldNumber = 9;
  308. private global::Google.Protobuf.WellKnownTypes.Type typeField_;
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  310. public global::Google.Protobuf.WellKnownTypes.Type TypeField {
  311. get { return typeField_; }
  312. set {
  313. typeField_ = value;
  314. }
  315. }
  316. /// <summary>Field number for the "double_field" field.</summary>
  317. public const int DoubleFieldFieldNumber = 10;
  318. private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
  319. private double? doubleField_;
  320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  321. public double? DoubleField {
  322. get { return doubleField_; }
  323. set {
  324. doubleField_ = value;
  325. }
  326. }
  327. /// <summary>Field number for the "float_field" field.</summary>
  328. public const int FloatFieldFieldNumber = 11;
  329. private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
  330. private float? floatField_;
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  332. public float? FloatField {
  333. get { return floatField_; }
  334. set {
  335. floatField_ = value;
  336. }
  337. }
  338. /// <summary>Field number for the "int64_field" field.</summary>
  339. public const int Int64FieldFieldNumber = 12;
  340. private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
  341. private long? int64Field_;
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. public long? Int64Field {
  344. get { return int64Field_; }
  345. set {
  346. int64Field_ = value;
  347. }
  348. }
  349. /// <summary>Field number for the "uint64_field" field.</summary>
  350. public const int Uint64FieldFieldNumber = 13;
  351. private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
  352. private ulong? uint64Field_;
  353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  354. public ulong? Uint64Field {
  355. get { return uint64Field_; }
  356. set {
  357. uint64Field_ = value;
  358. }
  359. }
  360. /// <summary>Field number for the "int32_field" field.</summary>
  361. public const int Int32FieldFieldNumber = 14;
  362. private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
  363. private int? int32Field_;
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  365. public int? Int32Field {
  366. get { return int32Field_; }
  367. set {
  368. int32Field_ = value;
  369. }
  370. }
  371. /// <summary>Field number for the "uint32_field" field.</summary>
  372. public const int Uint32FieldFieldNumber = 15;
  373. private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
  374. private uint? uint32Field_;
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  376. public uint? Uint32Field {
  377. get { return uint32Field_; }
  378. set {
  379. uint32Field_ = value;
  380. }
  381. }
  382. /// <summary>Field number for the "bool_field" field.</summary>
  383. public const int BoolFieldFieldNumber = 16;
  384. private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
  385. private bool? boolField_;
  386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  387. public bool? BoolField {
  388. get { return boolField_; }
  389. set {
  390. boolField_ = value;
  391. }
  392. }
  393. /// <summary>Field number for the "string_field" field.</summary>
  394. public const int StringFieldFieldNumber = 17;
  395. private static readonly pb::FieldCodec<string> _single_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
  396. private string stringField_;
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  398. public string StringField {
  399. get { return stringField_; }
  400. set {
  401. stringField_ = value;
  402. }
  403. }
  404. /// <summary>Field number for the "bytes_field" field.</summary>
  405. public const int BytesFieldFieldNumber = 18;
  406. private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
  407. private pb::ByteString bytesField_;
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public pb::ByteString BytesField {
  410. get { return bytesField_; }
  411. set {
  412. bytesField_ = value;
  413. }
  414. }
  415. /// <summary>Field number for the "value_field" field.</summary>
  416. public const int ValueFieldFieldNumber = 19;
  417. private global::Google.Protobuf.WellKnownTypes.Value valueField_;
  418. /// <summary>
  419. /// Part of struct, but useful to be able to test separately
  420. /// </summary>
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  422. public global::Google.Protobuf.WellKnownTypes.Value ValueField {
  423. get { return valueField_; }
  424. set {
  425. valueField_ = value;
  426. }
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. public override bool Equals(object other) {
  430. return Equals(other as TestWellKnownTypes);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. public bool Equals(TestWellKnownTypes other) {
  434. if (ReferenceEquals(other, null)) {
  435. return false;
  436. }
  437. if (ReferenceEquals(other, this)) {
  438. return true;
  439. }
  440. if (!object.Equals(AnyField, other.AnyField)) return false;
  441. if (!object.Equals(ApiField, other.ApiField)) return false;
  442. if (!object.Equals(DurationField, other.DurationField)) return false;
  443. if (!object.Equals(EmptyField, other.EmptyField)) return false;
  444. if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
  445. if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
  446. if (!object.Equals(StructField, other.StructField)) return false;
  447. if (!object.Equals(TimestampField, other.TimestampField)) return false;
  448. if (!object.Equals(TypeField, other.TypeField)) return false;
  449. if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(DoubleField, other.DoubleField)) return false;
  450. if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(FloatField, other.FloatField)) return false;
  451. if (Int64Field != other.Int64Field) return false;
  452. if (Uint64Field != other.Uint64Field) return false;
  453. if (Int32Field != other.Int32Field) return false;
  454. if (Uint32Field != other.Uint32Field) return false;
  455. if (BoolField != other.BoolField) return false;
  456. if (StringField != other.StringField) return false;
  457. if (BytesField != other.BytesField) return false;
  458. if (!object.Equals(ValueField, other.ValueField)) return false;
  459. return Equals(_unknownFields, other._unknownFields);
  460. }
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  462. public override int GetHashCode() {
  463. int hash = 1;
  464. if (anyField_ != null) hash ^= AnyField.GetHashCode();
  465. if (apiField_ != null) hash ^= ApiField.GetHashCode();
  466. if (durationField_ != null) hash ^= DurationField.GetHashCode();
  467. if (emptyField_ != null) hash ^= EmptyField.GetHashCode();
  468. if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode();
  469. if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode();
  470. if (structField_ != null) hash ^= StructField.GetHashCode();
  471. if (timestampField_ != null) hash ^= TimestampField.GetHashCode();
  472. if (typeField_ != null) hash ^= TypeField.GetHashCode();
  473. if (doubleField_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField);
  474. if (floatField_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(FloatField);
  475. if (int64Field_ != null) hash ^= Int64Field.GetHashCode();
  476. if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode();
  477. if (int32Field_ != null) hash ^= Int32Field.GetHashCode();
  478. if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode();
  479. if (boolField_ != null) hash ^= BoolField.GetHashCode();
  480. if (stringField_ != null) hash ^= StringField.GetHashCode();
  481. if (bytesField_ != null) hash ^= BytesField.GetHashCode();
  482. if (valueField_ != null) hash ^= ValueField.GetHashCode();
  483. if (_unknownFields != null) {
  484. hash ^= _unknownFields.GetHashCode();
  485. }
  486. return hash;
  487. }
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  489. public override string ToString() {
  490. return pb::JsonFormatter.ToDiagnosticString(this);
  491. }
  492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  493. public void WriteTo(pb::CodedOutputStream output) {
  494. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  495. output.WriteRawMessage(this);
  496. #else
  497. if (anyField_ != null) {
  498. output.WriteRawTag(10);
  499. output.WriteMessage(AnyField);
  500. }
  501. if (apiField_ != null) {
  502. output.WriteRawTag(18);
  503. output.WriteMessage(ApiField);
  504. }
  505. if (durationField_ != null) {
  506. output.WriteRawTag(26);
  507. output.WriteMessage(DurationField);
  508. }
  509. if (emptyField_ != null) {
  510. output.WriteRawTag(34);
  511. output.WriteMessage(EmptyField);
  512. }
  513. if (fieldMaskField_ != null) {
  514. output.WriteRawTag(42);
  515. output.WriteMessage(FieldMaskField);
  516. }
  517. if (sourceContextField_ != null) {
  518. output.WriteRawTag(50);
  519. output.WriteMessage(SourceContextField);
  520. }
  521. if (structField_ != null) {
  522. output.WriteRawTag(58);
  523. output.WriteMessage(StructField);
  524. }
  525. if (timestampField_ != null) {
  526. output.WriteRawTag(66);
  527. output.WriteMessage(TimestampField);
  528. }
  529. if (typeField_ != null) {
  530. output.WriteRawTag(74);
  531. output.WriteMessage(TypeField);
  532. }
  533. if (doubleField_ != null) {
  534. _single_doubleField_codec.WriteTagAndValue(output, DoubleField);
  535. }
  536. if (floatField_ != null) {
  537. _single_floatField_codec.WriteTagAndValue(output, FloatField);
  538. }
  539. if (int64Field_ != null) {
  540. _single_int64Field_codec.WriteTagAndValue(output, Int64Field);
  541. }
  542. if (uint64Field_ != null) {
  543. _single_uint64Field_codec.WriteTagAndValue(output, Uint64Field);
  544. }
  545. if (int32Field_ != null) {
  546. _single_int32Field_codec.WriteTagAndValue(output, Int32Field);
  547. }
  548. if (uint32Field_ != null) {
  549. _single_uint32Field_codec.WriteTagAndValue(output, Uint32Field);
  550. }
  551. if (boolField_ != null) {
  552. _single_boolField_codec.WriteTagAndValue(output, BoolField);
  553. }
  554. if (stringField_ != null) {
  555. _single_stringField_codec.WriteTagAndValue(output, StringField);
  556. }
  557. if (bytesField_ != null) {
  558. _single_bytesField_codec.WriteTagAndValue(output, BytesField);
  559. }
  560. if (valueField_ != null) {
  561. output.WriteRawTag(154, 1);
  562. output.WriteMessage(ValueField);
  563. }
  564. if (_unknownFields != null) {
  565. _unknownFields.WriteTo(output);
  566. }
  567. #endif
  568. }
  569. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  571. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  572. if (anyField_ != null) {
  573. output.WriteRawTag(10);
  574. output.WriteMessage(AnyField);
  575. }
  576. if (apiField_ != null) {
  577. output.WriteRawTag(18);
  578. output.WriteMessage(ApiField);
  579. }
  580. if (durationField_ != null) {
  581. output.WriteRawTag(26);
  582. output.WriteMessage(DurationField);
  583. }
  584. if (emptyField_ != null) {
  585. output.WriteRawTag(34);
  586. output.WriteMessage(EmptyField);
  587. }
  588. if (fieldMaskField_ != null) {
  589. output.WriteRawTag(42);
  590. output.WriteMessage(FieldMaskField);
  591. }
  592. if (sourceContextField_ != null) {
  593. output.WriteRawTag(50);
  594. output.WriteMessage(SourceContextField);
  595. }
  596. if (structField_ != null) {
  597. output.WriteRawTag(58);
  598. output.WriteMessage(StructField);
  599. }
  600. if (timestampField_ != null) {
  601. output.WriteRawTag(66);
  602. output.WriteMessage(TimestampField);
  603. }
  604. if (typeField_ != null) {
  605. output.WriteRawTag(74);
  606. output.WriteMessage(TypeField);
  607. }
  608. if (doubleField_ != null) {
  609. _single_doubleField_codec.WriteTagAndValue(ref output, DoubleField);
  610. }
  611. if (floatField_ != null) {
  612. _single_floatField_codec.WriteTagAndValue(ref output, FloatField);
  613. }
  614. if (int64Field_ != null) {
  615. _single_int64Field_codec.WriteTagAndValue(ref output, Int64Field);
  616. }
  617. if (uint64Field_ != null) {
  618. _single_uint64Field_codec.WriteTagAndValue(ref output, Uint64Field);
  619. }
  620. if (int32Field_ != null) {
  621. _single_int32Field_codec.WriteTagAndValue(ref output, Int32Field);
  622. }
  623. if (uint32Field_ != null) {
  624. _single_uint32Field_codec.WriteTagAndValue(ref output, Uint32Field);
  625. }
  626. if (boolField_ != null) {
  627. _single_boolField_codec.WriteTagAndValue(ref output, BoolField);
  628. }
  629. if (stringField_ != null) {
  630. _single_stringField_codec.WriteTagAndValue(ref output, StringField);
  631. }
  632. if (bytesField_ != null) {
  633. _single_bytesField_codec.WriteTagAndValue(ref output, BytesField);
  634. }
  635. if (valueField_ != null) {
  636. output.WriteRawTag(154, 1);
  637. output.WriteMessage(ValueField);
  638. }
  639. if (_unknownFields != null) {
  640. _unknownFields.WriteTo(ref output);
  641. }
  642. }
  643. #endif
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  645. public int CalculateSize() {
  646. int size = 0;
  647. if (anyField_ != null) {
  648. size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
  649. }
  650. if (apiField_ != null) {
  651. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
  652. }
  653. if (durationField_ != null) {
  654. size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
  655. }
  656. if (emptyField_ != null) {
  657. size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
  658. }
  659. if (fieldMaskField_ != null) {
  660. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
  661. }
  662. if (sourceContextField_ != null) {
  663. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
  664. }
  665. if (structField_ != null) {
  666. size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
  667. }
  668. if (timestampField_ != null) {
  669. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
  670. }
  671. if (typeField_ != null) {
  672. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
  673. }
  674. if (doubleField_ != null) {
  675. size += _single_doubleField_codec.CalculateSizeWithTag(DoubleField);
  676. }
  677. if (floatField_ != null) {
  678. size += _single_floatField_codec.CalculateSizeWithTag(FloatField);
  679. }
  680. if (int64Field_ != null) {
  681. size += _single_int64Field_codec.CalculateSizeWithTag(Int64Field);
  682. }
  683. if (uint64Field_ != null) {
  684. size += _single_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
  685. }
  686. if (int32Field_ != null) {
  687. size += _single_int32Field_codec.CalculateSizeWithTag(Int32Field);
  688. }
  689. if (uint32Field_ != null) {
  690. size += _single_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
  691. }
  692. if (boolField_ != null) {
  693. size += _single_boolField_codec.CalculateSizeWithTag(BoolField);
  694. }
  695. if (stringField_ != null) {
  696. size += _single_stringField_codec.CalculateSizeWithTag(StringField);
  697. }
  698. if (bytesField_ != null) {
  699. size += _single_bytesField_codec.CalculateSizeWithTag(BytesField);
  700. }
  701. if (valueField_ != null) {
  702. size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField);
  703. }
  704. if (_unknownFields != null) {
  705. size += _unknownFields.CalculateSize();
  706. }
  707. return size;
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  710. public void MergeFrom(TestWellKnownTypes other) {
  711. if (other == null) {
  712. return;
  713. }
  714. if (other.anyField_ != null) {
  715. if (anyField_ == null) {
  716. AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
  717. }
  718. AnyField.MergeFrom(other.AnyField);
  719. }
  720. if (other.apiField_ != null) {
  721. if (apiField_ == null) {
  722. ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
  723. }
  724. ApiField.MergeFrom(other.ApiField);
  725. }
  726. if (other.durationField_ != null) {
  727. if (durationField_ == null) {
  728. DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
  729. }
  730. DurationField.MergeFrom(other.DurationField);
  731. }
  732. if (other.emptyField_ != null) {
  733. if (emptyField_ == null) {
  734. EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
  735. }
  736. EmptyField.MergeFrom(other.EmptyField);
  737. }
  738. if (other.fieldMaskField_ != null) {
  739. if (fieldMaskField_ == null) {
  740. FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  741. }
  742. FieldMaskField.MergeFrom(other.FieldMaskField);
  743. }
  744. if (other.sourceContextField_ != null) {
  745. if (sourceContextField_ == null) {
  746. SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  747. }
  748. SourceContextField.MergeFrom(other.SourceContextField);
  749. }
  750. if (other.structField_ != null) {
  751. if (structField_ == null) {
  752. StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
  753. }
  754. StructField.MergeFrom(other.StructField);
  755. }
  756. if (other.timestampField_ != null) {
  757. if (timestampField_ == null) {
  758. TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  759. }
  760. TimestampField.MergeFrom(other.TimestampField);
  761. }
  762. if (other.typeField_ != null) {
  763. if (typeField_ == null) {
  764. TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
  765. }
  766. TypeField.MergeFrom(other.TypeField);
  767. }
  768. if (other.doubleField_ != null) {
  769. if (doubleField_ == null || other.DoubleField != 0D) {
  770. DoubleField = other.DoubleField;
  771. }
  772. }
  773. if (other.floatField_ != null) {
  774. if (floatField_ == null || other.FloatField != 0F) {
  775. FloatField = other.FloatField;
  776. }
  777. }
  778. if (other.int64Field_ != null) {
  779. if (int64Field_ == null || other.Int64Field != 0L) {
  780. Int64Field = other.Int64Field;
  781. }
  782. }
  783. if (other.uint64Field_ != null) {
  784. if (uint64Field_ == null || other.Uint64Field != 0UL) {
  785. Uint64Field = other.Uint64Field;
  786. }
  787. }
  788. if (other.int32Field_ != null) {
  789. if (int32Field_ == null || other.Int32Field != 0) {
  790. Int32Field = other.Int32Field;
  791. }
  792. }
  793. if (other.uint32Field_ != null) {
  794. if (uint32Field_ == null || other.Uint32Field != 0) {
  795. Uint32Field = other.Uint32Field;
  796. }
  797. }
  798. if (other.boolField_ != null) {
  799. if (boolField_ == null || other.BoolField != false) {
  800. BoolField = other.BoolField;
  801. }
  802. }
  803. if (other.stringField_ != null) {
  804. if (stringField_ == null || other.StringField != "") {
  805. StringField = other.StringField;
  806. }
  807. }
  808. if (other.bytesField_ != null) {
  809. if (bytesField_ == null || other.BytesField != pb::ByteString.Empty) {
  810. BytesField = other.BytesField;
  811. }
  812. }
  813. if (other.valueField_ != null) {
  814. if (valueField_ == null) {
  815. ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
  816. }
  817. ValueField.MergeFrom(other.ValueField);
  818. }
  819. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. public void MergeFrom(pb::CodedInputStream input) {
  823. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  824. input.ReadRawMessage(this);
  825. #else
  826. uint tag;
  827. while ((tag = input.ReadTag()) != 0) {
  828. switch(tag) {
  829. default:
  830. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  831. break;
  832. case 10: {
  833. if (anyField_ == null) {
  834. AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
  835. }
  836. input.ReadMessage(AnyField);
  837. break;
  838. }
  839. case 18: {
  840. if (apiField_ == null) {
  841. ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
  842. }
  843. input.ReadMessage(ApiField);
  844. break;
  845. }
  846. case 26: {
  847. if (durationField_ == null) {
  848. DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
  849. }
  850. input.ReadMessage(DurationField);
  851. break;
  852. }
  853. case 34: {
  854. if (emptyField_ == null) {
  855. EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
  856. }
  857. input.ReadMessage(EmptyField);
  858. break;
  859. }
  860. case 42: {
  861. if (fieldMaskField_ == null) {
  862. FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  863. }
  864. input.ReadMessage(FieldMaskField);
  865. break;
  866. }
  867. case 50: {
  868. if (sourceContextField_ == null) {
  869. SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  870. }
  871. input.ReadMessage(SourceContextField);
  872. break;
  873. }
  874. case 58: {
  875. if (structField_ == null) {
  876. StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
  877. }
  878. input.ReadMessage(StructField);
  879. break;
  880. }
  881. case 66: {
  882. if (timestampField_ == null) {
  883. TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  884. }
  885. input.ReadMessage(TimestampField);
  886. break;
  887. }
  888. case 74: {
  889. if (typeField_ == null) {
  890. TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
  891. }
  892. input.ReadMessage(TypeField);
  893. break;
  894. }
  895. case 82: {
  896. double? value = _single_doubleField_codec.Read(input);
  897. if (doubleField_ == null || value != 0D) {
  898. DoubleField = value;
  899. }
  900. break;
  901. }
  902. case 90: {
  903. float? value = _single_floatField_codec.Read(input);
  904. if (floatField_ == null || value != 0F) {
  905. FloatField = value;
  906. }
  907. break;
  908. }
  909. case 98: {
  910. long? value = _single_int64Field_codec.Read(input);
  911. if (int64Field_ == null || value != 0L) {
  912. Int64Field = value;
  913. }
  914. break;
  915. }
  916. case 106: {
  917. ulong? value = _single_uint64Field_codec.Read(input);
  918. if (uint64Field_ == null || value != 0UL) {
  919. Uint64Field = value;
  920. }
  921. break;
  922. }
  923. case 114: {
  924. int? value = _single_int32Field_codec.Read(input);
  925. if (int32Field_ == null || value != 0) {
  926. Int32Field = value;
  927. }
  928. break;
  929. }
  930. case 122: {
  931. uint? value = _single_uint32Field_codec.Read(input);
  932. if (uint32Field_ == null || value != 0) {
  933. Uint32Field = value;
  934. }
  935. break;
  936. }
  937. case 130: {
  938. bool? value = _single_boolField_codec.Read(input);
  939. if (boolField_ == null || value != false) {
  940. BoolField = value;
  941. }
  942. break;
  943. }
  944. case 138: {
  945. string value = _single_stringField_codec.Read(input);
  946. if (stringField_ == null || value != "") {
  947. StringField = value;
  948. }
  949. break;
  950. }
  951. case 146: {
  952. pb::ByteString value = _single_bytesField_codec.Read(input);
  953. if (bytesField_ == null || value != pb::ByteString.Empty) {
  954. BytesField = value;
  955. }
  956. break;
  957. }
  958. case 154: {
  959. if (valueField_ == null) {
  960. ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
  961. }
  962. input.ReadMessage(ValueField);
  963. break;
  964. }
  965. }
  966. }
  967. #endif
  968. }
  969. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  971. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  972. uint tag;
  973. while ((tag = input.ReadTag()) != 0) {
  974. switch(tag) {
  975. default:
  976. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  977. break;
  978. case 10: {
  979. if (anyField_ == null) {
  980. AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
  981. }
  982. input.ReadMessage(AnyField);
  983. break;
  984. }
  985. case 18: {
  986. if (apiField_ == null) {
  987. ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
  988. }
  989. input.ReadMessage(ApiField);
  990. break;
  991. }
  992. case 26: {
  993. if (durationField_ == null) {
  994. DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
  995. }
  996. input.ReadMessage(DurationField);
  997. break;
  998. }
  999. case 34: {
  1000. if (emptyField_ == null) {
  1001. EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
  1002. }
  1003. input.ReadMessage(EmptyField);
  1004. break;
  1005. }
  1006. case 42: {
  1007. if (fieldMaskField_ == null) {
  1008. FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  1009. }
  1010. input.ReadMessage(FieldMaskField);
  1011. break;
  1012. }
  1013. case 50: {
  1014. if (sourceContextField_ == null) {
  1015. SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  1016. }
  1017. input.ReadMessage(SourceContextField);
  1018. break;
  1019. }
  1020. case 58: {
  1021. if (structField_ == null) {
  1022. StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
  1023. }
  1024. input.ReadMessage(StructField);
  1025. break;
  1026. }
  1027. case 66: {
  1028. if (timestampField_ == null) {
  1029. TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  1030. }
  1031. input.ReadMessage(TimestampField);
  1032. break;
  1033. }
  1034. case 74: {
  1035. if (typeField_ == null) {
  1036. TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
  1037. }
  1038. input.ReadMessage(TypeField);
  1039. break;
  1040. }
  1041. case 82: {
  1042. double? value = _single_doubleField_codec.Read(ref input);
  1043. if (doubleField_ == null || value != 0D) {
  1044. DoubleField = value;
  1045. }
  1046. break;
  1047. }
  1048. case 90: {
  1049. float? value = _single_floatField_codec.Read(ref input);
  1050. if (floatField_ == null || value != 0F) {
  1051. FloatField = value;
  1052. }
  1053. break;
  1054. }
  1055. case 98: {
  1056. long? value = _single_int64Field_codec.Read(ref input);
  1057. if (int64Field_ == null || value != 0L) {
  1058. Int64Field = value;
  1059. }
  1060. break;
  1061. }
  1062. case 106: {
  1063. ulong? value = _single_uint64Field_codec.Read(ref input);
  1064. if (uint64Field_ == null || value != 0UL) {
  1065. Uint64Field = value;
  1066. }
  1067. break;
  1068. }
  1069. case 114: {
  1070. int? value = _single_int32Field_codec.Read(ref input);
  1071. if (int32Field_ == null || value != 0) {
  1072. Int32Field = value;
  1073. }
  1074. break;
  1075. }
  1076. case 122: {
  1077. uint? value = _single_uint32Field_codec.Read(ref input);
  1078. if (uint32Field_ == null || value != 0) {
  1079. Uint32Field = value;
  1080. }
  1081. break;
  1082. }
  1083. case 130: {
  1084. bool? value = _single_boolField_codec.Read(ref input);
  1085. if (boolField_ == null || value != false) {
  1086. BoolField = value;
  1087. }
  1088. break;
  1089. }
  1090. case 138: {
  1091. string value = _single_stringField_codec.Read(ref input);
  1092. if (stringField_ == null || value != "") {
  1093. StringField = value;
  1094. }
  1095. break;
  1096. }
  1097. case 146: {
  1098. pb::ByteString value = _single_bytesField_codec.Read(ref input);
  1099. if (bytesField_ == null || value != pb::ByteString.Empty) {
  1100. BytesField = value;
  1101. }
  1102. break;
  1103. }
  1104. case 154: {
  1105. if (valueField_ == null) {
  1106. ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
  1107. }
  1108. input.ReadMessage(ValueField);
  1109. break;
  1110. }
  1111. }
  1112. }
  1113. }
  1114. #endif
  1115. }
  1116. /// <summary>
  1117. /// A repeated field for each well-known type.
  1118. /// </summary>
  1119. public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWellKnownTypes>
  1120. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1121. , pb::IBufferMessage
  1122. #endif
  1123. {
  1124. private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes());
  1125. private pb::UnknownFieldSet _unknownFields;
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1127. public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { return _parser; } }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1129. public static pbr::MessageDescriptor Descriptor {
  1130. get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[1]; }
  1131. }
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1133. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1134. get { return Descriptor; }
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1137. public RepeatedWellKnownTypes() {
  1138. OnConstruction();
  1139. }
  1140. partial void OnConstruction();
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1142. public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() {
  1143. anyField_ = other.anyField_.Clone();
  1144. apiField_ = other.apiField_.Clone();
  1145. durationField_ = other.durationField_.Clone();
  1146. emptyField_ = other.emptyField_.Clone();
  1147. fieldMaskField_ = other.fieldMaskField_.Clone();
  1148. sourceContextField_ = other.sourceContextField_.Clone();
  1149. structField_ = other.structField_.Clone();
  1150. timestampField_ = other.timestampField_.Clone();
  1151. typeField_ = other.typeField_.Clone();
  1152. doubleField_ = other.doubleField_.Clone();
  1153. floatField_ = other.floatField_.Clone();
  1154. int64Field_ = other.int64Field_.Clone();
  1155. uint64Field_ = other.uint64Field_.Clone();
  1156. int32Field_ = other.int32Field_.Clone();
  1157. uint32Field_ = other.uint32Field_.Clone();
  1158. boolField_ = other.boolField_.Clone();
  1159. stringField_ = other.stringField_.Clone();
  1160. bytesField_ = other.bytesField_.Clone();
  1161. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1164. public RepeatedWellKnownTypes Clone() {
  1165. return new RepeatedWellKnownTypes(this);
  1166. }
  1167. /// <summary>Field number for the "any_field" field.</summary>
  1168. public const int AnyFieldFieldNumber = 1;
  1169. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_anyField_codec
  1170. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Any.Parser);
  1171. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1173. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyField {
  1174. get { return anyField_; }
  1175. }
  1176. /// <summary>Field number for the "api_field" field.</summary>
  1177. public const int ApiFieldFieldNumber = 2;
  1178. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Api> _repeated_apiField_codec
  1179. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser);
  1180. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api>();
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1182. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiField {
  1183. get { return apiField_; }
  1184. }
  1185. /// <summary>Field number for the "duration_field" field.</summary>
  1186. public const int DurationFieldFieldNumber = 3;
  1187. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_durationField_codec
  1188. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
  1189. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1191. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
  1192. get { return durationField_; }
  1193. }
  1194. /// <summary>Field number for the "empty_field" field.</summary>
  1195. public const int EmptyFieldFieldNumber = 4;
  1196. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Empty> _repeated_emptyField_codec
  1197. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.Empty.Parser);
  1198. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty>();
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1200. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
  1201. get { return emptyField_; }
  1202. }
  1203. /// <summary>Field number for the "field_mask_field" field.</summary>
  1204. public const int FieldMaskFieldFieldNumber = 5;
  1205. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_fieldMaskField_codec
  1206. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
  1207. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1209. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
  1210. get { return fieldMaskField_; }
  1211. }
  1212. /// <summary>Field number for the "source_context_field" field.</summary>
  1213. public const int SourceContextFieldFieldNumber = 6;
  1214. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.SourceContext> _repeated_sourceContextField_codec
  1215. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser);
  1216. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext>();
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1218. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
  1219. get { return sourceContextField_; }
  1220. }
  1221. /// <summary>Field number for the "struct_field" field.</summary>
  1222. public const int StructFieldFieldNumber = 7;
  1223. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_structField_codec
  1224. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
  1225. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1227. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> StructField {
  1228. get { return structField_; }
  1229. }
  1230. /// <summary>Field number for the "timestamp_field" field.</summary>
  1231. public const int TimestampFieldFieldNumber = 8;
  1232. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_timestampField_codec
  1233. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
  1234. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1236. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
  1237. get { return timestampField_; }
  1238. }
  1239. /// <summary>Field number for the "type_field" field.</summary>
  1240. public const int TypeFieldFieldNumber = 9;
  1241. private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Type> _repeated_typeField_codec
  1242. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.Type.Parser);
  1243. private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type>();
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1245. public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeField {
  1246. get { return typeField_; }
  1247. }
  1248. /// <summary>Field number for the "double_field" field.</summary>
  1249. public const int DoubleFieldFieldNumber = 10;
  1250. private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec
  1251. = pb::FieldCodec.ForStructWrapper<double>(82);
  1252. private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::RepeatedField<double?>();
  1253. /// <summary>
  1254. /// These don't actually make a lot of sense, but they're not prohibited...
  1255. /// </summary>
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1257. public pbc::RepeatedField<double?> DoubleField {
  1258. get { return doubleField_; }
  1259. }
  1260. /// <summary>Field number for the "float_field" field.</summary>
  1261. public const int FloatFieldFieldNumber = 11;
  1262. private static readonly pb::FieldCodec<float?> _repeated_floatField_codec
  1263. = pb::FieldCodec.ForStructWrapper<float>(90);
  1264. private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedField<float?>();
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1266. public pbc::RepeatedField<float?> FloatField {
  1267. get { return floatField_; }
  1268. }
  1269. /// <summary>Field number for the "int64_field" field.</summary>
  1270. public const int Int64FieldFieldNumber = 12;
  1271. private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec
  1272. = pb::FieldCodec.ForStructWrapper<long>(98);
  1273. private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedField<long?>();
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1275. public pbc::RepeatedField<long?> Int64Field {
  1276. get { return int64Field_; }
  1277. }
  1278. /// <summary>Field number for the "uint64_field" field.</summary>
  1279. public const int Uint64FieldFieldNumber = 13;
  1280. private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec
  1281. = pb::FieldCodec.ForStructWrapper<ulong>(106);
  1282. private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::RepeatedField<ulong?>();
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1284. public pbc::RepeatedField<ulong?> Uint64Field {
  1285. get { return uint64Field_; }
  1286. }
  1287. /// <summary>Field number for the "int32_field" field.</summary>
  1288. public const int Int32FieldFieldNumber = 14;
  1289. private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec
  1290. = pb::FieldCodec.ForStructWrapper<int>(114);
  1291. private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedField<int?>();
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1293. public pbc::RepeatedField<int?> Int32Field {
  1294. get { return int32Field_; }
  1295. }
  1296. /// <summary>Field number for the "uint32_field" field.</summary>
  1297. public const int Uint32FieldFieldNumber = 15;
  1298. private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec
  1299. = pb::FieldCodec.ForStructWrapper<uint>(122);
  1300. private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedField<uint?>();
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1302. public pbc::RepeatedField<uint?> Uint32Field {
  1303. get { return uint32Field_; }
  1304. }
  1305. /// <summary>Field number for the "bool_field" field.</summary>
  1306. public const int BoolFieldFieldNumber = 16;
  1307. private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec
  1308. = pb::FieldCodec.ForStructWrapper<bool>(130);
  1309. private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedField<bool?>();
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1311. public pbc::RepeatedField<bool?> BoolField {
  1312. get { return boolField_; }
  1313. }
  1314. /// <summary>Field number for the "string_field" field.</summary>
  1315. public const int StringFieldFieldNumber = 17;
  1316. private static readonly pb::FieldCodec<string> _repeated_stringField_codec
  1317. = pb::FieldCodec.ForClassWrapper<string>(138);
  1318. private readonly pbc::RepeatedField<string> stringField_ = new pbc::RepeatedField<string>();
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1320. public pbc::RepeatedField<string> StringField {
  1321. get { return stringField_; }
  1322. }
  1323. /// <summary>Field number for the "bytes_field" field.</summary>
  1324. public const int BytesFieldFieldNumber = 18;
  1325. private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_codec
  1326. = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
  1327. private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::RepeatedField<pb::ByteString>();
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. public pbc::RepeatedField<pb::ByteString> BytesField {
  1330. get { return bytesField_; }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1333. public override bool Equals(object other) {
  1334. return Equals(other as RepeatedWellKnownTypes);
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1337. public bool Equals(RepeatedWellKnownTypes other) {
  1338. if (ReferenceEquals(other, null)) {
  1339. return false;
  1340. }
  1341. if (ReferenceEquals(other, this)) {
  1342. return true;
  1343. }
  1344. if(!anyField_.Equals(other.anyField_)) return false;
  1345. if(!apiField_.Equals(other.apiField_)) return false;
  1346. if(!durationField_.Equals(other.durationField_)) return false;
  1347. if(!emptyField_.Equals(other.emptyField_)) return false;
  1348. if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false;
  1349. if(!sourceContextField_.Equals(other.sourceContextField_)) return false;
  1350. if(!structField_.Equals(other.structField_)) return false;
  1351. if(!timestampField_.Equals(other.timestampField_)) return false;
  1352. if(!typeField_.Equals(other.typeField_)) return false;
  1353. if(!doubleField_.Equals(other.doubleField_)) return false;
  1354. if(!floatField_.Equals(other.floatField_)) return false;
  1355. if(!int64Field_.Equals(other.int64Field_)) return false;
  1356. if(!uint64Field_.Equals(other.uint64Field_)) return false;
  1357. if(!int32Field_.Equals(other.int32Field_)) return false;
  1358. if(!uint32Field_.Equals(other.uint32Field_)) return false;
  1359. if(!boolField_.Equals(other.boolField_)) return false;
  1360. if(!stringField_.Equals(other.stringField_)) return false;
  1361. if(!bytesField_.Equals(other.bytesField_)) return false;
  1362. return Equals(_unknownFields, other._unknownFields);
  1363. }
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1365. public override int GetHashCode() {
  1366. int hash = 1;
  1367. hash ^= anyField_.GetHashCode();
  1368. hash ^= apiField_.GetHashCode();
  1369. hash ^= durationField_.GetHashCode();
  1370. hash ^= emptyField_.GetHashCode();
  1371. hash ^= fieldMaskField_.GetHashCode();
  1372. hash ^= sourceContextField_.GetHashCode();
  1373. hash ^= structField_.GetHashCode();
  1374. hash ^= timestampField_.GetHashCode();
  1375. hash ^= typeField_.GetHashCode();
  1376. hash ^= doubleField_.GetHashCode();
  1377. hash ^= floatField_.GetHashCode();
  1378. hash ^= int64Field_.GetHashCode();
  1379. hash ^= uint64Field_.GetHashCode();
  1380. hash ^= int32Field_.GetHashCode();
  1381. hash ^= uint32Field_.GetHashCode();
  1382. hash ^= boolField_.GetHashCode();
  1383. hash ^= stringField_.GetHashCode();
  1384. hash ^= bytesField_.GetHashCode();
  1385. if (_unknownFields != null) {
  1386. hash ^= _unknownFields.GetHashCode();
  1387. }
  1388. return hash;
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1391. public override string ToString() {
  1392. return pb::JsonFormatter.ToDiagnosticString(this);
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1395. public void WriteTo(pb::CodedOutputStream output) {
  1396. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1397. output.WriteRawMessage(this);
  1398. #else
  1399. anyField_.WriteTo(output, _repeated_anyField_codec);
  1400. apiField_.WriteTo(output, _repeated_apiField_codec);
  1401. durationField_.WriteTo(output, _repeated_durationField_codec);
  1402. emptyField_.WriteTo(output, _repeated_emptyField_codec);
  1403. fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec);
  1404. sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec);
  1405. structField_.WriteTo(output, _repeated_structField_codec);
  1406. timestampField_.WriteTo(output, _repeated_timestampField_codec);
  1407. typeField_.WriteTo(output, _repeated_typeField_codec);
  1408. doubleField_.WriteTo(output, _repeated_doubleField_codec);
  1409. floatField_.WriteTo(output, _repeated_floatField_codec);
  1410. int64Field_.WriteTo(output, _repeated_int64Field_codec);
  1411. uint64Field_.WriteTo(output, _repeated_uint64Field_codec);
  1412. int32Field_.WriteTo(output, _repeated_int32Field_codec);
  1413. uint32Field_.WriteTo(output, _repeated_uint32Field_codec);
  1414. boolField_.WriteTo(output, _repeated_boolField_codec);
  1415. stringField_.WriteTo(output, _repeated_stringField_codec);
  1416. bytesField_.WriteTo(output, _repeated_bytesField_codec);
  1417. if (_unknownFields != null) {
  1418. _unknownFields.WriteTo(output);
  1419. }
  1420. #endif
  1421. }
  1422. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1424. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1425. anyField_.WriteTo(ref output, _repeated_anyField_codec);
  1426. apiField_.WriteTo(ref output, _repeated_apiField_codec);
  1427. durationField_.WriteTo(ref output, _repeated_durationField_codec);
  1428. emptyField_.WriteTo(ref output, _repeated_emptyField_codec);
  1429. fieldMaskField_.WriteTo(ref output, _repeated_fieldMaskField_codec);
  1430. sourceContextField_.WriteTo(ref output, _repeated_sourceContextField_codec);
  1431. structField_.WriteTo(ref output, _repeated_structField_codec);
  1432. timestampField_.WriteTo(ref output, _repeated_timestampField_codec);
  1433. typeField_.WriteTo(ref output, _repeated_typeField_codec);
  1434. doubleField_.WriteTo(ref output, _repeated_doubleField_codec);
  1435. floatField_.WriteTo(ref output, _repeated_floatField_codec);
  1436. int64Field_.WriteTo(ref output, _repeated_int64Field_codec);
  1437. uint64Field_.WriteTo(ref output, _repeated_uint64Field_codec);
  1438. int32Field_.WriteTo(ref output, _repeated_int32Field_codec);
  1439. uint32Field_.WriteTo(ref output, _repeated_uint32Field_codec);
  1440. boolField_.WriteTo(ref output, _repeated_boolField_codec);
  1441. stringField_.WriteTo(ref output, _repeated_stringField_codec);
  1442. bytesField_.WriteTo(ref output, _repeated_bytesField_codec);
  1443. if (_unknownFields != null) {
  1444. _unknownFields.WriteTo(ref output);
  1445. }
  1446. }
  1447. #endif
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1449. public int CalculateSize() {
  1450. int size = 0;
  1451. size += anyField_.CalculateSize(_repeated_anyField_codec);
  1452. size += apiField_.CalculateSize(_repeated_apiField_codec);
  1453. size += durationField_.CalculateSize(_repeated_durationField_codec);
  1454. size += emptyField_.CalculateSize(_repeated_emptyField_codec);
  1455. size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec);
  1456. size += sourceContextField_.CalculateSize(_repeated_sourceContextField_codec);
  1457. size += structField_.CalculateSize(_repeated_structField_codec);
  1458. size += timestampField_.CalculateSize(_repeated_timestampField_codec);
  1459. size += typeField_.CalculateSize(_repeated_typeField_codec);
  1460. size += doubleField_.CalculateSize(_repeated_doubleField_codec);
  1461. size += floatField_.CalculateSize(_repeated_floatField_codec);
  1462. size += int64Field_.CalculateSize(_repeated_int64Field_codec);
  1463. size += uint64Field_.CalculateSize(_repeated_uint64Field_codec);
  1464. size += int32Field_.CalculateSize(_repeated_int32Field_codec);
  1465. size += uint32Field_.CalculateSize(_repeated_uint32Field_codec);
  1466. size += boolField_.CalculateSize(_repeated_boolField_codec);
  1467. size += stringField_.CalculateSize(_repeated_stringField_codec);
  1468. size += bytesField_.CalculateSize(_repeated_bytesField_codec);
  1469. if (_unknownFields != null) {
  1470. size += _unknownFields.CalculateSize();
  1471. }
  1472. return size;
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1475. public void MergeFrom(RepeatedWellKnownTypes other) {
  1476. if (other == null) {
  1477. return;
  1478. }
  1479. anyField_.Add(other.anyField_);
  1480. apiField_.Add(other.apiField_);
  1481. durationField_.Add(other.durationField_);
  1482. emptyField_.Add(other.emptyField_);
  1483. fieldMaskField_.Add(other.fieldMaskField_);
  1484. sourceContextField_.Add(other.sourceContextField_);
  1485. structField_.Add(other.structField_);
  1486. timestampField_.Add(other.timestampField_);
  1487. typeField_.Add(other.typeField_);
  1488. doubleField_.Add(other.doubleField_);
  1489. floatField_.Add(other.floatField_);
  1490. int64Field_.Add(other.int64Field_);
  1491. uint64Field_.Add(other.uint64Field_);
  1492. int32Field_.Add(other.int32Field_);
  1493. uint32Field_.Add(other.uint32Field_);
  1494. boolField_.Add(other.boolField_);
  1495. stringField_.Add(other.stringField_);
  1496. bytesField_.Add(other.bytesField_);
  1497. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1498. }
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1500. public void MergeFrom(pb::CodedInputStream input) {
  1501. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1502. input.ReadRawMessage(this);
  1503. #else
  1504. uint tag;
  1505. while ((tag = input.ReadTag()) != 0) {
  1506. switch(tag) {
  1507. default:
  1508. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1509. break;
  1510. case 10: {
  1511. anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
  1512. break;
  1513. }
  1514. case 18: {
  1515. apiField_.AddEntriesFrom(input, _repeated_apiField_codec);
  1516. break;
  1517. }
  1518. case 26: {
  1519. durationField_.AddEntriesFrom(input, _repeated_durationField_codec);
  1520. break;
  1521. }
  1522. case 34: {
  1523. emptyField_.AddEntriesFrom(input, _repeated_emptyField_codec);
  1524. break;
  1525. }
  1526. case 42: {
  1527. fieldMaskField_.AddEntriesFrom(input, _repeated_fieldMaskField_codec);
  1528. break;
  1529. }
  1530. case 50: {
  1531. sourceContextField_.AddEntriesFrom(input, _repeated_sourceContextField_codec);
  1532. break;
  1533. }
  1534. case 58: {
  1535. structField_.AddEntriesFrom(input, _repeated_structField_codec);
  1536. break;
  1537. }
  1538. case 66: {
  1539. timestampField_.AddEntriesFrom(input, _repeated_timestampField_codec);
  1540. break;
  1541. }
  1542. case 74: {
  1543. typeField_.AddEntriesFrom(input, _repeated_typeField_codec);
  1544. break;
  1545. }
  1546. case 82: {
  1547. doubleField_.AddEntriesFrom(input, _repeated_doubleField_codec);
  1548. break;
  1549. }
  1550. case 90: {
  1551. floatField_.AddEntriesFrom(input, _repeated_floatField_codec);
  1552. break;
  1553. }
  1554. case 98: {
  1555. int64Field_.AddEntriesFrom(input, _repeated_int64Field_codec);
  1556. break;
  1557. }
  1558. case 106: {
  1559. uint64Field_.AddEntriesFrom(input, _repeated_uint64Field_codec);
  1560. break;
  1561. }
  1562. case 114: {
  1563. int32Field_.AddEntriesFrom(input, _repeated_int32Field_codec);
  1564. break;
  1565. }
  1566. case 122: {
  1567. uint32Field_.AddEntriesFrom(input, _repeated_uint32Field_codec);
  1568. break;
  1569. }
  1570. case 130: {
  1571. boolField_.AddEntriesFrom(input, _repeated_boolField_codec);
  1572. break;
  1573. }
  1574. case 138: {
  1575. stringField_.AddEntriesFrom(input, _repeated_stringField_codec);
  1576. break;
  1577. }
  1578. case 146: {
  1579. bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec);
  1580. break;
  1581. }
  1582. }
  1583. }
  1584. #endif
  1585. }
  1586. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1588. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1589. uint tag;
  1590. while ((tag = input.ReadTag()) != 0) {
  1591. switch(tag) {
  1592. default:
  1593. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1594. break;
  1595. case 10: {
  1596. anyField_.AddEntriesFrom(ref input, _repeated_anyField_codec);
  1597. break;
  1598. }
  1599. case 18: {
  1600. apiField_.AddEntriesFrom(ref input, _repeated_apiField_codec);
  1601. break;
  1602. }
  1603. case 26: {
  1604. durationField_.AddEntriesFrom(ref input, _repeated_durationField_codec);
  1605. break;
  1606. }
  1607. case 34: {
  1608. emptyField_.AddEntriesFrom(ref input, _repeated_emptyField_codec);
  1609. break;
  1610. }
  1611. case 42: {
  1612. fieldMaskField_.AddEntriesFrom(ref input, _repeated_fieldMaskField_codec);
  1613. break;
  1614. }
  1615. case 50: {
  1616. sourceContextField_.AddEntriesFrom(ref input, _repeated_sourceContextField_codec);
  1617. break;
  1618. }
  1619. case 58: {
  1620. structField_.AddEntriesFrom(ref input, _repeated_structField_codec);
  1621. break;
  1622. }
  1623. case 66: {
  1624. timestampField_.AddEntriesFrom(ref input, _repeated_timestampField_codec);
  1625. break;
  1626. }
  1627. case 74: {
  1628. typeField_.AddEntriesFrom(ref input, _repeated_typeField_codec);
  1629. break;
  1630. }
  1631. case 82: {
  1632. doubleField_.AddEntriesFrom(ref input, _repeated_doubleField_codec);
  1633. break;
  1634. }
  1635. case 90: {
  1636. floatField_.AddEntriesFrom(ref input, _repeated_floatField_codec);
  1637. break;
  1638. }
  1639. case 98: {
  1640. int64Field_.AddEntriesFrom(ref input, _repeated_int64Field_codec);
  1641. break;
  1642. }
  1643. case 106: {
  1644. uint64Field_.AddEntriesFrom(ref input, _repeated_uint64Field_codec);
  1645. break;
  1646. }
  1647. case 114: {
  1648. int32Field_.AddEntriesFrom(ref input, _repeated_int32Field_codec);
  1649. break;
  1650. }
  1651. case 122: {
  1652. uint32Field_.AddEntriesFrom(ref input, _repeated_uint32Field_codec);
  1653. break;
  1654. }
  1655. case 130: {
  1656. boolField_.AddEntriesFrom(ref input, _repeated_boolField_codec);
  1657. break;
  1658. }
  1659. case 138: {
  1660. stringField_.AddEntriesFrom(ref input, _repeated_stringField_codec);
  1661. break;
  1662. }
  1663. case 146: {
  1664. bytesField_.AddEntriesFrom(ref input, _repeated_bytesField_codec);
  1665. break;
  1666. }
  1667. }
  1668. }
  1669. }
  1670. #endif
  1671. }
  1672. public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownTypes>
  1673. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1674. , pb::IBufferMessage
  1675. #endif
  1676. {
  1677. private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes());
  1678. private pb::UnknownFieldSet _unknownFields;
  1679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1680. public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _parser; } }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1682. public static pbr::MessageDescriptor Descriptor {
  1683. get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[2]; }
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1686. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1687. get { return Descriptor; }
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1690. public OneofWellKnownTypes() {
  1691. OnConstruction();
  1692. }
  1693. partial void OnConstruction();
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1695. public OneofWellKnownTypes(OneofWellKnownTypes other) : this() {
  1696. switch (other.OneofFieldCase) {
  1697. case OneofFieldOneofCase.AnyField:
  1698. AnyField = other.AnyField.Clone();
  1699. break;
  1700. case OneofFieldOneofCase.ApiField:
  1701. ApiField = other.ApiField.Clone();
  1702. break;
  1703. case OneofFieldOneofCase.DurationField:
  1704. DurationField = other.DurationField.Clone();
  1705. break;
  1706. case OneofFieldOneofCase.EmptyField:
  1707. EmptyField = other.EmptyField.Clone();
  1708. break;
  1709. case OneofFieldOneofCase.FieldMaskField:
  1710. FieldMaskField = other.FieldMaskField.Clone();
  1711. break;
  1712. case OneofFieldOneofCase.SourceContextField:
  1713. SourceContextField = other.SourceContextField.Clone();
  1714. break;
  1715. case OneofFieldOneofCase.StructField:
  1716. StructField = other.StructField.Clone();
  1717. break;
  1718. case OneofFieldOneofCase.TimestampField:
  1719. TimestampField = other.TimestampField.Clone();
  1720. break;
  1721. case OneofFieldOneofCase.TypeField:
  1722. TypeField = other.TypeField.Clone();
  1723. break;
  1724. case OneofFieldOneofCase.DoubleField:
  1725. DoubleField = other.DoubleField;
  1726. break;
  1727. case OneofFieldOneofCase.FloatField:
  1728. FloatField = other.FloatField;
  1729. break;
  1730. case OneofFieldOneofCase.Int64Field:
  1731. Int64Field = other.Int64Field;
  1732. break;
  1733. case OneofFieldOneofCase.Uint64Field:
  1734. Uint64Field = other.Uint64Field;
  1735. break;
  1736. case OneofFieldOneofCase.Int32Field:
  1737. Int32Field = other.Int32Field;
  1738. break;
  1739. case OneofFieldOneofCase.Uint32Field:
  1740. Uint32Field = other.Uint32Field;
  1741. break;
  1742. case OneofFieldOneofCase.BoolField:
  1743. BoolField = other.BoolField;
  1744. break;
  1745. case OneofFieldOneofCase.StringField:
  1746. StringField = other.StringField;
  1747. break;
  1748. case OneofFieldOneofCase.BytesField:
  1749. BytesField = other.BytesField;
  1750. break;
  1751. }
  1752. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1755. public OneofWellKnownTypes Clone() {
  1756. return new OneofWellKnownTypes(this);
  1757. }
  1758. /// <summary>Field number for the "any_field" field.</summary>
  1759. public const int AnyFieldFieldNumber = 1;
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1761. public global::Google.Protobuf.WellKnownTypes.Any AnyField {
  1762. get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Google.Protobuf.WellKnownTypes.Any) oneofField_ : null; }
  1763. set {
  1764. oneofField_ = value;
  1765. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.AnyField;
  1766. }
  1767. }
  1768. /// <summary>Field number for the "api_field" field.</summary>
  1769. public const int ApiFieldFieldNumber = 2;
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1771. public global::Google.Protobuf.WellKnownTypes.Api ApiField {
  1772. get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Google.Protobuf.WellKnownTypes.Api) oneofField_ : null; }
  1773. set {
  1774. oneofField_ = value;
  1775. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.ApiField;
  1776. }
  1777. }
  1778. /// <summary>Field number for the "duration_field" field.</summary>
  1779. public const int DurationFieldFieldNumber = 3;
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1781. public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
  1782. get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (global::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; }
  1783. set {
  1784. oneofField_ = value;
  1785. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DurationField;
  1786. }
  1787. }
  1788. /// <summary>Field number for the "empty_field" field.</summary>
  1789. public const int EmptyFieldFieldNumber = 4;
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1791. public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
  1792. get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global::Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; }
  1793. set {
  1794. oneofField_ = value;
  1795. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.EmptyField;
  1796. }
  1797. }
  1798. /// <summary>Field number for the "field_mask_field" field.</summary>
  1799. public const int FieldMaskFieldFieldNumber = 5;
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1801. public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
  1802. get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (global::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; }
  1803. set {
  1804. oneofField_ = value;
  1805. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FieldMaskField;
  1806. }
  1807. }
  1808. /// <summary>Field number for the "source_context_field" field.</summary>
  1809. public const int SourceContextFieldFieldNumber = 6;
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1811. public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
  1812. get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? (global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; }
  1813. set {
  1814. oneofField_ = value;
  1815. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.SourceContextField;
  1816. }
  1817. }
  1818. /// <summary>Field number for the "struct_field" field.</summary>
  1819. public const int StructFieldFieldNumber = 7;
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1821. public global::Google.Protobuf.WellKnownTypes.Struct StructField {
  1822. get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global::Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; }
  1823. set {
  1824. oneofField_ = value;
  1825. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StructField;
  1826. }
  1827. }
  1828. /// <summary>Field number for the "timestamp_field" field.</summary>
  1829. public const int TimestampFieldFieldNumber = 8;
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1831. public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
  1832. get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (global::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; }
  1833. set {
  1834. oneofField_ = value;
  1835. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TimestampField;
  1836. }
  1837. }
  1838. /// <summary>Field number for the "type_field" field.</summary>
  1839. public const int TypeFieldFieldNumber = 9;
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1841. public global::Google.Protobuf.WellKnownTypes.Type TypeField {
  1842. get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::Google.Protobuf.WellKnownTypes.Type) oneofField_ : null; }
  1843. set {
  1844. oneofField_ = value;
  1845. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TypeField;
  1846. }
  1847. }
  1848. /// <summary>Field number for the "double_field" field.</summary>
  1849. public const int DoubleFieldFieldNumber = 10;
  1850. private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1852. public double? DoubleField {
  1853. get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double?) oneofField_ : (double?) null; }
  1854. set {
  1855. oneofField_ = value;
  1856. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DoubleField;
  1857. }
  1858. }
  1859. /// <summary>Field number for the "float_field" field.</summary>
  1860. public const int FloatFieldFieldNumber = 11;
  1861. private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1863. public float? FloatField {
  1864. get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; }
  1865. set {
  1866. oneofField_ = value;
  1867. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FloatField;
  1868. }
  1869. }
  1870. /// <summary>Field number for the "int64_field" field.</summary>
  1871. public const int Int64FieldFieldNumber = 12;
  1872. private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1874. public long? Int64Field {
  1875. get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) oneofField_ : (long?) null; }
  1876. set {
  1877. oneofField_ = value;
  1878. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int64Field;
  1879. }
  1880. }
  1881. /// <summary>Field number for the "uint64_field" field.</summary>
  1882. public const int Uint64FieldFieldNumber = 13;
  1883. private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1885. public ulong? Uint64Field {
  1886. get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; }
  1887. set {
  1888. oneofField_ = value;
  1889. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint64Field;
  1890. }
  1891. }
  1892. /// <summary>Field number for the "int32_field" field.</summary>
  1893. public const int Int32FieldFieldNumber = 14;
  1894. private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1896. public int? Int32Field {
  1897. get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) oneofField_ : (int?) null; }
  1898. set {
  1899. oneofField_ = value;
  1900. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int32Field;
  1901. }
  1902. }
  1903. /// <summary>Field number for the "uint32_field" field.</summary>
  1904. public const int Uint32FieldFieldNumber = 15;
  1905. private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1907. public uint? Uint32Field {
  1908. get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; }
  1909. set {
  1910. oneofField_ = value;
  1911. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint32Field;
  1912. }
  1913. }
  1914. /// <summary>Field number for the "bool_field" field.</summary>
  1915. public const int BoolFieldFieldNumber = 16;
  1916. private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1918. public bool? BoolField {
  1919. get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) oneofField_ : (bool?) null; }
  1920. set {
  1921. oneofField_ = value;
  1922. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BoolField;
  1923. }
  1924. }
  1925. /// <summary>Field number for the "string_field" field.</summary>
  1926. public const int StringFieldFieldNumber = 17;
  1927. private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1929. public string StringField {
  1930. get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; }
  1931. set {
  1932. oneofField_ = value;
  1933. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StringField;
  1934. }
  1935. }
  1936. /// <summary>Field number for the "bytes_field" field.</summary>
  1937. public const int BytesFieldFieldNumber = 18;
  1938. private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1940. public pb::ByteString BytesField {
  1941. get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::ByteString) oneofField_ : (pb::ByteString) null; }
  1942. set {
  1943. oneofField_ = value;
  1944. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BytesField;
  1945. }
  1946. }
  1947. private object oneofField_;
  1948. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  1949. public enum OneofFieldOneofCase {
  1950. None = 0,
  1951. AnyField = 1,
  1952. ApiField = 2,
  1953. DurationField = 3,
  1954. EmptyField = 4,
  1955. FieldMaskField = 5,
  1956. SourceContextField = 6,
  1957. StructField = 7,
  1958. TimestampField = 8,
  1959. TypeField = 9,
  1960. DoubleField = 10,
  1961. FloatField = 11,
  1962. Int64Field = 12,
  1963. Uint64Field = 13,
  1964. Int32Field = 14,
  1965. Uint32Field = 15,
  1966. BoolField = 16,
  1967. StringField = 17,
  1968. BytesField = 18,
  1969. }
  1970. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1972. public OneofFieldOneofCase OneofFieldCase {
  1973. get { return oneofFieldCase_; }
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1976. public void ClearOneofField() {
  1977. oneofFieldCase_ = OneofFieldOneofCase.None;
  1978. oneofField_ = null;
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1981. public override bool Equals(object other) {
  1982. return Equals(other as OneofWellKnownTypes);
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1985. public bool Equals(OneofWellKnownTypes other) {
  1986. if (ReferenceEquals(other, null)) {
  1987. return false;
  1988. }
  1989. if (ReferenceEquals(other, this)) {
  1990. return true;
  1991. }
  1992. if (!object.Equals(AnyField, other.AnyField)) return false;
  1993. if (!object.Equals(ApiField, other.ApiField)) return false;
  1994. if (!object.Equals(DurationField, other.DurationField)) return false;
  1995. if (!object.Equals(EmptyField, other.EmptyField)) return false;
  1996. if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
  1997. if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
  1998. if (!object.Equals(StructField, other.StructField)) return false;
  1999. if (!object.Equals(TimestampField, other.TimestampField)) return false;
  2000. if (!object.Equals(TypeField, other.TypeField)) return false;
  2001. if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(DoubleField, other.DoubleField)) return false;
  2002. if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(FloatField, other.FloatField)) return false;
  2003. if (Int64Field != other.Int64Field) return false;
  2004. if (Uint64Field != other.Uint64Field) return false;
  2005. if (Int32Field != other.Int32Field) return false;
  2006. if (Uint32Field != other.Uint32Field) return false;
  2007. if (BoolField != other.BoolField) return false;
  2008. if (StringField != other.StringField) return false;
  2009. if (BytesField != other.BytesField) return false;
  2010. if (OneofFieldCase != other.OneofFieldCase) return false;
  2011. return Equals(_unknownFields, other._unknownFields);
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2014. public override int GetHashCode() {
  2015. int hash = 1;
  2016. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetHashCode();
  2017. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetHashCode();
  2018. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= DurationField.GetHashCode();
  2019. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField.GetHashCode();
  2020. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMaskField.GetHashCode();
  2021. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= SourceContextField.GetHashCode();
  2022. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructField.GetHashCode();
  2023. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= TimestampField.GetHashCode();
  2024. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.GetHashCode();
  2025. if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField);
  2026. if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(FloatField);
  2027. if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field.GetHashCode();
  2028. if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Field.GetHashCode();
  2029. if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field.GetHashCode();
  2030. if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Field.GetHashCode();
  2031. if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.GetHashCode();
  2032. if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringField.GetHashCode();
  2033. if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField.GetHashCode();
  2034. hash ^= (int) oneofFieldCase_;
  2035. if (_unknownFields != null) {
  2036. hash ^= _unknownFields.GetHashCode();
  2037. }
  2038. return hash;
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2041. public override string ToString() {
  2042. return pb::JsonFormatter.ToDiagnosticString(this);
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2045. public void WriteTo(pb::CodedOutputStream output) {
  2046. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2047. output.WriteRawMessage(this);
  2048. #else
  2049. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
  2050. output.WriteRawTag(10);
  2051. output.WriteMessage(AnyField);
  2052. }
  2053. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
  2054. output.WriteRawTag(18);
  2055. output.WriteMessage(ApiField);
  2056. }
  2057. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
  2058. output.WriteRawTag(26);
  2059. output.WriteMessage(DurationField);
  2060. }
  2061. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
  2062. output.WriteRawTag(34);
  2063. output.WriteMessage(EmptyField);
  2064. }
  2065. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
  2066. output.WriteRawTag(42);
  2067. output.WriteMessage(FieldMaskField);
  2068. }
  2069. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
  2070. output.WriteRawTag(50);
  2071. output.WriteMessage(SourceContextField);
  2072. }
  2073. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
  2074. output.WriteRawTag(58);
  2075. output.WriteMessage(StructField);
  2076. }
  2077. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
  2078. output.WriteRawTag(66);
  2079. output.WriteMessage(TimestampField);
  2080. }
  2081. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
  2082. output.WriteRawTag(74);
  2083. output.WriteMessage(TypeField);
  2084. }
  2085. if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
  2086. _oneof_doubleField_codec.WriteTagAndValue(output, (double?) oneofField_);
  2087. }
  2088. if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
  2089. _oneof_floatField_codec.WriteTagAndValue(output, (float?) oneofField_);
  2090. }
  2091. if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
  2092. _oneof_int64Field_codec.WriteTagAndValue(output, (long?) oneofField_);
  2093. }
  2094. if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
  2095. _oneof_uint64Field_codec.WriteTagAndValue(output, (ulong?) oneofField_);
  2096. }
  2097. if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
  2098. _oneof_int32Field_codec.WriteTagAndValue(output, (int?) oneofField_);
  2099. }
  2100. if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
  2101. _oneof_uint32Field_codec.WriteTagAndValue(output, (uint?) oneofField_);
  2102. }
  2103. if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
  2104. _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_);
  2105. }
  2106. if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
  2107. _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_);
  2108. }
  2109. if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
  2110. _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofField_);
  2111. }
  2112. if (_unknownFields != null) {
  2113. _unknownFields.WriteTo(output);
  2114. }
  2115. #endif
  2116. }
  2117. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2119. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2120. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
  2121. output.WriteRawTag(10);
  2122. output.WriteMessage(AnyField);
  2123. }
  2124. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
  2125. output.WriteRawTag(18);
  2126. output.WriteMessage(ApiField);
  2127. }
  2128. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
  2129. output.WriteRawTag(26);
  2130. output.WriteMessage(DurationField);
  2131. }
  2132. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
  2133. output.WriteRawTag(34);
  2134. output.WriteMessage(EmptyField);
  2135. }
  2136. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
  2137. output.WriteRawTag(42);
  2138. output.WriteMessage(FieldMaskField);
  2139. }
  2140. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
  2141. output.WriteRawTag(50);
  2142. output.WriteMessage(SourceContextField);
  2143. }
  2144. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
  2145. output.WriteRawTag(58);
  2146. output.WriteMessage(StructField);
  2147. }
  2148. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
  2149. output.WriteRawTag(66);
  2150. output.WriteMessage(TimestampField);
  2151. }
  2152. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
  2153. output.WriteRawTag(74);
  2154. output.WriteMessage(TypeField);
  2155. }
  2156. if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
  2157. _oneof_doubleField_codec.WriteTagAndValue(ref output, (double?) oneofField_);
  2158. }
  2159. if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
  2160. _oneof_floatField_codec.WriteTagAndValue(ref output, (float?) oneofField_);
  2161. }
  2162. if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
  2163. _oneof_int64Field_codec.WriteTagAndValue(ref output, (long?) oneofField_);
  2164. }
  2165. if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
  2166. _oneof_uint64Field_codec.WriteTagAndValue(ref output, (ulong?) oneofField_);
  2167. }
  2168. if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
  2169. _oneof_int32Field_codec.WriteTagAndValue(ref output, (int?) oneofField_);
  2170. }
  2171. if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
  2172. _oneof_uint32Field_codec.WriteTagAndValue(ref output, (uint?) oneofField_);
  2173. }
  2174. if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
  2175. _oneof_boolField_codec.WriteTagAndValue(ref output, (bool?) oneofField_);
  2176. }
  2177. if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
  2178. _oneof_stringField_codec.WriteTagAndValue(ref output, (string) oneofField_);
  2179. }
  2180. if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
  2181. _oneof_bytesField_codec.WriteTagAndValue(ref output, (pb::ByteString) oneofField_);
  2182. }
  2183. if (_unknownFields != null) {
  2184. _unknownFields.WriteTo(ref output);
  2185. }
  2186. }
  2187. #endif
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2189. public int CalculateSize() {
  2190. int size = 0;
  2191. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
  2192. size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
  2193. }
  2194. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
  2195. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
  2196. }
  2197. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
  2198. size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
  2199. }
  2200. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
  2201. size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
  2202. }
  2203. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
  2204. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
  2205. }
  2206. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
  2207. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
  2208. }
  2209. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
  2210. size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
  2211. }
  2212. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
  2213. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
  2214. }
  2215. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
  2216. size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
  2217. }
  2218. if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
  2219. size += _oneof_doubleField_codec.CalculateSizeWithTag(DoubleField);
  2220. }
  2221. if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
  2222. size += _oneof_floatField_codec.CalculateSizeWithTag(FloatField);
  2223. }
  2224. if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
  2225. size += _oneof_int64Field_codec.CalculateSizeWithTag(Int64Field);
  2226. }
  2227. if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
  2228. size += _oneof_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
  2229. }
  2230. if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
  2231. size += _oneof_int32Field_codec.CalculateSizeWithTag(Int32Field);
  2232. }
  2233. if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
  2234. size += _oneof_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
  2235. }
  2236. if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
  2237. size += _oneof_boolField_codec.CalculateSizeWithTag(BoolField);
  2238. }
  2239. if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
  2240. size += _oneof_stringField_codec.CalculateSizeWithTag(StringField);
  2241. }
  2242. if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
  2243. size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField);
  2244. }
  2245. if (_unknownFields != null) {
  2246. size += _unknownFields.CalculateSize();
  2247. }
  2248. return size;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2251. public void MergeFrom(OneofWellKnownTypes other) {
  2252. if (other == null) {
  2253. return;
  2254. }
  2255. switch (other.OneofFieldCase) {
  2256. case OneofFieldOneofCase.AnyField:
  2257. if (AnyField == null) {
  2258. AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
  2259. }
  2260. AnyField.MergeFrom(other.AnyField);
  2261. break;
  2262. case OneofFieldOneofCase.ApiField:
  2263. if (ApiField == null) {
  2264. ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
  2265. }
  2266. ApiField.MergeFrom(other.ApiField);
  2267. break;
  2268. case OneofFieldOneofCase.DurationField:
  2269. if (DurationField == null) {
  2270. DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
  2271. }
  2272. DurationField.MergeFrom(other.DurationField);
  2273. break;
  2274. case OneofFieldOneofCase.EmptyField:
  2275. if (EmptyField == null) {
  2276. EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
  2277. }
  2278. EmptyField.MergeFrom(other.EmptyField);
  2279. break;
  2280. case OneofFieldOneofCase.FieldMaskField:
  2281. if (FieldMaskField == null) {
  2282. FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  2283. }
  2284. FieldMaskField.MergeFrom(other.FieldMaskField);
  2285. break;
  2286. case OneofFieldOneofCase.SourceContextField:
  2287. if (SourceContextField == null) {
  2288. SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  2289. }
  2290. SourceContextField.MergeFrom(other.SourceContextField);
  2291. break;
  2292. case OneofFieldOneofCase.StructField:
  2293. if (StructField == null) {
  2294. StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
  2295. }
  2296. StructField.MergeFrom(other.StructField);
  2297. break;
  2298. case OneofFieldOneofCase.TimestampField:
  2299. if (TimestampField == null) {
  2300. TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  2301. }
  2302. TimestampField.MergeFrom(other.TimestampField);
  2303. break;
  2304. case OneofFieldOneofCase.TypeField:
  2305. if (TypeField == null) {
  2306. TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
  2307. }
  2308. TypeField.MergeFrom(other.TypeField);
  2309. break;
  2310. case OneofFieldOneofCase.DoubleField:
  2311. DoubleField = other.DoubleField;
  2312. break;
  2313. case OneofFieldOneofCase.FloatField:
  2314. FloatField = other.FloatField;
  2315. break;
  2316. case OneofFieldOneofCase.Int64Field:
  2317. Int64Field = other.Int64Field;
  2318. break;
  2319. case OneofFieldOneofCase.Uint64Field:
  2320. Uint64Field = other.Uint64Field;
  2321. break;
  2322. case OneofFieldOneofCase.Int32Field:
  2323. Int32Field = other.Int32Field;
  2324. break;
  2325. case OneofFieldOneofCase.Uint32Field:
  2326. Uint32Field = other.Uint32Field;
  2327. break;
  2328. case OneofFieldOneofCase.BoolField:
  2329. BoolField = other.BoolField;
  2330. break;
  2331. case OneofFieldOneofCase.StringField:
  2332. StringField = other.StringField;
  2333. break;
  2334. case OneofFieldOneofCase.BytesField:
  2335. BytesField = other.BytesField;
  2336. break;
  2337. }
  2338. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2339. }
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2341. public void MergeFrom(pb::CodedInputStream input) {
  2342. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2343. input.ReadRawMessage(this);
  2344. #else
  2345. uint tag;
  2346. while ((tag = input.ReadTag()) != 0) {
  2347. switch(tag) {
  2348. default:
  2349. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2350. break;
  2351. case 10: {
  2352. global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
  2353. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
  2354. subBuilder.MergeFrom(AnyField);
  2355. }
  2356. input.ReadMessage(subBuilder);
  2357. AnyField = subBuilder;
  2358. break;
  2359. }
  2360. case 18: {
  2361. global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
  2362. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
  2363. subBuilder.MergeFrom(ApiField);
  2364. }
  2365. input.ReadMessage(subBuilder);
  2366. ApiField = subBuilder;
  2367. break;
  2368. }
  2369. case 26: {
  2370. global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
  2371. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
  2372. subBuilder.MergeFrom(DurationField);
  2373. }
  2374. input.ReadMessage(subBuilder);
  2375. DurationField = subBuilder;
  2376. break;
  2377. }
  2378. case 34: {
  2379. global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
  2380. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
  2381. subBuilder.MergeFrom(EmptyField);
  2382. }
  2383. input.ReadMessage(subBuilder);
  2384. EmptyField = subBuilder;
  2385. break;
  2386. }
  2387. case 42: {
  2388. global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  2389. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
  2390. subBuilder.MergeFrom(FieldMaskField);
  2391. }
  2392. input.ReadMessage(subBuilder);
  2393. FieldMaskField = subBuilder;
  2394. break;
  2395. }
  2396. case 50: {
  2397. global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  2398. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
  2399. subBuilder.MergeFrom(SourceContextField);
  2400. }
  2401. input.ReadMessage(subBuilder);
  2402. SourceContextField = subBuilder;
  2403. break;
  2404. }
  2405. case 58: {
  2406. global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
  2407. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
  2408. subBuilder.MergeFrom(StructField);
  2409. }
  2410. input.ReadMessage(subBuilder);
  2411. StructField = subBuilder;
  2412. break;
  2413. }
  2414. case 66: {
  2415. global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  2416. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
  2417. subBuilder.MergeFrom(TimestampField);
  2418. }
  2419. input.ReadMessage(subBuilder);
  2420. TimestampField = subBuilder;
  2421. break;
  2422. }
  2423. case 74: {
  2424. global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
  2425. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
  2426. subBuilder.MergeFrom(TypeField);
  2427. }
  2428. input.ReadMessage(subBuilder);
  2429. TypeField = subBuilder;
  2430. break;
  2431. }
  2432. case 82: {
  2433. DoubleField = _oneof_doubleField_codec.Read(input);
  2434. break;
  2435. }
  2436. case 90: {
  2437. FloatField = _oneof_floatField_codec.Read(input);
  2438. break;
  2439. }
  2440. case 98: {
  2441. Int64Field = _oneof_int64Field_codec.Read(input);
  2442. break;
  2443. }
  2444. case 106: {
  2445. Uint64Field = _oneof_uint64Field_codec.Read(input);
  2446. break;
  2447. }
  2448. case 114: {
  2449. Int32Field = _oneof_int32Field_codec.Read(input);
  2450. break;
  2451. }
  2452. case 122: {
  2453. Uint32Field = _oneof_uint32Field_codec.Read(input);
  2454. break;
  2455. }
  2456. case 130: {
  2457. BoolField = _oneof_boolField_codec.Read(input);
  2458. break;
  2459. }
  2460. case 138: {
  2461. StringField = _oneof_stringField_codec.Read(input);
  2462. break;
  2463. }
  2464. case 146: {
  2465. BytesField = _oneof_bytesField_codec.Read(input);
  2466. break;
  2467. }
  2468. }
  2469. }
  2470. #endif
  2471. }
  2472. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2474. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2475. uint tag;
  2476. while ((tag = input.ReadTag()) != 0) {
  2477. switch(tag) {
  2478. default:
  2479. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2480. break;
  2481. case 10: {
  2482. global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
  2483. if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
  2484. subBuilder.MergeFrom(AnyField);
  2485. }
  2486. input.ReadMessage(subBuilder);
  2487. AnyField = subBuilder;
  2488. break;
  2489. }
  2490. case 18: {
  2491. global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
  2492. if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
  2493. subBuilder.MergeFrom(ApiField);
  2494. }
  2495. input.ReadMessage(subBuilder);
  2496. ApiField = subBuilder;
  2497. break;
  2498. }
  2499. case 26: {
  2500. global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
  2501. if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
  2502. subBuilder.MergeFrom(DurationField);
  2503. }
  2504. input.ReadMessage(subBuilder);
  2505. DurationField = subBuilder;
  2506. break;
  2507. }
  2508. case 34: {
  2509. global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
  2510. if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
  2511. subBuilder.MergeFrom(EmptyField);
  2512. }
  2513. input.ReadMessage(subBuilder);
  2514. EmptyField = subBuilder;
  2515. break;
  2516. }
  2517. case 42: {
  2518. global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
  2519. if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
  2520. subBuilder.MergeFrom(FieldMaskField);
  2521. }
  2522. input.ReadMessage(subBuilder);
  2523. FieldMaskField = subBuilder;
  2524. break;
  2525. }
  2526. case 50: {
  2527. global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
  2528. if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
  2529. subBuilder.MergeFrom(SourceContextField);
  2530. }
  2531. input.ReadMessage(subBuilder);
  2532. SourceContextField = subBuilder;
  2533. break;
  2534. }
  2535. case 58: {
  2536. global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
  2537. if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
  2538. subBuilder.MergeFrom(StructField);
  2539. }
  2540. input.ReadMessage(subBuilder);
  2541. StructField = subBuilder;
  2542. break;
  2543. }
  2544. case 66: {
  2545. global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
  2546. if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
  2547. subBuilder.MergeFrom(TimestampField);
  2548. }
  2549. input.ReadMessage(subBuilder);
  2550. TimestampField = subBuilder;
  2551. break;
  2552. }
  2553. case 74: {
  2554. global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
  2555. if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
  2556. subBuilder.MergeFrom(TypeField);
  2557. }
  2558. input.ReadMessage(subBuilder);
  2559. TypeField = subBuilder;
  2560. break;
  2561. }
  2562. case 82: {
  2563. DoubleField = _oneof_doubleField_codec.Read(ref input);
  2564. break;
  2565. }
  2566. case 90: {
  2567. FloatField = _oneof_floatField_codec.Read(ref input);
  2568. break;
  2569. }
  2570. case 98: {
  2571. Int64Field = _oneof_int64Field_codec.Read(ref input);
  2572. break;
  2573. }
  2574. case 106: {
  2575. Uint64Field = _oneof_uint64Field_codec.Read(ref input);
  2576. break;
  2577. }
  2578. case 114: {
  2579. Int32Field = _oneof_int32Field_codec.Read(ref input);
  2580. break;
  2581. }
  2582. case 122: {
  2583. Uint32Field = _oneof_uint32Field_codec.Read(ref input);
  2584. break;
  2585. }
  2586. case 130: {
  2587. BoolField = _oneof_boolField_codec.Read(ref input);
  2588. break;
  2589. }
  2590. case 138: {
  2591. StringField = _oneof_stringField_codec.Read(ref input);
  2592. break;
  2593. }
  2594. case 146: {
  2595. BytesField = _oneof_bytesField_codec.Read(ref input);
  2596. break;
  2597. }
  2598. }
  2599. }
  2600. }
  2601. #endif
  2602. }
  2603. /// <summary>
  2604. /// A map field for each well-known type. We only
  2605. /// need to worry about the value part of the map being the
  2606. /// well-known types, as messages can't be map keys.
  2607. /// </summary>
  2608. public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes>
  2609. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2610. , pb::IBufferMessage
  2611. #endif
  2612. {
  2613. private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new pb::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes());
  2614. private pb::UnknownFieldSet _unknownFields;
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2616. public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _parser; } }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2618. public static pbr::MessageDescriptor Descriptor {
  2619. get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[3]; }
  2620. }
  2621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2622. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2623. get { return Descriptor; }
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2626. public MapWellKnownTypes() {
  2627. OnConstruction();
  2628. }
  2629. partial void OnConstruction();
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2631. public MapWellKnownTypes(MapWellKnownTypes other) : this() {
  2632. anyField_ = other.anyField_.Clone();
  2633. apiField_ = other.apiField_.Clone();
  2634. durationField_ = other.durationField_.Clone();
  2635. emptyField_ = other.emptyField_.Clone();
  2636. fieldMaskField_ = other.fieldMaskField_.Clone();
  2637. sourceContextField_ = other.sourceContextField_.Clone();
  2638. structField_ = other.structField_.Clone();
  2639. timestampField_ = other.timestampField_.Clone();
  2640. typeField_ = other.typeField_.Clone();
  2641. doubleField_ = other.doubleField_.Clone();
  2642. floatField_ = other.floatField_.Clone();
  2643. int64Field_ = other.int64Field_.Clone();
  2644. uint64Field_ = other.uint64Field_.Clone();
  2645. int32Field_ = other.int32Field_.Clone();
  2646. uint32Field_ = other.uint32Field_.Clone();
  2647. boolField_ = other.boolField_.Clone();
  2648. stringField_ = other.stringField_.Clone();
  2649. bytesField_ = other.bytesField_.Clone();
  2650. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2653. public MapWellKnownTypes Clone() {
  2654. return new MapWellKnownTypes(this);
  2655. }
  2656. /// <summary>Field number for the "any_field" field.</summary>
  2657. public const int AnyFieldFieldNumber = 1;
  2658. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec _map_anyField_codec
  2659. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Any.Parser), 10);
  2660. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>();
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2662. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyField {
  2663. get { return anyField_; }
  2664. }
  2665. /// <summary>Field number for the "api_field" field.</summary>
  2666. public const int ApiFieldFieldNumber = 2;
  2667. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec _map_apiField_codec
  2668. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser), 18);
  2669. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>();
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2671. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiField {
  2672. get { return apiField_; }
  2673. }
  2674. /// <summary>Field number for the "duration_field" field.</summary>
  2675. public const int DurationFieldFieldNumber = 3;
  2676. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec _map_durationField_codec
  2677. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Duration.Parser), 26);
  2678. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>();
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2680. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
  2681. get { return durationField_; }
  2682. }
  2683. /// <summary>Field number for the "empty_field" field.</summary>
  2684. public const int EmptyFieldFieldNumber = 4;
  2685. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec _map_emptyField_codec
  2686. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Empty.Parser), 34);
  2687. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>();
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2689. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
  2690. get { return emptyField_; }
  2691. }
  2692. /// <summary>Field number for the "field_mask_field" field.</summary>
  2693. public const int FieldMaskFieldFieldNumber = 5;
  2694. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec _map_fieldMaskField_codec
  2695. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser), 42);
  2696. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>();
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2698. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
  2699. get { return fieldMaskField_; }
  2700. }
  2701. /// <summary>Field number for the "source_context_field" field.</summary>
  2702. public const int SourceContextFieldFieldNumber = 6;
  2703. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec _map_sourceContextField_codec
  2704. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser), 50);
  2705. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>();
  2706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2707. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
  2708. get { return sourceContextField_; }
  2709. }
  2710. /// <summary>Field number for the "struct_field" field.</summary>
  2711. public const int StructFieldFieldNumber = 7;
  2712. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec _map_structField_codec
  2713. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Struct.Parser), 58);
  2714. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>();
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2716. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> StructField {
  2717. get { return structField_; }
  2718. }
  2719. /// <summary>Field number for the "timestamp_field" field.</summary>
  2720. public const int TimestampFieldFieldNumber = 8;
  2721. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec _map_timestampField_codec
  2722. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser), 66);
  2723. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>();
  2724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2725. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
  2726. get { return timestampField_; }
  2727. }
  2728. /// <summary>Field number for the "type_field" field.</summary>
  2729. public const int TypeFieldFieldNumber = 9;
  2730. private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec _map_typeField_codec
  2731. = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Type.Parser), 74);
  2732. private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>();
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2734. public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeField {
  2735. get { return typeField_; }
  2736. }
  2737. /// <summary>Field number for the "double_field" field.</summary>
  2738. public const int DoubleFieldFieldNumber = 10;
  2739. private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_codec
  2740. = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<double>(18), 82);
  2741. private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapField<int, double?>();
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2743. public pbc::MapField<int, double?> DoubleField {
  2744. get { return doubleField_; }
  2745. }
  2746. /// <summary>Field number for the "float_field" field.</summary>
  2747. public const int FloatFieldFieldNumber = 11;
  2748. private static readonly pbc::MapField<int, float?>.Codec _map_floatField_codec
  2749. = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<float>(18), 90);
  2750. private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField<int, float?>();
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2752. public pbc::MapField<int, float?> FloatField {
  2753. get { return floatField_; }
  2754. }
  2755. /// <summary>Field number for the "int64_field" field.</summary>
  2756. public const int Int64FieldFieldNumber = 12;
  2757. private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_codec
  2758. = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<long>(18), 98);
  2759. private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<int, long?>();
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2761. public pbc::MapField<int, long?> Int64Field {
  2762. get { return int64Field_; }
  2763. }
  2764. /// <summary>Field number for the "uint64_field" field.</summary>
  2765. public const int Uint64FieldFieldNumber = 13;
  2766. private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_codec
  2767. = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<ulong>(18), 106);
  2768. private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField<int, ulong?>();
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2770. public pbc::MapField<int, ulong?> Uint64Field {
  2771. get { return uint64Field_; }
  2772. }
  2773. /// <summary>Field number for the "int32_field" field.</summary>
  2774. public const int Int32FieldFieldNumber = 14;
  2775. private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec
  2776. = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<int>(18), 114);
  2777. private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<int, int?>();
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2779. public pbc::MapField<int, int?> Int32Field {
  2780. get { return int32Field_; }
  2781. }
  2782. /// <summary>Field number for the "uint32_field" field.</summary>
  2783. public const int Uint32FieldFieldNumber = 15;
  2784. private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_codec
  2785. = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<uint>(18), 122);
  2786. private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField<int, uint?>();
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2788. public pbc::MapField<int, uint?> Uint32Field {
  2789. get { return uint32Field_; }
  2790. }
  2791. /// <summary>Field number for the "bool_field" field.</summary>
  2792. public const int BoolFieldFieldNumber = 16;
  2793. private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec
  2794. = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<bool>(18), 130);
  2795. private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<int, bool?>();
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2797. public pbc::MapField<int, bool?> BoolField {
  2798. get { return boolField_; }
  2799. }
  2800. /// <summary>Field number for the "string_field" field.</summary>
  2801. public const int StringFieldFieldNumber = 17;
  2802. private static readonly pbc::MapField<int, string>.Codec _map_stringField_codec
  2803. = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForClassWrapper<string>(18), 138);
  2804. private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField<int, string>();
  2805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2806. public pbc::MapField<int, string> StringField {
  2807. get { return stringField_; }
  2808. }
  2809. /// <summary>Field number for the "bytes_field" field.</summary>
  2810. public const int BytesFieldFieldNumber = 18;
  2811. private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesField_codec
  2812. = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146);
  2813. private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::MapField<int, pb::ByteString>();
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2815. public pbc::MapField<int, pb::ByteString> BytesField {
  2816. get { return bytesField_; }
  2817. }
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2819. public override bool Equals(object other) {
  2820. return Equals(other as MapWellKnownTypes);
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2823. public bool Equals(MapWellKnownTypes other) {
  2824. if (ReferenceEquals(other, null)) {
  2825. return false;
  2826. }
  2827. if (ReferenceEquals(other, this)) {
  2828. return true;
  2829. }
  2830. if (!AnyField.Equals(other.AnyField)) return false;
  2831. if (!ApiField.Equals(other.ApiField)) return false;
  2832. if (!DurationField.Equals(other.DurationField)) return false;
  2833. if (!EmptyField.Equals(other.EmptyField)) return false;
  2834. if (!FieldMaskField.Equals(other.FieldMaskField)) return false;
  2835. if (!SourceContextField.Equals(other.SourceContextField)) return false;
  2836. if (!StructField.Equals(other.StructField)) return false;
  2837. if (!TimestampField.Equals(other.TimestampField)) return false;
  2838. if (!TypeField.Equals(other.TypeField)) return false;
  2839. if (!DoubleField.Equals(other.DoubleField)) return false;
  2840. if (!FloatField.Equals(other.FloatField)) return false;
  2841. if (!Int64Field.Equals(other.Int64Field)) return false;
  2842. if (!Uint64Field.Equals(other.Uint64Field)) return false;
  2843. if (!Int32Field.Equals(other.Int32Field)) return false;
  2844. if (!Uint32Field.Equals(other.Uint32Field)) return false;
  2845. if (!BoolField.Equals(other.BoolField)) return false;
  2846. if (!StringField.Equals(other.StringField)) return false;
  2847. if (!BytesField.Equals(other.BytesField)) return false;
  2848. return Equals(_unknownFields, other._unknownFields);
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2851. public override int GetHashCode() {
  2852. int hash = 1;
  2853. hash ^= AnyField.GetHashCode();
  2854. hash ^= ApiField.GetHashCode();
  2855. hash ^= DurationField.GetHashCode();
  2856. hash ^= EmptyField.GetHashCode();
  2857. hash ^= FieldMaskField.GetHashCode();
  2858. hash ^= SourceContextField.GetHashCode();
  2859. hash ^= StructField.GetHashCode();
  2860. hash ^= TimestampField.GetHashCode();
  2861. hash ^= TypeField.GetHashCode();
  2862. hash ^= DoubleField.GetHashCode();
  2863. hash ^= FloatField.GetHashCode();
  2864. hash ^= Int64Field.GetHashCode();
  2865. hash ^= Uint64Field.GetHashCode();
  2866. hash ^= Int32Field.GetHashCode();
  2867. hash ^= Uint32Field.GetHashCode();
  2868. hash ^= BoolField.GetHashCode();
  2869. hash ^= StringField.GetHashCode();
  2870. hash ^= BytesField.GetHashCode();
  2871. if (_unknownFields != null) {
  2872. hash ^= _unknownFields.GetHashCode();
  2873. }
  2874. return hash;
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2877. public override string ToString() {
  2878. return pb::JsonFormatter.ToDiagnosticString(this);
  2879. }
  2880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2881. public void WriteTo(pb::CodedOutputStream output) {
  2882. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2883. output.WriteRawMessage(this);
  2884. #else
  2885. anyField_.WriteTo(output, _map_anyField_codec);
  2886. apiField_.WriteTo(output, _map_apiField_codec);
  2887. durationField_.WriteTo(output, _map_durationField_codec);
  2888. emptyField_.WriteTo(output, _map_emptyField_codec);
  2889. fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec);
  2890. sourceContextField_.WriteTo(output, _map_sourceContextField_codec);
  2891. structField_.WriteTo(output, _map_structField_codec);
  2892. timestampField_.WriteTo(output, _map_timestampField_codec);
  2893. typeField_.WriteTo(output, _map_typeField_codec);
  2894. doubleField_.WriteTo(output, _map_doubleField_codec);
  2895. floatField_.WriteTo(output, _map_floatField_codec);
  2896. int64Field_.WriteTo(output, _map_int64Field_codec);
  2897. uint64Field_.WriteTo(output, _map_uint64Field_codec);
  2898. int32Field_.WriteTo(output, _map_int32Field_codec);
  2899. uint32Field_.WriteTo(output, _map_uint32Field_codec);
  2900. boolField_.WriteTo(output, _map_boolField_codec);
  2901. stringField_.WriteTo(output, _map_stringField_codec);
  2902. bytesField_.WriteTo(output, _map_bytesField_codec);
  2903. if (_unknownFields != null) {
  2904. _unknownFields.WriteTo(output);
  2905. }
  2906. #endif
  2907. }
  2908. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2910. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2911. anyField_.WriteTo(ref output, _map_anyField_codec);
  2912. apiField_.WriteTo(ref output, _map_apiField_codec);
  2913. durationField_.WriteTo(ref output, _map_durationField_codec);
  2914. emptyField_.WriteTo(ref output, _map_emptyField_codec);
  2915. fieldMaskField_.WriteTo(ref output, _map_fieldMaskField_codec);
  2916. sourceContextField_.WriteTo(ref output, _map_sourceContextField_codec);
  2917. structField_.WriteTo(ref output, _map_structField_codec);
  2918. timestampField_.WriteTo(ref output, _map_timestampField_codec);
  2919. typeField_.WriteTo(ref output, _map_typeField_codec);
  2920. doubleField_.WriteTo(ref output, _map_doubleField_codec);
  2921. floatField_.WriteTo(ref output, _map_floatField_codec);
  2922. int64Field_.WriteTo(ref output, _map_int64Field_codec);
  2923. uint64Field_.WriteTo(ref output, _map_uint64Field_codec);
  2924. int32Field_.WriteTo(ref output, _map_int32Field_codec);
  2925. uint32Field_.WriteTo(ref output, _map_uint32Field_codec);
  2926. boolField_.WriteTo(ref output, _map_boolField_codec);
  2927. stringField_.WriteTo(ref output, _map_stringField_codec);
  2928. bytesField_.WriteTo(ref output, _map_bytesField_codec);
  2929. if (_unknownFields != null) {
  2930. _unknownFields.WriteTo(ref output);
  2931. }
  2932. }
  2933. #endif
  2934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2935. public int CalculateSize() {
  2936. int size = 0;
  2937. size += anyField_.CalculateSize(_map_anyField_codec);
  2938. size += apiField_.CalculateSize(_map_apiField_codec);
  2939. size += durationField_.CalculateSize(_map_durationField_codec);
  2940. size += emptyField_.CalculateSize(_map_emptyField_codec);
  2941. size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec);
  2942. size += sourceContextField_.CalculateSize(_map_sourceContextField_codec);
  2943. size += structField_.CalculateSize(_map_structField_codec);
  2944. size += timestampField_.CalculateSize(_map_timestampField_codec);
  2945. size += typeField_.CalculateSize(_map_typeField_codec);
  2946. size += doubleField_.CalculateSize(_map_doubleField_codec);
  2947. size += floatField_.CalculateSize(_map_floatField_codec);
  2948. size += int64Field_.CalculateSize(_map_int64Field_codec);
  2949. size += uint64Field_.CalculateSize(_map_uint64Field_codec);
  2950. size += int32Field_.CalculateSize(_map_int32Field_codec);
  2951. size += uint32Field_.CalculateSize(_map_uint32Field_codec);
  2952. size += boolField_.CalculateSize(_map_boolField_codec);
  2953. size += stringField_.CalculateSize(_map_stringField_codec);
  2954. size += bytesField_.CalculateSize(_map_bytesField_codec);
  2955. if (_unknownFields != null) {
  2956. size += _unknownFields.CalculateSize();
  2957. }
  2958. return size;
  2959. }
  2960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2961. public void MergeFrom(MapWellKnownTypes other) {
  2962. if (other == null) {
  2963. return;
  2964. }
  2965. anyField_.Add(other.anyField_);
  2966. apiField_.Add(other.apiField_);
  2967. durationField_.Add(other.durationField_);
  2968. emptyField_.Add(other.emptyField_);
  2969. fieldMaskField_.Add(other.fieldMaskField_);
  2970. sourceContextField_.Add(other.sourceContextField_);
  2971. structField_.Add(other.structField_);
  2972. timestampField_.Add(other.timestampField_);
  2973. typeField_.Add(other.typeField_);
  2974. doubleField_.Add(other.doubleField_);
  2975. floatField_.Add(other.floatField_);
  2976. int64Field_.Add(other.int64Field_);
  2977. uint64Field_.Add(other.uint64Field_);
  2978. int32Field_.Add(other.int32Field_);
  2979. uint32Field_.Add(other.uint32Field_);
  2980. boolField_.Add(other.boolField_);
  2981. stringField_.Add(other.stringField_);
  2982. bytesField_.Add(other.bytesField_);
  2983. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2986. public void MergeFrom(pb::CodedInputStream input) {
  2987. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2988. input.ReadRawMessage(this);
  2989. #else
  2990. uint tag;
  2991. while ((tag = input.ReadTag()) != 0) {
  2992. switch(tag) {
  2993. default:
  2994. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2995. break;
  2996. case 10: {
  2997. anyField_.AddEntriesFrom(input, _map_anyField_codec);
  2998. break;
  2999. }
  3000. case 18: {
  3001. apiField_.AddEntriesFrom(input, _map_apiField_codec);
  3002. break;
  3003. }
  3004. case 26: {
  3005. durationField_.AddEntriesFrom(input, _map_durationField_codec);
  3006. break;
  3007. }
  3008. case 34: {
  3009. emptyField_.AddEntriesFrom(input, _map_emptyField_codec);
  3010. break;
  3011. }
  3012. case 42: {
  3013. fieldMaskField_.AddEntriesFrom(input, _map_fieldMaskField_codec);
  3014. break;
  3015. }
  3016. case 50: {
  3017. sourceContextField_.AddEntriesFrom(input, _map_sourceContextField_codec);
  3018. break;
  3019. }
  3020. case 58: {
  3021. structField_.AddEntriesFrom(input, _map_structField_codec);
  3022. break;
  3023. }
  3024. case 66: {
  3025. timestampField_.AddEntriesFrom(input, _map_timestampField_codec);
  3026. break;
  3027. }
  3028. case 74: {
  3029. typeField_.AddEntriesFrom(input, _map_typeField_codec);
  3030. break;
  3031. }
  3032. case 82: {
  3033. doubleField_.AddEntriesFrom(input, _map_doubleField_codec);
  3034. break;
  3035. }
  3036. case 90: {
  3037. floatField_.AddEntriesFrom(input, _map_floatField_codec);
  3038. break;
  3039. }
  3040. case 98: {
  3041. int64Field_.AddEntriesFrom(input, _map_int64Field_codec);
  3042. break;
  3043. }
  3044. case 106: {
  3045. uint64Field_.AddEntriesFrom(input, _map_uint64Field_codec);
  3046. break;
  3047. }
  3048. case 114: {
  3049. int32Field_.AddEntriesFrom(input, _map_int32Field_codec);
  3050. break;
  3051. }
  3052. case 122: {
  3053. uint32Field_.AddEntriesFrom(input, _map_uint32Field_codec);
  3054. break;
  3055. }
  3056. case 130: {
  3057. boolField_.AddEntriesFrom(input, _map_boolField_codec);
  3058. break;
  3059. }
  3060. case 138: {
  3061. stringField_.AddEntriesFrom(input, _map_stringField_codec);
  3062. break;
  3063. }
  3064. case 146: {
  3065. bytesField_.AddEntriesFrom(input, _map_bytesField_codec);
  3066. break;
  3067. }
  3068. }
  3069. }
  3070. #endif
  3071. }
  3072. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3074. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3075. uint tag;
  3076. while ((tag = input.ReadTag()) != 0) {
  3077. switch(tag) {
  3078. default:
  3079. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3080. break;
  3081. case 10: {
  3082. anyField_.AddEntriesFrom(ref input, _map_anyField_codec);
  3083. break;
  3084. }
  3085. case 18: {
  3086. apiField_.AddEntriesFrom(ref input, _map_apiField_codec);
  3087. break;
  3088. }
  3089. case 26: {
  3090. durationField_.AddEntriesFrom(ref input, _map_durationField_codec);
  3091. break;
  3092. }
  3093. case 34: {
  3094. emptyField_.AddEntriesFrom(ref input, _map_emptyField_codec);
  3095. break;
  3096. }
  3097. case 42: {
  3098. fieldMaskField_.AddEntriesFrom(ref input, _map_fieldMaskField_codec);
  3099. break;
  3100. }
  3101. case 50: {
  3102. sourceContextField_.AddEntriesFrom(ref input, _map_sourceContextField_codec);
  3103. break;
  3104. }
  3105. case 58: {
  3106. structField_.AddEntriesFrom(ref input, _map_structField_codec);
  3107. break;
  3108. }
  3109. case 66: {
  3110. timestampField_.AddEntriesFrom(ref input, _map_timestampField_codec);
  3111. break;
  3112. }
  3113. case 74: {
  3114. typeField_.AddEntriesFrom(ref input, _map_typeField_codec);
  3115. break;
  3116. }
  3117. case 82: {
  3118. doubleField_.AddEntriesFrom(ref input, _map_doubleField_codec);
  3119. break;
  3120. }
  3121. case 90: {
  3122. floatField_.AddEntriesFrom(ref input, _map_floatField_codec);
  3123. break;
  3124. }
  3125. case 98: {
  3126. int64Field_.AddEntriesFrom(ref input, _map_int64Field_codec);
  3127. break;
  3128. }
  3129. case 106: {
  3130. uint64Field_.AddEntriesFrom(ref input, _map_uint64Field_codec);
  3131. break;
  3132. }
  3133. case 114: {
  3134. int32Field_.AddEntriesFrom(ref input, _map_int32Field_codec);
  3135. break;
  3136. }
  3137. case 122: {
  3138. uint32Field_.AddEntriesFrom(ref input, _map_uint32Field_codec);
  3139. break;
  3140. }
  3141. case 130: {
  3142. boolField_.AddEntriesFrom(ref input, _map_boolField_codec);
  3143. break;
  3144. }
  3145. case 138: {
  3146. stringField_.AddEntriesFrom(ref input, _map_stringField_codec);
  3147. break;
  3148. }
  3149. case 146: {
  3150. bytesField_.AddEntriesFrom(ref input, _map_bytesField_codec);
  3151. break;
  3152. }
  3153. }
  3154. }
  3155. }
  3156. #endif
  3157. }
  3158. #endregion
  3159. }
  3160. #endregion Designer generated code