DescriptorProtoFile.cs 154 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor_proto_file.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Google.Protobuf.Reflection {
  10. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. internal static partial class DescriptorProtoFile {
  12. #region Descriptor
  13. public static pbr::FileDescriptor Descriptor {
  14. get { return descriptor; }
  15. }
  16. private static pbr::FileDescriptor descriptor;
  17. static DescriptorProtoFile() {
  18. byte[] descriptorData = global::System.Convert.FromBase64String(
  19. string.Concat(
  20. "Citnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvcl9wcm90b19maWxlLnByb3Rv",
  21. "Eg9nb29nbGUucHJvdG9idWYiRwoRRmlsZURlc2NyaXB0b3JTZXQSMgoEZmls",
  22. "ZRgBIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3Rv",
  23. "ItsDChNGaWxlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDwoHcGFj",
  24. "a2FnZRgCIAEoCRISCgpkZXBlbmRlbmN5GAMgAygJEhkKEXB1YmxpY19kZXBl",
  25. "bmRlbmN5GAogAygFEhcKD3dlYWtfZGVwZW5kZW5jeRgLIAMoBRI2CgxtZXNz",
  26. "YWdlX3R5cGUYBCADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclBy",
  27. "b3RvEjcKCWVudW1fdHlwZRgFIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVt",
  28. "RGVzY3JpcHRvclByb3RvEjgKB3NlcnZpY2UYBiADKAsyJy5nb29nbGUucHJv",
  29. "dG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90bxI4CglleHRlbnNpb24YByAD",
  30. "KAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SLQoH",
  31. "b3B0aW9ucxgIIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxI5",
  32. "ChBzb3VyY2VfY29kZV9pbmZvGAkgASgLMh8uZ29vZ2xlLnByb3RvYnVmLlNv",
  33. "dXJjZUNvZGVJbmZvEg4KBnN5bnRheBgMIAEoCSLwBAoPRGVzY3JpcHRvclBy",
  34. "b3RvEgwKBG5hbWUYASABKAkSNAoFZmllbGQYAiADKAsyJS5nb29nbGUucHJv",
  35. "dG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAYgAygL",
  36. "MiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEjUKC25l",
  37. "c3RlZF90eXBlGAMgAygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQ",
  38. "cm90bxI3CgllbnVtX3R5cGUYBCADKAsyJC5nb29nbGUucHJvdG9idWYuRW51",
  39. "bURlc2NyaXB0b3JQcm90bxJICg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5n",
  40. "b29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdl",
  41. "EjkKCm9uZW9mX2RlY2wYCCADKAsyJS5nb29nbGUucHJvdG9idWYuT25lb2ZE",
  42. "ZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90",
  43. "b2J1Zi5NZXNzYWdlT3B0aW9ucxJGCg5yZXNlcnZlZF9yYW5nZRgJIAMoCzIu",
  44. "Lmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uUmVzZXJ2ZWRSYW5n",
  45. "ZRIVCg1yZXNlcnZlZF9uYW1lGAogAygJGiwKDkV4dGVuc2lvblJhbmdlEg0K",
  46. "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRorCg1SZXNlcnZlZFJhbmdlEg0K",
  47. "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBSKpBQoURmllbGREZXNjcmlwdG9y",
  48. "UHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAyABKAUSOgoFbGFiZWwY",
  49. "BCABKA4yKy5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8u",
  50. "TGFiZWwSOAoEdHlwZRgFIAEoDjIqLmdvb2dsZS5wcm90b2J1Zi5GaWVsZERl",
  51. "c2NyaXB0b3JQcm90by5UeXBlEhEKCXR5cGVfbmFtZRgGIAEoCRIQCghleHRl",
  52. "bmRlZRgCIAEoCRIVCg1kZWZhdWx0X3ZhbHVlGAcgASgJEhMKC29uZW9mX2lu",
  53. "ZGV4GAkgASgFEi4KB29wdGlvbnMYCCABKAsyHS5nb29nbGUucHJvdG9idWYu",
  54. "RmllbGRPcHRpb25zIrYCCgRUeXBlEg8KC1RZUEVfRE9VQkxFEAESDgoKVFlQ",
  55. "RV9GTE9BVBACEg4KClRZUEVfSU5UNjQQAxIPCgtUWVBFX1VJTlQ2NBAEEg4K",
  56. "ClRZUEVfSU5UMzIQBRIQCgxUWVBFX0ZJWEVENjQQBhIQCgxUWVBFX0ZJWEVE",
  57. "MzIQBxINCglUWVBFX0JPT0wQCBIPCgtUWVBFX1NUUklORxAJEg4KClRZUEVf",
  58. "R1JPVVAQChIQCgxUWVBFX01FU1NBR0UQCxIOCgpUWVBFX0JZVEVTEAwSDwoL",
  59. "VFlQRV9VSU5UMzIQDRINCglUWVBFX0VOVU0QDhIRCg1UWVBFX1NGSVhFRDMy",
  60. "EA8SEQoNVFlQRV9TRklYRUQ2NBAQEg8KC1RZUEVfU0lOVDMyEBESDwoLVFlQ",
  61. "RV9TSU5UNjQQEiJDCgVMYWJlbBISCg5MQUJFTF9PUFRJT05BTBABEhIKDkxB",
  62. "QkVMX1JFUVVJUkVEEAISEgoOTEFCRUxfUkVQRUFURUQQAyIkChRPbmVvZkRl",
  63. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJIowBChNFbnVtRGVzY3JpcHRv",
  64. "clByb3RvEgwKBG5hbWUYASABKAkSOAoFdmFsdWUYAiADKAsyKS5nb29nbGUu",
  65. "cHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMY",
  66. "AyABKAsyHC5nb29nbGUucHJvdG9idWYuRW51bU9wdGlvbnMibAoYRW51bVZh",
  67. "bHVlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAIg",
  68. "ASgFEjIKB29wdGlvbnMYAyABKAsyIS5nb29nbGUucHJvdG9idWYuRW51bVZh",
  69. "bHVlT3B0aW9ucyKQAQoWU2VydmljZURlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
  70. "GAEgASgJEjYKBm1ldGhvZBgCIAMoCzImLmdvb2dsZS5wcm90b2J1Zi5NZXRo",
  71. "b2REZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgDIAEoCzIfLmdvb2dsZS5w",
  72. "cm90b2J1Zi5TZXJ2aWNlT3B0aW9ucyLBAQoVTWV0aG9kRGVzY3JpcHRvclBy",
  73. "b3RvEgwKBG5hbWUYASABKAkSEgoKaW5wdXRfdHlwZRgCIAEoCRITCgtvdXRw",
  74. "dXRfdHlwZRgDIAEoCRIvCgdvcHRpb25zGAQgASgLMh4uZ29vZ2xlLnByb3Rv",
  75. "YnVmLk1ldGhvZE9wdGlvbnMSHwoQY2xpZW50X3N0cmVhbWluZxgFIAEoCDoF",
  76. "ZmFsc2USHwoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2UigQUKC0Zp",
  77. "bGVPcHRpb25zEhQKDGphdmFfcGFja2FnZRgBIAEoCRIcChRqYXZhX291dGVy",
  78. "X2NsYXNzbmFtZRgIIAEoCRIiChNqYXZhX211bHRpcGxlX2ZpbGVzGAogASgI",
  79. "OgVmYWxzZRIsCh1qYXZhX2dlbmVyYXRlX2VxdWFsc19hbmRfaGFzaBgUIAEo",
  80. "CDoFZmFsc2USJQoWamF2YV9zdHJpbmdfY2hlY2tfdXRmOBgbIAEoCDoFZmFs",
  81. "c2USRgoMb3B0aW1pemVfZm9yGAkgASgOMikuZ29vZ2xlLnByb3RvYnVmLkZp",
  82. "bGVPcHRpb25zLk9wdGltaXplTW9kZToFU1BFRUQSEgoKZ29fcGFja2FnZRgL",
  83. "IAEoCRIiChNjY19nZW5lcmljX3NlcnZpY2VzGBAgASgIOgVmYWxzZRIkChVq",
  84. "YXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlEiIKE3B5X2dlbmVy",
  85. "aWNfc2VydmljZXMYEiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6",
  86. "BWZhbHNlEh8KEGNjX2VuYWJsZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9i",
  87. "amNfY2xhc3NfcHJlZml4GCQgASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSAB",
  88. "KAkSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy",
  89. "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iOgoMT3B0aW1pemVNb2RlEgkK",
  90. "BVNQRUVEEAESDQoJQ09ERV9TSVpFEAISEAoMTElURV9SVU5USU1FEAMqCQjo",
  91. "BxCAgICAAiLmAQoOTWVzc2FnZU9wdGlvbnMSJgoXbWVzc2FnZV9zZXRfd2ly",
  92. "ZV9mb3JtYXQYASABKAg6BWZhbHNlEi4KH25vX3N0YW5kYXJkX2Rlc2NyaXB0",
  93. "b3JfYWNjZXNzb3IYAiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6",
  94. "BWZhbHNlEhEKCW1hcF9lbnRyeRgHIAEoCBJDChR1bmludGVycHJldGVkX29w",
  95. "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w",
  96. "dGlvbioJCOgHEICAgIACIpgDCgxGaWVsZE9wdGlvbnMSOgoFY3R5cGUYASAB",
  97. "KA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkNUeXBlOgZTVFJJ",
  98. "TkcSDgoGcGFja2VkGAIgASgIEj8KBmpzdHlwZRgGIAEoDjIkLmdvb2dsZS5w",
  99. "cm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1JNQUwSEwoEbGF6",
  100. "eRgFIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEwoE",
  101. "d2VhaxgKIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcg",
  102. "AygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iLwoF",
  103. "Q1R5cGUSCgoGU1RSSU5HEAASCAoEQ09SRBABEhAKDFNUUklOR19QSUVDRRAC",
  104. "IjUKBkpTVHlwZRINCglKU19OT1JNQUwQABINCglKU19TVFJJTkcQARINCglK",
  105. "U19OVU1CRVIQAioJCOgHEICAgIACIo0BCgtFbnVtT3B0aW9ucxITCgthbGxv",
  106. "d19hbGlhcxgCIAEoCBIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxzZRJDChR1",
  107. "bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYu",
  108. "VW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIn0KEEVudW1WYWx1ZU9w",
  109. "dGlvbnMSGQoKZGVwcmVjYXRlZBgBIAEoCDoFZmFsc2USQwoUdW5pbnRlcnBy",
  110. "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw",
  111. "cmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ7Cg5TZXJ2aWNlT3B0aW9ucxIZCgpk",
  112. "ZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlv",
  113. "bhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv",
  114. "bioJCOgHEICAgIACInoKDU1ldGhvZE9wdGlvbnMSGQoKZGVwcmVjYXRlZBgh",
  115. "IAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQu",
  116. "Z29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICA",
  117. "AiKeAgoTVW5pbnRlcnByZXRlZE9wdGlvbhI7CgRuYW1lGAIgAygLMi0uZ29v",
  118. "Z2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24uTmFtZVBhcnQSGAoQ",
  119. "aWRlbnRpZmllcl92YWx1ZRgDIAEoCRIaChJwb3NpdGl2ZV9pbnRfdmFsdWUY",
  120. "BCABKAQSGgoSbmVnYXRpdmVfaW50X3ZhbHVlGAUgASgDEhQKDGRvdWJsZV92",
  121. "YWx1ZRgGIAEoARIUCgxzdHJpbmdfdmFsdWUYByABKAwSFwoPYWdncmVnYXRl",
  122. "X3ZhbHVlGAggASgJGjMKCE5hbWVQYXJ0EhEKCW5hbWVfcGFydBgBIAIoCRIU",
  123. "Cgxpc19leHRlbnNpb24YAiACKAgi1QEKDlNvdXJjZUNvZGVJbmZvEjoKCGxv",
  124. "Y2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvZGVJbmZv",
  125. "LkxvY2F0aW9uGoYBCghMb2NhdGlvbhIQCgRwYXRoGAEgAygFQgIQARIQCgRz",
  126. "cGFuGAIgAygFQgIQARIYChBsZWFkaW5nX2NvbW1lbnRzGAMgASgJEhkKEXRy",
  127. "YWlsaW5nX2NvbW1lbnRzGAQgASgJEiEKGWxlYWRpbmdfZGV0YWNoZWRfY29t",
  128. "bWVudHMYBiADKAlCWAoTY29tLmdvb2dsZS5wcm90b2J1ZkIQRGVzY3JpcHRv",
  129. "clByb3Rvc0gBWgpkZXNjcmlwdG9yogIDR1BCqgIaR29vZ2xlLlByb3RvYnVm",
  130. "LlJlZmxlY3Rpb24="));
  131. descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  132. new pbr::FileDescriptor[] { },
  133. new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
  134. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), new[]{ "File" }, null, null, null),
  135. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null),
  136. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), new[]{ "Start", "End" }, null, null, null),
  137. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), new[]{ "Start", "End" }, null, null, null)}),
  138. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null),
  139. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), new[]{ "Name" }, null, null, null),
  140. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), new[]{ "Name", "Value", "Options" }, null, null, null),
  141. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), new[]{ "Name", "Number", "Options" }, null, null, null),
  142. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), new[]{ "Name", "Method", "Options" }, null, null, null),
  143. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
  144. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
  145. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
  146. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
  147. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
  148. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  149. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  150. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  151. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
  152. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), new[]{ "Location" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)})
  153. }));
  154. }
  155. #endregion
  156. }
  157. #region Messages
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  159. internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
  160. private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
  161. public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
  162. public static pbr::MessageDescriptor Descriptor {
  163. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[0]; }
  164. }
  165. pbr::MessageDescriptor pb::IMessage.Descriptor {
  166. get { return Descriptor; }
  167. }
  168. private bool _frozen = false;
  169. public bool IsFrozen { get { return _frozen; } }
  170. public FileDescriptorSet() {
  171. OnConstruction();
  172. }
  173. partial void OnConstruction();
  174. public FileDescriptorSet(FileDescriptorSet other) : this() {
  175. file_ = other.file_.Clone();
  176. }
  177. public FileDescriptorSet Clone() {
  178. return new FileDescriptorSet(this);
  179. }
  180. public const int FileFieldNumber = 1;
  181. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
  182. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
  183. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
  184. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
  185. get { return file_; }
  186. }
  187. public override bool Equals(object other) {
  188. return Equals(other as FileDescriptorSet);
  189. }
  190. public bool Equals(FileDescriptorSet other) {
  191. if (ReferenceEquals(other, null)) {
  192. return false;
  193. }
  194. if (ReferenceEquals(other, this)) {
  195. return true;
  196. }
  197. if(!file_.Equals(other.file_)) return false;
  198. return true;
  199. }
  200. public override int GetHashCode() {
  201. int hash = 1;
  202. hash ^= file_.GetHashCode();
  203. return hash;
  204. }
  205. public override string ToString() {
  206. return pb::JsonFormatter.Default.Format(this);
  207. }
  208. public void WriteTo(pb::CodedOutputStream output) {
  209. file_.WriteTo(output, _repeated_file_codec);
  210. }
  211. public int CalculateSize() {
  212. int size = 0;
  213. size += file_.CalculateSize(_repeated_file_codec);
  214. return size;
  215. }
  216. public void MergeFrom(FileDescriptorSet other) {
  217. if (other == null) {
  218. return;
  219. }
  220. file_.Add(other.file_);
  221. }
  222. public void MergeFrom(pb::CodedInputStream input) {
  223. uint tag;
  224. while (input.ReadTag(out tag)) {
  225. switch(tag) {
  226. case 0:
  227. throw pb::InvalidProtocolBufferException.InvalidTag();
  228. default:
  229. if (pb::WireFormat.IsEndGroupTag(tag)) {
  230. return;
  231. }
  232. break;
  233. case 10: {
  234. file_.AddEntriesFrom(input, _repeated_file_codec);
  235. break;
  236. }
  237. }
  238. }
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
  243. private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
  244. public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
  245. public static pbr::MessageDescriptor Descriptor {
  246. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[1]; }
  247. }
  248. pbr::MessageDescriptor pb::IMessage.Descriptor {
  249. get { return Descriptor; }
  250. }
  251. private bool _frozen = false;
  252. public bool IsFrozen { get { return _frozen; } }
  253. public FileDescriptorProto() {
  254. OnConstruction();
  255. }
  256. partial void OnConstruction();
  257. public FileDescriptorProto(FileDescriptorProto other) : this() {
  258. name_ = other.name_;
  259. package_ = other.package_;
  260. dependency_ = other.dependency_.Clone();
  261. publicDependency_ = other.publicDependency_.Clone();
  262. weakDependency_ = other.weakDependency_.Clone();
  263. messageType_ = other.messageType_.Clone();
  264. enumType_ = other.enumType_.Clone();
  265. service_ = other.service_.Clone();
  266. extension_ = other.extension_.Clone();
  267. Options = other.options_ != null ? other.Options.Clone() : null;
  268. SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null;
  269. syntax_ = other.syntax_;
  270. }
  271. public FileDescriptorProto Clone() {
  272. return new FileDescriptorProto(this);
  273. }
  274. public const int NameFieldNumber = 1;
  275. private string name_ = "";
  276. internal string Name {
  277. get { return name_; }
  278. set {
  279. name_ = value ?? "";
  280. }
  281. }
  282. public const int PackageFieldNumber = 2;
  283. private string package_ = "";
  284. internal string Package {
  285. get { return package_; }
  286. set {
  287. package_ = value ?? "";
  288. }
  289. }
  290. public const int DependencyFieldNumber = 3;
  291. private static readonly pb::FieldCodec<string> _repeated_dependency_codec
  292. = pb::FieldCodec.ForString(26);
  293. private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
  294. internal pbc::RepeatedField<string> Dependency {
  295. get { return dependency_; }
  296. }
  297. public const int PublicDependencyFieldNumber = 10;
  298. private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
  299. = pb::FieldCodec.ForInt32(80);
  300. private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
  301. internal pbc::RepeatedField<int> PublicDependency {
  302. get { return publicDependency_; }
  303. }
  304. public const int WeakDependencyFieldNumber = 11;
  305. private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
  306. = pb::FieldCodec.ForInt32(88);
  307. private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
  308. internal pbc::RepeatedField<int> WeakDependency {
  309. get { return weakDependency_; }
  310. }
  311. public const int MessageTypeFieldNumber = 4;
  312. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
  313. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  314. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  315. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
  316. get { return messageType_; }
  317. }
  318. public const int EnumTypeFieldNumber = 5;
  319. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  320. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  321. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  322. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  323. get { return enumType_; }
  324. }
  325. public const int ServiceFieldNumber = 6;
  326. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
  327. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
  328. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
  329. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
  330. get { return service_; }
  331. }
  332. public const int ExtensionFieldNumber = 7;
  333. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  334. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  335. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  336. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  337. get { return extension_; }
  338. }
  339. public const int OptionsFieldNumber = 8;
  340. private global::Google.Protobuf.Reflection.FileOptions options_;
  341. internal global::Google.Protobuf.Reflection.FileOptions Options {
  342. get { return options_; }
  343. set {
  344. options_ = value;
  345. }
  346. }
  347. public const int SourceCodeInfoFieldNumber = 9;
  348. private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
  349. internal global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
  350. get { return sourceCodeInfo_; }
  351. set {
  352. sourceCodeInfo_ = value;
  353. }
  354. }
  355. public const int SyntaxFieldNumber = 12;
  356. private string syntax_ = "";
  357. internal string Syntax {
  358. get { return syntax_; }
  359. set {
  360. syntax_ = value ?? "";
  361. }
  362. }
  363. public override bool Equals(object other) {
  364. return Equals(other as FileDescriptorProto);
  365. }
  366. public bool Equals(FileDescriptorProto other) {
  367. if (ReferenceEquals(other, null)) {
  368. return false;
  369. }
  370. if (ReferenceEquals(other, this)) {
  371. return true;
  372. }
  373. if (Name != other.Name) return false;
  374. if (Package != other.Package) return false;
  375. if(!dependency_.Equals(other.dependency_)) return false;
  376. if(!publicDependency_.Equals(other.publicDependency_)) return false;
  377. if(!weakDependency_.Equals(other.weakDependency_)) return false;
  378. if(!messageType_.Equals(other.messageType_)) return false;
  379. if(!enumType_.Equals(other.enumType_)) return false;
  380. if(!service_.Equals(other.service_)) return false;
  381. if(!extension_.Equals(other.extension_)) return false;
  382. if (!object.Equals(Options, other.Options)) return false;
  383. if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
  384. if (Syntax != other.Syntax) return false;
  385. return true;
  386. }
  387. public override int GetHashCode() {
  388. int hash = 1;
  389. if (Name.Length != 0) hash ^= Name.GetHashCode();
  390. if (Package.Length != 0) hash ^= Package.GetHashCode();
  391. hash ^= dependency_.GetHashCode();
  392. hash ^= publicDependency_.GetHashCode();
  393. hash ^= weakDependency_.GetHashCode();
  394. hash ^= messageType_.GetHashCode();
  395. hash ^= enumType_.GetHashCode();
  396. hash ^= service_.GetHashCode();
  397. hash ^= extension_.GetHashCode();
  398. if (options_ != null) hash ^= Options.GetHashCode();
  399. if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
  400. if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
  401. return hash;
  402. }
  403. public override string ToString() {
  404. return pb::JsonFormatter.Default.Format(this);
  405. }
  406. public void WriteTo(pb::CodedOutputStream output) {
  407. if (Name.Length != 0) {
  408. output.WriteRawTag(10);
  409. output.WriteString(Name);
  410. }
  411. if (Package.Length != 0) {
  412. output.WriteRawTag(18);
  413. output.WriteString(Package);
  414. }
  415. dependency_.WriteTo(output, _repeated_dependency_codec);
  416. messageType_.WriteTo(output, _repeated_messageType_codec);
  417. enumType_.WriteTo(output, _repeated_enumType_codec);
  418. service_.WriteTo(output, _repeated_service_codec);
  419. extension_.WriteTo(output, _repeated_extension_codec);
  420. if (options_ != null) {
  421. output.WriteRawTag(66);
  422. output.WriteMessage(Options);
  423. }
  424. if (sourceCodeInfo_ != null) {
  425. output.WriteRawTag(74);
  426. output.WriteMessage(SourceCodeInfo);
  427. }
  428. publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
  429. weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
  430. if (Syntax.Length != 0) {
  431. output.WriteRawTag(98);
  432. output.WriteString(Syntax);
  433. }
  434. }
  435. public int CalculateSize() {
  436. int size = 0;
  437. if (Name.Length != 0) {
  438. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  439. }
  440. if (Package.Length != 0) {
  441. size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
  442. }
  443. size += dependency_.CalculateSize(_repeated_dependency_codec);
  444. size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
  445. size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
  446. size += messageType_.CalculateSize(_repeated_messageType_codec);
  447. size += enumType_.CalculateSize(_repeated_enumType_codec);
  448. size += service_.CalculateSize(_repeated_service_codec);
  449. size += extension_.CalculateSize(_repeated_extension_codec);
  450. if (options_ != null) {
  451. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  452. }
  453. if (sourceCodeInfo_ != null) {
  454. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
  455. }
  456. if (Syntax.Length != 0) {
  457. size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
  458. }
  459. return size;
  460. }
  461. public void MergeFrom(FileDescriptorProto other) {
  462. if (other == null) {
  463. return;
  464. }
  465. if (other.Name.Length != 0) {
  466. Name = other.Name;
  467. }
  468. if (other.Package.Length != 0) {
  469. Package = other.Package;
  470. }
  471. dependency_.Add(other.dependency_);
  472. publicDependency_.Add(other.publicDependency_);
  473. weakDependency_.Add(other.weakDependency_);
  474. messageType_.Add(other.messageType_);
  475. enumType_.Add(other.enumType_);
  476. service_.Add(other.service_);
  477. extension_.Add(other.extension_);
  478. if (other.options_ != null) {
  479. if (options_ == null) {
  480. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  481. }
  482. Options.MergeFrom(other.Options);
  483. }
  484. if (other.sourceCodeInfo_ != null) {
  485. if (sourceCodeInfo_ == null) {
  486. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  487. }
  488. SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
  489. }
  490. if (other.Syntax.Length != 0) {
  491. Syntax = other.Syntax;
  492. }
  493. }
  494. public void MergeFrom(pb::CodedInputStream input) {
  495. uint tag;
  496. while (input.ReadTag(out tag)) {
  497. switch(tag) {
  498. case 0:
  499. throw pb::InvalidProtocolBufferException.InvalidTag();
  500. default:
  501. if (pb::WireFormat.IsEndGroupTag(tag)) {
  502. return;
  503. }
  504. break;
  505. case 10: {
  506. Name = input.ReadString();
  507. break;
  508. }
  509. case 18: {
  510. Package = input.ReadString();
  511. break;
  512. }
  513. case 26: {
  514. dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
  515. break;
  516. }
  517. case 34: {
  518. messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
  519. break;
  520. }
  521. case 42: {
  522. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  523. break;
  524. }
  525. case 50: {
  526. service_.AddEntriesFrom(input, _repeated_service_codec);
  527. break;
  528. }
  529. case 58: {
  530. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  531. break;
  532. }
  533. case 66: {
  534. if (options_ == null) {
  535. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  536. }
  537. input.ReadMessage(options_);
  538. break;
  539. }
  540. case 74: {
  541. if (sourceCodeInfo_ == null) {
  542. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  543. }
  544. input.ReadMessage(sourceCodeInfo_);
  545. break;
  546. }
  547. case 82:
  548. case 80: {
  549. publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
  550. break;
  551. }
  552. case 90:
  553. case 88: {
  554. weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
  555. break;
  556. }
  557. case 98: {
  558. Syntax = input.ReadString();
  559. break;
  560. }
  561. }
  562. }
  563. }
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
  567. private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
  568. public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
  569. public static pbr::MessageDescriptor Descriptor {
  570. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[2]; }
  571. }
  572. pbr::MessageDescriptor pb::IMessage.Descriptor {
  573. get { return Descriptor; }
  574. }
  575. private bool _frozen = false;
  576. public bool IsFrozen { get { return _frozen; } }
  577. public DescriptorProto() {
  578. OnConstruction();
  579. }
  580. partial void OnConstruction();
  581. public DescriptorProto(DescriptorProto other) : this() {
  582. name_ = other.name_;
  583. field_ = other.field_.Clone();
  584. extension_ = other.extension_.Clone();
  585. nestedType_ = other.nestedType_.Clone();
  586. enumType_ = other.enumType_.Clone();
  587. extensionRange_ = other.extensionRange_.Clone();
  588. oneofDecl_ = other.oneofDecl_.Clone();
  589. Options = other.options_ != null ? other.Options.Clone() : null;
  590. reservedRange_ = other.reservedRange_.Clone();
  591. reservedName_ = other.reservedName_.Clone();
  592. }
  593. public DescriptorProto Clone() {
  594. return new DescriptorProto(this);
  595. }
  596. public const int NameFieldNumber = 1;
  597. private string name_ = "";
  598. internal string Name {
  599. get { return name_; }
  600. set {
  601. name_ = value ?? "";
  602. }
  603. }
  604. public const int FieldFieldNumber = 2;
  605. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
  606. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  607. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  608. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
  609. get { return field_; }
  610. }
  611. public const int ExtensionFieldNumber = 6;
  612. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  613. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  614. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  615. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  616. get { return extension_; }
  617. }
  618. public const int NestedTypeFieldNumber = 3;
  619. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
  620. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  621. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  622. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
  623. get { return nestedType_; }
  624. }
  625. public const int EnumTypeFieldNumber = 4;
  626. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  627. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  628. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  629. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  630. get { return enumType_; }
  631. }
  632. public const int ExtensionRangeFieldNumber = 5;
  633. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
  634. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
  635. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
  636. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
  637. get { return extensionRange_; }
  638. }
  639. public const int OneofDeclFieldNumber = 8;
  640. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
  641. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
  642. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
  643. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
  644. get { return oneofDecl_; }
  645. }
  646. public const int OptionsFieldNumber = 7;
  647. private global::Google.Protobuf.Reflection.MessageOptions options_;
  648. internal global::Google.Protobuf.Reflection.MessageOptions Options {
  649. get { return options_; }
  650. set {
  651. options_ = value;
  652. }
  653. }
  654. public const int ReservedRangeFieldNumber = 9;
  655. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
  656. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
  657. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
  658. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
  659. get { return reservedRange_; }
  660. }
  661. public const int ReservedNameFieldNumber = 10;
  662. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  663. = pb::FieldCodec.ForString(82);
  664. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  665. internal pbc::RepeatedField<string> ReservedName {
  666. get { return reservedName_; }
  667. }
  668. public override bool Equals(object other) {
  669. return Equals(other as DescriptorProto);
  670. }
  671. public bool Equals(DescriptorProto other) {
  672. if (ReferenceEquals(other, null)) {
  673. return false;
  674. }
  675. if (ReferenceEquals(other, this)) {
  676. return true;
  677. }
  678. if (Name != other.Name) return false;
  679. if(!field_.Equals(other.field_)) return false;
  680. if(!extension_.Equals(other.extension_)) return false;
  681. if(!nestedType_.Equals(other.nestedType_)) return false;
  682. if(!enumType_.Equals(other.enumType_)) return false;
  683. if(!extensionRange_.Equals(other.extensionRange_)) return false;
  684. if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
  685. if (!object.Equals(Options, other.Options)) return false;
  686. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  687. if(!reservedName_.Equals(other.reservedName_)) return false;
  688. return true;
  689. }
  690. public override int GetHashCode() {
  691. int hash = 1;
  692. if (Name.Length != 0) hash ^= Name.GetHashCode();
  693. hash ^= field_.GetHashCode();
  694. hash ^= extension_.GetHashCode();
  695. hash ^= nestedType_.GetHashCode();
  696. hash ^= enumType_.GetHashCode();
  697. hash ^= extensionRange_.GetHashCode();
  698. hash ^= oneofDecl_.GetHashCode();
  699. if (options_ != null) hash ^= Options.GetHashCode();
  700. hash ^= reservedRange_.GetHashCode();
  701. hash ^= reservedName_.GetHashCode();
  702. return hash;
  703. }
  704. public override string ToString() {
  705. return pb::JsonFormatter.Default.Format(this);
  706. }
  707. public void WriteTo(pb::CodedOutputStream output) {
  708. if (Name.Length != 0) {
  709. output.WriteRawTag(10);
  710. output.WriteString(Name);
  711. }
  712. field_.WriteTo(output, _repeated_field_codec);
  713. nestedType_.WriteTo(output, _repeated_nestedType_codec);
  714. enumType_.WriteTo(output, _repeated_enumType_codec);
  715. extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
  716. extension_.WriteTo(output, _repeated_extension_codec);
  717. if (options_ != null) {
  718. output.WriteRawTag(58);
  719. output.WriteMessage(Options);
  720. }
  721. oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
  722. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  723. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  724. }
  725. public int CalculateSize() {
  726. int size = 0;
  727. if (Name.Length != 0) {
  728. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  729. }
  730. size += field_.CalculateSize(_repeated_field_codec);
  731. size += extension_.CalculateSize(_repeated_extension_codec);
  732. size += nestedType_.CalculateSize(_repeated_nestedType_codec);
  733. size += enumType_.CalculateSize(_repeated_enumType_codec);
  734. size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
  735. size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
  736. if (options_ != null) {
  737. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  738. }
  739. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  740. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  741. return size;
  742. }
  743. public void MergeFrom(DescriptorProto other) {
  744. if (other == null) {
  745. return;
  746. }
  747. if (other.Name.Length != 0) {
  748. Name = other.Name;
  749. }
  750. field_.Add(other.field_);
  751. extension_.Add(other.extension_);
  752. nestedType_.Add(other.nestedType_);
  753. enumType_.Add(other.enumType_);
  754. extensionRange_.Add(other.extensionRange_);
  755. oneofDecl_.Add(other.oneofDecl_);
  756. if (other.options_ != null) {
  757. if (options_ == null) {
  758. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  759. }
  760. Options.MergeFrom(other.Options);
  761. }
  762. reservedRange_.Add(other.reservedRange_);
  763. reservedName_.Add(other.reservedName_);
  764. }
  765. public void MergeFrom(pb::CodedInputStream input) {
  766. uint tag;
  767. while (input.ReadTag(out tag)) {
  768. switch(tag) {
  769. case 0:
  770. throw pb::InvalidProtocolBufferException.InvalidTag();
  771. default:
  772. if (pb::WireFormat.IsEndGroupTag(tag)) {
  773. return;
  774. }
  775. break;
  776. case 10: {
  777. Name = input.ReadString();
  778. break;
  779. }
  780. case 18: {
  781. field_.AddEntriesFrom(input, _repeated_field_codec);
  782. break;
  783. }
  784. case 26: {
  785. nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
  786. break;
  787. }
  788. case 34: {
  789. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  790. break;
  791. }
  792. case 42: {
  793. extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
  794. break;
  795. }
  796. case 50: {
  797. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  798. break;
  799. }
  800. case 58: {
  801. if (options_ == null) {
  802. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  803. }
  804. input.ReadMessage(options_);
  805. break;
  806. }
  807. case 66: {
  808. oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
  809. break;
  810. }
  811. case 74: {
  812. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  813. break;
  814. }
  815. case 82: {
  816. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  817. break;
  818. }
  819. }
  820. }
  821. }
  822. #region Nested types
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. public static partial class Types {
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
  827. private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
  828. public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
  829. public static pbr::MessageDescriptor Descriptor {
  830. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
  831. }
  832. pbr::MessageDescriptor pb::IMessage.Descriptor {
  833. get { return Descriptor; }
  834. }
  835. private bool _frozen = false;
  836. public bool IsFrozen { get { return _frozen; } }
  837. public ExtensionRange() {
  838. OnConstruction();
  839. }
  840. partial void OnConstruction();
  841. public ExtensionRange(ExtensionRange other) : this() {
  842. start_ = other.start_;
  843. end_ = other.end_;
  844. }
  845. public ExtensionRange Clone() {
  846. return new ExtensionRange(this);
  847. }
  848. public const int StartFieldNumber = 1;
  849. private int start_;
  850. internal int Start {
  851. get { return start_; }
  852. set {
  853. start_ = value;
  854. }
  855. }
  856. public const int EndFieldNumber = 2;
  857. private int end_;
  858. internal int End {
  859. get { return end_; }
  860. set {
  861. end_ = value;
  862. }
  863. }
  864. public override bool Equals(object other) {
  865. return Equals(other as ExtensionRange);
  866. }
  867. public bool Equals(ExtensionRange other) {
  868. if (ReferenceEquals(other, null)) {
  869. return false;
  870. }
  871. if (ReferenceEquals(other, this)) {
  872. return true;
  873. }
  874. if (Start != other.Start) return false;
  875. if (End != other.End) return false;
  876. return true;
  877. }
  878. public override int GetHashCode() {
  879. int hash = 1;
  880. if (Start != 0) hash ^= Start.GetHashCode();
  881. if (End != 0) hash ^= End.GetHashCode();
  882. return hash;
  883. }
  884. public override string ToString() {
  885. return pb::JsonFormatter.Default.Format(this);
  886. }
  887. public void WriteTo(pb::CodedOutputStream output) {
  888. if (Start != 0) {
  889. output.WriteRawTag(8);
  890. output.WriteInt32(Start);
  891. }
  892. if (End != 0) {
  893. output.WriteRawTag(16);
  894. output.WriteInt32(End);
  895. }
  896. }
  897. public int CalculateSize() {
  898. int size = 0;
  899. if (Start != 0) {
  900. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  901. }
  902. if (End != 0) {
  903. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  904. }
  905. return size;
  906. }
  907. public void MergeFrom(ExtensionRange other) {
  908. if (other == null) {
  909. return;
  910. }
  911. if (other.Start != 0) {
  912. Start = other.Start;
  913. }
  914. if (other.End != 0) {
  915. End = other.End;
  916. }
  917. }
  918. public void MergeFrom(pb::CodedInputStream input) {
  919. uint tag;
  920. while (input.ReadTag(out tag)) {
  921. switch(tag) {
  922. case 0:
  923. throw pb::InvalidProtocolBufferException.InvalidTag();
  924. default:
  925. if (pb::WireFormat.IsEndGroupTag(tag)) {
  926. return;
  927. }
  928. break;
  929. case 8: {
  930. Start = input.ReadInt32();
  931. break;
  932. }
  933. case 16: {
  934. End = input.ReadInt32();
  935. break;
  936. }
  937. }
  938. }
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
  943. private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
  944. public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
  945. public static pbr::MessageDescriptor Descriptor {
  946. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
  947. }
  948. pbr::MessageDescriptor pb::IMessage.Descriptor {
  949. get { return Descriptor; }
  950. }
  951. private bool _frozen = false;
  952. public bool IsFrozen { get { return _frozen; } }
  953. public ReservedRange() {
  954. OnConstruction();
  955. }
  956. partial void OnConstruction();
  957. public ReservedRange(ReservedRange other) : this() {
  958. start_ = other.start_;
  959. end_ = other.end_;
  960. }
  961. public ReservedRange Clone() {
  962. return new ReservedRange(this);
  963. }
  964. public const int StartFieldNumber = 1;
  965. private int start_;
  966. internal int Start {
  967. get { return start_; }
  968. set {
  969. start_ = value;
  970. }
  971. }
  972. public const int EndFieldNumber = 2;
  973. private int end_;
  974. internal int End {
  975. get { return end_; }
  976. set {
  977. end_ = value;
  978. }
  979. }
  980. public override bool Equals(object other) {
  981. return Equals(other as ReservedRange);
  982. }
  983. public bool Equals(ReservedRange other) {
  984. if (ReferenceEquals(other, null)) {
  985. return false;
  986. }
  987. if (ReferenceEquals(other, this)) {
  988. return true;
  989. }
  990. if (Start != other.Start) return false;
  991. if (End != other.End) return false;
  992. return true;
  993. }
  994. public override int GetHashCode() {
  995. int hash = 1;
  996. if (Start != 0) hash ^= Start.GetHashCode();
  997. if (End != 0) hash ^= End.GetHashCode();
  998. return hash;
  999. }
  1000. public override string ToString() {
  1001. return pb::JsonFormatter.Default.Format(this);
  1002. }
  1003. public void WriteTo(pb::CodedOutputStream output) {
  1004. if (Start != 0) {
  1005. output.WriteRawTag(8);
  1006. output.WriteInt32(Start);
  1007. }
  1008. if (End != 0) {
  1009. output.WriteRawTag(16);
  1010. output.WriteInt32(End);
  1011. }
  1012. }
  1013. public int CalculateSize() {
  1014. int size = 0;
  1015. if (Start != 0) {
  1016. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1017. }
  1018. if (End != 0) {
  1019. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1020. }
  1021. return size;
  1022. }
  1023. public void MergeFrom(ReservedRange other) {
  1024. if (other == null) {
  1025. return;
  1026. }
  1027. if (other.Start != 0) {
  1028. Start = other.Start;
  1029. }
  1030. if (other.End != 0) {
  1031. End = other.End;
  1032. }
  1033. }
  1034. public void MergeFrom(pb::CodedInputStream input) {
  1035. uint tag;
  1036. while (input.ReadTag(out tag)) {
  1037. switch(tag) {
  1038. case 0:
  1039. throw pb::InvalidProtocolBufferException.InvalidTag();
  1040. default:
  1041. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1042. return;
  1043. }
  1044. break;
  1045. case 8: {
  1046. Start = input.ReadInt32();
  1047. break;
  1048. }
  1049. case 16: {
  1050. End = input.ReadInt32();
  1051. break;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. }
  1057. }
  1058. #endregion
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
  1062. private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
  1063. public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
  1064. public static pbr::MessageDescriptor Descriptor {
  1065. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[3]; }
  1066. }
  1067. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1068. get { return Descriptor; }
  1069. }
  1070. private bool _frozen = false;
  1071. public bool IsFrozen { get { return _frozen; } }
  1072. public FieldDescriptorProto() {
  1073. OnConstruction();
  1074. }
  1075. partial void OnConstruction();
  1076. public FieldDescriptorProto(FieldDescriptorProto other) : this() {
  1077. name_ = other.name_;
  1078. number_ = other.number_;
  1079. label_ = other.label_;
  1080. type_ = other.type_;
  1081. typeName_ = other.typeName_;
  1082. extendee_ = other.extendee_;
  1083. defaultValue_ = other.defaultValue_;
  1084. oneofIndex_ = other.oneofIndex_;
  1085. Options = other.options_ != null ? other.Options.Clone() : null;
  1086. }
  1087. public FieldDescriptorProto Clone() {
  1088. return new FieldDescriptorProto(this);
  1089. }
  1090. public const int NameFieldNumber = 1;
  1091. private string name_ = "";
  1092. internal string Name {
  1093. get { return name_; }
  1094. set {
  1095. name_ = value ?? "";
  1096. }
  1097. }
  1098. public const int NumberFieldNumber = 3;
  1099. private int number_;
  1100. internal int Number {
  1101. get { return number_; }
  1102. set {
  1103. number_ = value;
  1104. }
  1105. }
  1106. public const int LabelFieldNumber = 4;
  1107. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  1108. internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
  1109. get { return label_; }
  1110. set {
  1111. label_ = value;
  1112. }
  1113. }
  1114. public const int TypeFieldNumber = 5;
  1115. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  1116. internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
  1117. get { return type_; }
  1118. set {
  1119. type_ = value;
  1120. }
  1121. }
  1122. public const int TypeNameFieldNumber = 6;
  1123. private string typeName_ = "";
  1124. internal string TypeName {
  1125. get { return typeName_; }
  1126. set {
  1127. typeName_ = value ?? "";
  1128. }
  1129. }
  1130. public const int ExtendeeFieldNumber = 2;
  1131. private string extendee_ = "";
  1132. internal string Extendee {
  1133. get { return extendee_; }
  1134. set {
  1135. extendee_ = value ?? "";
  1136. }
  1137. }
  1138. public const int DefaultValueFieldNumber = 7;
  1139. private string defaultValue_ = "";
  1140. internal string DefaultValue {
  1141. get { return defaultValue_; }
  1142. set {
  1143. defaultValue_ = value ?? "";
  1144. }
  1145. }
  1146. public const int OneofIndexFieldNumber = 9;
  1147. private int oneofIndex_;
  1148. internal int OneofIndex {
  1149. get { return oneofIndex_; }
  1150. set {
  1151. oneofIndex_ = value;
  1152. }
  1153. }
  1154. public const int OptionsFieldNumber = 8;
  1155. private global::Google.Protobuf.Reflection.FieldOptions options_;
  1156. internal global::Google.Protobuf.Reflection.FieldOptions Options {
  1157. get { return options_; }
  1158. set {
  1159. options_ = value;
  1160. }
  1161. }
  1162. public override bool Equals(object other) {
  1163. return Equals(other as FieldDescriptorProto);
  1164. }
  1165. public bool Equals(FieldDescriptorProto other) {
  1166. if (ReferenceEquals(other, null)) {
  1167. return false;
  1168. }
  1169. if (ReferenceEquals(other, this)) {
  1170. return true;
  1171. }
  1172. if (Name != other.Name) return false;
  1173. if (Number != other.Number) return false;
  1174. if (Label != other.Label) return false;
  1175. if (Type != other.Type) return false;
  1176. if (TypeName != other.TypeName) return false;
  1177. if (Extendee != other.Extendee) return false;
  1178. if (DefaultValue != other.DefaultValue) return false;
  1179. if (OneofIndex != other.OneofIndex) return false;
  1180. if (!object.Equals(Options, other.Options)) return false;
  1181. return true;
  1182. }
  1183. public override int GetHashCode() {
  1184. int hash = 1;
  1185. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1186. if (Number != 0) hash ^= Number.GetHashCode();
  1187. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) hash ^= Label.GetHashCode();
  1188. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) hash ^= Type.GetHashCode();
  1189. if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
  1190. if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
  1191. if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
  1192. if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
  1193. if (options_ != null) hash ^= Options.GetHashCode();
  1194. return hash;
  1195. }
  1196. public override string ToString() {
  1197. return pb::JsonFormatter.Default.Format(this);
  1198. }
  1199. public void WriteTo(pb::CodedOutputStream output) {
  1200. if (Name.Length != 0) {
  1201. output.WriteRawTag(10);
  1202. output.WriteString(Name);
  1203. }
  1204. if (Extendee.Length != 0) {
  1205. output.WriteRawTag(18);
  1206. output.WriteString(Extendee);
  1207. }
  1208. if (Number != 0) {
  1209. output.WriteRawTag(24);
  1210. output.WriteInt32(Number);
  1211. }
  1212. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1213. output.WriteRawTag(32);
  1214. output.WriteEnum((int) Label);
  1215. }
  1216. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1217. output.WriteRawTag(40);
  1218. output.WriteEnum((int) Type);
  1219. }
  1220. if (TypeName.Length != 0) {
  1221. output.WriteRawTag(50);
  1222. output.WriteString(TypeName);
  1223. }
  1224. if (DefaultValue.Length != 0) {
  1225. output.WriteRawTag(58);
  1226. output.WriteString(DefaultValue);
  1227. }
  1228. if (options_ != null) {
  1229. output.WriteRawTag(66);
  1230. output.WriteMessage(Options);
  1231. }
  1232. if (OneofIndex != 0) {
  1233. output.WriteRawTag(72);
  1234. output.WriteInt32(OneofIndex);
  1235. }
  1236. }
  1237. public int CalculateSize() {
  1238. int size = 0;
  1239. if (Name.Length != 0) {
  1240. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1241. }
  1242. if (Number != 0) {
  1243. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1244. }
  1245. if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1246. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
  1247. }
  1248. if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1249. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  1250. }
  1251. if (TypeName.Length != 0) {
  1252. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
  1253. }
  1254. if (Extendee.Length != 0) {
  1255. size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
  1256. }
  1257. if (DefaultValue.Length != 0) {
  1258. size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
  1259. }
  1260. if (OneofIndex != 0) {
  1261. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
  1262. }
  1263. if (options_ != null) {
  1264. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1265. }
  1266. return size;
  1267. }
  1268. public void MergeFrom(FieldDescriptorProto other) {
  1269. if (other == null) {
  1270. return;
  1271. }
  1272. if (other.Name.Length != 0) {
  1273. Name = other.Name;
  1274. }
  1275. if (other.Number != 0) {
  1276. Number = other.Number;
  1277. }
  1278. if (other.Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
  1279. Label = other.Label;
  1280. }
  1281. if (other.Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
  1282. Type = other.Type;
  1283. }
  1284. if (other.TypeName.Length != 0) {
  1285. TypeName = other.TypeName;
  1286. }
  1287. if (other.Extendee.Length != 0) {
  1288. Extendee = other.Extendee;
  1289. }
  1290. if (other.DefaultValue.Length != 0) {
  1291. DefaultValue = other.DefaultValue;
  1292. }
  1293. if (other.OneofIndex != 0) {
  1294. OneofIndex = other.OneofIndex;
  1295. }
  1296. if (other.options_ != null) {
  1297. if (options_ == null) {
  1298. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1299. }
  1300. Options.MergeFrom(other.Options);
  1301. }
  1302. }
  1303. public void MergeFrom(pb::CodedInputStream input) {
  1304. uint tag;
  1305. while (input.ReadTag(out tag)) {
  1306. switch(tag) {
  1307. case 0:
  1308. throw pb::InvalidProtocolBufferException.InvalidTag();
  1309. default:
  1310. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1311. return;
  1312. }
  1313. break;
  1314. case 10: {
  1315. Name = input.ReadString();
  1316. break;
  1317. }
  1318. case 18: {
  1319. Extendee = input.ReadString();
  1320. break;
  1321. }
  1322. case 24: {
  1323. Number = input.ReadInt32();
  1324. break;
  1325. }
  1326. case 32: {
  1327. label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
  1328. break;
  1329. }
  1330. case 40: {
  1331. type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
  1332. break;
  1333. }
  1334. case 50: {
  1335. TypeName = input.ReadString();
  1336. break;
  1337. }
  1338. case 58: {
  1339. DefaultValue = input.ReadString();
  1340. break;
  1341. }
  1342. case 66: {
  1343. if (options_ == null) {
  1344. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1345. }
  1346. input.ReadMessage(options_);
  1347. break;
  1348. }
  1349. case 72: {
  1350. OneofIndex = input.ReadInt32();
  1351. break;
  1352. }
  1353. }
  1354. }
  1355. }
  1356. #region Nested types
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. public static partial class Types {
  1359. internal enum Type {
  1360. TYPE_DOUBLE = 1,
  1361. TYPE_FLOAT = 2,
  1362. TYPE_INT64 = 3,
  1363. TYPE_UINT64 = 4,
  1364. TYPE_INT32 = 5,
  1365. TYPE_FIXED64 = 6,
  1366. TYPE_FIXED32 = 7,
  1367. TYPE_BOOL = 8,
  1368. TYPE_STRING = 9,
  1369. TYPE_GROUP = 10,
  1370. TYPE_MESSAGE = 11,
  1371. TYPE_BYTES = 12,
  1372. TYPE_UINT32 = 13,
  1373. TYPE_ENUM = 14,
  1374. TYPE_SFIXED32 = 15,
  1375. TYPE_SFIXED64 = 16,
  1376. TYPE_SINT32 = 17,
  1377. TYPE_SINT64 = 18,
  1378. }
  1379. internal enum Label {
  1380. LABEL_OPTIONAL = 1,
  1381. LABEL_REQUIRED = 2,
  1382. LABEL_REPEATED = 3,
  1383. }
  1384. }
  1385. #endregion
  1386. }
  1387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1388. internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
  1389. private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
  1390. public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
  1391. public static pbr::MessageDescriptor Descriptor {
  1392. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[4]; }
  1393. }
  1394. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1395. get { return Descriptor; }
  1396. }
  1397. private bool _frozen = false;
  1398. public bool IsFrozen { get { return _frozen; } }
  1399. public OneofDescriptorProto() {
  1400. OnConstruction();
  1401. }
  1402. partial void OnConstruction();
  1403. public OneofDescriptorProto(OneofDescriptorProto other) : this() {
  1404. name_ = other.name_;
  1405. }
  1406. public OneofDescriptorProto Clone() {
  1407. return new OneofDescriptorProto(this);
  1408. }
  1409. public const int NameFieldNumber = 1;
  1410. private string name_ = "";
  1411. internal string Name {
  1412. get { return name_; }
  1413. set {
  1414. name_ = value ?? "";
  1415. }
  1416. }
  1417. public override bool Equals(object other) {
  1418. return Equals(other as OneofDescriptorProto);
  1419. }
  1420. public bool Equals(OneofDescriptorProto other) {
  1421. if (ReferenceEquals(other, null)) {
  1422. return false;
  1423. }
  1424. if (ReferenceEquals(other, this)) {
  1425. return true;
  1426. }
  1427. if (Name != other.Name) return false;
  1428. return true;
  1429. }
  1430. public override int GetHashCode() {
  1431. int hash = 1;
  1432. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1433. return hash;
  1434. }
  1435. public override string ToString() {
  1436. return pb::JsonFormatter.Default.Format(this);
  1437. }
  1438. public void WriteTo(pb::CodedOutputStream output) {
  1439. if (Name.Length != 0) {
  1440. output.WriteRawTag(10);
  1441. output.WriteString(Name);
  1442. }
  1443. }
  1444. public int CalculateSize() {
  1445. int size = 0;
  1446. if (Name.Length != 0) {
  1447. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1448. }
  1449. return size;
  1450. }
  1451. public void MergeFrom(OneofDescriptorProto other) {
  1452. if (other == null) {
  1453. return;
  1454. }
  1455. if (other.Name.Length != 0) {
  1456. Name = other.Name;
  1457. }
  1458. }
  1459. public void MergeFrom(pb::CodedInputStream input) {
  1460. uint tag;
  1461. while (input.ReadTag(out tag)) {
  1462. switch(tag) {
  1463. case 0:
  1464. throw pb::InvalidProtocolBufferException.InvalidTag();
  1465. default:
  1466. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1467. return;
  1468. }
  1469. break;
  1470. case 10: {
  1471. Name = input.ReadString();
  1472. break;
  1473. }
  1474. }
  1475. }
  1476. }
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
  1480. private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
  1481. public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
  1482. public static pbr::MessageDescriptor Descriptor {
  1483. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[5]; }
  1484. }
  1485. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1486. get { return Descriptor; }
  1487. }
  1488. private bool _frozen = false;
  1489. public bool IsFrozen { get { return _frozen; } }
  1490. public EnumDescriptorProto() {
  1491. OnConstruction();
  1492. }
  1493. partial void OnConstruction();
  1494. public EnumDescriptorProto(EnumDescriptorProto other) : this() {
  1495. name_ = other.name_;
  1496. value_ = other.value_.Clone();
  1497. Options = other.options_ != null ? other.Options.Clone() : null;
  1498. }
  1499. public EnumDescriptorProto Clone() {
  1500. return new EnumDescriptorProto(this);
  1501. }
  1502. public const int NameFieldNumber = 1;
  1503. private string name_ = "";
  1504. internal string Name {
  1505. get { return name_; }
  1506. set {
  1507. name_ = value ?? "";
  1508. }
  1509. }
  1510. public const int ValueFieldNumber = 2;
  1511. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
  1512. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
  1513. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
  1514. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
  1515. get { return value_; }
  1516. }
  1517. public const int OptionsFieldNumber = 3;
  1518. private global::Google.Protobuf.Reflection.EnumOptions options_;
  1519. internal global::Google.Protobuf.Reflection.EnumOptions Options {
  1520. get { return options_; }
  1521. set {
  1522. options_ = value;
  1523. }
  1524. }
  1525. public override bool Equals(object other) {
  1526. return Equals(other as EnumDescriptorProto);
  1527. }
  1528. public bool Equals(EnumDescriptorProto other) {
  1529. if (ReferenceEquals(other, null)) {
  1530. return false;
  1531. }
  1532. if (ReferenceEquals(other, this)) {
  1533. return true;
  1534. }
  1535. if (Name != other.Name) return false;
  1536. if(!value_.Equals(other.value_)) return false;
  1537. if (!object.Equals(Options, other.Options)) return false;
  1538. return true;
  1539. }
  1540. public override int GetHashCode() {
  1541. int hash = 1;
  1542. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1543. hash ^= value_.GetHashCode();
  1544. if (options_ != null) hash ^= Options.GetHashCode();
  1545. return hash;
  1546. }
  1547. public override string ToString() {
  1548. return pb::JsonFormatter.Default.Format(this);
  1549. }
  1550. public void WriteTo(pb::CodedOutputStream output) {
  1551. if (Name.Length != 0) {
  1552. output.WriteRawTag(10);
  1553. output.WriteString(Name);
  1554. }
  1555. value_.WriteTo(output, _repeated_value_codec);
  1556. if (options_ != null) {
  1557. output.WriteRawTag(26);
  1558. output.WriteMessage(Options);
  1559. }
  1560. }
  1561. public int CalculateSize() {
  1562. int size = 0;
  1563. if (Name.Length != 0) {
  1564. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1565. }
  1566. size += value_.CalculateSize(_repeated_value_codec);
  1567. if (options_ != null) {
  1568. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1569. }
  1570. return size;
  1571. }
  1572. public void MergeFrom(EnumDescriptorProto other) {
  1573. if (other == null) {
  1574. return;
  1575. }
  1576. if (other.Name.Length != 0) {
  1577. Name = other.Name;
  1578. }
  1579. value_.Add(other.value_);
  1580. if (other.options_ != null) {
  1581. if (options_ == null) {
  1582. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1583. }
  1584. Options.MergeFrom(other.Options);
  1585. }
  1586. }
  1587. public void MergeFrom(pb::CodedInputStream input) {
  1588. uint tag;
  1589. while (input.ReadTag(out tag)) {
  1590. switch(tag) {
  1591. case 0:
  1592. throw pb::InvalidProtocolBufferException.InvalidTag();
  1593. default:
  1594. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1595. return;
  1596. }
  1597. break;
  1598. case 10: {
  1599. Name = input.ReadString();
  1600. break;
  1601. }
  1602. case 18: {
  1603. value_.AddEntriesFrom(input, _repeated_value_codec);
  1604. break;
  1605. }
  1606. case 26: {
  1607. if (options_ == null) {
  1608. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1609. }
  1610. input.ReadMessage(options_);
  1611. break;
  1612. }
  1613. }
  1614. }
  1615. }
  1616. }
  1617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1618. internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
  1619. private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
  1620. public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
  1621. public static pbr::MessageDescriptor Descriptor {
  1622. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[6]; }
  1623. }
  1624. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1625. get { return Descriptor; }
  1626. }
  1627. private bool _frozen = false;
  1628. public bool IsFrozen { get { return _frozen; } }
  1629. public EnumValueDescriptorProto() {
  1630. OnConstruction();
  1631. }
  1632. partial void OnConstruction();
  1633. public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
  1634. name_ = other.name_;
  1635. number_ = other.number_;
  1636. Options = other.options_ != null ? other.Options.Clone() : null;
  1637. }
  1638. public EnumValueDescriptorProto Clone() {
  1639. return new EnumValueDescriptorProto(this);
  1640. }
  1641. public const int NameFieldNumber = 1;
  1642. private string name_ = "";
  1643. internal string Name {
  1644. get { return name_; }
  1645. set {
  1646. name_ = value ?? "";
  1647. }
  1648. }
  1649. public const int NumberFieldNumber = 2;
  1650. private int number_;
  1651. internal int Number {
  1652. get { return number_; }
  1653. set {
  1654. number_ = value;
  1655. }
  1656. }
  1657. public const int OptionsFieldNumber = 3;
  1658. private global::Google.Protobuf.Reflection.EnumValueOptions options_;
  1659. internal global::Google.Protobuf.Reflection.EnumValueOptions Options {
  1660. get { return options_; }
  1661. set {
  1662. options_ = value;
  1663. }
  1664. }
  1665. public override bool Equals(object other) {
  1666. return Equals(other as EnumValueDescriptorProto);
  1667. }
  1668. public bool Equals(EnumValueDescriptorProto other) {
  1669. if (ReferenceEquals(other, null)) {
  1670. return false;
  1671. }
  1672. if (ReferenceEquals(other, this)) {
  1673. return true;
  1674. }
  1675. if (Name != other.Name) return false;
  1676. if (Number != other.Number) return false;
  1677. if (!object.Equals(Options, other.Options)) return false;
  1678. return true;
  1679. }
  1680. public override int GetHashCode() {
  1681. int hash = 1;
  1682. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1683. if (Number != 0) hash ^= Number.GetHashCode();
  1684. if (options_ != null) hash ^= Options.GetHashCode();
  1685. return hash;
  1686. }
  1687. public override string ToString() {
  1688. return pb::JsonFormatter.Default.Format(this);
  1689. }
  1690. public void WriteTo(pb::CodedOutputStream output) {
  1691. if (Name.Length != 0) {
  1692. output.WriteRawTag(10);
  1693. output.WriteString(Name);
  1694. }
  1695. if (Number != 0) {
  1696. output.WriteRawTag(16);
  1697. output.WriteInt32(Number);
  1698. }
  1699. if (options_ != null) {
  1700. output.WriteRawTag(26);
  1701. output.WriteMessage(Options);
  1702. }
  1703. }
  1704. public int CalculateSize() {
  1705. int size = 0;
  1706. if (Name.Length != 0) {
  1707. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1708. }
  1709. if (Number != 0) {
  1710. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1711. }
  1712. if (options_ != null) {
  1713. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1714. }
  1715. return size;
  1716. }
  1717. public void MergeFrom(EnumValueDescriptorProto other) {
  1718. if (other == null) {
  1719. return;
  1720. }
  1721. if (other.Name.Length != 0) {
  1722. Name = other.Name;
  1723. }
  1724. if (other.Number != 0) {
  1725. Number = other.Number;
  1726. }
  1727. if (other.options_ != null) {
  1728. if (options_ == null) {
  1729. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1730. }
  1731. Options.MergeFrom(other.Options);
  1732. }
  1733. }
  1734. public void MergeFrom(pb::CodedInputStream input) {
  1735. uint tag;
  1736. while (input.ReadTag(out tag)) {
  1737. switch(tag) {
  1738. case 0:
  1739. throw pb::InvalidProtocolBufferException.InvalidTag();
  1740. default:
  1741. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1742. return;
  1743. }
  1744. break;
  1745. case 10: {
  1746. Name = input.ReadString();
  1747. break;
  1748. }
  1749. case 16: {
  1750. Number = input.ReadInt32();
  1751. break;
  1752. }
  1753. case 26: {
  1754. if (options_ == null) {
  1755. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1756. }
  1757. input.ReadMessage(options_);
  1758. break;
  1759. }
  1760. }
  1761. }
  1762. }
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
  1766. private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
  1767. public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
  1768. public static pbr::MessageDescriptor Descriptor {
  1769. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[7]; }
  1770. }
  1771. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1772. get { return Descriptor; }
  1773. }
  1774. private bool _frozen = false;
  1775. public bool IsFrozen { get { return _frozen; } }
  1776. public ServiceDescriptorProto() {
  1777. OnConstruction();
  1778. }
  1779. partial void OnConstruction();
  1780. public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
  1781. name_ = other.name_;
  1782. method_ = other.method_.Clone();
  1783. Options = other.options_ != null ? other.Options.Clone() : null;
  1784. }
  1785. public ServiceDescriptorProto Clone() {
  1786. return new ServiceDescriptorProto(this);
  1787. }
  1788. public const int NameFieldNumber = 1;
  1789. private string name_ = "";
  1790. internal string Name {
  1791. get { return name_; }
  1792. set {
  1793. name_ = value ?? "";
  1794. }
  1795. }
  1796. public const int MethodFieldNumber = 2;
  1797. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
  1798. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
  1799. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
  1800. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
  1801. get { return method_; }
  1802. }
  1803. public const int OptionsFieldNumber = 3;
  1804. private global::Google.Protobuf.Reflection.ServiceOptions options_;
  1805. internal global::Google.Protobuf.Reflection.ServiceOptions Options {
  1806. get { return options_; }
  1807. set {
  1808. options_ = value;
  1809. }
  1810. }
  1811. public override bool Equals(object other) {
  1812. return Equals(other as ServiceDescriptorProto);
  1813. }
  1814. public bool Equals(ServiceDescriptorProto other) {
  1815. if (ReferenceEquals(other, null)) {
  1816. return false;
  1817. }
  1818. if (ReferenceEquals(other, this)) {
  1819. return true;
  1820. }
  1821. if (Name != other.Name) return false;
  1822. if(!method_.Equals(other.method_)) return false;
  1823. if (!object.Equals(Options, other.Options)) return false;
  1824. return true;
  1825. }
  1826. public override int GetHashCode() {
  1827. int hash = 1;
  1828. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1829. hash ^= method_.GetHashCode();
  1830. if (options_ != null) hash ^= Options.GetHashCode();
  1831. return hash;
  1832. }
  1833. public override string ToString() {
  1834. return pb::JsonFormatter.Default.Format(this);
  1835. }
  1836. public void WriteTo(pb::CodedOutputStream output) {
  1837. if (Name.Length != 0) {
  1838. output.WriteRawTag(10);
  1839. output.WriteString(Name);
  1840. }
  1841. method_.WriteTo(output, _repeated_method_codec);
  1842. if (options_ != null) {
  1843. output.WriteRawTag(26);
  1844. output.WriteMessage(Options);
  1845. }
  1846. }
  1847. public int CalculateSize() {
  1848. int size = 0;
  1849. if (Name.Length != 0) {
  1850. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1851. }
  1852. size += method_.CalculateSize(_repeated_method_codec);
  1853. if (options_ != null) {
  1854. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1855. }
  1856. return size;
  1857. }
  1858. public void MergeFrom(ServiceDescriptorProto other) {
  1859. if (other == null) {
  1860. return;
  1861. }
  1862. if (other.Name.Length != 0) {
  1863. Name = other.Name;
  1864. }
  1865. method_.Add(other.method_);
  1866. if (other.options_ != null) {
  1867. if (options_ == null) {
  1868. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  1869. }
  1870. Options.MergeFrom(other.Options);
  1871. }
  1872. }
  1873. public void MergeFrom(pb::CodedInputStream input) {
  1874. uint tag;
  1875. while (input.ReadTag(out tag)) {
  1876. switch(tag) {
  1877. case 0:
  1878. throw pb::InvalidProtocolBufferException.InvalidTag();
  1879. default:
  1880. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1881. return;
  1882. }
  1883. break;
  1884. case 10: {
  1885. Name = input.ReadString();
  1886. break;
  1887. }
  1888. case 18: {
  1889. method_.AddEntriesFrom(input, _repeated_method_codec);
  1890. break;
  1891. }
  1892. case 26: {
  1893. if (options_ == null) {
  1894. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  1895. }
  1896. input.ReadMessage(options_);
  1897. break;
  1898. }
  1899. }
  1900. }
  1901. }
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
  1905. private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
  1906. public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
  1907. public static pbr::MessageDescriptor Descriptor {
  1908. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[8]; }
  1909. }
  1910. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1911. get { return Descriptor; }
  1912. }
  1913. private bool _frozen = false;
  1914. public bool IsFrozen { get { return _frozen; } }
  1915. public MethodDescriptorProto() {
  1916. OnConstruction();
  1917. }
  1918. partial void OnConstruction();
  1919. public MethodDescriptorProto(MethodDescriptorProto other) : this() {
  1920. name_ = other.name_;
  1921. inputType_ = other.inputType_;
  1922. outputType_ = other.outputType_;
  1923. Options = other.options_ != null ? other.Options.Clone() : null;
  1924. clientStreaming_ = other.clientStreaming_;
  1925. serverStreaming_ = other.serverStreaming_;
  1926. }
  1927. public MethodDescriptorProto Clone() {
  1928. return new MethodDescriptorProto(this);
  1929. }
  1930. public const int NameFieldNumber = 1;
  1931. private string name_ = "";
  1932. internal string Name {
  1933. get { return name_; }
  1934. set {
  1935. name_ = value ?? "";
  1936. }
  1937. }
  1938. public const int InputTypeFieldNumber = 2;
  1939. private string inputType_ = "";
  1940. internal string InputType {
  1941. get { return inputType_; }
  1942. set {
  1943. inputType_ = value ?? "";
  1944. }
  1945. }
  1946. public const int OutputTypeFieldNumber = 3;
  1947. private string outputType_ = "";
  1948. internal string OutputType {
  1949. get { return outputType_; }
  1950. set {
  1951. outputType_ = value ?? "";
  1952. }
  1953. }
  1954. public const int OptionsFieldNumber = 4;
  1955. private global::Google.Protobuf.Reflection.MethodOptions options_;
  1956. internal global::Google.Protobuf.Reflection.MethodOptions Options {
  1957. get { return options_; }
  1958. set {
  1959. options_ = value;
  1960. }
  1961. }
  1962. public const int ClientStreamingFieldNumber = 5;
  1963. private bool clientStreaming_;
  1964. internal bool ClientStreaming {
  1965. get { return clientStreaming_; }
  1966. set {
  1967. clientStreaming_ = value;
  1968. }
  1969. }
  1970. public const int ServerStreamingFieldNumber = 6;
  1971. private bool serverStreaming_;
  1972. internal bool ServerStreaming {
  1973. get { return serverStreaming_; }
  1974. set {
  1975. serverStreaming_ = value;
  1976. }
  1977. }
  1978. public override bool Equals(object other) {
  1979. return Equals(other as MethodDescriptorProto);
  1980. }
  1981. public bool Equals(MethodDescriptorProto other) {
  1982. if (ReferenceEquals(other, null)) {
  1983. return false;
  1984. }
  1985. if (ReferenceEquals(other, this)) {
  1986. return true;
  1987. }
  1988. if (Name != other.Name) return false;
  1989. if (InputType != other.InputType) return false;
  1990. if (OutputType != other.OutputType) return false;
  1991. if (!object.Equals(Options, other.Options)) return false;
  1992. if (ClientStreaming != other.ClientStreaming) return false;
  1993. if (ServerStreaming != other.ServerStreaming) return false;
  1994. return true;
  1995. }
  1996. public override int GetHashCode() {
  1997. int hash = 1;
  1998. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1999. if (InputType.Length != 0) hash ^= InputType.GetHashCode();
  2000. if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
  2001. if (options_ != null) hash ^= Options.GetHashCode();
  2002. if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
  2003. if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
  2004. return hash;
  2005. }
  2006. public override string ToString() {
  2007. return pb::JsonFormatter.Default.Format(this);
  2008. }
  2009. public void WriteTo(pb::CodedOutputStream output) {
  2010. if (Name.Length != 0) {
  2011. output.WriteRawTag(10);
  2012. output.WriteString(Name);
  2013. }
  2014. if (InputType.Length != 0) {
  2015. output.WriteRawTag(18);
  2016. output.WriteString(InputType);
  2017. }
  2018. if (OutputType.Length != 0) {
  2019. output.WriteRawTag(26);
  2020. output.WriteString(OutputType);
  2021. }
  2022. if (options_ != null) {
  2023. output.WriteRawTag(34);
  2024. output.WriteMessage(Options);
  2025. }
  2026. if (ClientStreaming != false) {
  2027. output.WriteRawTag(40);
  2028. output.WriteBool(ClientStreaming);
  2029. }
  2030. if (ServerStreaming != false) {
  2031. output.WriteRawTag(48);
  2032. output.WriteBool(ServerStreaming);
  2033. }
  2034. }
  2035. public int CalculateSize() {
  2036. int size = 0;
  2037. if (Name.Length != 0) {
  2038. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2039. }
  2040. if (InputType.Length != 0) {
  2041. size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
  2042. }
  2043. if (OutputType.Length != 0) {
  2044. size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
  2045. }
  2046. if (options_ != null) {
  2047. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2048. }
  2049. if (ClientStreaming != false) {
  2050. size += 1 + 1;
  2051. }
  2052. if (ServerStreaming != false) {
  2053. size += 1 + 1;
  2054. }
  2055. return size;
  2056. }
  2057. public void MergeFrom(MethodDescriptorProto other) {
  2058. if (other == null) {
  2059. return;
  2060. }
  2061. if (other.Name.Length != 0) {
  2062. Name = other.Name;
  2063. }
  2064. if (other.InputType.Length != 0) {
  2065. InputType = other.InputType;
  2066. }
  2067. if (other.OutputType.Length != 0) {
  2068. OutputType = other.OutputType;
  2069. }
  2070. if (other.options_ != null) {
  2071. if (options_ == null) {
  2072. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2073. }
  2074. Options.MergeFrom(other.Options);
  2075. }
  2076. if (other.ClientStreaming != false) {
  2077. ClientStreaming = other.ClientStreaming;
  2078. }
  2079. if (other.ServerStreaming != false) {
  2080. ServerStreaming = other.ServerStreaming;
  2081. }
  2082. }
  2083. public void MergeFrom(pb::CodedInputStream input) {
  2084. uint tag;
  2085. while (input.ReadTag(out tag)) {
  2086. switch(tag) {
  2087. case 0:
  2088. throw pb::InvalidProtocolBufferException.InvalidTag();
  2089. default:
  2090. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2091. return;
  2092. }
  2093. break;
  2094. case 10: {
  2095. Name = input.ReadString();
  2096. break;
  2097. }
  2098. case 18: {
  2099. InputType = input.ReadString();
  2100. break;
  2101. }
  2102. case 26: {
  2103. OutputType = input.ReadString();
  2104. break;
  2105. }
  2106. case 34: {
  2107. if (options_ == null) {
  2108. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2109. }
  2110. input.ReadMessage(options_);
  2111. break;
  2112. }
  2113. case 40: {
  2114. ClientStreaming = input.ReadBool();
  2115. break;
  2116. }
  2117. case 48: {
  2118. ServerStreaming = input.ReadBool();
  2119. break;
  2120. }
  2121. }
  2122. }
  2123. }
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
  2127. private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
  2128. public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
  2129. public static pbr::MessageDescriptor Descriptor {
  2130. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[9]; }
  2131. }
  2132. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2133. get { return Descriptor; }
  2134. }
  2135. private bool _frozen = false;
  2136. public bool IsFrozen { get { return _frozen; } }
  2137. public FileOptions() {
  2138. OnConstruction();
  2139. }
  2140. partial void OnConstruction();
  2141. public FileOptions(FileOptions other) : this() {
  2142. javaPackage_ = other.javaPackage_;
  2143. javaOuterClassname_ = other.javaOuterClassname_;
  2144. javaMultipleFiles_ = other.javaMultipleFiles_;
  2145. javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
  2146. javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
  2147. optimizeFor_ = other.optimizeFor_;
  2148. goPackage_ = other.goPackage_;
  2149. ccGenericServices_ = other.ccGenericServices_;
  2150. javaGenericServices_ = other.javaGenericServices_;
  2151. pyGenericServices_ = other.pyGenericServices_;
  2152. deprecated_ = other.deprecated_;
  2153. ccEnableArenas_ = other.ccEnableArenas_;
  2154. objcClassPrefix_ = other.objcClassPrefix_;
  2155. csharpNamespace_ = other.csharpNamespace_;
  2156. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2157. }
  2158. public FileOptions Clone() {
  2159. return new FileOptions(this);
  2160. }
  2161. public const int JavaPackageFieldNumber = 1;
  2162. private string javaPackage_ = "";
  2163. internal string JavaPackage {
  2164. get { return javaPackage_; }
  2165. set {
  2166. javaPackage_ = value ?? "";
  2167. }
  2168. }
  2169. public const int JavaOuterClassnameFieldNumber = 8;
  2170. private string javaOuterClassname_ = "";
  2171. internal string JavaOuterClassname {
  2172. get { return javaOuterClassname_; }
  2173. set {
  2174. javaOuterClassname_ = value ?? "";
  2175. }
  2176. }
  2177. public const int JavaMultipleFilesFieldNumber = 10;
  2178. private bool javaMultipleFiles_;
  2179. internal bool JavaMultipleFiles {
  2180. get { return javaMultipleFiles_; }
  2181. set {
  2182. javaMultipleFiles_ = value;
  2183. }
  2184. }
  2185. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  2186. private bool javaGenerateEqualsAndHash_;
  2187. internal bool JavaGenerateEqualsAndHash {
  2188. get { return javaGenerateEqualsAndHash_; }
  2189. set {
  2190. javaGenerateEqualsAndHash_ = value;
  2191. }
  2192. }
  2193. public const int JavaStringCheckUtf8FieldNumber = 27;
  2194. private bool javaStringCheckUtf8_;
  2195. internal bool JavaStringCheckUtf8 {
  2196. get { return javaStringCheckUtf8_; }
  2197. set {
  2198. javaStringCheckUtf8_ = value;
  2199. }
  2200. }
  2201. public const int OptimizeForFieldNumber = 9;
  2202. private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED;
  2203. internal global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
  2204. get { return optimizeFor_; }
  2205. set {
  2206. optimizeFor_ = value;
  2207. }
  2208. }
  2209. public const int GoPackageFieldNumber = 11;
  2210. private string goPackage_ = "";
  2211. internal string GoPackage {
  2212. get { return goPackage_; }
  2213. set {
  2214. goPackage_ = value ?? "";
  2215. }
  2216. }
  2217. public const int CcGenericServicesFieldNumber = 16;
  2218. private bool ccGenericServices_;
  2219. internal bool CcGenericServices {
  2220. get { return ccGenericServices_; }
  2221. set {
  2222. ccGenericServices_ = value;
  2223. }
  2224. }
  2225. public const int JavaGenericServicesFieldNumber = 17;
  2226. private bool javaGenericServices_;
  2227. internal bool JavaGenericServices {
  2228. get { return javaGenericServices_; }
  2229. set {
  2230. javaGenericServices_ = value;
  2231. }
  2232. }
  2233. public const int PyGenericServicesFieldNumber = 18;
  2234. private bool pyGenericServices_;
  2235. internal bool PyGenericServices {
  2236. get { return pyGenericServices_; }
  2237. set {
  2238. pyGenericServices_ = value;
  2239. }
  2240. }
  2241. public const int DeprecatedFieldNumber = 23;
  2242. private bool deprecated_;
  2243. internal bool Deprecated {
  2244. get { return deprecated_; }
  2245. set {
  2246. deprecated_ = value;
  2247. }
  2248. }
  2249. public const int CcEnableArenasFieldNumber = 31;
  2250. private bool ccEnableArenas_;
  2251. internal bool CcEnableArenas {
  2252. get { return ccEnableArenas_; }
  2253. set {
  2254. ccEnableArenas_ = value;
  2255. }
  2256. }
  2257. public const int ObjcClassPrefixFieldNumber = 36;
  2258. private string objcClassPrefix_ = "";
  2259. internal string ObjcClassPrefix {
  2260. get { return objcClassPrefix_; }
  2261. set {
  2262. objcClassPrefix_ = value ?? "";
  2263. }
  2264. }
  2265. public const int CsharpNamespaceFieldNumber = 37;
  2266. private string csharpNamespace_ = "";
  2267. internal string CsharpNamespace {
  2268. get { return csharpNamespace_; }
  2269. set {
  2270. csharpNamespace_ = value ?? "";
  2271. }
  2272. }
  2273. public const int UninterpretedOptionFieldNumber = 999;
  2274. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2275. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2276. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2277. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2278. get { return uninterpretedOption_; }
  2279. }
  2280. public override bool Equals(object other) {
  2281. return Equals(other as FileOptions);
  2282. }
  2283. public bool Equals(FileOptions other) {
  2284. if (ReferenceEquals(other, null)) {
  2285. return false;
  2286. }
  2287. if (ReferenceEquals(other, this)) {
  2288. return true;
  2289. }
  2290. if (JavaPackage != other.JavaPackage) return false;
  2291. if (JavaOuterClassname != other.JavaOuterClassname) return false;
  2292. if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
  2293. if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
  2294. if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
  2295. if (OptimizeFor != other.OptimizeFor) return false;
  2296. if (GoPackage != other.GoPackage) return false;
  2297. if (CcGenericServices != other.CcGenericServices) return false;
  2298. if (JavaGenericServices != other.JavaGenericServices) return false;
  2299. if (PyGenericServices != other.PyGenericServices) return false;
  2300. if (Deprecated != other.Deprecated) return false;
  2301. if (CcEnableArenas != other.CcEnableArenas) return false;
  2302. if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
  2303. if (CsharpNamespace != other.CsharpNamespace) return false;
  2304. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2305. return true;
  2306. }
  2307. public override int GetHashCode() {
  2308. int hash = 1;
  2309. if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
  2310. if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
  2311. if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
  2312. if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
  2313. if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
  2314. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) hash ^= OptimizeFor.GetHashCode();
  2315. if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
  2316. if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
  2317. if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode();
  2318. if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
  2319. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2320. if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
  2321. if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
  2322. if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
  2323. hash ^= uninterpretedOption_.GetHashCode();
  2324. return hash;
  2325. }
  2326. public override string ToString() {
  2327. return pb::JsonFormatter.Default.Format(this);
  2328. }
  2329. public void WriteTo(pb::CodedOutputStream output) {
  2330. if (JavaPackage.Length != 0) {
  2331. output.WriteRawTag(10);
  2332. output.WriteString(JavaPackage);
  2333. }
  2334. if (JavaOuterClassname.Length != 0) {
  2335. output.WriteRawTag(66);
  2336. output.WriteString(JavaOuterClassname);
  2337. }
  2338. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2339. output.WriteRawTag(72);
  2340. output.WriteEnum((int) OptimizeFor);
  2341. }
  2342. if (JavaMultipleFiles != false) {
  2343. output.WriteRawTag(80);
  2344. output.WriteBool(JavaMultipleFiles);
  2345. }
  2346. if (GoPackage.Length != 0) {
  2347. output.WriteRawTag(90);
  2348. output.WriteString(GoPackage);
  2349. }
  2350. if (CcGenericServices != false) {
  2351. output.WriteRawTag(128, 1);
  2352. output.WriteBool(CcGenericServices);
  2353. }
  2354. if (JavaGenericServices != false) {
  2355. output.WriteRawTag(136, 1);
  2356. output.WriteBool(JavaGenericServices);
  2357. }
  2358. if (PyGenericServices != false) {
  2359. output.WriteRawTag(144, 1);
  2360. output.WriteBool(PyGenericServices);
  2361. }
  2362. if (JavaGenerateEqualsAndHash != false) {
  2363. output.WriteRawTag(160, 1);
  2364. output.WriteBool(JavaGenerateEqualsAndHash);
  2365. }
  2366. if (Deprecated != false) {
  2367. output.WriteRawTag(184, 1);
  2368. output.WriteBool(Deprecated);
  2369. }
  2370. if (JavaStringCheckUtf8 != false) {
  2371. output.WriteRawTag(216, 1);
  2372. output.WriteBool(JavaStringCheckUtf8);
  2373. }
  2374. if (CcEnableArenas != false) {
  2375. output.WriteRawTag(248, 1);
  2376. output.WriteBool(CcEnableArenas);
  2377. }
  2378. if (ObjcClassPrefix.Length != 0) {
  2379. output.WriteRawTag(162, 2);
  2380. output.WriteString(ObjcClassPrefix);
  2381. }
  2382. if (CsharpNamespace.Length != 0) {
  2383. output.WriteRawTag(170, 2);
  2384. output.WriteString(CsharpNamespace);
  2385. }
  2386. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2387. }
  2388. public int CalculateSize() {
  2389. int size = 0;
  2390. if (JavaPackage.Length != 0) {
  2391. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
  2392. }
  2393. if (JavaOuterClassname.Length != 0) {
  2394. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
  2395. }
  2396. if (JavaMultipleFiles != false) {
  2397. size += 1 + 1;
  2398. }
  2399. if (JavaGenerateEqualsAndHash != false) {
  2400. size += 2 + 1;
  2401. }
  2402. if (JavaStringCheckUtf8 != false) {
  2403. size += 2 + 1;
  2404. }
  2405. if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2406. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
  2407. }
  2408. if (GoPackage.Length != 0) {
  2409. size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
  2410. }
  2411. if (CcGenericServices != false) {
  2412. size += 2 + 1;
  2413. }
  2414. if (JavaGenericServices != false) {
  2415. size += 2 + 1;
  2416. }
  2417. if (PyGenericServices != false) {
  2418. size += 2 + 1;
  2419. }
  2420. if (Deprecated != false) {
  2421. size += 2 + 1;
  2422. }
  2423. if (CcEnableArenas != false) {
  2424. size += 2 + 1;
  2425. }
  2426. if (ObjcClassPrefix.Length != 0) {
  2427. size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
  2428. }
  2429. if (CsharpNamespace.Length != 0) {
  2430. size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
  2431. }
  2432. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2433. return size;
  2434. }
  2435. public void MergeFrom(FileOptions other) {
  2436. if (other == null) {
  2437. return;
  2438. }
  2439. if (other.JavaPackage.Length != 0) {
  2440. JavaPackage = other.JavaPackage;
  2441. }
  2442. if (other.JavaOuterClassname.Length != 0) {
  2443. JavaOuterClassname = other.JavaOuterClassname;
  2444. }
  2445. if (other.JavaMultipleFiles != false) {
  2446. JavaMultipleFiles = other.JavaMultipleFiles;
  2447. }
  2448. if (other.JavaGenerateEqualsAndHash != false) {
  2449. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  2450. }
  2451. if (other.JavaStringCheckUtf8 != false) {
  2452. JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
  2453. }
  2454. if (other.OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
  2455. OptimizeFor = other.OptimizeFor;
  2456. }
  2457. if (other.GoPackage.Length != 0) {
  2458. GoPackage = other.GoPackage;
  2459. }
  2460. if (other.CcGenericServices != false) {
  2461. CcGenericServices = other.CcGenericServices;
  2462. }
  2463. if (other.JavaGenericServices != false) {
  2464. JavaGenericServices = other.JavaGenericServices;
  2465. }
  2466. if (other.PyGenericServices != false) {
  2467. PyGenericServices = other.PyGenericServices;
  2468. }
  2469. if (other.Deprecated != false) {
  2470. Deprecated = other.Deprecated;
  2471. }
  2472. if (other.CcEnableArenas != false) {
  2473. CcEnableArenas = other.CcEnableArenas;
  2474. }
  2475. if (other.ObjcClassPrefix.Length != 0) {
  2476. ObjcClassPrefix = other.ObjcClassPrefix;
  2477. }
  2478. if (other.CsharpNamespace.Length != 0) {
  2479. CsharpNamespace = other.CsharpNamespace;
  2480. }
  2481. uninterpretedOption_.Add(other.uninterpretedOption_);
  2482. }
  2483. public void MergeFrom(pb::CodedInputStream input) {
  2484. uint tag;
  2485. while (input.ReadTag(out tag)) {
  2486. switch(tag) {
  2487. case 0:
  2488. throw pb::InvalidProtocolBufferException.InvalidTag();
  2489. default:
  2490. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2491. return;
  2492. }
  2493. break;
  2494. case 10: {
  2495. JavaPackage = input.ReadString();
  2496. break;
  2497. }
  2498. case 66: {
  2499. JavaOuterClassname = input.ReadString();
  2500. break;
  2501. }
  2502. case 72: {
  2503. optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
  2504. break;
  2505. }
  2506. case 80: {
  2507. JavaMultipleFiles = input.ReadBool();
  2508. break;
  2509. }
  2510. case 90: {
  2511. GoPackage = input.ReadString();
  2512. break;
  2513. }
  2514. case 128: {
  2515. CcGenericServices = input.ReadBool();
  2516. break;
  2517. }
  2518. case 136: {
  2519. JavaGenericServices = input.ReadBool();
  2520. break;
  2521. }
  2522. case 144: {
  2523. PyGenericServices = input.ReadBool();
  2524. break;
  2525. }
  2526. case 160: {
  2527. JavaGenerateEqualsAndHash = input.ReadBool();
  2528. break;
  2529. }
  2530. case 184: {
  2531. Deprecated = input.ReadBool();
  2532. break;
  2533. }
  2534. case 216: {
  2535. JavaStringCheckUtf8 = input.ReadBool();
  2536. break;
  2537. }
  2538. case 248: {
  2539. CcEnableArenas = input.ReadBool();
  2540. break;
  2541. }
  2542. case 290: {
  2543. ObjcClassPrefix = input.ReadString();
  2544. break;
  2545. }
  2546. case 298: {
  2547. CsharpNamespace = input.ReadString();
  2548. break;
  2549. }
  2550. case 7994: {
  2551. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2552. break;
  2553. }
  2554. }
  2555. }
  2556. }
  2557. #region Nested types
  2558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2559. public static partial class Types {
  2560. internal enum OptimizeMode {
  2561. SPEED = 1,
  2562. CODE_SIZE = 2,
  2563. LITE_RUNTIME = 3,
  2564. }
  2565. }
  2566. #endregion
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
  2570. private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
  2571. public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
  2572. public static pbr::MessageDescriptor Descriptor {
  2573. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[10]; }
  2574. }
  2575. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2576. get { return Descriptor; }
  2577. }
  2578. private bool _frozen = false;
  2579. public bool IsFrozen { get { return _frozen; } }
  2580. public MessageOptions() {
  2581. OnConstruction();
  2582. }
  2583. partial void OnConstruction();
  2584. public MessageOptions(MessageOptions other) : this() {
  2585. messageSetWireFormat_ = other.messageSetWireFormat_;
  2586. noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
  2587. deprecated_ = other.deprecated_;
  2588. mapEntry_ = other.mapEntry_;
  2589. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2590. }
  2591. public MessageOptions Clone() {
  2592. return new MessageOptions(this);
  2593. }
  2594. public const int MessageSetWireFormatFieldNumber = 1;
  2595. private bool messageSetWireFormat_;
  2596. internal bool MessageSetWireFormat {
  2597. get { return messageSetWireFormat_; }
  2598. set {
  2599. messageSetWireFormat_ = value;
  2600. }
  2601. }
  2602. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  2603. private bool noStandardDescriptorAccessor_;
  2604. internal bool NoStandardDescriptorAccessor {
  2605. get { return noStandardDescriptorAccessor_; }
  2606. set {
  2607. noStandardDescriptorAccessor_ = value;
  2608. }
  2609. }
  2610. public const int DeprecatedFieldNumber = 3;
  2611. private bool deprecated_;
  2612. internal bool Deprecated {
  2613. get { return deprecated_; }
  2614. set {
  2615. deprecated_ = value;
  2616. }
  2617. }
  2618. public const int MapEntryFieldNumber = 7;
  2619. private bool mapEntry_;
  2620. internal bool MapEntry {
  2621. get { return mapEntry_; }
  2622. set {
  2623. mapEntry_ = value;
  2624. }
  2625. }
  2626. public const int UninterpretedOptionFieldNumber = 999;
  2627. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2628. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2629. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2630. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2631. get { return uninterpretedOption_; }
  2632. }
  2633. public override bool Equals(object other) {
  2634. return Equals(other as MessageOptions);
  2635. }
  2636. public bool Equals(MessageOptions other) {
  2637. if (ReferenceEquals(other, null)) {
  2638. return false;
  2639. }
  2640. if (ReferenceEquals(other, this)) {
  2641. return true;
  2642. }
  2643. if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
  2644. if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
  2645. if (Deprecated != other.Deprecated) return false;
  2646. if (MapEntry != other.MapEntry) return false;
  2647. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2648. return true;
  2649. }
  2650. public override int GetHashCode() {
  2651. int hash = 1;
  2652. if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
  2653. if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
  2654. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2655. if (MapEntry != false) hash ^= MapEntry.GetHashCode();
  2656. hash ^= uninterpretedOption_.GetHashCode();
  2657. return hash;
  2658. }
  2659. public override string ToString() {
  2660. return pb::JsonFormatter.Default.Format(this);
  2661. }
  2662. public void WriteTo(pb::CodedOutputStream output) {
  2663. if (MessageSetWireFormat != false) {
  2664. output.WriteRawTag(8);
  2665. output.WriteBool(MessageSetWireFormat);
  2666. }
  2667. if (NoStandardDescriptorAccessor != false) {
  2668. output.WriteRawTag(16);
  2669. output.WriteBool(NoStandardDescriptorAccessor);
  2670. }
  2671. if (Deprecated != false) {
  2672. output.WriteRawTag(24);
  2673. output.WriteBool(Deprecated);
  2674. }
  2675. if (MapEntry != false) {
  2676. output.WriteRawTag(56);
  2677. output.WriteBool(MapEntry);
  2678. }
  2679. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2680. }
  2681. public int CalculateSize() {
  2682. int size = 0;
  2683. if (MessageSetWireFormat != false) {
  2684. size += 1 + 1;
  2685. }
  2686. if (NoStandardDescriptorAccessor != false) {
  2687. size += 1 + 1;
  2688. }
  2689. if (Deprecated != false) {
  2690. size += 1 + 1;
  2691. }
  2692. if (MapEntry != false) {
  2693. size += 1 + 1;
  2694. }
  2695. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2696. return size;
  2697. }
  2698. public void MergeFrom(MessageOptions other) {
  2699. if (other == null) {
  2700. return;
  2701. }
  2702. if (other.MessageSetWireFormat != false) {
  2703. MessageSetWireFormat = other.MessageSetWireFormat;
  2704. }
  2705. if (other.NoStandardDescriptorAccessor != false) {
  2706. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  2707. }
  2708. if (other.Deprecated != false) {
  2709. Deprecated = other.Deprecated;
  2710. }
  2711. if (other.MapEntry != false) {
  2712. MapEntry = other.MapEntry;
  2713. }
  2714. uninterpretedOption_.Add(other.uninterpretedOption_);
  2715. }
  2716. public void MergeFrom(pb::CodedInputStream input) {
  2717. uint tag;
  2718. while (input.ReadTag(out tag)) {
  2719. switch(tag) {
  2720. case 0:
  2721. throw pb::InvalidProtocolBufferException.InvalidTag();
  2722. default:
  2723. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2724. return;
  2725. }
  2726. break;
  2727. case 8: {
  2728. MessageSetWireFormat = input.ReadBool();
  2729. break;
  2730. }
  2731. case 16: {
  2732. NoStandardDescriptorAccessor = input.ReadBool();
  2733. break;
  2734. }
  2735. case 24: {
  2736. Deprecated = input.ReadBool();
  2737. break;
  2738. }
  2739. case 56: {
  2740. MapEntry = input.ReadBool();
  2741. break;
  2742. }
  2743. case 7994: {
  2744. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2745. break;
  2746. }
  2747. }
  2748. }
  2749. }
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
  2753. private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
  2754. public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
  2755. public static pbr::MessageDescriptor Descriptor {
  2756. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[11]; }
  2757. }
  2758. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2759. get { return Descriptor; }
  2760. }
  2761. private bool _frozen = false;
  2762. public bool IsFrozen { get { return _frozen; } }
  2763. public FieldOptions() {
  2764. OnConstruction();
  2765. }
  2766. partial void OnConstruction();
  2767. public FieldOptions(FieldOptions other) : this() {
  2768. ctype_ = other.ctype_;
  2769. packed_ = other.packed_;
  2770. jstype_ = other.jstype_;
  2771. lazy_ = other.lazy_;
  2772. deprecated_ = other.deprecated_;
  2773. weak_ = other.weak_;
  2774. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2775. }
  2776. public FieldOptions Clone() {
  2777. return new FieldOptions(this);
  2778. }
  2779. public const int CtypeFieldNumber = 1;
  2780. private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING;
  2781. internal global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
  2782. get { return ctype_; }
  2783. set {
  2784. ctype_ = value;
  2785. }
  2786. }
  2787. public const int PackedFieldNumber = 2;
  2788. private bool packed_;
  2789. internal bool Packed {
  2790. get { return packed_; }
  2791. set {
  2792. packed_ = value;
  2793. }
  2794. }
  2795. public const int JstypeFieldNumber = 6;
  2796. private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL;
  2797. internal global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
  2798. get { return jstype_; }
  2799. set {
  2800. jstype_ = value;
  2801. }
  2802. }
  2803. public const int LazyFieldNumber = 5;
  2804. private bool lazy_;
  2805. internal bool Lazy {
  2806. get { return lazy_; }
  2807. set {
  2808. lazy_ = value;
  2809. }
  2810. }
  2811. public const int DeprecatedFieldNumber = 3;
  2812. private bool deprecated_;
  2813. internal bool Deprecated {
  2814. get { return deprecated_; }
  2815. set {
  2816. deprecated_ = value;
  2817. }
  2818. }
  2819. public const int WeakFieldNumber = 10;
  2820. private bool weak_;
  2821. internal bool Weak {
  2822. get { return weak_; }
  2823. set {
  2824. weak_ = value;
  2825. }
  2826. }
  2827. public const int UninterpretedOptionFieldNumber = 999;
  2828. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2829. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2830. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2831. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2832. get { return uninterpretedOption_; }
  2833. }
  2834. public override bool Equals(object other) {
  2835. return Equals(other as FieldOptions);
  2836. }
  2837. public bool Equals(FieldOptions other) {
  2838. if (ReferenceEquals(other, null)) {
  2839. return false;
  2840. }
  2841. if (ReferenceEquals(other, this)) {
  2842. return true;
  2843. }
  2844. if (Ctype != other.Ctype) return false;
  2845. if (Packed != other.Packed) return false;
  2846. if (Jstype != other.Jstype) return false;
  2847. if (Lazy != other.Lazy) return false;
  2848. if (Deprecated != other.Deprecated) return false;
  2849. if (Weak != other.Weak) return false;
  2850. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2851. return true;
  2852. }
  2853. public override int GetHashCode() {
  2854. int hash = 1;
  2855. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) hash ^= Ctype.GetHashCode();
  2856. if (Packed != false) hash ^= Packed.GetHashCode();
  2857. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) hash ^= Jstype.GetHashCode();
  2858. if (Lazy != false) hash ^= Lazy.GetHashCode();
  2859. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2860. if (Weak != false) hash ^= Weak.GetHashCode();
  2861. hash ^= uninterpretedOption_.GetHashCode();
  2862. return hash;
  2863. }
  2864. public override string ToString() {
  2865. return pb::JsonFormatter.Default.Format(this);
  2866. }
  2867. public void WriteTo(pb::CodedOutputStream output) {
  2868. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  2869. output.WriteRawTag(8);
  2870. output.WriteEnum((int) Ctype);
  2871. }
  2872. if (Packed != false) {
  2873. output.WriteRawTag(16);
  2874. output.WriteBool(Packed);
  2875. }
  2876. if (Deprecated != false) {
  2877. output.WriteRawTag(24);
  2878. output.WriteBool(Deprecated);
  2879. }
  2880. if (Lazy != false) {
  2881. output.WriteRawTag(40);
  2882. output.WriteBool(Lazy);
  2883. }
  2884. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  2885. output.WriteRawTag(48);
  2886. output.WriteEnum((int) Jstype);
  2887. }
  2888. if (Weak != false) {
  2889. output.WriteRawTag(80);
  2890. output.WriteBool(Weak);
  2891. }
  2892. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2893. }
  2894. public int CalculateSize() {
  2895. int size = 0;
  2896. if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  2897. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
  2898. }
  2899. if (Packed != false) {
  2900. size += 1 + 1;
  2901. }
  2902. if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  2903. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
  2904. }
  2905. if (Lazy != false) {
  2906. size += 1 + 1;
  2907. }
  2908. if (Deprecated != false) {
  2909. size += 1 + 1;
  2910. }
  2911. if (Weak != false) {
  2912. size += 1 + 1;
  2913. }
  2914. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2915. return size;
  2916. }
  2917. public void MergeFrom(FieldOptions other) {
  2918. if (other == null) {
  2919. return;
  2920. }
  2921. if (other.Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
  2922. Ctype = other.Ctype;
  2923. }
  2924. if (other.Packed != false) {
  2925. Packed = other.Packed;
  2926. }
  2927. if (other.Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
  2928. Jstype = other.Jstype;
  2929. }
  2930. if (other.Lazy != false) {
  2931. Lazy = other.Lazy;
  2932. }
  2933. if (other.Deprecated != false) {
  2934. Deprecated = other.Deprecated;
  2935. }
  2936. if (other.Weak != false) {
  2937. Weak = other.Weak;
  2938. }
  2939. uninterpretedOption_.Add(other.uninterpretedOption_);
  2940. }
  2941. public void MergeFrom(pb::CodedInputStream input) {
  2942. uint tag;
  2943. while (input.ReadTag(out tag)) {
  2944. switch(tag) {
  2945. case 0:
  2946. throw pb::InvalidProtocolBufferException.InvalidTag();
  2947. default:
  2948. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2949. return;
  2950. }
  2951. break;
  2952. case 8: {
  2953. ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
  2954. break;
  2955. }
  2956. case 16: {
  2957. Packed = input.ReadBool();
  2958. break;
  2959. }
  2960. case 24: {
  2961. Deprecated = input.ReadBool();
  2962. break;
  2963. }
  2964. case 40: {
  2965. Lazy = input.ReadBool();
  2966. break;
  2967. }
  2968. case 48: {
  2969. jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
  2970. break;
  2971. }
  2972. case 80: {
  2973. Weak = input.ReadBool();
  2974. break;
  2975. }
  2976. case 7994: {
  2977. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2978. break;
  2979. }
  2980. }
  2981. }
  2982. }
  2983. #region Nested types
  2984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2985. public static partial class Types {
  2986. internal enum CType {
  2987. STRING = 0,
  2988. CORD = 1,
  2989. STRING_PIECE = 2,
  2990. }
  2991. internal enum JSType {
  2992. JS_NORMAL = 0,
  2993. JS_STRING = 1,
  2994. JS_NUMBER = 2,
  2995. }
  2996. }
  2997. #endregion
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
  3001. private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
  3002. public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
  3003. public static pbr::MessageDescriptor Descriptor {
  3004. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[12]; }
  3005. }
  3006. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3007. get { return Descriptor; }
  3008. }
  3009. private bool _frozen = false;
  3010. public bool IsFrozen { get { return _frozen; } }
  3011. public EnumOptions() {
  3012. OnConstruction();
  3013. }
  3014. partial void OnConstruction();
  3015. public EnumOptions(EnumOptions other) : this() {
  3016. allowAlias_ = other.allowAlias_;
  3017. deprecated_ = other.deprecated_;
  3018. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3019. }
  3020. public EnumOptions Clone() {
  3021. return new EnumOptions(this);
  3022. }
  3023. public const int AllowAliasFieldNumber = 2;
  3024. private bool allowAlias_;
  3025. internal bool AllowAlias {
  3026. get { return allowAlias_; }
  3027. set {
  3028. allowAlias_ = value;
  3029. }
  3030. }
  3031. public const int DeprecatedFieldNumber = 3;
  3032. private bool deprecated_;
  3033. internal bool Deprecated {
  3034. get { return deprecated_; }
  3035. set {
  3036. deprecated_ = value;
  3037. }
  3038. }
  3039. public const int UninterpretedOptionFieldNumber = 999;
  3040. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3041. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3042. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3043. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3044. get { return uninterpretedOption_; }
  3045. }
  3046. public override bool Equals(object other) {
  3047. return Equals(other as EnumOptions);
  3048. }
  3049. public bool Equals(EnumOptions other) {
  3050. if (ReferenceEquals(other, null)) {
  3051. return false;
  3052. }
  3053. if (ReferenceEquals(other, this)) {
  3054. return true;
  3055. }
  3056. if (AllowAlias != other.AllowAlias) return false;
  3057. if (Deprecated != other.Deprecated) return false;
  3058. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3059. return true;
  3060. }
  3061. public override int GetHashCode() {
  3062. int hash = 1;
  3063. if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
  3064. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3065. hash ^= uninterpretedOption_.GetHashCode();
  3066. return hash;
  3067. }
  3068. public override string ToString() {
  3069. return pb::JsonFormatter.Default.Format(this);
  3070. }
  3071. public void WriteTo(pb::CodedOutputStream output) {
  3072. if (AllowAlias != false) {
  3073. output.WriteRawTag(16);
  3074. output.WriteBool(AllowAlias);
  3075. }
  3076. if (Deprecated != false) {
  3077. output.WriteRawTag(24);
  3078. output.WriteBool(Deprecated);
  3079. }
  3080. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3081. }
  3082. public int CalculateSize() {
  3083. int size = 0;
  3084. if (AllowAlias != false) {
  3085. size += 1 + 1;
  3086. }
  3087. if (Deprecated != false) {
  3088. size += 1 + 1;
  3089. }
  3090. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3091. return size;
  3092. }
  3093. public void MergeFrom(EnumOptions other) {
  3094. if (other == null) {
  3095. return;
  3096. }
  3097. if (other.AllowAlias != false) {
  3098. AllowAlias = other.AllowAlias;
  3099. }
  3100. if (other.Deprecated != false) {
  3101. Deprecated = other.Deprecated;
  3102. }
  3103. uninterpretedOption_.Add(other.uninterpretedOption_);
  3104. }
  3105. public void MergeFrom(pb::CodedInputStream input) {
  3106. uint tag;
  3107. while (input.ReadTag(out tag)) {
  3108. switch(tag) {
  3109. case 0:
  3110. throw pb::InvalidProtocolBufferException.InvalidTag();
  3111. default:
  3112. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3113. return;
  3114. }
  3115. break;
  3116. case 16: {
  3117. AllowAlias = input.ReadBool();
  3118. break;
  3119. }
  3120. case 24: {
  3121. Deprecated = input.ReadBool();
  3122. break;
  3123. }
  3124. case 7994: {
  3125. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3126. break;
  3127. }
  3128. }
  3129. }
  3130. }
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
  3134. private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
  3135. public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
  3136. public static pbr::MessageDescriptor Descriptor {
  3137. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[13]; }
  3138. }
  3139. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3140. get { return Descriptor; }
  3141. }
  3142. private bool _frozen = false;
  3143. public bool IsFrozen { get { return _frozen; } }
  3144. public EnumValueOptions() {
  3145. OnConstruction();
  3146. }
  3147. partial void OnConstruction();
  3148. public EnumValueOptions(EnumValueOptions other) : this() {
  3149. deprecated_ = other.deprecated_;
  3150. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3151. }
  3152. public EnumValueOptions Clone() {
  3153. return new EnumValueOptions(this);
  3154. }
  3155. public const int DeprecatedFieldNumber = 1;
  3156. private bool deprecated_;
  3157. internal bool Deprecated {
  3158. get { return deprecated_; }
  3159. set {
  3160. deprecated_ = value;
  3161. }
  3162. }
  3163. public const int UninterpretedOptionFieldNumber = 999;
  3164. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3165. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3166. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3167. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3168. get { return uninterpretedOption_; }
  3169. }
  3170. public override bool Equals(object other) {
  3171. return Equals(other as EnumValueOptions);
  3172. }
  3173. public bool Equals(EnumValueOptions other) {
  3174. if (ReferenceEquals(other, null)) {
  3175. return false;
  3176. }
  3177. if (ReferenceEquals(other, this)) {
  3178. return true;
  3179. }
  3180. if (Deprecated != other.Deprecated) return false;
  3181. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3182. return true;
  3183. }
  3184. public override int GetHashCode() {
  3185. int hash = 1;
  3186. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3187. hash ^= uninterpretedOption_.GetHashCode();
  3188. return hash;
  3189. }
  3190. public override string ToString() {
  3191. return pb::JsonFormatter.Default.Format(this);
  3192. }
  3193. public void WriteTo(pb::CodedOutputStream output) {
  3194. if (Deprecated != false) {
  3195. output.WriteRawTag(8);
  3196. output.WriteBool(Deprecated);
  3197. }
  3198. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3199. }
  3200. public int CalculateSize() {
  3201. int size = 0;
  3202. if (Deprecated != false) {
  3203. size += 1 + 1;
  3204. }
  3205. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3206. return size;
  3207. }
  3208. public void MergeFrom(EnumValueOptions other) {
  3209. if (other == null) {
  3210. return;
  3211. }
  3212. if (other.Deprecated != false) {
  3213. Deprecated = other.Deprecated;
  3214. }
  3215. uninterpretedOption_.Add(other.uninterpretedOption_);
  3216. }
  3217. public void MergeFrom(pb::CodedInputStream input) {
  3218. uint tag;
  3219. while (input.ReadTag(out tag)) {
  3220. switch(tag) {
  3221. case 0:
  3222. throw pb::InvalidProtocolBufferException.InvalidTag();
  3223. default:
  3224. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3225. return;
  3226. }
  3227. break;
  3228. case 8: {
  3229. Deprecated = input.ReadBool();
  3230. break;
  3231. }
  3232. case 7994: {
  3233. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3234. break;
  3235. }
  3236. }
  3237. }
  3238. }
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
  3242. private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
  3243. public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
  3244. public static pbr::MessageDescriptor Descriptor {
  3245. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[14]; }
  3246. }
  3247. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3248. get { return Descriptor; }
  3249. }
  3250. private bool _frozen = false;
  3251. public bool IsFrozen { get { return _frozen; } }
  3252. public ServiceOptions() {
  3253. OnConstruction();
  3254. }
  3255. partial void OnConstruction();
  3256. public ServiceOptions(ServiceOptions other) : this() {
  3257. deprecated_ = other.deprecated_;
  3258. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3259. }
  3260. public ServiceOptions Clone() {
  3261. return new ServiceOptions(this);
  3262. }
  3263. public const int DeprecatedFieldNumber = 33;
  3264. private bool deprecated_;
  3265. internal bool Deprecated {
  3266. get { return deprecated_; }
  3267. set {
  3268. deprecated_ = value;
  3269. }
  3270. }
  3271. public const int UninterpretedOptionFieldNumber = 999;
  3272. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3273. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3274. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3275. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3276. get { return uninterpretedOption_; }
  3277. }
  3278. public override bool Equals(object other) {
  3279. return Equals(other as ServiceOptions);
  3280. }
  3281. public bool Equals(ServiceOptions other) {
  3282. if (ReferenceEquals(other, null)) {
  3283. return false;
  3284. }
  3285. if (ReferenceEquals(other, this)) {
  3286. return true;
  3287. }
  3288. if (Deprecated != other.Deprecated) return false;
  3289. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3290. return true;
  3291. }
  3292. public override int GetHashCode() {
  3293. int hash = 1;
  3294. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3295. hash ^= uninterpretedOption_.GetHashCode();
  3296. return hash;
  3297. }
  3298. public override string ToString() {
  3299. return pb::JsonFormatter.Default.Format(this);
  3300. }
  3301. public void WriteTo(pb::CodedOutputStream output) {
  3302. if (Deprecated != false) {
  3303. output.WriteRawTag(136, 2);
  3304. output.WriteBool(Deprecated);
  3305. }
  3306. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3307. }
  3308. public int CalculateSize() {
  3309. int size = 0;
  3310. if (Deprecated != false) {
  3311. size += 2 + 1;
  3312. }
  3313. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3314. return size;
  3315. }
  3316. public void MergeFrom(ServiceOptions other) {
  3317. if (other == null) {
  3318. return;
  3319. }
  3320. if (other.Deprecated != false) {
  3321. Deprecated = other.Deprecated;
  3322. }
  3323. uninterpretedOption_.Add(other.uninterpretedOption_);
  3324. }
  3325. public void MergeFrom(pb::CodedInputStream input) {
  3326. uint tag;
  3327. while (input.ReadTag(out tag)) {
  3328. switch(tag) {
  3329. case 0:
  3330. throw pb::InvalidProtocolBufferException.InvalidTag();
  3331. default:
  3332. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3333. return;
  3334. }
  3335. break;
  3336. case 264: {
  3337. Deprecated = input.ReadBool();
  3338. break;
  3339. }
  3340. case 7994: {
  3341. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3342. break;
  3343. }
  3344. }
  3345. }
  3346. }
  3347. }
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3349. internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
  3350. private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
  3351. public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
  3352. public static pbr::MessageDescriptor Descriptor {
  3353. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[15]; }
  3354. }
  3355. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3356. get { return Descriptor; }
  3357. }
  3358. private bool _frozen = false;
  3359. public bool IsFrozen { get { return _frozen; } }
  3360. public MethodOptions() {
  3361. OnConstruction();
  3362. }
  3363. partial void OnConstruction();
  3364. public MethodOptions(MethodOptions other) : this() {
  3365. deprecated_ = other.deprecated_;
  3366. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3367. }
  3368. public MethodOptions Clone() {
  3369. return new MethodOptions(this);
  3370. }
  3371. public const int DeprecatedFieldNumber = 33;
  3372. private bool deprecated_;
  3373. internal bool Deprecated {
  3374. get { return deprecated_; }
  3375. set {
  3376. deprecated_ = value;
  3377. }
  3378. }
  3379. public const int UninterpretedOptionFieldNumber = 999;
  3380. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3381. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3382. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3383. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3384. get { return uninterpretedOption_; }
  3385. }
  3386. public override bool Equals(object other) {
  3387. return Equals(other as MethodOptions);
  3388. }
  3389. public bool Equals(MethodOptions other) {
  3390. if (ReferenceEquals(other, null)) {
  3391. return false;
  3392. }
  3393. if (ReferenceEquals(other, this)) {
  3394. return true;
  3395. }
  3396. if (Deprecated != other.Deprecated) return false;
  3397. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3398. return true;
  3399. }
  3400. public override int GetHashCode() {
  3401. int hash = 1;
  3402. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3403. hash ^= uninterpretedOption_.GetHashCode();
  3404. return hash;
  3405. }
  3406. public override string ToString() {
  3407. return pb::JsonFormatter.Default.Format(this);
  3408. }
  3409. public void WriteTo(pb::CodedOutputStream output) {
  3410. if (Deprecated != false) {
  3411. output.WriteRawTag(136, 2);
  3412. output.WriteBool(Deprecated);
  3413. }
  3414. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3415. }
  3416. public int CalculateSize() {
  3417. int size = 0;
  3418. if (Deprecated != false) {
  3419. size += 2 + 1;
  3420. }
  3421. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3422. return size;
  3423. }
  3424. public void MergeFrom(MethodOptions other) {
  3425. if (other == null) {
  3426. return;
  3427. }
  3428. if (other.Deprecated != false) {
  3429. Deprecated = other.Deprecated;
  3430. }
  3431. uninterpretedOption_.Add(other.uninterpretedOption_);
  3432. }
  3433. public void MergeFrom(pb::CodedInputStream input) {
  3434. uint tag;
  3435. while (input.ReadTag(out tag)) {
  3436. switch(tag) {
  3437. case 0:
  3438. throw pb::InvalidProtocolBufferException.InvalidTag();
  3439. default:
  3440. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3441. return;
  3442. }
  3443. break;
  3444. case 264: {
  3445. Deprecated = input.ReadBool();
  3446. break;
  3447. }
  3448. case 7994: {
  3449. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3450. break;
  3451. }
  3452. }
  3453. }
  3454. }
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
  3458. private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
  3459. public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
  3460. public static pbr::MessageDescriptor Descriptor {
  3461. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[16]; }
  3462. }
  3463. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3464. get { return Descriptor; }
  3465. }
  3466. private bool _frozen = false;
  3467. public bool IsFrozen { get { return _frozen; } }
  3468. public UninterpretedOption() {
  3469. OnConstruction();
  3470. }
  3471. partial void OnConstruction();
  3472. public UninterpretedOption(UninterpretedOption other) : this() {
  3473. name_ = other.name_.Clone();
  3474. identifierValue_ = other.identifierValue_;
  3475. positiveIntValue_ = other.positiveIntValue_;
  3476. negativeIntValue_ = other.negativeIntValue_;
  3477. doubleValue_ = other.doubleValue_;
  3478. stringValue_ = other.stringValue_;
  3479. aggregateValue_ = other.aggregateValue_;
  3480. }
  3481. public UninterpretedOption Clone() {
  3482. return new UninterpretedOption(this);
  3483. }
  3484. public const int NameFieldNumber = 2;
  3485. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
  3486. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
  3487. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
  3488. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
  3489. get { return name_; }
  3490. }
  3491. public const int IdentifierValueFieldNumber = 3;
  3492. private string identifierValue_ = "";
  3493. internal string IdentifierValue {
  3494. get { return identifierValue_; }
  3495. set {
  3496. identifierValue_ = value ?? "";
  3497. }
  3498. }
  3499. public const int PositiveIntValueFieldNumber = 4;
  3500. private ulong positiveIntValue_;
  3501. internal ulong PositiveIntValue {
  3502. get { return positiveIntValue_; }
  3503. set {
  3504. positiveIntValue_ = value;
  3505. }
  3506. }
  3507. public const int NegativeIntValueFieldNumber = 5;
  3508. private long negativeIntValue_;
  3509. internal long NegativeIntValue {
  3510. get { return negativeIntValue_; }
  3511. set {
  3512. negativeIntValue_ = value;
  3513. }
  3514. }
  3515. public const int DoubleValueFieldNumber = 6;
  3516. private double doubleValue_;
  3517. internal double DoubleValue {
  3518. get { return doubleValue_; }
  3519. set {
  3520. doubleValue_ = value;
  3521. }
  3522. }
  3523. public const int StringValueFieldNumber = 7;
  3524. private pb::ByteString stringValue_ = pb::ByteString.Empty;
  3525. internal pb::ByteString StringValue {
  3526. get { return stringValue_; }
  3527. set {
  3528. stringValue_ = value ?? pb::ByteString.Empty;
  3529. }
  3530. }
  3531. public const int AggregateValueFieldNumber = 8;
  3532. private string aggregateValue_ = "";
  3533. internal string AggregateValue {
  3534. get { return aggregateValue_; }
  3535. set {
  3536. aggregateValue_ = value ?? "";
  3537. }
  3538. }
  3539. public override bool Equals(object other) {
  3540. return Equals(other as UninterpretedOption);
  3541. }
  3542. public bool Equals(UninterpretedOption other) {
  3543. if (ReferenceEquals(other, null)) {
  3544. return false;
  3545. }
  3546. if (ReferenceEquals(other, this)) {
  3547. return true;
  3548. }
  3549. if(!name_.Equals(other.name_)) return false;
  3550. if (IdentifierValue != other.IdentifierValue) return false;
  3551. if (PositiveIntValue != other.PositiveIntValue) return false;
  3552. if (NegativeIntValue != other.NegativeIntValue) return false;
  3553. if (DoubleValue != other.DoubleValue) return false;
  3554. if (StringValue != other.StringValue) return false;
  3555. if (AggregateValue != other.AggregateValue) return false;
  3556. return true;
  3557. }
  3558. public override int GetHashCode() {
  3559. int hash = 1;
  3560. hash ^= name_.GetHashCode();
  3561. if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
  3562. if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
  3563. if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
  3564. if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
  3565. if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
  3566. if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
  3567. return hash;
  3568. }
  3569. public override string ToString() {
  3570. return pb::JsonFormatter.Default.Format(this);
  3571. }
  3572. public void WriteTo(pb::CodedOutputStream output) {
  3573. name_.WriteTo(output, _repeated_name_codec);
  3574. if (IdentifierValue.Length != 0) {
  3575. output.WriteRawTag(26);
  3576. output.WriteString(IdentifierValue);
  3577. }
  3578. if (PositiveIntValue != 0UL) {
  3579. output.WriteRawTag(32);
  3580. output.WriteUInt64(PositiveIntValue);
  3581. }
  3582. if (NegativeIntValue != 0L) {
  3583. output.WriteRawTag(40);
  3584. output.WriteInt64(NegativeIntValue);
  3585. }
  3586. if (DoubleValue != 0D) {
  3587. output.WriteRawTag(49);
  3588. output.WriteDouble(DoubleValue);
  3589. }
  3590. if (StringValue.Length != 0) {
  3591. output.WriteRawTag(58);
  3592. output.WriteBytes(StringValue);
  3593. }
  3594. if (AggregateValue.Length != 0) {
  3595. output.WriteRawTag(66);
  3596. output.WriteString(AggregateValue);
  3597. }
  3598. }
  3599. public int CalculateSize() {
  3600. int size = 0;
  3601. size += name_.CalculateSize(_repeated_name_codec);
  3602. if (IdentifierValue.Length != 0) {
  3603. size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
  3604. }
  3605. if (PositiveIntValue != 0UL) {
  3606. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
  3607. }
  3608. if (NegativeIntValue != 0L) {
  3609. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
  3610. }
  3611. if (DoubleValue != 0D) {
  3612. size += 1 + 8;
  3613. }
  3614. if (StringValue.Length != 0) {
  3615. size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
  3616. }
  3617. if (AggregateValue.Length != 0) {
  3618. size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
  3619. }
  3620. return size;
  3621. }
  3622. public void MergeFrom(UninterpretedOption other) {
  3623. if (other == null) {
  3624. return;
  3625. }
  3626. name_.Add(other.name_);
  3627. if (other.IdentifierValue.Length != 0) {
  3628. IdentifierValue = other.IdentifierValue;
  3629. }
  3630. if (other.PositiveIntValue != 0UL) {
  3631. PositiveIntValue = other.PositiveIntValue;
  3632. }
  3633. if (other.NegativeIntValue != 0L) {
  3634. NegativeIntValue = other.NegativeIntValue;
  3635. }
  3636. if (other.DoubleValue != 0D) {
  3637. DoubleValue = other.DoubleValue;
  3638. }
  3639. if (other.StringValue.Length != 0) {
  3640. StringValue = other.StringValue;
  3641. }
  3642. if (other.AggregateValue.Length != 0) {
  3643. AggregateValue = other.AggregateValue;
  3644. }
  3645. }
  3646. public void MergeFrom(pb::CodedInputStream input) {
  3647. uint tag;
  3648. while (input.ReadTag(out tag)) {
  3649. switch(tag) {
  3650. case 0:
  3651. throw pb::InvalidProtocolBufferException.InvalidTag();
  3652. default:
  3653. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3654. return;
  3655. }
  3656. break;
  3657. case 18: {
  3658. name_.AddEntriesFrom(input, _repeated_name_codec);
  3659. break;
  3660. }
  3661. case 26: {
  3662. IdentifierValue = input.ReadString();
  3663. break;
  3664. }
  3665. case 32: {
  3666. PositiveIntValue = input.ReadUInt64();
  3667. break;
  3668. }
  3669. case 40: {
  3670. NegativeIntValue = input.ReadInt64();
  3671. break;
  3672. }
  3673. case 49: {
  3674. DoubleValue = input.ReadDouble();
  3675. break;
  3676. }
  3677. case 58: {
  3678. StringValue = input.ReadBytes();
  3679. break;
  3680. }
  3681. case 66: {
  3682. AggregateValue = input.ReadString();
  3683. break;
  3684. }
  3685. }
  3686. }
  3687. }
  3688. #region Nested types
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. public static partial class Types {
  3691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3692. internal sealed partial class NamePart : pb::IMessage<NamePart> {
  3693. private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
  3694. public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
  3695. public static pbr::MessageDescriptor Descriptor {
  3696. get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
  3697. }
  3698. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3699. get { return Descriptor; }
  3700. }
  3701. private bool _frozen = false;
  3702. public bool IsFrozen { get { return _frozen; } }
  3703. public NamePart() {
  3704. OnConstruction();
  3705. }
  3706. partial void OnConstruction();
  3707. public NamePart(NamePart other) : this() {
  3708. namePart_ = other.namePart_;
  3709. isExtension_ = other.isExtension_;
  3710. }
  3711. public NamePart Clone() {
  3712. return new NamePart(this);
  3713. }
  3714. public const int NamePart_FieldNumber = 1;
  3715. private string namePart_ = "";
  3716. internal string NamePart_ {
  3717. get { return namePart_; }
  3718. set {
  3719. namePart_ = value ?? "";
  3720. }
  3721. }
  3722. public const int IsExtensionFieldNumber = 2;
  3723. private bool isExtension_;
  3724. internal bool IsExtension {
  3725. get { return isExtension_; }
  3726. set {
  3727. isExtension_ = value;
  3728. }
  3729. }
  3730. public override bool Equals(object other) {
  3731. return Equals(other as NamePart);
  3732. }
  3733. public bool Equals(NamePart other) {
  3734. if (ReferenceEquals(other, null)) {
  3735. return false;
  3736. }
  3737. if (ReferenceEquals(other, this)) {
  3738. return true;
  3739. }
  3740. if (NamePart_ != other.NamePart_) return false;
  3741. if (IsExtension != other.IsExtension) return false;
  3742. return true;
  3743. }
  3744. public override int GetHashCode() {
  3745. int hash = 1;
  3746. if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
  3747. if (IsExtension != false) hash ^= IsExtension.GetHashCode();
  3748. return hash;
  3749. }
  3750. public override string ToString() {
  3751. return pb::JsonFormatter.Default.Format(this);
  3752. }
  3753. public void WriteTo(pb::CodedOutputStream output) {
  3754. if (NamePart_.Length != 0) {
  3755. output.WriteRawTag(10);
  3756. output.WriteString(NamePart_);
  3757. }
  3758. if (IsExtension != false) {
  3759. output.WriteRawTag(16);
  3760. output.WriteBool(IsExtension);
  3761. }
  3762. }
  3763. public int CalculateSize() {
  3764. int size = 0;
  3765. if (NamePart_.Length != 0) {
  3766. size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
  3767. }
  3768. if (IsExtension != false) {
  3769. size += 1 + 1;
  3770. }
  3771. return size;
  3772. }
  3773. public void MergeFrom(NamePart other) {
  3774. if (other == null) {
  3775. return;
  3776. }
  3777. if (other.NamePart_.Length != 0) {
  3778. NamePart_ = other.NamePart_;
  3779. }
  3780. if (other.IsExtension != false) {
  3781. IsExtension = other.IsExtension;
  3782. }
  3783. }
  3784. public void MergeFrom(pb::CodedInputStream input) {
  3785. uint tag;
  3786. while (input.ReadTag(out tag)) {
  3787. switch(tag) {
  3788. case 0:
  3789. throw pb::InvalidProtocolBufferException.InvalidTag();
  3790. default:
  3791. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3792. return;
  3793. }
  3794. break;
  3795. case 10: {
  3796. NamePart_ = input.ReadString();
  3797. break;
  3798. }
  3799. case 16: {
  3800. IsExtension = input.ReadBool();
  3801. break;
  3802. }
  3803. }
  3804. }
  3805. }
  3806. }
  3807. }
  3808. #endregion
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
  3812. private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
  3813. public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
  3814. public static pbr::MessageDescriptor Descriptor {
  3815. get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[17]; }
  3816. }
  3817. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3818. get { return Descriptor; }
  3819. }
  3820. private bool _frozen = false;
  3821. public bool IsFrozen { get { return _frozen; } }
  3822. public SourceCodeInfo() {
  3823. OnConstruction();
  3824. }
  3825. partial void OnConstruction();
  3826. public SourceCodeInfo(SourceCodeInfo other) : this() {
  3827. location_ = other.location_.Clone();
  3828. }
  3829. public SourceCodeInfo Clone() {
  3830. return new SourceCodeInfo(this);
  3831. }
  3832. public const int LocationFieldNumber = 1;
  3833. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
  3834. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
  3835. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
  3836. internal pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
  3837. get { return location_; }
  3838. }
  3839. public override bool Equals(object other) {
  3840. return Equals(other as SourceCodeInfo);
  3841. }
  3842. public bool Equals(SourceCodeInfo other) {
  3843. if (ReferenceEquals(other, null)) {
  3844. return false;
  3845. }
  3846. if (ReferenceEquals(other, this)) {
  3847. return true;
  3848. }
  3849. if(!location_.Equals(other.location_)) return false;
  3850. return true;
  3851. }
  3852. public override int GetHashCode() {
  3853. int hash = 1;
  3854. hash ^= location_.GetHashCode();
  3855. return hash;
  3856. }
  3857. public override string ToString() {
  3858. return pb::JsonFormatter.Default.Format(this);
  3859. }
  3860. public void WriteTo(pb::CodedOutputStream output) {
  3861. location_.WriteTo(output, _repeated_location_codec);
  3862. }
  3863. public int CalculateSize() {
  3864. int size = 0;
  3865. size += location_.CalculateSize(_repeated_location_codec);
  3866. return size;
  3867. }
  3868. public void MergeFrom(SourceCodeInfo other) {
  3869. if (other == null) {
  3870. return;
  3871. }
  3872. location_.Add(other.location_);
  3873. }
  3874. public void MergeFrom(pb::CodedInputStream input) {
  3875. uint tag;
  3876. while (input.ReadTag(out tag)) {
  3877. switch(tag) {
  3878. case 0:
  3879. throw pb::InvalidProtocolBufferException.InvalidTag();
  3880. default:
  3881. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3882. return;
  3883. }
  3884. break;
  3885. case 10: {
  3886. location_.AddEntriesFrom(input, _repeated_location_codec);
  3887. break;
  3888. }
  3889. }
  3890. }
  3891. }
  3892. #region Nested types
  3893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3894. public static partial class Types {
  3895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3896. internal sealed partial class Location : pb::IMessage<Location> {
  3897. private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
  3898. public static pb::MessageParser<Location> Parser { get { return _parser; } }
  3899. public static pbr::MessageDescriptor Descriptor {
  3900. get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
  3901. }
  3902. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3903. get { return Descriptor; }
  3904. }
  3905. private bool _frozen = false;
  3906. public bool IsFrozen { get { return _frozen; } }
  3907. public Location() {
  3908. OnConstruction();
  3909. }
  3910. partial void OnConstruction();
  3911. public Location(Location other) : this() {
  3912. path_ = other.path_.Clone();
  3913. span_ = other.span_.Clone();
  3914. leadingComments_ = other.leadingComments_;
  3915. trailingComments_ = other.trailingComments_;
  3916. leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
  3917. }
  3918. public Location Clone() {
  3919. return new Location(this);
  3920. }
  3921. public const int PathFieldNumber = 1;
  3922. private static readonly pb::FieldCodec<int> _repeated_path_codec
  3923. = pb::FieldCodec.ForInt32(10);
  3924. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  3925. internal pbc::RepeatedField<int> Path {
  3926. get { return path_; }
  3927. }
  3928. public const int SpanFieldNumber = 2;
  3929. private static readonly pb::FieldCodec<int> _repeated_span_codec
  3930. = pb::FieldCodec.ForInt32(18);
  3931. private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
  3932. internal pbc::RepeatedField<int> Span {
  3933. get { return span_; }
  3934. }
  3935. public const int LeadingCommentsFieldNumber = 3;
  3936. private string leadingComments_ = "";
  3937. internal string LeadingComments {
  3938. get { return leadingComments_; }
  3939. set {
  3940. leadingComments_ = value ?? "";
  3941. }
  3942. }
  3943. public const int TrailingCommentsFieldNumber = 4;
  3944. private string trailingComments_ = "";
  3945. internal string TrailingComments {
  3946. get { return trailingComments_; }
  3947. set {
  3948. trailingComments_ = value ?? "";
  3949. }
  3950. }
  3951. public const int LeadingDetachedCommentsFieldNumber = 6;
  3952. private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
  3953. = pb::FieldCodec.ForString(50);
  3954. private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
  3955. internal pbc::RepeatedField<string> LeadingDetachedComments {
  3956. get { return leadingDetachedComments_; }
  3957. }
  3958. public override bool Equals(object other) {
  3959. return Equals(other as Location);
  3960. }
  3961. public bool Equals(Location other) {
  3962. if (ReferenceEquals(other, null)) {
  3963. return false;
  3964. }
  3965. if (ReferenceEquals(other, this)) {
  3966. return true;
  3967. }
  3968. if(!path_.Equals(other.path_)) return false;
  3969. if(!span_.Equals(other.span_)) return false;
  3970. if (LeadingComments != other.LeadingComments) return false;
  3971. if (TrailingComments != other.TrailingComments) return false;
  3972. if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
  3973. return true;
  3974. }
  3975. public override int GetHashCode() {
  3976. int hash = 1;
  3977. hash ^= path_.GetHashCode();
  3978. hash ^= span_.GetHashCode();
  3979. if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
  3980. if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
  3981. hash ^= leadingDetachedComments_.GetHashCode();
  3982. return hash;
  3983. }
  3984. public override string ToString() {
  3985. return pb::JsonFormatter.Default.Format(this);
  3986. }
  3987. public void WriteTo(pb::CodedOutputStream output) {
  3988. path_.WriteTo(output, _repeated_path_codec);
  3989. span_.WriteTo(output, _repeated_span_codec);
  3990. if (LeadingComments.Length != 0) {
  3991. output.WriteRawTag(26);
  3992. output.WriteString(LeadingComments);
  3993. }
  3994. if (TrailingComments.Length != 0) {
  3995. output.WriteRawTag(34);
  3996. output.WriteString(TrailingComments);
  3997. }
  3998. leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
  3999. }
  4000. public int CalculateSize() {
  4001. int size = 0;
  4002. size += path_.CalculateSize(_repeated_path_codec);
  4003. size += span_.CalculateSize(_repeated_span_codec);
  4004. if (LeadingComments.Length != 0) {
  4005. size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
  4006. }
  4007. if (TrailingComments.Length != 0) {
  4008. size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
  4009. }
  4010. size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
  4011. return size;
  4012. }
  4013. public void MergeFrom(Location other) {
  4014. if (other == null) {
  4015. return;
  4016. }
  4017. path_.Add(other.path_);
  4018. span_.Add(other.span_);
  4019. if (other.LeadingComments.Length != 0) {
  4020. LeadingComments = other.LeadingComments;
  4021. }
  4022. if (other.TrailingComments.Length != 0) {
  4023. TrailingComments = other.TrailingComments;
  4024. }
  4025. leadingDetachedComments_.Add(other.leadingDetachedComments_);
  4026. }
  4027. public void MergeFrom(pb::CodedInputStream input) {
  4028. uint tag;
  4029. while (input.ReadTag(out tag)) {
  4030. switch(tag) {
  4031. case 0:
  4032. throw pb::InvalidProtocolBufferException.InvalidTag();
  4033. default:
  4034. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4035. return;
  4036. }
  4037. break;
  4038. case 10:
  4039. case 8: {
  4040. path_.AddEntriesFrom(input, _repeated_path_codec);
  4041. break;
  4042. }
  4043. case 18:
  4044. case 16: {
  4045. span_.AddEntriesFrom(input, _repeated_span_codec);
  4046. break;
  4047. }
  4048. case 26: {
  4049. LeadingComments = input.ReadString();
  4050. break;
  4051. }
  4052. case 34: {
  4053. TrailingComments = input.ReadString();
  4054. break;
  4055. }
  4056. case 50: {
  4057. leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
  4058. break;
  4059. }
  4060. }
  4061. }
  4062. }
  4063. }
  4064. }
  4065. #endregion
  4066. }
  4067. #endregion
  4068. }
  4069. #endregion Designer generated code