descriptor.pb.swift 242 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572
  1. // DO NOT EDIT.
  2. // swift-format-ignore-file
  3. // swiftlint:disable all
  4. //
  5. // Generated by the Swift generator plugin for the protocol buffer compiler.
  6. // Source: google/protobuf/descriptor.proto
  7. //
  8. // For information on using the generated types, please see the documentation:
  9. // https://github.com/apple/swift-protobuf/
  10. // Protocol Buffers - Google's data interchange format
  11. // Copyright 2008 Google Inc. All rights reserved.
  12. // https://developers.google.com/protocol-buffers/
  13. //
  14. // Redistribution and use in source and binary forms, with or without
  15. // modification, are permitted provided that the following conditions are
  16. // met:
  17. //
  18. // * Redistributions of source code must retain the above copyright
  19. // notice, this list of conditions and the following disclaimer.
  20. // * Redistributions in binary form must reproduce the above
  21. // copyright notice, this list of conditions and the following disclaimer
  22. // in the documentation and/or other materials provided with the
  23. // distribution.
  24. // * Neither the name of Google Inc. nor the names of its
  25. // contributors may be used to endorse or promote products derived from
  26. // this software without specific prior written permission.
  27. //
  28. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  29. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  30. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  31. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  32. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  33. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  34. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  35. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  36. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  37. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  38. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. // Author: kenton@google.com (Kenton Varda)
  40. // Based on original Protocol Buffers design by
  41. // Sanjay Ghemawat, Jeff Dean, and others.
  42. //
  43. // The messages in this file describe the definitions found in .proto files.
  44. // A valid .proto file can be translated directly to a FileDescriptorProto
  45. // without any other information (e.g. without reading its imports).
  46. import Foundation
  47. // 'import SwiftProtobuf' suppressed, this proto file is meant to be bundled in the runtime.
  48. // If the compiler emits an error on this type, it is because this file
  49. // was generated by a version of the `protoc` Swift plug-in that is
  50. // incompatible with the version of SwiftProtobuf to which you are linking.
  51. // Please ensure that you are building against the same version of the API
  52. // that was used to generate this file.
  53. fileprivate struct _GeneratedWithProtocGenSwiftVersion: ProtobufAPIVersionCheck {
  54. struct _2: ProtobufAPIVersion_2 {}
  55. typealias Version = _2
  56. }
  57. /// The full set of known editions.
  58. enum Google_Protobuf_Edition: Int, Enum, Swift.CaseIterable {
  59. /// A placeholder for an unknown edition value.
  60. case unknown = 0
  61. /// A placeholder edition for specifying default behaviors *before* a feature
  62. /// was first introduced. This is effectively an "infinite past".
  63. case legacy = 900
  64. /// Legacy syntax "editions". These pre-date editions, but behave much like
  65. /// distinct editions. These can't be used to specify the edition of proto
  66. /// files, but feature definitions must supply proto2/proto3 defaults for
  67. /// backwards compatibility.
  68. case proto2 = 998
  69. case proto3 = 999
  70. /// Editions that have been released. The specific values are arbitrary and
  71. /// should not be depended on, but they will always be time-ordered for easy
  72. /// comparison.
  73. case edition2023 = 1000
  74. case edition2024 = 1001
  75. /// Placeholder editions for testing feature resolution. These should not be
  76. /// used or relied on outside of tests.
  77. case edition1TestOnly = 1
  78. case edition2TestOnly = 2
  79. case edition99997TestOnly = 99997
  80. case edition99998TestOnly = 99998
  81. case edition99999TestOnly = 99999
  82. /// Placeholder for specifying unbounded edition support. This should only
  83. /// ever be used by plugins that can expect to never require any changes to
  84. /// support a new edition.
  85. case max = 2147483647
  86. init() {
  87. self = .unknown
  88. }
  89. }
  90. /// Describes the 'visibility' of a symbol with respect to the proto import
  91. /// system. Symbols can only be imported when the visibility rules do not prevent
  92. /// it (ex: local symbols cannot be imported). Visibility modifiers can only set
  93. /// on `message` and `enum` as they are the only types available to be referenced
  94. /// from other files.
  95. enum Google_Protobuf_SymbolVisibility: Int, Enum, Swift.CaseIterable {
  96. case visibilityUnset = 0
  97. case visibilityLocal = 1
  98. case visibilityExport = 2
  99. init() {
  100. self = .visibilityUnset
  101. }
  102. }
  103. /// The protocol compiler can output a FileDescriptorSet containing the .proto
  104. /// files it parses.
  105. struct Google_Protobuf_FileDescriptorSet: ExtensibleMessage, Sendable {
  106. // SwiftProtobuf.Message conformance is added in an extension below. See the
  107. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  108. // methods supported on all messages.
  109. var file: [Google_Protobuf_FileDescriptorProto] = []
  110. var unknownFields = UnknownStorage()
  111. init() {}
  112. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  113. }
  114. /// Describes a complete .proto file.
  115. struct Google_Protobuf_FileDescriptorProto: Sendable {
  116. // SwiftProtobuf.Message conformance is added in an extension below. See the
  117. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  118. // methods supported on all messages.
  119. /// file name, relative to root of source tree
  120. var name: String {
  121. get {return _name ?? String()}
  122. set {_name = newValue}
  123. }
  124. /// Returns true if `name` has been explicitly set.
  125. var hasName: Bool {return self._name != nil}
  126. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  127. mutating func clearName() {self._name = nil}
  128. /// e.g. "foo", "foo.bar", etc.
  129. var package: String {
  130. get {return _package ?? String()}
  131. set {_package = newValue}
  132. }
  133. /// Returns true if `package` has been explicitly set.
  134. var hasPackage: Bool {return self._package != nil}
  135. /// Clears the value of `package`. Subsequent reads from it will return its default value.
  136. mutating func clearPackage() {self._package = nil}
  137. /// Names of files imported by this file.
  138. var dependency: [String] = []
  139. /// Indexes of the public imported files in the dependency list above.
  140. var publicDependency: [Int32] = []
  141. /// Indexes of the weak imported files in the dependency list.
  142. /// For Google-internal migration only. Do not use.
  143. var weakDependency: [Int32] = []
  144. /// Names of files imported by this file purely for the purpose of providing
  145. /// option extensions. These are excluded from the dependency list above.
  146. var optionDependency: [String] = []
  147. /// All top-level definitions in this file.
  148. var messageType: [Google_Protobuf_DescriptorProto] = []
  149. var enumType: [Google_Protobuf_EnumDescriptorProto] = []
  150. var service: [Google_Protobuf_ServiceDescriptorProto] = []
  151. var `extension`: [Google_Protobuf_FieldDescriptorProto] = []
  152. var options: Google_Protobuf_FileOptions {
  153. get {return _options ?? Google_Protobuf_FileOptions()}
  154. set {_options = newValue}
  155. }
  156. /// Returns true if `options` has been explicitly set.
  157. var hasOptions: Bool {return self._options != nil}
  158. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  159. mutating func clearOptions() {self._options = nil}
  160. /// This field contains optional information about the original source code.
  161. /// You may safely remove this entire field without harming runtime
  162. /// functionality of the descriptors -- the information is needed only by
  163. /// development tools.
  164. var sourceCodeInfo: Google_Protobuf_SourceCodeInfo {
  165. get {return _sourceCodeInfo ?? Google_Protobuf_SourceCodeInfo()}
  166. set {_sourceCodeInfo = newValue}
  167. }
  168. /// Returns true if `sourceCodeInfo` has been explicitly set.
  169. var hasSourceCodeInfo: Bool {return self._sourceCodeInfo != nil}
  170. /// Clears the value of `sourceCodeInfo`. Subsequent reads from it will return its default value.
  171. mutating func clearSourceCodeInfo() {self._sourceCodeInfo = nil}
  172. /// The syntax of the proto file.
  173. /// The supported values are "proto2", "proto3", and "editions".
  174. ///
  175. /// If `edition` is present, this value must be "editions".
  176. /// WARNING: This field should only be used by protobuf plugins or special
  177. /// cases like the proto compiler. Other uses are discouraged and
  178. /// developers should rely on the protoreflect APIs for their client language.
  179. var syntax: String {
  180. get {return _syntax ?? String()}
  181. set {_syntax = newValue}
  182. }
  183. /// Returns true if `syntax` has been explicitly set.
  184. var hasSyntax: Bool {return self._syntax != nil}
  185. /// Clears the value of `syntax`. Subsequent reads from it will return its default value.
  186. mutating func clearSyntax() {self._syntax = nil}
  187. /// The edition of the proto file.
  188. /// WARNING: This field should only be used by protobuf plugins or special
  189. /// cases like the proto compiler. Other uses are discouraged and
  190. /// developers should rely on the protoreflect APIs for their client language.
  191. var edition: Google_Protobuf_Edition {
  192. get {return _edition ?? .unknown}
  193. set {_edition = newValue}
  194. }
  195. /// Returns true if `edition` has been explicitly set.
  196. var hasEdition: Bool {return self._edition != nil}
  197. /// Clears the value of `edition`. Subsequent reads from it will return its default value.
  198. mutating func clearEdition() {self._edition = nil}
  199. var unknownFields = UnknownStorage()
  200. init() {}
  201. fileprivate var _name: String? = nil
  202. fileprivate var _package: String? = nil
  203. fileprivate var _options: Google_Protobuf_FileOptions? = nil
  204. fileprivate var _sourceCodeInfo: Google_Protobuf_SourceCodeInfo? = nil
  205. fileprivate var _syntax: String? = nil
  206. fileprivate var _edition: Google_Protobuf_Edition? = nil
  207. }
  208. /// Describes a message type.
  209. struct Google_Protobuf_DescriptorProto: @unchecked Sendable {
  210. // SwiftProtobuf.Message conformance is added in an extension below. See the
  211. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  212. // methods supported on all messages.
  213. var name: String {
  214. get {return _storage._name ?? String()}
  215. set {_uniqueStorage()._name = newValue}
  216. }
  217. /// Returns true if `name` has been explicitly set.
  218. var hasName: Bool {return _storage._name != nil}
  219. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  220. mutating func clearName() {_uniqueStorage()._name = nil}
  221. var field: [Google_Protobuf_FieldDescriptorProto] {
  222. get {return _storage._field}
  223. set {_uniqueStorage()._field = newValue}
  224. }
  225. var `extension`: [Google_Protobuf_FieldDescriptorProto] {
  226. get {return _storage._extension}
  227. set {_uniqueStorage()._extension = newValue}
  228. }
  229. var nestedType: [Google_Protobuf_DescriptorProto] {
  230. get {return _storage._nestedType}
  231. set {_uniqueStorage()._nestedType = newValue}
  232. }
  233. var enumType: [Google_Protobuf_EnumDescriptorProto] {
  234. get {return _storage._enumType}
  235. set {_uniqueStorage()._enumType = newValue}
  236. }
  237. var extensionRange: [Google_Protobuf_DescriptorProto.ExtensionRange] {
  238. get {return _storage._extensionRange}
  239. set {_uniqueStorage()._extensionRange = newValue}
  240. }
  241. var oneofDecl: [Google_Protobuf_OneofDescriptorProto] {
  242. get {return _storage._oneofDecl}
  243. set {_uniqueStorage()._oneofDecl = newValue}
  244. }
  245. var options: Google_Protobuf_MessageOptions {
  246. get {return _storage._options ?? Google_Protobuf_MessageOptions()}
  247. set {_uniqueStorage()._options = newValue}
  248. }
  249. /// Returns true if `options` has been explicitly set.
  250. var hasOptions: Bool {return _storage._options != nil}
  251. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  252. mutating func clearOptions() {_uniqueStorage()._options = nil}
  253. var reservedRange: [Google_Protobuf_DescriptorProto.ReservedRange] {
  254. get {return _storage._reservedRange}
  255. set {_uniqueStorage()._reservedRange = newValue}
  256. }
  257. /// Reserved field names, which may not be used by fields in the same message.
  258. /// A given name may only be reserved once.
  259. var reservedName: [String] {
  260. get {return _storage._reservedName}
  261. set {_uniqueStorage()._reservedName = newValue}
  262. }
  263. /// Support for `export` and `local` keywords on enums.
  264. var visibility: Google_Protobuf_SymbolVisibility {
  265. get {return _storage._visibility ?? .visibilityUnset}
  266. set {_uniqueStorage()._visibility = newValue}
  267. }
  268. /// Returns true if `visibility` has been explicitly set.
  269. var hasVisibility: Bool {return _storage._visibility != nil}
  270. /// Clears the value of `visibility`. Subsequent reads from it will return its default value.
  271. mutating func clearVisibility() {_uniqueStorage()._visibility = nil}
  272. var unknownFields = UnknownStorage()
  273. struct ExtensionRange: Sendable {
  274. // SwiftProtobuf.Message conformance is added in an extension below. See the
  275. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  276. // methods supported on all messages.
  277. /// Inclusive.
  278. var start: Int32 {
  279. get {return _start ?? 0}
  280. set {_start = newValue}
  281. }
  282. /// Returns true if `start` has been explicitly set.
  283. var hasStart: Bool {return self._start != nil}
  284. /// Clears the value of `start`. Subsequent reads from it will return its default value.
  285. mutating func clearStart() {self._start = nil}
  286. /// Exclusive.
  287. var end: Int32 {
  288. get {return _end ?? 0}
  289. set {_end = newValue}
  290. }
  291. /// Returns true if `end` has been explicitly set.
  292. var hasEnd: Bool {return self._end != nil}
  293. /// Clears the value of `end`. Subsequent reads from it will return its default value.
  294. mutating func clearEnd() {self._end = nil}
  295. var options: Google_Protobuf_ExtensionRangeOptions {
  296. get {return _options ?? Google_Protobuf_ExtensionRangeOptions()}
  297. set {_options = newValue}
  298. }
  299. /// Returns true if `options` has been explicitly set.
  300. var hasOptions: Bool {return self._options != nil}
  301. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  302. mutating func clearOptions() {self._options = nil}
  303. var unknownFields = UnknownStorage()
  304. init() {}
  305. fileprivate var _start: Int32? = nil
  306. fileprivate var _end: Int32? = nil
  307. fileprivate var _options: Google_Protobuf_ExtensionRangeOptions? = nil
  308. }
  309. /// Range of reserved tag numbers. Reserved tag numbers may not be used by
  310. /// fields or extension ranges in the same message. Reserved ranges may
  311. /// not overlap.
  312. struct ReservedRange: Sendable {
  313. // SwiftProtobuf.Message conformance is added in an extension below. See the
  314. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  315. // methods supported on all messages.
  316. /// Inclusive.
  317. var start: Int32 {
  318. get {return _start ?? 0}
  319. set {_start = newValue}
  320. }
  321. /// Returns true if `start` has been explicitly set.
  322. var hasStart: Bool {return self._start != nil}
  323. /// Clears the value of `start`. Subsequent reads from it will return its default value.
  324. mutating func clearStart() {self._start = nil}
  325. /// Exclusive.
  326. var end: Int32 {
  327. get {return _end ?? 0}
  328. set {_end = newValue}
  329. }
  330. /// Returns true if `end` has been explicitly set.
  331. var hasEnd: Bool {return self._end != nil}
  332. /// Clears the value of `end`. Subsequent reads from it will return its default value.
  333. mutating func clearEnd() {self._end = nil}
  334. var unknownFields = UnknownStorage()
  335. init() {}
  336. fileprivate var _start: Int32? = nil
  337. fileprivate var _end: Int32? = nil
  338. }
  339. init() {}
  340. fileprivate var _storage = _StorageClass.defaultInstance
  341. }
  342. struct Google_Protobuf_ExtensionRangeOptions: ExtensibleMessage, Sendable {
  343. // SwiftProtobuf.Message conformance is added in an extension below. See the
  344. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  345. // methods supported on all messages.
  346. /// The parser stores options it doesn't recognize here. See above.
  347. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  348. /// For external users: DO NOT USE. We are in the process of open sourcing
  349. /// extension declaration and executing internal cleanups before it can be
  350. /// used externally.
  351. var declaration: [Google_Protobuf_ExtensionRangeOptions.Declaration] = []
  352. /// Any features defined in the specific edition.
  353. var features: Google_Protobuf_FeatureSet {
  354. get {return _features ?? Google_Protobuf_FeatureSet()}
  355. set {_features = newValue}
  356. }
  357. /// Returns true if `features` has been explicitly set.
  358. var hasFeatures: Bool {return self._features != nil}
  359. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  360. mutating func clearFeatures() {self._features = nil}
  361. /// The verification state of the range.
  362. /// TODO: flip the default to DECLARATION once all empty ranges
  363. /// are marked as UNVERIFIED.
  364. var verification: Google_Protobuf_ExtensionRangeOptions.VerificationState {
  365. get {return _verification ?? .unverified}
  366. set {_verification = newValue}
  367. }
  368. /// Returns true if `verification` has been explicitly set.
  369. var hasVerification: Bool {return self._verification != nil}
  370. /// Clears the value of `verification`. Subsequent reads from it will return its default value.
  371. mutating func clearVerification() {self._verification = nil}
  372. var unknownFields = UnknownStorage()
  373. /// The verification state of the extension range.
  374. enum VerificationState: Int, Enum, Swift.CaseIterable {
  375. /// All the extensions of the range must be declared.
  376. case declaration = 0
  377. case unverified = 1
  378. init() {
  379. self = .declaration
  380. }
  381. }
  382. struct Declaration: Sendable {
  383. // SwiftProtobuf.Message conformance is added in an extension below. See the
  384. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  385. // methods supported on all messages.
  386. /// The extension number declared within the extension range.
  387. var number: Int32 {
  388. get {return _number ?? 0}
  389. set {_number = newValue}
  390. }
  391. /// Returns true if `number` has been explicitly set.
  392. var hasNumber: Bool {return self._number != nil}
  393. /// Clears the value of `number`. Subsequent reads from it will return its default value.
  394. mutating func clearNumber() {self._number = nil}
  395. /// The fully-qualified name of the extension field. There must be a leading
  396. /// dot in front of the full name.
  397. var fullName: String {
  398. get {return _fullName ?? String()}
  399. set {_fullName = newValue}
  400. }
  401. /// Returns true if `fullName` has been explicitly set.
  402. var hasFullName: Bool {return self._fullName != nil}
  403. /// Clears the value of `fullName`. Subsequent reads from it will return its default value.
  404. mutating func clearFullName() {self._fullName = nil}
  405. /// The fully-qualified type name of the extension field. Unlike
  406. /// Metadata.type, Declaration.type must have a leading dot for messages
  407. /// and enums.
  408. var type: String {
  409. get {return _type ?? String()}
  410. set {_type = newValue}
  411. }
  412. /// Returns true if `type` has been explicitly set.
  413. var hasType: Bool {return self._type != nil}
  414. /// Clears the value of `type`. Subsequent reads from it will return its default value.
  415. mutating func clearType() {self._type = nil}
  416. /// If true, indicates that the number is reserved in the extension range,
  417. /// and any extension field with the number will fail to compile. Set this
  418. /// when a declared extension field is deleted.
  419. var reserved: Bool {
  420. get {return _reserved ?? false}
  421. set {_reserved = newValue}
  422. }
  423. /// Returns true if `reserved` has been explicitly set.
  424. var hasReserved: Bool {return self._reserved != nil}
  425. /// Clears the value of `reserved`. Subsequent reads from it will return its default value.
  426. mutating func clearReserved() {self._reserved = nil}
  427. /// If true, indicates that the extension must be defined as repeated.
  428. /// Otherwise the extension must be defined as optional.
  429. var repeated: Bool {
  430. get {return _repeated ?? false}
  431. set {_repeated = newValue}
  432. }
  433. /// Returns true if `repeated` has been explicitly set.
  434. var hasRepeated: Bool {return self._repeated != nil}
  435. /// Clears the value of `repeated`. Subsequent reads from it will return its default value.
  436. mutating func clearRepeated() {self._repeated = nil}
  437. var unknownFields = UnknownStorage()
  438. init() {}
  439. fileprivate var _number: Int32? = nil
  440. fileprivate var _fullName: String? = nil
  441. fileprivate var _type: String? = nil
  442. fileprivate var _reserved: Bool? = nil
  443. fileprivate var _repeated: Bool? = nil
  444. }
  445. init() {}
  446. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  447. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  448. fileprivate var _verification: Google_Protobuf_ExtensionRangeOptions.VerificationState? = nil
  449. }
  450. /// Describes a field within a message.
  451. struct Google_Protobuf_FieldDescriptorProto: Sendable {
  452. // SwiftProtobuf.Message conformance is added in an extension below. See the
  453. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  454. // methods supported on all messages.
  455. var name: String {
  456. get {return _name ?? String()}
  457. set {_name = newValue}
  458. }
  459. /// Returns true if `name` has been explicitly set.
  460. var hasName: Bool {return self._name != nil}
  461. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  462. mutating func clearName() {self._name = nil}
  463. var number: Int32 {
  464. get {return _number ?? 0}
  465. set {_number = newValue}
  466. }
  467. /// Returns true if `number` has been explicitly set.
  468. var hasNumber: Bool {return self._number != nil}
  469. /// Clears the value of `number`. Subsequent reads from it will return its default value.
  470. mutating func clearNumber() {self._number = nil}
  471. var label: Google_Protobuf_FieldDescriptorProto.Label {
  472. get {return _label ?? .optional}
  473. set {_label = newValue}
  474. }
  475. /// Returns true if `label` has been explicitly set.
  476. var hasLabel: Bool {return self._label != nil}
  477. /// Clears the value of `label`. Subsequent reads from it will return its default value.
  478. mutating func clearLabel() {self._label = nil}
  479. /// If type_name is set, this need not be set. If both this and type_name
  480. /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
  481. var type: Google_Protobuf_FieldDescriptorProto.TypeEnum {
  482. get {return _type ?? .double}
  483. set {_type = newValue}
  484. }
  485. /// Returns true if `type` has been explicitly set.
  486. var hasType: Bool {return self._type != nil}
  487. /// Clears the value of `type`. Subsequent reads from it will return its default value.
  488. mutating func clearType() {self._type = nil}
  489. /// For message and enum types, this is the name of the type. If the name
  490. /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
  491. /// rules are used to find the type (i.e. first the nested types within this
  492. /// message are searched, then within the parent, on up to the root
  493. /// namespace).
  494. var typeName: String {
  495. get {return _typeName ?? String()}
  496. set {_typeName = newValue}
  497. }
  498. /// Returns true if `typeName` has been explicitly set.
  499. var hasTypeName: Bool {return self._typeName != nil}
  500. /// Clears the value of `typeName`. Subsequent reads from it will return its default value.
  501. mutating func clearTypeName() {self._typeName = nil}
  502. /// For extensions, this is the name of the type being extended. It is
  503. /// resolved in the same manner as type_name.
  504. var extendee: String {
  505. get {return _extendee ?? String()}
  506. set {_extendee = newValue}
  507. }
  508. /// Returns true if `extendee` has been explicitly set.
  509. var hasExtendee: Bool {return self._extendee != nil}
  510. /// Clears the value of `extendee`. Subsequent reads from it will return its default value.
  511. mutating func clearExtendee() {self._extendee = nil}
  512. /// For numeric types, contains the original text representation of the value.
  513. /// For booleans, "true" or "false".
  514. /// For strings, contains the default text contents (not escaped in any way).
  515. /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
  516. var defaultValue: String {
  517. get {return _defaultValue ?? String()}
  518. set {_defaultValue = newValue}
  519. }
  520. /// Returns true if `defaultValue` has been explicitly set.
  521. var hasDefaultValue: Bool {return self._defaultValue != nil}
  522. /// Clears the value of `defaultValue`. Subsequent reads from it will return its default value.
  523. mutating func clearDefaultValue() {self._defaultValue = nil}
  524. /// If set, gives the index of a oneof in the containing type's oneof_decl
  525. /// list. This field is a member of that oneof.
  526. var oneofIndex: Int32 {
  527. get {return _oneofIndex ?? 0}
  528. set {_oneofIndex = newValue}
  529. }
  530. /// Returns true if `oneofIndex` has been explicitly set.
  531. var hasOneofIndex: Bool {return self._oneofIndex != nil}
  532. /// Clears the value of `oneofIndex`. Subsequent reads from it will return its default value.
  533. mutating func clearOneofIndex() {self._oneofIndex = nil}
  534. /// JSON name of this field. The value is set by protocol compiler. If the
  535. /// user has set a "json_name" option on this field, that option's value
  536. /// will be used. Otherwise, it's deduced from the field's name by converting
  537. /// it to camelCase.
  538. var jsonName: String {
  539. get {return _jsonName ?? String()}
  540. set {_jsonName = newValue}
  541. }
  542. /// Returns true if `jsonName` has been explicitly set.
  543. var hasJsonName: Bool {return self._jsonName != nil}
  544. /// Clears the value of `jsonName`. Subsequent reads from it will return its default value.
  545. mutating func clearJsonName() {self._jsonName = nil}
  546. var options: Google_Protobuf_FieldOptions {
  547. get {return _options ?? Google_Protobuf_FieldOptions()}
  548. set {_options = newValue}
  549. }
  550. /// Returns true if `options` has been explicitly set.
  551. var hasOptions: Bool {return self._options != nil}
  552. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  553. mutating func clearOptions() {self._options = nil}
  554. /// If true, this is a proto3 "optional". When a proto3 field is optional, it
  555. /// tracks presence regardless of field type.
  556. ///
  557. /// When proto3_optional is true, this field must belong to a oneof to signal
  558. /// to old proto3 clients that presence is tracked for this field. This oneof
  559. /// is known as a "synthetic" oneof, and this field must be its sole member
  560. /// (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
  561. /// exist in the descriptor only, and do not generate any API. Synthetic oneofs
  562. /// must be ordered after all "real" oneofs.
  563. ///
  564. /// For message fields, proto3_optional doesn't create any semantic change,
  565. /// since non-repeated message fields always track presence. However it still
  566. /// indicates the semantic detail of whether the user wrote "optional" or not.
  567. /// This can be useful for round-tripping the .proto file. For consistency we
  568. /// give message fields a synthetic oneof also, even though it is not required
  569. /// to track presence. This is especially important because the parser can't
  570. /// tell if a field is a message or an enum, so it must always create a
  571. /// synthetic oneof.
  572. ///
  573. /// Proto2 optional fields do not set this flag, because they already indicate
  574. /// optional with `LABEL_OPTIONAL`.
  575. var proto3Optional: Bool {
  576. get {return _proto3Optional ?? false}
  577. set {_proto3Optional = newValue}
  578. }
  579. /// Returns true if `proto3Optional` has been explicitly set.
  580. var hasProto3Optional: Bool {return self._proto3Optional != nil}
  581. /// Clears the value of `proto3Optional`. Subsequent reads from it will return its default value.
  582. mutating func clearProto3Optional() {self._proto3Optional = nil}
  583. var unknownFields = UnknownStorage()
  584. enum TypeEnum: Int, Enum, Swift.CaseIterable {
  585. /// 0 is reserved for errors.
  586. /// Order is weird for historical reasons.
  587. case double = 1
  588. case float = 2
  589. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
  590. /// negative values are likely.
  591. case int64 = 3
  592. case uint64 = 4
  593. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
  594. /// negative values are likely.
  595. case int32 = 5
  596. case fixed64 = 6
  597. case fixed32 = 7
  598. case bool = 8
  599. case string = 9
  600. /// Tag-delimited aggregate.
  601. /// Group type is deprecated and not supported after google.protobuf. However, Proto3
  602. /// implementations should still be able to parse the group wire format and
  603. /// treat group fields as unknown fields. In Editions, the group wire format
  604. /// can be enabled via the `message_encoding` feature.
  605. case group = 10
  606. /// Length-delimited aggregate.
  607. case message = 11
  608. /// New in version 2.
  609. case bytes = 12
  610. case uint32 = 13
  611. case `enum` = 14
  612. case sfixed32 = 15
  613. case sfixed64 = 16
  614. /// Uses ZigZag encoding.
  615. case sint32 = 17
  616. /// Uses ZigZag encoding.
  617. case sint64 = 18
  618. init() {
  619. self = .double
  620. }
  621. }
  622. enum Label: Int, Enum, Swift.CaseIterable {
  623. /// 0 is reserved for errors
  624. case `optional` = 1
  625. case repeated = 3
  626. /// The required label is only allowed in google.protobuf. In proto3 and Editions
  627. /// it's explicitly prohibited. In Editions, the `field_presence` feature
  628. /// can be used to get this behavior.
  629. case `required` = 2
  630. init() {
  631. self = .optional
  632. }
  633. }
  634. init() {}
  635. fileprivate var _name: String? = nil
  636. fileprivate var _number: Int32? = nil
  637. fileprivate var _label: Google_Protobuf_FieldDescriptorProto.Label? = nil
  638. fileprivate var _type: Google_Protobuf_FieldDescriptorProto.TypeEnum? = nil
  639. fileprivate var _typeName: String? = nil
  640. fileprivate var _extendee: String? = nil
  641. fileprivate var _defaultValue: String? = nil
  642. fileprivate var _oneofIndex: Int32? = nil
  643. fileprivate var _jsonName: String? = nil
  644. fileprivate var _options: Google_Protobuf_FieldOptions? = nil
  645. fileprivate var _proto3Optional: Bool? = nil
  646. }
  647. /// Describes a oneof.
  648. struct Google_Protobuf_OneofDescriptorProto: Sendable {
  649. // SwiftProtobuf.Message conformance is added in an extension below. See the
  650. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  651. // methods supported on all messages.
  652. var name: String {
  653. get {return _name ?? String()}
  654. set {_name = newValue}
  655. }
  656. /// Returns true if `name` has been explicitly set.
  657. var hasName: Bool {return self._name != nil}
  658. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  659. mutating func clearName() {self._name = nil}
  660. var options: Google_Protobuf_OneofOptions {
  661. get {return _options ?? Google_Protobuf_OneofOptions()}
  662. set {_options = newValue}
  663. }
  664. /// Returns true if `options` has been explicitly set.
  665. var hasOptions: Bool {return self._options != nil}
  666. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  667. mutating func clearOptions() {self._options = nil}
  668. var unknownFields = UnknownStorage()
  669. init() {}
  670. fileprivate var _name: String? = nil
  671. fileprivate var _options: Google_Protobuf_OneofOptions? = nil
  672. }
  673. /// Describes an enum type.
  674. struct Google_Protobuf_EnumDescriptorProto: @unchecked Sendable {
  675. // SwiftProtobuf.Message conformance is added in an extension below. See the
  676. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  677. // methods supported on all messages.
  678. var name: String {
  679. get {return _storage._name ?? String()}
  680. set {_uniqueStorage()._name = newValue}
  681. }
  682. /// Returns true if `name` has been explicitly set.
  683. var hasName: Bool {return _storage._name != nil}
  684. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  685. mutating func clearName() {_uniqueStorage()._name = nil}
  686. var value: [Google_Protobuf_EnumValueDescriptorProto] {
  687. get {return _storage._value}
  688. set {_uniqueStorage()._value = newValue}
  689. }
  690. var options: Google_Protobuf_EnumOptions {
  691. get {return _storage._options ?? Google_Protobuf_EnumOptions()}
  692. set {_uniqueStorage()._options = newValue}
  693. }
  694. /// Returns true if `options` has been explicitly set.
  695. var hasOptions: Bool {return _storage._options != nil}
  696. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  697. mutating func clearOptions() {_uniqueStorage()._options = nil}
  698. /// Range of reserved numeric values. Reserved numeric values may not be used
  699. /// by enum values in the same enum declaration. Reserved ranges may not
  700. /// overlap.
  701. var reservedRange: [Google_Protobuf_EnumDescriptorProto.EnumReservedRange] {
  702. get {return _storage._reservedRange}
  703. set {_uniqueStorage()._reservedRange = newValue}
  704. }
  705. /// Reserved enum value names, which may not be reused. A given name may only
  706. /// be reserved once.
  707. var reservedName: [String] {
  708. get {return _storage._reservedName}
  709. set {_uniqueStorage()._reservedName = newValue}
  710. }
  711. /// Support for `export` and `local` keywords on enums.
  712. var visibility: Google_Protobuf_SymbolVisibility {
  713. get {return _storage._visibility ?? .visibilityUnset}
  714. set {_uniqueStorage()._visibility = newValue}
  715. }
  716. /// Returns true if `visibility` has been explicitly set.
  717. var hasVisibility: Bool {return _storage._visibility != nil}
  718. /// Clears the value of `visibility`. Subsequent reads from it will return its default value.
  719. mutating func clearVisibility() {_uniqueStorage()._visibility = nil}
  720. var unknownFields = UnknownStorage()
  721. /// Range of reserved numeric values. Reserved values may not be used by
  722. /// entries in the same enum. Reserved ranges may not overlap.
  723. ///
  724. /// Note that this is distinct from DescriptorProto.ReservedRange in that it
  725. /// is inclusive such that it can appropriately represent the entire int32
  726. /// domain.
  727. struct EnumReservedRange: Sendable {
  728. // SwiftProtobuf.Message conformance is added in an extension below. See the
  729. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  730. // methods supported on all messages.
  731. /// Inclusive.
  732. var start: Int32 {
  733. get {return _start ?? 0}
  734. set {_start = newValue}
  735. }
  736. /// Returns true if `start` has been explicitly set.
  737. var hasStart: Bool {return self._start != nil}
  738. /// Clears the value of `start`. Subsequent reads from it will return its default value.
  739. mutating func clearStart() {self._start = nil}
  740. /// Inclusive.
  741. var end: Int32 {
  742. get {return _end ?? 0}
  743. set {_end = newValue}
  744. }
  745. /// Returns true if `end` has been explicitly set.
  746. var hasEnd: Bool {return self._end != nil}
  747. /// Clears the value of `end`. Subsequent reads from it will return its default value.
  748. mutating func clearEnd() {self._end = nil}
  749. var unknownFields = UnknownStorage()
  750. init() {}
  751. fileprivate var _start: Int32? = nil
  752. fileprivate var _end: Int32? = nil
  753. }
  754. init() {}
  755. fileprivate var _storage = _StorageClass.defaultInstance
  756. }
  757. /// Describes a value within an enum.
  758. struct Google_Protobuf_EnumValueDescriptorProto: @unchecked Sendable {
  759. // SwiftProtobuf.Message conformance is added in an extension below. See the
  760. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  761. // methods supported on all messages.
  762. var name: String {
  763. get {return _storage._name ?? String()}
  764. set {_uniqueStorage()._name = newValue}
  765. }
  766. /// Returns true if `name` has been explicitly set.
  767. var hasName: Bool {return _storage._name != nil}
  768. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  769. mutating func clearName() {_uniqueStorage()._name = nil}
  770. var number: Int32 {
  771. get {return _storage._number ?? 0}
  772. set {_uniqueStorage()._number = newValue}
  773. }
  774. /// Returns true if `number` has been explicitly set.
  775. var hasNumber: Bool {return _storage._number != nil}
  776. /// Clears the value of `number`. Subsequent reads from it will return its default value.
  777. mutating func clearNumber() {_uniqueStorage()._number = nil}
  778. var options: Google_Protobuf_EnumValueOptions {
  779. get {return _storage._options ?? Google_Protobuf_EnumValueOptions()}
  780. set {_uniqueStorage()._options = newValue}
  781. }
  782. /// Returns true if `options` has been explicitly set.
  783. var hasOptions: Bool {return _storage._options != nil}
  784. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  785. mutating func clearOptions() {_uniqueStorage()._options = nil}
  786. var unknownFields = UnknownStorage()
  787. init() {}
  788. fileprivate var _storage = _StorageClass.defaultInstance
  789. }
  790. /// Describes a service.
  791. struct Google_Protobuf_ServiceDescriptorProto: Sendable {
  792. // SwiftProtobuf.Message conformance is added in an extension below. See the
  793. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  794. // methods supported on all messages.
  795. var name: String {
  796. get {return _name ?? String()}
  797. set {_name = newValue}
  798. }
  799. /// Returns true if `name` has been explicitly set.
  800. var hasName: Bool {return self._name != nil}
  801. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  802. mutating func clearName() {self._name = nil}
  803. var method: [Google_Protobuf_MethodDescriptorProto] = []
  804. var options: Google_Protobuf_ServiceOptions {
  805. get {return _options ?? Google_Protobuf_ServiceOptions()}
  806. set {_options = newValue}
  807. }
  808. /// Returns true if `options` has been explicitly set.
  809. var hasOptions: Bool {return self._options != nil}
  810. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  811. mutating func clearOptions() {self._options = nil}
  812. var unknownFields = UnknownStorage()
  813. init() {}
  814. fileprivate var _name: String? = nil
  815. fileprivate var _options: Google_Protobuf_ServiceOptions? = nil
  816. }
  817. /// Describes a method of a service.
  818. struct Google_Protobuf_MethodDescriptorProto: Sendable {
  819. // SwiftProtobuf.Message conformance is added in an extension below. See the
  820. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  821. // methods supported on all messages.
  822. var name: String {
  823. get {return _name ?? String()}
  824. set {_name = newValue}
  825. }
  826. /// Returns true if `name` has been explicitly set.
  827. var hasName: Bool {return self._name != nil}
  828. /// Clears the value of `name`. Subsequent reads from it will return its default value.
  829. mutating func clearName() {self._name = nil}
  830. /// Input and output type names. These are resolved in the same way as
  831. /// FieldDescriptorProto.type_name, but must refer to a message type.
  832. var inputType: String {
  833. get {return _inputType ?? String()}
  834. set {_inputType = newValue}
  835. }
  836. /// Returns true if `inputType` has been explicitly set.
  837. var hasInputType: Bool {return self._inputType != nil}
  838. /// Clears the value of `inputType`. Subsequent reads from it will return its default value.
  839. mutating func clearInputType() {self._inputType = nil}
  840. var outputType: String {
  841. get {return _outputType ?? String()}
  842. set {_outputType = newValue}
  843. }
  844. /// Returns true if `outputType` has been explicitly set.
  845. var hasOutputType: Bool {return self._outputType != nil}
  846. /// Clears the value of `outputType`. Subsequent reads from it will return its default value.
  847. mutating func clearOutputType() {self._outputType = nil}
  848. var options: Google_Protobuf_MethodOptions {
  849. get {return _options ?? Google_Protobuf_MethodOptions()}
  850. set {_options = newValue}
  851. }
  852. /// Returns true if `options` has been explicitly set.
  853. var hasOptions: Bool {return self._options != nil}
  854. /// Clears the value of `options`. Subsequent reads from it will return its default value.
  855. mutating func clearOptions() {self._options = nil}
  856. /// Identifies if client streams multiple client messages
  857. var clientStreaming: Bool {
  858. get {return _clientStreaming ?? false}
  859. set {_clientStreaming = newValue}
  860. }
  861. /// Returns true if `clientStreaming` has been explicitly set.
  862. var hasClientStreaming: Bool {return self._clientStreaming != nil}
  863. /// Clears the value of `clientStreaming`. Subsequent reads from it will return its default value.
  864. mutating func clearClientStreaming() {self._clientStreaming = nil}
  865. /// Identifies if server streams multiple server messages
  866. var serverStreaming: Bool {
  867. get {return _serverStreaming ?? false}
  868. set {_serverStreaming = newValue}
  869. }
  870. /// Returns true if `serverStreaming` has been explicitly set.
  871. var hasServerStreaming: Bool {return self._serverStreaming != nil}
  872. /// Clears the value of `serverStreaming`. Subsequent reads from it will return its default value.
  873. mutating func clearServerStreaming() {self._serverStreaming = nil}
  874. var unknownFields = UnknownStorage()
  875. init() {}
  876. fileprivate var _name: String? = nil
  877. fileprivate var _inputType: String? = nil
  878. fileprivate var _outputType: String? = nil
  879. fileprivate var _options: Google_Protobuf_MethodOptions? = nil
  880. fileprivate var _clientStreaming: Bool? = nil
  881. fileprivate var _serverStreaming: Bool? = nil
  882. }
  883. struct Google_Protobuf_FileOptions: ExtensibleMessage, @unchecked Sendable {
  884. // SwiftProtobuf.Message conformance is added in an extension below. See the
  885. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  886. // methods supported on all messages.
  887. /// Sets the Java package where classes generated from this .proto will be
  888. /// placed. By default, the proto package is used, but this is often
  889. /// inappropriate because proto packages do not normally start with backwards
  890. /// domain names.
  891. var javaPackage: String {
  892. get {return _storage._javaPackage ?? String()}
  893. set {_uniqueStorage()._javaPackage = newValue}
  894. }
  895. /// Returns true if `javaPackage` has been explicitly set.
  896. var hasJavaPackage: Bool {return _storage._javaPackage != nil}
  897. /// Clears the value of `javaPackage`. Subsequent reads from it will return its default value.
  898. mutating func clearJavaPackage() {_uniqueStorage()._javaPackage = nil}
  899. /// Controls the name of the wrapper Java class generated for the .proto file.
  900. /// That class will always contain the .proto file's getDescriptor() method as
  901. /// well as any top-level extensions defined in the .proto file.
  902. /// If java_multiple_files is disabled, then all the other classes from the
  903. /// .proto file will be nested inside the single wrapper outer class.
  904. var javaOuterClassname: String {
  905. get {return _storage._javaOuterClassname ?? String()}
  906. set {_uniqueStorage()._javaOuterClassname = newValue}
  907. }
  908. /// Returns true if `javaOuterClassname` has been explicitly set.
  909. var hasJavaOuterClassname: Bool {return _storage._javaOuterClassname != nil}
  910. /// Clears the value of `javaOuterClassname`. Subsequent reads from it will return its default value.
  911. mutating func clearJavaOuterClassname() {_uniqueStorage()._javaOuterClassname = nil}
  912. /// If enabled, then the Java code generator will generate a separate .java
  913. /// file for each top-level message, enum, and service defined in the .proto
  914. /// file. Thus, these types will *not* be nested inside the wrapper class
  915. /// named by java_outer_classname. However, the wrapper class will still be
  916. /// generated to contain the file's getDescriptor() method as well as any
  917. /// top-level extensions defined in the file.
  918. var javaMultipleFiles: Bool {
  919. get {return _storage._javaMultipleFiles ?? false}
  920. set {_uniqueStorage()._javaMultipleFiles = newValue}
  921. }
  922. /// Returns true if `javaMultipleFiles` has been explicitly set.
  923. var hasJavaMultipleFiles: Bool {return _storage._javaMultipleFiles != nil}
  924. /// Clears the value of `javaMultipleFiles`. Subsequent reads from it will return its default value.
  925. mutating func clearJavaMultipleFiles() {_uniqueStorage()._javaMultipleFiles = nil}
  926. /// This option does nothing.
  927. ///
  928. /// NOTE: This field was marked as deprecated in the .proto file.
  929. var javaGenerateEqualsAndHash: Bool {
  930. get {return _storage._javaGenerateEqualsAndHash ?? false}
  931. set {_uniqueStorage()._javaGenerateEqualsAndHash = newValue}
  932. }
  933. /// Returns true if `javaGenerateEqualsAndHash` has been explicitly set.
  934. var hasJavaGenerateEqualsAndHash: Bool {return _storage._javaGenerateEqualsAndHash != nil}
  935. /// Clears the value of `javaGenerateEqualsAndHash`. Subsequent reads from it will return its default value.
  936. mutating func clearJavaGenerateEqualsAndHash() {_uniqueStorage()._javaGenerateEqualsAndHash = nil}
  937. /// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
  938. /// which will throw an exception if invalid UTF-8 is parsed from the wire or
  939. /// assigned to a string field.
  940. ///
  941. /// TODO: clarify exactly what kinds of field types this option
  942. /// applies to, and update these docs accordingly.
  943. ///
  944. /// Proto3 files already perform these checks. Setting the option explicitly to
  945. /// false has no effect: it cannot be used to opt proto3 files out of UTF-8
  946. /// checks.
  947. var javaStringCheckUtf8: Bool {
  948. get {return _storage._javaStringCheckUtf8 ?? false}
  949. set {_uniqueStorage()._javaStringCheckUtf8 = newValue}
  950. }
  951. /// Returns true if `javaStringCheckUtf8` has been explicitly set.
  952. var hasJavaStringCheckUtf8: Bool {return _storage._javaStringCheckUtf8 != nil}
  953. /// Clears the value of `javaStringCheckUtf8`. Subsequent reads from it will return its default value.
  954. mutating func clearJavaStringCheckUtf8() {_uniqueStorage()._javaStringCheckUtf8 = nil}
  955. var optimizeFor: Google_Protobuf_FileOptions.OptimizeMode {
  956. get {return _storage._optimizeFor ?? .speed}
  957. set {_uniqueStorage()._optimizeFor = newValue}
  958. }
  959. /// Returns true if `optimizeFor` has been explicitly set.
  960. var hasOptimizeFor: Bool {return _storage._optimizeFor != nil}
  961. /// Clears the value of `optimizeFor`. Subsequent reads from it will return its default value.
  962. mutating func clearOptimizeFor() {_uniqueStorage()._optimizeFor = nil}
  963. /// Sets the Go package where structs generated from this .proto will be
  964. /// placed. If omitted, the Go package will be derived from the following:
  965. /// - The basename of the package import path, if provided.
  966. /// - Otherwise, the package statement in the .proto file, if present.
  967. /// - Otherwise, the basename of the .proto file, without extension.
  968. var goPackage: String {
  969. get {return _storage._goPackage ?? String()}
  970. set {_uniqueStorage()._goPackage = newValue}
  971. }
  972. /// Returns true if `goPackage` has been explicitly set.
  973. var hasGoPackage: Bool {return _storage._goPackage != nil}
  974. /// Clears the value of `goPackage`. Subsequent reads from it will return its default value.
  975. mutating func clearGoPackage() {_uniqueStorage()._goPackage = nil}
  976. /// Should generic services be generated in each language? "Generic" services
  977. /// are not specific to any particular RPC system. They are generated by the
  978. /// main code generators in each language (without additional plugins).
  979. /// Generic services were the only kind of service generation supported by
  980. /// early versions of google.protobuf.
  981. ///
  982. /// Generic services are now considered deprecated in favor of using plugins
  983. /// that generate code specific to your particular RPC system. Therefore,
  984. /// these default to false. Old code which depends on generic services should
  985. /// explicitly set them to true.
  986. var ccGenericServices: Bool {
  987. get {return _storage._ccGenericServices ?? false}
  988. set {_uniqueStorage()._ccGenericServices = newValue}
  989. }
  990. /// Returns true if `ccGenericServices` has been explicitly set.
  991. var hasCcGenericServices: Bool {return _storage._ccGenericServices != nil}
  992. /// Clears the value of `ccGenericServices`. Subsequent reads from it will return its default value.
  993. mutating func clearCcGenericServices() {_uniqueStorage()._ccGenericServices = nil}
  994. var javaGenericServices: Bool {
  995. get {return _storage._javaGenericServices ?? false}
  996. set {_uniqueStorage()._javaGenericServices = newValue}
  997. }
  998. /// Returns true if `javaGenericServices` has been explicitly set.
  999. var hasJavaGenericServices: Bool {return _storage._javaGenericServices != nil}
  1000. /// Clears the value of `javaGenericServices`. Subsequent reads from it will return its default value.
  1001. mutating func clearJavaGenericServices() {_uniqueStorage()._javaGenericServices = nil}
  1002. var pyGenericServices: Bool {
  1003. get {return _storage._pyGenericServices ?? false}
  1004. set {_uniqueStorage()._pyGenericServices = newValue}
  1005. }
  1006. /// Returns true if `pyGenericServices` has been explicitly set.
  1007. var hasPyGenericServices: Bool {return _storage._pyGenericServices != nil}
  1008. /// Clears the value of `pyGenericServices`. Subsequent reads from it will return its default value.
  1009. mutating func clearPyGenericServices() {_uniqueStorage()._pyGenericServices = nil}
  1010. /// Is this file deprecated?
  1011. /// Depending on the target platform, this can emit Deprecated annotations
  1012. /// for everything in the file, or it will be completely ignored; in the very
  1013. /// least, this is a formalization for deprecating files.
  1014. var deprecated: Bool {
  1015. get {return _storage._deprecated ?? false}
  1016. set {_uniqueStorage()._deprecated = newValue}
  1017. }
  1018. /// Returns true if `deprecated` has been explicitly set.
  1019. var hasDeprecated: Bool {return _storage._deprecated != nil}
  1020. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1021. mutating func clearDeprecated() {_uniqueStorage()._deprecated = nil}
  1022. /// Enables the use of arenas for the proto messages in this file. This applies
  1023. /// only to generated classes for C++.
  1024. var ccEnableArenas: Bool {
  1025. get {return _storage._ccEnableArenas ?? true}
  1026. set {_uniqueStorage()._ccEnableArenas = newValue}
  1027. }
  1028. /// Returns true if `ccEnableArenas` has been explicitly set.
  1029. var hasCcEnableArenas: Bool {return _storage._ccEnableArenas != nil}
  1030. /// Clears the value of `ccEnableArenas`. Subsequent reads from it will return its default value.
  1031. mutating func clearCcEnableArenas() {_uniqueStorage()._ccEnableArenas = nil}
  1032. /// Sets the objective c class prefix which is prepended to all objective c
  1033. /// generated classes from this .proto. There is no default.
  1034. var objcClassPrefix: String {
  1035. get {return _storage._objcClassPrefix ?? String()}
  1036. set {_uniqueStorage()._objcClassPrefix = newValue}
  1037. }
  1038. /// Returns true if `objcClassPrefix` has been explicitly set.
  1039. var hasObjcClassPrefix: Bool {return _storage._objcClassPrefix != nil}
  1040. /// Clears the value of `objcClassPrefix`. Subsequent reads from it will return its default value.
  1041. mutating func clearObjcClassPrefix() {_uniqueStorage()._objcClassPrefix = nil}
  1042. /// Namespace for generated classes; defaults to the package.
  1043. var csharpNamespace: String {
  1044. get {return _storage._csharpNamespace ?? String()}
  1045. set {_uniqueStorage()._csharpNamespace = newValue}
  1046. }
  1047. /// Returns true if `csharpNamespace` has been explicitly set.
  1048. var hasCsharpNamespace: Bool {return _storage._csharpNamespace != nil}
  1049. /// Clears the value of `csharpNamespace`. Subsequent reads from it will return its default value.
  1050. mutating func clearCsharpNamespace() {_uniqueStorage()._csharpNamespace = nil}
  1051. /// By default Swift generators will take the proto package and CamelCase it
  1052. /// replacing '.' with underscore and use that to prefix the types/symbols
  1053. /// defined. When this options is provided, they will use this value instead
  1054. /// to prefix the types/symbols defined.
  1055. var swiftPrefix: String {
  1056. get {return _storage._swiftPrefix ?? String()}
  1057. set {_uniqueStorage()._swiftPrefix = newValue}
  1058. }
  1059. /// Returns true if `swiftPrefix` has been explicitly set.
  1060. var hasSwiftPrefix: Bool {return _storage._swiftPrefix != nil}
  1061. /// Clears the value of `swiftPrefix`. Subsequent reads from it will return its default value.
  1062. mutating func clearSwiftPrefix() {_uniqueStorage()._swiftPrefix = nil}
  1063. /// Sets the php class prefix which is prepended to all php generated classes
  1064. /// from this .proto. Default is empty.
  1065. var phpClassPrefix: String {
  1066. get {return _storage._phpClassPrefix ?? String()}
  1067. set {_uniqueStorage()._phpClassPrefix = newValue}
  1068. }
  1069. /// Returns true if `phpClassPrefix` has been explicitly set.
  1070. var hasPhpClassPrefix: Bool {return _storage._phpClassPrefix != nil}
  1071. /// Clears the value of `phpClassPrefix`. Subsequent reads from it will return its default value.
  1072. mutating func clearPhpClassPrefix() {_uniqueStorage()._phpClassPrefix = nil}
  1073. /// Use this option to change the namespace of php generated classes. Default
  1074. /// is empty. When this option is empty, the package name will be used for
  1075. /// determining the namespace.
  1076. var phpNamespace: String {
  1077. get {return _storage._phpNamespace ?? String()}
  1078. set {_uniqueStorage()._phpNamespace = newValue}
  1079. }
  1080. /// Returns true if `phpNamespace` has been explicitly set.
  1081. var hasPhpNamespace: Bool {return _storage._phpNamespace != nil}
  1082. /// Clears the value of `phpNamespace`. Subsequent reads from it will return its default value.
  1083. mutating func clearPhpNamespace() {_uniqueStorage()._phpNamespace = nil}
  1084. /// Use this option to change the namespace of php generated metadata classes.
  1085. /// Default is empty. When this option is empty, the proto file name will be
  1086. /// used for determining the namespace.
  1087. var phpMetadataNamespace: String {
  1088. get {return _storage._phpMetadataNamespace ?? String()}
  1089. set {_uniqueStorage()._phpMetadataNamespace = newValue}
  1090. }
  1091. /// Returns true if `phpMetadataNamespace` has been explicitly set.
  1092. var hasPhpMetadataNamespace: Bool {return _storage._phpMetadataNamespace != nil}
  1093. /// Clears the value of `phpMetadataNamespace`. Subsequent reads from it will return its default value.
  1094. mutating func clearPhpMetadataNamespace() {_uniqueStorage()._phpMetadataNamespace = nil}
  1095. /// Use this option to change the package of ruby generated classes. Default
  1096. /// is empty. When this option is not set, the package name will be used for
  1097. /// determining the ruby package.
  1098. var rubyPackage: String {
  1099. get {return _storage._rubyPackage ?? String()}
  1100. set {_uniqueStorage()._rubyPackage = newValue}
  1101. }
  1102. /// Returns true if `rubyPackage` has been explicitly set.
  1103. var hasRubyPackage: Bool {return _storage._rubyPackage != nil}
  1104. /// Clears the value of `rubyPackage`. Subsequent reads from it will return its default value.
  1105. mutating func clearRubyPackage() {_uniqueStorage()._rubyPackage = nil}
  1106. /// Any features defined in the specific edition.
  1107. /// WARNING: This field should only be used by protobuf plugins or special
  1108. /// cases like the proto compiler. Other uses are discouraged and
  1109. /// developers should rely on the protoreflect APIs for their client language.
  1110. var features: Google_Protobuf_FeatureSet {
  1111. get {return _storage._features ?? Google_Protobuf_FeatureSet()}
  1112. set {_uniqueStorage()._features = newValue}
  1113. }
  1114. /// Returns true if `features` has been explicitly set.
  1115. var hasFeatures: Bool {return _storage._features != nil}
  1116. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1117. mutating func clearFeatures() {_uniqueStorage()._features = nil}
  1118. /// The parser stores options it doesn't recognize here.
  1119. /// See the documentation for the "Options" section above.
  1120. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] {
  1121. get {return _storage._uninterpretedOption}
  1122. set {_uniqueStorage()._uninterpretedOption = newValue}
  1123. }
  1124. var unknownFields = UnknownStorage()
  1125. /// Generated classes can be optimized for speed or code size.
  1126. enum OptimizeMode: Int, Enum, Swift.CaseIterable {
  1127. /// Generate complete code for parsing, serialization,
  1128. case speed = 1
  1129. /// etc.
  1130. case codeSize = 2
  1131. /// Generate code using MessageLite and the lite runtime.
  1132. case liteRuntime = 3
  1133. init() {
  1134. self = .speed
  1135. }
  1136. }
  1137. init() {}
  1138. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1139. fileprivate var _storage = _StorageClass.defaultInstance
  1140. }
  1141. struct Google_Protobuf_MessageOptions: ExtensibleMessage, Sendable {
  1142. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1143. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1144. // methods supported on all messages.
  1145. /// Set true to use the old proto1 MessageSet wire format for extensions.
  1146. /// This is provided for backwards-compatibility with the MessageSet wire
  1147. /// format. You should not use this for any other reason: It's less
  1148. /// efficient, has fewer features, and is more complicated.
  1149. ///
  1150. /// The message must be defined exactly as follows:
  1151. /// message Foo {
  1152. /// option message_set_wire_format = true;
  1153. /// extensions 4 to max;
  1154. /// }
  1155. /// Note that the message cannot have any defined fields; MessageSets only
  1156. /// have extensions.
  1157. ///
  1158. /// All extensions of your type must be singular messages; e.g. they cannot
  1159. /// be int32s, enums, or repeated messages.
  1160. ///
  1161. /// Because this is an option, the above two restrictions are not enforced by
  1162. /// the protocol compiler.
  1163. var messageSetWireFormat: Bool {
  1164. get {return _messageSetWireFormat ?? false}
  1165. set {_messageSetWireFormat = newValue}
  1166. }
  1167. /// Returns true if `messageSetWireFormat` has been explicitly set.
  1168. var hasMessageSetWireFormat: Bool {return self._messageSetWireFormat != nil}
  1169. /// Clears the value of `messageSetWireFormat`. Subsequent reads from it will return its default value.
  1170. mutating func clearMessageSetWireFormat() {self._messageSetWireFormat = nil}
  1171. /// Disables the generation of the standard "descriptor()" accessor, which can
  1172. /// conflict with a field of the same name. This is meant to make migration
  1173. /// from proto1 easier; new code should avoid fields named "descriptor".
  1174. var noStandardDescriptorAccessor: Bool {
  1175. get {return _noStandardDescriptorAccessor ?? false}
  1176. set {_noStandardDescriptorAccessor = newValue}
  1177. }
  1178. /// Returns true if `noStandardDescriptorAccessor` has been explicitly set.
  1179. var hasNoStandardDescriptorAccessor: Bool {return self._noStandardDescriptorAccessor != nil}
  1180. /// Clears the value of `noStandardDescriptorAccessor`. Subsequent reads from it will return its default value.
  1181. mutating func clearNoStandardDescriptorAccessor() {self._noStandardDescriptorAccessor = nil}
  1182. /// Is this message deprecated?
  1183. /// Depending on the target platform, this can emit Deprecated annotations
  1184. /// for the message, or it will be completely ignored; in the very least,
  1185. /// this is a formalization for deprecating messages.
  1186. var deprecated: Bool {
  1187. get {return _deprecated ?? false}
  1188. set {_deprecated = newValue}
  1189. }
  1190. /// Returns true if `deprecated` has been explicitly set.
  1191. var hasDeprecated: Bool {return self._deprecated != nil}
  1192. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1193. mutating func clearDeprecated() {self._deprecated = nil}
  1194. /// Whether the message is an automatically generated map entry type for the
  1195. /// maps field.
  1196. ///
  1197. /// For maps fields:
  1198. /// map<KeyType, ValueType> map_field = 1;
  1199. /// The parsed descriptor looks like:
  1200. /// message MapFieldEntry {
  1201. /// option map_entry = true;
  1202. /// optional KeyType key = 1;
  1203. /// optional ValueType value = 2;
  1204. /// }
  1205. /// repeated MapFieldEntry map_field = 1;
  1206. ///
  1207. /// Implementations may choose not to generate the map_entry=true message, but
  1208. /// use a native map in the target language to hold the keys and values.
  1209. /// The reflection APIs in such implementations still need to work as
  1210. /// if the field is a repeated message field.
  1211. ///
  1212. /// NOTE: Do not set the option in .proto files. Always use the maps syntax
  1213. /// instead. The option should only be implicitly set by the proto compiler
  1214. /// parser.
  1215. var mapEntry: Bool {
  1216. get {return _mapEntry ?? false}
  1217. set {_mapEntry = newValue}
  1218. }
  1219. /// Returns true if `mapEntry` has been explicitly set.
  1220. var hasMapEntry: Bool {return self._mapEntry != nil}
  1221. /// Clears the value of `mapEntry`. Subsequent reads from it will return its default value.
  1222. mutating func clearMapEntry() {self._mapEntry = nil}
  1223. /// Enable the legacy handling of JSON field name conflicts. This lowercases
  1224. /// and strips underscored from the fields before comparison in proto3 only.
  1225. /// The new behavior takes `json_name` into account and applies to proto2 as
  1226. /// well.
  1227. ///
  1228. /// This should only be used as a temporary measure against broken builds due
  1229. /// to the change in behavior for JSON field name conflicts.
  1230. ///
  1231. /// TODO This is legacy behavior we plan to remove once downstream
  1232. /// teams have had time to migrate.
  1233. ///
  1234. /// NOTE: This field was marked as deprecated in the .proto file.
  1235. var deprecatedLegacyJsonFieldConflicts: Bool {
  1236. get {return _deprecatedLegacyJsonFieldConflicts ?? false}
  1237. set {_deprecatedLegacyJsonFieldConflicts = newValue}
  1238. }
  1239. /// Returns true if `deprecatedLegacyJsonFieldConflicts` has been explicitly set.
  1240. var hasDeprecatedLegacyJsonFieldConflicts: Bool {return self._deprecatedLegacyJsonFieldConflicts != nil}
  1241. /// Clears the value of `deprecatedLegacyJsonFieldConflicts`. Subsequent reads from it will return its default value.
  1242. mutating func clearDeprecatedLegacyJsonFieldConflicts() {self._deprecatedLegacyJsonFieldConflicts = nil}
  1243. /// Any features defined in the specific edition.
  1244. /// WARNING: This field should only be used by protobuf plugins or special
  1245. /// cases like the proto compiler. Other uses are discouraged and
  1246. /// developers should rely on the protoreflect APIs for their client language.
  1247. var features: Google_Protobuf_FeatureSet {
  1248. get {return _features ?? Google_Protobuf_FeatureSet()}
  1249. set {_features = newValue}
  1250. }
  1251. /// Returns true if `features` has been explicitly set.
  1252. var hasFeatures: Bool {return self._features != nil}
  1253. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1254. mutating func clearFeatures() {self._features = nil}
  1255. /// The parser stores options it doesn't recognize here. See above.
  1256. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1257. var unknownFields = UnknownStorage()
  1258. init() {}
  1259. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1260. fileprivate var _messageSetWireFormat: Bool? = nil
  1261. fileprivate var _noStandardDescriptorAccessor: Bool? = nil
  1262. fileprivate var _deprecated: Bool? = nil
  1263. fileprivate var _mapEntry: Bool? = nil
  1264. fileprivate var _deprecatedLegacyJsonFieldConflicts: Bool? = nil
  1265. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1266. }
  1267. struct Google_Protobuf_FieldOptions: ExtensibleMessage, @unchecked Sendable {
  1268. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1269. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1270. // methods supported on all messages.
  1271. /// NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
  1272. /// The ctype option instructs the C++ code generator to use a different
  1273. /// representation of the field than it normally would. See the specific
  1274. /// options below. This option is only implemented to support use of
  1275. /// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
  1276. /// type "bytes" in the open source release.
  1277. /// TODO: make ctype actually deprecated.
  1278. var ctype: Google_Protobuf_FieldOptions.CType {
  1279. get {return _storage._ctype ?? .string}
  1280. set {_uniqueStorage()._ctype = newValue}
  1281. }
  1282. /// Returns true if `ctype` has been explicitly set.
  1283. var hasCtype: Bool {return _storage._ctype != nil}
  1284. /// Clears the value of `ctype`. Subsequent reads from it will return its default value.
  1285. mutating func clearCtype() {_uniqueStorage()._ctype = nil}
  1286. /// The packed option can be enabled for repeated primitive fields to enable
  1287. /// a more efficient representation on the wire. Rather than repeatedly
  1288. /// writing the tag and type for each element, the entire array is encoded as
  1289. /// a single length-delimited blob. In proto3, only explicit setting it to
  1290. /// false will avoid using packed encoding. This option is prohibited in
  1291. /// Editions, but the `repeated_field_encoding` feature can be used to control
  1292. /// the behavior.
  1293. var packed: Bool {
  1294. get {return _storage._packed ?? false}
  1295. set {_uniqueStorage()._packed = newValue}
  1296. }
  1297. /// Returns true if `packed` has been explicitly set.
  1298. var hasPacked: Bool {return _storage._packed != nil}
  1299. /// Clears the value of `packed`. Subsequent reads from it will return its default value.
  1300. mutating func clearPacked() {_uniqueStorage()._packed = nil}
  1301. /// The jstype option determines the JavaScript type used for values of the
  1302. /// field. The option is permitted only for 64 bit integral and fixed types
  1303. /// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
  1304. /// is represented as JavaScript string, which avoids loss of precision that
  1305. /// can happen when a large value is converted to a floating point JavaScript.
  1306. /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
  1307. /// use the JavaScript "number" type. The behavior of the default option
  1308. /// JS_NORMAL is implementation dependent.
  1309. ///
  1310. /// This option is an enum to permit additional types to be added, e.g.
  1311. /// goog.math.Integer.
  1312. var jstype: Google_Protobuf_FieldOptions.JSType {
  1313. get {return _storage._jstype ?? .jsNormal}
  1314. set {_uniqueStorage()._jstype = newValue}
  1315. }
  1316. /// Returns true if `jstype` has been explicitly set.
  1317. var hasJstype: Bool {return _storage._jstype != nil}
  1318. /// Clears the value of `jstype`. Subsequent reads from it will return its default value.
  1319. mutating func clearJstype() {_uniqueStorage()._jstype = nil}
  1320. /// Should this field be parsed lazily? Lazy applies only to message-type
  1321. /// fields. It means that when the outer message is initially parsed, the
  1322. /// inner message's contents will not be parsed but instead stored in encoded
  1323. /// form. The inner message will actually be parsed when it is first accessed.
  1324. ///
  1325. /// This is only a hint. Implementations are free to choose whether to use
  1326. /// eager or lazy parsing regardless of the value of this option. However,
  1327. /// setting this option true suggests that the protocol author believes that
  1328. /// using lazy parsing on this field is worth the additional bookkeeping
  1329. /// overhead typically needed to implement it.
  1330. ///
  1331. /// This option does not affect the public interface of any generated code;
  1332. /// all method signatures remain the same. Furthermore, thread-safety of the
  1333. /// interface is not affected by this option; const methods remain safe to
  1334. /// call from multiple threads concurrently, while non-const methods continue
  1335. /// to require exclusive access.
  1336. ///
  1337. /// Note that lazy message fields are still eagerly verified to check
  1338. /// ill-formed wireformat or missing required fields. Calling IsInitialized()
  1339. /// on the outer message would fail if the inner message has missing required
  1340. /// fields. Failed verification would result in parsing failure (except when
  1341. /// uninitialized messages are acceptable).
  1342. var lazy: Bool {
  1343. get {return _storage._lazy ?? false}
  1344. set {_uniqueStorage()._lazy = newValue}
  1345. }
  1346. /// Returns true if `lazy` has been explicitly set.
  1347. var hasLazy: Bool {return _storage._lazy != nil}
  1348. /// Clears the value of `lazy`. Subsequent reads from it will return its default value.
  1349. mutating func clearLazy() {_uniqueStorage()._lazy = nil}
  1350. /// unverified_lazy does no correctness checks on the byte stream. This should
  1351. /// only be used where lazy with verification is prohibitive for performance
  1352. /// reasons.
  1353. var unverifiedLazy: Bool {
  1354. get {return _storage._unverifiedLazy ?? false}
  1355. set {_uniqueStorage()._unverifiedLazy = newValue}
  1356. }
  1357. /// Returns true if `unverifiedLazy` has been explicitly set.
  1358. var hasUnverifiedLazy: Bool {return _storage._unverifiedLazy != nil}
  1359. /// Clears the value of `unverifiedLazy`. Subsequent reads from it will return its default value.
  1360. mutating func clearUnverifiedLazy() {_uniqueStorage()._unverifiedLazy = nil}
  1361. /// Is this field deprecated?
  1362. /// Depending on the target platform, this can emit Deprecated annotations
  1363. /// for accessors, or it will be completely ignored; in the very least, this
  1364. /// is a formalization for deprecating fields.
  1365. var deprecated: Bool {
  1366. get {return _storage._deprecated ?? false}
  1367. set {_uniqueStorage()._deprecated = newValue}
  1368. }
  1369. /// Returns true if `deprecated` has been explicitly set.
  1370. var hasDeprecated: Bool {return _storage._deprecated != nil}
  1371. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1372. mutating func clearDeprecated() {_uniqueStorage()._deprecated = nil}
  1373. /// For Google-internal migration only. Do not use.
  1374. var weak: Bool {
  1375. get {return _storage._weak ?? false}
  1376. set {_uniqueStorage()._weak = newValue}
  1377. }
  1378. /// Returns true if `weak` has been explicitly set.
  1379. var hasWeak: Bool {return _storage._weak != nil}
  1380. /// Clears the value of `weak`. Subsequent reads from it will return its default value.
  1381. mutating func clearWeak() {_uniqueStorage()._weak = nil}
  1382. /// Indicate that the field value should not be printed out when using debug
  1383. /// formats, e.g. when the field contains sensitive credentials.
  1384. var debugRedact: Bool {
  1385. get {return _storage._debugRedact ?? false}
  1386. set {_uniqueStorage()._debugRedact = newValue}
  1387. }
  1388. /// Returns true if `debugRedact` has been explicitly set.
  1389. var hasDebugRedact: Bool {return _storage._debugRedact != nil}
  1390. /// Clears the value of `debugRedact`. Subsequent reads from it will return its default value.
  1391. mutating func clearDebugRedact() {_uniqueStorage()._debugRedact = nil}
  1392. var retention: Google_Protobuf_FieldOptions.OptionRetention {
  1393. get {return _storage._retention ?? .retentionUnknown}
  1394. set {_uniqueStorage()._retention = newValue}
  1395. }
  1396. /// Returns true if `retention` has been explicitly set.
  1397. var hasRetention: Bool {return _storage._retention != nil}
  1398. /// Clears the value of `retention`. Subsequent reads from it will return its default value.
  1399. mutating func clearRetention() {_uniqueStorage()._retention = nil}
  1400. var targets: [Google_Protobuf_FieldOptions.OptionTargetType] {
  1401. get {return _storage._targets}
  1402. set {_uniqueStorage()._targets = newValue}
  1403. }
  1404. var editionDefaults: [Google_Protobuf_FieldOptions.EditionDefault] {
  1405. get {return _storage._editionDefaults}
  1406. set {_uniqueStorage()._editionDefaults = newValue}
  1407. }
  1408. /// Any features defined in the specific edition.
  1409. /// WARNING: This field should only be used by protobuf plugins or special
  1410. /// cases like the proto compiler. Other uses are discouraged and
  1411. /// developers should rely on the protoreflect APIs for their client language.
  1412. var features: Google_Protobuf_FeatureSet {
  1413. get {return _storage._features ?? Google_Protobuf_FeatureSet()}
  1414. set {_uniqueStorage()._features = newValue}
  1415. }
  1416. /// Returns true if `features` has been explicitly set.
  1417. var hasFeatures: Bool {return _storage._features != nil}
  1418. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1419. mutating func clearFeatures() {_uniqueStorage()._features = nil}
  1420. var featureSupport: Google_Protobuf_FieldOptions.FeatureSupport {
  1421. get {return _storage._featureSupport ?? Google_Protobuf_FieldOptions.FeatureSupport()}
  1422. set {_uniqueStorage()._featureSupport = newValue}
  1423. }
  1424. /// Returns true if `featureSupport` has been explicitly set.
  1425. var hasFeatureSupport: Bool {return _storage._featureSupport != nil}
  1426. /// Clears the value of `featureSupport`. Subsequent reads from it will return its default value.
  1427. mutating func clearFeatureSupport() {_uniqueStorage()._featureSupport = nil}
  1428. /// The parser stores options it doesn't recognize here. See above.
  1429. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] {
  1430. get {return _storage._uninterpretedOption}
  1431. set {_uniqueStorage()._uninterpretedOption = newValue}
  1432. }
  1433. var unknownFields = UnknownStorage()
  1434. enum CType: Int, Enum, Swift.CaseIterable {
  1435. /// Default mode.
  1436. case string = 0
  1437. /// The option [ctype=CORD] may be applied to a non-repeated field of type
  1438. /// "bytes". It indicates that in C++, the data should be stored in a Cord
  1439. /// instead of a string. For very large strings, this may reduce memory
  1440. /// fragmentation. It may also allow better performance when parsing from a
  1441. /// Cord, or when parsing with aliasing enabled, as the parsed Cord may then
  1442. /// alias the original buffer.
  1443. case cord = 1
  1444. case stringPiece = 2
  1445. init() {
  1446. self = .string
  1447. }
  1448. }
  1449. enum JSType: Int, Enum, Swift.CaseIterable {
  1450. /// Use the default type.
  1451. case jsNormal = 0
  1452. /// Use JavaScript strings.
  1453. case jsString = 1
  1454. /// Use JavaScript numbers.
  1455. case jsNumber = 2
  1456. init() {
  1457. self = .jsNormal
  1458. }
  1459. }
  1460. /// If set to RETENTION_SOURCE, the option will be omitted from the binary.
  1461. enum OptionRetention: Int, Enum, Swift.CaseIterable {
  1462. case retentionUnknown = 0
  1463. case retentionRuntime = 1
  1464. case retentionSource = 2
  1465. init() {
  1466. self = .retentionUnknown
  1467. }
  1468. }
  1469. /// This indicates the types of entities that the field may apply to when used
  1470. /// as an option. If it is unset, then the field may be freely used as an
  1471. /// option on any kind of entity.
  1472. enum OptionTargetType: Int, Enum, Swift.CaseIterable {
  1473. case targetTypeUnknown = 0
  1474. case targetTypeFile = 1
  1475. case targetTypeExtensionRange = 2
  1476. case targetTypeMessage = 3
  1477. case targetTypeField = 4
  1478. case targetTypeOneof = 5
  1479. case targetTypeEnum = 6
  1480. case targetTypeEnumEntry = 7
  1481. case targetTypeService = 8
  1482. case targetTypeMethod = 9
  1483. init() {
  1484. self = .targetTypeUnknown
  1485. }
  1486. }
  1487. struct EditionDefault: Sendable {
  1488. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1489. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1490. // methods supported on all messages.
  1491. var edition: Google_Protobuf_Edition {
  1492. get {return _edition ?? .unknown}
  1493. set {_edition = newValue}
  1494. }
  1495. /// Returns true if `edition` has been explicitly set.
  1496. var hasEdition: Bool {return self._edition != nil}
  1497. /// Clears the value of `edition`. Subsequent reads from it will return its default value.
  1498. mutating func clearEdition() {self._edition = nil}
  1499. /// Textproto value.
  1500. var value: String {
  1501. get {return _value ?? String()}
  1502. set {_value = newValue}
  1503. }
  1504. /// Returns true if `value` has been explicitly set.
  1505. var hasValue: Bool {return self._value != nil}
  1506. /// Clears the value of `value`. Subsequent reads from it will return its default value.
  1507. mutating func clearValue() {self._value = nil}
  1508. var unknownFields = UnknownStorage()
  1509. init() {}
  1510. fileprivate var _edition: Google_Protobuf_Edition? = nil
  1511. fileprivate var _value: String? = nil
  1512. }
  1513. /// Information about the support window of a feature.
  1514. struct FeatureSupport: Sendable {
  1515. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1516. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1517. // methods supported on all messages.
  1518. /// The edition that this feature was first available in. In editions
  1519. /// earlier than this one, the default assigned to EDITION_LEGACY will be
  1520. /// used, and proto files will not be able to override it.
  1521. var editionIntroduced: Google_Protobuf_Edition {
  1522. get {return _editionIntroduced ?? .unknown}
  1523. set {_editionIntroduced = newValue}
  1524. }
  1525. /// Returns true if `editionIntroduced` has been explicitly set.
  1526. var hasEditionIntroduced: Bool {return self._editionIntroduced != nil}
  1527. /// Clears the value of `editionIntroduced`. Subsequent reads from it will return its default value.
  1528. mutating func clearEditionIntroduced() {self._editionIntroduced = nil}
  1529. /// The edition this feature becomes deprecated in. Using this after this
  1530. /// edition may trigger warnings.
  1531. var editionDeprecated: Google_Protobuf_Edition {
  1532. get {return _editionDeprecated ?? .unknown}
  1533. set {_editionDeprecated = newValue}
  1534. }
  1535. /// Returns true if `editionDeprecated` has been explicitly set.
  1536. var hasEditionDeprecated: Bool {return self._editionDeprecated != nil}
  1537. /// Clears the value of `editionDeprecated`. Subsequent reads from it will return its default value.
  1538. mutating func clearEditionDeprecated() {self._editionDeprecated = nil}
  1539. /// The deprecation warning text if this feature is used after the edition it
  1540. /// was marked deprecated in.
  1541. var deprecationWarning: String {
  1542. get {return _deprecationWarning ?? String()}
  1543. set {_deprecationWarning = newValue}
  1544. }
  1545. /// Returns true if `deprecationWarning` has been explicitly set.
  1546. var hasDeprecationWarning: Bool {return self._deprecationWarning != nil}
  1547. /// Clears the value of `deprecationWarning`. Subsequent reads from it will return its default value.
  1548. mutating func clearDeprecationWarning() {self._deprecationWarning = nil}
  1549. /// The edition this feature is no longer available in. In editions after
  1550. /// this one, the last default assigned will be used, and proto files will
  1551. /// not be able to override it.
  1552. var editionRemoved: Google_Protobuf_Edition {
  1553. get {return _editionRemoved ?? .unknown}
  1554. set {_editionRemoved = newValue}
  1555. }
  1556. /// Returns true if `editionRemoved` has been explicitly set.
  1557. var hasEditionRemoved: Bool {return self._editionRemoved != nil}
  1558. /// Clears the value of `editionRemoved`. Subsequent reads from it will return its default value.
  1559. mutating func clearEditionRemoved() {self._editionRemoved = nil}
  1560. var unknownFields = UnknownStorage()
  1561. init() {}
  1562. fileprivate var _editionIntroduced: Google_Protobuf_Edition? = nil
  1563. fileprivate var _editionDeprecated: Google_Protobuf_Edition? = nil
  1564. fileprivate var _deprecationWarning: String? = nil
  1565. fileprivate var _editionRemoved: Google_Protobuf_Edition? = nil
  1566. }
  1567. init() {}
  1568. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1569. fileprivate var _storage = _StorageClass.defaultInstance
  1570. }
  1571. struct Google_Protobuf_OneofOptions: ExtensibleMessage, Sendable {
  1572. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1573. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1574. // methods supported on all messages.
  1575. /// Any features defined in the specific edition.
  1576. /// WARNING: This field should only be used by protobuf plugins or special
  1577. /// cases like the proto compiler. Other uses are discouraged and
  1578. /// developers should rely on the protoreflect APIs for their client language.
  1579. var features: Google_Protobuf_FeatureSet {
  1580. get {return _features ?? Google_Protobuf_FeatureSet()}
  1581. set {_features = newValue}
  1582. }
  1583. /// Returns true if `features` has been explicitly set.
  1584. var hasFeatures: Bool {return self._features != nil}
  1585. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1586. mutating func clearFeatures() {self._features = nil}
  1587. /// The parser stores options it doesn't recognize here. See above.
  1588. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1589. var unknownFields = UnknownStorage()
  1590. init() {}
  1591. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1592. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1593. }
  1594. struct Google_Protobuf_EnumOptions: ExtensibleMessage, Sendable {
  1595. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1596. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1597. // methods supported on all messages.
  1598. /// Set this option to true to allow mapping different tag names to the same
  1599. /// value.
  1600. var allowAlias: Bool {
  1601. get {return _allowAlias ?? false}
  1602. set {_allowAlias = newValue}
  1603. }
  1604. /// Returns true if `allowAlias` has been explicitly set.
  1605. var hasAllowAlias: Bool {return self._allowAlias != nil}
  1606. /// Clears the value of `allowAlias`. Subsequent reads from it will return its default value.
  1607. mutating func clearAllowAlias() {self._allowAlias = nil}
  1608. /// Is this enum deprecated?
  1609. /// Depending on the target platform, this can emit Deprecated annotations
  1610. /// for the enum, or it will be completely ignored; in the very least, this
  1611. /// is a formalization for deprecating enums.
  1612. var deprecated: Bool {
  1613. get {return _deprecated ?? false}
  1614. set {_deprecated = newValue}
  1615. }
  1616. /// Returns true if `deprecated` has been explicitly set.
  1617. var hasDeprecated: Bool {return self._deprecated != nil}
  1618. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1619. mutating func clearDeprecated() {self._deprecated = nil}
  1620. /// Enable the legacy handling of JSON field name conflicts. This lowercases
  1621. /// and strips underscored from the fields before comparison in proto3 only.
  1622. /// The new behavior takes `json_name` into account and applies to proto2 as
  1623. /// well.
  1624. /// TODO Remove this legacy behavior once downstream teams have
  1625. /// had time to migrate.
  1626. ///
  1627. /// NOTE: This field was marked as deprecated in the .proto file.
  1628. var deprecatedLegacyJsonFieldConflicts: Bool {
  1629. get {return _deprecatedLegacyJsonFieldConflicts ?? false}
  1630. set {_deprecatedLegacyJsonFieldConflicts = newValue}
  1631. }
  1632. /// Returns true if `deprecatedLegacyJsonFieldConflicts` has been explicitly set.
  1633. var hasDeprecatedLegacyJsonFieldConflicts: Bool {return self._deprecatedLegacyJsonFieldConflicts != nil}
  1634. /// Clears the value of `deprecatedLegacyJsonFieldConflicts`. Subsequent reads from it will return its default value.
  1635. mutating func clearDeprecatedLegacyJsonFieldConflicts() {self._deprecatedLegacyJsonFieldConflicts = nil}
  1636. /// Any features defined in the specific edition.
  1637. /// WARNING: This field should only be used by protobuf plugins or special
  1638. /// cases like the proto compiler. Other uses are discouraged and
  1639. /// developers should rely on the protoreflect APIs for their client language.
  1640. var features: Google_Protobuf_FeatureSet {
  1641. get {return _features ?? Google_Protobuf_FeatureSet()}
  1642. set {_features = newValue}
  1643. }
  1644. /// Returns true if `features` has been explicitly set.
  1645. var hasFeatures: Bool {return self._features != nil}
  1646. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1647. mutating func clearFeatures() {self._features = nil}
  1648. /// The parser stores options it doesn't recognize here. See above.
  1649. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1650. var unknownFields = UnknownStorage()
  1651. init() {}
  1652. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1653. fileprivate var _allowAlias: Bool? = nil
  1654. fileprivate var _deprecated: Bool? = nil
  1655. fileprivate var _deprecatedLegacyJsonFieldConflicts: Bool? = nil
  1656. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1657. }
  1658. struct Google_Protobuf_EnumValueOptions: ExtensibleMessage, Sendable {
  1659. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1660. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1661. // methods supported on all messages.
  1662. /// Is this enum value deprecated?
  1663. /// Depending on the target platform, this can emit Deprecated annotations
  1664. /// for the enum value, or it will be completely ignored; in the very least,
  1665. /// this is a formalization for deprecating enum values.
  1666. var deprecated: Bool {
  1667. get {return _deprecated ?? false}
  1668. set {_deprecated = newValue}
  1669. }
  1670. /// Returns true if `deprecated` has been explicitly set.
  1671. var hasDeprecated: Bool {return self._deprecated != nil}
  1672. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1673. mutating func clearDeprecated() {self._deprecated = nil}
  1674. /// Any features defined in the specific edition.
  1675. /// WARNING: This field should only be used by protobuf plugins or special
  1676. /// cases like the proto compiler. Other uses are discouraged and
  1677. /// developers should rely on the protoreflect APIs for their client language.
  1678. var features: Google_Protobuf_FeatureSet {
  1679. get {return _features ?? Google_Protobuf_FeatureSet()}
  1680. set {_features = newValue}
  1681. }
  1682. /// Returns true if `features` has been explicitly set.
  1683. var hasFeatures: Bool {return self._features != nil}
  1684. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1685. mutating func clearFeatures() {self._features = nil}
  1686. /// Indicate that fields annotated with this enum value should not be printed
  1687. /// out when using debug formats, e.g. when the field contains sensitive
  1688. /// credentials.
  1689. var debugRedact: Bool {
  1690. get {return _debugRedact ?? false}
  1691. set {_debugRedact = newValue}
  1692. }
  1693. /// Returns true if `debugRedact` has been explicitly set.
  1694. var hasDebugRedact: Bool {return self._debugRedact != nil}
  1695. /// Clears the value of `debugRedact`. Subsequent reads from it will return its default value.
  1696. mutating func clearDebugRedact() {self._debugRedact = nil}
  1697. /// Information about the support window of a feature value.
  1698. var featureSupport: Google_Protobuf_FieldOptions.FeatureSupport {
  1699. get {return _featureSupport ?? Google_Protobuf_FieldOptions.FeatureSupport()}
  1700. set {_featureSupport = newValue}
  1701. }
  1702. /// Returns true if `featureSupport` has been explicitly set.
  1703. var hasFeatureSupport: Bool {return self._featureSupport != nil}
  1704. /// Clears the value of `featureSupport`. Subsequent reads from it will return its default value.
  1705. mutating func clearFeatureSupport() {self._featureSupport = nil}
  1706. /// The parser stores options it doesn't recognize here. See above.
  1707. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1708. var unknownFields = UnknownStorage()
  1709. init() {}
  1710. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1711. fileprivate var _deprecated: Bool? = nil
  1712. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1713. fileprivate var _debugRedact: Bool? = nil
  1714. fileprivate var _featureSupport: Google_Protobuf_FieldOptions.FeatureSupport? = nil
  1715. }
  1716. struct Google_Protobuf_ServiceOptions: ExtensibleMessage, Sendable {
  1717. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1718. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1719. // methods supported on all messages.
  1720. /// Any features defined in the specific edition.
  1721. /// WARNING: This field should only be used by protobuf plugins or special
  1722. /// cases like the proto compiler. Other uses are discouraged and
  1723. /// developers should rely on the protoreflect APIs for their client language.
  1724. var features: Google_Protobuf_FeatureSet {
  1725. get {return _features ?? Google_Protobuf_FeatureSet()}
  1726. set {_features = newValue}
  1727. }
  1728. /// Returns true if `features` has been explicitly set.
  1729. var hasFeatures: Bool {return self._features != nil}
  1730. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1731. mutating func clearFeatures() {self._features = nil}
  1732. /// Is this service deprecated?
  1733. /// Depending on the target platform, this can emit Deprecated annotations
  1734. /// for the service, or it will be completely ignored; in the very least,
  1735. /// this is a formalization for deprecating services.
  1736. var deprecated: Bool {
  1737. get {return _deprecated ?? false}
  1738. set {_deprecated = newValue}
  1739. }
  1740. /// Returns true if `deprecated` has been explicitly set.
  1741. var hasDeprecated: Bool {return self._deprecated != nil}
  1742. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1743. mutating func clearDeprecated() {self._deprecated = nil}
  1744. /// The parser stores options it doesn't recognize here. See above.
  1745. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1746. var unknownFields = UnknownStorage()
  1747. init() {}
  1748. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1749. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1750. fileprivate var _deprecated: Bool? = nil
  1751. }
  1752. struct Google_Protobuf_MethodOptions: ExtensibleMessage, Sendable {
  1753. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1754. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1755. // methods supported on all messages.
  1756. /// Is this method deprecated?
  1757. /// Depending on the target platform, this can emit Deprecated annotations
  1758. /// for the method, or it will be completely ignored; in the very least,
  1759. /// this is a formalization for deprecating methods.
  1760. var deprecated: Bool {
  1761. get {return _deprecated ?? false}
  1762. set {_deprecated = newValue}
  1763. }
  1764. /// Returns true if `deprecated` has been explicitly set.
  1765. var hasDeprecated: Bool {return self._deprecated != nil}
  1766. /// Clears the value of `deprecated`. Subsequent reads from it will return its default value.
  1767. mutating func clearDeprecated() {self._deprecated = nil}
  1768. var idempotencyLevel: Google_Protobuf_MethodOptions.IdempotencyLevel {
  1769. get {return _idempotencyLevel ?? .idempotencyUnknown}
  1770. set {_idempotencyLevel = newValue}
  1771. }
  1772. /// Returns true if `idempotencyLevel` has been explicitly set.
  1773. var hasIdempotencyLevel: Bool {return self._idempotencyLevel != nil}
  1774. /// Clears the value of `idempotencyLevel`. Subsequent reads from it will return its default value.
  1775. mutating func clearIdempotencyLevel() {self._idempotencyLevel = nil}
  1776. /// Any features defined in the specific edition.
  1777. /// WARNING: This field should only be used by protobuf plugins or special
  1778. /// cases like the proto compiler. Other uses are discouraged and
  1779. /// developers should rely on the protoreflect APIs for their client language.
  1780. var features: Google_Protobuf_FeatureSet {
  1781. get {return _features ?? Google_Protobuf_FeatureSet()}
  1782. set {_features = newValue}
  1783. }
  1784. /// Returns true if `features` has been explicitly set.
  1785. var hasFeatures: Bool {return self._features != nil}
  1786. /// Clears the value of `features`. Subsequent reads from it will return its default value.
  1787. mutating func clearFeatures() {self._features = nil}
  1788. /// The parser stores options it doesn't recognize here. See above.
  1789. var uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  1790. var unknownFields = UnknownStorage()
  1791. /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  1792. /// or neither? HTTP based RPC implementation may choose GET verb for safe
  1793. /// methods, and PUT verb for idempotent methods instead of the default POST.
  1794. enum IdempotencyLevel: Int, Enum, Swift.CaseIterable {
  1795. case idempotencyUnknown = 0
  1796. /// implies idempotent
  1797. case noSideEffects = 1
  1798. /// idempotent, but may have side effects
  1799. case idempotent = 2
  1800. init() {
  1801. self = .idempotencyUnknown
  1802. }
  1803. }
  1804. init() {}
  1805. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  1806. fileprivate var _deprecated: Bool? = nil
  1807. fileprivate var _idempotencyLevel: Google_Protobuf_MethodOptions.IdempotencyLevel? = nil
  1808. fileprivate var _features: Google_Protobuf_FeatureSet? = nil
  1809. }
  1810. /// A message representing a option the parser does not recognize. This only
  1811. /// appears in options protos created by the compiler::Parser class.
  1812. /// DescriptorPool resolves these when building Descriptor objects. Therefore,
  1813. /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
  1814. /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  1815. /// in them.
  1816. struct Google_Protobuf_UninterpretedOption: @unchecked Sendable {
  1817. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1818. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1819. // methods supported on all messages.
  1820. var name: [Google_Protobuf_UninterpretedOption.NamePart] = []
  1821. /// The value of the uninterpreted option, in whatever type the tokenizer
  1822. /// identified it as during parsing. Exactly one of these should be set.
  1823. var identifierValue: String {
  1824. get {return _identifierValue ?? String()}
  1825. set {_identifierValue = newValue}
  1826. }
  1827. /// Returns true if `identifierValue` has been explicitly set.
  1828. var hasIdentifierValue: Bool {return self._identifierValue != nil}
  1829. /// Clears the value of `identifierValue`. Subsequent reads from it will return its default value.
  1830. mutating func clearIdentifierValue() {self._identifierValue = nil}
  1831. var positiveIntValue: UInt64 {
  1832. get {return _positiveIntValue ?? 0}
  1833. set {_positiveIntValue = newValue}
  1834. }
  1835. /// Returns true if `positiveIntValue` has been explicitly set.
  1836. var hasPositiveIntValue: Bool {return self._positiveIntValue != nil}
  1837. /// Clears the value of `positiveIntValue`. Subsequent reads from it will return its default value.
  1838. mutating func clearPositiveIntValue() {self._positiveIntValue = nil}
  1839. var negativeIntValue: Int64 {
  1840. get {return _negativeIntValue ?? 0}
  1841. set {_negativeIntValue = newValue}
  1842. }
  1843. /// Returns true if `negativeIntValue` has been explicitly set.
  1844. var hasNegativeIntValue: Bool {return self._negativeIntValue != nil}
  1845. /// Clears the value of `negativeIntValue`. Subsequent reads from it will return its default value.
  1846. mutating func clearNegativeIntValue() {self._negativeIntValue = nil}
  1847. var doubleValue: Double {
  1848. get {return _doubleValue ?? 0}
  1849. set {_doubleValue = newValue}
  1850. }
  1851. /// Returns true if `doubleValue` has been explicitly set.
  1852. var hasDoubleValue: Bool {return self._doubleValue != nil}
  1853. /// Clears the value of `doubleValue`. Subsequent reads from it will return its default value.
  1854. mutating func clearDoubleValue() {self._doubleValue = nil}
  1855. var stringValue: Data {
  1856. get {return _stringValue ?? Data()}
  1857. set {_stringValue = newValue}
  1858. }
  1859. /// Returns true if `stringValue` has been explicitly set.
  1860. var hasStringValue: Bool {return self._stringValue != nil}
  1861. /// Clears the value of `stringValue`. Subsequent reads from it will return its default value.
  1862. mutating func clearStringValue() {self._stringValue = nil}
  1863. var aggregateValue: String {
  1864. get {return _aggregateValue ?? String()}
  1865. set {_aggregateValue = newValue}
  1866. }
  1867. /// Returns true if `aggregateValue` has been explicitly set.
  1868. var hasAggregateValue: Bool {return self._aggregateValue != nil}
  1869. /// Clears the value of `aggregateValue`. Subsequent reads from it will return its default value.
  1870. mutating func clearAggregateValue() {self._aggregateValue = nil}
  1871. var unknownFields = UnknownStorage()
  1872. /// The name of the uninterpreted option. Each string represents a segment in
  1873. /// a dot-separated name. is_extension is true iff a segment represents an
  1874. /// extension (denoted with parentheses in options specs in .proto files).
  1875. /// E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
  1876. /// "foo.(bar.baz).moo".
  1877. struct NamePart: Sendable {
  1878. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1879. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1880. // methods supported on all messages.
  1881. var namePart: String {
  1882. get {return _namePart ?? String()}
  1883. set {_namePart = newValue}
  1884. }
  1885. /// Returns true if `namePart` has been explicitly set.
  1886. var hasNamePart: Bool {return self._namePart != nil}
  1887. /// Clears the value of `namePart`. Subsequent reads from it will return its default value.
  1888. mutating func clearNamePart() {self._namePart = nil}
  1889. var isExtension: Bool {
  1890. get {return _isExtension ?? false}
  1891. set {_isExtension = newValue}
  1892. }
  1893. /// Returns true if `isExtension` has been explicitly set.
  1894. var hasIsExtension: Bool {return self._isExtension != nil}
  1895. /// Clears the value of `isExtension`. Subsequent reads from it will return its default value.
  1896. mutating func clearIsExtension() {self._isExtension = nil}
  1897. var unknownFields = UnknownStorage()
  1898. init() {}
  1899. fileprivate var _namePart: String? = nil
  1900. fileprivate var _isExtension: Bool? = nil
  1901. }
  1902. init() {}
  1903. fileprivate var _identifierValue: String? = nil
  1904. fileprivate var _positiveIntValue: UInt64? = nil
  1905. fileprivate var _negativeIntValue: Int64? = nil
  1906. fileprivate var _doubleValue: Double? = nil
  1907. fileprivate var _stringValue: Data? = nil
  1908. fileprivate var _aggregateValue: String? = nil
  1909. }
  1910. /// TODO Enums in C++ gencode (and potentially other languages) are
  1911. /// not well scoped. This means that each of the feature enums below can clash
  1912. /// with each other. The short names we've chosen maximize call-site
  1913. /// readability, but leave us very open to this scenario. A future feature will
  1914. /// be designed and implemented to handle this, hopefully before we ever hit a
  1915. /// conflict here.
  1916. struct Google_Protobuf_FeatureSet: ExtensibleMessage, Sendable {
  1917. // SwiftProtobuf.Message conformance is added in an extension below. See the
  1918. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  1919. // methods supported on all messages.
  1920. var fieldPresence: Google_Protobuf_FeatureSet.FieldPresence {
  1921. get {return _fieldPresence ?? .unknown}
  1922. set {_fieldPresence = newValue}
  1923. }
  1924. /// Returns true if `fieldPresence` has been explicitly set.
  1925. var hasFieldPresence: Bool {return self._fieldPresence != nil}
  1926. /// Clears the value of `fieldPresence`. Subsequent reads from it will return its default value.
  1927. mutating func clearFieldPresence() {self._fieldPresence = nil}
  1928. var enumType: Google_Protobuf_FeatureSet.EnumType {
  1929. get {return _enumType ?? .unknown}
  1930. set {_enumType = newValue}
  1931. }
  1932. /// Returns true if `enumType` has been explicitly set.
  1933. var hasEnumType: Bool {return self._enumType != nil}
  1934. /// Clears the value of `enumType`. Subsequent reads from it will return its default value.
  1935. mutating func clearEnumType() {self._enumType = nil}
  1936. var repeatedFieldEncoding: Google_Protobuf_FeatureSet.RepeatedFieldEncoding {
  1937. get {return _repeatedFieldEncoding ?? .unknown}
  1938. set {_repeatedFieldEncoding = newValue}
  1939. }
  1940. /// Returns true if `repeatedFieldEncoding` has been explicitly set.
  1941. var hasRepeatedFieldEncoding: Bool {return self._repeatedFieldEncoding != nil}
  1942. /// Clears the value of `repeatedFieldEncoding`. Subsequent reads from it will return its default value.
  1943. mutating func clearRepeatedFieldEncoding() {self._repeatedFieldEncoding = nil}
  1944. var utf8Validation: Google_Protobuf_FeatureSet.Utf8Validation {
  1945. get {return _utf8Validation ?? .unknown}
  1946. set {_utf8Validation = newValue}
  1947. }
  1948. /// Returns true if `utf8Validation` has been explicitly set.
  1949. var hasUtf8Validation: Bool {return self._utf8Validation != nil}
  1950. /// Clears the value of `utf8Validation`. Subsequent reads from it will return its default value.
  1951. mutating func clearUtf8Validation() {self._utf8Validation = nil}
  1952. var messageEncoding: Google_Protobuf_FeatureSet.MessageEncoding {
  1953. get {return _messageEncoding ?? .unknown}
  1954. set {_messageEncoding = newValue}
  1955. }
  1956. /// Returns true if `messageEncoding` has been explicitly set.
  1957. var hasMessageEncoding: Bool {return self._messageEncoding != nil}
  1958. /// Clears the value of `messageEncoding`. Subsequent reads from it will return its default value.
  1959. mutating func clearMessageEncoding() {self._messageEncoding = nil}
  1960. var jsonFormat: Google_Protobuf_FeatureSet.JsonFormat {
  1961. get {return _jsonFormat ?? .unknown}
  1962. set {_jsonFormat = newValue}
  1963. }
  1964. /// Returns true if `jsonFormat` has been explicitly set.
  1965. var hasJsonFormat: Bool {return self._jsonFormat != nil}
  1966. /// Clears the value of `jsonFormat`. Subsequent reads from it will return its default value.
  1967. mutating func clearJsonFormat() {self._jsonFormat = nil}
  1968. var enforceNamingStyle: Google_Protobuf_FeatureSet.EnforceNamingStyle {
  1969. get {return _enforceNamingStyle ?? .unknown}
  1970. set {_enforceNamingStyle = newValue}
  1971. }
  1972. /// Returns true if `enforceNamingStyle` has been explicitly set.
  1973. var hasEnforceNamingStyle: Bool {return self._enforceNamingStyle != nil}
  1974. /// Clears the value of `enforceNamingStyle`. Subsequent reads from it will return its default value.
  1975. mutating func clearEnforceNamingStyle() {self._enforceNamingStyle = nil}
  1976. var defaultSymbolVisibility: Google_Protobuf_FeatureSet.VisibilityFeature.DefaultSymbolVisibility {
  1977. get {return _defaultSymbolVisibility ?? .unknown}
  1978. set {_defaultSymbolVisibility = newValue}
  1979. }
  1980. /// Returns true if `defaultSymbolVisibility` has been explicitly set.
  1981. var hasDefaultSymbolVisibility: Bool {return self._defaultSymbolVisibility != nil}
  1982. /// Clears the value of `defaultSymbolVisibility`. Subsequent reads from it will return its default value.
  1983. mutating func clearDefaultSymbolVisibility() {self._defaultSymbolVisibility = nil}
  1984. var unknownFields = UnknownStorage()
  1985. enum FieldPresence: Int, Enum, Swift.CaseIterable {
  1986. case unknown = 0
  1987. case explicit = 1
  1988. case implicit = 2
  1989. case legacyRequired = 3
  1990. init() {
  1991. self = .unknown
  1992. }
  1993. }
  1994. enum EnumType: Int, Enum, Swift.CaseIterable {
  1995. case unknown = 0
  1996. case `open` = 1
  1997. case closed = 2
  1998. init() {
  1999. self = .unknown
  2000. }
  2001. }
  2002. enum RepeatedFieldEncoding: Int, Enum, Swift.CaseIterable {
  2003. case unknown = 0
  2004. case packed = 1
  2005. case expanded = 2
  2006. init() {
  2007. self = .unknown
  2008. }
  2009. }
  2010. enum Utf8Validation: Int, Enum, Swift.CaseIterable {
  2011. case unknown = 0
  2012. case verify = 2
  2013. case none = 3
  2014. init() {
  2015. self = .unknown
  2016. }
  2017. }
  2018. enum MessageEncoding: Int, Enum, Swift.CaseIterable {
  2019. case unknown = 0
  2020. case lengthPrefixed = 1
  2021. case delimited = 2
  2022. init() {
  2023. self = .unknown
  2024. }
  2025. }
  2026. enum JsonFormat: Int, Enum, Swift.CaseIterable {
  2027. case unknown = 0
  2028. case allow = 1
  2029. case legacyBestEffort = 2
  2030. init() {
  2031. self = .unknown
  2032. }
  2033. }
  2034. enum EnforceNamingStyle: Int, Enum, Swift.CaseIterable {
  2035. case unknown = 0
  2036. case style2024 = 1
  2037. case styleLegacy = 2
  2038. init() {
  2039. self = .unknown
  2040. }
  2041. }
  2042. struct VisibilityFeature: Sendable {
  2043. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2044. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2045. // methods supported on all messages.
  2046. var unknownFields = UnknownStorage()
  2047. enum DefaultSymbolVisibility: Int, Enum, Swift.CaseIterable {
  2048. case unknown = 0
  2049. /// Default pre-EDITION_2024, all UNSET visibility are export.
  2050. case exportAll = 1
  2051. /// All top-level symbols default to export, nested default to local.
  2052. case exportTopLevel = 2
  2053. /// All symbols default to local.
  2054. case localAll = 3
  2055. /// All symbols local by default. Nested types cannot be exported.
  2056. /// With special case caveat for message { enum {} reserved 1 to max; }
  2057. /// This is the recommended setting for new protos.
  2058. case strict = 4
  2059. init() {
  2060. self = .unknown
  2061. }
  2062. }
  2063. init() {}
  2064. }
  2065. init() {}
  2066. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  2067. fileprivate var _fieldPresence: Google_Protobuf_FeatureSet.FieldPresence? = nil
  2068. fileprivate var _enumType: Google_Protobuf_FeatureSet.EnumType? = nil
  2069. fileprivate var _repeatedFieldEncoding: Google_Protobuf_FeatureSet.RepeatedFieldEncoding? = nil
  2070. fileprivate var _utf8Validation: Google_Protobuf_FeatureSet.Utf8Validation? = nil
  2071. fileprivate var _messageEncoding: Google_Protobuf_FeatureSet.MessageEncoding? = nil
  2072. fileprivate var _jsonFormat: Google_Protobuf_FeatureSet.JsonFormat? = nil
  2073. fileprivate var _enforceNamingStyle: Google_Protobuf_FeatureSet.EnforceNamingStyle? = nil
  2074. fileprivate var _defaultSymbolVisibility: Google_Protobuf_FeatureSet.VisibilityFeature.DefaultSymbolVisibility? = nil
  2075. }
  2076. /// A compiled specification for the defaults of a set of features. These
  2077. /// messages are generated from FeatureSet extensions and can be used to seed
  2078. /// feature resolution. The resolution with this object becomes a simple search
  2079. /// for the closest matching edition, followed by proto merges.
  2080. struct Google_Protobuf_FeatureSetDefaults: Sendable {
  2081. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2082. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2083. // methods supported on all messages.
  2084. var defaults: [Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault] = []
  2085. /// The minimum supported edition (inclusive) when this was constructed.
  2086. /// Editions before this will not have defaults.
  2087. var minimumEdition: Google_Protobuf_Edition {
  2088. get {return _minimumEdition ?? .unknown}
  2089. set {_minimumEdition = newValue}
  2090. }
  2091. /// Returns true if `minimumEdition` has been explicitly set.
  2092. var hasMinimumEdition: Bool {return self._minimumEdition != nil}
  2093. /// Clears the value of `minimumEdition`. Subsequent reads from it will return its default value.
  2094. mutating func clearMinimumEdition() {self._minimumEdition = nil}
  2095. /// The maximum known edition (inclusive) when this was constructed. Editions
  2096. /// after this will not have reliable defaults.
  2097. var maximumEdition: Google_Protobuf_Edition {
  2098. get {return _maximumEdition ?? .unknown}
  2099. set {_maximumEdition = newValue}
  2100. }
  2101. /// Returns true if `maximumEdition` has been explicitly set.
  2102. var hasMaximumEdition: Bool {return self._maximumEdition != nil}
  2103. /// Clears the value of `maximumEdition`. Subsequent reads from it will return its default value.
  2104. mutating func clearMaximumEdition() {self._maximumEdition = nil}
  2105. var unknownFields = UnknownStorage()
  2106. /// A map from every known edition with a unique set of defaults to its
  2107. /// defaults. Not all editions may be contained here. For a given edition,
  2108. /// the defaults at the closest matching edition ordered at or before it should
  2109. /// be used. This field must be in strict ascending order by edition.
  2110. struct FeatureSetEditionDefault: @unchecked Sendable {
  2111. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2112. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2113. // methods supported on all messages.
  2114. var edition: Google_Protobuf_Edition {
  2115. get {return _storage._edition ?? .unknown}
  2116. set {_uniqueStorage()._edition = newValue}
  2117. }
  2118. /// Returns true if `edition` has been explicitly set.
  2119. var hasEdition: Bool {return _storage._edition != nil}
  2120. /// Clears the value of `edition`. Subsequent reads from it will return its default value.
  2121. mutating func clearEdition() {_uniqueStorage()._edition = nil}
  2122. /// Defaults of features that can be overridden in this edition.
  2123. var overridableFeatures: Google_Protobuf_FeatureSet {
  2124. get {return _storage._overridableFeatures ?? Google_Protobuf_FeatureSet()}
  2125. set {_uniqueStorage()._overridableFeatures = newValue}
  2126. }
  2127. /// Returns true if `overridableFeatures` has been explicitly set.
  2128. var hasOverridableFeatures: Bool {return _storage._overridableFeatures != nil}
  2129. /// Clears the value of `overridableFeatures`. Subsequent reads from it will return its default value.
  2130. mutating func clearOverridableFeatures() {_uniqueStorage()._overridableFeatures = nil}
  2131. /// Defaults of features that can't be overridden in this edition.
  2132. var fixedFeatures: Google_Protobuf_FeatureSet {
  2133. get {return _storage._fixedFeatures ?? Google_Protobuf_FeatureSet()}
  2134. set {_uniqueStorage()._fixedFeatures = newValue}
  2135. }
  2136. /// Returns true if `fixedFeatures` has been explicitly set.
  2137. var hasFixedFeatures: Bool {return _storage._fixedFeatures != nil}
  2138. /// Clears the value of `fixedFeatures`. Subsequent reads from it will return its default value.
  2139. mutating func clearFixedFeatures() {_uniqueStorage()._fixedFeatures = nil}
  2140. var unknownFields = UnknownStorage()
  2141. init() {}
  2142. fileprivate var _storage = _StorageClass.defaultInstance
  2143. }
  2144. init() {}
  2145. fileprivate var _minimumEdition: Google_Protobuf_Edition? = nil
  2146. fileprivate var _maximumEdition: Google_Protobuf_Edition? = nil
  2147. }
  2148. /// Encapsulates information about the original source file from which a
  2149. /// FileDescriptorProto was generated.
  2150. struct Google_Protobuf_SourceCodeInfo: ExtensibleMessage, Sendable {
  2151. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2152. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2153. // methods supported on all messages.
  2154. /// A Location identifies a piece of source code in a .proto file which
  2155. /// corresponds to a particular definition. This information is intended
  2156. /// to be useful to IDEs, code indexers, documentation generators, and similar
  2157. /// tools.
  2158. ///
  2159. /// For example, say we have a file like:
  2160. /// message Foo {
  2161. /// optional string foo = 1;
  2162. /// }
  2163. /// Let's look at just the field definition:
  2164. /// optional string foo = 1;
  2165. /// ^ ^^ ^^ ^ ^^^
  2166. /// a bc de f ghi
  2167. /// We have the following locations:
  2168. /// span path represents
  2169. /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
  2170. /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
  2171. /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
  2172. /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
  2173. /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
  2174. ///
  2175. /// Notes:
  2176. /// - A location may refer to a repeated field itself (i.e. not to any
  2177. /// particular index within it). This is used whenever a set of elements are
  2178. /// logically enclosed in a single code segment. For example, an entire
  2179. /// extend block (possibly containing multiple extension definitions) will
  2180. /// have an outer location whose path refers to the "extensions" repeated
  2181. /// field without an index.
  2182. /// - Multiple locations may have the same path. This happens when a single
  2183. /// logical declaration is spread out across multiple places. The most
  2184. /// obvious example is the "extend" block again -- there may be multiple
  2185. /// extend blocks in the same scope, each of which will have the same path.
  2186. /// - A location's span is not always a subset of its parent's span. For
  2187. /// example, the "extendee" of an extension declaration appears at the
  2188. /// beginning of the "extend" block and is shared by all extensions within
  2189. /// the block.
  2190. /// - Just because a location's span is a subset of some other location's span
  2191. /// does not mean that it is a descendant. For example, a "group" defines
  2192. /// both a type and a field in a single declaration. Thus, the locations
  2193. /// corresponding to the type and field and their components will overlap.
  2194. /// - Code which tries to interpret locations should probably be designed to
  2195. /// ignore those that it doesn't understand, as more types of locations could
  2196. /// be recorded in the future.
  2197. var location: [Google_Protobuf_SourceCodeInfo.Location] = []
  2198. var unknownFields = UnknownStorage()
  2199. struct Location: Sendable {
  2200. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2201. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2202. // methods supported on all messages.
  2203. /// Identifies which part of the FileDescriptorProto was defined at this
  2204. /// location.
  2205. ///
  2206. /// Each element is a field number or an index. They form a path from
  2207. /// the root FileDescriptorProto to the place where the definition appears.
  2208. /// For example, this path:
  2209. /// [ 4, 3, 2, 7, 1 ]
  2210. /// refers to:
  2211. /// file.message_type(3) // 4, 3
  2212. /// .field(7) // 2, 7
  2213. /// .name() // 1
  2214. /// This is because FileDescriptorProto.message_type has field number 4:
  2215. /// repeated DescriptorProto message_type = 4;
  2216. /// and DescriptorProto.field has field number 2:
  2217. /// repeated FieldDescriptorProto field = 2;
  2218. /// and FieldDescriptorProto.name has field number 1:
  2219. /// optional string name = 1;
  2220. ///
  2221. /// Thus, the above path gives the location of a field name. If we removed
  2222. /// the last element:
  2223. /// [ 4, 3, 2, 7 ]
  2224. /// this path refers to the whole field declaration (from the beginning
  2225. /// of the label to the terminating semicolon).
  2226. var path: [Int32] = []
  2227. /// Always has exactly three or four elements: start line, start column,
  2228. /// end line (optional, otherwise assumed same as start line), end column.
  2229. /// These are packed into a single field for efficiency. Note that line
  2230. /// and column numbers are zero-based -- typically you will want to add
  2231. /// 1 to each before displaying to a user.
  2232. var span: [Int32] = []
  2233. /// If this SourceCodeInfo represents a complete declaration, these are any
  2234. /// comments appearing before and after the declaration which appear to be
  2235. /// attached to the declaration.
  2236. ///
  2237. /// A series of line comments appearing on consecutive lines, with no other
  2238. /// tokens appearing on those lines, will be treated as a single comment.
  2239. ///
  2240. /// leading_detached_comments will keep paragraphs of comments that appear
  2241. /// before (but not connected to) the current element. Each paragraph,
  2242. /// separated by empty lines, will be one comment element in the repeated
  2243. /// field.
  2244. ///
  2245. /// Only the comment content is provided; comment markers (e.g. //) are
  2246. /// stripped out. For block comments, leading whitespace and an asterisk
  2247. /// will be stripped from the beginning of each line other than the first.
  2248. /// Newlines are included in the output.
  2249. ///
  2250. /// Examples:
  2251. ///
  2252. /// optional int32 foo = 1; // Comment attached to foo.
  2253. /// // Comment attached to bar.
  2254. /// optional int32 bar = 2;
  2255. ///
  2256. /// optional string baz = 3;
  2257. /// // Comment attached to baz.
  2258. /// // Another line attached to baz.
  2259. ///
  2260. /// // Comment attached to moo.
  2261. /// //
  2262. /// // Another line attached to moo.
  2263. /// optional double moo = 4;
  2264. ///
  2265. /// // Detached comment for corge. This is not leading or trailing comments
  2266. /// // to moo or corge because there are blank lines separating it from
  2267. /// // both.
  2268. ///
  2269. /// // Detached comment for corge paragraph 2.
  2270. ///
  2271. /// optional string corge = 5;
  2272. /// /* Block comment attached
  2273. /// * to corge. Leading asterisks
  2274. /// * will be removed. */
  2275. /// /* Block comment attached to
  2276. /// * grault. */
  2277. /// optional int32 grault = 6;
  2278. ///
  2279. /// // ignored detached comments.
  2280. var leadingComments: String {
  2281. get {return _leadingComments ?? String()}
  2282. set {_leadingComments = newValue}
  2283. }
  2284. /// Returns true if `leadingComments` has been explicitly set.
  2285. var hasLeadingComments: Bool {return self._leadingComments != nil}
  2286. /// Clears the value of `leadingComments`. Subsequent reads from it will return its default value.
  2287. mutating func clearLeadingComments() {self._leadingComments = nil}
  2288. var trailingComments: String {
  2289. get {return _trailingComments ?? String()}
  2290. set {_trailingComments = newValue}
  2291. }
  2292. /// Returns true if `trailingComments` has been explicitly set.
  2293. var hasTrailingComments: Bool {return self._trailingComments != nil}
  2294. /// Clears the value of `trailingComments`. Subsequent reads from it will return its default value.
  2295. mutating func clearTrailingComments() {self._trailingComments = nil}
  2296. var leadingDetachedComments: [String] = []
  2297. var unknownFields = UnknownStorage()
  2298. init() {}
  2299. fileprivate var _leadingComments: String? = nil
  2300. fileprivate var _trailingComments: String? = nil
  2301. }
  2302. init() {}
  2303. var _protobuf_extensionFieldValues = ExtensionFieldValueSet()
  2304. }
  2305. /// Describes the relationship between generated code and its original source
  2306. /// file. A GeneratedCodeInfo message is associated with only one generated
  2307. /// source file, but may contain references to different source .proto files.
  2308. struct Google_Protobuf_GeneratedCodeInfo: Sendable {
  2309. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2310. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2311. // methods supported on all messages.
  2312. /// An Annotation connects some span of text in generated code to an element
  2313. /// of its generating .proto file.
  2314. var annotation: [Google_Protobuf_GeneratedCodeInfo.Annotation] = []
  2315. var unknownFields = UnknownStorage()
  2316. struct Annotation: Sendable {
  2317. // SwiftProtobuf.Message conformance is added in an extension below. See the
  2318. // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
  2319. // methods supported on all messages.
  2320. /// Identifies the element in the original source .proto file. This field
  2321. /// is formatted the same as SourceCodeInfo.Location.path.
  2322. var path: [Int32] = []
  2323. /// Identifies the filesystem path to the original source .proto.
  2324. var sourceFile: String {
  2325. get {return _sourceFile ?? String()}
  2326. set {_sourceFile = newValue}
  2327. }
  2328. /// Returns true if `sourceFile` has been explicitly set.
  2329. var hasSourceFile: Bool {return self._sourceFile != nil}
  2330. /// Clears the value of `sourceFile`. Subsequent reads from it will return its default value.
  2331. mutating func clearSourceFile() {self._sourceFile = nil}
  2332. /// Identifies the starting offset in bytes in the generated code
  2333. /// that relates to the identified object.
  2334. var begin: Int32 {
  2335. get {return _begin ?? 0}
  2336. set {_begin = newValue}
  2337. }
  2338. /// Returns true if `begin` has been explicitly set.
  2339. var hasBegin: Bool {return self._begin != nil}
  2340. /// Clears the value of `begin`. Subsequent reads from it will return its default value.
  2341. mutating func clearBegin() {self._begin = nil}
  2342. /// Identifies the ending offset in bytes in the generated code that
  2343. /// relates to the identified object. The end offset should be one past
  2344. /// the last relevant byte (so the length of the text = end - begin).
  2345. var end: Int32 {
  2346. get {return _end ?? 0}
  2347. set {_end = newValue}
  2348. }
  2349. /// Returns true if `end` has been explicitly set.
  2350. var hasEnd: Bool {return self._end != nil}
  2351. /// Clears the value of `end`. Subsequent reads from it will return its default value.
  2352. mutating func clearEnd() {self._end = nil}
  2353. var semantic: Google_Protobuf_GeneratedCodeInfo.Annotation.Semantic {
  2354. get {return _semantic ?? .none}
  2355. set {_semantic = newValue}
  2356. }
  2357. /// Returns true if `semantic` has been explicitly set.
  2358. var hasSemantic: Bool {return self._semantic != nil}
  2359. /// Clears the value of `semantic`. Subsequent reads from it will return its default value.
  2360. mutating func clearSemantic() {self._semantic = nil}
  2361. var unknownFields = UnknownStorage()
  2362. /// Represents the identified object's effect on the element in the original
  2363. /// .proto file.
  2364. enum Semantic: Int, Enum, Swift.CaseIterable {
  2365. /// There is no effect or the effect is indescribable.
  2366. case none = 0
  2367. /// The element is set or otherwise mutated.
  2368. case set = 1
  2369. /// An alias to the element is returned.
  2370. case alias = 2
  2371. init() {
  2372. self = .none
  2373. }
  2374. }
  2375. init() {}
  2376. fileprivate var _sourceFile: String? = nil
  2377. fileprivate var _begin: Int32? = nil
  2378. fileprivate var _end: Int32? = nil
  2379. fileprivate var _semantic: Google_Protobuf_GeneratedCodeInfo.Annotation.Semantic? = nil
  2380. }
  2381. init() {}
  2382. }
  2383. // MARK: - Code below here is support for the SwiftProtobuf runtime.
  2384. fileprivate let _protobuf_package = "google.protobuf"
  2385. extension Google_Protobuf_Edition: _ProtoNameProviding {
  2386. static let _protobuf_nameMap: _NameMap = [
  2387. 0: .same(proto: "EDITION_UNKNOWN"),
  2388. 1: .same(proto: "EDITION_1_TEST_ONLY"),
  2389. 2: .same(proto: "EDITION_2_TEST_ONLY"),
  2390. 900: .same(proto: "EDITION_LEGACY"),
  2391. 998: .same(proto: "EDITION_PROTO2"),
  2392. 999: .same(proto: "EDITION_PROTO3"),
  2393. 1000: .same(proto: "EDITION_2023"),
  2394. 1001: .same(proto: "EDITION_2024"),
  2395. 99997: .same(proto: "EDITION_99997_TEST_ONLY"),
  2396. 99998: .same(proto: "EDITION_99998_TEST_ONLY"),
  2397. 99999: .same(proto: "EDITION_99999_TEST_ONLY"),
  2398. 2147483647: .same(proto: "EDITION_MAX"),
  2399. ]
  2400. }
  2401. extension Google_Protobuf_SymbolVisibility: _ProtoNameProviding {
  2402. static let _protobuf_nameMap: _NameMap = [
  2403. 0: .same(proto: "VISIBILITY_UNSET"),
  2404. 1: .same(proto: "VISIBILITY_LOCAL"),
  2405. 2: .same(proto: "VISIBILITY_EXPORT"),
  2406. ]
  2407. }
  2408. extension Google_Protobuf_FileDescriptorSet: Message, _MessageImplementationBase, _ProtoNameProviding {
  2409. static let protoMessageName: String = _protobuf_package + ".FileDescriptorSet"
  2410. static let _protobuf_nameMap: _NameMap = [
  2411. 1: .same(proto: "file"),
  2412. ]
  2413. public var isInitialized: Bool {
  2414. if !_protobuf_extensionFieldValues.isInitialized {return false}
  2415. if !Internal.areAllInitialized(self.file) {return false}
  2416. return true
  2417. }
  2418. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2419. while let fieldNumber = try decoder.nextFieldNumber() {
  2420. // The use of inline closures is to circumvent an issue where the compiler
  2421. // allocates stack space for every case branch when no optimizations are
  2422. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2423. switch fieldNumber {
  2424. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.file) }()
  2425. case 536000000:
  2426. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_FileDescriptorSet.self, fieldNumber: fieldNumber) }()
  2427. default: break
  2428. }
  2429. }
  2430. }
  2431. func traverse<V: Visitor>(visitor: inout V) throws {
  2432. if !self.file.isEmpty {
  2433. try visitor.visitRepeatedMessageField(value: self.file, fieldNumber: 1)
  2434. }
  2435. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 536000000, end: 536000001)
  2436. try unknownFields.traverse(visitor: &visitor)
  2437. }
  2438. static func ==(lhs: Google_Protobuf_FileDescriptorSet, rhs: Google_Protobuf_FileDescriptorSet) -> Bool {
  2439. if lhs.file != rhs.file {return false}
  2440. if lhs.unknownFields != rhs.unknownFields {return false}
  2441. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  2442. return true
  2443. }
  2444. }
  2445. extension Google_Protobuf_FileDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  2446. static let protoMessageName: String = _protobuf_package + ".FileDescriptorProto"
  2447. static let _protobuf_nameMap: _NameMap = [
  2448. 1: .same(proto: "name"),
  2449. 2: .same(proto: "package"),
  2450. 3: .same(proto: "dependency"),
  2451. 10: .standard(proto: "public_dependency"),
  2452. 11: .standard(proto: "weak_dependency"),
  2453. 15: .standard(proto: "option_dependency"),
  2454. 4: .standard(proto: "message_type"),
  2455. 5: .standard(proto: "enum_type"),
  2456. 6: .same(proto: "service"),
  2457. 7: .same(proto: "extension"),
  2458. 8: .same(proto: "options"),
  2459. 9: .standard(proto: "source_code_info"),
  2460. 12: .same(proto: "syntax"),
  2461. 14: .same(proto: "edition"),
  2462. ]
  2463. public var isInitialized: Bool {
  2464. if !Internal.areAllInitialized(self.messageType) {return false}
  2465. if !Internal.areAllInitialized(self.enumType) {return false}
  2466. if !Internal.areAllInitialized(self.service) {return false}
  2467. if !Internal.areAllInitialized(self.`extension`) {return false}
  2468. if let v = self._options, !v.isInitialized {return false}
  2469. if let v = self._sourceCodeInfo, !v.isInitialized {return false}
  2470. return true
  2471. }
  2472. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2473. while let fieldNumber = try decoder.nextFieldNumber() {
  2474. // The use of inline closures is to circumvent an issue where the compiler
  2475. // allocates stack space for every case branch when no optimizations are
  2476. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2477. switch fieldNumber {
  2478. case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
  2479. case 2: try { try decoder.decodeSingularStringField(value: &self._package) }()
  2480. case 3: try { try decoder.decodeRepeatedStringField(value: &self.dependency) }()
  2481. case 4: try { try decoder.decodeRepeatedMessageField(value: &self.messageType) }()
  2482. case 5: try { try decoder.decodeRepeatedMessageField(value: &self.enumType) }()
  2483. case 6: try { try decoder.decodeRepeatedMessageField(value: &self.service) }()
  2484. case 7: try { try decoder.decodeRepeatedMessageField(value: &self.`extension`) }()
  2485. case 8: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  2486. case 9: try { try decoder.decodeSingularMessageField(value: &self._sourceCodeInfo) }()
  2487. case 10: try { try decoder.decodeRepeatedInt32Field(value: &self.publicDependency) }()
  2488. case 11: try { try decoder.decodeRepeatedInt32Field(value: &self.weakDependency) }()
  2489. case 12: try { try decoder.decodeSingularStringField(value: &self._syntax) }()
  2490. case 14: try { try decoder.decodeSingularEnumField(value: &self._edition) }()
  2491. case 15: try { try decoder.decodeRepeatedStringField(value: &self.optionDependency) }()
  2492. default: break
  2493. }
  2494. }
  2495. }
  2496. func traverse<V: Visitor>(visitor: inout V) throws {
  2497. // The use of inline closures is to circumvent an issue where the compiler
  2498. // allocates stack space for every if/case branch local when no optimizations
  2499. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2500. // https://github.com/apple/swift-protobuf/issues/1182
  2501. try { if let v = self._name {
  2502. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  2503. } }()
  2504. try { if let v = self._package {
  2505. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  2506. } }()
  2507. if !self.dependency.isEmpty {
  2508. try visitor.visitRepeatedStringField(value: self.dependency, fieldNumber: 3)
  2509. }
  2510. if !self.messageType.isEmpty {
  2511. try visitor.visitRepeatedMessageField(value: self.messageType, fieldNumber: 4)
  2512. }
  2513. if !self.enumType.isEmpty {
  2514. try visitor.visitRepeatedMessageField(value: self.enumType, fieldNumber: 5)
  2515. }
  2516. if !self.service.isEmpty {
  2517. try visitor.visitRepeatedMessageField(value: self.service, fieldNumber: 6)
  2518. }
  2519. if !self.`extension`.isEmpty {
  2520. try visitor.visitRepeatedMessageField(value: self.`extension`, fieldNumber: 7)
  2521. }
  2522. try { if let v = self._options {
  2523. try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
  2524. } }()
  2525. try { if let v = self._sourceCodeInfo {
  2526. try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
  2527. } }()
  2528. if !self.publicDependency.isEmpty {
  2529. try visitor.visitRepeatedInt32Field(value: self.publicDependency, fieldNumber: 10)
  2530. }
  2531. if !self.weakDependency.isEmpty {
  2532. try visitor.visitRepeatedInt32Field(value: self.weakDependency, fieldNumber: 11)
  2533. }
  2534. try { if let v = self._syntax {
  2535. try visitor.visitSingularStringField(value: v, fieldNumber: 12)
  2536. } }()
  2537. try { if let v = self._edition {
  2538. try visitor.visitSingularEnumField(value: v, fieldNumber: 14)
  2539. } }()
  2540. if !self.optionDependency.isEmpty {
  2541. try visitor.visitRepeatedStringField(value: self.optionDependency, fieldNumber: 15)
  2542. }
  2543. try unknownFields.traverse(visitor: &visitor)
  2544. }
  2545. static func ==(lhs: Google_Protobuf_FileDescriptorProto, rhs: Google_Protobuf_FileDescriptorProto) -> Bool {
  2546. if lhs._name != rhs._name {return false}
  2547. if lhs._package != rhs._package {return false}
  2548. if lhs.dependency != rhs.dependency {return false}
  2549. if lhs.publicDependency != rhs.publicDependency {return false}
  2550. if lhs.weakDependency != rhs.weakDependency {return false}
  2551. if lhs.optionDependency != rhs.optionDependency {return false}
  2552. if lhs.messageType != rhs.messageType {return false}
  2553. if lhs.enumType != rhs.enumType {return false}
  2554. if lhs.service != rhs.service {return false}
  2555. if lhs.`extension` != rhs.`extension` {return false}
  2556. if lhs._options != rhs._options {return false}
  2557. if lhs._sourceCodeInfo != rhs._sourceCodeInfo {return false}
  2558. if lhs._syntax != rhs._syntax {return false}
  2559. if lhs._edition != rhs._edition {return false}
  2560. if lhs.unknownFields != rhs.unknownFields {return false}
  2561. return true
  2562. }
  2563. }
  2564. extension Google_Protobuf_DescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  2565. static let protoMessageName: String = _protobuf_package + ".DescriptorProto"
  2566. static let _protobuf_nameMap: _NameMap = [
  2567. 1: .same(proto: "name"),
  2568. 2: .same(proto: "field"),
  2569. 6: .same(proto: "extension"),
  2570. 3: .standard(proto: "nested_type"),
  2571. 4: .standard(proto: "enum_type"),
  2572. 5: .standard(proto: "extension_range"),
  2573. 8: .standard(proto: "oneof_decl"),
  2574. 7: .same(proto: "options"),
  2575. 9: .standard(proto: "reserved_range"),
  2576. 10: .standard(proto: "reserved_name"),
  2577. 11: .same(proto: "visibility"),
  2578. ]
  2579. fileprivate class _StorageClass {
  2580. var _name: String? = nil
  2581. var _field: [Google_Protobuf_FieldDescriptorProto] = []
  2582. var _extension: [Google_Protobuf_FieldDescriptorProto] = []
  2583. var _nestedType: [Google_Protobuf_DescriptorProto] = []
  2584. var _enumType: [Google_Protobuf_EnumDescriptorProto] = []
  2585. var _extensionRange: [Google_Protobuf_DescriptorProto.ExtensionRange] = []
  2586. var _oneofDecl: [Google_Protobuf_OneofDescriptorProto] = []
  2587. var _options: Google_Protobuf_MessageOptions? = nil
  2588. var _reservedRange: [Google_Protobuf_DescriptorProto.ReservedRange] = []
  2589. var _reservedName: [String] = []
  2590. var _visibility: Google_Protobuf_SymbolVisibility? = nil
  2591. // This property is used as the initial default value for new instances of the type.
  2592. // The type itself is protecting the reference to its storage via CoW semantics.
  2593. // This will force a copy to be made of this reference when the first mutation occurs;
  2594. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  2595. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  2596. private init() {}
  2597. init(copying source: _StorageClass) {
  2598. _name = source._name
  2599. _field = source._field
  2600. _extension = source._extension
  2601. _nestedType = source._nestedType
  2602. _enumType = source._enumType
  2603. _extensionRange = source._extensionRange
  2604. _oneofDecl = source._oneofDecl
  2605. _options = source._options
  2606. _reservedRange = source._reservedRange
  2607. _reservedName = source._reservedName
  2608. _visibility = source._visibility
  2609. }
  2610. }
  2611. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  2612. if !isKnownUniquelyReferenced(&_storage) {
  2613. _storage = _StorageClass(copying: _storage)
  2614. }
  2615. return _storage
  2616. }
  2617. public var isInitialized: Bool {
  2618. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  2619. if !Internal.areAllInitialized(_storage._field) {return false}
  2620. if !Internal.areAllInitialized(_storage._extension) {return false}
  2621. if !Internal.areAllInitialized(_storage._nestedType) {return false}
  2622. if !Internal.areAllInitialized(_storage._enumType) {return false}
  2623. if !Internal.areAllInitialized(_storage._extensionRange) {return false}
  2624. if !Internal.areAllInitialized(_storage._oneofDecl) {return false}
  2625. if let v = _storage._options, !v.isInitialized {return false}
  2626. return true
  2627. }
  2628. }
  2629. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2630. _ = _uniqueStorage()
  2631. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  2632. while let fieldNumber = try decoder.nextFieldNumber() {
  2633. // The use of inline closures is to circumvent an issue where the compiler
  2634. // allocates stack space for every case branch when no optimizations are
  2635. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2636. switch fieldNumber {
  2637. case 1: try { try decoder.decodeSingularStringField(value: &_storage._name) }()
  2638. case 2: try { try decoder.decodeRepeatedMessageField(value: &_storage._field) }()
  2639. case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._nestedType) }()
  2640. case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._enumType) }()
  2641. case 5: try { try decoder.decodeRepeatedMessageField(value: &_storage._extensionRange) }()
  2642. case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._extension) }()
  2643. case 7: try { try decoder.decodeSingularMessageField(value: &_storage._options) }()
  2644. case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._oneofDecl) }()
  2645. case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._reservedRange) }()
  2646. case 10: try { try decoder.decodeRepeatedStringField(value: &_storage._reservedName) }()
  2647. case 11: try { try decoder.decodeSingularEnumField(value: &_storage._visibility) }()
  2648. default: break
  2649. }
  2650. }
  2651. }
  2652. }
  2653. func traverse<V: Visitor>(visitor: inout V) throws {
  2654. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  2655. // The use of inline closures is to circumvent an issue where the compiler
  2656. // allocates stack space for every if/case branch local when no optimizations
  2657. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2658. // https://github.com/apple/swift-protobuf/issues/1182
  2659. try { if let v = _storage._name {
  2660. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  2661. } }()
  2662. if !_storage._field.isEmpty {
  2663. try visitor.visitRepeatedMessageField(value: _storage._field, fieldNumber: 2)
  2664. }
  2665. if !_storage._nestedType.isEmpty {
  2666. try visitor.visitRepeatedMessageField(value: _storage._nestedType, fieldNumber: 3)
  2667. }
  2668. if !_storage._enumType.isEmpty {
  2669. try visitor.visitRepeatedMessageField(value: _storage._enumType, fieldNumber: 4)
  2670. }
  2671. if !_storage._extensionRange.isEmpty {
  2672. try visitor.visitRepeatedMessageField(value: _storage._extensionRange, fieldNumber: 5)
  2673. }
  2674. if !_storage._extension.isEmpty {
  2675. try visitor.visitRepeatedMessageField(value: _storage._extension, fieldNumber: 6)
  2676. }
  2677. try { if let v = _storage._options {
  2678. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  2679. } }()
  2680. if !_storage._oneofDecl.isEmpty {
  2681. try visitor.visitRepeatedMessageField(value: _storage._oneofDecl, fieldNumber: 8)
  2682. }
  2683. if !_storage._reservedRange.isEmpty {
  2684. try visitor.visitRepeatedMessageField(value: _storage._reservedRange, fieldNumber: 9)
  2685. }
  2686. if !_storage._reservedName.isEmpty {
  2687. try visitor.visitRepeatedStringField(value: _storage._reservedName, fieldNumber: 10)
  2688. }
  2689. try { if let v = _storage._visibility {
  2690. try visitor.visitSingularEnumField(value: v, fieldNumber: 11)
  2691. } }()
  2692. }
  2693. try unknownFields.traverse(visitor: &visitor)
  2694. }
  2695. static func ==(lhs: Google_Protobuf_DescriptorProto, rhs: Google_Protobuf_DescriptorProto) -> Bool {
  2696. if lhs._storage !== rhs._storage {
  2697. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  2698. let _storage = _args.0
  2699. let rhs_storage = _args.1
  2700. if _storage._name != rhs_storage._name {return false}
  2701. if _storage._field != rhs_storage._field {return false}
  2702. if _storage._extension != rhs_storage._extension {return false}
  2703. if _storage._nestedType != rhs_storage._nestedType {return false}
  2704. if _storage._enumType != rhs_storage._enumType {return false}
  2705. if _storage._extensionRange != rhs_storage._extensionRange {return false}
  2706. if _storage._oneofDecl != rhs_storage._oneofDecl {return false}
  2707. if _storage._options != rhs_storage._options {return false}
  2708. if _storage._reservedRange != rhs_storage._reservedRange {return false}
  2709. if _storage._reservedName != rhs_storage._reservedName {return false}
  2710. if _storage._visibility != rhs_storage._visibility {return false}
  2711. return true
  2712. }
  2713. if !storagesAreEqual {return false}
  2714. }
  2715. if lhs.unknownFields != rhs.unknownFields {return false}
  2716. return true
  2717. }
  2718. }
  2719. extension Google_Protobuf_DescriptorProto.ExtensionRange: Message, _MessageImplementationBase, _ProtoNameProviding {
  2720. static let protoMessageName: String = Google_Protobuf_DescriptorProto.protoMessageName + ".ExtensionRange"
  2721. static let _protobuf_nameMap: _NameMap = [
  2722. 1: .same(proto: "start"),
  2723. 2: .same(proto: "end"),
  2724. 3: .same(proto: "options"),
  2725. ]
  2726. public var isInitialized: Bool {
  2727. if let v = self._options, !v.isInitialized {return false}
  2728. return true
  2729. }
  2730. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2731. while let fieldNumber = try decoder.nextFieldNumber() {
  2732. // The use of inline closures is to circumvent an issue where the compiler
  2733. // allocates stack space for every case branch when no optimizations are
  2734. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2735. switch fieldNumber {
  2736. case 1: try { try decoder.decodeSingularInt32Field(value: &self._start) }()
  2737. case 2: try { try decoder.decodeSingularInt32Field(value: &self._end) }()
  2738. case 3: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  2739. default: break
  2740. }
  2741. }
  2742. }
  2743. func traverse<V: Visitor>(visitor: inout V) throws {
  2744. // The use of inline closures is to circumvent an issue where the compiler
  2745. // allocates stack space for every if/case branch local when no optimizations
  2746. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2747. // https://github.com/apple/swift-protobuf/issues/1182
  2748. try { if let v = self._start {
  2749. try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
  2750. } }()
  2751. try { if let v = self._end {
  2752. try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
  2753. } }()
  2754. try { if let v = self._options {
  2755. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  2756. } }()
  2757. try unknownFields.traverse(visitor: &visitor)
  2758. }
  2759. static func ==(lhs: Google_Protobuf_DescriptorProto.ExtensionRange, rhs: Google_Protobuf_DescriptorProto.ExtensionRange) -> Bool {
  2760. if lhs._start != rhs._start {return false}
  2761. if lhs._end != rhs._end {return false}
  2762. if lhs._options != rhs._options {return false}
  2763. if lhs.unknownFields != rhs.unknownFields {return false}
  2764. return true
  2765. }
  2766. }
  2767. extension Google_Protobuf_DescriptorProto.ReservedRange: Message, _MessageImplementationBase, _ProtoNameProviding {
  2768. static let protoMessageName: String = Google_Protobuf_DescriptorProto.protoMessageName + ".ReservedRange"
  2769. static let _protobuf_nameMap: _NameMap = [
  2770. 1: .same(proto: "start"),
  2771. 2: .same(proto: "end"),
  2772. ]
  2773. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2774. while let fieldNumber = try decoder.nextFieldNumber() {
  2775. // The use of inline closures is to circumvent an issue where the compiler
  2776. // allocates stack space for every case branch when no optimizations are
  2777. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2778. switch fieldNumber {
  2779. case 1: try { try decoder.decodeSingularInt32Field(value: &self._start) }()
  2780. case 2: try { try decoder.decodeSingularInt32Field(value: &self._end) }()
  2781. default: break
  2782. }
  2783. }
  2784. }
  2785. func traverse<V: Visitor>(visitor: inout V) throws {
  2786. // The use of inline closures is to circumvent an issue where the compiler
  2787. // allocates stack space for every if/case branch local when no optimizations
  2788. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2789. // https://github.com/apple/swift-protobuf/issues/1182
  2790. try { if let v = self._start {
  2791. try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
  2792. } }()
  2793. try { if let v = self._end {
  2794. try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
  2795. } }()
  2796. try unknownFields.traverse(visitor: &visitor)
  2797. }
  2798. static func ==(lhs: Google_Protobuf_DescriptorProto.ReservedRange, rhs: Google_Protobuf_DescriptorProto.ReservedRange) -> Bool {
  2799. if lhs._start != rhs._start {return false}
  2800. if lhs._end != rhs._end {return false}
  2801. if lhs.unknownFields != rhs.unknownFields {return false}
  2802. return true
  2803. }
  2804. }
  2805. extension Google_Protobuf_ExtensionRangeOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  2806. static let protoMessageName: String = _protobuf_package + ".ExtensionRangeOptions"
  2807. static let _protobuf_nameMap: _NameMap = [
  2808. 999: .standard(proto: "uninterpreted_option"),
  2809. 2: .same(proto: "declaration"),
  2810. 50: .same(proto: "features"),
  2811. 3: .same(proto: "verification"),
  2812. ]
  2813. public var isInitialized: Bool {
  2814. if !_protobuf_extensionFieldValues.isInitialized {return false}
  2815. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  2816. if let v = self._features, !v.isInitialized {return false}
  2817. return true
  2818. }
  2819. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2820. while let fieldNumber = try decoder.nextFieldNumber() {
  2821. // The use of inline closures is to circumvent an issue where the compiler
  2822. // allocates stack space for every case branch when no optimizations are
  2823. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2824. switch fieldNumber {
  2825. case 2: try { try decoder.decodeRepeatedMessageField(value: &self.declaration) }()
  2826. case 3: try { try decoder.decodeSingularEnumField(value: &self._verification) }()
  2827. case 50: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  2828. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  2829. case 1000..<536870912:
  2830. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_ExtensionRangeOptions.self, fieldNumber: fieldNumber) }()
  2831. default: break
  2832. }
  2833. }
  2834. }
  2835. func traverse<V: Visitor>(visitor: inout V) throws {
  2836. // The use of inline closures is to circumvent an issue where the compiler
  2837. // allocates stack space for every if/case branch local when no optimizations
  2838. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2839. // https://github.com/apple/swift-protobuf/issues/1182
  2840. if !self.declaration.isEmpty {
  2841. try visitor.visitRepeatedMessageField(value: self.declaration, fieldNumber: 2)
  2842. }
  2843. try { if let v = self._verification {
  2844. try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
  2845. } }()
  2846. try { if let v = self._features {
  2847. try visitor.visitSingularMessageField(value: v, fieldNumber: 50)
  2848. } }()
  2849. if !self.uninterpretedOption.isEmpty {
  2850. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  2851. }
  2852. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  2853. try unknownFields.traverse(visitor: &visitor)
  2854. }
  2855. static func ==(lhs: Google_Protobuf_ExtensionRangeOptions, rhs: Google_Protobuf_ExtensionRangeOptions) -> Bool {
  2856. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  2857. if lhs.declaration != rhs.declaration {return false}
  2858. if lhs._features != rhs._features {return false}
  2859. if lhs._verification != rhs._verification {return false}
  2860. if lhs.unknownFields != rhs.unknownFields {return false}
  2861. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  2862. return true
  2863. }
  2864. }
  2865. extension Google_Protobuf_ExtensionRangeOptions.VerificationState: _ProtoNameProviding {
  2866. static let _protobuf_nameMap: _NameMap = [
  2867. 0: .same(proto: "DECLARATION"),
  2868. 1: .same(proto: "UNVERIFIED"),
  2869. ]
  2870. }
  2871. extension Google_Protobuf_ExtensionRangeOptions.Declaration: Message, _MessageImplementationBase, _ProtoNameProviding {
  2872. static let protoMessageName: String = Google_Protobuf_ExtensionRangeOptions.protoMessageName + ".Declaration"
  2873. static let _protobuf_nameMap: _NameMap = [
  2874. 1: .same(proto: "number"),
  2875. 2: .standard(proto: "full_name"),
  2876. 3: .same(proto: "type"),
  2877. 5: .same(proto: "reserved"),
  2878. 6: .same(proto: "repeated"),
  2879. ]
  2880. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2881. while let fieldNumber = try decoder.nextFieldNumber() {
  2882. // The use of inline closures is to circumvent an issue where the compiler
  2883. // allocates stack space for every case branch when no optimizations are
  2884. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2885. switch fieldNumber {
  2886. case 1: try { try decoder.decodeSingularInt32Field(value: &self._number) }()
  2887. case 2: try { try decoder.decodeSingularStringField(value: &self._fullName) }()
  2888. case 3: try { try decoder.decodeSingularStringField(value: &self._type) }()
  2889. case 5: try { try decoder.decodeSingularBoolField(value: &self._reserved) }()
  2890. case 6: try { try decoder.decodeSingularBoolField(value: &self._repeated) }()
  2891. default: break
  2892. }
  2893. }
  2894. }
  2895. func traverse<V: Visitor>(visitor: inout V) throws {
  2896. // The use of inline closures is to circumvent an issue where the compiler
  2897. // allocates stack space for every if/case branch local when no optimizations
  2898. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2899. // https://github.com/apple/swift-protobuf/issues/1182
  2900. try { if let v = self._number {
  2901. try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
  2902. } }()
  2903. try { if let v = self._fullName {
  2904. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  2905. } }()
  2906. try { if let v = self._type {
  2907. try visitor.visitSingularStringField(value: v, fieldNumber: 3)
  2908. } }()
  2909. try { if let v = self._reserved {
  2910. try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
  2911. } }()
  2912. try { if let v = self._repeated {
  2913. try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
  2914. } }()
  2915. try unknownFields.traverse(visitor: &visitor)
  2916. }
  2917. static func ==(lhs: Google_Protobuf_ExtensionRangeOptions.Declaration, rhs: Google_Protobuf_ExtensionRangeOptions.Declaration) -> Bool {
  2918. if lhs._number != rhs._number {return false}
  2919. if lhs._fullName != rhs._fullName {return false}
  2920. if lhs._type != rhs._type {return false}
  2921. if lhs._reserved != rhs._reserved {return false}
  2922. if lhs._repeated != rhs._repeated {return false}
  2923. if lhs.unknownFields != rhs.unknownFields {return false}
  2924. return true
  2925. }
  2926. }
  2927. extension Google_Protobuf_FieldDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  2928. static let protoMessageName: String = _protobuf_package + ".FieldDescriptorProto"
  2929. static let _protobuf_nameMap: _NameMap = [
  2930. 1: .same(proto: "name"),
  2931. 3: .same(proto: "number"),
  2932. 4: .same(proto: "label"),
  2933. 5: .same(proto: "type"),
  2934. 6: .standard(proto: "type_name"),
  2935. 2: .same(proto: "extendee"),
  2936. 7: .standard(proto: "default_value"),
  2937. 9: .standard(proto: "oneof_index"),
  2938. 10: .standard(proto: "json_name"),
  2939. 8: .same(proto: "options"),
  2940. 17: .standard(proto: "proto3_optional"),
  2941. ]
  2942. public var isInitialized: Bool {
  2943. if let v = self._options, !v.isInitialized {return false}
  2944. return true
  2945. }
  2946. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  2947. while let fieldNumber = try decoder.nextFieldNumber() {
  2948. // The use of inline closures is to circumvent an issue where the compiler
  2949. // allocates stack space for every case branch when no optimizations are
  2950. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  2951. switch fieldNumber {
  2952. case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
  2953. case 2: try { try decoder.decodeSingularStringField(value: &self._extendee) }()
  2954. case 3: try { try decoder.decodeSingularInt32Field(value: &self._number) }()
  2955. case 4: try { try decoder.decodeSingularEnumField(value: &self._label) }()
  2956. case 5: try { try decoder.decodeSingularEnumField(value: &self._type) }()
  2957. case 6: try { try decoder.decodeSingularStringField(value: &self._typeName) }()
  2958. case 7: try { try decoder.decodeSingularStringField(value: &self._defaultValue) }()
  2959. case 8: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  2960. case 9: try { try decoder.decodeSingularInt32Field(value: &self._oneofIndex) }()
  2961. case 10: try { try decoder.decodeSingularStringField(value: &self._jsonName) }()
  2962. case 17: try { try decoder.decodeSingularBoolField(value: &self._proto3Optional) }()
  2963. default: break
  2964. }
  2965. }
  2966. }
  2967. func traverse<V: Visitor>(visitor: inout V) throws {
  2968. // The use of inline closures is to circumvent an issue where the compiler
  2969. // allocates stack space for every if/case branch local when no optimizations
  2970. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  2971. // https://github.com/apple/swift-protobuf/issues/1182
  2972. try { if let v = self._name {
  2973. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  2974. } }()
  2975. try { if let v = self._extendee {
  2976. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  2977. } }()
  2978. try { if let v = self._number {
  2979. try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
  2980. } }()
  2981. try { if let v = self._label {
  2982. try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
  2983. } }()
  2984. try { if let v = self._type {
  2985. try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
  2986. } }()
  2987. try { if let v = self._typeName {
  2988. try visitor.visitSingularStringField(value: v, fieldNumber: 6)
  2989. } }()
  2990. try { if let v = self._defaultValue {
  2991. try visitor.visitSingularStringField(value: v, fieldNumber: 7)
  2992. } }()
  2993. try { if let v = self._options {
  2994. try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
  2995. } }()
  2996. try { if let v = self._oneofIndex {
  2997. try visitor.visitSingularInt32Field(value: v, fieldNumber: 9)
  2998. } }()
  2999. try { if let v = self._jsonName {
  3000. try visitor.visitSingularStringField(value: v, fieldNumber: 10)
  3001. } }()
  3002. try { if let v = self._proto3Optional {
  3003. try visitor.visitSingularBoolField(value: v, fieldNumber: 17)
  3004. } }()
  3005. try unknownFields.traverse(visitor: &visitor)
  3006. }
  3007. static func ==(lhs: Google_Protobuf_FieldDescriptorProto, rhs: Google_Protobuf_FieldDescriptorProto) -> Bool {
  3008. if lhs._name != rhs._name {return false}
  3009. if lhs._number != rhs._number {return false}
  3010. if lhs._label != rhs._label {return false}
  3011. if lhs._type != rhs._type {return false}
  3012. if lhs._typeName != rhs._typeName {return false}
  3013. if lhs._extendee != rhs._extendee {return false}
  3014. if lhs._defaultValue != rhs._defaultValue {return false}
  3015. if lhs._oneofIndex != rhs._oneofIndex {return false}
  3016. if lhs._jsonName != rhs._jsonName {return false}
  3017. if lhs._options != rhs._options {return false}
  3018. if lhs._proto3Optional != rhs._proto3Optional {return false}
  3019. if lhs.unknownFields != rhs.unknownFields {return false}
  3020. return true
  3021. }
  3022. }
  3023. extension Google_Protobuf_FieldDescriptorProto.TypeEnum: _ProtoNameProviding {
  3024. static let _protobuf_nameMap: _NameMap = [
  3025. 1: .same(proto: "TYPE_DOUBLE"),
  3026. 2: .same(proto: "TYPE_FLOAT"),
  3027. 3: .same(proto: "TYPE_INT64"),
  3028. 4: .same(proto: "TYPE_UINT64"),
  3029. 5: .same(proto: "TYPE_INT32"),
  3030. 6: .same(proto: "TYPE_FIXED64"),
  3031. 7: .same(proto: "TYPE_FIXED32"),
  3032. 8: .same(proto: "TYPE_BOOL"),
  3033. 9: .same(proto: "TYPE_STRING"),
  3034. 10: .same(proto: "TYPE_GROUP"),
  3035. 11: .same(proto: "TYPE_MESSAGE"),
  3036. 12: .same(proto: "TYPE_BYTES"),
  3037. 13: .same(proto: "TYPE_UINT32"),
  3038. 14: .same(proto: "TYPE_ENUM"),
  3039. 15: .same(proto: "TYPE_SFIXED32"),
  3040. 16: .same(proto: "TYPE_SFIXED64"),
  3041. 17: .same(proto: "TYPE_SINT32"),
  3042. 18: .same(proto: "TYPE_SINT64"),
  3043. ]
  3044. }
  3045. extension Google_Protobuf_FieldDescriptorProto.Label: _ProtoNameProviding {
  3046. static let _protobuf_nameMap: _NameMap = [
  3047. 1: .same(proto: "LABEL_OPTIONAL"),
  3048. 2: .same(proto: "LABEL_REQUIRED"),
  3049. 3: .same(proto: "LABEL_REPEATED"),
  3050. ]
  3051. }
  3052. extension Google_Protobuf_OneofDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  3053. static let protoMessageName: String = _protobuf_package + ".OneofDescriptorProto"
  3054. static let _protobuf_nameMap: _NameMap = [
  3055. 1: .same(proto: "name"),
  3056. 2: .same(proto: "options"),
  3057. ]
  3058. public var isInitialized: Bool {
  3059. if let v = self._options, !v.isInitialized {return false}
  3060. return true
  3061. }
  3062. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3063. while let fieldNumber = try decoder.nextFieldNumber() {
  3064. // The use of inline closures is to circumvent an issue where the compiler
  3065. // allocates stack space for every case branch when no optimizations are
  3066. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3067. switch fieldNumber {
  3068. case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
  3069. case 2: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  3070. default: break
  3071. }
  3072. }
  3073. }
  3074. func traverse<V: Visitor>(visitor: inout V) throws {
  3075. // The use of inline closures is to circumvent an issue where the compiler
  3076. // allocates stack space for every if/case branch local when no optimizations
  3077. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3078. // https://github.com/apple/swift-protobuf/issues/1182
  3079. try { if let v = self._name {
  3080. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3081. } }()
  3082. try { if let v = self._options {
  3083. try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
  3084. } }()
  3085. try unknownFields.traverse(visitor: &visitor)
  3086. }
  3087. static func ==(lhs: Google_Protobuf_OneofDescriptorProto, rhs: Google_Protobuf_OneofDescriptorProto) -> Bool {
  3088. if lhs._name != rhs._name {return false}
  3089. if lhs._options != rhs._options {return false}
  3090. if lhs.unknownFields != rhs.unknownFields {return false}
  3091. return true
  3092. }
  3093. }
  3094. extension Google_Protobuf_EnumDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  3095. static let protoMessageName: String = _protobuf_package + ".EnumDescriptorProto"
  3096. static let _protobuf_nameMap: _NameMap = [
  3097. 1: .same(proto: "name"),
  3098. 2: .same(proto: "value"),
  3099. 3: .same(proto: "options"),
  3100. 4: .standard(proto: "reserved_range"),
  3101. 5: .standard(proto: "reserved_name"),
  3102. 6: .same(proto: "visibility"),
  3103. ]
  3104. fileprivate class _StorageClass {
  3105. var _name: String? = nil
  3106. var _value: [Google_Protobuf_EnumValueDescriptorProto] = []
  3107. var _options: Google_Protobuf_EnumOptions? = nil
  3108. var _reservedRange: [Google_Protobuf_EnumDescriptorProto.EnumReservedRange] = []
  3109. var _reservedName: [String] = []
  3110. var _visibility: Google_Protobuf_SymbolVisibility? = nil
  3111. // This property is used as the initial default value for new instances of the type.
  3112. // The type itself is protecting the reference to its storage via CoW semantics.
  3113. // This will force a copy to be made of this reference when the first mutation occurs;
  3114. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  3115. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  3116. private init() {}
  3117. init(copying source: _StorageClass) {
  3118. _name = source._name
  3119. _value = source._value
  3120. _options = source._options
  3121. _reservedRange = source._reservedRange
  3122. _reservedName = source._reservedName
  3123. _visibility = source._visibility
  3124. }
  3125. }
  3126. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  3127. if !isKnownUniquelyReferenced(&_storage) {
  3128. _storage = _StorageClass(copying: _storage)
  3129. }
  3130. return _storage
  3131. }
  3132. public var isInitialized: Bool {
  3133. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3134. if !Internal.areAllInitialized(_storage._value) {return false}
  3135. if let v = _storage._options, !v.isInitialized {return false}
  3136. return true
  3137. }
  3138. }
  3139. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3140. _ = _uniqueStorage()
  3141. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3142. while let fieldNumber = try decoder.nextFieldNumber() {
  3143. // The use of inline closures is to circumvent an issue where the compiler
  3144. // allocates stack space for every case branch when no optimizations are
  3145. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3146. switch fieldNumber {
  3147. case 1: try { try decoder.decodeSingularStringField(value: &_storage._name) }()
  3148. case 2: try { try decoder.decodeRepeatedMessageField(value: &_storage._value) }()
  3149. case 3: try { try decoder.decodeSingularMessageField(value: &_storage._options) }()
  3150. case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._reservedRange) }()
  3151. case 5: try { try decoder.decodeRepeatedStringField(value: &_storage._reservedName) }()
  3152. case 6: try { try decoder.decodeSingularEnumField(value: &_storage._visibility) }()
  3153. default: break
  3154. }
  3155. }
  3156. }
  3157. }
  3158. func traverse<V: Visitor>(visitor: inout V) throws {
  3159. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3160. // The use of inline closures is to circumvent an issue where the compiler
  3161. // allocates stack space for every if/case branch local when no optimizations
  3162. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3163. // https://github.com/apple/swift-protobuf/issues/1182
  3164. try { if let v = _storage._name {
  3165. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3166. } }()
  3167. if !_storage._value.isEmpty {
  3168. try visitor.visitRepeatedMessageField(value: _storage._value, fieldNumber: 2)
  3169. }
  3170. try { if let v = _storage._options {
  3171. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  3172. } }()
  3173. if !_storage._reservedRange.isEmpty {
  3174. try visitor.visitRepeatedMessageField(value: _storage._reservedRange, fieldNumber: 4)
  3175. }
  3176. if !_storage._reservedName.isEmpty {
  3177. try visitor.visitRepeatedStringField(value: _storage._reservedName, fieldNumber: 5)
  3178. }
  3179. try { if let v = _storage._visibility {
  3180. try visitor.visitSingularEnumField(value: v, fieldNumber: 6)
  3181. } }()
  3182. }
  3183. try unknownFields.traverse(visitor: &visitor)
  3184. }
  3185. static func ==(lhs: Google_Protobuf_EnumDescriptorProto, rhs: Google_Protobuf_EnumDescriptorProto) -> Bool {
  3186. if lhs._storage !== rhs._storage {
  3187. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  3188. let _storage = _args.0
  3189. let rhs_storage = _args.1
  3190. if _storage._name != rhs_storage._name {return false}
  3191. if _storage._value != rhs_storage._value {return false}
  3192. if _storage._options != rhs_storage._options {return false}
  3193. if _storage._reservedRange != rhs_storage._reservedRange {return false}
  3194. if _storage._reservedName != rhs_storage._reservedName {return false}
  3195. if _storage._visibility != rhs_storage._visibility {return false}
  3196. return true
  3197. }
  3198. if !storagesAreEqual {return false}
  3199. }
  3200. if lhs.unknownFields != rhs.unknownFields {return false}
  3201. return true
  3202. }
  3203. }
  3204. extension Google_Protobuf_EnumDescriptorProto.EnumReservedRange: Message, _MessageImplementationBase, _ProtoNameProviding {
  3205. static let protoMessageName: String = Google_Protobuf_EnumDescriptorProto.protoMessageName + ".EnumReservedRange"
  3206. static let _protobuf_nameMap: _NameMap = [
  3207. 1: .same(proto: "start"),
  3208. 2: .same(proto: "end"),
  3209. ]
  3210. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3211. while let fieldNumber = try decoder.nextFieldNumber() {
  3212. // The use of inline closures is to circumvent an issue where the compiler
  3213. // allocates stack space for every case branch when no optimizations are
  3214. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3215. switch fieldNumber {
  3216. case 1: try { try decoder.decodeSingularInt32Field(value: &self._start) }()
  3217. case 2: try { try decoder.decodeSingularInt32Field(value: &self._end) }()
  3218. default: break
  3219. }
  3220. }
  3221. }
  3222. func traverse<V: Visitor>(visitor: inout V) throws {
  3223. // The use of inline closures is to circumvent an issue where the compiler
  3224. // allocates stack space for every if/case branch local when no optimizations
  3225. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3226. // https://github.com/apple/swift-protobuf/issues/1182
  3227. try { if let v = self._start {
  3228. try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
  3229. } }()
  3230. try { if let v = self._end {
  3231. try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
  3232. } }()
  3233. try unknownFields.traverse(visitor: &visitor)
  3234. }
  3235. static func ==(lhs: Google_Protobuf_EnumDescriptorProto.EnumReservedRange, rhs: Google_Protobuf_EnumDescriptorProto.EnumReservedRange) -> Bool {
  3236. if lhs._start != rhs._start {return false}
  3237. if lhs._end != rhs._end {return false}
  3238. if lhs.unknownFields != rhs.unknownFields {return false}
  3239. return true
  3240. }
  3241. }
  3242. extension Google_Protobuf_EnumValueDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  3243. static let protoMessageName: String = _protobuf_package + ".EnumValueDescriptorProto"
  3244. static let _protobuf_nameMap: _NameMap = [
  3245. 1: .same(proto: "name"),
  3246. 2: .same(proto: "number"),
  3247. 3: .same(proto: "options"),
  3248. ]
  3249. fileprivate class _StorageClass {
  3250. var _name: String? = nil
  3251. var _number: Int32? = nil
  3252. var _options: Google_Protobuf_EnumValueOptions? = nil
  3253. // This property is used as the initial default value for new instances of the type.
  3254. // The type itself is protecting the reference to its storage via CoW semantics.
  3255. // This will force a copy to be made of this reference when the first mutation occurs;
  3256. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  3257. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  3258. private init() {}
  3259. init(copying source: _StorageClass) {
  3260. _name = source._name
  3261. _number = source._number
  3262. _options = source._options
  3263. }
  3264. }
  3265. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  3266. if !isKnownUniquelyReferenced(&_storage) {
  3267. _storage = _StorageClass(copying: _storage)
  3268. }
  3269. return _storage
  3270. }
  3271. public var isInitialized: Bool {
  3272. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3273. if let v = _storage._options, !v.isInitialized {return false}
  3274. return true
  3275. }
  3276. }
  3277. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3278. _ = _uniqueStorage()
  3279. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3280. while let fieldNumber = try decoder.nextFieldNumber() {
  3281. // The use of inline closures is to circumvent an issue where the compiler
  3282. // allocates stack space for every case branch when no optimizations are
  3283. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3284. switch fieldNumber {
  3285. case 1: try { try decoder.decodeSingularStringField(value: &_storage._name) }()
  3286. case 2: try { try decoder.decodeSingularInt32Field(value: &_storage._number) }()
  3287. case 3: try { try decoder.decodeSingularMessageField(value: &_storage._options) }()
  3288. default: break
  3289. }
  3290. }
  3291. }
  3292. }
  3293. func traverse<V: Visitor>(visitor: inout V) throws {
  3294. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3295. // The use of inline closures is to circumvent an issue where the compiler
  3296. // allocates stack space for every if/case branch local when no optimizations
  3297. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3298. // https://github.com/apple/swift-protobuf/issues/1182
  3299. try { if let v = _storage._name {
  3300. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3301. } }()
  3302. try { if let v = _storage._number {
  3303. try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
  3304. } }()
  3305. try { if let v = _storage._options {
  3306. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  3307. } }()
  3308. }
  3309. try unknownFields.traverse(visitor: &visitor)
  3310. }
  3311. static func ==(lhs: Google_Protobuf_EnumValueDescriptorProto, rhs: Google_Protobuf_EnumValueDescriptorProto) -> Bool {
  3312. if lhs._storage !== rhs._storage {
  3313. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  3314. let _storage = _args.0
  3315. let rhs_storage = _args.1
  3316. if _storage._name != rhs_storage._name {return false}
  3317. if _storage._number != rhs_storage._number {return false}
  3318. if _storage._options != rhs_storage._options {return false}
  3319. return true
  3320. }
  3321. if !storagesAreEqual {return false}
  3322. }
  3323. if lhs.unknownFields != rhs.unknownFields {return false}
  3324. return true
  3325. }
  3326. }
  3327. extension Google_Protobuf_ServiceDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  3328. static let protoMessageName: String = _protobuf_package + ".ServiceDescriptorProto"
  3329. static let _protobuf_nameMap: _NameMap = [
  3330. 1: .same(proto: "name"),
  3331. 2: .same(proto: "method"),
  3332. 3: .same(proto: "options"),
  3333. ]
  3334. public var isInitialized: Bool {
  3335. if !Internal.areAllInitialized(self.method) {return false}
  3336. if let v = self._options, !v.isInitialized {return false}
  3337. return true
  3338. }
  3339. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3340. while let fieldNumber = try decoder.nextFieldNumber() {
  3341. // The use of inline closures is to circumvent an issue where the compiler
  3342. // allocates stack space for every case branch when no optimizations are
  3343. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3344. switch fieldNumber {
  3345. case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
  3346. case 2: try { try decoder.decodeRepeatedMessageField(value: &self.method) }()
  3347. case 3: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  3348. default: break
  3349. }
  3350. }
  3351. }
  3352. func traverse<V: Visitor>(visitor: inout V) throws {
  3353. // The use of inline closures is to circumvent an issue where the compiler
  3354. // allocates stack space for every if/case branch local when no optimizations
  3355. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3356. // https://github.com/apple/swift-protobuf/issues/1182
  3357. try { if let v = self._name {
  3358. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3359. } }()
  3360. if !self.method.isEmpty {
  3361. try visitor.visitRepeatedMessageField(value: self.method, fieldNumber: 2)
  3362. }
  3363. try { if let v = self._options {
  3364. try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
  3365. } }()
  3366. try unknownFields.traverse(visitor: &visitor)
  3367. }
  3368. static func ==(lhs: Google_Protobuf_ServiceDescriptorProto, rhs: Google_Protobuf_ServiceDescriptorProto) -> Bool {
  3369. if lhs._name != rhs._name {return false}
  3370. if lhs.method != rhs.method {return false}
  3371. if lhs._options != rhs._options {return false}
  3372. if lhs.unknownFields != rhs.unknownFields {return false}
  3373. return true
  3374. }
  3375. }
  3376. extension Google_Protobuf_MethodDescriptorProto: Message, _MessageImplementationBase, _ProtoNameProviding {
  3377. static let protoMessageName: String = _protobuf_package + ".MethodDescriptorProto"
  3378. static let _protobuf_nameMap: _NameMap = [
  3379. 1: .same(proto: "name"),
  3380. 2: .standard(proto: "input_type"),
  3381. 3: .standard(proto: "output_type"),
  3382. 4: .same(proto: "options"),
  3383. 5: .standard(proto: "client_streaming"),
  3384. 6: .standard(proto: "server_streaming"),
  3385. ]
  3386. public var isInitialized: Bool {
  3387. if let v = self._options, !v.isInitialized {return false}
  3388. return true
  3389. }
  3390. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3391. while let fieldNumber = try decoder.nextFieldNumber() {
  3392. // The use of inline closures is to circumvent an issue where the compiler
  3393. // allocates stack space for every case branch when no optimizations are
  3394. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3395. switch fieldNumber {
  3396. case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
  3397. case 2: try { try decoder.decodeSingularStringField(value: &self._inputType) }()
  3398. case 3: try { try decoder.decodeSingularStringField(value: &self._outputType) }()
  3399. case 4: try { try decoder.decodeSingularMessageField(value: &self._options) }()
  3400. case 5: try { try decoder.decodeSingularBoolField(value: &self._clientStreaming) }()
  3401. case 6: try { try decoder.decodeSingularBoolField(value: &self._serverStreaming) }()
  3402. default: break
  3403. }
  3404. }
  3405. }
  3406. func traverse<V: Visitor>(visitor: inout V) throws {
  3407. // The use of inline closures is to circumvent an issue where the compiler
  3408. // allocates stack space for every if/case branch local when no optimizations
  3409. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3410. // https://github.com/apple/swift-protobuf/issues/1182
  3411. try { if let v = self._name {
  3412. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3413. } }()
  3414. try { if let v = self._inputType {
  3415. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  3416. } }()
  3417. try { if let v = self._outputType {
  3418. try visitor.visitSingularStringField(value: v, fieldNumber: 3)
  3419. } }()
  3420. try { if let v = self._options {
  3421. try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
  3422. } }()
  3423. try { if let v = self._clientStreaming {
  3424. try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
  3425. } }()
  3426. try { if let v = self._serverStreaming {
  3427. try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
  3428. } }()
  3429. try unknownFields.traverse(visitor: &visitor)
  3430. }
  3431. static func ==(lhs: Google_Protobuf_MethodDescriptorProto, rhs: Google_Protobuf_MethodDescriptorProto) -> Bool {
  3432. if lhs._name != rhs._name {return false}
  3433. if lhs._inputType != rhs._inputType {return false}
  3434. if lhs._outputType != rhs._outputType {return false}
  3435. if lhs._options != rhs._options {return false}
  3436. if lhs._clientStreaming != rhs._clientStreaming {return false}
  3437. if lhs._serverStreaming != rhs._serverStreaming {return false}
  3438. if lhs.unknownFields != rhs.unknownFields {return false}
  3439. return true
  3440. }
  3441. }
  3442. extension Google_Protobuf_FileOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  3443. static let protoMessageName: String = _protobuf_package + ".FileOptions"
  3444. static let _protobuf_nameMap: _NameMap = [
  3445. 1: .standard(proto: "java_package"),
  3446. 8: .standard(proto: "java_outer_classname"),
  3447. 10: .standard(proto: "java_multiple_files"),
  3448. 20: .standard(proto: "java_generate_equals_and_hash"),
  3449. 27: .standard(proto: "java_string_check_utf8"),
  3450. 9: .standard(proto: "optimize_for"),
  3451. 11: .standard(proto: "go_package"),
  3452. 16: .standard(proto: "cc_generic_services"),
  3453. 17: .standard(proto: "java_generic_services"),
  3454. 18: .standard(proto: "py_generic_services"),
  3455. 23: .same(proto: "deprecated"),
  3456. 31: .standard(proto: "cc_enable_arenas"),
  3457. 36: .standard(proto: "objc_class_prefix"),
  3458. 37: .standard(proto: "csharp_namespace"),
  3459. 39: .standard(proto: "swift_prefix"),
  3460. 40: .standard(proto: "php_class_prefix"),
  3461. 41: .standard(proto: "php_namespace"),
  3462. 44: .standard(proto: "php_metadata_namespace"),
  3463. 45: .standard(proto: "ruby_package"),
  3464. 50: .same(proto: "features"),
  3465. 999: .standard(proto: "uninterpreted_option"),
  3466. ]
  3467. fileprivate class _StorageClass {
  3468. var _javaPackage: String? = nil
  3469. var _javaOuterClassname: String? = nil
  3470. var _javaMultipleFiles: Bool? = nil
  3471. var _javaGenerateEqualsAndHash: Bool? = nil
  3472. var _javaStringCheckUtf8: Bool? = nil
  3473. var _optimizeFor: Google_Protobuf_FileOptions.OptimizeMode? = nil
  3474. var _goPackage: String? = nil
  3475. var _ccGenericServices: Bool? = nil
  3476. var _javaGenericServices: Bool? = nil
  3477. var _pyGenericServices: Bool? = nil
  3478. var _deprecated: Bool? = nil
  3479. var _ccEnableArenas: Bool? = nil
  3480. var _objcClassPrefix: String? = nil
  3481. var _csharpNamespace: String? = nil
  3482. var _swiftPrefix: String? = nil
  3483. var _phpClassPrefix: String? = nil
  3484. var _phpNamespace: String? = nil
  3485. var _phpMetadataNamespace: String? = nil
  3486. var _rubyPackage: String? = nil
  3487. var _features: Google_Protobuf_FeatureSet? = nil
  3488. var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  3489. // This property is used as the initial default value for new instances of the type.
  3490. // The type itself is protecting the reference to its storage via CoW semantics.
  3491. // This will force a copy to be made of this reference when the first mutation occurs;
  3492. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  3493. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  3494. private init() {}
  3495. init(copying source: _StorageClass) {
  3496. _javaPackage = source._javaPackage
  3497. _javaOuterClassname = source._javaOuterClassname
  3498. _javaMultipleFiles = source._javaMultipleFiles
  3499. _javaGenerateEqualsAndHash = source._javaGenerateEqualsAndHash
  3500. _javaStringCheckUtf8 = source._javaStringCheckUtf8
  3501. _optimizeFor = source._optimizeFor
  3502. _goPackage = source._goPackage
  3503. _ccGenericServices = source._ccGenericServices
  3504. _javaGenericServices = source._javaGenericServices
  3505. _pyGenericServices = source._pyGenericServices
  3506. _deprecated = source._deprecated
  3507. _ccEnableArenas = source._ccEnableArenas
  3508. _objcClassPrefix = source._objcClassPrefix
  3509. _csharpNamespace = source._csharpNamespace
  3510. _swiftPrefix = source._swiftPrefix
  3511. _phpClassPrefix = source._phpClassPrefix
  3512. _phpNamespace = source._phpNamespace
  3513. _phpMetadataNamespace = source._phpMetadataNamespace
  3514. _rubyPackage = source._rubyPackage
  3515. _features = source._features
  3516. _uninterpretedOption = source._uninterpretedOption
  3517. }
  3518. }
  3519. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  3520. if !isKnownUniquelyReferenced(&_storage) {
  3521. _storage = _StorageClass(copying: _storage)
  3522. }
  3523. return _storage
  3524. }
  3525. public var isInitialized: Bool {
  3526. if !_protobuf_extensionFieldValues.isInitialized {return false}
  3527. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3528. if let v = _storage._features, !v.isInitialized {return false}
  3529. if !Internal.areAllInitialized(_storage._uninterpretedOption) {return false}
  3530. return true
  3531. }
  3532. }
  3533. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3534. _ = _uniqueStorage()
  3535. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3536. while let fieldNumber = try decoder.nextFieldNumber() {
  3537. // The use of inline closures is to circumvent an issue where the compiler
  3538. // allocates stack space for every case branch when no optimizations are
  3539. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3540. switch fieldNumber {
  3541. case 1: try { try decoder.decodeSingularStringField(value: &_storage._javaPackage) }()
  3542. case 8: try { try decoder.decodeSingularStringField(value: &_storage._javaOuterClassname) }()
  3543. case 9: try { try decoder.decodeSingularEnumField(value: &_storage._optimizeFor) }()
  3544. case 10: try { try decoder.decodeSingularBoolField(value: &_storage._javaMultipleFiles) }()
  3545. case 11: try { try decoder.decodeSingularStringField(value: &_storage._goPackage) }()
  3546. case 16: try { try decoder.decodeSingularBoolField(value: &_storage._ccGenericServices) }()
  3547. case 17: try { try decoder.decodeSingularBoolField(value: &_storage._javaGenericServices) }()
  3548. case 18: try { try decoder.decodeSingularBoolField(value: &_storage._pyGenericServices) }()
  3549. case 20: try { try decoder.decodeSingularBoolField(value: &_storage._javaGenerateEqualsAndHash) }()
  3550. case 23: try { try decoder.decodeSingularBoolField(value: &_storage._deprecated) }()
  3551. case 27: try { try decoder.decodeSingularBoolField(value: &_storage._javaStringCheckUtf8) }()
  3552. case 31: try { try decoder.decodeSingularBoolField(value: &_storage._ccEnableArenas) }()
  3553. case 36: try { try decoder.decodeSingularStringField(value: &_storage._objcClassPrefix) }()
  3554. case 37: try { try decoder.decodeSingularStringField(value: &_storage._csharpNamespace) }()
  3555. case 39: try { try decoder.decodeSingularStringField(value: &_storage._swiftPrefix) }()
  3556. case 40: try { try decoder.decodeSingularStringField(value: &_storage._phpClassPrefix) }()
  3557. case 41: try { try decoder.decodeSingularStringField(value: &_storage._phpNamespace) }()
  3558. case 44: try { try decoder.decodeSingularStringField(value: &_storage._phpMetadataNamespace) }()
  3559. case 45: try { try decoder.decodeSingularStringField(value: &_storage._rubyPackage) }()
  3560. case 50: try { try decoder.decodeSingularMessageField(value: &_storage._features) }()
  3561. case 999: try { try decoder.decodeRepeatedMessageField(value: &_storage._uninterpretedOption) }()
  3562. case 1000..<536870912:
  3563. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_FileOptions.self, fieldNumber: fieldNumber) }()
  3564. default: break
  3565. }
  3566. }
  3567. }
  3568. }
  3569. func traverse<V: Visitor>(visitor: inout V) throws {
  3570. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3571. // The use of inline closures is to circumvent an issue where the compiler
  3572. // allocates stack space for every if/case branch local when no optimizations
  3573. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3574. // https://github.com/apple/swift-protobuf/issues/1182
  3575. try { if let v = _storage._javaPackage {
  3576. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  3577. } }()
  3578. try { if let v = _storage._javaOuterClassname {
  3579. try visitor.visitSingularStringField(value: v, fieldNumber: 8)
  3580. } }()
  3581. try { if let v = _storage._optimizeFor {
  3582. try visitor.visitSingularEnumField(value: v, fieldNumber: 9)
  3583. } }()
  3584. try { if let v = _storage._javaMultipleFiles {
  3585. try visitor.visitSingularBoolField(value: v, fieldNumber: 10)
  3586. } }()
  3587. try { if let v = _storage._goPackage {
  3588. try visitor.visitSingularStringField(value: v, fieldNumber: 11)
  3589. } }()
  3590. try { if let v = _storage._ccGenericServices {
  3591. try visitor.visitSingularBoolField(value: v, fieldNumber: 16)
  3592. } }()
  3593. try { if let v = _storage._javaGenericServices {
  3594. try visitor.visitSingularBoolField(value: v, fieldNumber: 17)
  3595. } }()
  3596. try { if let v = _storage._pyGenericServices {
  3597. try visitor.visitSingularBoolField(value: v, fieldNumber: 18)
  3598. } }()
  3599. try { if let v = _storage._javaGenerateEqualsAndHash {
  3600. try visitor.visitSingularBoolField(value: v, fieldNumber: 20)
  3601. } }()
  3602. try { if let v = _storage._deprecated {
  3603. try visitor.visitSingularBoolField(value: v, fieldNumber: 23)
  3604. } }()
  3605. try { if let v = _storage._javaStringCheckUtf8 {
  3606. try visitor.visitSingularBoolField(value: v, fieldNumber: 27)
  3607. } }()
  3608. try { if let v = _storage._ccEnableArenas {
  3609. try visitor.visitSingularBoolField(value: v, fieldNumber: 31)
  3610. } }()
  3611. try { if let v = _storage._objcClassPrefix {
  3612. try visitor.visitSingularStringField(value: v, fieldNumber: 36)
  3613. } }()
  3614. try { if let v = _storage._csharpNamespace {
  3615. try visitor.visitSingularStringField(value: v, fieldNumber: 37)
  3616. } }()
  3617. try { if let v = _storage._swiftPrefix {
  3618. try visitor.visitSingularStringField(value: v, fieldNumber: 39)
  3619. } }()
  3620. try { if let v = _storage._phpClassPrefix {
  3621. try visitor.visitSingularStringField(value: v, fieldNumber: 40)
  3622. } }()
  3623. try { if let v = _storage._phpNamespace {
  3624. try visitor.visitSingularStringField(value: v, fieldNumber: 41)
  3625. } }()
  3626. try { if let v = _storage._phpMetadataNamespace {
  3627. try visitor.visitSingularStringField(value: v, fieldNumber: 44)
  3628. } }()
  3629. try { if let v = _storage._rubyPackage {
  3630. try visitor.visitSingularStringField(value: v, fieldNumber: 45)
  3631. } }()
  3632. try { if let v = _storage._features {
  3633. try visitor.visitSingularMessageField(value: v, fieldNumber: 50)
  3634. } }()
  3635. if !_storage._uninterpretedOption.isEmpty {
  3636. try visitor.visitRepeatedMessageField(value: _storage._uninterpretedOption, fieldNumber: 999)
  3637. }
  3638. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  3639. }
  3640. try unknownFields.traverse(visitor: &visitor)
  3641. }
  3642. static func ==(lhs: Google_Protobuf_FileOptions, rhs: Google_Protobuf_FileOptions) -> Bool {
  3643. if lhs._storage !== rhs._storage {
  3644. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  3645. let _storage = _args.0
  3646. let rhs_storage = _args.1
  3647. if _storage._javaPackage != rhs_storage._javaPackage {return false}
  3648. if _storage._javaOuterClassname != rhs_storage._javaOuterClassname {return false}
  3649. if _storage._javaMultipleFiles != rhs_storage._javaMultipleFiles {return false}
  3650. if _storage._javaGenerateEqualsAndHash != rhs_storage._javaGenerateEqualsAndHash {return false}
  3651. if _storage._javaStringCheckUtf8 != rhs_storage._javaStringCheckUtf8 {return false}
  3652. if _storage._optimizeFor != rhs_storage._optimizeFor {return false}
  3653. if _storage._goPackage != rhs_storage._goPackage {return false}
  3654. if _storage._ccGenericServices != rhs_storage._ccGenericServices {return false}
  3655. if _storage._javaGenericServices != rhs_storage._javaGenericServices {return false}
  3656. if _storage._pyGenericServices != rhs_storage._pyGenericServices {return false}
  3657. if _storage._deprecated != rhs_storage._deprecated {return false}
  3658. if _storage._ccEnableArenas != rhs_storage._ccEnableArenas {return false}
  3659. if _storage._objcClassPrefix != rhs_storage._objcClassPrefix {return false}
  3660. if _storage._csharpNamespace != rhs_storage._csharpNamespace {return false}
  3661. if _storage._swiftPrefix != rhs_storage._swiftPrefix {return false}
  3662. if _storage._phpClassPrefix != rhs_storage._phpClassPrefix {return false}
  3663. if _storage._phpNamespace != rhs_storage._phpNamespace {return false}
  3664. if _storage._phpMetadataNamespace != rhs_storage._phpMetadataNamespace {return false}
  3665. if _storage._rubyPackage != rhs_storage._rubyPackage {return false}
  3666. if _storage._features != rhs_storage._features {return false}
  3667. if _storage._uninterpretedOption != rhs_storage._uninterpretedOption {return false}
  3668. return true
  3669. }
  3670. if !storagesAreEqual {return false}
  3671. }
  3672. if lhs.unknownFields != rhs.unknownFields {return false}
  3673. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  3674. return true
  3675. }
  3676. }
  3677. extension Google_Protobuf_FileOptions.OptimizeMode: _ProtoNameProviding {
  3678. static let _protobuf_nameMap: _NameMap = [
  3679. 1: .same(proto: "SPEED"),
  3680. 2: .same(proto: "CODE_SIZE"),
  3681. 3: .same(proto: "LITE_RUNTIME"),
  3682. ]
  3683. }
  3684. extension Google_Protobuf_MessageOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  3685. static let protoMessageName: String = _protobuf_package + ".MessageOptions"
  3686. static let _protobuf_nameMap: _NameMap = [
  3687. 1: .standard(proto: "message_set_wire_format"),
  3688. 2: .standard(proto: "no_standard_descriptor_accessor"),
  3689. 3: .same(proto: "deprecated"),
  3690. 7: .standard(proto: "map_entry"),
  3691. 11: .standard(proto: "deprecated_legacy_json_field_conflicts"),
  3692. 12: .same(proto: "features"),
  3693. 999: .standard(proto: "uninterpreted_option"),
  3694. ]
  3695. public var isInitialized: Bool {
  3696. if !_protobuf_extensionFieldValues.isInitialized {return false}
  3697. if let v = self._features, !v.isInitialized {return false}
  3698. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  3699. return true
  3700. }
  3701. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3702. while let fieldNumber = try decoder.nextFieldNumber() {
  3703. // The use of inline closures is to circumvent an issue where the compiler
  3704. // allocates stack space for every case branch when no optimizations are
  3705. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3706. switch fieldNumber {
  3707. case 1: try { try decoder.decodeSingularBoolField(value: &self._messageSetWireFormat) }()
  3708. case 2: try { try decoder.decodeSingularBoolField(value: &self._noStandardDescriptorAccessor) }()
  3709. case 3: try { try decoder.decodeSingularBoolField(value: &self._deprecated) }()
  3710. case 7: try { try decoder.decodeSingularBoolField(value: &self._mapEntry) }()
  3711. case 11: try { try decoder.decodeSingularBoolField(value: &self._deprecatedLegacyJsonFieldConflicts) }()
  3712. case 12: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  3713. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  3714. case 1000..<536870912:
  3715. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_MessageOptions.self, fieldNumber: fieldNumber) }()
  3716. default: break
  3717. }
  3718. }
  3719. }
  3720. func traverse<V: Visitor>(visitor: inout V) throws {
  3721. // The use of inline closures is to circumvent an issue where the compiler
  3722. // allocates stack space for every if/case branch local when no optimizations
  3723. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3724. // https://github.com/apple/swift-protobuf/issues/1182
  3725. try { if let v = self._messageSetWireFormat {
  3726. try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
  3727. } }()
  3728. try { if let v = self._noStandardDescriptorAccessor {
  3729. try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
  3730. } }()
  3731. try { if let v = self._deprecated {
  3732. try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
  3733. } }()
  3734. try { if let v = self._mapEntry {
  3735. try visitor.visitSingularBoolField(value: v, fieldNumber: 7)
  3736. } }()
  3737. try { if let v = self._deprecatedLegacyJsonFieldConflicts {
  3738. try visitor.visitSingularBoolField(value: v, fieldNumber: 11)
  3739. } }()
  3740. try { if let v = self._features {
  3741. try visitor.visitSingularMessageField(value: v, fieldNumber: 12)
  3742. } }()
  3743. if !self.uninterpretedOption.isEmpty {
  3744. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  3745. }
  3746. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  3747. try unknownFields.traverse(visitor: &visitor)
  3748. }
  3749. static func ==(lhs: Google_Protobuf_MessageOptions, rhs: Google_Protobuf_MessageOptions) -> Bool {
  3750. if lhs._messageSetWireFormat != rhs._messageSetWireFormat {return false}
  3751. if lhs._noStandardDescriptorAccessor != rhs._noStandardDescriptorAccessor {return false}
  3752. if lhs._deprecated != rhs._deprecated {return false}
  3753. if lhs._mapEntry != rhs._mapEntry {return false}
  3754. if lhs._deprecatedLegacyJsonFieldConflicts != rhs._deprecatedLegacyJsonFieldConflicts {return false}
  3755. if lhs._features != rhs._features {return false}
  3756. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  3757. if lhs.unknownFields != rhs.unknownFields {return false}
  3758. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  3759. return true
  3760. }
  3761. }
  3762. extension Google_Protobuf_FieldOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  3763. static let protoMessageName: String = _protobuf_package + ".FieldOptions"
  3764. static let _protobuf_nameMap: _NameMap = [
  3765. 1: .same(proto: "ctype"),
  3766. 2: .same(proto: "packed"),
  3767. 6: .same(proto: "jstype"),
  3768. 5: .same(proto: "lazy"),
  3769. 15: .standard(proto: "unverified_lazy"),
  3770. 3: .same(proto: "deprecated"),
  3771. 10: .same(proto: "weak"),
  3772. 16: .standard(proto: "debug_redact"),
  3773. 17: .same(proto: "retention"),
  3774. 19: .same(proto: "targets"),
  3775. 20: .standard(proto: "edition_defaults"),
  3776. 21: .same(proto: "features"),
  3777. 22: .standard(proto: "feature_support"),
  3778. 999: .standard(proto: "uninterpreted_option"),
  3779. ]
  3780. fileprivate class _StorageClass {
  3781. var _ctype: Google_Protobuf_FieldOptions.CType? = nil
  3782. var _packed: Bool? = nil
  3783. var _jstype: Google_Protobuf_FieldOptions.JSType? = nil
  3784. var _lazy: Bool? = nil
  3785. var _unverifiedLazy: Bool? = nil
  3786. var _deprecated: Bool? = nil
  3787. var _weak: Bool? = nil
  3788. var _debugRedact: Bool? = nil
  3789. var _retention: Google_Protobuf_FieldOptions.OptionRetention? = nil
  3790. var _targets: [Google_Protobuf_FieldOptions.OptionTargetType] = []
  3791. var _editionDefaults: [Google_Protobuf_FieldOptions.EditionDefault] = []
  3792. var _features: Google_Protobuf_FeatureSet? = nil
  3793. var _featureSupport: Google_Protobuf_FieldOptions.FeatureSupport? = nil
  3794. var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
  3795. // This property is used as the initial default value for new instances of the type.
  3796. // The type itself is protecting the reference to its storage via CoW semantics.
  3797. // This will force a copy to be made of this reference when the first mutation occurs;
  3798. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  3799. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  3800. private init() {}
  3801. init(copying source: _StorageClass) {
  3802. _ctype = source._ctype
  3803. _packed = source._packed
  3804. _jstype = source._jstype
  3805. _lazy = source._lazy
  3806. _unverifiedLazy = source._unverifiedLazy
  3807. _deprecated = source._deprecated
  3808. _weak = source._weak
  3809. _debugRedact = source._debugRedact
  3810. _retention = source._retention
  3811. _targets = source._targets
  3812. _editionDefaults = source._editionDefaults
  3813. _features = source._features
  3814. _featureSupport = source._featureSupport
  3815. _uninterpretedOption = source._uninterpretedOption
  3816. }
  3817. }
  3818. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  3819. if !isKnownUniquelyReferenced(&_storage) {
  3820. _storage = _StorageClass(copying: _storage)
  3821. }
  3822. return _storage
  3823. }
  3824. public var isInitialized: Bool {
  3825. if !_protobuf_extensionFieldValues.isInitialized {return false}
  3826. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3827. if let v = _storage._features, !v.isInitialized {return false}
  3828. if !Internal.areAllInitialized(_storage._uninterpretedOption) {return false}
  3829. return true
  3830. }
  3831. }
  3832. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3833. _ = _uniqueStorage()
  3834. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3835. while let fieldNumber = try decoder.nextFieldNumber() {
  3836. // The use of inline closures is to circumvent an issue where the compiler
  3837. // allocates stack space for every case branch when no optimizations are
  3838. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3839. switch fieldNumber {
  3840. case 1: try { try decoder.decodeSingularEnumField(value: &_storage._ctype) }()
  3841. case 2: try { try decoder.decodeSingularBoolField(value: &_storage._packed) }()
  3842. case 3: try { try decoder.decodeSingularBoolField(value: &_storage._deprecated) }()
  3843. case 5: try { try decoder.decodeSingularBoolField(value: &_storage._lazy) }()
  3844. case 6: try { try decoder.decodeSingularEnumField(value: &_storage._jstype) }()
  3845. case 10: try { try decoder.decodeSingularBoolField(value: &_storage._weak) }()
  3846. case 15: try { try decoder.decodeSingularBoolField(value: &_storage._unverifiedLazy) }()
  3847. case 16: try { try decoder.decodeSingularBoolField(value: &_storage._debugRedact) }()
  3848. case 17: try { try decoder.decodeSingularEnumField(value: &_storage._retention) }()
  3849. case 19: try { try decoder.decodeRepeatedEnumField(value: &_storage._targets) }()
  3850. case 20: try { try decoder.decodeRepeatedMessageField(value: &_storage._editionDefaults) }()
  3851. case 21: try { try decoder.decodeSingularMessageField(value: &_storage._features) }()
  3852. case 22: try { try decoder.decodeSingularMessageField(value: &_storage._featureSupport) }()
  3853. case 999: try { try decoder.decodeRepeatedMessageField(value: &_storage._uninterpretedOption) }()
  3854. case 1000..<536870912:
  3855. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_FieldOptions.self, fieldNumber: fieldNumber) }()
  3856. default: break
  3857. }
  3858. }
  3859. }
  3860. }
  3861. func traverse<V: Visitor>(visitor: inout V) throws {
  3862. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  3863. // The use of inline closures is to circumvent an issue where the compiler
  3864. // allocates stack space for every if/case branch local when no optimizations
  3865. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3866. // https://github.com/apple/swift-protobuf/issues/1182
  3867. try { if let v = _storage._ctype {
  3868. try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
  3869. } }()
  3870. try { if let v = _storage._packed {
  3871. try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
  3872. } }()
  3873. try { if let v = _storage._deprecated {
  3874. try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
  3875. } }()
  3876. try { if let v = _storage._lazy {
  3877. try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
  3878. } }()
  3879. try { if let v = _storage._jstype {
  3880. try visitor.visitSingularEnumField(value: v, fieldNumber: 6)
  3881. } }()
  3882. try { if let v = _storage._weak {
  3883. try visitor.visitSingularBoolField(value: v, fieldNumber: 10)
  3884. } }()
  3885. try { if let v = _storage._unverifiedLazy {
  3886. try visitor.visitSingularBoolField(value: v, fieldNumber: 15)
  3887. } }()
  3888. try { if let v = _storage._debugRedact {
  3889. try visitor.visitSingularBoolField(value: v, fieldNumber: 16)
  3890. } }()
  3891. try { if let v = _storage._retention {
  3892. try visitor.visitSingularEnumField(value: v, fieldNumber: 17)
  3893. } }()
  3894. if !_storage._targets.isEmpty {
  3895. try visitor.visitRepeatedEnumField(value: _storage._targets, fieldNumber: 19)
  3896. }
  3897. if !_storage._editionDefaults.isEmpty {
  3898. try visitor.visitRepeatedMessageField(value: _storage._editionDefaults, fieldNumber: 20)
  3899. }
  3900. try { if let v = _storage._features {
  3901. try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
  3902. } }()
  3903. try { if let v = _storage._featureSupport {
  3904. try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
  3905. } }()
  3906. if !_storage._uninterpretedOption.isEmpty {
  3907. try visitor.visitRepeatedMessageField(value: _storage._uninterpretedOption, fieldNumber: 999)
  3908. }
  3909. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  3910. }
  3911. try unknownFields.traverse(visitor: &visitor)
  3912. }
  3913. static func ==(lhs: Google_Protobuf_FieldOptions, rhs: Google_Protobuf_FieldOptions) -> Bool {
  3914. if lhs._storage !== rhs._storage {
  3915. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  3916. let _storage = _args.0
  3917. let rhs_storage = _args.1
  3918. if _storage._ctype != rhs_storage._ctype {return false}
  3919. if _storage._packed != rhs_storage._packed {return false}
  3920. if _storage._jstype != rhs_storage._jstype {return false}
  3921. if _storage._lazy != rhs_storage._lazy {return false}
  3922. if _storage._unverifiedLazy != rhs_storage._unverifiedLazy {return false}
  3923. if _storage._deprecated != rhs_storage._deprecated {return false}
  3924. if _storage._weak != rhs_storage._weak {return false}
  3925. if _storage._debugRedact != rhs_storage._debugRedact {return false}
  3926. if _storage._retention != rhs_storage._retention {return false}
  3927. if _storage._targets != rhs_storage._targets {return false}
  3928. if _storage._editionDefaults != rhs_storage._editionDefaults {return false}
  3929. if _storage._features != rhs_storage._features {return false}
  3930. if _storage._featureSupport != rhs_storage._featureSupport {return false}
  3931. if _storage._uninterpretedOption != rhs_storage._uninterpretedOption {return false}
  3932. return true
  3933. }
  3934. if !storagesAreEqual {return false}
  3935. }
  3936. if lhs.unknownFields != rhs.unknownFields {return false}
  3937. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  3938. return true
  3939. }
  3940. }
  3941. extension Google_Protobuf_FieldOptions.CType: _ProtoNameProviding {
  3942. static let _protobuf_nameMap: _NameMap = [
  3943. 0: .same(proto: "STRING"),
  3944. 1: .same(proto: "CORD"),
  3945. 2: .same(proto: "STRING_PIECE"),
  3946. ]
  3947. }
  3948. extension Google_Protobuf_FieldOptions.JSType: _ProtoNameProviding {
  3949. static let _protobuf_nameMap: _NameMap = [
  3950. 0: .same(proto: "JS_NORMAL"),
  3951. 1: .same(proto: "JS_STRING"),
  3952. 2: .same(proto: "JS_NUMBER"),
  3953. ]
  3954. }
  3955. extension Google_Protobuf_FieldOptions.OptionRetention: _ProtoNameProviding {
  3956. static let _protobuf_nameMap: _NameMap = [
  3957. 0: .same(proto: "RETENTION_UNKNOWN"),
  3958. 1: .same(proto: "RETENTION_RUNTIME"),
  3959. 2: .same(proto: "RETENTION_SOURCE"),
  3960. ]
  3961. }
  3962. extension Google_Protobuf_FieldOptions.OptionTargetType: _ProtoNameProviding {
  3963. static let _protobuf_nameMap: _NameMap = [
  3964. 0: .same(proto: "TARGET_TYPE_UNKNOWN"),
  3965. 1: .same(proto: "TARGET_TYPE_FILE"),
  3966. 2: .same(proto: "TARGET_TYPE_EXTENSION_RANGE"),
  3967. 3: .same(proto: "TARGET_TYPE_MESSAGE"),
  3968. 4: .same(proto: "TARGET_TYPE_FIELD"),
  3969. 5: .same(proto: "TARGET_TYPE_ONEOF"),
  3970. 6: .same(proto: "TARGET_TYPE_ENUM"),
  3971. 7: .same(proto: "TARGET_TYPE_ENUM_ENTRY"),
  3972. 8: .same(proto: "TARGET_TYPE_SERVICE"),
  3973. 9: .same(proto: "TARGET_TYPE_METHOD"),
  3974. ]
  3975. }
  3976. extension Google_Protobuf_FieldOptions.EditionDefault: Message, _MessageImplementationBase, _ProtoNameProviding {
  3977. static let protoMessageName: String = Google_Protobuf_FieldOptions.protoMessageName + ".EditionDefault"
  3978. static let _protobuf_nameMap: _NameMap = [
  3979. 3: .same(proto: "edition"),
  3980. 2: .same(proto: "value"),
  3981. ]
  3982. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  3983. while let fieldNumber = try decoder.nextFieldNumber() {
  3984. // The use of inline closures is to circumvent an issue where the compiler
  3985. // allocates stack space for every case branch when no optimizations are
  3986. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  3987. switch fieldNumber {
  3988. case 2: try { try decoder.decodeSingularStringField(value: &self._value) }()
  3989. case 3: try { try decoder.decodeSingularEnumField(value: &self._edition) }()
  3990. default: break
  3991. }
  3992. }
  3993. }
  3994. func traverse<V: Visitor>(visitor: inout V) throws {
  3995. // The use of inline closures is to circumvent an issue where the compiler
  3996. // allocates stack space for every if/case branch local when no optimizations
  3997. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  3998. // https://github.com/apple/swift-protobuf/issues/1182
  3999. try { if let v = self._value {
  4000. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  4001. } }()
  4002. try { if let v = self._edition {
  4003. try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
  4004. } }()
  4005. try unknownFields.traverse(visitor: &visitor)
  4006. }
  4007. static func ==(lhs: Google_Protobuf_FieldOptions.EditionDefault, rhs: Google_Protobuf_FieldOptions.EditionDefault) -> Bool {
  4008. if lhs._edition != rhs._edition {return false}
  4009. if lhs._value != rhs._value {return false}
  4010. if lhs.unknownFields != rhs.unknownFields {return false}
  4011. return true
  4012. }
  4013. }
  4014. extension Google_Protobuf_FieldOptions.FeatureSupport: Message, _MessageImplementationBase, _ProtoNameProviding {
  4015. static let protoMessageName: String = Google_Protobuf_FieldOptions.protoMessageName + ".FeatureSupport"
  4016. static let _protobuf_nameMap: _NameMap = [
  4017. 1: .standard(proto: "edition_introduced"),
  4018. 2: .standard(proto: "edition_deprecated"),
  4019. 3: .standard(proto: "deprecation_warning"),
  4020. 4: .standard(proto: "edition_removed"),
  4021. ]
  4022. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4023. while let fieldNumber = try decoder.nextFieldNumber() {
  4024. // The use of inline closures is to circumvent an issue where the compiler
  4025. // allocates stack space for every case branch when no optimizations are
  4026. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4027. switch fieldNumber {
  4028. case 1: try { try decoder.decodeSingularEnumField(value: &self._editionIntroduced) }()
  4029. case 2: try { try decoder.decodeSingularEnumField(value: &self._editionDeprecated) }()
  4030. case 3: try { try decoder.decodeSingularStringField(value: &self._deprecationWarning) }()
  4031. case 4: try { try decoder.decodeSingularEnumField(value: &self._editionRemoved) }()
  4032. default: break
  4033. }
  4034. }
  4035. }
  4036. func traverse<V: Visitor>(visitor: inout V) throws {
  4037. // The use of inline closures is to circumvent an issue where the compiler
  4038. // allocates stack space for every if/case branch local when no optimizations
  4039. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4040. // https://github.com/apple/swift-protobuf/issues/1182
  4041. try { if let v = self._editionIntroduced {
  4042. try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
  4043. } }()
  4044. try { if let v = self._editionDeprecated {
  4045. try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
  4046. } }()
  4047. try { if let v = self._deprecationWarning {
  4048. try visitor.visitSingularStringField(value: v, fieldNumber: 3)
  4049. } }()
  4050. try { if let v = self._editionRemoved {
  4051. try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
  4052. } }()
  4053. try unknownFields.traverse(visitor: &visitor)
  4054. }
  4055. static func ==(lhs: Google_Protobuf_FieldOptions.FeatureSupport, rhs: Google_Protobuf_FieldOptions.FeatureSupport) -> Bool {
  4056. if lhs._editionIntroduced != rhs._editionIntroduced {return false}
  4057. if lhs._editionDeprecated != rhs._editionDeprecated {return false}
  4058. if lhs._deprecationWarning != rhs._deprecationWarning {return false}
  4059. if lhs._editionRemoved != rhs._editionRemoved {return false}
  4060. if lhs.unknownFields != rhs.unknownFields {return false}
  4061. return true
  4062. }
  4063. }
  4064. extension Google_Protobuf_OneofOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  4065. static let protoMessageName: String = _protobuf_package + ".OneofOptions"
  4066. static let _protobuf_nameMap: _NameMap = [
  4067. 1: .same(proto: "features"),
  4068. 999: .standard(proto: "uninterpreted_option"),
  4069. ]
  4070. public var isInitialized: Bool {
  4071. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4072. if let v = self._features, !v.isInitialized {return false}
  4073. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  4074. return true
  4075. }
  4076. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4077. while let fieldNumber = try decoder.nextFieldNumber() {
  4078. // The use of inline closures is to circumvent an issue where the compiler
  4079. // allocates stack space for every case branch when no optimizations are
  4080. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4081. switch fieldNumber {
  4082. case 1: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  4083. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  4084. case 1000..<536870912:
  4085. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_OneofOptions.self, fieldNumber: fieldNumber) }()
  4086. default: break
  4087. }
  4088. }
  4089. }
  4090. func traverse<V: Visitor>(visitor: inout V) throws {
  4091. // The use of inline closures is to circumvent an issue where the compiler
  4092. // allocates stack space for every if/case branch local when no optimizations
  4093. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4094. // https://github.com/apple/swift-protobuf/issues/1182
  4095. try { if let v = self._features {
  4096. try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
  4097. } }()
  4098. if !self.uninterpretedOption.isEmpty {
  4099. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  4100. }
  4101. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  4102. try unknownFields.traverse(visitor: &visitor)
  4103. }
  4104. static func ==(lhs: Google_Protobuf_OneofOptions, rhs: Google_Protobuf_OneofOptions) -> Bool {
  4105. if lhs._features != rhs._features {return false}
  4106. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  4107. if lhs.unknownFields != rhs.unknownFields {return false}
  4108. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4109. return true
  4110. }
  4111. }
  4112. extension Google_Protobuf_EnumOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  4113. static let protoMessageName: String = _protobuf_package + ".EnumOptions"
  4114. static let _protobuf_nameMap: _NameMap = [
  4115. 2: .standard(proto: "allow_alias"),
  4116. 3: .same(proto: "deprecated"),
  4117. 6: .standard(proto: "deprecated_legacy_json_field_conflicts"),
  4118. 7: .same(proto: "features"),
  4119. 999: .standard(proto: "uninterpreted_option"),
  4120. ]
  4121. public var isInitialized: Bool {
  4122. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4123. if let v = self._features, !v.isInitialized {return false}
  4124. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  4125. return true
  4126. }
  4127. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4128. while let fieldNumber = try decoder.nextFieldNumber() {
  4129. // The use of inline closures is to circumvent an issue where the compiler
  4130. // allocates stack space for every case branch when no optimizations are
  4131. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4132. switch fieldNumber {
  4133. case 2: try { try decoder.decodeSingularBoolField(value: &self._allowAlias) }()
  4134. case 3: try { try decoder.decodeSingularBoolField(value: &self._deprecated) }()
  4135. case 6: try { try decoder.decodeSingularBoolField(value: &self._deprecatedLegacyJsonFieldConflicts) }()
  4136. case 7: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  4137. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  4138. case 1000..<536870912:
  4139. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_EnumOptions.self, fieldNumber: fieldNumber) }()
  4140. default: break
  4141. }
  4142. }
  4143. }
  4144. func traverse<V: Visitor>(visitor: inout V) throws {
  4145. // The use of inline closures is to circumvent an issue where the compiler
  4146. // allocates stack space for every if/case branch local when no optimizations
  4147. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4148. // https://github.com/apple/swift-protobuf/issues/1182
  4149. try { if let v = self._allowAlias {
  4150. try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
  4151. } }()
  4152. try { if let v = self._deprecated {
  4153. try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
  4154. } }()
  4155. try { if let v = self._deprecatedLegacyJsonFieldConflicts {
  4156. try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
  4157. } }()
  4158. try { if let v = self._features {
  4159. try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
  4160. } }()
  4161. if !self.uninterpretedOption.isEmpty {
  4162. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  4163. }
  4164. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  4165. try unknownFields.traverse(visitor: &visitor)
  4166. }
  4167. static func ==(lhs: Google_Protobuf_EnumOptions, rhs: Google_Protobuf_EnumOptions) -> Bool {
  4168. if lhs._allowAlias != rhs._allowAlias {return false}
  4169. if lhs._deprecated != rhs._deprecated {return false}
  4170. if lhs._deprecatedLegacyJsonFieldConflicts != rhs._deprecatedLegacyJsonFieldConflicts {return false}
  4171. if lhs._features != rhs._features {return false}
  4172. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  4173. if lhs.unknownFields != rhs.unknownFields {return false}
  4174. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4175. return true
  4176. }
  4177. }
  4178. extension Google_Protobuf_EnumValueOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  4179. static let protoMessageName: String = _protobuf_package + ".EnumValueOptions"
  4180. static let _protobuf_nameMap: _NameMap = [
  4181. 1: .same(proto: "deprecated"),
  4182. 2: .same(proto: "features"),
  4183. 3: .standard(proto: "debug_redact"),
  4184. 4: .standard(proto: "feature_support"),
  4185. 999: .standard(proto: "uninterpreted_option"),
  4186. ]
  4187. public var isInitialized: Bool {
  4188. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4189. if let v = self._features, !v.isInitialized {return false}
  4190. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  4191. return true
  4192. }
  4193. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4194. while let fieldNumber = try decoder.nextFieldNumber() {
  4195. // The use of inline closures is to circumvent an issue where the compiler
  4196. // allocates stack space for every case branch when no optimizations are
  4197. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4198. switch fieldNumber {
  4199. case 1: try { try decoder.decodeSingularBoolField(value: &self._deprecated) }()
  4200. case 2: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  4201. case 3: try { try decoder.decodeSingularBoolField(value: &self._debugRedact) }()
  4202. case 4: try { try decoder.decodeSingularMessageField(value: &self._featureSupport) }()
  4203. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  4204. case 1000..<536870912:
  4205. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_EnumValueOptions.self, fieldNumber: fieldNumber) }()
  4206. default: break
  4207. }
  4208. }
  4209. }
  4210. func traverse<V: Visitor>(visitor: inout V) throws {
  4211. // The use of inline closures is to circumvent an issue where the compiler
  4212. // allocates stack space for every if/case branch local when no optimizations
  4213. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4214. // https://github.com/apple/swift-protobuf/issues/1182
  4215. try { if let v = self._deprecated {
  4216. try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
  4217. } }()
  4218. try { if let v = self._features {
  4219. try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
  4220. } }()
  4221. try { if let v = self._debugRedact {
  4222. try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
  4223. } }()
  4224. try { if let v = self._featureSupport {
  4225. try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
  4226. } }()
  4227. if !self.uninterpretedOption.isEmpty {
  4228. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  4229. }
  4230. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  4231. try unknownFields.traverse(visitor: &visitor)
  4232. }
  4233. static func ==(lhs: Google_Protobuf_EnumValueOptions, rhs: Google_Protobuf_EnumValueOptions) -> Bool {
  4234. if lhs._deprecated != rhs._deprecated {return false}
  4235. if lhs._features != rhs._features {return false}
  4236. if lhs._debugRedact != rhs._debugRedact {return false}
  4237. if lhs._featureSupport != rhs._featureSupport {return false}
  4238. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  4239. if lhs.unknownFields != rhs.unknownFields {return false}
  4240. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4241. return true
  4242. }
  4243. }
  4244. extension Google_Protobuf_ServiceOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  4245. static let protoMessageName: String = _protobuf_package + ".ServiceOptions"
  4246. static let _protobuf_nameMap: _NameMap = [
  4247. 34: .same(proto: "features"),
  4248. 33: .same(proto: "deprecated"),
  4249. 999: .standard(proto: "uninterpreted_option"),
  4250. ]
  4251. public var isInitialized: Bool {
  4252. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4253. if let v = self._features, !v.isInitialized {return false}
  4254. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  4255. return true
  4256. }
  4257. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4258. while let fieldNumber = try decoder.nextFieldNumber() {
  4259. // The use of inline closures is to circumvent an issue where the compiler
  4260. // allocates stack space for every case branch when no optimizations are
  4261. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4262. switch fieldNumber {
  4263. case 33: try { try decoder.decodeSingularBoolField(value: &self._deprecated) }()
  4264. case 34: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  4265. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  4266. case 1000..<536870912:
  4267. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_ServiceOptions.self, fieldNumber: fieldNumber) }()
  4268. default: break
  4269. }
  4270. }
  4271. }
  4272. func traverse<V: Visitor>(visitor: inout V) throws {
  4273. // The use of inline closures is to circumvent an issue where the compiler
  4274. // allocates stack space for every if/case branch local when no optimizations
  4275. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4276. // https://github.com/apple/swift-protobuf/issues/1182
  4277. try { if let v = self._deprecated {
  4278. try visitor.visitSingularBoolField(value: v, fieldNumber: 33)
  4279. } }()
  4280. try { if let v = self._features {
  4281. try visitor.visitSingularMessageField(value: v, fieldNumber: 34)
  4282. } }()
  4283. if !self.uninterpretedOption.isEmpty {
  4284. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  4285. }
  4286. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  4287. try unknownFields.traverse(visitor: &visitor)
  4288. }
  4289. static func ==(lhs: Google_Protobuf_ServiceOptions, rhs: Google_Protobuf_ServiceOptions) -> Bool {
  4290. if lhs._features != rhs._features {return false}
  4291. if lhs._deprecated != rhs._deprecated {return false}
  4292. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  4293. if lhs.unknownFields != rhs.unknownFields {return false}
  4294. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4295. return true
  4296. }
  4297. }
  4298. extension Google_Protobuf_MethodOptions: Message, _MessageImplementationBase, _ProtoNameProviding {
  4299. static let protoMessageName: String = _protobuf_package + ".MethodOptions"
  4300. static let _protobuf_nameMap: _NameMap = [
  4301. 33: .same(proto: "deprecated"),
  4302. 34: .standard(proto: "idempotency_level"),
  4303. 35: .same(proto: "features"),
  4304. 999: .standard(proto: "uninterpreted_option"),
  4305. ]
  4306. public var isInitialized: Bool {
  4307. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4308. if let v = self._features, !v.isInitialized {return false}
  4309. if !Internal.areAllInitialized(self.uninterpretedOption) {return false}
  4310. return true
  4311. }
  4312. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4313. while let fieldNumber = try decoder.nextFieldNumber() {
  4314. // The use of inline closures is to circumvent an issue where the compiler
  4315. // allocates stack space for every case branch when no optimizations are
  4316. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4317. switch fieldNumber {
  4318. case 33: try { try decoder.decodeSingularBoolField(value: &self._deprecated) }()
  4319. case 34: try { try decoder.decodeSingularEnumField(value: &self._idempotencyLevel) }()
  4320. case 35: try { try decoder.decodeSingularMessageField(value: &self._features) }()
  4321. case 999: try { try decoder.decodeRepeatedMessageField(value: &self.uninterpretedOption) }()
  4322. case 1000..<536870912:
  4323. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_MethodOptions.self, fieldNumber: fieldNumber) }()
  4324. default: break
  4325. }
  4326. }
  4327. }
  4328. func traverse<V: Visitor>(visitor: inout V) throws {
  4329. // The use of inline closures is to circumvent an issue where the compiler
  4330. // allocates stack space for every if/case branch local when no optimizations
  4331. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4332. // https://github.com/apple/swift-protobuf/issues/1182
  4333. try { if let v = self._deprecated {
  4334. try visitor.visitSingularBoolField(value: v, fieldNumber: 33)
  4335. } }()
  4336. try { if let v = self._idempotencyLevel {
  4337. try visitor.visitSingularEnumField(value: v, fieldNumber: 34)
  4338. } }()
  4339. try { if let v = self._features {
  4340. try visitor.visitSingularMessageField(value: v, fieldNumber: 35)
  4341. } }()
  4342. if !self.uninterpretedOption.isEmpty {
  4343. try visitor.visitRepeatedMessageField(value: self.uninterpretedOption, fieldNumber: 999)
  4344. }
  4345. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 536870912)
  4346. try unknownFields.traverse(visitor: &visitor)
  4347. }
  4348. static func ==(lhs: Google_Protobuf_MethodOptions, rhs: Google_Protobuf_MethodOptions) -> Bool {
  4349. if lhs._deprecated != rhs._deprecated {return false}
  4350. if lhs._idempotencyLevel != rhs._idempotencyLevel {return false}
  4351. if lhs._features != rhs._features {return false}
  4352. if lhs.uninterpretedOption != rhs.uninterpretedOption {return false}
  4353. if lhs.unknownFields != rhs.unknownFields {return false}
  4354. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4355. return true
  4356. }
  4357. }
  4358. extension Google_Protobuf_MethodOptions.IdempotencyLevel: _ProtoNameProviding {
  4359. static let _protobuf_nameMap: _NameMap = [
  4360. 0: .same(proto: "IDEMPOTENCY_UNKNOWN"),
  4361. 1: .same(proto: "NO_SIDE_EFFECTS"),
  4362. 2: .same(proto: "IDEMPOTENT"),
  4363. ]
  4364. }
  4365. extension Google_Protobuf_UninterpretedOption: Message, _MessageImplementationBase, _ProtoNameProviding {
  4366. static let protoMessageName: String = _protobuf_package + ".UninterpretedOption"
  4367. static let _protobuf_nameMap: _NameMap = [
  4368. 2: .same(proto: "name"),
  4369. 3: .standard(proto: "identifier_value"),
  4370. 4: .standard(proto: "positive_int_value"),
  4371. 5: .standard(proto: "negative_int_value"),
  4372. 6: .standard(proto: "double_value"),
  4373. 7: .standard(proto: "string_value"),
  4374. 8: .standard(proto: "aggregate_value"),
  4375. ]
  4376. public var isInitialized: Bool {
  4377. if !Internal.areAllInitialized(self.name) {return false}
  4378. return true
  4379. }
  4380. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4381. while let fieldNumber = try decoder.nextFieldNumber() {
  4382. // The use of inline closures is to circumvent an issue where the compiler
  4383. // allocates stack space for every case branch when no optimizations are
  4384. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4385. switch fieldNumber {
  4386. case 2: try { try decoder.decodeRepeatedMessageField(value: &self.name) }()
  4387. case 3: try { try decoder.decodeSingularStringField(value: &self._identifierValue) }()
  4388. case 4: try { try decoder.decodeSingularUInt64Field(value: &self._positiveIntValue) }()
  4389. case 5: try { try decoder.decodeSingularInt64Field(value: &self._negativeIntValue) }()
  4390. case 6: try { try decoder.decodeSingularDoubleField(value: &self._doubleValue) }()
  4391. case 7: try { try decoder.decodeSingularBytesField(value: &self._stringValue) }()
  4392. case 8: try { try decoder.decodeSingularStringField(value: &self._aggregateValue) }()
  4393. default: break
  4394. }
  4395. }
  4396. }
  4397. func traverse<V: Visitor>(visitor: inout V) throws {
  4398. // The use of inline closures is to circumvent an issue where the compiler
  4399. // allocates stack space for every if/case branch local when no optimizations
  4400. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4401. // https://github.com/apple/swift-protobuf/issues/1182
  4402. if !self.name.isEmpty {
  4403. try visitor.visitRepeatedMessageField(value: self.name, fieldNumber: 2)
  4404. }
  4405. try { if let v = self._identifierValue {
  4406. try visitor.visitSingularStringField(value: v, fieldNumber: 3)
  4407. } }()
  4408. try { if let v = self._positiveIntValue {
  4409. try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4)
  4410. } }()
  4411. try { if let v = self._negativeIntValue {
  4412. try visitor.visitSingularInt64Field(value: v, fieldNumber: 5)
  4413. } }()
  4414. try { if let v = self._doubleValue {
  4415. try visitor.visitSingularDoubleField(value: v, fieldNumber: 6)
  4416. } }()
  4417. try { if let v = self._stringValue {
  4418. try visitor.visitSingularBytesField(value: v, fieldNumber: 7)
  4419. } }()
  4420. try { if let v = self._aggregateValue {
  4421. try visitor.visitSingularStringField(value: v, fieldNumber: 8)
  4422. } }()
  4423. try unknownFields.traverse(visitor: &visitor)
  4424. }
  4425. static func ==(lhs: Google_Protobuf_UninterpretedOption, rhs: Google_Protobuf_UninterpretedOption) -> Bool {
  4426. if lhs.name != rhs.name {return false}
  4427. if lhs._identifierValue != rhs._identifierValue {return false}
  4428. if lhs._positiveIntValue != rhs._positiveIntValue {return false}
  4429. if lhs._negativeIntValue != rhs._negativeIntValue {return false}
  4430. if lhs._doubleValue != rhs._doubleValue {return false}
  4431. if lhs._stringValue != rhs._stringValue {return false}
  4432. if lhs._aggregateValue != rhs._aggregateValue {return false}
  4433. if lhs.unknownFields != rhs.unknownFields {return false}
  4434. return true
  4435. }
  4436. }
  4437. extension Google_Protobuf_UninterpretedOption.NamePart: Message, _MessageImplementationBase, _ProtoNameProviding {
  4438. static let protoMessageName: String = Google_Protobuf_UninterpretedOption.protoMessageName + ".NamePart"
  4439. static let _protobuf_nameMap: _NameMap = [
  4440. 1: .standard(proto: "name_part"),
  4441. 2: .standard(proto: "is_extension"),
  4442. ]
  4443. public var isInitialized: Bool {
  4444. if self._namePart == nil {return false}
  4445. if self._isExtension == nil {return false}
  4446. return true
  4447. }
  4448. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4449. while let fieldNumber = try decoder.nextFieldNumber() {
  4450. // The use of inline closures is to circumvent an issue where the compiler
  4451. // allocates stack space for every case branch when no optimizations are
  4452. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4453. switch fieldNumber {
  4454. case 1: try { try decoder.decodeSingularStringField(value: &self._namePart) }()
  4455. case 2: try { try decoder.decodeSingularBoolField(value: &self._isExtension) }()
  4456. default: break
  4457. }
  4458. }
  4459. }
  4460. func traverse<V: Visitor>(visitor: inout V) throws {
  4461. // The use of inline closures is to circumvent an issue where the compiler
  4462. // allocates stack space for every if/case branch local when no optimizations
  4463. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4464. // https://github.com/apple/swift-protobuf/issues/1182
  4465. try { if let v = self._namePart {
  4466. try visitor.visitSingularStringField(value: v, fieldNumber: 1)
  4467. } }()
  4468. try { if let v = self._isExtension {
  4469. try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
  4470. } }()
  4471. try unknownFields.traverse(visitor: &visitor)
  4472. }
  4473. static func ==(lhs: Google_Protobuf_UninterpretedOption.NamePart, rhs: Google_Protobuf_UninterpretedOption.NamePart) -> Bool {
  4474. if lhs._namePart != rhs._namePart {return false}
  4475. if lhs._isExtension != rhs._isExtension {return false}
  4476. if lhs.unknownFields != rhs.unknownFields {return false}
  4477. return true
  4478. }
  4479. }
  4480. extension Google_Protobuf_FeatureSet: Message, _MessageImplementationBase, _ProtoNameProviding {
  4481. static let protoMessageName: String = _protobuf_package + ".FeatureSet"
  4482. static let _protobuf_nameMap: _NameMap = [
  4483. 1: .standard(proto: "field_presence"),
  4484. 2: .standard(proto: "enum_type"),
  4485. 3: .standard(proto: "repeated_field_encoding"),
  4486. 4: .standard(proto: "utf8_validation"),
  4487. 5: .standard(proto: "message_encoding"),
  4488. 6: .standard(proto: "json_format"),
  4489. 7: .standard(proto: "enforce_naming_style"),
  4490. 8: .standard(proto: "default_symbol_visibility"),
  4491. ]
  4492. public var isInitialized: Bool {
  4493. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4494. return true
  4495. }
  4496. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4497. while let fieldNumber = try decoder.nextFieldNumber() {
  4498. // The use of inline closures is to circumvent an issue where the compiler
  4499. // allocates stack space for every case branch when no optimizations are
  4500. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4501. switch fieldNumber {
  4502. case 1: try { try decoder.decodeSingularEnumField(value: &self._fieldPresence) }()
  4503. case 2: try { try decoder.decodeSingularEnumField(value: &self._enumType) }()
  4504. case 3: try { try decoder.decodeSingularEnumField(value: &self._repeatedFieldEncoding) }()
  4505. case 4: try { try decoder.decodeSingularEnumField(value: &self._utf8Validation) }()
  4506. case 5: try { try decoder.decodeSingularEnumField(value: &self._messageEncoding) }()
  4507. case 6: try { try decoder.decodeSingularEnumField(value: &self._jsonFormat) }()
  4508. case 7: try { try decoder.decodeSingularEnumField(value: &self._enforceNamingStyle) }()
  4509. case 8: try { try decoder.decodeSingularEnumField(value: &self._defaultSymbolVisibility) }()
  4510. case 1000..<10001:
  4511. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_FeatureSet.self, fieldNumber: fieldNumber) }()
  4512. default: break
  4513. }
  4514. }
  4515. }
  4516. func traverse<V: Visitor>(visitor: inout V) throws {
  4517. // The use of inline closures is to circumvent an issue where the compiler
  4518. // allocates stack space for every if/case branch local when no optimizations
  4519. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4520. // https://github.com/apple/swift-protobuf/issues/1182
  4521. try { if let v = self._fieldPresence {
  4522. try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
  4523. } }()
  4524. try { if let v = self._enumType {
  4525. try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
  4526. } }()
  4527. try { if let v = self._repeatedFieldEncoding {
  4528. try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
  4529. } }()
  4530. try { if let v = self._utf8Validation {
  4531. try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
  4532. } }()
  4533. try { if let v = self._messageEncoding {
  4534. try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
  4535. } }()
  4536. try { if let v = self._jsonFormat {
  4537. try visitor.visitSingularEnumField(value: v, fieldNumber: 6)
  4538. } }()
  4539. try { if let v = self._enforceNamingStyle {
  4540. try visitor.visitSingularEnumField(value: v, fieldNumber: 7)
  4541. } }()
  4542. try { if let v = self._defaultSymbolVisibility {
  4543. try visitor.visitSingularEnumField(value: v, fieldNumber: 8)
  4544. } }()
  4545. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 1000, end: 10001)
  4546. try unknownFields.traverse(visitor: &visitor)
  4547. }
  4548. static func ==(lhs: Google_Protobuf_FeatureSet, rhs: Google_Protobuf_FeatureSet) -> Bool {
  4549. if lhs._fieldPresence != rhs._fieldPresence {return false}
  4550. if lhs._enumType != rhs._enumType {return false}
  4551. if lhs._repeatedFieldEncoding != rhs._repeatedFieldEncoding {return false}
  4552. if lhs._utf8Validation != rhs._utf8Validation {return false}
  4553. if lhs._messageEncoding != rhs._messageEncoding {return false}
  4554. if lhs._jsonFormat != rhs._jsonFormat {return false}
  4555. if lhs._enforceNamingStyle != rhs._enforceNamingStyle {return false}
  4556. if lhs._defaultSymbolVisibility != rhs._defaultSymbolVisibility {return false}
  4557. if lhs.unknownFields != rhs.unknownFields {return false}
  4558. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4559. return true
  4560. }
  4561. }
  4562. extension Google_Protobuf_FeatureSet.FieldPresence: _ProtoNameProviding {
  4563. static let _protobuf_nameMap: _NameMap = [
  4564. 0: .same(proto: "FIELD_PRESENCE_UNKNOWN"),
  4565. 1: .same(proto: "EXPLICIT"),
  4566. 2: .same(proto: "IMPLICIT"),
  4567. 3: .same(proto: "LEGACY_REQUIRED"),
  4568. ]
  4569. }
  4570. extension Google_Protobuf_FeatureSet.EnumType: _ProtoNameProviding {
  4571. static let _protobuf_nameMap: _NameMap = [
  4572. 0: .same(proto: "ENUM_TYPE_UNKNOWN"),
  4573. 1: .same(proto: "OPEN"),
  4574. 2: .same(proto: "CLOSED"),
  4575. ]
  4576. }
  4577. extension Google_Protobuf_FeatureSet.RepeatedFieldEncoding: _ProtoNameProviding {
  4578. static let _protobuf_nameMap: _NameMap = [
  4579. 0: .same(proto: "REPEATED_FIELD_ENCODING_UNKNOWN"),
  4580. 1: .same(proto: "PACKED"),
  4581. 2: .same(proto: "EXPANDED"),
  4582. ]
  4583. }
  4584. extension Google_Protobuf_FeatureSet.Utf8Validation: _ProtoNameProviding {
  4585. static let _protobuf_nameMap: _NameMap = [
  4586. 0: .same(proto: "UTF8_VALIDATION_UNKNOWN"),
  4587. 2: .same(proto: "VERIFY"),
  4588. 3: .same(proto: "NONE"),
  4589. ]
  4590. }
  4591. extension Google_Protobuf_FeatureSet.MessageEncoding: _ProtoNameProviding {
  4592. static let _protobuf_nameMap: _NameMap = [
  4593. 0: .same(proto: "MESSAGE_ENCODING_UNKNOWN"),
  4594. 1: .same(proto: "LENGTH_PREFIXED"),
  4595. 2: .same(proto: "DELIMITED"),
  4596. ]
  4597. }
  4598. extension Google_Protobuf_FeatureSet.JsonFormat: _ProtoNameProviding {
  4599. static let _protobuf_nameMap: _NameMap = [
  4600. 0: .same(proto: "JSON_FORMAT_UNKNOWN"),
  4601. 1: .same(proto: "ALLOW"),
  4602. 2: .same(proto: "LEGACY_BEST_EFFORT"),
  4603. ]
  4604. }
  4605. extension Google_Protobuf_FeatureSet.EnforceNamingStyle: _ProtoNameProviding {
  4606. static let _protobuf_nameMap: _NameMap = [
  4607. 0: .same(proto: "ENFORCE_NAMING_STYLE_UNKNOWN"),
  4608. 1: .same(proto: "STYLE2024"),
  4609. 2: .same(proto: "STYLE_LEGACY"),
  4610. ]
  4611. }
  4612. extension Google_Protobuf_FeatureSet.VisibilityFeature: Message, _MessageImplementationBase, _ProtoNameProviding {
  4613. static let protoMessageName: String = Google_Protobuf_FeatureSet.protoMessageName + ".VisibilityFeature"
  4614. static let _protobuf_nameMap = _NameMap()
  4615. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4616. // Load everything into unknown fields
  4617. while try decoder.nextFieldNumber() != nil {}
  4618. }
  4619. func traverse<V: Visitor>(visitor: inout V) throws {
  4620. try unknownFields.traverse(visitor: &visitor)
  4621. }
  4622. static func ==(lhs: Google_Protobuf_FeatureSet.VisibilityFeature, rhs: Google_Protobuf_FeatureSet.VisibilityFeature) -> Bool {
  4623. if lhs.unknownFields != rhs.unknownFields {return false}
  4624. return true
  4625. }
  4626. }
  4627. extension Google_Protobuf_FeatureSet.VisibilityFeature.DefaultSymbolVisibility: _ProtoNameProviding {
  4628. static let _protobuf_nameMap: _NameMap = [
  4629. 0: .same(proto: "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"),
  4630. 1: .same(proto: "EXPORT_ALL"),
  4631. 2: .same(proto: "EXPORT_TOP_LEVEL"),
  4632. 3: .same(proto: "LOCAL_ALL"),
  4633. 4: .same(proto: "STRICT"),
  4634. ]
  4635. }
  4636. extension Google_Protobuf_FeatureSetDefaults: Message, _MessageImplementationBase, _ProtoNameProviding {
  4637. static let protoMessageName: String = _protobuf_package + ".FeatureSetDefaults"
  4638. static let _protobuf_nameMap: _NameMap = [
  4639. 1: .same(proto: "defaults"),
  4640. 4: .standard(proto: "minimum_edition"),
  4641. 5: .standard(proto: "maximum_edition"),
  4642. ]
  4643. public var isInitialized: Bool {
  4644. if !Internal.areAllInitialized(self.defaults) {return false}
  4645. return true
  4646. }
  4647. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4648. while let fieldNumber = try decoder.nextFieldNumber() {
  4649. // The use of inline closures is to circumvent an issue where the compiler
  4650. // allocates stack space for every case branch when no optimizations are
  4651. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4652. switch fieldNumber {
  4653. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.defaults) }()
  4654. case 4: try { try decoder.decodeSingularEnumField(value: &self._minimumEdition) }()
  4655. case 5: try { try decoder.decodeSingularEnumField(value: &self._maximumEdition) }()
  4656. default: break
  4657. }
  4658. }
  4659. }
  4660. func traverse<V: Visitor>(visitor: inout V) throws {
  4661. // The use of inline closures is to circumvent an issue where the compiler
  4662. // allocates stack space for every if/case branch local when no optimizations
  4663. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4664. // https://github.com/apple/swift-protobuf/issues/1182
  4665. if !self.defaults.isEmpty {
  4666. try visitor.visitRepeatedMessageField(value: self.defaults, fieldNumber: 1)
  4667. }
  4668. try { if let v = self._minimumEdition {
  4669. try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
  4670. } }()
  4671. try { if let v = self._maximumEdition {
  4672. try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
  4673. } }()
  4674. try unknownFields.traverse(visitor: &visitor)
  4675. }
  4676. static func ==(lhs: Google_Protobuf_FeatureSetDefaults, rhs: Google_Protobuf_FeatureSetDefaults) -> Bool {
  4677. if lhs.defaults != rhs.defaults {return false}
  4678. if lhs._minimumEdition != rhs._minimumEdition {return false}
  4679. if lhs._maximumEdition != rhs._maximumEdition {return false}
  4680. if lhs.unknownFields != rhs.unknownFields {return false}
  4681. return true
  4682. }
  4683. }
  4684. extension Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault: Message, _MessageImplementationBase, _ProtoNameProviding {
  4685. static let protoMessageName: String = Google_Protobuf_FeatureSetDefaults.protoMessageName + ".FeatureSetEditionDefault"
  4686. static let _protobuf_nameMap: _NameMap = [
  4687. 3: .same(proto: "edition"),
  4688. 4: .standard(proto: "overridable_features"),
  4689. 5: .standard(proto: "fixed_features"),
  4690. ]
  4691. fileprivate class _StorageClass {
  4692. var _edition: Google_Protobuf_Edition? = nil
  4693. var _overridableFeatures: Google_Protobuf_FeatureSet? = nil
  4694. var _fixedFeatures: Google_Protobuf_FeatureSet? = nil
  4695. // This property is used as the initial default value for new instances of the type.
  4696. // The type itself is protecting the reference to its storage via CoW semantics.
  4697. // This will force a copy to be made of this reference when the first mutation occurs;
  4698. // hence, it is safe to mark this as `nonisolated(unsafe)`.
  4699. static nonisolated(unsafe) let defaultInstance = _StorageClass()
  4700. private init() {}
  4701. init(copying source: _StorageClass) {
  4702. _edition = source._edition
  4703. _overridableFeatures = source._overridableFeatures
  4704. _fixedFeatures = source._fixedFeatures
  4705. }
  4706. }
  4707. fileprivate mutating func _uniqueStorage() -> _StorageClass {
  4708. if !isKnownUniquelyReferenced(&_storage) {
  4709. _storage = _StorageClass(copying: _storage)
  4710. }
  4711. return _storage
  4712. }
  4713. public var isInitialized: Bool {
  4714. return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  4715. if let v = _storage._overridableFeatures, !v.isInitialized {return false}
  4716. if let v = _storage._fixedFeatures, !v.isInitialized {return false}
  4717. return true
  4718. }
  4719. }
  4720. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4721. _ = _uniqueStorage()
  4722. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  4723. while let fieldNumber = try decoder.nextFieldNumber() {
  4724. // The use of inline closures is to circumvent an issue where the compiler
  4725. // allocates stack space for every case branch when no optimizations are
  4726. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4727. switch fieldNumber {
  4728. case 3: try { try decoder.decodeSingularEnumField(value: &_storage._edition) }()
  4729. case 4: try { try decoder.decodeSingularMessageField(value: &_storage._overridableFeatures) }()
  4730. case 5: try { try decoder.decodeSingularMessageField(value: &_storage._fixedFeatures) }()
  4731. default: break
  4732. }
  4733. }
  4734. }
  4735. }
  4736. func traverse<V: Visitor>(visitor: inout V) throws {
  4737. try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
  4738. // The use of inline closures is to circumvent an issue where the compiler
  4739. // allocates stack space for every if/case branch local when no optimizations
  4740. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4741. // https://github.com/apple/swift-protobuf/issues/1182
  4742. try { if let v = _storage._edition {
  4743. try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
  4744. } }()
  4745. try { if let v = _storage._overridableFeatures {
  4746. try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
  4747. } }()
  4748. try { if let v = _storage._fixedFeatures {
  4749. try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
  4750. } }()
  4751. }
  4752. try unknownFields.traverse(visitor: &visitor)
  4753. }
  4754. static func ==(lhs: Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault, rhs: Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault) -> Bool {
  4755. if lhs._storage !== rhs._storage {
  4756. let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
  4757. let _storage = _args.0
  4758. let rhs_storage = _args.1
  4759. if _storage._edition != rhs_storage._edition {return false}
  4760. if _storage._overridableFeatures != rhs_storage._overridableFeatures {return false}
  4761. if _storage._fixedFeatures != rhs_storage._fixedFeatures {return false}
  4762. return true
  4763. }
  4764. if !storagesAreEqual {return false}
  4765. }
  4766. if lhs.unknownFields != rhs.unknownFields {return false}
  4767. return true
  4768. }
  4769. }
  4770. extension Google_Protobuf_SourceCodeInfo: Message, _MessageImplementationBase, _ProtoNameProviding {
  4771. static let protoMessageName: String = _protobuf_package + ".SourceCodeInfo"
  4772. static let _protobuf_nameMap: _NameMap = [
  4773. 1: .same(proto: "location"),
  4774. ]
  4775. public var isInitialized: Bool {
  4776. if !_protobuf_extensionFieldValues.isInitialized {return false}
  4777. return true
  4778. }
  4779. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4780. while let fieldNumber = try decoder.nextFieldNumber() {
  4781. // The use of inline closures is to circumvent an issue where the compiler
  4782. // allocates stack space for every case branch when no optimizations are
  4783. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4784. switch fieldNumber {
  4785. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.location) }()
  4786. case 536000000:
  4787. try { try decoder.decodeExtensionField(values: &_protobuf_extensionFieldValues, messageType: Google_Protobuf_SourceCodeInfo.self, fieldNumber: fieldNumber) }()
  4788. default: break
  4789. }
  4790. }
  4791. }
  4792. func traverse<V: Visitor>(visitor: inout V) throws {
  4793. if !self.location.isEmpty {
  4794. try visitor.visitRepeatedMessageField(value: self.location, fieldNumber: 1)
  4795. }
  4796. try visitor.visitExtensionFields(fields: _protobuf_extensionFieldValues, start: 536000000, end: 536000001)
  4797. try unknownFields.traverse(visitor: &visitor)
  4798. }
  4799. static func ==(lhs: Google_Protobuf_SourceCodeInfo, rhs: Google_Protobuf_SourceCodeInfo) -> Bool {
  4800. if lhs.location != rhs.location {return false}
  4801. if lhs.unknownFields != rhs.unknownFields {return false}
  4802. if lhs._protobuf_extensionFieldValues != rhs._protobuf_extensionFieldValues {return false}
  4803. return true
  4804. }
  4805. }
  4806. extension Google_Protobuf_SourceCodeInfo.Location: Message, _MessageImplementationBase, _ProtoNameProviding {
  4807. static let protoMessageName: String = Google_Protobuf_SourceCodeInfo.protoMessageName + ".Location"
  4808. static let _protobuf_nameMap: _NameMap = [
  4809. 1: .same(proto: "path"),
  4810. 2: .same(proto: "span"),
  4811. 3: .standard(proto: "leading_comments"),
  4812. 4: .standard(proto: "trailing_comments"),
  4813. 6: .standard(proto: "leading_detached_comments"),
  4814. ]
  4815. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4816. while let fieldNumber = try decoder.nextFieldNumber() {
  4817. // The use of inline closures is to circumvent an issue where the compiler
  4818. // allocates stack space for every case branch when no optimizations are
  4819. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4820. switch fieldNumber {
  4821. case 1: try { try decoder.decodeRepeatedInt32Field(value: &self.path) }()
  4822. case 2: try { try decoder.decodeRepeatedInt32Field(value: &self.span) }()
  4823. case 3: try { try decoder.decodeSingularStringField(value: &self._leadingComments) }()
  4824. case 4: try { try decoder.decodeSingularStringField(value: &self._trailingComments) }()
  4825. case 6: try { try decoder.decodeRepeatedStringField(value: &self.leadingDetachedComments) }()
  4826. default: break
  4827. }
  4828. }
  4829. }
  4830. func traverse<V: Visitor>(visitor: inout V) throws {
  4831. // The use of inline closures is to circumvent an issue where the compiler
  4832. // allocates stack space for every if/case branch local when no optimizations
  4833. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4834. // https://github.com/apple/swift-protobuf/issues/1182
  4835. if !self.path.isEmpty {
  4836. try visitor.visitPackedInt32Field(value: self.path, fieldNumber: 1)
  4837. }
  4838. if !self.span.isEmpty {
  4839. try visitor.visitPackedInt32Field(value: self.span, fieldNumber: 2)
  4840. }
  4841. try { if let v = self._leadingComments {
  4842. try visitor.visitSingularStringField(value: v, fieldNumber: 3)
  4843. } }()
  4844. try { if let v = self._trailingComments {
  4845. try visitor.visitSingularStringField(value: v, fieldNumber: 4)
  4846. } }()
  4847. if !self.leadingDetachedComments.isEmpty {
  4848. try visitor.visitRepeatedStringField(value: self.leadingDetachedComments, fieldNumber: 6)
  4849. }
  4850. try unknownFields.traverse(visitor: &visitor)
  4851. }
  4852. static func ==(lhs: Google_Protobuf_SourceCodeInfo.Location, rhs: Google_Protobuf_SourceCodeInfo.Location) -> Bool {
  4853. if lhs.path != rhs.path {return false}
  4854. if lhs.span != rhs.span {return false}
  4855. if lhs._leadingComments != rhs._leadingComments {return false}
  4856. if lhs._trailingComments != rhs._trailingComments {return false}
  4857. if lhs.leadingDetachedComments != rhs.leadingDetachedComments {return false}
  4858. if lhs.unknownFields != rhs.unknownFields {return false}
  4859. return true
  4860. }
  4861. }
  4862. extension Google_Protobuf_GeneratedCodeInfo: Message, _MessageImplementationBase, _ProtoNameProviding {
  4863. static let protoMessageName: String = _protobuf_package + ".GeneratedCodeInfo"
  4864. static let _protobuf_nameMap: _NameMap = [
  4865. 1: .same(proto: "annotation"),
  4866. ]
  4867. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4868. while let fieldNumber = try decoder.nextFieldNumber() {
  4869. // The use of inline closures is to circumvent an issue where the compiler
  4870. // allocates stack space for every case branch when no optimizations are
  4871. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4872. switch fieldNumber {
  4873. case 1: try { try decoder.decodeRepeatedMessageField(value: &self.annotation) }()
  4874. default: break
  4875. }
  4876. }
  4877. }
  4878. func traverse<V: Visitor>(visitor: inout V) throws {
  4879. if !self.annotation.isEmpty {
  4880. try visitor.visitRepeatedMessageField(value: self.annotation, fieldNumber: 1)
  4881. }
  4882. try unknownFields.traverse(visitor: &visitor)
  4883. }
  4884. static func ==(lhs: Google_Protobuf_GeneratedCodeInfo, rhs: Google_Protobuf_GeneratedCodeInfo) -> Bool {
  4885. if lhs.annotation != rhs.annotation {return false}
  4886. if lhs.unknownFields != rhs.unknownFields {return false}
  4887. return true
  4888. }
  4889. }
  4890. extension Google_Protobuf_GeneratedCodeInfo.Annotation: Message, _MessageImplementationBase, _ProtoNameProviding {
  4891. static let protoMessageName: String = Google_Protobuf_GeneratedCodeInfo.protoMessageName + ".Annotation"
  4892. static let _protobuf_nameMap: _NameMap = [
  4893. 1: .same(proto: "path"),
  4894. 2: .standard(proto: "source_file"),
  4895. 3: .same(proto: "begin"),
  4896. 4: .same(proto: "end"),
  4897. 5: .same(proto: "semantic"),
  4898. ]
  4899. mutating func decodeMessage<D: Decoder>(decoder: inout D) throws {
  4900. while let fieldNumber = try decoder.nextFieldNumber() {
  4901. // The use of inline closures is to circumvent an issue where the compiler
  4902. // allocates stack space for every case branch when no optimizations are
  4903. // enabled. https://github.com/apple/swift-protobuf/issues/1034
  4904. switch fieldNumber {
  4905. case 1: try { try decoder.decodeRepeatedInt32Field(value: &self.path) }()
  4906. case 2: try { try decoder.decodeSingularStringField(value: &self._sourceFile) }()
  4907. case 3: try { try decoder.decodeSingularInt32Field(value: &self._begin) }()
  4908. case 4: try { try decoder.decodeSingularInt32Field(value: &self._end) }()
  4909. case 5: try { try decoder.decodeSingularEnumField(value: &self._semantic) }()
  4910. default: break
  4911. }
  4912. }
  4913. }
  4914. func traverse<V: Visitor>(visitor: inout V) throws {
  4915. // The use of inline closures is to circumvent an issue where the compiler
  4916. // allocates stack space for every if/case branch local when no optimizations
  4917. // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
  4918. // https://github.com/apple/swift-protobuf/issues/1182
  4919. if !self.path.isEmpty {
  4920. try visitor.visitPackedInt32Field(value: self.path, fieldNumber: 1)
  4921. }
  4922. try { if let v = self._sourceFile {
  4923. try visitor.visitSingularStringField(value: v, fieldNumber: 2)
  4924. } }()
  4925. try { if let v = self._begin {
  4926. try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
  4927. } }()
  4928. try { if let v = self._end {
  4929. try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
  4930. } }()
  4931. try { if let v = self._semantic {
  4932. try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
  4933. } }()
  4934. try unknownFields.traverse(visitor: &visitor)
  4935. }
  4936. static func ==(lhs: Google_Protobuf_GeneratedCodeInfo.Annotation, rhs: Google_Protobuf_GeneratedCodeInfo.Annotation) -> Bool {
  4937. if lhs.path != rhs.path {return false}
  4938. if lhs._sourceFile != rhs._sourceFile {return false}
  4939. if lhs._begin != rhs._begin {return false}
  4940. if lhs._end != rhs._end {return false}
  4941. if lhs._semantic != rhs._semantic {return false}
  4942. if lhs.unknownFields != rhs.unknownFields {return false}
  4943. return true
  4944. }
  4945. }
  4946. extension Google_Protobuf_GeneratedCodeInfo.Annotation.Semantic: _ProtoNameProviding {
  4947. static let _protobuf_nameMap: _NameMap = [
  4948. 0: .same(proto: "NONE"),
  4949. 1: .same(proto: "SET"),
  4950. 2: .same(proto: "ALIAS"),
  4951. ]
  4952. }