DescriptorProtoFile.cs 152 KB

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