grid.rs 276 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356
  1. // This file is generated by rust-protobuf 2.25.2. Do not edit
  2. // @generated
  3. // https://github.com/rust-lang/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy::all)]
  6. #![allow(unused_attributes)]
  7. #![cfg_attr(rustfmt, rustfmt::skip)]
  8. #![allow(box_pointers)]
  9. #![allow(dead_code)]
  10. #![allow(missing_docs)]
  11. #![allow(non_camel_case_types)]
  12. #![allow(non_snake_case)]
  13. #![allow(non_upper_case_globals)]
  14. #![allow(trivial_casts)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. //! Generated file from `grid.proto`
  18. /// Generated files are compatible only with the same version
  19. /// of protobuf runtime.
  20. // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
  21. #[derive(PartialEq,Clone,Default)]
  22. pub struct Grid {
  23. // message fields
  24. pub id: ::std::string::String,
  25. pub field_orders: ::protobuf::RepeatedField<FieldOrder>,
  26. pub block_orders: ::protobuf::RepeatedField<GridBlockOrder>,
  27. // special fields
  28. pub unknown_fields: ::protobuf::UnknownFields,
  29. pub cached_size: ::protobuf::CachedSize,
  30. }
  31. impl<'a> ::std::default::Default for &'a Grid {
  32. fn default() -> &'a Grid {
  33. <Grid as ::protobuf::Message>::default_instance()
  34. }
  35. }
  36. impl Grid {
  37. pub fn new() -> Grid {
  38. ::std::default::Default::default()
  39. }
  40. // string id = 1;
  41. pub fn get_id(&self) -> &str {
  42. &self.id
  43. }
  44. pub fn clear_id(&mut self) {
  45. self.id.clear();
  46. }
  47. // Param is passed by value, moved
  48. pub fn set_id(&mut self, v: ::std::string::String) {
  49. self.id = v;
  50. }
  51. // Mutable pointer to the field.
  52. // If field is not initialized, it is initialized with default value first.
  53. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  54. &mut self.id
  55. }
  56. // Take field
  57. pub fn take_id(&mut self) -> ::std::string::String {
  58. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  59. }
  60. // repeated .FieldOrder field_orders = 2;
  61. pub fn get_field_orders(&self) -> &[FieldOrder] {
  62. &self.field_orders
  63. }
  64. pub fn clear_field_orders(&mut self) {
  65. self.field_orders.clear();
  66. }
  67. // Param is passed by value, moved
  68. pub fn set_field_orders(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {
  69. self.field_orders = v;
  70. }
  71. // Mutable pointer to the field.
  72. pub fn mut_field_orders(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {
  73. &mut self.field_orders
  74. }
  75. // Take field
  76. pub fn take_field_orders(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {
  77. ::std::mem::replace(&mut self.field_orders, ::protobuf::RepeatedField::new())
  78. }
  79. // repeated .GridBlockOrder block_orders = 3;
  80. pub fn get_block_orders(&self) -> &[GridBlockOrder] {
  81. &self.block_orders
  82. }
  83. pub fn clear_block_orders(&mut self) {
  84. self.block_orders.clear();
  85. }
  86. // Param is passed by value, moved
  87. pub fn set_block_orders(&mut self, v: ::protobuf::RepeatedField<GridBlockOrder>) {
  88. self.block_orders = v;
  89. }
  90. // Mutable pointer to the field.
  91. pub fn mut_block_orders(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockOrder> {
  92. &mut self.block_orders
  93. }
  94. // Take field
  95. pub fn take_block_orders(&mut self) -> ::protobuf::RepeatedField<GridBlockOrder> {
  96. ::std::mem::replace(&mut self.block_orders, ::protobuf::RepeatedField::new())
  97. }
  98. }
  99. impl ::protobuf::Message for Grid {
  100. fn is_initialized(&self) -> bool {
  101. for v in &self.field_orders {
  102. if !v.is_initialized() {
  103. return false;
  104. }
  105. };
  106. for v in &self.block_orders {
  107. if !v.is_initialized() {
  108. return false;
  109. }
  110. };
  111. true
  112. }
  113. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  114. while !is.eof()? {
  115. let (field_number, wire_type) = is.read_tag_unpack()?;
  116. match field_number {
  117. 1 => {
  118. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  119. },
  120. 2 => {
  121. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.field_orders)?;
  122. },
  123. 3 => {
  124. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_orders)?;
  125. },
  126. _ => {
  127. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  128. },
  129. };
  130. }
  131. ::std::result::Result::Ok(())
  132. }
  133. // Compute sizes of nested messages
  134. #[allow(unused_variables)]
  135. fn compute_size(&self) -> u32 {
  136. let mut my_size = 0;
  137. if !self.id.is_empty() {
  138. my_size += ::protobuf::rt::string_size(1, &self.id);
  139. }
  140. for value in &self.field_orders {
  141. let len = value.compute_size();
  142. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  143. };
  144. for value in &self.block_orders {
  145. let len = value.compute_size();
  146. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  147. };
  148. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  149. self.cached_size.set(my_size);
  150. my_size
  151. }
  152. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  153. if !self.id.is_empty() {
  154. os.write_string(1, &self.id)?;
  155. }
  156. for v in &self.field_orders {
  157. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  158. os.write_raw_varint32(v.get_cached_size())?;
  159. v.write_to_with_cached_sizes(os)?;
  160. };
  161. for v in &self.block_orders {
  162. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  163. os.write_raw_varint32(v.get_cached_size())?;
  164. v.write_to_with_cached_sizes(os)?;
  165. };
  166. os.write_unknown_fields(self.get_unknown_fields())?;
  167. ::std::result::Result::Ok(())
  168. }
  169. fn get_cached_size(&self) -> u32 {
  170. self.cached_size.get()
  171. }
  172. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  173. &self.unknown_fields
  174. }
  175. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  176. &mut self.unknown_fields
  177. }
  178. fn as_any(&self) -> &dyn (::std::any::Any) {
  179. self as &dyn (::std::any::Any)
  180. }
  181. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  182. self as &mut dyn (::std::any::Any)
  183. }
  184. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  185. self
  186. }
  187. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  188. Self::descriptor_static()
  189. }
  190. fn new() -> Grid {
  191. Grid::new()
  192. }
  193. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  194. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  195. descriptor.get(|| {
  196. let mut fields = ::std::vec::Vec::new();
  197. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  198. "id",
  199. |m: &Grid| { &m.id },
  200. |m: &mut Grid| { &mut m.id },
  201. ));
  202. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(
  203. "field_orders",
  204. |m: &Grid| { &m.field_orders },
  205. |m: &mut Grid| { &mut m.field_orders },
  206. ));
  207. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockOrder>>(
  208. "block_orders",
  209. |m: &Grid| { &m.block_orders },
  210. |m: &mut Grid| { &mut m.block_orders },
  211. ));
  212. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Grid>(
  213. "Grid",
  214. fields,
  215. file_descriptor_proto()
  216. )
  217. })
  218. }
  219. fn default_instance() -> &'static Grid {
  220. static instance: ::protobuf::rt::LazyV2<Grid> = ::protobuf::rt::LazyV2::INIT;
  221. instance.get(Grid::new)
  222. }
  223. }
  224. impl ::protobuf::Clear for Grid {
  225. fn clear(&mut self) {
  226. self.id.clear();
  227. self.field_orders.clear();
  228. self.block_orders.clear();
  229. self.unknown_fields.clear();
  230. }
  231. }
  232. impl ::std::fmt::Debug for Grid {
  233. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  234. ::protobuf::text_format::fmt(self, f)
  235. }
  236. }
  237. impl ::protobuf::reflect::ProtobufValue for Grid {
  238. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  239. ::protobuf::reflect::ReflectValueRef::Message(self)
  240. }
  241. }
  242. #[derive(PartialEq,Clone,Default)]
  243. pub struct Field {
  244. // message fields
  245. pub id: ::std::string::String,
  246. pub name: ::std::string::String,
  247. pub desc: ::std::string::String,
  248. pub field_type: FieldType,
  249. pub frozen: bool,
  250. pub visibility: bool,
  251. pub width: i32,
  252. pub is_primary: bool,
  253. // special fields
  254. pub unknown_fields: ::protobuf::UnknownFields,
  255. pub cached_size: ::protobuf::CachedSize,
  256. }
  257. impl<'a> ::std::default::Default for &'a Field {
  258. fn default() -> &'a Field {
  259. <Field as ::protobuf::Message>::default_instance()
  260. }
  261. }
  262. impl Field {
  263. pub fn new() -> Field {
  264. ::std::default::Default::default()
  265. }
  266. // string id = 1;
  267. pub fn get_id(&self) -> &str {
  268. &self.id
  269. }
  270. pub fn clear_id(&mut self) {
  271. self.id.clear();
  272. }
  273. // Param is passed by value, moved
  274. pub fn set_id(&mut self, v: ::std::string::String) {
  275. self.id = v;
  276. }
  277. // Mutable pointer to the field.
  278. // If field is not initialized, it is initialized with default value first.
  279. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  280. &mut self.id
  281. }
  282. // Take field
  283. pub fn take_id(&mut self) -> ::std::string::String {
  284. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  285. }
  286. // string name = 2;
  287. pub fn get_name(&self) -> &str {
  288. &self.name
  289. }
  290. pub fn clear_name(&mut self) {
  291. self.name.clear();
  292. }
  293. // Param is passed by value, moved
  294. pub fn set_name(&mut self, v: ::std::string::String) {
  295. self.name = v;
  296. }
  297. // Mutable pointer to the field.
  298. // If field is not initialized, it is initialized with default value first.
  299. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  300. &mut self.name
  301. }
  302. // Take field
  303. pub fn take_name(&mut self) -> ::std::string::String {
  304. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  305. }
  306. // string desc = 3;
  307. pub fn get_desc(&self) -> &str {
  308. &self.desc
  309. }
  310. pub fn clear_desc(&mut self) {
  311. self.desc.clear();
  312. }
  313. // Param is passed by value, moved
  314. pub fn set_desc(&mut self, v: ::std::string::String) {
  315. self.desc = v;
  316. }
  317. // Mutable pointer to the field.
  318. // If field is not initialized, it is initialized with default value first.
  319. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  320. &mut self.desc
  321. }
  322. // Take field
  323. pub fn take_desc(&mut self) -> ::std::string::String {
  324. ::std::mem::replace(&mut self.desc, ::std::string::String::new())
  325. }
  326. // .FieldType field_type = 4;
  327. pub fn get_field_type(&self) -> FieldType {
  328. self.field_type
  329. }
  330. pub fn clear_field_type(&mut self) {
  331. self.field_type = FieldType::RichText;
  332. }
  333. // Param is passed by value, moved
  334. pub fn set_field_type(&mut self, v: FieldType) {
  335. self.field_type = v;
  336. }
  337. // bool frozen = 5;
  338. pub fn get_frozen(&self) -> bool {
  339. self.frozen
  340. }
  341. pub fn clear_frozen(&mut self) {
  342. self.frozen = false;
  343. }
  344. // Param is passed by value, moved
  345. pub fn set_frozen(&mut self, v: bool) {
  346. self.frozen = v;
  347. }
  348. // bool visibility = 6;
  349. pub fn get_visibility(&self) -> bool {
  350. self.visibility
  351. }
  352. pub fn clear_visibility(&mut self) {
  353. self.visibility = false;
  354. }
  355. // Param is passed by value, moved
  356. pub fn set_visibility(&mut self, v: bool) {
  357. self.visibility = v;
  358. }
  359. // int32 width = 7;
  360. pub fn get_width(&self) -> i32 {
  361. self.width
  362. }
  363. pub fn clear_width(&mut self) {
  364. self.width = 0;
  365. }
  366. // Param is passed by value, moved
  367. pub fn set_width(&mut self, v: i32) {
  368. self.width = v;
  369. }
  370. // bool is_primary = 8;
  371. pub fn get_is_primary(&self) -> bool {
  372. self.is_primary
  373. }
  374. pub fn clear_is_primary(&mut self) {
  375. self.is_primary = false;
  376. }
  377. // Param is passed by value, moved
  378. pub fn set_is_primary(&mut self, v: bool) {
  379. self.is_primary = v;
  380. }
  381. }
  382. impl ::protobuf::Message for Field {
  383. fn is_initialized(&self) -> bool {
  384. true
  385. }
  386. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  387. while !is.eof()? {
  388. let (field_number, wire_type) = is.read_tag_unpack()?;
  389. match field_number {
  390. 1 => {
  391. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  392. },
  393. 2 => {
  394. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  395. },
  396. 3 => {
  397. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
  398. },
  399. 4 => {
  400. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)?
  401. },
  402. 5 => {
  403. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  404. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  405. }
  406. let tmp = is.read_bool()?;
  407. self.frozen = tmp;
  408. },
  409. 6 => {
  410. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  411. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  412. }
  413. let tmp = is.read_bool()?;
  414. self.visibility = tmp;
  415. },
  416. 7 => {
  417. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  418. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  419. }
  420. let tmp = is.read_int32()?;
  421. self.width = tmp;
  422. },
  423. 8 => {
  424. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  425. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  426. }
  427. let tmp = is.read_bool()?;
  428. self.is_primary = tmp;
  429. },
  430. _ => {
  431. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  432. },
  433. };
  434. }
  435. ::std::result::Result::Ok(())
  436. }
  437. // Compute sizes of nested messages
  438. #[allow(unused_variables)]
  439. fn compute_size(&self) -> u32 {
  440. let mut my_size = 0;
  441. if !self.id.is_empty() {
  442. my_size += ::protobuf::rt::string_size(1, &self.id);
  443. }
  444. if !self.name.is_empty() {
  445. my_size += ::protobuf::rt::string_size(2, &self.name);
  446. }
  447. if !self.desc.is_empty() {
  448. my_size += ::protobuf::rt::string_size(3, &self.desc);
  449. }
  450. if self.field_type != FieldType::RichText {
  451. my_size += ::protobuf::rt::enum_size(4, self.field_type);
  452. }
  453. if self.frozen != false {
  454. my_size += 2;
  455. }
  456. if self.visibility != false {
  457. my_size += 2;
  458. }
  459. if self.width != 0 {
  460. my_size += ::protobuf::rt::value_size(7, self.width, ::protobuf::wire_format::WireTypeVarint);
  461. }
  462. if self.is_primary != false {
  463. my_size += 2;
  464. }
  465. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  466. self.cached_size.set(my_size);
  467. my_size
  468. }
  469. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  470. if !self.id.is_empty() {
  471. os.write_string(1, &self.id)?;
  472. }
  473. if !self.name.is_empty() {
  474. os.write_string(2, &self.name)?;
  475. }
  476. if !self.desc.is_empty() {
  477. os.write_string(3, &self.desc)?;
  478. }
  479. if self.field_type != FieldType::RichText {
  480. os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  481. }
  482. if self.frozen != false {
  483. os.write_bool(5, self.frozen)?;
  484. }
  485. if self.visibility != false {
  486. os.write_bool(6, self.visibility)?;
  487. }
  488. if self.width != 0 {
  489. os.write_int32(7, self.width)?;
  490. }
  491. if self.is_primary != false {
  492. os.write_bool(8, self.is_primary)?;
  493. }
  494. os.write_unknown_fields(self.get_unknown_fields())?;
  495. ::std::result::Result::Ok(())
  496. }
  497. fn get_cached_size(&self) -> u32 {
  498. self.cached_size.get()
  499. }
  500. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  501. &self.unknown_fields
  502. }
  503. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  504. &mut self.unknown_fields
  505. }
  506. fn as_any(&self) -> &dyn (::std::any::Any) {
  507. self as &dyn (::std::any::Any)
  508. }
  509. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  510. self as &mut dyn (::std::any::Any)
  511. }
  512. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  513. self
  514. }
  515. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  516. Self::descriptor_static()
  517. }
  518. fn new() -> Field {
  519. Field::new()
  520. }
  521. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  522. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  523. descriptor.get(|| {
  524. let mut fields = ::std::vec::Vec::new();
  525. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  526. "id",
  527. |m: &Field| { &m.id },
  528. |m: &mut Field| { &mut m.id },
  529. ));
  530. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  531. "name",
  532. |m: &Field| { &m.name },
  533. |m: &mut Field| { &mut m.name },
  534. ));
  535. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  536. "desc",
  537. |m: &Field| { &m.desc },
  538. |m: &mut Field| { &mut m.desc },
  539. ));
  540. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(
  541. "field_type",
  542. |m: &Field| { &m.field_type },
  543. |m: &mut Field| { &mut m.field_type },
  544. ));
  545. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  546. "frozen",
  547. |m: &Field| { &m.frozen },
  548. |m: &mut Field| { &mut m.frozen },
  549. ));
  550. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  551. "visibility",
  552. |m: &Field| { &m.visibility },
  553. |m: &mut Field| { &mut m.visibility },
  554. ));
  555. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  556. "width",
  557. |m: &Field| { &m.width },
  558. |m: &mut Field| { &mut m.width },
  559. ));
  560. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  561. "is_primary",
  562. |m: &Field| { &m.is_primary },
  563. |m: &mut Field| { &mut m.is_primary },
  564. ));
  565. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Field>(
  566. "Field",
  567. fields,
  568. file_descriptor_proto()
  569. )
  570. })
  571. }
  572. fn default_instance() -> &'static Field {
  573. static instance: ::protobuf::rt::LazyV2<Field> = ::protobuf::rt::LazyV2::INIT;
  574. instance.get(Field::new)
  575. }
  576. }
  577. impl ::protobuf::Clear for Field {
  578. fn clear(&mut self) {
  579. self.id.clear();
  580. self.name.clear();
  581. self.desc.clear();
  582. self.field_type = FieldType::RichText;
  583. self.frozen = false;
  584. self.visibility = false;
  585. self.width = 0;
  586. self.is_primary = false;
  587. self.unknown_fields.clear();
  588. }
  589. }
  590. impl ::std::fmt::Debug for Field {
  591. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  592. ::protobuf::text_format::fmt(self, f)
  593. }
  594. }
  595. impl ::protobuf::reflect::ProtobufValue for Field {
  596. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  597. ::protobuf::reflect::ReflectValueRef::Message(self)
  598. }
  599. }
  600. #[derive(PartialEq,Clone,Default)]
  601. pub struct FieldOrder {
  602. // message fields
  603. pub field_id: ::std::string::String,
  604. // special fields
  605. pub unknown_fields: ::protobuf::UnknownFields,
  606. pub cached_size: ::protobuf::CachedSize,
  607. }
  608. impl<'a> ::std::default::Default for &'a FieldOrder {
  609. fn default() -> &'a FieldOrder {
  610. <FieldOrder as ::protobuf::Message>::default_instance()
  611. }
  612. }
  613. impl FieldOrder {
  614. pub fn new() -> FieldOrder {
  615. ::std::default::Default::default()
  616. }
  617. // string field_id = 1;
  618. pub fn get_field_id(&self) -> &str {
  619. &self.field_id
  620. }
  621. pub fn clear_field_id(&mut self) {
  622. self.field_id.clear();
  623. }
  624. // Param is passed by value, moved
  625. pub fn set_field_id(&mut self, v: ::std::string::String) {
  626. self.field_id = v;
  627. }
  628. // Mutable pointer to the field.
  629. // If field is not initialized, it is initialized with default value first.
  630. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  631. &mut self.field_id
  632. }
  633. // Take field
  634. pub fn take_field_id(&mut self) -> ::std::string::String {
  635. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  636. }
  637. }
  638. impl ::protobuf::Message for FieldOrder {
  639. fn is_initialized(&self) -> bool {
  640. true
  641. }
  642. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  643. while !is.eof()? {
  644. let (field_number, wire_type) = is.read_tag_unpack()?;
  645. match field_number {
  646. 1 => {
  647. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  648. },
  649. _ => {
  650. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  651. },
  652. };
  653. }
  654. ::std::result::Result::Ok(())
  655. }
  656. // Compute sizes of nested messages
  657. #[allow(unused_variables)]
  658. fn compute_size(&self) -> u32 {
  659. let mut my_size = 0;
  660. if !self.field_id.is_empty() {
  661. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  662. }
  663. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  664. self.cached_size.set(my_size);
  665. my_size
  666. }
  667. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  668. if !self.field_id.is_empty() {
  669. os.write_string(1, &self.field_id)?;
  670. }
  671. os.write_unknown_fields(self.get_unknown_fields())?;
  672. ::std::result::Result::Ok(())
  673. }
  674. fn get_cached_size(&self) -> u32 {
  675. self.cached_size.get()
  676. }
  677. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  678. &self.unknown_fields
  679. }
  680. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  681. &mut self.unknown_fields
  682. }
  683. fn as_any(&self) -> &dyn (::std::any::Any) {
  684. self as &dyn (::std::any::Any)
  685. }
  686. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  687. self as &mut dyn (::std::any::Any)
  688. }
  689. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  690. self
  691. }
  692. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  693. Self::descriptor_static()
  694. }
  695. fn new() -> FieldOrder {
  696. FieldOrder::new()
  697. }
  698. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  699. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  700. descriptor.get(|| {
  701. let mut fields = ::std::vec::Vec::new();
  702. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  703. "field_id",
  704. |m: &FieldOrder| { &m.field_id },
  705. |m: &mut FieldOrder| { &mut m.field_id },
  706. ));
  707. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldOrder>(
  708. "FieldOrder",
  709. fields,
  710. file_descriptor_proto()
  711. )
  712. })
  713. }
  714. fn default_instance() -> &'static FieldOrder {
  715. static instance: ::protobuf::rt::LazyV2<FieldOrder> = ::protobuf::rt::LazyV2::INIT;
  716. instance.get(FieldOrder::new)
  717. }
  718. }
  719. impl ::protobuf::Clear for FieldOrder {
  720. fn clear(&mut self) {
  721. self.field_id.clear();
  722. self.unknown_fields.clear();
  723. }
  724. }
  725. impl ::std::fmt::Debug for FieldOrder {
  726. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  727. ::protobuf::text_format::fmt(self, f)
  728. }
  729. }
  730. impl ::protobuf::reflect::ProtobufValue for FieldOrder {
  731. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  732. ::protobuf::reflect::ReflectValueRef::Message(self)
  733. }
  734. }
  735. #[derive(PartialEq,Clone,Default)]
  736. pub struct GridFieldChangeset {
  737. // message fields
  738. pub grid_id: ::std::string::String,
  739. pub inserted_fields: ::protobuf::RepeatedField<IndexField>,
  740. pub deleted_fields: ::protobuf::RepeatedField<FieldOrder>,
  741. pub updated_fields: ::protobuf::RepeatedField<Field>,
  742. // special fields
  743. pub unknown_fields: ::protobuf::UnknownFields,
  744. pub cached_size: ::protobuf::CachedSize,
  745. }
  746. impl<'a> ::std::default::Default for &'a GridFieldChangeset {
  747. fn default() -> &'a GridFieldChangeset {
  748. <GridFieldChangeset as ::protobuf::Message>::default_instance()
  749. }
  750. }
  751. impl GridFieldChangeset {
  752. pub fn new() -> GridFieldChangeset {
  753. ::std::default::Default::default()
  754. }
  755. // string grid_id = 1;
  756. pub fn get_grid_id(&self) -> &str {
  757. &self.grid_id
  758. }
  759. pub fn clear_grid_id(&mut self) {
  760. self.grid_id.clear();
  761. }
  762. // Param is passed by value, moved
  763. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  764. self.grid_id = v;
  765. }
  766. // Mutable pointer to the field.
  767. // If field is not initialized, it is initialized with default value first.
  768. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  769. &mut self.grid_id
  770. }
  771. // Take field
  772. pub fn take_grid_id(&mut self) -> ::std::string::String {
  773. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  774. }
  775. // repeated .IndexField inserted_fields = 2;
  776. pub fn get_inserted_fields(&self) -> &[IndexField] {
  777. &self.inserted_fields
  778. }
  779. pub fn clear_inserted_fields(&mut self) {
  780. self.inserted_fields.clear();
  781. }
  782. // Param is passed by value, moved
  783. pub fn set_inserted_fields(&mut self, v: ::protobuf::RepeatedField<IndexField>) {
  784. self.inserted_fields = v;
  785. }
  786. // Mutable pointer to the field.
  787. pub fn mut_inserted_fields(&mut self) -> &mut ::protobuf::RepeatedField<IndexField> {
  788. &mut self.inserted_fields
  789. }
  790. // Take field
  791. pub fn take_inserted_fields(&mut self) -> ::protobuf::RepeatedField<IndexField> {
  792. ::std::mem::replace(&mut self.inserted_fields, ::protobuf::RepeatedField::new())
  793. }
  794. // repeated .FieldOrder deleted_fields = 3;
  795. pub fn get_deleted_fields(&self) -> &[FieldOrder] {
  796. &self.deleted_fields
  797. }
  798. pub fn clear_deleted_fields(&mut self) {
  799. self.deleted_fields.clear();
  800. }
  801. // Param is passed by value, moved
  802. pub fn set_deleted_fields(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {
  803. self.deleted_fields = v;
  804. }
  805. // Mutable pointer to the field.
  806. pub fn mut_deleted_fields(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {
  807. &mut self.deleted_fields
  808. }
  809. // Take field
  810. pub fn take_deleted_fields(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {
  811. ::std::mem::replace(&mut self.deleted_fields, ::protobuf::RepeatedField::new())
  812. }
  813. // repeated .Field updated_fields = 4;
  814. pub fn get_updated_fields(&self) -> &[Field] {
  815. &self.updated_fields
  816. }
  817. pub fn clear_updated_fields(&mut self) {
  818. self.updated_fields.clear();
  819. }
  820. // Param is passed by value, moved
  821. pub fn set_updated_fields(&mut self, v: ::protobuf::RepeatedField<Field>) {
  822. self.updated_fields = v;
  823. }
  824. // Mutable pointer to the field.
  825. pub fn mut_updated_fields(&mut self) -> &mut ::protobuf::RepeatedField<Field> {
  826. &mut self.updated_fields
  827. }
  828. // Take field
  829. pub fn take_updated_fields(&mut self) -> ::protobuf::RepeatedField<Field> {
  830. ::std::mem::replace(&mut self.updated_fields, ::protobuf::RepeatedField::new())
  831. }
  832. }
  833. impl ::protobuf::Message for GridFieldChangeset {
  834. fn is_initialized(&self) -> bool {
  835. for v in &self.inserted_fields {
  836. if !v.is_initialized() {
  837. return false;
  838. }
  839. };
  840. for v in &self.deleted_fields {
  841. if !v.is_initialized() {
  842. return false;
  843. }
  844. };
  845. for v in &self.updated_fields {
  846. if !v.is_initialized() {
  847. return false;
  848. }
  849. };
  850. true
  851. }
  852. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  853. while !is.eof()? {
  854. let (field_number, wire_type) = is.read_tag_unpack()?;
  855. match field_number {
  856. 1 => {
  857. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  858. },
  859. 2 => {
  860. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inserted_fields)?;
  861. },
  862. 3 => {
  863. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.deleted_fields)?;
  864. },
  865. 4 => {
  866. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.updated_fields)?;
  867. },
  868. _ => {
  869. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  870. },
  871. };
  872. }
  873. ::std::result::Result::Ok(())
  874. }
  875. // Compute sizes of nested messages
  876. #[allow(unused_variables)]
  877. fn compute_size(&self) -> u32 {
  878. let mut my_size = 0;
  879. if !self.grid_id.is_empty() {
  880. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  881. }
  882. for value in &self.inserted_fields {
  883. let len = value.compute_size();
  884. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  885. };
  886. for value in &self.deleted_fields {
  887. let len = value.compute_size();
  888. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  889. };
  890. for value in &self.updated_fields {
  891. let len = value.compute_size();
  892. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  893. };
  894. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  895. self.cached_size.set(my_size);
  896. my_size
  897. }
  898. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  899. if !self.grid_id.is_empty() {
  900. os.write_string(1, &self.grid_id)?;
  901. }
  902. for v in &self.inserted_fields {
  903. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  904. os.write_raw_varint32(v.get_cached_size())?;
  905. v.write_to_with_cached_sizes(os)?;
  906. };
  907. for v in &self.deleted_fields {
  908. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  909. os.write_raw_varint32(v.get_cached_size())?;
  910. v.write_to_with_cached_sizes(os)?;
  911. };
  912. for v in &self.updated_fields {
  913. os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  914. os.write_raw_varint32(v.get_cached_size())?;
  915. v.write_to_with_cached_sizes(os)?;
  916. };
  917. os.write_unknown_fields(self.get_unknown_fields())?;
  918. ::std::result::Result::Ok(())
  919. }
  920. fn get_cached_size(&self) -> u32 {
  921. self.cached_size.get()
  922. }
  923. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  924. &self.unknown_fields
  925. }
  926. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  927. &mut self.unknown_fields
  928. }
  929. fn as_any(&self) -> &dyn (::std::any::Any) {
  930. self as &dyn (::std::any::Any)
  931. }
  932. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  933. self as &mut dyn (::std::any::Any)
  934. }
  935. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  936. self
  937. }
  938. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  939. Self::descriptor_static()
  940. }
  941. fn new() -> GridFieldChangeset {
  942. GridFieldChangeset::new()
  943. }
  944. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  945. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  946. descriptor.get(|| {
  947. let mut fields = ::std::vec::Vec::new();
  948. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  949. "grid_id",
  950. |m: &GridFieldChangeset| { &m.grid_id },
  951. |m: &mut GridFieldChangeset| { &mut m.grid_id },
  952. ));
  953. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<IndexField>>(
  954. "inserted_fields",
  955. |m: &GridFieldChangeset| { &m.inserted_fields },
  956. |m: &mut GridFieldChangeset| { &mut m.inserted_fields },
  957. ));
  958. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(
  959. "deleted_fields",
  960. |m: &GridFieldChangeset| { &m.deleted_fields },
  961. |m: &mut GridFieldChangeset| { &mut m.deleted_fields },
  962. ));
  963. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  964. "updated_fields",
  965. |m: &GridFieldChangeset| { &m.updated_fields },
  966. |m: &mut GridFieldChangeset| { &mut m.updated_fields },
  967. ));
  968. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridFieldChangeset>(
  969. "GridFieldChangeset",
  970. fields,
  971. file_descriptor_proto()
  972. )
  973. })
  974. }
  975. fn default_instance() -> &'static GridFieldChangeset {
  976. static instance: ::protobuf::rt::LazyV2<GridFieldChangeset> = ::protobuf::rt::LazyV2::INIT;
  977. instance.get(GridFieldChangeset::new)
  978. }
  979. }
  980. impl ::protobuf::Clear for GridFieldChangeset {
  981. fn clear(&mut self) {
  982. self.grid_id.clear();
  983. self.inserted_fields.clear();
  984. self.deleted_fields.clear();
  985. self.updated_fields.clear();
  986. self.unknown_fields.clear();
  987. }
  988. }
  989. impl ::std::fmt::Debug for GridFieldChangeset {
  990. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  991. ::protobuf::text_format::fmt(self, f)
  992. }
  993. }
  994. impl ::protobuf::reflect::ProtobufValue for GridFieldChangeset {
  995. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  996. ::protobuf::reflect::ReflectValueRef::Message(self)
  997. }
  998. }
  999. #[derive(PartialEq,Clone,Default)]
  1000. pub struct IndexField {
  1001. // message fields
  1002. pub field: ::protobuf::SingularPtrField<Field>,
  1003. pub index: i32,
  1004. // special fields
  1005. pub unknown_fields: ::protobuf::UnknownFields,
  1006. pub cached_size: ::protobuf::CachedSize,
  1007. }
  1008. impl<'a> ::std::default::Default for &'a IndexField {
  1009. fn default() -> &'a IndexField {
  1010. <IndexField as ::protobuf::Message>::default_instance()
  1011. }
  1012. }
  1013. impl IndexField {
  1014. pub fn new() -> IndexField {
  1015. ::std::default::Default::default()
  1016. }
  1017. // .Field field = 1;
  1018. pub fn get_field(&self) -> &Field {
  1019. self.field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  1020. }
  1021. pub fn clear_field(&mut self) {
  1022. self.field.clear();
  1023. }
  1024. pub fn has_field(&self) -> bool {
  1025. self.field.is_some()
  1026. }
  1027. // Param is passed by value, moved
  1028. pub fn set_field(&mut self, v: Field) {
  1029. self.field = ::protobuf::SingularPtrField::some(v);
  1030. }
  1031. // Mutable pointer to the field.
  1032. // If field is not initialized, it is initialized with default value first.
  1033. pub fn mut_field(&mut self) -> &mut Field {
  1034. if self.field.is_none() {
  1035. self.field.set_default();
  1036. }
  1037. self.field.as_mut().unwrap()
  1038. }
  1039. // Take field
  1040. pub fn take_field(&mut self) -> Field {
  1041. self.field.take().unwrap_or_else(|| Field::new())
  1042. }
  1043. // int32 index = 2;
  1044. pub fn get_index(&self) -> i32 {
  1045. self.index
  1046. }
  1047. pub fn clear_index(&mut self) {
  1048. self.index = 0;
  1049. }
  1050. // Param is passed by value, moved
  1051. pub fn set_index(&mut self, v: i32) {
  1052. self.index = v;
  1053. }
  1054. }
  1055. impl ::protobuf::Message for IndexField {
  1056. fn is_initialized(&self) -> bool {
  1057. for v in &self.field {
  1058. if !v.is_initialized() {
  1059. return false;
  1060. }
  1061. };
  1062. true
  1063. }
  1064. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1065. while !is.eof()? {
  1066. let (field_number, wire_type) = is.read_tag_unpack()?;
  1067. match field_number {
  1068. 1 => {
  1069. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field)?;
  1070. },
  1071. 2 => {
  1072. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1073. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1074. }
  1075. let tmp = is.read_int32()?;
  1076. self.index = tmp;
  1077. },
  1078. _ => {
  1079. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1080. },
  1081. };
  1082. }
  1083. ::std::result::Result::Ok(())
  1084. }
  1085. // Compute sizes of nested messages
  1086. #[allow(unused_variables)]
  1087. fn compute_size(&self) -> u32 {
  1088. let mut my_size = 0;
  1089. if let Some(ref v) = self.field.as_ref() {
  1090. let len = v.compute_size();
  1091. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1092. }
  1093. if self.index != 0 {
  1094. my_size += ::protobuf::rt::value_size(2, self.index, ::protobuf::wire_format::WireTypeVarint);
  1095. }
  1096. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1097. self.cached_size.set(my_size);
  1098. my_size
  1099. }
  1100. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1101. if let Some(ref v) = self.field.as_ref() {
  1102. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1103. os.write_raw_varint32(v.get_cached_size())?;
  1104. v.write_to_with_cached_sizes(os)?;
  1105. }
  1106. if self.index != 0 {
  1107. os.write_int32(2, self.index)?;
  1108. }
  1109. os.write_unknown_fields(self.get_unknown_fields())?;
  1110. ::std::result::Result::Ok(())
  1111. }
  1112. fn get_cached_size(&self) -> u32 {
  1113. self.cached_size.get()
  1114. }
  1115. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1116. &self.unknown_fields
  1117. }
  1118. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1119. &mut self.unknown_fields
  1120. }
  1121. fn as_any(&self) -> &dyn (::std::any::Any) {
  1122. self as &dyn (::std::any::Any)
  1123. }
  1124. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1125. self as &mut dyn (::std::any::Any)
  1126. }
  1127. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1128. self
  1129. }
  1130. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1131. Self::descriptor_static()
  1132. }
  1133. fn new() -> IndexField {
  1134. IndexField::new()
  1135. }
  1136. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1137. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1138. descriptor.get(|| {
  1139. let mut fields = ::std::vec::Vec::new();
  1140. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1141. "field",
  1142. |m: &IndexField| { &m.field },
  1143. |m: &mut IndexField| { &mut m.field },
  1144. ));
  1145. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  1146. "index",
  1147. |m: &IndexField| { &m.index },
  1148. |m: &mut IndexField| { &mut m.index },
  1149. ));
  1150. ::protobuf::reflect::MessageDescriptor::new_pb_name::<IndexField>(
  1151. "IndexField",
  1152. fields,
  1153. file_descriptor_proto()
  1154. )
  1155. })
  1156. }
  1157. fn default_instance() -> &'static IndexField {
  1158. static instance: ::protobuf::rt::LazyV2<IndexField> = ::protobuf::rt::LazyV2::INIT;
  1159. instance.get(IndexField::new)
  1160. }
  1161. }
  1162. impl ::protobuf::Clear for IndexField {
  1163. fn clear(&mut self) {
  1164. self.field.clear();
  1165. self.index = 0;
  1166. self.unknown_fields.clear();
  1167. }
  1168. }
  1169. impl ::std::fmt::Debug for IndexField {
  1170. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1171. ::protobuf::text_format::fmt(self, f)
  1172. }
  1173. }
  1174. impl ::protobuf::reflect::ProtobufValue for IndexField {
  1175. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1176. ::protobuf::reflect::ReflectValueRef::Message(self)
  1177. }
  1178. }
  1179. #[derive(PartialEq,Clone,Default)]
  1180. pub struct GetEditFieldContextPayload {
  1181. // message fields
  1182. pub grid_id: ::std::string::String,
  1183. pub field_type: FieldType,
  1184. // message oneof groups
  1185. pub one_of_field_id: ::std::option::Option<GetEditFieldContextPayload_oneof_one_of_field_id>,
  1186. // special fields
  1187. pub unknown_fields: ::protobuf::UnknownFields,
  1188. pub cached_size: ::protobuf::CachedSize,
  1189. }
  1190. impl<'a> ::std::default::Default for &'a GetEditFieldContextPayload {
  1191. fn default() -> &'a GetEditFieldContextPayload {
  1192. <GetEditFieldContextPayload as ::protobuf::Message>::default_instance()
  1193. }
  1194. }
  1195. #[derive(Clone,PartialEq,Debug)]
  1196. pub enum GetEditFieldContextPayload_oneof_one_of_field_id {
  1197. field_id(::std::string::String),
  1198. }
  1199. impl GetEditFieldContextPayload {
  1200. pub fn new() -> GetEditFieldContextPayload {
  1201. ::std::default::Default::default()
  1202. }
  1203. // string grid_id = 1;
  1204. pub fn get_grid_id(&self) -> &str {
  1205. &self.grid_id
  1206. }
  1207. pub fn clear_grid_id(&mut self) {
  1208. self.grid_id.clear();
  1209. }
  1210. // Param is passed by value, moved
  1211. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1212. self.grid_id = v;
  1213. }
  1214. // Mutable pointer to the field.
  1215. // If field is not initialized, it is initialized with default value first.
  1216. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1217. &mut self.grid_id
  1218. }
  1219. // Take field
  1220. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1221. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1222. }
  1223. // string field_id = 2;
  1224. pub fn get_field_id(&self) -> &str {
  1225. match self.one_of_field_id {
  1226. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v)) => v,
  1227. _ => "",
  1228. }
  1229. }
  1230. pub fn clear_field_id(&mut self) {
  1231. self.one_of_field_id = ::std::option::Option::None;
  1232. }
  1233. pub fn has_field_id(&self) -> bool {
  1234. match self.one_of_field_id {
  1235. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(..)) => true,
  1236. _ => false,
  1237. }
  1238. }
  1239. // Param is passed by value, moved
  1240. pub fn set_field_id(&mut self, v: ::std::string::String) {
  1241. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(v))
  1242. }
  1243. // Mutable pointer to the field.
  1244. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  1245. if let ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(_)) = self.one_of_field_id {
  1246. } else {
  1247. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(::std::string::String::new()));
  1248. }
  1249. match self.one_of_field_id {
  1250. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref mut v)) => v,
  1251. _ => panic!(),
  1252. }
  1253. }
  1254. // Take field
  1255. pub fn take_field_id(&mut self) -> ::std::string::String {
  1256. if self.has_field_id() {
  1257. match self.one_of_field_id.take() {
  1258. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(v)) => v,
  1259. _ => panic!(),
  1260. }
  1261. } else {
  1262. ::std::string::String::new()
  1263. }
  1264. }
  1265. // .FieldType field_type = 3;
  1266. pub fn get_field_type(&self) -> FieldType {
  1267. self.field_type
  1268. }
  1269. pub fn clear_field_type(&mut self) {
  1270. self.field_type = FieldType::RichText;
  1271. }
  1272. // Param is passed by value, moved
  1273. pub fn set_field_type(&mut self, v: FieldType) {
  1274. self.field_type = v;
  1275. }
  1276. }
  1277. impl ::protobuf::Message for GetEditFieldContextPayload {
  1278. fn is_initialized(&self) -> bool {
  1279. true
  1280. }
  1281. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1282. while !is.eof()? {
  1283. let (field_number, wire_type) = is.read_tag_unpack()?;
  1284. match field_number {
  1285. 1 => {
  1286. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1287. },
  1288. 2 => {
  1289. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  1290. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1291. }
  1292. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(is.read_string()?));
  1293. },
  1294. 3 => {
  1295. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 3, &mut self.unknown_fields)?
  1296. },
  1297. _ => {
  1298. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1299. },
  1300. };
  1301. }
  1302. ::std::result::Result::Ok(())
  1303. }
  1304. // Compute sizes of nested messages
  1305. #[allow(unused_variables)]
  1306. fn compute_size(&self) -> u32 {
  1307. let mut my_size = 0;
  1308. if !self.grid_id.is_empty() {
  1309. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1310. }
  1311. if self.field_type != FieldType::RichText {
  1312. my_size += ::protobuf::rt::enum_size(3, self.field_type);
  1313. }
  1314. if let ::std::option::Option::Some(ref v) = self.one_of_field_id {
  1315. match v {
  1316. &GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v) => {
  1317. my_size += ::protobuf::rt::string_size(2, &v);
  1318. },
  1319. };
  1320. }
  1321. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1322. self.cached_size.set(my_size);
  1323. my_size
  1324. }
  1325. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1326. if !self.grid_id.is_empty() {
  1327. os.write_string(1, &self.grid_id)?;
  1328. }
  1329. if self.field_type != FieldType::RichText {
  1330. os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  1331. }
  1332. if let ::std::option::Option::Some(ref v) = self.one_of_field_id {
  1333. match v {
  1334. &GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v) => {
  1335. os.write_string(2, v)?;
  1336. },
  1337. };
  1338. }
  1339. os.write_unknown_fields(self.get_unknown_fields())?;
  1340. ::std::result::Result::Ok(())
  1341. }
  1342. fn get_cached_size(&self) -> u32 {
  1343. self.cached_size.get()
  1344. }
  1345. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1346. &self.unknown_fields
  1347. }
  1348. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1349. &mut self.unknown_fields
  1350. }
  1351. fn as_any(&self) -> &dyn (::std::any::Any) {
  1352. self as &dyn (::std::any::Any)
  1353. }
  1354. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1355. self as &mut dyn (::std::any::Any)
  1356. }
  1357. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1358. self
  1359. }
  1360. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1361. Self::descriptor_static()
  1362. }
  1363. fn new() -> GetEditFieldContextPayload {
  1364. GetEditFieldContextPayload::new()
  1365. }
  1366. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1367. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1368. descriptor.get(|| {
  1369. let mut fields = ::std::vec::Vec::new();
  1370. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1371. "grid_id",
  1372. |m: &GetEditFieldContextPayload| { &m.grid_id },
  1373. |m: &mut GetEditFieldContextPayload| { &mut m.grid_id },
  1374. ));
  1375. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  1376. "field_id",
  1377. GetEditFieldContextPayload::has_field_id,
  1378. GetEditFieldContextPayload::get_field_id,
  1379. ));
  1380. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(
  1381. "field_type",
  1382. |m: &GetEditFieldContextPayload| { &m.field_type },
  1383. |m: &mut GetEditFieldContextPayload| { &mut m.field_type },
  1384. ));
  1385. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GetEditFieldContextPayload>(
  1386. "GetEditFieldContextPayload",
  1387. fields,
  1388. file_descriptor_proto()
  1389. )
  1390. })
  1391. }
  1392. fn default_instance() -> &'static GetEditFieldContextPayload {
  1393. static instance: ::protobuf::rt::LazyV2<GetEditFieldContextPayload> = ::protobuf::rt::LazyV2::INIT;
  1394. instance.get(GetEditFieldContextPayload::new)
  1395. }
  1396. }
  1397. impl ::protobuf::Clear for GetEditFieldContextPayload {
  1398. fn clear(&mut self) {
  1399. self.grid_id.clear();
  1400. self.one_of_field_id = ::std::option::Option::None;
  1401. self.field_type = FieldType::RichText;
  1402. self.unknown_fields.clear();
  1403. }
  1404. }
  1405. impl ::std::fmt::Debug for GetEditFieldContextPayload {
  1406. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1407. ::protobuf::text_format::fmt(self, f)
  1408. }
  1409. }
  1410. impl ::protobuf::reflect::ProtobufValue for GetEditFieldContextPayload {
  1411. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1412. ::protobuf::reflect::ReflectValueRef::Message(self)
  1413. }
  1414. }
  1415. #[derive(PartialEq,Clone,Default)]
  1416. pub struct EditFieldPayload {
  1417. // message fields
  1418. pub grid_id: ::std::string::String,
  1419. pub field_id: ::std::string::String,
  1420. pub field_type: FieldType,
  1421. pub create_if_not_exist: bool,
  1422. // special fields
  1423. pub unknown_fields: ::protobuf::UnknownFields,
  1424. pub cached_size: ::protobuf::CachedSize,
  1425. }
  1426. impl<'a> ::std::default::Default for &'a EditFieldPayload {
  1427. fn default() -> &'a EditFieldPayload {
  1428. <EditFieldPayload as ::protobuf::Message>::default_instance()
  1429. }
  1430. }
  1431. impl EditFieldPayload {
  1432. pub fn new() -> EditFieldPayload {
  1433. ::std::default::Default::default()
  1434. }
  1435. // string grid_id = 1;
  1436. pub fn get_grid_id(&self) -> &str {
  1437. &self.grid_id
  1438. }
  1439. pub fn clear_grid_id(&mut self) {
  1440. self.grid_id.clear();
  1441. }
  1442. // Param is passed by value, moved
  1443. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1444. self.grid_id = v;
  1445. }
  1446. // Mutable pointer to the field.
  1447. // If field is not initialized, it is initialized with default value first.
  1448. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1449. &mut self.grid_id
  1450. }
  1451. // Take field
  1452. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1453. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1454. }
  1455. // string field_id = 2;
  1456. pub fn get_field_id(&self) -> &str {
  1457. &self.field_id
  1458. }
  1459. pub fn clear_field_id(&mut self) {
  1460. self.field_id.clear();
  1461. }
  1462. // Param is passed by value, moved
  1463. pub fn set_field_id(&mut self, v: ::std::string::String) {
  1464. self.field_id = v;
  1465. }
  1466. // Mutable pointer to the field.
  1467. // If field is not initialized, it is initialized with default value first.
  1468. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  1469. &mut self.field_id
  1470. }
  1471. // Take field
  1472. pub fn take_field_id(&mut self) -> ::std::string::String {
  1473. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  1474. }
  1475. // .FieldType field_type = 3;
  1476. pub fn get_field_type(&self) -> FieldType {
  1477. self.field_type
  1478. }
  1479. pub fn clear_field_type(&mut self) {
  1480. self.field_type = FieldType::RichText;
  1481. }
  1482. // Param is passed by value, moved
  1483. pub fn set_field_type(&mut self, v: FieldType) {
  1484. self.field_type = v;
  1485. }
  1486. // bool create_if_not_exist = 4;
  1487. pub fn get_create_if_not_exist(&self) -> bool {
  1488. self.create_if_not_exist
  1489. }
  1490. pub fn clear_create_if_not_exist(&mut self) {
  1491. self.create_if_not_exist = false;
  1492. }
  1493. // Param is passed by value, moved
  1494. pub fn set_create_if_not_exist(&mut self, v: bool) {
  1495. self.create_if_not_exist = v;
  1496. }
  1497. }
  1498. impl ::protobuf::Message for EditFieldPayload {
  1499. fn is_initialized(&self) -> bool {
  1500. true
  1501. }
  1502. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1503. while !is.eof()? {
  1504. let (field_number, wire_type) = is.read_tag_unpack()?;
  1505. match field_number {
  1506. 1 => {
  1507. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1508. },
  1509. 2 => {
  1510. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  1511. },
  1512. 3 => {
  1513. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 3, &mut self.unknown_fields)?
  1514. },
  1515. 4 => {
  1516. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1517. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1518. }
  1519. let tmp = is.read_bool()?;
  1520. self.create_if_not_exist = tmp;
  1521. },
  1522. _ => {
  1523. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1524. },
  1525. };
  1526. }
  1527. ::std::result::Result::Ok(())
  1528. }
  1529. // Compute sizes of nested messages
  1530. #[allow(unused_variables)]
  1531. fn compute_size(&self) -> u32 {
  1532. let mut my_size = 0;
  1533. if !self.grid_id.is_empty() {
  1534. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1535. }
  1536. if !self.field_id.is_empty() {
  1537. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  1538. }
  1539. if self.field_type != FieldType::RichText {
  1540. my_size += ::protobuf::rt::enum_size(3, self.field_type);
  1541. }
  1542. if self.create_if_not_exist != false {
  1543. my_size += 2;
  1544. }
  1545. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1546. self.cached_size.set(my_size);
  1547. my_size
  1548. }
  1549. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1550. if !self.grid_id.is_empty() {
  1551. os.write_string(1, &self.grid_id)?;
  1552. }
  1553. if !self.field_id.is_empty() {
  1554. os.write_string(2, &self.field_id)?;
  1555. }
  1556. if self.field_type != FieldType::RichText {
  1557. os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  1558. }
  1559. if self.create_if_not_exist != false {
  1560. os.write_bool(4, self.create_if_not_exist)?;
  1561. }
  1562. os.write_unknown_fields(self.get_unknown_fields())?;
  1563. ::std::result::Result::Ok(())
  1564. }
  1565. fn get_cached_size(&self) -> u32 {
  1566. self.cached_size.get()
  1567. }
  1568. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1569. &self.unknown_fields
  1570. }
  1571. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1572. &mut self.unknown_fields
  1573. }
  1574. fn as_any(&self) -> &dyn (::std::any::Any) {
  1575. self as &dyn (::std::any::Any)
  1576. }
  1577. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1578. self as &mut dyn (::std::any::Any)
  1579. }
  1580. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1581. self
  1582. }
  1583. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1584. Self::descriptor_static()
  1585. }
  1586. fn new() -> EditFieldPayload {
  1587. EditFieldPayload::new()
  1588. }
  1589. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1590. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1591. descriptor.get(|| {
  1592. let mut fields = ::std::vec::Vec::new();
  1593. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1594. "grid_id",
  1595. |m: &EditFieldPayload| { &m.grid_id },
  1596. |m: &mut EditFieldPayload| { &mut m.grid_id },
  1597. ));
  1598. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1599. "field_id",
  1600. |m: &EditFieldPayload| { &m.field_id },
  1601. |m: &mut EditFieldPayload| { &mut m.field_id },
  1602. ));
  1603. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(
  1604. "field_type",
  1605. |m: &EditFieldPayload| { &m.field_type },
  1606. |m: &mut EditFieldPayload| { &mut m.field_type },
  1607. ));
  1608. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  1609. "create_if_not_exist",
  1610. |m: &EditFieldPayload| { &m.create_if_not_exist },
  1611. |m: &mut EditFieldPayload| { &mut m.create_if_not_exist },
  1612. ));
  1613. ::protobuf::reflect::MessageDescriptor::new_pb_name::<EditFieldPayload>(
  1614. "EditFieldPayload",
  1615. fields,
  1616. file_descriptor_proto()
  1617. )
  1618. })
  1619. }
  1620. fn default_instance() -> &'static EditFieldPayload {
  1621. static instance: ::protobuf::rt::LazyV2<EditFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  1622. instance.get(EditFieldPayload::new)
  1623. }
  1624. }
  1625. impl ::protobuf::Clear for EditFieldPayload {
  1626. fn clear(&mut self) {
  1627. self.grid_id.clear();
  1628. self.field_id.clear();
  1629. self.field_type = FieldType::RichText;
  1630. self.create_if_not_exist = false;
  1631. self.unknown_fields.clear();
  1632. }
  1633. }
  1634. impl ::std::fmt::Debug for EditFieldPayload {
  1635. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1636. ::protobuf::text_format::fmt(self, f)
  1637. }
  1638. }
  1639. impl ::protobuf::reflect::ProtobufValue for EditFieldPayload {
  1640. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1641. ::protobuf::reflect::ReflectValueRef::Message(self)
  1642. }
  1643. }
  1644. #[derive(PartialEq,Clone,Default)]
  1645. pub struct FieldTypeOptionContext {
  1646. // message fields
  1647. pub grid_id: ::std::string::String,
  1648. pub grid_field: ::protobuf::SingularPtrField<Field>,
  1649. pub type_option_data: ::std::vec::Vec<u8>,
  1650. // special fields
  1651. pub unknown_fields: ::protobuf::UnknownFields,
  1652. pub cached_size: ::protobuf::CachedSize,
  1653. }
  1654. impl<'a> ::std::default::Default for &'a FieldTypeOptionContext {
  1655. fn default() -> &'a FieldTypeOptionContext {
  1656. <FieldTypeOptionContext as ::protobuf::Message>::default_instance()
  1657. }
  1658. }
  1659. impl FieldTypeOptionContext {
  1660. pub fn new() -> FieldTypeOptionContext {
  1661. ::std::default::Default::default()
  1662. }
  1663. // string grid_id = 1;
  1664. pub fn get_grid_id(&self) -> &str {
  1665. &self.grid_id
  1666. }
  1667. pub fn clear_grid_id(&mut self) {
  1668. self.grid_id.clear();
  1669. }
  1670. // Param is passed by value, moved
  1671. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1672. self.grid_id = v;
  1673. }
  1674. // Mutable pointer to the field.
  1675. // If field is not initialized, it is initialized with default value first.
  1676. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1677. &mut self.grid_id
  1678. }
  1679. // Take field
  1680. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1681. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1682. }
  1683. // .Field grid_field = 2;
  1684. pub fn get_grid_field(&self) -> &Field {
  1685. self.grid_field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  1686. }
  1687. pub fn clear_grid_field(&mut self) {
  1688. self.grid_field.clear();
  1689. }
  1690. pub fn has_grid_field(&self) -> bool {
  1691. self.grid_field.is_some()
  1692. }
  1693. // Param is passed by value, moved
  1694. pub fn set_grid_field(&mut self, v: Field) {
  1695. self.grid_field = ::protobuf::SingularPtrField::some(v);
  1696. }
  1697. // Mutable pointer to the field.
  1698. // If field is not initialized, it is initialized with default value first.
  1699. pub fn mut_grid_field(&mut self) -> &mut Field {
  1700. if self.grid_field.is_none() {
  1701. self.grid_field.set_default();
  1702. }
  1703. self.grid_field.as_mut().unwrap()
  1704. }
  1705. // Take field
  1706. pub fn take_grid_field(&mut self) -> Field {
  1707. self.grid_field.take().unwrap_or_else(|| Field::new())
  1708. }
  1709. // bytes type_option_data = 3;
  1710. pub fn get_type_option_data(&self) -> &[u8] {
  1711. &self.type_option_data
  1712. }
  1713. pub fn clear_type_option_data(&mut self) {
  1714. self.type_option_data.clear();
  1715. }
  1716. // Param is passed by value, moved
  1717. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  1718. self.type_option_data = v;
  1719. }
  1720. // Mutable pointer to the field.
  1721. // If field is not initialized, it is initialized with default value first.
  1722. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  1723. &mut self.type_option_data
  1724. }
  1725. // Take field
  1726. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  1727. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  1728. }
  1729. }
  1730. impl ::protobuf::Message for FieldTypeOptionContext {
  1731. fn is_initialized(&self) -> bool {
  1732. for v in &self.grid_field {
  1733. if !v.is_initialized() {
  1734. return false;
  1735. }
  1736. };
  1737. true
  1738. }
  1739. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1740. while !is.eof()? {
  1741. let (field_number, wire_type) = is.read_tag_unpack()?;
  1742. match field_number {
  1743. 1 => {
  1744. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1745. },
  1746. 2 => {
  1747. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grid_field)?;
  1748. },
  1749. 3 => {
  1750. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  1751. },
  1752. _ => {
  1753. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1754. },
  1755. };
  1756. }
  1757. ::std::result::Result::Ok(())
  1758. }
  1759. // Compute sizes of nested messages
  1760. #[allow(unused_variables)]
  1761. fn compute_size(&self) -> u32 {
  1762. let mut my_size = 0;
  1763. if !self.grid_id.is_empty() {
  1764. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1765. }
  1766. if let Some(ref v) = self.grid_field.as_ref() {
  1767. let len = v.compute_size();
  1768. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1769. }
  1770. if !self.type_option_data.is_empty() {
  1771. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  1772. }
  1773. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1774. self.cached_size.set(my_size);
  1775. my_size
  1776. }
  1777. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1778. if !self.grid_id.is_empty() {
  1779. os.write_string(1, &self.grid_id)?;
  1780. }
  1781. if let Some(ref v) = self.grid_field.as_ref() {
  1782. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1783. os.write_raw_varint32(v.get_cached_size())?;
  1784. v.write_to_with_cached_sizes(os)?;
  1785. }
  1786. if !self.type_option_data.is_empty() {
  1787. os.write_bytes(3, &self.type_option_data)?;
  1788. }
  1789. os.write_unknown_fields(self.get_unknown_fields())?;
  1790. ::std::result::Result::Ok(())
  1791. }
  1792. fn get_cached_size(&self) -> u32 {
  1793. self.cached_size.get()
  1794. }
  1795. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1796. &self.unknown_fields
  1797. }
  1798. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1799. &mut self.unknown_fields
  1800. }
  1801. fn as_any(&self) -> &dyn (::std::any::Any) {
  1802. self as &dyn (::std::any::Any)
  1803. }
  1804. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1805. self as &mut dyn (::std::any::Any)
  1806. }
  1807. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1808. self
  1809. }
  1810. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1811. Self::descriptor_static()
  1812. }
  1813. fn new() -> FieldTypeOptionContext {
  1814. FieldTypeOptionContext::new()
  1815. }
  1816. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1817. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1818. descriptor.get(|| {
  1819. let mut fields = ::std::vec::Vec::new();
  1820. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1821. "grid_id",
  1822. |m: &FieldTypeOptionContext| { &m.grid_id },
  1823. |m: &mut FieldTypeOptionContext| { &mut m.grid_id },
  1824. ));
  1825. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1826. "grid_field",
  1827. |m: &FieldTypeOptionContext| { &m.grid_field },
  1828. |m: &mut FieldTypeOptionContext| { &mut m.grid_field },
  1829. ));
  1830. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1831. "type_option_data",
  1832. |m: &FieldTypeOptionContext| { &m.type_option_data },
  1833. |m: &mut FieldTypeOptionContext| { &mut m.type_option_data },
  1834. ));
  1835. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldTypeOptionContext>(
  1836. "FieldTypeOptionContext",
  1837. fields,
  1838. file_descriptor_proto()
  1839. )
  1840. })
  1841. }
  1842. fn default_instance() -> &'static FieldTypeOptionContext {
  1843. static instance: ::protobuf::rt::LazyV2<FieldTypeOptionContext> = ::protobuf::rt::LazyV2::INIT;
  1844. instance.get(FieldTypeOptionContext::new)
  1845. }
  1846. }
  1847. impl ::protobuf::Clear for FieldTypeOptionContext {
  1848. fn clear(&mut self) {
  1849. self.grid_id.clear();
  1850. self.grid_field.clear();
  1851. self.type_option_data.clear();
  1852. self.unknown_fields.clear();
  1853. }
  1854. }
  1855. impl ::std::fmt::Debug for FieldTypeOptionContext {
  1856. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1857. ::protobuf::text_format::fmt(self, f)
  1858. }
  1859. }
  1860. impl ::protobuf::reflect::ProtobufValue for FieldTypeOptionContext {
  1861. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1862. ::protobuf::reflect::ReflectValueRef::Message(self)
  1863. }
  1864. }
  1865. #[derive(PartialEq,Clone,Default)]
  1866. pub struct FieldTypeOptionData {
  1867. // message fields
  1868. pub grid_id: ::std::string::String,
  1869. pub field: ::protobuf::SingularPtrField<Field>,
  1870. pub type_option_data: ::std::vec::Vec<u8>,
  1871. // special fields
  1872. pub unknown_fields: ::protobuf::UnknownFields,
  1873. pub cached_size: ::protobuf::CachedSize,
  1874. }
  1875. impl<'a> ::std::default::Default for &'a FieldTypeOptionData {
  1876. fn default() -> &'a FieldTypeOptionData {
  1877. <FieldTypeOptionData as ::protobuf::Message>::default_instance()
  1878. }
  1879. }
  1880. impl FieldTypeOptionData {
  1881. pub fn new() -> FieldTypeOptionData {
  1882. ::std::default::Default::default()
  1883. }
  1884. // string grid_id = 1;
  1885. pub fn get_grid_id(&self) -> &str {
  1886. &self.grid_id
  1887. }
  1888. pub fn clear_grid_id(&mut self) {
  1889. self.grid_id.clear();
  1890. }
  1891. // Param is passed by value, moved
  1892. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1893. self.grid_id = v;
  1894. }
  1895. // Mutable pointer to the field.
  1896. // If field is not initialized, it is initialized with default value first.
  1897. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1898. &mut self.grid_id
  1899. }
  1900. // Take field
  1901. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1902. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1903. }
  1904. // .Field field = 2;
  1905. pub fn get_field(&self) -> &Field {
  1906. self.field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  1907. }
  1908. pub fn clear_field(&mut self) {
  1909. self.field.clear();
  1910. }
  1911. pub fn has_field(&self) -> bool {
  1912. self.field.is_some()
  1913. }
  1914. // Param is passed by value, moved
  1915. pub fn set_field(&mut self, v: Field) {
  1916. self.field = ::protobuf::SingularPtrField::some(v);
  1917. }
  1918. // Mutable pointer to the field.
  1919. // If field is not initialized, it is initialized with default value first.
  1920. pub fn mut_field(&mut self) -> &mut Field {
  1921. if self.field.is_none() {
  1922. self.field.set_default();
  1923. }
  1924. self.field.as_mut().unwrap()
  1925. }
  1926. // Take field
  1927. pub fn take_field(&mut self) -> Field {
  1928. self.field.take().unwrap_or_else(|| Field::new())
  1929. }
  1930. // bytes type_option_data = 3;
  1931. pub fn get_type_option_data(&self) -> &[u8] {
  1932. &self.type_option_data
  1933. }
  1934. pub fn clear_type_option_data(&mut self) {
  1935. self.type_option_data.clear();
  1936. }
  1937. // Param is passed by value, moved
  1938. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  1939. self.type_option_data = v;
  1940. }
  1941. // Mutable pointer to the field.
  1942. // If field is not initialized, it is initialized with default value first.
  1943. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  1944. &mut self.type_option_data
  1945. }
  1946. // Take field
  1947. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  1948. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  1949. }
  1950. }
  1951. impl ::protobuf::Message for FieldTypeOptionData {
  1952. fn is_initialized(&self) -> bool {
  1953. for v in &self.field {
  1954. if !v.is_initialized() {
  1955. return false;
  1956. }
  1957. };
  1958. true
  1959. }
  1960. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1961. while !is.eof()? {
  1962. let (field_number, wire_type) = is.read_tag_unpack()?;
  1963. match field_number {
  1964. 1 => {
  1965. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1966. },
  1967. 2 => {
  1968. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field)?;
  1969. },
  1970. 3 => {
  1971. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  1972. },
  1973. _ => {
  1974. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1975. },
  1976. };
  1977. }
  1978. ::std::result::Result::Ok(())
  1979. }
  1980. // Compute sizes of nested messages
  1981. #[allow(unused_variables)]
  1982. fn compute_size(&self) -> u32 {
  1983. let mut my_size = 0;
  1984. if !self.grid_id.is_empty() {
  1985. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1986. }
  1987. if let Some(ref v) = self.field.as_ref() {
  1988. let len = v.compute_size();
  1989. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1990. }
  1991. if !self.type_option_data.is_empty() {
  1992. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  1993. }
  1994. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1995. self.cached_size.set(my_size);
  1996. my_size
  1997. }
  1998. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1999. if !self.grid_id.is_empty() {
  2000. os.write_string(1, &self.grid_id)?;
  2001. }
  2002. if let Some(ref v) = self.field.as_ref() {
  2003. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2004. os.write_raw_varint32(v.get_cached_size())?;
  2005. v.write_to_with_cached_sizes(os)?;
  2006. }
  2007. if !self.type_option_data.is_empty() {
  2008. os.write_bytes(3, &self.type_option_data)?;
  2009. }
  2010. os.write_unknown_fields(self.get_unknown_fields())?;
  2011. ::std::result::Result::Ok(())
  2012. }
  2013. fn get_cached_size(&self) -> u32 {
  2014. self.cached_size.get()
  2015. }
  2016. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2017. &self.unknown_fields
  2018. }
  2019. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2020. &mut self.unknown_fields
  2021. }
  2022. fn as_any(&self) -> &dyn (::std::any::Any) {
  2023. self as &dyn (::std::any::Any)
  2024. }
  2025. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2026. self as &mut dyn (::std::any::Any)
  2027. }
  2028. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2029. self
  2030. }
  2031. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2032. Self::descriptor_static()
  2033. }
  2034. fn new() -> FieldTypeOptionData {
  2035. FieldTypeOptionData::new()
  2036. }
  2037. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2038. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2039. descriptor.get(|| {
  2040. let mut fields = ::std::vec::Vec::new();
  2041. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2042. "grid_id",
  2043. |m: &FieldTypeOptionData| { &m.grid_id },
  2044. |m: &mut FieldTypeOptionData| { &mut m.grid_id },
  2045. ));
  2046. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  2047. "field",
  2048. |m: &FieldTypeOptionData| { &m.field },
  2049. |m: &mut FieldTypeOptionData| { &mut m.field },
  2050. ));
  2051. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2052. "type_option_data",
  2053. |m: &FieldTypeOptionData| { &m.type_option_data },
  2054. |m: &mut FieldTypeOptionData| { &mut m.type_option_data },
  2055. ));
  2056. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldTypeOptionData>(
  2057. "FieldTypeOptionData",
  2058. fields,
  2059. file_descriptor_proto()
  2060. )
  2061. })
  2062. }
  2063. fn default_instance() -> &'static FieldTypeOptionData {
  2064. static instance: ::protobuf::rt::LazyV2<FieldTypeOptionData> = ::protobuf::rt::LazyV2::INIT;
  2065. instance.get(FieldTypeOptionData::new)
  2066. }
  2067. }
  2068. impl ::protobuf::Clear for FieldTypeOptionData {
  2069. fn clear(&mut self) {
  2070. self.grid_id.clear();
  2071. self.field.clear();
  2072. self.type_option_data.clear();
  2073. self.unknown_fields.clear();
  2074. }
  2075. }
  2076. impl ::std::fmt::Debug for FieldTypeOptionData {
  2077. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2078. ::protobuf::text_format::fmt(self, f)
  2079. }
  2080. }
  2081. impl ::protobuf::reflect::ProtobufValue for FieldTypeOptionData {
  2082. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2083. ::protobuf::reflect::ReflectValueRef::Message(self)
  2084. }
  2085. }
  2086. #[derive(PartialEq,Clone,Default)]
  2087. pub struct RepeatedField {
  2088. // message fields
  2089. pub items: ::protobuf::RepeatedField<Field>,
  2090. // special fields
  2091. pub unknown_fields: ::protobuf::UnknownFields,
  2092. pub cached_size: ::protobuf::CachedSize,
  2093. }
  2094. impl<'a> ::std::default::Default for &'a RepeatedField {
  2095. fn default() -> &'a RepeatedField {
  2096. <RepeatedField as ::protobuf::Message>::default_instance()
  2097. }
  2098. }
  2099. impl RepeatedField {
  2100. pub fn new() -> RepeatedField {
  2101. ::std::default::Default::default()
  2102. }
  2103. // repeated .Field items = 1;
  2104. pub fn get_items(&self) -> &[Field] {
  2105. &self.items
  2106. }
  2107. pub fn clear_items(&mut self) {
  2108. self.items.clear();
  2109. }
  2110. // Param is passed by value, moved
  2111. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Field>) {
  2112. self.items = v;
  2113. }
  2114. // Mutable pointer to the field.
  2115. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Field> {
  2116. &mut self.items
  2117. }
  2118. // Take field
  2119. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Field> {
  2120. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2121. }
  2122. }
  2123. impl ::protobuf::Message for RepeatedField {
  2124. fn is_initialized(&self) -> bool {
  2125. for v in &self.items {
  2126. if !v.is_initialized() {
  2127. return false;
  2128. }
  2129. };
  2130. true
  2131. }
  2132. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2133. while !is.eof()? {
  2134. let (field_number, wire_type) = is.read_tag_unpack()?;
  2135. match field_number {
  2136. 1 => {
  2137. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2138. },
  2139. _ => {
  2140. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2141. },
  2142. };
  2143. }
  2144. ::std::result::Result::Ok(())
  2145. }
  2146. // Compute sizes of nested messages
  2147. #[allow(unused_variables)]
  2148. fn compute_size(&self) -> u32 {
  2149. let mut my_size = 0;
  2150. for value in &self.items {
  2151. let len = value.compute_size();
  2152. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2153. };
  2154. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2155. self.cached_size.set(my_size);
  2156. my_size
  2157. }
  2158. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2159. for v in &self.items {
  2160. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2161. os.write_raw_varint32(v.get_cached_size())?;
  2162. v.write_to_with_cached_sizes(os)?;
  2163. };
  2164. os.write_unknown_fields(self.get_unknown_fields())?;
  2165. ::std::result::Result::Ok(())
  2166. }
  2167. fn get_cached_size(&self) -> u32 {
  2168. self.cached_size.get()
  2169. }
  2170. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2171. &self.unknown_fields
  2172. }
  2173. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2174. &mut self.unknown_fields
  2175. }
  2176. fn as_any(&self) -> &dyn (::std::any::Any) {
  2177. self as &dyn (::std::any::Any)
  2178. }
  2179. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2180. self as &mut dyn (::std::any::Any)
  2181. }
  2182. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2183. self
  2184. }
  2185. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2186. Self::descriptor_static()
  2187. }
  2188. fn new() -> RepeatedField {
  2189. RepeatedField::new()
  2190. }
  2191. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2192. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2193. descriptor.get(|| {
  2194. let mut fields = ::std::vec::Vec::new();
  2195. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  2196. "items",
  2197. |m: &RepeatedField| { &m.items },
  2198. |m: &mut RepeatedField| { &mut m.items },
  2199. ));
  2200. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedField>(
  2201. "RepeatedField",
  2202. fields,
  2203. file_descriptor_proto()
  2204. )
  2205. })
  2206. }
  2207. fn default_instance() -> &'static RepeatedField {
  2208. static instance: ::protobuf::rt::LazyV2<RepeatedField> = ::protobuf::rt::LazyV2::INIT;
  2209. instance.get(RepeatedField::new)
  2210. }
  2211. }
  2212. impl ::protobuf::Clear for RepeatedField {
  2213. fn clear(&mut self) {
  2214. self.items.clear();
  2215. self.unknown_fields.clear();
  2216. }
  2217. }
  2218. impl ::std::fmt::Debug for RepeatedField {
  2219. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2220. ::protobuf::text_format::fmt(self, f)
  2221. }
  2222. }
  2223. impl ::protobuf::reflect::ProtobufValue for RepeatedField {
  2224. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2225. ::protobuf::reflect::ReflectValueRef::Message(self)
  2226. }
  2227. }
  2228. #[derive(PartialEq,Clone,Default)]
  2229. pub struct RepeatedFieldOrder {
  2230. // message fields
  2231. pub items: ::protobuf::RepeatedField<FieldOrder>,
  2232. // special fields
  2233. pub unknown_fields: ::protobuf::UnknownFields,
  2234. pub cached_size: ::protobuf::CachedSize,
  2235. }
  2236. impl<'a> ::std::default::Default for &'a RepeatedFieldOrder {
  2237. fn default() -> &'a RepeatedFieldOrder {
  2238. <RepeatedFieldOrder as ::protobuf::Message>::default_instance()
  2239. }
  2240. }
  2241. impl RepeatedFieldOrder {
  2242. pub fn new() -> RepeatedFieldOrder {
  2243. ::std::default::Default::default()
  2244. }
  2245. // repeated .FieldOrder items = 1;
  2246. pub fn get_items(&self) -> &[FieldOrder] {
  2247. &self.items
  2248. }
  2249. pub fn clear_items(&mut self) {
  2250. self.items.clear();
  2251. }
  2252. // Param is passed by value, moved
  2253. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {
  2254. self.items = v;
  2255. }
  2256. // Mutable pointer to the field.
  2257. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {
  2258. &mut self.items
  2259. }
  2260. // Take field
  2261. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {
  2262. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2263. }
  2264. }
  2265. impl ::protobuf::Message for RepeatedFieldOrder {
  2266. fn is_initialized(&self) -> bool {
  2267. for v in &self.items {
  2268. if !v.is_initialized() {
  2269. return false;
  2270. }
  2271. };
  2272. true
  2273. }
  2274. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2275. while !is.eof()? {
  2276. let (field_number, wire_type) = is.read_tag_unpack()?;
  2277. match field_number {
  2278. 1 => {
  2279. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2280. },
  2281. _ => {
  2282. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2283. },
  2284. };
  2285. }
  2286. ::std::result::Result::Ok(())
  2287. }
  2288. // Compute sizes of nested messages
  2289. #[allow(unused_variables)]
  2290. fn compute_size(&self) -> u32 {
  2291. let mut my_size = 0;
  2292. for value in &self.items {
  2293. let len = value.compute_size();
  2294. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2295. };
  2296. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2297. self.cached_size.set(my_size);
  2298. my_size
  2299. }
  2300. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2301. for v in &self.items {
  2302. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2303. os.write_raw_varint32(v.get_cached_size())?;
  2304. v.write_to_with_cached_sizes(os)?;
  2305. };
  2306. os.write_unknown_fields(self.get_unknown_fields())?;
  2307. ::std::result::Result::Ok(())
  2308. }
  2309. fn get_cached_size(&self) -> u32 {
  2310. self.cached_size.get()
  2311. }
  2312. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2313. &self.unknown_fields
  2314. }
  2315. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2316. &mut self.unknown_fields
  2317. }
  2318. fn as_any(&self) -> &dyn (::std::any::Any) {
  2319. self as &dyn (::std::any::Any)
  2320. }
  2321. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2322. self as &mut dyn (::std::any::Any)
  2323. }
  2324. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2325. self
  2326. }
  2327. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2328. Self::descriptor_static()
  2329. }
  2330. fn new() -> RepeatedFieldOrder {
  2331. RepeatedFieldOrder::new()
  2332. }
  2333. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2334. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2335. descriptor.get(|| {
  2336. let mut fields = ::std::vec::Vec::new();
  2337. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(
  2338. "items",
  2339. |m: &RepeatedFieldOrder| { &m.items },
  2340. |m: &mut RepeatedFieldOrder| { &mut m.items },
  2341. ));
  2342. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFieldOrder>(
  2343. "RepeatedFieldOrder",
  2344. fields,
  2345. file_descriptor_proto()
  2346. )
  2347. })
  2348. }
  2349. fn default_instance() -> &'static RepeatedFieldOrder {
  2350. static instance: ::protobuf::rt::LazyV2<RepeatedFieldOrder> = ::protobuf::rt::LazyV2::INIT;
  2351. instance.get(RepeatedFieldOrder::new)
  2352. }
  2353. }
  2354. impl ::protobuf::Clear for RepeatedFieldOrder {
  2355. fn clear(&mut self) {
  2356. self.items.clear();
  2357. self.unknown_fields.clear();
  2358. }
  2359. }
  2360. impl ::std::fmt::Debug for RepeatedFieldOrder {
  2361. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2362. ::protobuf::text_format::fmt(self, f)
  2363. }
  2364. }
  2365. impl ::protobuf::reflect::ProtobufValue for RepeatedFieldOrder {
  2366. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2367. ::protobuf::reflect::ReflectValueRef::Message(self)
  2368. }
  2369. }
  2370. #[derive(PartialEq,Clone,Default)]
  2371. pub struct RowOrder {
  2372. // message fields
  2373. pub row_id: ::std::string::String,
  2374. pub block_id: ::std::string::String,
  2375. pub height: i32,
  2376. // special fields
  2377. pub unknown_fields: ::protobuf::UnknownFields,
  2378. pub cached_size: ::protobuf::CachedSize,
  2379. }
  2380. impl<'a> ::std::default::Default for &'a RowOrder {
  2381. fn default() -> &'a RowOrder {
  2382. <RowOrder as ::protobuf::Message>::default_instance()
  2383. }
  2384. }
  2385. impl RowOrder {
  2386. pub fn new() -> RowOrder {
  2387. ::std::default::Default::default()
  2388. }
  2389. // string row_id = 1;
  2390. pub fn get_row_id(&self) -> &str {
  2391. &self.row_id
  2392. }
  2393. pub fn clear_row_id(&mut self) {
  2394. self.row_id.clear();
  2395. }
  2396. // Param is passed by value, moved
  2397. pub fn set_row_id(&mut self, v: ::std::string::String) {
  2398. self.row_id = v;
  2399. }
  2400. // Mutable pointer to the field.
  2401. // If field is not initialized, it is initialized with default value first.
  2402. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  2403. &mut self.row_id
  2404. }
  2405. // Take field
  2406. pub fn take_row_id(&mut self) -> ::std::string::String {
  2407. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  2408. }
  2409. // string block_id = 2;
  2410. pub fn get_block_id(&self) -> &str {
  2411. &self.block_id
  2412. }
  2413. pub fn clear_block_id(&mut self) {
  2414. self.block_id.clear();
  2415. }
  2416. // Param is passed by value, moved
  2417. pub fn set_block_id(&mut self, v: ::std::string::String) {
  2418. self.block_id = v;
  2419. }
  2420. // Mutable pointer to the field.
  2421. // If field is not initialized, it is initialized with default value first.
  2422. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  2423. &mut self.block_id
  2424. }
  2425. // Take field
  2426. pub fn take_block_id(&mut self) -> ::std::string::String {
  2427. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  2428. }
  2429. // int32 height = 3;
  2430. pub fn get_height(&self) -> i32 {
  2431. self.height
  2432. }
  2433. pub fn clear_height(&mut self) {
  2434. self.height = 0;
  2435. }
  2436. // Param is passed by value, moved
  2437. pub fn set_height(&mut self, v: i32) {
  2438. self.height = v;
  2439. }
  2440. }
  2441. impl ::protobuf::Message for RowOrder {
  2442. fn is_initialized(&self) -> bool {
  2443. true
  2444. }
  2445. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2446. while !is.eof()? {
  2447. let (field_number, wire_type) = is.read_tag_unpack()?;
  2448. match field_number {
  2449. 1 => {
  2450. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  2451. },
  2452. 2 => {
  2453. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  2454. },
  2455. 3 => {
  2456. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2457. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2458. }
  2459. let tmp = is.read_int32()?;
  2460. self.height = tmp;
  2461. },
  2462. _ => {
  2463. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2464. },
  2465. };
  2466. }
  2467. ::std::result::Result::Ok(())
  2468. }
  2469. // Compute sizes of nested messages
  2470. #[allow(unused_variables)]
  2471. fn compute_size(&self) -> u32 {
  2472. let mut my_size = 0;
  2473. if !self.row_id.is_empty() {
  2474. my_size += ::protobuf::rt::string_size(1, &self.row_id);
  2475. }
  2476. if !self.block_id.is_empty() {
  2477. my_size += ::protobuf::rt::string_size(2, &self.block_id);
  2478. }
  2479. if self.height != 0 {
  2480. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  2481. }
  2482. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2483. self.cached_size.set(my_size);
  2484. my_size
  2485. }
  2486. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2487. if !self.row_id.is_empty() {
  2488. os.write_string(1, &self.row_id)?;
  2489. }
  2490. if !self.block_id.is_empty() {
  2491. os.write_string(2, &self.block_id)?;
  2492. }
  2493. if self.height != 0 {
  2494. os.write_int32(3, self.height)?;
  2495. }
  2496. os.write_unknown_fields(self.get_unknown_fields())?;
  2497. ::std::result::Result::Ok(())
  2498. }
  2499. fn get_cached_size(&self) -> u32 {
  2500. self.cached_size.get()
  2501. }
  2502. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2503. &self.unknown_fields
  2504. }
  2505. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2506. &mut self.unknown_fields
  2507. }
  2508. fn as_any(&self) -> &dyn (::std::any::Any) {
  2509. self as &dyn (::std::any::Any)
  2510. }
  2511. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2512. self as &mut dyn (::std::any::Any)
  2513. }
  2514. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2515. self
  2516. }
  2517. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2518. Self::descriptor_static()
  2519. }
  2520. fn new() -> RowOrder {
  2521. RowOrder::new()
  2522. }
  2523. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2524. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2525. descriptor.get(|| {
  2526. let mut fields = ::std::vec::Vec::new();
  2527. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2528. "row_id",
  2529. |m: &RowOrder| { &m.row_id },
  2530. |m: &mut RowOrder| { &mut m.row_id },
  2531. ));
  2532. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2533. "block_id",
  2534. |m: &RowOrder| { &m.block_id },
  2535. |m: &mut RowOrder| { &mut m.block_id },
  2536. ));
  2537. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2538. "height",
  2539. |m: &RowOrder| { &m.height },
  2540. |m: &mut RowOrder| { &mut m.height },
  2541. ));
  2542. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowOrder>(
  2543. "RowOrder",
  2544. fields,
  2545. file_descriptor_proto()
  2546. )
  2547. })
  2548. }
  2549. fn default_instance() -> &'static RowOrder {
  2550. static instance: ::protobuf::rt::LazyV2<RowOrder> = ::protobuf::rt::LazyV2::INIT;
  2551. instance.get(RowOrder::new)
  2552. }
  2553. }
  2554. impl ::protobuf::Clear for RowOrder {
  2555. fn clear(&mut self) {
  2556. self.row_id.clear();
  2557. self.block_id.clear();
  2558. self.height = 0;
  2559. self.unknown_fields.clear();
  2560. }
  2561. }
  2562. impl ::std::fmt::Debug for RowOrder {
  2563. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2564. ::protobuf::text_format::fmt(self, f)
  2565. }
  2566. }
  2567. impl ::protobuf::reflect::ProtobufValue for RowOrder {
  2568. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2569. ::protobuf::reflect::ReflectValueRef::Message(self)
  2570. }
  2571. }
  2572. #[derive(PartialEq,Clone,Default)]
  2573. pub struct Row {
  2574. // message fields
  2575. pub id: ::std::string::String,
  2576. pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, Cell>,
  2577. pub height: i32,
  2578. // special fields
  2579. pub unknown_fields: ::protobuf::UnknownFields,
  2580. pub cached_size: ::protobuf::CachedSize,
  2581. }
  2582. impl<'a> ::std::default::Default for &'a Row {
  2583. fn default() -> &'a Row {
  2584. <Row as ::protobuf::Message>::default_instance()
  2585. }
  2586. }
  2587. impl Row {
  2588. pub fn new() -> Row {
  2589. ::std::default::Default::default()
  2590. }
  2591. // string id = 1;
  2592. pub fn get_id(&self) -> &str {
  2593. &self.id
  2594. }
  2595. pub fn clear_id(&mut self) {
  2596. self.id.clear();
  2597. }
  2598. // Param is passed by value, moved
  2599. pub fn set_id(&mut self, v: ::std::string::String) {
  2600. self.id = v;
  2601. }
  2602. // Mutable pointer to the field.
  2603. // If field is not initialized, it is initialized with default value first.
  2604. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  2605. &mut self.id
  2606. }
  2607. // Take field
  2608. pub fn take_id(&mut self) -> ::std::string::String {
  2609. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  2610. }
  2611. // repeated .Row.CellByFieldIdEntry cell_by_field_id = 2;
  2612. pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, Cell> {
  2613. &self.cell_by_field_id
  2614. }
  2615. pub fn clear_cell_by_field_id(&mut self) {
  2616. self.cell_by_field_id.clear();
  2617. }
  2618. // Param is passed by value, moved
  2619. pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, Cell>) {
  2620. self.cell_by_field_id = v;
  2621. }
  2622. // Mutable pointer to the field.
  2623. pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Cell> {
  2624. &mut self.cell_by_field_id
  2625. }
  2626. // Take field
  2627. pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, Cell> {
  2628. ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())
  2629. }
  2630. // int32 height = 3;
  2631. pub fn get_height(&self) -> i32 {
  2632. self.height
  2633. }
  2634. pub fn clear_height(&mut self) {
  2635. self.height = 0;
  2636. }
  2637. // Param is passed by value, moved
  2638. pub fn set_height(&mut self, v: i32) {
  2639. self.height = v;
  2640. }
  2641. }
  2642. impl ::protobuf::Message for Row {
  2643. fn is_initialized(&self) -> bool {
  2644. true
  2645. }
  2646. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2647. while !is.eof()? {
  2648. let (field_number, wire_type) = is.read_tag_unpack()?;
  2649. match field_number {
  2650. 1 => {
  2651. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  2652. },
  2653. 2 => {
  2654. ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(wire_type, is, &mut self.cell_by_field_id)?;
  2655. },
  2656. 3 => {
  2657. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2658. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2659. }
  2660. let tmp = is.read_int32()?;
  2661. self.height = tmp;
  2662. },
  2663. _ => {
  2664. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2665. },
  2666. };
  2667. }
  2668. ::std::result::Result::Ok(())
  2669. }
  2670. // Compute sizes of nested messages
  2671. #[allow(unused_variables)]
  2672. fn compute_size(&self) -> u32 {
  2673. let mut my_size = 0;
  2674. if !self.id.is_empty() {
  2675. my_size += ::protobuf::rt::string_size(1, &self.id);
  2676. }
  2677. my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id);
  2678. if self.height != 0 {
  2679. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  2680. }
  2681. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2682. self.cached_size.set(my_size);
  2683. my_size
  2684. }
  2685. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2686. if !self.id.is_empty() {
  2687. os.write_string(1, &self.id)?;
  2688. }
  2689. ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id, os)?;
  2690. if self.height != 0 {
  2691. os.write_int32(3, self.height)?;
  2692. }
  2693. os.write_unknown_fields(self.get_unknown_fields())?;
  2694. ::std::result::Result::Ok(())
  2695. }
  2696. fn get_cached_size(&self) -> u32 {
  2697. self.cached_size.get()
  2698. }
  2699. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2700. &self.unknown_fields
  2701. }
  2702. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2703. &mut self.unknown_fields
  2704. }
  2705. fn as_any(&self) -> &dyn (::std::any::Any) {
  2706. self as &dyn (::std::any::Any)
  2707. }
  2708. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2709. self as &mut dyn (::std::any::Any)
  2710. }
  2711. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2712. self
  2713. }
  2714. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2715. Self::descriptor_static()
  2716. }
  2717. fn new() -> Row {
  2718. Row::new()
  2719. }
  2720. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2721. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2722. descriptor.get(|| {
  2723. let mut fields = ::std::vec::Vec::new();
  2724. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2725. "id",
  2726. |m: &Row| { &m.id },
  2727. |m: &mut Row| { &mut m.id },
  2728. ));
  2729. fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  2730. "cell_by_field_id",
  2731. |m: &Row| { &m.cell_by_field_id },
  2732. |m: &mut Row| { &mut m.cell_by_field_id },
  2733. ));
  2734. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2735. "height",
  2736. |m: &Row| { &m.height },
  2737. |m: &mut Row| { &mut m.height },
  2738. ));
  2739. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Row>(
  2740. "Row",
  2741. fields,
  2742. file_descriptor_proto()
  2743. )
  2744. })
  2745. }
  2746. fn default_instance() -> &'static Row {
  2747. static instance: ::protobuf::rt::LazyV2<Row> = ::protobuf::rt::LazyV2::INIT;
  2748. instance.get(Row::new)
  2749. }
  2750. }
  2751. impl ::protobuf::Clear for Row {
  2752. fn clear(&mut self) {
  2753. self.id.clear();
  2754. self.cell_by_field_id.clear();
  2755. self.height = 0;
  2756. self.unknown_fields.clear();
  2757. }
  2758. }
  2759. impl ::std::fmt::Debug for Row {
  2760. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2761. ::protobuf::text_format::fmt(self, f)
  2762. }
  2763. }
  2764. impl ::protobuf::reflect::ProtobufValue for Row {
  2765. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2766. ::protobuf::reflect::ReflectValueRef::Message(self)
  2767. }
  2768. }
  2769. #[derive(PartialEq,Clone,Default)]
  2770. pub struct RepeatedRow {
  2771. // message fields
  2772. pub items: ::protobuf::RepeatedField<Row>,
  2773. // special fields
  2774. pub unknown_fields: ::protobuf::UnknownFields,
  2775. pub cached_size: ::protobuf::CachedSize,
  2776. }
  2777. impl<'a> ::std::default::Default for &'a RepeatedRow {
  2778. fn default() -> &'a RepeatedRow {
  2779. <RepeatedRow as ::protobuf::Message>::default_instance()
  2780. }
  2781. }
  2782. impl RepeatedRow {
  2783. pub fn new() -> RepeatedRow {
  2784. ::std::default::Default::default()
  2785. }
  2786. // repeated .Row items = 1;
  2787. pub fn get_items(&self) -> &[Row] {
  2788. &self.items
  2789. }
  2790. pub fn clear_items(&mut self) {
  2791. self.items.clear();
  2792. }
  2793. // Param is passed by value, moved
  2794. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Row>) {
  2795. self.items = v;
  2796. }
  2797. // Mutable pointer to the field.
  2798. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Row> {
  2799. &mut self.items
  2800. }
  2801. // Take field
  2802. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Row> {
  2803. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2804. }
  2805. }
  2806. impl ::protobuf::Message for RepeatedRow {
  2807. fn is_initialized(&self) -> bool {
  2808. for v in &self.items {
  2809. if !v.is_initialized() {
  2810. return false;
  2811. }
  2812. };
  2813. true
  2814. }
  2815. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2816. while !is.eof()? {
  2817. let (field_number, wire_type) = is.read_tag_unpack()?;
  2818. match field_number {
  2819. 1 => {
  2820. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2821. },
  2822. _ => {
  2823. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2824. },
  2825. };
  2826. }
  2827. ::std::result::Result::Ok(())
  2828. }
  2829. // Compute sizes of nested messages
  2830. #[allow(unused_variables)]
  2831. fn compute_size(&self) -> u32 {
  2832. let mut my_size = 0;
  2833. for value in &self.items {
  2834. let len = value.compute_size();
  2835. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2836. };
  2837. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2838. self.cached_size.set(my_size);
  2839. my_size
  2840. }
  2841. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2842. for v in &self.items {
  2843. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2844. os.write_raw_varint32(v.get_cached_size())?;
  2845. v.write_to_with_cached_sizes(os)?;
  2846. };
  2847. os.write_unknown_fields(self.get_unknown_fields())?;
  2848. ::std::result::Result::Ok(())
  2849. }
  2850. fn get_cached_size(&self) -> u32 {
  2851. self.cached_size.get()
  2852. }
  2853. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2854. &self.unknown_fields
  2855. }
  2856. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2857. &mut self.unknown_fields
  2858. }
  2859. fn as_any(&self) -> &dyn (::std::any::Any) {
  2860. self as &dyn (::std::any::Any)
  2861. }
  2862. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2863. self as &mut dyn (::std::any::Any)
  2864. }
  2865. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2866. self
  2867. }
  2868. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2869. Self::descriptor_static()
  2870. }
  2871. fn new() -> RepeatedRow {
  2872. RepeatedRow::new()
  2873. }
  2874. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2875. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2876. descriptor.get(|| {
  2877. let mut fields = ::std::vec::Vec::new();
  2878. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Row>>(
  2879. "items",
  2880. |m: &RepeatedRow| { &m.items },
  2881. |m: &mut RepeatedRow| { &mut m.items },
  2882. ));
  2883. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRow>(
  2884. "RepeatedRow",
  2885. fields,
  2886. file_descriptor_proto()
  2887. )
  2888. })
  2889. }
  2890. fn default_instance() -> &'static RepeatedRow {
  2891. static instance: ::protobuf::rt::LazyV2<RepeatedRow> = ::protobuf::rt::LazyV2::INIT;
  2892. instance.get(RepeatedRow::new)
  2893. }
  2894. }
  2895. impl ::protobuf::Clear for RepeatedRow {
  2896. fn clear(&mut self) {
  2897. self.items.clear();
  2898. self.unknown_fields.clear();
  2899. }
  2900. }
  2901. impl ::std::fmt::Debug for RepeatedRow {
  2902. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2903. ::protobuf::text_format::fmt(self, f)
  2904. }
  2905. }
  2906. impl ::protobuf::reflect::ProtobufValue for RepeatedRow {
  2907. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2908. ::protobuf::reflect::ReflectValueRef::Message(self)
  2909. }
  2910. }
  2911. #[derive(PartialEq,Clone,Default)]
  2912. pub struct RepeatedGridBlock {
  2913. // message fields
  2914. pub items: ::protobuf::RepeatedField<GridBlock>,
  2915. // special fields
  2916. pub unknown_fields: ::protobuf::UnknownFields,
  2917. pub cached_size: ::protobuf::CachedSize,
  2918. }
  2919. impl<'a> ::std::default::Default for &'a RepeatedGridBlock {
  2920. fn default() -> &'a RepeatedGridBlock {
  2921. <RepeatedGridBlock as ::protobuf::Message>::default_instance()
  2922. }
  2923. }
  2924. impl RepeatedGridBlock {
  2925. pub fn new() -> RepeatedGridBlock {
  2926. ::std::default::Default::default()
  2927. }
  2928. // repeated .GridBlock items = 1;
  2929. pub fn get_items(&self) -> &[GridBlock] {
  2930. &self.items
  2931. }
  2932. pub fn clear_items(&mut self) {
  2933. self.items.clear();
  2934. }
  2935. // Param is passed by value, moved
  2936. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<GridBlock>) {
  2937. self.items = v;
  2938. }
  2939. // Mutable pointer to the field.
  2940. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<GridBlock> {
  2941. &mut self.items
  2942. }
  2943. // Take field
  2944. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<GridBlock> {
  2945. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2946. }
  2947. }
  2948. impl ::protobuf::Message for RepeatedGridBlock {
  2949. fn is_initialized(&self) -> bool {
  2950. for v in &self.items {
  2951. if !v.is_initialized() {
  2952. return false;
  2953. }
  2954. };
  2955. true
  2956. }
  2957. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2958. while !is.eof()? {
  2959. let (field_number, wire_type) = is.read_tag_unpack()?;
  2960. match field_number {
  2961. 1 => {
  2962. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2963. },
  2964. _ => {
  2965. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2966. },
  2967. };
  2968. }
  2969. ::std::result::Result::Ok(())
  2970. }
  2971. // Compute sizes of nested messages
  2972. #[allow(unused_variables)]
  2973. fn compute_size(&self) -> u32 {
  2974. let mut my_size = 0;
  2975. for value in &self.items {
  2976. let len = value.compute_size();
  2977. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2978. };
  2979. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2980. self.cached_size.set(my_size);
  2981. my_size
  2982. }
  2983. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2984. for v in &self.items {
  2985. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2986. os.write_raw_varint32(v.get_cached_size())?;
  2987. v.write_to_with_cached_sizes(os)?;
  2988. };
  2989. os.write_unknown_fields(self.get_unknown_fields())?;
  2990. ::std::result::Result::Ok(())
  2991. }
  2992. fn get_cached_size(&self) -> u32 {
  2993. self.cached_size.get()
  2994. }
  2995. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2996. &self.unknown_fields
  2997. }
  2998. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2999. &mut self.unknown_fields
  3000. }
  3001. fn as_any(&self) -> &dyn (::std::any::Any) {
  3002. self as &dyn (::std::any::Any)
  3003. }
  3004. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3005. self as &mut dyn (::std::any::Any)
  3006. }
  3007. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3008. self
  3009. }
  3010. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3011. Self::descriptor_static()
  3012. }
  3013. fn new() -> RepeatedGridBlock {
  3014. RepeatedGridBlock::new()
  3015. }
  3016. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3017. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3018. descriptor.get(|| {
  3019. let mut fields = ::std::vec::Vec::new();
  3020. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlock>>(
  3021. "items",
  3022. |m: &RepeatedGridBlock| { &m.items },
  3023. |m: &mut RepeatedGridBlock| { &mut m.items },
  3024. ));
  3025. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedGridBlock>(
  3026. "RepeatedGridBlock",
  3027. fields,
  3028. file_descriptor_proto()
  3029. )
  3030. })
  3031. }
  3032. fn default_instance() -> &'static RepeatedGridBlock {
  3033. static instance: ::protobuf::rt::LazyV2<RepeatedGridBlock> = ::protobuf::rt::LazyV2::INIT;
  3034. instance.get(RepeatedGridBlock::new)
  3035. }
  3036. }
  3037. impl ::protobuf::Clear for RepeatedGridBlock {
  3038. fn clear(&mut self) {
  3039. self.items.clear();
  3040. self.unknown_fields.clear();
  3041. }
  3042. }
  3043. impl ::std::fmt::Debug for RepeatedGridBlock {
  3044. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3045. ::protobuf::text_format::fmt(self, f)
  3046. }
  3047. }
  3048. impl ::protobuf::reflect::ProtobufValue for RepeatedGridBlock {
  3049. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3050. ::protobuf::reflect::ReflectValueRef::Message(self)
  3051. }
  3052. }
  3053. #[derive(PartialEq,Clone,Default)]
  3054. pub struct GridBlockOrder {
  3055. // message fields
  3056. pub block_id: ::std::string::String,
  3057. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  3058. // special fields
  3059. pub unknown_fields: ::protobuf::UnknownFields,
  3060. pub cached_size: ::protobuf::CachedSize,
  3061. }
  3062. impl<'a> ::std::default::Default for &'a GridBlockOrder {
  3063. fn default() -> &'a GridBlockOrder {
  3064. <GridBlockOrder as ::protobuf::Message>::default_instance()
  3065. }
  3066. }
  3067. impl GridBlockOrder {
  3068. pub fn new() -> GridBlockOrder {
  3069. ::std::default::Default::default()
  3070. }
  3071. // string block_id = 1;
  3072. pub fn get_block_id(&self) -> &str {
  3073. &self.block_id
  3074. }
  3075. pub fn clear_block_id(&mut self) {
  3076. self.block_id.clear();
  3077. }
  3078. // Param is passed by value, moved
  3079. pub fn set_block_id(&mut self, v: ::std::string::String) {
  3080. self.block_id = v;
  3081. }
  3082. // Mutable pointer to the field.
  3083. // If field is not initialized, it is initialized with default value first.
  3084. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  3085. &mut self.block_id
  3086. }
  3087. // Take field
  3088. pub fn take_block_id(&mut self) -> ::std::string::String {
  3089. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  3090. }
  3091. // repeated .RowOrder row_orders = 2;
  3092. pub fn get_row_orders(&self) -> &[RowOrder] {
  3093. &self.row_orders
  3094. }
  3095. pub fn clear_row_orders(&mut self) {
  3096. self.row_orders.clear();
  3097. }
  3098. // Param is passed by value, moved
  3099. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3100. self.row_orders = v;
  3101. }
  3102. // Mutable pointer to the field.
  3103. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3104. &mut self.row_orders
  3105. }
  3106. // Take field
  3107. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3108. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  3109. }
  3110. }
  3111. impl ::protobuf::Message for GridBlockOrder {
  3112. fn is_initialized(&self) -> bool {
  3113. for v in &self.row_orders {
  3114. if !v.is_initialized() {
  3115. return false;
  3116. }
  3117. };
  3118. true
  3119. }
  3120. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3121. while !is.eof()? {
  3122. let (field_number, wire_type) = is.read_tag_unpack()?;
  3123. match field_number {
  3124. 1 => {
  3125. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  3126. },
  3127. 2 => {
  3128. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  3129. },
  3130. _ => {
  3131. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3132. },
  3133. };
  3134. }
  3135. ::std::result::Result::Ok(())
  3136. }
  3137. // Compute sizes of nested messages
  3138. #[allow(unused_variables)]
  3139. fn compute_size(&self) -> u32 {
  3140. let mut my_size = 0;
  3141. if !self.block_id.is_empty() {
  3142. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  3143. }
  3144. for value in &self.row_orders {
  3145. let len = value.compute_size();
  3146. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3147. };
  3148. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3149. self.cached_size.set(my_size);
  3150. my_size
  3151. }
  3152. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3153. if !self.block_id.is_empty() {
  3154. os.write_string(1, &self.block_id)?;
  3155. }
  3156. for v in &self.row_orders {
  3157. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3158. os.write_raw_varint32(v.get_cached_size())?;
  3159. v.write_to_with_cached_sizes(os)?;
  3160. };
  3161. os.write_unknown_fields(self.get_unknown_fields())?;
  3162. ::std::result::Result::Ok(())
  3163. }
  3164. fn get_cached_size(&self) -> u32 {
  3165. self.cached_size.get()
  3166. }
  3167. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3168. &self.unknown_fields
  3169. }
  3170. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3171. &mut self.unknown_fields
  3172. }
  3173. fn as_any(&self) -> &dyn (::std::any::Any) {
  3174. self as &dyn (::std::any::Any)
  3175. }
  3176. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3177. self as &mut dyn (::std::any::Any)
  3178. }
  3179. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3180. self
  3181. }
  3182. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3183. Self::descriptor_static()
  3184. }
  3185. fn new() -> GridBlockOrder {
  3186. GridBlockOrder::new()
  3187. }
  3188. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3189. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3190. descriptor.get(|| {
  3191. let mut fields = ::std::vec::Vec::new();
  3192. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3193. "block_id",
  3194. |m: &GridBlockOrder| { &m.block_id },
  3195. |m: &mut GridBlockOrder| { &mut m.block_id },
  3196. ));
  3197. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3198. "row_orders",
  3199. |m: &GridBlockOrder| { &m.row_orders },
  3200. |m: &mut GridBlockOrder| { &mut m.row_orders },
  3201. ));
  3202. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockOrder>(
  3203. "GridBlockOrder",
  3204. fields,
  3205. file_descriptor_proto()
  3206. )
  3207. })
  3208. }
  3209. fn default_instance() -> &'static GridBlockOrder {
  3210. static instance: ::protobuf::rt::LazyV2<GridBlockOrder> = ::protobuf::rt::LazyV2::INIT;
  3211. instance.get(GridBlockOrder::new)
  3212. }
  3213. }
  3214. impl ::protobuf::Clear for GridBlockOrder {
  3215. fn clear(&mut self) {
  3216. self.block_id.clear();
  3217. self.row_orders.clear();
  3218. self.unknown_fields.clear();
  3219. }
  3220. }
  3221. impl ::std::fmt::Debug for GridBlockOrder {
  3222. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3223. ::protobuf::text_format::fmt(self, f)
  3224. }
  3225. }
  3226. impl ::protobuf::reflect::ProtobufValue for GridBlockOrder {
  3227. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3228. ::protobuf::reflect::ReflectValueRef::Message(self)
  3229. }
  3230. }
  3231. #[derive(PartialEq,Clone,Default)]
  3232. pub struct IndexRowOrder {
  3233. // message fields
  3234. pub row_order: ::protobuf::SingularPtrField<RowOrder>,
  3235. // message oneof groups
  3236. pub one_of_index: ::std::option::Option<IndexRowOrder_oneof_one_of_index>,
  3237. // special fields
  3238. pub unknown_fields: ::protobuf::UnknownFields,
  3239. pub cached_size: ::protobuf::CachedSize,
  3240. }
  3241. impl<'a> ::std::default::Default for &'a IndexRowOrder {
  3242. fn default() -> &'a IndexRowOrder {
  3243. <IndexRowOrder as ::protobuf::Message>::default_instance()
  3244. }
  3245. }
  3246. #[derive(Clone,PartialEq,Debug)]
  3247. pub enum IndexRowOrder_oneof_one_of_index {
  3248. index(i32),
  3249. }
  3250. impl IndexRowOrder {
  3251. pub fn new() -> IndexRowOrder {
  3252. ::std::default::Default::default()
  3253. }
  3254. // .RowOrder row_order = 1;
  3255. pub fn get_row_order(&self) -> &RowOrder {
  3256. self.row_order.as_ref().unwrap_or_else(|| <RowOrder as ::protobuf::Message>::default_instance())
  3257. }
  3258. pub fn clear_row_order(&mut self) {
  3259. self.row_order.clear();
  3260. }
  3261. pub fn has_row_order(&self) -> bool {
  3262. self.row_order.is_some()
  3263. }
  3264. // Param is passed by value, moved
  3265. pub fn set_row_order(&mut self, v: RowOrder) {
  3266. self.row_order = ::protobuf::SingularPtrField::some(v);
  3267. }
  3268. // Mutable pointer to the field.
  3269. // If field is not initialized, it is initialized with default value first.
  3270. pub fn mut_row_order(&mut self) -> &mut RowOrder {
  3271. if self.row_order.is_none() {
  3272. self.row_order.set_default();
  3273. }
  3274. self.row_order.as_mut().unwrap()
  3275. }
  3276. // Take field
  3277. pub fn take_row_order(&mut self) -> RowOrder {
  3278. self.row_order.take().unwrap_or_else(|| RowOrder::new())
  3279. }
  3280. // int32 index = 2;
  3281. pub fn get_index(&self) -> i32 {
  3282. match self.one_of_index {
  3283. ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(v)) => v,
  3284. _ => 0,
  3285. }
  3286. }
  3287. pub fn clear_index(&mut self) {
  3288. self.one_of_index = ::std::option::Option::None;
  3289. }
  3290. pub fn has_index(&self) -> bool {
  3291. match self.one_of_index {
  3292. ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(..)) => true,
  3293. _ => false,
  3294. }
  3295. }
  3296. // Param is passed by value, moved
  3297. pub fn set_index(&mut self, v: i32) {
  3298. self.one_of_index = ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(v))
  3299. }
  3300. }
  3301. impl ::protobuf::Message for IndexRowOrder {
  3302. fn is_initialized(&self) -> bool {
  3303. for v in &self.row_order {
  3304. if !v.is_initialized() {
  3305. return false;
  3306. }
  3307. };
  3308. true
  3309. }
  3310. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3311. while !is.eof()? {
  3312. let (field_number, wire_type) = is.read_tag_unpack()?;
  3313. match field_number {
  3314. 1 => {
  3315. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row_order)?;
  3316. },
  3317. 2 => {
  3318. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3319. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3320. }
  3321. self.one_of_index = ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(is.read_int32()?));
  3322. },
  3323. _ => {
  3324. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3325. },
  3326. };
  3327. }
  3328. ::std::result::Result::Ok(())
  3329. }
  3330. // Compute sizes of nested messages
  3331. #[allow(unused_variables)]
  3332. fn compute_size(&self) -> u32 {
  3333. let mut my_size = 0;
  3334. if let Some(ref v) = self.row_order.as_ref() {
  3335. let len = v.compute_size();
  3336. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3337. }
  3338. if let ::std::option::Option::Some(ref v) = self.one_of_index {
  3339. match v {
  3340. &IndexRowOrder_oneof_one_of_index::index(v) => {
  3341. my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
  3342. },
  3343. };
  3344. }
  3345. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3346. self.cached_size.set(my_size);
  3347. my_size
  3348. }
  3349. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3350. if let Some(ref v) = self.row_order.as_ref() {
  3351. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3352. os.write_raw_varint32(v.get_cached_size())?;
  3353. v.write_to_with_cached_sizes(os)?;
  3354. }
  3355. if let ::std::option::Option::Some(ref v) = self.one_of_index {
  3356. match v {
  3357. &IndexRowOrder_oneof_one_of_index::index(v) => {
  3358. os.write_int32(2, v)?;
  3359. },
  3360. };
  3361. }
  3362. os.write_unknown_fields(self.get_unknown_fields())?;
  3363. ::std::result::Result::Ok(())
  3364. }
  3365. fn get_cached_size(&self) -> u32 {
  3366. self.cached_size.get()
  3367. }
  3368. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3369. &self.unknown_fields
  3370. }
  3371. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3372. &mut self.unknown_fields
  3373. }
  3374. fn as_any(&self) -> &dyn (::std::any::Any) {
  3375. self as &dyn (::std::any::Any)
  3376. }
  3377. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3378. self as &mut dyn (::std::any::Any)
  3379. }
  3380. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3381. self
  3382. }
  3383. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3384. Self::descriptor_static()
  3385. }
  3386. fn new() -> IndexRowOrder {
  3387. IndexRowOrder::new()
  3388. }
  3389. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3390. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3391. descriptor.get(|| {
  3392. let mut fields = ::std::vec::Vec::new();
  3393. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3394. "row_order",
  3395. |m: &IndexRowOrder| { &m.row_order },
  3396. |m: &mut IndexRowOrder| { &mut m.row_order },
  3397. ));
  3398. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  3399. "index",
  3400. IndexRowOrder::has_index,
  3401. IndexRowOrder::get_index,
  3402. ));
  3403. ::protobuf::reflect::MessageDescriptor::new_pb_name::<IndexRowOrder>(
  3404. "IndexRowOrder",
  3405. fields,
  3406. file_descriptor_proto()
  3407. )
  3408. })
  3409. }
  3410. fn default_instance() -> &'static IndexRowOrder {
  3411. static instance: ::protobuf::rt::LazyV2<IndexRowOrder> = ::protobuf::rt::LazyV2::INIT;
  3412. instance.get(IndexRowOrder::new)
  3413. }
  3414. }
  3415. impl ::protobuf::Clear for IndexRowOrder {
  3416. fn clear(&mut self) {
  3417. self.row_order.clear();
  3418. self.one_of_index = ::std::option::Option::None;
  3419. self.unknown_fields.clear();
  3420. }
  3421. }
  3422. impl ::std::fmt::Debug for IndexRowOrder {
  3423. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3424. ::protobuf::text_format::fmt(self, f)
  3425. }
  3426. }
  3427. impl ::protobuf::reflect::ProtobufValue for IndexRowOrder {
  3428. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3429. ::protobuf::reflect::ReflectValueRef::Message(self)
  3430. }
  3431. }
  3432. #[derive(PartialEq,Clone,Default)]
  3433. pub struct UpdatedRowOrder {
  3434. // message fields
  3435. pub row_order: ::protobuf::SingularPtrField<RowOrder>,
  3436. pub row: ::protobuf::SingularPtrField<Row>,
  3437. // special fields
  3438. pub unknown_fields: ::protobuf::UnknownFields,
  3439. pub cached_size: ::protobuf::CachedSize,
  3440. }
  3441. impl<'a> ::std::default::Default for &'a UpdatedRowOrder {
  3442. fn default() -> &'a UpdatedRowOrder {
  3443. <UpdatedRowOrder as ::protobuf::Message>::default_instance()
  3444. }
  3445. }
  3446. impl UpdatedRowOrder {
  3447. pub fn new() -> UpdatedRowOrder {
  3448. ::std::default::Default::default()
  3449. }
  3450. // .RowOrder row_order = 1;
  3451. pub fn get_row_order(&self) -> &RowOrder {
  3452. self.row_order.as_ref().unwrap_or_else(|| <RowOrder as ::protobuf::Message>::default_instance())
  3453. }
  3454. pub fn clear_row_order(&mut self) {
  3455. self.row_order.clear();
  3456. }
  3457. pub fn has_row_order(&self) -> bool {
  3458. self.row_order.is_some()
  3459. }
  3460. // Param is passed by value, moved
  3461. pub fn set_row_order(&mut self, v: RowOrder) {
  3462. self.row_order = ::protobuf::SingularPtrField::some(v);
  3463. }
  3464. // Mutable pointer to the field.
  3465. // If field is not initialized, it is initialized with default value first.
  3466. pub fn mut_row_order(&mut self) -> &mut RowOrder {
  3467. if self.row_order.is_none() {
  3468. self.row_order.set_default();
  3469. }
  3470. self.row_order.as_mut().unwrap()
  3471. }
  3472. // Take field
  3473. pub fn take_row_order(&mut self) -> RowOrder {
  3474. self.row_order.take().unwrap_or_else(|| RowOrder::new())
  3475. }
  3476. // .Row row = 2;
  3477. pub fn get_row(&self) -> &Row {
  3478. self.row.as_ref().unwrap_or_else(|| <Row as ::protobuf::Message>::default_instance())
  3479. }
  3480. pub fn clear_row(&mut self) {
  3481. self.row.clear();
  3482. }
  3483. pub fn has_row(&self) -> bool {
  3484. self.row.is_some()
  3485. }
  3486. // Param is passed by value, moved
  3487. pub fn set_row(&mut self, v: Row) {
  3488. self.row = ::protobuf::SingularPtrField::some(v);
  3489. }
  3490. // Mutable pointer to the field.
  3491. // If field is not initialized, it is initialized with default value first.
  3492. pub fn mut_row(&mut self) -> &mut Row {
  3493. if self.row.is_none() {
  3494. self.row.set_default();
  3495. }
  3496. self.row.as_mut().unwrap()
  3497. }
  3498. // Take field
  3499. pub fn take_row(&mut self) -> Row {
  3500. self.row.take().unwrap_or_else(|| Row::new())
  3501. }
  3502. }
  3503. impl ::protobuf::Message for UpdatedRowOrder {
  3504. fn is_initialized(&self) -> bool {
  3505. for v in &self.row_order {
  3506. if !v.is_initialized() {
  3507. return false;
  3508. }
  3509. };
  3510. for v in &self.row {
  3511. if !v.is_initialized() {
  3512. return false;
  3513. }
  3514. };
  3515. true
  3516. }
  3517. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3518. while !is.eof()? {
  3519. let (field_number, wire_type) = is.read_tag_unpack()?;
  3520. match field_number {
  3521. 1 => {
  3522. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row_order)?;
  3523. },
  3524. 2 => {
  3525. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row)?;
  3526. },
  3527. _ => {
  3528. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3529. },
  3530. };
  3531. }
  3532. ::std::result::Result::Ok(())
  3533. }
  3534. // Compute sizes of nested messages
  3535. #[allow(unused_variables)]
  3536. fn compute_size(&self) -> u32 {
  3537. let mut my_size = 0;
  3538. if let Some(ref v) = self.row_order.as_ref() {
  3539. let len = v.compute_size();
  3540. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3541. }
  3542. if let Some(ref v) = self.row.as_ref() {
  3543. let len = v.compute_size();
  3544. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3545. }
  3546. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3547. self.cached_size.set(my_size);
  3548. my_size
  3549. }
  3550. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3551. if let Some(ref v) = self.row_order.as_ref() {
  3552. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3553. os.write_raw_varint32(v.get_cached_size())?;
  3554. v.write_to_with_cached_sizes(os)?;
  3555. }
  3556. if let Some(ref v) = self.row.as_ref() {
  3557. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3558. os.write_raw_varint32(v.get_cached_size())?;
  3559. v.write_to_with_cached_sizes(os)?;
  3560. }
  3561. os.write_unknown_fields(self.get_unknown_fields())?;
  3562. ::std::result::Result::Ok(())
  3563. }
  3564. fn get_cached_size(&self) -> u32 {
  3565. self.cached_size.get()
  3566. }
  3567. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3568. &self.unknown_fields
  3569. }
  3570. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3571. &mut self.unknown_fields
  3572. }
  3573. fn as_any(&self) -> &dyn (::std::any::Any) {
  3574. self as &dyn (::std::any::Any)
  3575. }
  3576. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3577. self as &mut dyn (::std::any::Any)
  3578. }
  3579. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3580. self
  3581. }
  3582. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3583. Self::descriptor_static()
  3584. }
  3585. fn new() -> UpdatedRowOrder {
  3586. UpdatedRowOrder::new()
  3587. }
  3588. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3589. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3590. descriptor.get(|| {
  3591. let mut fields = ::std::vec::Vec::new();
  3592. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3593. "row_order",
  3594. |m: &UpdatedRowOrder| { &m.row_order },
  3595. |m: &mut UpdatedRowOrder| { &mut m.row_order },
  3596. ));
  3597. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Row>>(
  3598. "row",
  3599. |m: &UpdatedRowOrder| { &m.row },
  3600. |m: &mut UpdatedRowOrder| { &mut m.row },
  3601. ));
  3602. ::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdatedRowOrder>(
  3603. "UpdatedRowOrder",
  3604. fields,
  3605. file_descriptor_proto()
  3606. )
  3607. })
  3608. }
  3609. fn default_instance() -> &'static UpdatedRowOrder {
  3610. static instance: ::protobuf::rt::LazyV2<UpdatedRowOrder> = ::protobuf::rt::LazyV2::INIT;
  3611. instance.get(UpdatedRowOrder::new)
  3612. }
  3613. }
  3614. impl ::protobuf::Clear for UpdatedRowOrder {
  3615. fn clear(&mut self) {
  3616. self.row_order.clear();
  3617. self.row.clear();
  3618. self.unknown_fields.clear();
  3619. }
  3620. }
  3621. impl ::std::fmt::Debug for UpdatedRowOrder {
  3622. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3623. ::protobuf::text_format::fmt(self, f)
  3624. }
  3625. }
  3626. impl ::protobuf::reflect::ProtobufValue for UpdatedRowOrder {
  3627. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3628. ::protobuf::reflect::ReflectValueRef::Message(self)
  3629. }
  3630. }
  3631. #[derive(PartialEq,Clone,Default)]
  3632. pub struct GridRowsChangeset {
  3633. // message fields
  3634. pub block_id: ::std::string::String,
  3635. pub inserted_rows: ::protobuf::RepeatedField<IndexRowOrder>,
  3636. pub deleted_rows: ::protobuf::RepeatedField<RowOrder>,
  3637. pub updated_rows: ::protobuf::RepeatedField<UpdatedRowOrder>,
  3638. // special fields
  3639. pub unknown_fields: ::protobuf::UnknownFields,
  3640. pub cached_size: ::protobuf::CachedSize,
  3641. }
  3642. impl<'a> ::std::default::Default for &'a GridRowsChangeset {
  3643. fn default() -> &'a GridRowsChangeset {
  3644. <GridRowsChangeset as ::protobuf::Message>::default_instance()
  3645. }
  3646. }
  3647. impl GridRowsChangeset {
  3648. pub fn new() -> GridRowsChangeset {
  3649. ::std::default::Default::default()
  3650. }
  3651. // string block_id = 1;
  3652. pub fn get_block_id(&self) -> &str {
  3653. &self.block_id
  3654. }
  3655. pub fn clear_block_id(&mut self) {
  3656. self.block_id.clear();
  3657. }
  3658. // Param is passed by value, moved
  3659. pub fn set_block_id(&mut self, v: ::std::string::String) {
  3660. self.block_id = v;
  3661. }
  3662. // Mutable pointer to the field.
  3663. // If field is not initialized, it is initialized with default value first.
  3664. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  3665. &mut self.block_id
  3666. }
  3667. // Take field
  3668. pub fn take_block_id(&mut self) -> ::std::string::String {
  3669. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  3670. }
  3671. // repeated .IndexRowOrder inserted_rows = 2;
  3672. pub fn get_inserted_rows(&self) -> &[IndexRowOrder] {
  3673. &self.inserted_rows
  3674. }
  3675. pub fn clear_inserted_rows(&mut self) {
  3676. self.inserted_rows.clear();
  3677. }
  3678. // Param is passed by value, moved
  3679. pub fn set_inserted_rows(&mut self, v: ::protobuf::RepeatedField<IndexRowOrder>) {
  3680. self.inserted_rows = v;
  3681. }
  3682. // Mutable pointer to the field.
  3683. pub fn mut_inserted_rows(&mut self) -> &mut ::protobuf::RepeatedField<IndexRowOrder> {
  3684. &mut self.inserted_rows
  3685. }
  3686. // Take field
  3687. pub fn take_inserted_rows(&mut self) -> ::protobuf::RepeatedField<IndexRowOrder> {
  3688. ::std::mem::replace(&mut self.inserted_rows, ::protobuf::RepeatedField::new())
  3689. }
  3690. // repeated .RowOrder deleted_rows = 3;
  3691. pub fn get_deleted_rows(&self) -> &[RowOrder] {
  3692. &self.deleted_rows
  3693. }
  3694. pub fn clear_deleted_rows(&mut self) {
  3695. self.deleted_rows.clear();
  3696. }
  3697. // Param is passed by value, moved
  3698. pub fn set_deleted_rows(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3699. self.deleted_rows = v;
  3700. }
  3701. // Mutable pointer to the field.
  3702. pub fn mut_deleted_rows(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3703. &mut self.deleted_rows
  3704. }
  3705. // Take field
  3706. pub fn take_deleted_rows(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3707. ::std::mem::replace(&mut self.deleted_rows, ::protobuf::RepeatedField::new())
  3708. }
  3709. // repeated .UpdatedRowOrder updated_rows = 4;
  3710. pub fn get_updated_rows(&self) -> &[UpdatedRowOrder] {
  3711. &self.updated_rows
  3712. }
  3713. pub fn clear_updated_rows(&mut self) {
  3714. self.updated_rows.clear();
  3715. }
  3716. // Param is passed by value, moved
  3717. pub fn set_updated_rows(&mut self, v: ::protobuf::RepeatedField<UpdatedRowOrder>) {
  3718. self.updated_rows = v;
  3719. }
  3720. // Mutable pointer to the field.
  3721. pub fn mut_updated_rows(&mut self) -> &mut ::protobuf::RepeatedField<UpdatedRowOrder> {
  3722. &mut self.updated_rows
  3723. }
  3724. // Take field
  3725. pub fn take_updated_rows(&mut self) -> ::protobuf::RepeatedField<UpdatedRowOrder> {
  3726. ::std::mem::replace(&mut self.updated_rows, ::protobuf::RepeatedField::new())
  3727. }
  3728. }
  3729. impl ::protobuf::Message for GridRowsChangeset {
  3730. fn is_initialized(&self) -> bool {
  3731. for v in &self.inserted_rows {
  3732. if !v.is_initialized() {
  3733. return false;
  3734. }
  3735. };
  3736. for v in &self.deleted_rows {
  3737. if !v.is_initialized() {
  3738. return false;
  3739. }
  3740. };
  3741. for v in &self.updated_rows {
  3742. if !v.is_initialized() {
  3743. return false;
  3744. }
  3745. };
  3746. true
  3747. }
  3748. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3749. while !is.eof()? {
  3750. let (field_number, wire_type) = is.read_tag_unpack()?;
  3751. match field_number {
  3752. 1 => {
  3753. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  3754. },
  3755. 2 => {
  3756. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inserted_rows)?;
  3757. },
  3758. 3 => {
  3759. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.deleted_rows)?;
  3760. },
  3761. 4 => {
  3762. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.updated_rows)?;
  3763. },
  3764. _ => {
  3765. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3766. },
  3767. };
  3768. }
  3769. ::std::result::Result::Ok(())
  3770. }
  3771. // Compute sizes of nested messages
  3772. #[allow(unused_variables)]
  3773. fn compute_size(&self) -> u32 {
  3774. let mut my_size = 0;
  3775. if !self.block_id.is_empty() {
  3776. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  3777. }
  3778. for value in &self.inserted_rows {
  3779. let len = value.compute_size();
  3780. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3781. };
  3782. for value in &self.deleted_rows {
  3783. let len = value.compute_size();
  3784. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3785. };
  3786. for value in &self.updated_rows {
  3787. let len = value.compute_size();
  3788. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3789. };
  3790. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3791. self.cached_size.set(my_size);
  3792. my_size
  3793. }
  3794. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3795. if !self.block_id.is_empty() {
  3796. os.write_string(1, &self.block_id)?;
  3797. }
  3798. for v in &self.inserted_rows {
  3799. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3800. os.write_raw_varint32(v.get_cached_size())?;
  3801. v.write_to_with_cached_sizes(os)?;
  3802. };
  3803. for v in &self.deleted_rows {
  3804. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3805. os.write_raw_varint32(v.get_cached_size())?;
  3806. v.write_to_with_cached_sizes(os)?;
  3807. };
  3808. for v in &self.updated_rows {
  3809. os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3810. os.write_raw_varint32(v.get_cached_size())?;
  3811. v.write_to_with_cached_sizes(os)?;
  3812. };
  3813. os.write_unknown_fields(self.get_unknown_fields())?;
  3814. ::std::result::Result::Ok(())
  3815. }
  3816. fn get_cached_size(&self) -> u32 {
  3817. self.cached_size.get()
  3818. }
  3819. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3820. &self.unknown_fields
  3821. }
  3822. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3823. &mut self.unknown_fields
  3824. }
  3825. fn as_any(&self) -> &dyn (::std::any::Any) {
  3826. self as &dyn (::std::any::Any)
  3827. }
  3828. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3829. self as &mut dyn (::std::any::Any)
  3830. }
  3831. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3832. self
  3833. }
  3834. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3835. Self::descriptor_static()
  3836. }
  3837. fn new() -> GridRowsChangeset {
  3838. GridRowsChangeset::new()
  3839. }
  3840. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3841. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3842. descriptor.get(|| {
  3843. let mut fields = ::std::vec::Vec::new();
  3844. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3845. "block_id",
  3846. |m: &GridRowsChangeset| { &m.block_id },
  3847. |m: &mut GridRowsChangeset| { &mut m.block_id },
  3848. ));
  3849. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<IndexRowOrder>>(
  3850. "inserted_rows",
  3851. |m: &GridRowsChangeset| { &m.inserted_rows },
  3852. |m: &mut GridRowsChangeset| { &mut m.inserted_rows },
  3853. ));
  3854. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3855. "deleted_rows",
  3856. |m: &GridRowsChangeset| { &m.deleted_rows },
  3857. |m: &mut GridRowsChangeset| { &mut m.deleted_rows },
  3858. ));
  3859. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UpdatedRowOrder>>(
  3860. "updated_rows",
  3861. |m: &GridRowsChangeset| { &m.updated_rows },
  3862. |m: &mut GridRowsChangeset| { &mut m.updated_rows },
  3863. ));
  3864. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridRowsChangeset>(
  3865. "GridRowsChangeset",
  3866. fields,
  3867. file_descriptor_proto()
  3868. )
  3869. })
  3870. }
  3871. fn default_instance() -> &'static GridRowsChangeset {
  3872. static instance: ::protobuf::rt::LazyV2<GridRowsChangeset> = ::protobuf::rt::LazyV2::INIT;
  3873. instance.get(GridRowsChangeset::new)
  3874. }
  3875. }
  3876. impl ::protobuf::Clear for GridRowsChangeset {
  3877. fn clear(&mut self) {
  3878. self.block_id.clear();
  3879. self.inserted_rows.clear();
  3880. self.deleted_rows.clear();
  3881. self.updated_rows.clear();
  3882. self.unknown_fields.clear();
  3883. }
  3884. }
  3885. impl ::std::fmt::Debug for GridRowsChangeset {
  3886. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3887. ::protobuf::text_format::fmt(self, f)
  3888. }
  3889. }
  3890. impl ::protobuf::reflect::ProtobufValue for GridRowsChangeset {
  3891. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3892. ::protobuf::reflect::ReflectValueRef::Message(self)
  3893. }
  3894. }
  3895. #[derive(PartialEq,Clone,Default)]
  3896. pub struct GridBlock {
  3897. // message fields
  3898. pub id: ::std::string::String,
  3899. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  3900. // special fields
  3901. pub unknown_fields: ::protobuf::UnknownFields,
  3902. pub cached_size: ::protobuf::CachedSize,
  3903. }
  3904. impl<'a> ::std::default::Default for &'a GridBlock {
  3905. fn default() -> &'a GridBlock {
  3906. <GridBlock as ::protobuf::Message>::default_instance()
  3907. }
  3908. }
  3909. impl GridBlock {
  3910. pub fn new() -> GridBlock {
  3911. ::std::default::Default::default()
  3912. }
  3913. // string id = 1;
  3914. pub fn get_id(&self) -> &str {
  3915. &self.id
  3916. }
  3917. pub fn clear_id(&mut self) {
  3918. self.id.clear();
  3919. }
  3920. // Param is passed by value, moved
  3921. pub fn set_id(&mut self, v: ::std::string::String) {
  3922. self.id = v;
  3923. }
  3924. // Mutable pointer to the field.
  3925. // If field is not initialized, it is initialized with default value first.
  3926. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  3927. &mut self.id
  3928. }
  3929. // Take field
  3930. pub fn take_id(&mut self) -> ::std::string::String {
  3931. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  3932. }
  3933. // repeated .RowOrder row_orders = 2;
  3934. pub fn get_row_orders(&self) -> &[RowOrder] {
  3935. &self.row_orders
  3936. }
  3937. pub fn clear_row_orders(&mut self) {
  3938. self.row_orders.clear();
  3939. }
  3940. // Param is passed by value, moved
  3941. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3942. self.row_orders = v;
  3943. }
  3944. // Mutable pointer to the field.
  3945. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3946. &mut self.row_orders
  3947. }
  3948. // Take field
  3949. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3950. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  3951. }
  3952. }
  3953. impl ::protobuf::Message for GridBlock {
  3954. fn is_initialized(&self) -> bool {
  3955. for v in &self.row_orders {
  3956. if !v.is_initialized() {
  3957. return false;
  3958. }
  3959. };
  3960. true
  3961. }
  3962. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3963. while !is.eof()? {
  3964. let (field_number, wire_type) = is.read_tag_unpack()?;
  3965. match field_number {
  3966. 1 => {
  3967. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  3968. },
  3969. 2 => {
  3970. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  3971. },
  3972. _ => {
  3973. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3974. },
  3975. };
  3976. }
  3977. ::std::result::Result::Ok(())
  3978. }
  3979. // Compute sizes of nested messages
  3980. #[allow(unused_variables)]
  3981. fn compute_size(&self) -> u32 {
  3982. let mut my_size = 0;
  3983. if !self.id.is_empty() {
  3984. my_size += ::protobuf::rt::string_size(1, &self.id);
  3985. }
  3986. for value in &self.row_orders {
  3987. let len = value.compute_size();
  3988. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3989. };
  3990. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3991. self.cached_size.set(my_size);
  3992. my_size
  3993. }
  3994. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3995. if !self.id.is_empty() {
  3996. os.write_string(1, &self.id)?;
  3997. }
  3998. for v in &self.row_orders {
  3999. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4000. os.write_raw_varint32(v.get_cached_size())?;
  4001. v.write_to_with_cached_sizes(os)?;
  4002. };
  4003. os.write_unknown_fields(self.get_unknown_fields())?;
  4004. ::std::result::Result::Ok(())
  4005. }
  4006. fn get_cached_size(&self) -> u32 {
  4007. self.cached_size.get()
  4008. }
  4009. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4010. &self.unknown_fields
  4011. }
  4012. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4013. &mut self.unknown_fields
  4014. }
  4015. fn as_any(&self) -> &dyn (::std::any::Any) {
  4016. self as &dyn (::std::any::Any)
  4017. }
  4018. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4019. self as &mut dyn (::std::any::Any)
  4020. }
  4021. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4022. self
  4023. }
  4024. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4025. Self::descriptor_static()
  4026. }
  4027. fn new() -> GridBlock {
  4028. GridBlock::new()
  4029. }
  4030. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4031. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4032. descriptor.get(|| {
  4033. let mut fields = ::std::vec::Vec::new();
  4034. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4035. "id",
  4036. |m: &GridBlock| { &m.id },
  4037. |m: &mut GridBlock| { &mut m.id },
  4038. ));
  4039. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  4040. "row_orders",
  4041. |m: &GridBlock| { &m.row_orders },
  4042. |m: &mut GridBlock| { &mut m.row_orders },
  4043. ));
  4044. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlock>(
  4045. "GridBlock",
  4046. fields,
  4047. file_descriptor_proto()
  4048. )
  4049. })
  4050. }
  4051. fn default_instance() -> &'static GridBlock {
  4052. static instance: ::protobuf::rt::LazyV2<GridBlock> = ::protobuf::rt::LazyV2::INIT;
  4053. instance.get(GridBlock::new)
  4054. }
  4055. }
  4056. impl ::protobuf::Clear for GridBlock {
  4057. fn clear(&mut self) {
  4058. self.id.clear();
  4059. self.row_orders.clear();
  4060. self.unknown_fields.clear();
  4061. }
  4062. }
  4063. impl ::std::fmt::Debug for GridBlock {
  4064. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4065. ::protobuf::text_format::fmt(self, f)
  4066. }
  4067. }
  4068. impl ::protobuf::reflect::ProtobufValue for GridBlock {
  4069. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4070. ::protobuf::reflect::ReflectValueRef::Message(self)
  4071. }
  4072. }
  4073. #[derive(PartialEq,Clone,Default)]
  4074. pub struct Cell {
  4075. // message fields
  4076. pub field_id: ::std::string::String,
  4077. pub data: ::std::vec::Vec<u8>,
  4078. // special fields
  4079. pub unknown_fields: ::protobuf::UnknownFields,
  4080. pub cached_size: ::protobuf::CachedSize,
  4081. }
  4082. impl<'a> ::std::default::Default for &'a Cell {
  4083. fn default() -> &'a Cell {
  4084. <Cell as ::protobuf::Message>::default_instance()
  4085. }
  4086. }
  4087. impl Cell {
  4088. pub fn new() -> Cell {
  4089. ::std::default::Default::default()
  4090. }
  4091. // string field_id = 1;
  4092. pub fn get_field_id(&self) -> &str {
  4093. &self.field_id
  4094. }
  4095. pub fn clear_field_id(&mut self) {
  4096. self.field_id.clear();
  4097. }
  4098. // Param is passed by value, moved
  4099. pub fn set_field_id(&mut self, v: ::std::string::String) {
  4100. self.field_id = v;
  4101. }
  4102. // Mutable pointer to the field.
  4103. // If field is not initialized, it is initialized with default value first.
  4104. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  4105. &mut self.field_id
  4106. }
  4107. // Take field
  4108. pub fn take_field_id(&mut self) -> ::std::string::String {
  4109. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  4110. }
  4111. // bytes data = 2;
  4112. pub fn get_data(&self) -> &[u8] {
  4113. &self.data
  4114. }
  4115. pub fn clear_data(&mut self) {
  4116. self.data.clear();
  4117. }
  4118. // Param is passed by value, moved
  4119. pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
  4120. self.data = v;
  4121. }
  4122. // Mutable pointer to the field.
  4123. // If field is not initialized, it is initialized with default value first.
  4124. pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  4125. &mut self.data
  4126. }
  4127. // Take field
  4128. pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
  4129. ::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
  4130. }
  4131. }
  4132. impl ::protobuf::Message for Cell {
  4133. fn is_initialized(&self) -> bool {
  4134. true
  4135. }
  4136. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4137. while !is.eof()? {
  4138. let (field_number, wire_type) = is.read_tag_unpack()?;
  4139. match field_number {
  4140. 1 => {
  4141. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  4142. },
  4143. 2 => {
  4144. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
  4145. },
  4146. _ => {
  4147. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4148. },
  4149. };
  4150. }
  4151. ::std::result::Result::Ok(())
  4152. }
  4153. // Compute sizes of nested messages
  4154. #[allow(unused_variables)]
  4155. fn compute_size(&self) -> u32 {
  4156. let mut my_size = 0;
  4157. if !self.field_id.is_empty() {
  4158. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  4159. }
  4160. if !self.data.is_empty() {
  4161. my_size += ::protobuf::rt::bytes_size(2, &self.data);
  4162. }
  4163. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4164. self.cached_size.set(my_size);
  4165. my_size
  4166. }
  4167. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4168. if !self.field_id.is_empty() {
  4169. os.write_string(1, &self.field_id)?;
  4170. }
  4171. if !self.data.is_empty() {
  4172. os.write_bytes(2, &self.data)?;
  4173. }
  4174. os.write_unknown_fields(self.get_unknown_fields())?;
  4175. ::std::result::Result::Ok(())
  4176. }
  4177. fn get_cached_size(&self) -> u32 {
  4178. self.cached_size.get()
  4179. }
  4180. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4181. &self.unknown_fields
  4182. }
  4183. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4184. &mut self.unknown_fields
  4185. }
  4186. fn as_any(&self) -> &dyn (::std::any::Any) {
  4187. self as &dyn (::std::any::Any)
  4188. }
  4189. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4190. self as &mut dyn (::std::any::Any)
  4191. }
  4192. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4193. self
  4194. }
  4195. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4196. Self::descriptor_static()
  4197. }
  4198. fn new() -> Cell {
  4199. Cell::new()
  4200. }
  4201. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4202. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4203. descriptor.get(|| {
  4204. let mut fields = ::std::vec::Vec::new();
  4205. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4206. "field_id",
  4207. |m: &Cell| { &m.field_id },
  4208. |m: &mut Cell| { &mut m.field_id },
  4209. ));
  4210. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  4211. "data",
  4212. |m: &Cell| { &m.data },
  4213. |m: &mut Cell| { &mut m.data },
  4214. ));
  4215. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Cell>(
  4216. "Cell",
  4217. fields,
  4218. file_descriptor_proto()
  4219. )
  4220. })
  4221. }
  4222. fn default_instance() -> &'static Cell {
  4223. static instance: ::protobuf::rt::LazyV2<Cell> = ::protobuf::rt::LazyV2::INIT;
  4224. instance.get(Cell::new)
  4225. }
  4226. }
  4227. impl ::protobuf::Clear for Cell {
  4228. fn clear(&mut self) {
  4229. self.field_id.clear();
  4230. self.data.clear();
  4231. self.unknown_fields.clear();
  4232. }
  4233. }
  4234. impl ::std::fmt::Debug for Cell {
  4235. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4236. ::protobuf::text_format::fmt(self, f)
  4237. }
  4238. }
  4239. impl ::protobuf::reflect::ProtobufValue for Cell {
  4240. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4241. ::protobuf::reflect::ReflectValueRef::Message(self)
  4242. }
  4243. }
  4244. #[derive(PartialEq,Clone,Default)]
  4245. pub struct RepeatedCell {
  4246. // message fields
  4247. pub items: ::protobuf::RepeatedField<Cell>,
  4248. // special fields
  4249. pub unknown_fields: ::protobuf::UnknownFields,
  4250. pub cached_size: ::protobuf::CachedSize,
  4251. }
  4252. impl<'a> ::std::default::Default for &'a RepeatedCell {
  4253. fn default() -> &'a RepeatedCell {
  4254. <RepeatedCell as ::protobuf::Message>::default_instance()
  4255. }
  4256. }
  4257. impl RepeatedCell {
  4258. pub fn new() -> RepeatedCell {
  4259. ::std::default::Default::default()
  4260. }
  4261. // repeated .Cell items = 1;
  4262. pub fn get_items(&self) -> &[Cell] {
  4263. &self.items
  4264. }
  4265. pub fn clear_items(&mut self) {
  4266. self.items.clear();
  4267. }
  4268. // Param is passed by value, moved
  4269. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Cell>) {
  4270. self.items = v;
  4271. }
  4272. // Mutable pointer to the field.
  4273. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Cell> {
  4274. &mut self.items
  4275. }
  4276. // Take field
  4277. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Cell> {
  4278. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  4279. }
  4280. }
  4281. impl ::protobuf::Message for RepeatedCell {
  4282. fn is_initialized(&self) -> bool {
  4283. for v in &self.items {
  4284. if !v.is_initialized() {
  4285. return false;
  4286. }
  4287. };
  4288. true
  4289. }
  4290. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4291. while !is.eof()? {
  4292. let (field_number, wire_type) = is.read_tag_unpack()?;
  4293. match field_number {
  4294. 1 => {
  4295. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  4296. },
  4297. _ => {
  4298. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4299. },
  4300. };
  4301. }
  4302. ::std::result::Result::Ok(())
  4303. }
  4304. // Compute sizes of nested messages
  4305. #[allow(unused_variables)]
  4306. fn compute_size(&self) -> u32 {
  4307. let mut my_size = 0;
  4308. for value in &self.items {
  4309. let len = value.compute_size();
  4310. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4311. };
  4312. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4313. self.cached_size.set(my_size);
  4314. my_size
  4315. }
  4316. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4317. for v in &self.items {
  4318. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4319. os.write_raw_varint32(v.get_cached_size())?;
  4320. v.write_to_with_cached_sizes(os)?;
  4321. };
  4322. os.write_unknown_fields(self.get_unknown_fields())?;
  4323. ::std::result::Result::Ok(())
  4324. }
  4325. fn get_cached_size(&self) -> u32 {
  4326. self.cached_size.get()
  4327. }
  4328. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4329. &self.unknown_fields
  4330. }
  4331. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4332. &mut self.unknown_fields
  4333. }
  4334. fn as_any(&self) -> &dyn (::std::any::Any) {
  4335. self as &dyn (::std::any::Any)
  4336. }
  4337. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4338. self as &mut dyn (::std::any::Any)
  4339. }
  4340. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4341. self
  4342. }
  4343. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4344. Self::descriptor_static()
  4345. }
  4346. fn new() -> RepeatedCell {
  4347. RepeatedCell::new()
  4348. }
  4349. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4350. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4351. descriptor.get(|| {
  4352. let mut fields = ::std::vec::Vec::new();
  4353. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  4354. "items",
  4355. |m: &RepeatedCell| { &m.items },
  4356. |m: &mut RepeatedCell| { &mut m.items },
  4357. ));
  4358. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedCell>(
  4359. "RepeatedCell",
  4360. fields,
  4361. file_descriptor_proto()
  4362. )
  4363. })
  4364. }
  4365. fn default_instance() -> &'static RepeatedCell {
  4366. static instance: ::protobuf::rt::LazyV2<RepeatedCell> = ::protobuf::rt::LazyV2::INIT;
  4367. instance.get(RepeatedCell::new)
  4368. }
  4369. }
  4370. impl ::protobuf::Clear for RepeatedCell {
  4371. fn clear(&mut self) {
  4372. self.items.clear();
  4373. self.unknown_fields.clear();
  4374. }
  4375. }
  4376. impl ::std::fmt::Debug for RepeatedCell {
  4377. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4378. ::protobuf::text_format::fmt(self, f)
  4379. }
  4380. }
  4381. impl ::protobuf::reflect::ProtobufValue for RepeatedCell {
  4382. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4383. ::protobuf::reflect::ReflectValueRef::Message(self)
  4384. }
  4385. }
  4386. #[derive(PartialEq,Clone,Default)]
  4387. pub struct CreateGridPayload {
  4388. // message fields
  4389. pub name: ::std::string::String,
  4390. // special fields
  4391. pub unknown_fields: ::protobuf::UnknownFields,
  4392. pub cached_size: ::protobuf::CachedSize,
  4393. }
  4394. impl<'a> ::std::default::Default for &'a CreateGridPayload {
  4395. fn default() -> &'a CreateGridPayload {
  4396. <CreateGridPayload as ::protobuf::Message>::default_instance()
  4397. }
  4398. }
  4399. impl CreateGridPayload {
  4400. pub fn new() -> CreateGridPayload {
  4401. ::std::default::Default::default()
  4402. }
  4403. // string name = 1;
  4404. pub fn get_name(&self) -> &str {
  4405. &self.name
  4406. }
  4407. pub fn clear_name(&mut self) {
  4408. self.name.clear();
  4409. }
  4410. // Param is passed by value, moved
  4411. pub fn set_name(&mut self, v: ::std::string::String) {
  4412. self.name = v;
  4413. }
  4414. // Mutable pointer to the field.
  4415. // If field is not initialized, it is initialized with default value first.
  4416. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  4417. &mut self.name
  4418. }
  4419. // Take field
  4420. pub fn take_name(&mut self) -> ::std::string::String {
  4421. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  4422. }
  4423. }
  4424. impl ::protobuf::Message for CreateGridPayload {
  4425. fn is_initialized(&self) -> bool {
  4426. true
  4427. }
  4428. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4429. while !is.eof()? {
  4430. let (field_number, wire_type) = is.read_tag_unpack()?;
  4431. match field_number {
  4432. 1 => {
  4433. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  4434. },
  4435. _ => {
  4436. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4437. },
  4438. };
  4439. }
  4440. ::std::result::Result::Ok(())
  4441. }
  4442. // Compute sizes of nested messages
  4443. #[allow(unused_variables)]
  4444. fn compute_size(&self) -> u32 {
  4445. let mut my_size = 0;
  4446. if !self.name.is_empty() {
  4447. my_size += ::protobuf::rt::string_size(1, &self.name);
  4448. }
  4449. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4450. self.cached_size.set(my_size);
  4451. my_size
  4452. }
  4453. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4454. if !self.name.is_empty() {
  4455. os.write_string(1, &self.name)?;
  4456. }
  4457. os.write_unknown_fields(self.get_unknown_fields())?;
  4458. ::std::result::Result::Ok(())
  4459. }
  4460. fn get_cached_size(&self) -> u32 {
  4461. self.cached_size.get()
  4462. }
  4463. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4464. &self.unknown_fields
  4465. }
  4466. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4467. &mut self.unknown_fields
  4468. }
  4469. fn as_any(&self) -> &dyn (::std::any::Any) {
  4470. self as &dyn (::std::any::Any)
  4471. }
  4472. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4473. self as &mut dyn (::std::any::Any)
  4474. }
  4475. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4476. self
  4477. }
  4478. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4479. Self::descriptor_static()
  4480. }
  4481. fn new() -> CreateGridPayload {
  4482. CreateGridPayload::new()
  4483. }
  4484. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4485. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4486. descriptor.get(|| {
  4487. let mut fields = ::std::vec::Vec::new();
  4488. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4489. "name",
  4490. |m: &CreateGridPayload| { &m.name },
  4491. |m: &mut CreateGridPayload| { &mut m.name },
  4492. ));
  4493. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateGridPayload>(
  4494. "CreateGridPayload",
  4495. fields,
  4496. file_descriptor_proto()
  4497. )
  4498. })
  4499. }
  4500. fn default_instance() -> &'static CreateGridPayload {
  4501. static instance: ::protobuf::rt::LazyV2<CreateGridPayload> = ::protobuf::rt::LazyV2::INIT;
  4502. instance.get(CreateGridPayload::new)
  4503. }
  4504. }
  4505. impl ::protobuf::Clear for CreateGridPayload {
  4506. fn clear(&mut self) {
  4507. self.name.clear();
  4508. self.unknown_fields.clear();
  4509. }
  4510. }
  4511. impl ::std::fmt::Debug for CreateGridPayload {
  4512. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4513. ::protobuf::text_format::fmt(self, f)
  4514. }
  4515. }
  4516. impl ::protobuf::reflect::ProtobufValue for CreateGridPayload {
  4517. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4518. ::protobuf::reflect::ReflectValueRef::Message(self)
  4519. }
  4520. }
  4521. #[derive(PartialEq,Clone,Default)]
  4522. pub struct GridId {
  4523. // message fields
  4524. pub value: ::std::string::String,
  4525. // special fields
  4526. pub unknown_fields: ::protobuf::UnknownFields,
  4527. pub cached_size: ::protobuf::CachedSize,
  4528. }
  4529. impl<'a> ::std::default::Default for &'a GridId {
  4530. fn default() -> &'a GridId {
  4531. <GridId as ::protobuf::Message>::default_instance()
  4532. }
  4533. }
  4534. impl GridId {
  4535. pub fn new() -> GridId {
  4536. ::std::default::Default::default()
  4537. }
  4538. // string value = 1;
  4539. pub fn get_value(&self) -> &str {
  4540. &self.value
  4541. }
  4542. pub fn clear_value(&mut self) {
  4543. self.value.clear();
  4544. }
  4545. // Param is passed by value, moved
  4546. pub fn set_value(&mut self, v: ::std::string::String) {
  4547. self.value = v;
  4548. }
  4549. // Mutable pointer to the field.
  4550. // If field is not initialized, it is initialized with default value first.
  4551. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  4552. &mut self.value
  4553. }
  4554. // Take field
  4555. pub fn take_value(&mut self) -> ::std::string::String {
  4556. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  4557. }
  4558. }
  4559. impl ::protobuf::Message for GridId {
  4560. fn is_initialized(&self) -> bool {
  4561. true
  4562. }
  4563. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4564. while !is.eof()? {
  4565. let (field_number, wire_type) = is.read_tag_unpack()?;
  4566. match field_number {
  4567. 1 => {
  4568. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  4569. },
  4570. _ => {
  4571. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4572. },
  4573. };
  4574. }
  4575. ::std::result::Result::Ok(())
  4576. }
  4577. // Compute sizes of nested messages
  4578. #[allow(unused_variables)]
  4579. fn compute_size(&self) -> u32 {
  4580. let mut my_size = 0;
  4581. if !self.value.is_empty() {
  4582. my_size += ::protobuf::rt::string_size(1, &self.value);
  4583. }
  4584. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4585. self.cached_size.set(my_size);
  4586. my_size
  4587. }
  4588. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4589. if !self.value.is_empty() {
  4590. os.write_string(1, &self.value)?;
  4591. }
  4592. os.write_unknown_fields(self.get_unknown_fields())?;
  4593. ::std::result::Result::Ok(())
  4594. }
  4595. fn get_cached_size(&self) -> u32 {
  4596. self.cached_size.get()
  4597. }
  4598. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4599. &self.unknown_fields
  4600. }
  4601. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4602. &mut self.unknown_fields
  4603. }
  4604. fn as_any(&self) -> &dyn (::std::any::Any) {
  4605. self as &dyn (::std::any::Any)
  4606. }
  4607. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4608. self as &mut dyn (::std::any::Any)
  4609. }
  4610. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4611. self
  4612. }
  4613. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4614. Self::descriptor_static()
  4615. }
  4616. fn new() -> GridId {
  4617. GridId::new()
  4618. }
  4619. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4620. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4621. descriptor.get(|| {
  4622. let mut fields = ::std::vec::Vec::new();
  4623. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4624. "value",
  4625. |m: &GridId| { &m.value },
  4626. |m: &mut GridId| { &mut m.value },
  4627. ));
  4628. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridId>(
  4629. "GridId",
  4630. fields,
  4631. file_descriptor_proto()
  4632. )
  4633. })
  4634. }
  4635. fn default_instance() -> &'static GridId {
  4636. static instance: ::protobuf::rt::LazyV2<GridId> = ::protobuf::rt::LazyV2::INIT;
  4637. instance.get(GridId::new)
  4638. }
  4639. }
  4640. impl ::protobuf::Clear for GridId {
  4641. fn clear(&mut self) {
  4642. self.value.clear();
  4643. self.unknown_fields.clear();
  4644. }
  4645. }
  4646. impl ::std::fmt::Debug for GridId {
  4647. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4648. ::protobuf::text_format::fmt(self, f)
  4649. }
  4650. }
  4651. impl ::protobuf::reflect::ProtobufValue for GridId {
  4652. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4653. ::protobuf::reflect::ReflectValueRef::Message(self)
  4654. }
  4655. }
  4656. #[derive(PartialEq,Clone,Default)]
  4657. pub struct GridBlockId {
  4658. // message fields
  4659. pub value: ::std::string::String,
  4660. // special fields
  4661. pub unknown_fields: ::protobuf::UnknownFields,
  4662. pub cached_size: ::protobuf::CachedSize,
  4663. }
  4664. impl<'a> ::std::default::Default for &'a GridBlockId {
  4665. fn default() -> &'a GridBlockId {
  4666. <GridBlockId as ::protobuf::Message>::default_instance()
  4667. }
  4668. }
  4669. impl GridBlockId {
  4670. pub fn new() -> GridBlockId {
  4671. ::std::default::Default::default()
  4672. }
  4673. // string value = 1;
  4674. pub fn get_value(&self) -> &str {
  4675. &self.value
  4676. }
  4677. pub fn clear_value(&mut self) {
  4678. self.value.clear();
  4679. }
  4680. // Param is passed by value, moved
  4681. pub fn set_value(&mut self, v: ::std::string::String) {
  4682. self.value = v;
  4683. }
  4684. // Mutable pointer to the field.
  4685. // If field is not initialized, it is initialized with default value first.
  4686. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  4687. &mut self.value
  4688. }
  4689. // Take field
  4690. pub fn take_value(&mut self) -> ::std::string::String {
  4691. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  4692. }
  4693. }
  4694. impl ::protobuf::Message for GridBlockId {
  4695. fn is_initialized(&self) -> bool {
  4696. true
  4697. }
  4698. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4699. while !is.eof()? {
  4700. let (field_number, wire_type) = is.read_tag_unpack()?;
  4701. match field_number {
  4702. 1 => {
  4703. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  4704. },
  4705. _ => {
  4706. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4707. },
  4708. };
  4709. }
  4710. ::std::result::Result::Ok(())
  4711. }
  4712. // Compute sizes of nested messages
  4713. #[allow(unused_variables)]
  4714. fn compute_size(&self) -> u32 {
  4715. let mut my_size = 0;
  4716. if !self.value.is_empty() {
  4717. my_size += ::protobuf::rt::string_size(1, &self.value);
  4718. }
  4719. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4720. self.cached_size.set(my_size);
  4721. my_size
  4722. }
  4723. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4724. if !self.value.is_empty() {
  4725. os.write_string(1, &self.value)?;
  4726. }
  4727. os.write_unknown_fields(self.get_unknown_fields())?;
  4728. ::std::result::Result::Ok(())
  4729. }
  4730. fn get_cached_size(&self) -> u32 {
  4731. self.cached_size.get()
  4732. }
  4733. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4734. &self.unknown_fields
  4735. }
  4736. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4737. &mut self.unknown_fields
  4738. }
  4739. fn as_any(&self) -> &dyn (::std::any::Any) {
  4740. self as &dyn (::std::any::Any)
  4741. }
  4742. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4743. self as &mut dyn (::std::any::Any)
  4744. }
  4745. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4746. self
  4747. }
  4748. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4749. Self::descriptor_static()
  4750. }
  4751. fn new() -> GridBlockId {
  4752. GridBlockId::new()
  4753. }
  4754. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4755. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4756. descriptor.get(|| {
  4757. let mut fields = ::std::vec::Vec::new();
  4758. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4759. "value",
  4760. |m: &GridBlockId| { &m.value },
  4761. |m: &mut GridBlockId| { &mut m.value },
  4762. ));
  4763. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockId>(
  4764. "GridBlockId",
  4765. fields,
  4766. file_descriptor_proto()
  4767. )
  4768. })
  4769. }
  4770. fn default_instance() -> &'static GridBlockId {
  4771. static instance: ::protobuf::rt::LazyV2<GridBlockId> = ::protobuf::rt::LazyV2::INIT;
  4772. instance.get(GridBlockId::new)
  4773. }
  4774. }
  4775. impl ::protobuf::Clear for GridBlockId {
  4776. fn clear(&mut self) {
  4777. self.value.clear();
  4778. self.unknown_fields.clear();
  4779. }
  4780. }
  4781. impl ::std::fmt::Debug for GridBlockId {
  4782. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4783. ::protobuf::text_format::fmt(self, f)
  4784. }
  4785. }
  4786. impl ::protobuf::reflect::ProtobufValue for GridBlockId {
  4787. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4788. ::protobuf::reflect::ReflectValueRef::Message(self)
  4789. }
  4790. }
  4791. #[derive(PartialEq,Clone,Default)]
  4792. pub struct CreateRowPayload {
  4793. // message fields
  4794. pub grid_id: ::std::string::String,
  4795. // message oneof groups
  4796. pub one_of_start_row_id: ::std::option::Option<CreateRowPayload_oneof_one_of_start_row_id>,
  4797. // special fields
  4798. pub unknown_fields: ::protobuf::UnknownFields,
  4799. pub cached_size: ::protobuf::CachedSize,
  4800. }
  4801. impl<'a> ::std::default::Default for &'a CreateRowPayload {
  4802. fn default() -> &'a CreateRowPayload {
  4803. <CreateRowPayload as ::protobuf::Message>::default_instance()
  4804. }
  4805. }
  4806. #[derive(Clone,PartialEq,Debug)]
  4807. pub enum CreateRowPayload_oneof_one_of_start_row_id {
  4808. start_row_id(::std::string::String),
  4809. }
  4810. impl CreateRowPayload {
  4811. pub fn new() -> CreateRowPayload {
  4812. ::std::default::Default::default()
  4813. }
  4814. // string grid_id = 1;
  4815. pub fn get_grid_id(&self) -> &str {
  4816. &self.grid_id
  4817. }
  4818. pub fn clear_grid_id(&mut self) {
  4819. self.grid_id.clear();
  4820. }
  4821. // Param is passed by value, moved
  4822. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  4823. self.grid_id = v;
  4824. }
  4825. // Mutable pointer to the field.
  4826. // If field is not initialized, it is initialized with default value first.
  4827. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  4828. &mut self.grid_id
  4829. }
  4830. // Take field
  4831. pub fn take_grid_id(&mut self) -> ::std::string::String {
  4832. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  4833. }
  4834. // string start_row_id = 2;
  4835. pub fn get_start_row_id(&self) -> &str {
  4836. match self.one_of_start_row_id {
  4837. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v)) => v,
  4838. _ => "",
  4839. }
  4840. }
  4841. pub fn clear_start_row_id(&mut self) {
  4842. self.one_of_start_row_id = ::std::option::Option::None;
  4843. }
  4844. pub fn has_start_row_id(&self) -> bool {
  4845. match self.one_of_start_row_id {
  4846. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(..)) => true,
  4847. _ => false,
  4848. }
  4849. }
  4850. // Param is passed by value, moved
  4851. pub fn set_start_row_id(&mut self, v: ::std::string::String) {
  4852. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v))
  4853. }
  4854. // Mutable pointer to the field.
  4855. pub fn mut_start_row_id(&mut self) -> &mut ::std::string::String {
  4856. if let ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(_)) = self.one_of_start_row_id {
  4857. } else {
  4858. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(::std::string::String::new()));
  4859. }
  4860. match self.one_of_start_row_id {
  4861. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref mut v)) => v,
  4862. _ => panic!(),
  4863. }
  4864. }
  4865. // Take field
  4866. pub fn take_start_row_id(&mut self) -> ::std::string::String {
  4867. if self.has_start_row_id() {
  4868. match self.one_of_start_row_id.take() {
  4869. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v)) => v,
  4870. _ => panic!(),
  4871. }
  4872. } else {
  4873. ::std::string::String::new()
  4874. }
  4875. }
  4876. }
  4877. impl ::protobuf::Message for CreateRowPayload {
  4878. fn is_initialized(&self) -> bool {
  4879. true
  4880. }
  4881. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4882. while !is.eof()? {
  4883. let (field_number, wire_type) = is.read_tag_unpack()?;
  4884. match field_number {
  4885. 1 => {
  4886. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4887. },
  4888. 2 => {
  4889. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  4890. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4891. }
  4892. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(is.read_string()?));
  4893. },
  4894. _ => {
  4895. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4896. },
  4897. };
  4898. }
  4899. ::std::result::Result::Ok(())
  4900. }
  4901. // Compute sizes of nested messages
  4902. #[allow(unused_variables)]
  4903. fn compute_size(&self) -> u32 {
  4904. let mut my_size = 0;
  4905. if !self.grid_id.is_empty() {
  4906. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  4907. }
  4908. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  4909. match v {
  4910. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  4911. my_size += ::protobuf::rt::string_size(2, &v);
  4912. },
  4913. };
  4914. }
  4915. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4916. self.cached_size.set(my_size);
  4917. my_size
  4918. }
  4919. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4920. if !self.grid_id.is_empty() {
  4921. os.write_string(1, &self.grid_id)?;
  4922. }
  4923. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  4924. match v {
  4925. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  4926. os.write_string(2, v)?;
  4927. },
  4928. };
  4929. }
  4930. os.write_unknown_fields(self.get_unknown_fields())?;
  4931. ::std::result::Result::Ok(())
  4932. }
  4933. fn get_cached_size(&self) -> u32 {
  4934. self.cached_size.get()
  4935. }
  4936. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4937. &self.unknown_fields
  4938. }
  4939. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4940. &mut self.unknown_fields
  4941. }
  4942. fn as_any(&self) -> &dyn (::std::any::Any) {
  4943. self as &dyn (::std::any::Any)
  4944. }
  4945. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4946. self as &mut dyn (::std::any::Any)
  4947. }
  4948. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4949. self
  4950. }
  4951. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4952. Self::descriptor_static()
  4953. }
  4954. fn new() -> CreateRowPayload {
  4955. CreateRowPayload::new()
  4956. }
  4957. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4958. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4959. descriptor.get(|| {
  4960. let mut fields = ::std::vec::Vec::new();
  4961. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4962. "grid_id",
  4963. |m: &CreateRowPayload| { &m.grid_id },
  4964. |m: &mut CreateRowPayload| { &mut m.grid_id },
  4965. ));
  4966. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  4967. "start_row_id",
  4968. CreateRowPayload::has_start_row_id,
  4969. CreateRowPayload::get_start_row_id,
  4970. ));
  4971. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateRowPayload>(
  4972. "CreateRowPayload",
  4973. fields,
  4974. file_descriptor_proto()
  4975. )
  4976. })
  4977. }
  4978. fn default_instance() -> &'static CreateRowPayload {
  4979. static instance: ::protobuf::rt::LazyV2<CreateRowPayload> = ::protobuf::rt::LazyV2::INIT;
  4980. instance.get(CreateRowPayload::new)
  4981. }
  4982. }
  4983. impl ::protobuf::Clear for CreateRowPayload {
  4984. fn clear(&mut self) {
  4985. self.grid_id.clear();
  4986. self.one_of_start_row_id = ::std::option::Option::None;
  4987. self.unknown_fields.clear();
  4988. }
  4989. }
  4990. impl ::std::fmt::Debug for CreateRowPayload {
  4991. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4992. ::protobuf::text_format::fmt(self, f)
  4993. }
  4994. }
  4995. impl ::protobuf::reflect::ProtobufValue for CreateRowPayload {
  4996. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4997. ::protobuf::reflect::ReflectValueRef::Message(self)
  4998. }
  4999. }
  5000. #[derive(PartialEq,Clone,Default)]
  5001. pub struct InsertFieldPayload {
  5002. // message fields
  5003. pub grid_id: ::std::string::String,
  5004. pub field: ::protobuf::SingularPtrField<Field>,
  5005. pub type_option_data: ::std::vec::Vec<u8>,
  5006. // message oneof groups
  5007. pub one_of_start_field_id: ::std::option::Option<InsertFieldPayload_oneof_one_of_start_field_id>,
  5008. // special fields
  5009. pub unknown_fields: ::protobuf::UnknownFields,
  5010. pub cached_size: ::protobuf::CachedSize,
  5011. }
  5012. impl<'a> ::std::default::Default for &'a InsertFieldPayload {
  5013. fn default() -> &'a InsertFieldPayload {
  5014. <InsertFieldPayload as ::protobuf::Message>::default_instance()
  5015. }
  5016. }
  5017. #[derive(Clone,PartialEq,Debug)]
  5018. pub enum InsertFieldPayload_oneof_one_of_start_field_id {
  5019. start_field_id(::std::string::String),
  5020. }
  5021. impl InsertFieldPayload {
  5022. pub fn new() -> InsertFieldPayload {
  5023. ::std::default::Default::default()
  5024. }
  5025. // string grid_id = 1;
  5026. pub fn get_grid_id(&self) -> &str {
  5027. &self.grid_id
  5028. }
  5029. pub fn clear_grid_id(&mut self) {
  5030. self.grid_id.clear();
  5031. }
  5032. // Param is passed by value, moved
  5033. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5034. self.grid_id = v;
  5035. }
  5036. // Mutable pointer to the field.
  5037. // If field is not initialized, it is initialized with default value first.
  5038. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5039. &mut self.grid_id
  5040. }
  5041. // Take field
  5042. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5043. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5044. }
  5045. // .Field field = 2;
  5046. pub fn get_field(&self) -> &Field {
  5047. self.field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  5048. }
  5049. pub fn clear_field(&mut self) {
  5050. self.field.clear();
  5051. }
  5052. pub fn has_field(&self) -> bool {
  5053. self.field.is_some()
  5054. }
  5055. // Param is passed by value, moved
  5056. pub fn set_field(&mut self, v: Field) {
  5057. self.field = ::protobuf::SingularPtrField::some(v);
  5058. }
  5059. // Mutable pointer to the field.
  5060. // If field is not initialized, it is initialized with default value first.
  5061. pub fn mut_field(&mut self) -> &mut Field {
  5062. if self.field.is_none() {
  5063. self.field.set_default();
  5064. }
  5065. self.field.as_mut().unwrap()
  5066. }
  5067. // Take field
  5068. pub fn take_field(&mut self) -> Field {
  5069. self.field.take().unwrap_or_else(|| Field::new())
  5070. }
  5071. // bytes type_option_data = 3;
  5072. pub fn get_type_option_data(&self) -> &[u8] {
  5073. &self.type_option_data
  5074. }
  5075. pub fn clear_type_option_data(&mut self) {
  5076. self.type_option_data.clear();
  5077. }
  5078. // Param is passed by value, moved
  5079. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  5080. self.type_option_data = v;
  5081. }
  5082. // Mutable pointer to the field.
  5083. // If field is not initialized, it is initialized with default value first.
  5084. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  5085. &mut self.type_option_data
  5086. }
  5087. // Take field
  5088. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  5089. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  5090. }
  5091. // string start_field_id = 4;
  5092. pub fn get_start_field_id(&self) -> &str {
  5093. match self.one_of_start_field_id {
  5094. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v)) => v,
  5095. _ => "",
  5096. }
  5097. }
  5098. pub fn clear_start_field_id(&mut self) {
  5099. self.one_of_start_field_id = ::std::option::Option::None;
  5100. }
  5101. pub fn has_start_field_id(&self) -> bool {
  5102. match self.one_of_start_field_id {
  5103. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(..)) => true,
  5104. _ => false,
  5105. }
  5106. }
  5107. // Param is passed by value, moved
  5108. pub fn set_start_field_id(&mut self, v: ::std::string::String) {
  5109. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(v))
  5110. }
  5111. // Mutable pointer to the field.
  5112. pub fn mut_start_field_id(&mut self) -> &mut ::std::string::String {
  5113. if let ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(_)) = self.one_of_start_field_id {
  5114. } else {
  5115. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(::std::string::String::new()));
  5116. }
  5117. match self.one_of_start_field_id {
  5118. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref mut v)) => v,
  5119. _ => panic!(),
  5120. }
  5121. }
  5122. // Take field
  5123. pub fn take_start_field_id(&mut self) -> ::std::string::String {
  5124. if self.has_start_field_id() {
  5125. match self.one_of_start_field_id.take() {
  5126. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(v)) => v,
  5127. _ => panic!(),
  5128. }
  5129. } else {
  5130. ::std::string::String::new()
  5131. }
  5132. }
  5133. }
  5134. impl ::protobuf::Message for InsertFieldPayload {
  5135. fn is_initialized(&self) -> bool {
  5136. for v in &self.field {
  5137. if !v.is_initialized() {
  5138. return false;
  5139. }
  5140. };
  5141. true
  5142. }
  5143. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5144. while !is.eof()? {
  5145. let (field_number, wire_type) = is.read_tag_unpack()?;
  5146. match field_number {
  5147. 1 => {
  5148. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5149. },
  5150. 2 => {
  5151. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field)?;
  5152. },
  5153. 3 => {
  5154. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  5155. },
  5156. 4 => {
  5157. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  5158. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5159. }
  5160. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(is.read_string()?));
  5161. },
  5162. _ => {
  5163. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5164. },
  5165. };
  5166. }
  5167. ::std::result::Result::Ok(())
  5168. }
  5169. // Compute sizes of nested messages
  5170. #[allow(unused_variables)]
  5171. fn compute_size(&self) -> u32 {
  5172. let mut my_size = 0;
  5173. if !self.grid_id.is_empty() {
  5174. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5175. }
  5176. if let Some(ref v) = self.field.as_ref() {
  5177. let len = v.compute_size();
  5178. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5179. }
  5180. if !self.type_option_data.is_empty() {
  5181. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  5182. }
  5183. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  5184. match v {
  5185. &InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  5186. my_size += ::protobuf::rt::string_size(4, &v);
  5187. },
  5188. };
  5189. }
  5190. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5191. self.cached_size.set(my_size);
  5192. my_size
  5193. }
  5194. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5195. if !self.grid_id.is_empty() {
  5196. os.write_string(1, &self.grid_id)?;
  5197. }
  5198. if let Some(ref v) = self.field.as_ref() {
  5199. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5200. os.write_raw_varint32(v.get_cached_size())?;
  5201. v.write_to_with_cached_sizes(os)?;
  5202. }
  5203. if !self.type_option_data.is_empty() {
  5204. os.write_bytes(3, &self.type_option_data)?;
  5205. }
  5206. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  5207. match v {
  5208. &InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  5209. os.write_string(4, v)?;
  5210. },
  5211. };
  5212. }
  5213. os.write_unknown_fields(self.get_unknown_fields())?;
  5214. ::std::result::Result::Ok(())
  5215. }
  5216. fn get_cached_size(&self) -> u32 {
  5217. self.cached_size.get()
  5218. }
  5219. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5220. &self.unknown_fields
  5221. }
  5222. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5223. &mut self.unknown_fields
  5224. }
  5225. fn as_any(&self) -> &dyn (::std::any::Any) {
  5226. self as &dyn (::std::any::Any)
  5227. }
  5228. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5229. self as &mut dyn (::std::any::Any)
  5230. }
  5231. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5232. self
  5233. }
  5234. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5235. Self::descriptor_static()
  5236. }
  5237. fn new() -> InsertFieldPayload {
  5238. InsertFieldPayload::new()
  5239. }
  5240. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5241. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5242. descriptor.get(|| {
  5243. let mut fields = ::std::vec::Vec::new();
  5244. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5245. "grid_id",
  5246. |m: &InsertFieldPayload| { &m.grid_id },
  5247. |m: &mut InsertFieldPayload| { &mut m.grid_id },
  5248. ));
  5249. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  5250. "field",
  5251. |m: &InsertFieldPayload| { &m.field },
  5252. |m: &mut InsertFieldPayload| { &mut m.field },
  5253. ));
  5254. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  5255. "type_option_data",
  5256. |m: &InsertFieldPayload| { &m.type_option_data },
  5257. |m: &mut InsertFieldPayload| { &mut m.type_option_data },
  5258. ));
  5259. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  5260. "start_field_id",
  5261. InsertFieldPayload::has_start_field_id,
  5262. InsertFieldPayload::get_start_field_id,
  5263. ));
  5264. ::protobuf::reflect::MessageDescriptor::new_pb_name::<InsertFieldPayload>(
  5265. "InsertFieldPayload",
  5266. fields,
  5267. file_descriptor_proto()
  5268. )
  5269. })
  5270. }
  5271. fn default_instance() -> &'static InsertFieldPayload {
  5272. static instance: ::protobuf::rt::LazyV2<InsertFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  5273. instance.get(InsertFieldPayload::new)
  5274. }
  5275. }
  5276. impl ::protobuf::Clear for InsertFieldPayload {
  5277. fn clear(&mut self) {
  5278. self.grid_id.clear();
  5279. self.field.clear();
  5280. self.type_option_data.clear();
  5281. self.one_of_start_field_id = ::std::option::Option::None;
  5282. self.unknown_fields.clear();
  5283. }
  5284. }
  5285. impl ::std::fmt::Debug for InsertFieldPayload {
  5286. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5287. ::protobuf::text_format::fmt(self, f)
  5288. }
  5289. }
  5290. impl ::protobuf::reflect::ProtobufValue for InsertFieldPayload {
  5291. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5292. ::protobuf::reflect::ReflectValueRef::Message(self)
  5293. }
  5294. }
  5295. #[derive(PartialEq,Clone,Default)]
  5296. pub struct UpdateFieldTypeOptionPayload {
  5297. // message fields
  5298. pub grid_id: ::std::string::String,
  5299. pub field_id: ::std::string::String,
  5300. pub type_option_data: ::std::vec::Vec<u8>,
  5301. // special fields
  5302. pub unknown_fields: ::protobuf::UnknownFields,
  5303. pub cached_size: ::protobuf::CachedSize,
  5304. }
  5305. impl<'a> ::std::default::Default for &'a UpdateFieldTypeOptionPayload {
  5306. fn default() -> &'a UpdateFieldTypeOptionPayload {
  5307. <UpdateFieldTypeOptionPayload as ::protobuf::Message>::default_instance()
  5308. }
  5309. }
  5310. impl UpdateFieldTypeOptionPayload {
  5311. pub fn new() -> UpdateFieldTypeOptionPayload {
  5312. ::std::default::Default::default()
  5313. }
  5314. // string grid_id = 1;
  5315. pub fn get_grid_id(&self) -> &str {
  5316. &self.grid_id
  5317. }
  5318. pub fn clear_grid_id(&mut self) {
  5319. self.grid_id.clear();
  5320. }
  5321. // Param is passed by value, moved
  5322. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5323. self.grid_id = v;
  5324. }
  5325. // Mutable pointer to the field.
  5326. // If field is not initialized, it is initialized with default value first.
  5327. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5328. &mut self.grid_id
  5329. }
  5330. // Take field
  5331. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5332. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5333. }
  5334. // string field_id = 2;
  5335. pub fn get_field_id(&self) -> &str {
  5336. &self.field_id
  5337. }
  5338. pub fn clear_field_id(&mut self) {
  5339. self.field_id.clear();
  5340. }
  5341. // Param is passed by value, moved
  5342. pub fn set_field_id(&mut self, v: ::std::string::String) {
  5343. self.field_id = v;
  5344. }
  5345. // Mutable pointer to the field.
  5346. // If field is not initialized, it is initialized with default value first.
  5347. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  5348. &mut self.field_id
  5349. }
  5350. // Take field
  5351. pub fn take_field_id(&mut self) -> ::std::string::String {
  5352. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  5353. }
  5354. // bytes type_option_data = 3;
  5355. pub fn get_type_option_data(&self) -> &[u8] {
  5356. &self.type_option_data
  5357. }
  5358. pub fn clear_type_option_data(&mut self) {
  5359. self.type_option_data.clear();
  5360. }
  5361. // Param is passed by value, moved
  5362. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  5363. self.type_option_data = v;
  5364. }
  5365. // Mutable pointer to the field.
  5366. // If field is not initialized, it is initialized with default value first.
  5367. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  5368. &mut self.type_option_data
  5369. }
  5370. // Take field
  5371. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  5372. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  5373. }
  5374. }
  5375. impl ::protobuf::Message for UpdateFieldTypeOptionPayload {
  5376. fn is_initialized(&self) -> bool {
  5377. true
  5378. }
  5379. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5380. while !is.eof()? {
  5381. let (field_number, wire_type) = is.read_tag_unpack()?;
  5382. match field_number {
  5383. 1 => {
  5384. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5385. },
  5386. 2 => {
  5387. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  5388. },
  5389. 3 => {
  5390. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  5391. },
  5392. _ => {
  5393. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5394. },
  5395. };
  5396. }
  5397. ::std::result::Result::Ok(())
  5398. }
  5399. // Compute sizes of nested messages
  5400. #[allow(unused_variables)]
  5401. fn compute_size(&self) -> u32 {
  5402. let mut my_size = 0;
  5403. if !self.grid_id.is_empty() {
  5404. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5405. }
  5406. if !self.field_id.is_empty() {
  5407. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  5408. }
  5409. if !self.type_option_data.is_empty() {
  5410. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  5411. }
  5412. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5413. self.cached_size.set(my_size);
  5414. my_size
  5415. }
  5416. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5417. if !self.grid_id.is_empty() {
  5418. os.write_string(1, &self.grid_id)?;
  5419. }
  5420. if !self.field_id.is_empty() {
  5421. os.write_string(2, &self.field_id)?;
  5422. }
  5423. if !self.type_option_data.is_empty() {
  5424. os.write_bytes(3, &self.type_option_data)?;
  5425. }
  5426. os.write_unknown_fields(self.get_unknown_fields())?;
  5427. ::std::result::Result::Ok(())
  5428. }
  5429. fn get_cached_size(&self) -> u32 {
  5430. self.cached_size.get()
  5431. }
  5432. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5433. &self.unknown_fields
  5434. }
  5435. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5436. &mut self.unknown_fields
  5437. }
  5438. fn as_any(&self) -> &dyn (::std::any::Any) {
  5439. self as &dyn (::std::any::Any)
  5440. }
  5441. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5442. self as &mut dyn (::std::any::Any)
  5443. }
  5444. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5445. self
  5446. }
  5447. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5448. Self::descriptor_static()
  5449. }
  5450. fn new() -> UpdateFieldTypeOptionPayload {
  5451. UpdateFieldTypeOptionPayload::new()
  5452. }
  5453. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5454. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5455. descriptor.get(|| {
  5456. let mut fields = ::std::vec::Vec::new();
  5457. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5458. "grid_id",
  5459. |m: &UpdateFieldTypeOptionPayload| { &m.grid_id },
  5460. |m: &mut UpdateFieldTypeOptionPayload| { &mut m.grid_id },
  5461. ));
  5462. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5463. "field_id",
  5464. |m: &UpdateFieldTypeOptionPayload| { &m.field_id },
  5465. |m: &mut UpdateFieldTypeOptionPayload| { &mut m.field_id },
  5466. ));
  5467. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  5468. "type_option_data",
  5469. |m: &UpdateFieldTypeOptionPayload| { &m.type_option_data },
  5470. |m: &mut UpdateFieldTypeOptionPayload| { &mut m.type_option_data },
  5471. ));
  5472. ::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateFieldTypeOptionPayload>(
  5473. "UpdateFieldTypeOptionPayload",
  5474. fields,
  5475. file_descriptor_proto()
  5476. )
  5477. })
  5478. }
  5479. fn default_instance() -> &'static UpdateFieldTypeOptionPayload {
  5480. static instance: ::protobuf::rt::LazyV2<UpdateFieldTypeOptionPayload> = ::protobuf::rt::LazyV2::INIT;
  5481. instance.get(UpdateFieldTypeOptionPayload::new)
  5482. }
  5483. }
  5484. impl ::protobuf::Clear for UpdateFieldTypeOptionPayload {
  5485. fn clear(&mut self) {
  5486. self.grid_id.clear();
  5487. self.field_id.clear();
  5488. self.type_option_data.clear();
  5489. self.unknown_fields.clear();
  5490. }
  5491. }
  5492. impl ::std::fmt::Debug for UpdateFieldTypeOptionPayload {
  5493. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5494. ::protobuf::text_format::fmt(self, f)
  5495. }
  5496. }
  5497. impl ::protobuf::reflect::ProtobufValue for UpdateFieldTypeOptionPayload {
  5498. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5499. ::protobuf::reflect::ReflectValueRef::Message(self)
  5500. }
  5501. }
  5502. #[derive(PartialEq,Clone,Default)]
  5503. pub struct QueryFieldPayload {
  5504. // message fields
  5505. pub grid_id: ::std::string::String,
  5506. pub field_orders: ::protobuf::SingularPtrField<RepeatedFieldOrder>,
  5507. // special fields
  5508. pub unknown_fields: ::protobuf::UnknownFields,
  5509. pub cached_size: ::protobuf::CachedSize,
  5510. }
  5511. impl<'a> ::std::default::Default for &'a QueryFieldPayload {
  5512. fn default() -> &'a QueryFieldPayload {
  5513. <QueryFieldPayload as ::protobuf::Message>::default_instance()
  5514. }
  5515. }
  5516. impl QueryFieldPayload {
  5517. pub fn new() -> QueryFieldPayload {
  5518. ::std::default::Default::default()
  5519. }
  5520. // string grid_id = 1;
  5521. pub fn get_grid_id(&self) -> &str {
  5522. &self.grid_id
  5523. }
  5524. pub fn clear_grid_id(&mut self) {
  5525. self.grid_id.clear();
  5526. }
  5527. // Param is passed by value, moved
  5528. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5529. self.grid_id = v;
  5530. }
  5531. // Mutable pointer to the field.
  5532. // If field is not initialized, it is initialized with default value first.
  5533. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5534. &mut self.grid_id
  5535. }
  5536. // Take field
  5537. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5538. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5539. }
  5540. // .RepeatedFieldOrder field_orders = 2;
  5541. pub fn get_field_orders(&self) -> &RepeatedFieldOrder {
  5542. self.field_orders.as_ref().unwrap_or_else(|| <RepeatedFieldOrder as ::protobuf::Message>::default_instance())
  5543. }
  5544. pub fn clear_field_orders(&mut self) {
  5545. self.field_orders.clear();
  5546. }
  5547. pub fn has_field_orders(&self) -> bool {
  5548. self.field_orders.is_some()
  5549. }
  5550. // Param is passed by value, moved
  5551. pub fn set_field_orders(&mut self, v: RepeatedFieldOrder) {
  5552. self.field_orders = ::protobuf::SingularPtrField::some(v);
  5553. }
  5554. // Mutable pointer to the field.
  5555. // If field is not initialized, it is initialized with default value first.
  5556. pub fn mut_field_orders(&mut self) -> &mut RepeatedFieldOrder {
  5557. if self.field_orders.is_none() {
  5558. self.field_orders.set_default();
  5559. }
  5560. self.field_orders.as_mut().unwrap()
  5561. }
  5562. // Take field
  5563. pub fn take_field_orders(&mut self) -> RepeatedFieldOrder {
  5564. self.field_orders.take().unwrap_or_else(|| RepeatedFieldOrder::new())
  5565. }
  5566. }
  5567. impl ::protobuf::Message for QueryFieldPayload {
  5568. fn is_initialized(&self) -> bool {
  5569. for v in &self.field_orders {
  5570. if !v.is_initialized() {
  5571. return false;
  5572. }
  5573. };
  5574. true
  5575. }
  5576. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5577. while !is.eof()? {
  5578. let (field_number, wire_type) = is.read_tag_unpack()?;
  5579. match field_number {
  5580. 1 => {
  5581. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5582. },
  5583. 2 => {
  5584. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_orders)?;
  5585. },
  5586. _ => {
  5587. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5588. },
  5589. };
  5590. }
  5591. ::std::result::Result::Ok(())
  5592. }
  5593. // Compute sizes of nested messages
  5594. #[allow(unused_variables)]
  5595. fn compute_size(&self) -> u32 {
  5596. let mut my_size = 0;
  5597. if !self.grid_id.is_empty() {
  5598. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5599. }
  5600. if let Some(ref v) = self.field_orders.as_ref() {
  5601. let len = v.compute_size();
  5602. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5603. }
  5604. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5605. self.cached_size.set(my_size);
  5606. my_size
  5607. }
  5608. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5609. if !self.grid_id.is_empty() {
  5610. os.write_string(1, &self.grid_id)?;
  5611. }
  5612. if let Some(ref v) = self.field_orders.as_ref() {
  5613. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5614. os.write_raw_varint32(v.get_cached_size())?;
  5615. v.write_to_with_cached_sizes(os)?;
  5616. }
  5617. os.write_unknown_fields(self.get_unknown_fields())?;
  5618. ::std::result::Result::Ok(())
  5619. }
  5620. fn get_cached_size(&self) -> u32 {
  5621. self.cached_size.get()
  5622. }
  5623. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5624. &self.unknown_fields
  5625. }
  5626. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5627. &mut self.unknown_fields
  5628. }
  5629. fn as_any(&self) -> &dyn (::std::any::Any) {
  5630. self as &dyn (::std::any::Any)
  5631. }
  5632. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5633. self as &mut dyn (::std::any::Any)
  5634. }
  5635. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5636. self
  5637. }
  5638. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5639. Self::descriptor_static()
  5640. }
  5641. fn new() -> QueryFieldPayload {
  5642. QueryFieldPayload::new()
  5643. }
  5644. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5645. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5646. descriptor.get(|| {
  5647. let mut fields = ::std::vec::Vec::new();
  5648. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5649. "grid_id",
  5650. |m: &QueryFieldPayload| { &m.grid_id },
  5651. |m: &mut QueryFieldPayload| { &mut m.grid_id },
  5652. ));
  5653. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RepeatedFieldOrder>>(
  5654. "field_orders",
  5655. |m: &QueryFieldPayload| { &m.field_orders },
  5656. |m: &mut QueryFieldPayload| { &mut m.field_orders },
  5657. ));
  5658. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryFieldPayload>(
  5659. "QueryFieldPayload",
  5660. fields,
  5661. file_descriptor_proto()
  5662. )
  5663. })
  5664. }
  5665. fn default_instance() -> &'static QueryFieldPayload {
  5666. static instance: ::protobuf::rt::LazyV2<QueryFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  5667. instance.get(QueryFieldPayload::new)
  5668. }
  5669. }
  5670. impl ::protobuf::Clear for QueryFieldPayload {
  5671. fn clear(&mut self) {
  5672. self.grid_id.clear();
  5673. self.field_orders.clear();
  5674. self.unknown_fields.clear();
  5675. }
  5676. }
  5677. impl ::std::fmt::Debug for QueryFieldPayload {
  5678. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5679. ::protobuf::text_format::fmt(self, f)
  5680. }
  5681. }
  5682. impl ::protobuf::reflect::ProtobufValue for QueryFieldPayload {
  5683. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5684. ::protobuf::reflect::ReflectValueRef::Message(self)
  5685. }
  5686. }
  5687. #[derive(PartialEq,Clone,Default)]
  5688. pub struct QueryGridBlocksPayload {
  5689. // message fields
  5690. pub grid_id: ::std::string::String,
  5691. pub block_orders: ::protobuf::RepeatedField<GridBlockOrder>,
  5692. // special fields
  5693. pub unknown_fields: ::protobuf::UnknownFields,
  5694. pub cached_size: ::protobuf::CachedSize,
  5695. }
  5696. impl<'a> ::std::default::Default for &'a QueryGridBlocksPayload {
  5697. fn default() -> &'a QueryGridBlocksPayload {
  5698. <QueryGridBlocksPayload as ::protobuf::Message>::default_instance()
  5699. }
  5700. }
  5701. impl QueryGridBlocksPayload {
  5702. pub fn new() -> QueryGridBlocksPayload {
  5703. ::std::default::Default::default()
  5704. }
  5705. // string grid_id = 1;
  5706. pub fn get_grid_id(&self) -> &str {
  5707. &self.grid_id
  5708. }
  5709. pub fn clear_grid_id(&mut self) {
  5710. self.grid_id.clear();
  5711. }
  5712. // Param is passed by value, moved
  5713. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5714. self.grid_id = v;
  5715. }
  5716. // Mutable pointer to the field.
  5717. // If field is not initialized, it is initialized with default value first.
  5718. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5719. &mut self.grid_id
  5720. }
  5721. // Take field
  5722. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5723. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5724. }
  5725. // repeated .GridBlockOrder block_orders = 2;
  5726. pub fn get_block_orders(&self) -> &[GridBlockOrder] {
  5727. &self.block_orders
  5728. }
  5729. pub fn clear_block_orders(&mut self) {
  5730. self.block_orders.clear();
  5731. }
  5732. // Param is passed by value, moved
  5733. pub fn set_block_orders(&mut self, v: ::protobuf::RepeatedField<GridBlockOrder>) {
  5734. self.block_orders = v;
  5735. }
  5736. // Mutable pointer to the field.
  5737. pub fn mut_block_orders(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockOrder> {
  5738. &mut self.block_orders
  5739. }
  5740. // Take field
  5741. pub fn take_block_orders(&mut self) -> ::protobuf::RepeatedField<GridBlockOrder> {
  5742. ::std::mem::replace(&mut self.block_orders, ::protobuf::RepeatedField::new())
  5743. }
  5744. }
  5745. impl ::protobuf::Message for QueryGridBlocksPayload {
  5746. fn is_initialized(&self) -> bool {
  5747. for v in &self.block_orders {
  5748. if !v.is_initialized() {
  5749. return false;
  5750. }
  5751. };
  5752. true
  5753. }
  5754. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5755. while !is.eof()? {
  5756. let (field_number, wire_type) = is.read_tag_unpack()?;
  5757. match field_number {
  5758. 1 => {
  5759. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5760. },
  5761. 2 => {
  5762. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_orders)?;
  5763. },
  5764. _ => {
  5765. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5766. },
  5767. };
  5768. }
  5769. ::std::result::Result::Ok(())
  5770. }
  5771. // Compute sizes of nested messages
  5772. #[allow(unused_variables)]
  5773. fn compute_size(&self) -> u32 {
  5774. let mut my_size = 0;
  5775. if !self.grid_id.is_empty() {
  5776. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5777. }
  5778. for value in &self.block_orders {
  5779. let len = value.compute_size();
  5780. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5781. };
  5782. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5783. self.cached_size.set(my_size);
  5784. my_size
  5785. }
  5786. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5787. if !self.grid_id.is_empty() {
  5788. os.write_string(1, &self.grid_id)?;
  5789. }
  5790. for v in &self.block_orders {
  5791. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5792. os.write_raw_varint32(v.get_cached_size())?;
  5793. v.write_to_with_cached_sizes(os)?;
  5794. };
  5795. os.write_unknown_fields(self.get_unknown_fields())?;
  5796. ::std::result::Result::Ok(())
  5797. }
  5798. fn get_cached_size(&self) -> u32 {
  5799. self.cached_size.get()
  5800. }
  5801. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5802. &self.unknown_fields
  5803. }
  5804. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5805. &mut self.unknown_fields
  5806. }
  5807. fn as_any(&self) -> &dyn (::std::any::Any) {
  5808. self as &dyn (::std::any::Any)
  5809. }
  5810. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5811. self as &mut dyn (::std::any::Any)
  5812. }
  5813. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5814. self
  5815. }
  5816. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5817. Self::descriptor_static()
  5818. }
  5819. fn new() -> QueryGridBlocksPayload {
  5820. QueryGridBlocksPayload::new()
  5821. }
  5822. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5823. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5824. descriptor.get(|| {
  5825. let mut fields = ::std::vec::Vec::new();
  5826. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5827. "grid_id",
  5828. |m: &QueryGridBlocksPayload| { &m.grid_id },
  5829. |m: &mut QueryGridBlocksPayload| { &mut m.grid_id },
  5830. ));
  5831. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockOrder>>(
  5832. "block_orders",
  5833. |m: &QueryGridBlocksPayload| { &m.block_orders },
  5834. |m: &mut QueryGridBlocksPayload| { &mut m.block_orders },
  5835. ));
  5836. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryGridBlocksPayload>(
  5837. "QueryGridBlocksPayload",
  5838. fields,
  5839. file_descriptor_proto()
  5840. )
  5841. })
  5842. }
  5843. fn default_instance() -> &'static QueryGridBlocksPayload {
  5844. static instance: ::protobuf::rt::LazyV2<QueryGridBlocksPayload> = ::protobuf::rt::LazyV2::INIT;
  5845. instance.get(QueryGridBlocksPayload::new)
  5846. }
  5847. }
  5848. impl ::protobuf::Clear for QueryGridBlocksPayload {
  5849. fn clear(&mut self) {
  5850. self.grid_id.clear();
  5851. self.block_orders.clear();
  5852. self.unknown_fields.clear();
  5853. }
  5854. }
  5855. impl ::std::fmt::Debug for QueryGridBlocksPayload {
  5856. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5857. ::protobuf::text_format::fmt(self, f)
  5858. }
  5859. }
  5860. impl ::protobuf::reflect::ProtobufValue for QueryGridBlocksPayload {
  5861. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5862. ::protobuf::reflect::ReflectValueRef::Message(self)
  5863. }
  5864. }
  5865. #[derive(PartialEq,Clone,Default)]
  5866. pub struct FieldChangesetPayload {
  5867. // message fields
  5868. pub field_id: ::std::string::String,
  5869. pub grid_id: ::std::string::String,
  5870. // message oneof groups
  5871. pub one_of_name: ::std::option::Option<FieldChangesetPayload_oneof_one_of_name>,
  5872. pub one_of_desc: ::std::option::Option<FieldChangesetPayload_oneof_one_of_desc>,
  5873. pub one_of_field_type: ::std::option::Option<FieldChangesetPayload_oneof_one_of_field_type>,
  5874. pub one_of_frozen: ::std::option::Option<FieldChangesetPayload_oneof_one_of_frozen>,
  5875. pub one_of_visibility: ::std::option::Option<FieldChangesetPayload_oneof_one_of_visibility>,
  5876. pub one_of_width: ::std::option::Option<FieldChangesetPayload_oneof_one_of_width>,
  5877. pub one_of_type_option_data: ::std::option::Option<FieldChangesetPayload_oneof_one_of_type_option_data>,
  5878. // special fields
  5879. pub unknown_fields: ::protobuf::UnknownFields,
  5880. pub cached_size: ::protobuf::CachedSize,
  5881. }
  5882. impl<'a> ::std::default::Default for &'a FieldChangesetPayload {
  5883. fn default() -> &'a FieldChangesetPayload {
  5884. <FieldChangesetPayload as ::protobuf::Message>::default_instance()
  5885. }
  5886. }
  5887. #[derive(Clone,PartialEq,Debug)]
  5888. pub enum FieldChangesetPayload_oneof_one_of_name {
  5889. name(::std::string::String),
  5890. }
  5891. #[derive(Clone,PartialEq,Debug)]
  5892. pub enum FieldChangesetPayload_oneof_one_of_desc {
  5893. desc(::std::string::String),
  5894. }
  5895. #[derive(Clone,PartialEq,Debug)]
  5896. pub enum FieldChangesetPayload_oneof_one_of_field_type {
  5897. field_type(FieldType),
  5898. }
  5899. #[derive(Clone,PartialEq,Debug)]
  5900. pub enum FieldChangesetPayload_oneof_one_of_frozen {
  5901. frozen(bool),
  5902. }
  5903. #[derive(Clone,PartialEq,Debug)]
  5904. pub enum FieldChangesetPayload_oneof_one_of_visibility {
  5905. visibility(bool),
  5906. }
  5907. #[derive(Clone,PartialEq,Debug)]
  5908. pub enum FieldChangesetPayload_oneof_one_of_width {
  5909. width(i32),
  5910. }
  5911. #[derive(Clone,PartialEq,Debug)]
  5912. pub enum FieldChangesetPayload_oneof_one_of_type_option_data {
  5913. type_option_data(::std::vec::Vec<u8>),
  5914. }
  5915. impl FieldChangesetPayload {
  5916. pub fn new() -> FieldChangesetPayload {
  5917. ::std::default::Default::default()
  5918. }
  5919. // string field_id = 1;
  5920. pub fn get_field_id(&self) -> &str {
  5921. &self.field_id
  5922. }
  5923. pub fn clear_field_id(&mut self) {
  5924. self.field_id.clear();
  5925. }
  5926. // Param is passed by value, moved
  5927. pub fn set_field_id(&mut self, v: ::std::string::String) {
  5928. self.field_id = v;
  5929. }
  5930. // Mutable pointer to the field.
  5931. // If field is not initialized, it is initialized with default value first.
  5932. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  5933. &mut self.field_id
  5934. }
  5935. // Take field
  5936. pub fn take_field_id(&mut self) -> ::std::string::String {
  5937. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  5938. }
  5939. // string grid_id = 2;
  5940. pub fn get_grid_id(&self) -> &str {
  5941. &self.grid_id
  5942. }
  5943. pub fn clear_grid_id(&mut self) {
  5944. self.grid_id.clear();
  5945. }
  5946. // Param is passed by value, moved
  5947. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5948. self.grid_id = v;
  5949. }
  5950. // Mutable pointer to the field.
  5951. // If field is not initialized, it is initialized with default value first.
  5952. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5953. &mut self.grid_id
  5954. }
  5955. // Take field
  5956. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5957. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5958. }
  5959. // string name = 3;
  5960. pub fn get_name(&self) -> &str {
  5961. match self.one_of_name {
  5962. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(ref v)) => v,
  5963. _ => "",
  5964. }
  5965. }
  5966. pub fn clear_name(&mut self) {
  5967. self.one_of_name = ::std::option::Option::None;
  5968. }
  5969. pub fn has_name(&self) -> bool {
  5970. match self.one_of_name {
  5971. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(..)) => true,
  5972. _ => false,
  5973. }
  5974. }
  5975. // Param is passed by value, moved
  5976. pub fn set_name(&mut self, v: ::std::string::String) {
  5977. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(v))
  5978. }
  5979. // Mutable pointer to the field.
  5980. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  5981. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(_)) = self.one_of_name {
  5982. } else {
  5983. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(::std::string::String::new()));
  5984. }
  5985. match self.one_of_name {
  5986. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(ref mut v)) => v,
  5987. _ => panic!(),
  5988. }
  5989. }
  5990. // Take field
  5991. pub fn take_name(&mut self) -> ::std::string::String {
  5992. if self.has_name() {
  5993. match self.one_of_name.take() {
  5994. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(v)) => v,
  5995. _ => panic!(),
  5996. }
  5997. } else {
  5998. ::std::string::String::new()
  5999. }
  6000. }
  6001. // string desc = 4;
  6002. pub fn get_desc(&self) -> &str {
  6003. match self.one_of_desc {
  6004. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(ref v)) => v,
  6005. _ => "",
  6006. }
  6007. }
  6008. pub fn clear_desc(&mut self) {
  6009. self.one_of_desc = ::std::option::Option::None;
  6010. }
  6011. pub fn has_desc(&self) -> bool {
  6012. match self.one_of_desc {
  6013. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(..)) => true,
  6014. _ => false,
  6015. }
  6016. }
  6017. // Param is passed by value, moved
  6018. pub fn set_desc(&mut self, v: ::std::string::String) {
  6019. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(v))
  6020. }
  6021. // Mutable pointer to the field.
  6022. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  6023. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(_)) = self.one_of_desc {
  6024. } else {
  6025. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(::std::string::String::new()));
  6026. }
  6027. match self.one_of_desc {
  6028. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(ref mut v)) => v,
  6029. _ => panic!(),
  6030. }
  6031. }
  6032. // Take field
  6033. pub fn take_desc(&mut self) -> ::std::string::String {
  6034. if self.has_desc() {
  6035. match self.one_of_desc.take() {
  6036. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(v)) => v,
  6037. _ => panic!(),
  6038. }
  6039. } else {
  6040. ::std::string::String::new()
  6041. }
  6042. }
  6043. // .FieldType field_type = 5;
  6044. pub fn get_field_type(&self) -> FieldType {
  6045. match self.one_of_field_type {
  6046. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(v)) => v,
  6047. _ => FieldType::RichText,
  6048. }
  6049. }
  6050. pub fn clear_field_type(&mut self) {
  6051. self.one_of_field_type = ::std::option::Option::None;
  6052. }
  6053. pub fn has_field_type(&self) -> bool {
  6054. match self.one_of_field_type {
  6055. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(..)) => true,
  6056. _ => false,
  6057. }
  6058. }
  6059. // Param is passed by value, moved
  6060. pub fn set_field_type(&mut self, v: FieldType) {
  6061. self.one_of_field_type = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(v))
  6062. }
  6063. // bool frozen = 6;
  6064. pub fn get_frozen(&self) -> bool {
  6065. match self.one_of_frozen {
  6066. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(v)) => v,
  6067. _ => false,
  6068. }
  6069. }
  6070. pub fn clear_frozen(&mut self) {
  6071. self.one_of_frozen = ::std::option::Option::None;
  6072. }
  6073. pub fn has_frozen(&self) -> bool {
  6074. match self.one_of_frozen {
  6075. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(..)) => true,
  6076. _ => false,
  6077. }
  6078. }
  6079. // Param is passed by value, moved
  6080. pub fn set_frozen(&mut self, v: bool) {
  6081. self.one_of_frozen = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(v))
  6082. }
  6083. // bool visibility = 7;
  6084. pub fn get_visibility(&self) -> bool {
  6085. match self.one_of_visibility {
  6086. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(v)) => v,
  6087. _ => false,
  6088. }
  6089. }
  6090. pub fn clear_visibility(&mut self) {
  6091. self.one_of_visibility = ::std::option::Option::None;
  6092. }
  6093. pub fn has_visibility(&self) -> bool {
  6094. match self.one_of_visibility {
  6095. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(..)) => true,
  6096. _ => false,
  6097. }
  6098. }
  6099. // Param is passed by value, moved
  6100. pub fn set_visibility(&mut self, v: bool) {
  6101. self.one_of_visibility = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(v))
  6102. }
  6103. // int32 width = 8;
  6104. pub fn get_width(&self) -> i32 {
  6105. match self.one_of_width {
  6106. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(v)) => v,
  6107. _ => 0,
  6108. }
  6109. }
  6110. pub fn clear_width(&mut self) {
  6111. self.one_of_width = ::std::option::Option::None;
  6112. }
  6113. pub fn has_width(&self) -> bool {
  6114. match self.one_of_width {
  6115. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(..)) => true,
  6116. _ => false,
  6117. }
  6118. }
  6119. // Param is passed by value, moved
  6120. pub fn set_width(&mut self, v: i32) {
  6121. self.one_of_width = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(v))
  6122. }
  6123. // bytes type_option_data = 9;
  6124. pub fn get_type_option_data(&self) -> &[u8] {
  6125. match self.one_of_type_option_data {
  6126. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v)) => v,
  6127. _ => &[],
  6128. }
  6129. }
  6130. pub fn clear_type_option_data(&mut self) {
  6131. self.one_of_type_option_data = ::std::option::Option::None;
  6132. }
  6133. pub fn has_type_option_data(&self) -> bool {
  6134. match self.one_of_type_option_data {
  6135. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(..)) => true,
  6136. _ => false,
  6137. }
  6138. }
  6139. // Param is passed by value, moved
  6140. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  6141. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(v))
  6142. }
  6143. // Mutable pointer to the field.
  6144. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  6145. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(_)) = self.one_of_type_option_data {
  6146. } else {
  6147. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(::std::vec::Vec::new()));
  6148. }
  6149. match self.one_of_type_option_data {
  6150. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref mut v)) => v,
  6151. _ => panic!(),
  6152. }
  6153. }
  6154. // Take field
  6155. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  6156. if self.has_type_option_data() {
  6157. match self.one_of_type_option_data.take() {
  6158. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(v)) => v,
  6159. _ => panic!(),
  6160. }
  6161. } else {
  6162. ::std::vec::Vec::new()
  6163. }
  6164. }
  6165. }
  6166. impl ::protobuf::Message for FieldChangesetPayload {
  6167. fn is_initialized(&self) -> bool {
  6168. true
  6169. }
  6170. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6171. while !is.eof()? {
  6172. let (field_number, wire_type) = is.read_tag_unpack()?;
  6173. match field_number {
  6174. 1 => {
  6175. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  6176. },
  6177. 2 => {
  6178. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  6179. },
  6180. 3 => {
  6181. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  6182. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6183. }
  6184. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(is.read_string()?));
  6185. },
  6186. 4 => {
  6187. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  6188. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6189. }
  6190. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(is.read_string()?));
  6191. },
  6192. 5 => {
  6193. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6194. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6195. }
  6196. self.one_of_field_type = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(is.read_enum()?));
  6197. },
  6198. 6 => {
  6199. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6200. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6201. }
  6202. self.one_of_frozen = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(is.read_bool()?));
  6203. },
  6204. 7 => {
  6205. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6206. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6207. }
  6208. self.one_of_visibility = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(is.read_bool()?));
  6209. },
  6210. 8 => {
  6211. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6212. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6213. }
  6214. self.one_of_width = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(is.read_int32()?));
  6215. },
  6216. 9 => {
  6217. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  6218. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6219. }
  6220. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(is.read_bytes()?));
  6221. },
  6222. _ => {
  6223. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  6224. },
  6225. };
  6226. }
  6227. ::std::result::Result::Ok(())
  6228. }
  6229. // Compute sizes of nested messages
  6230. #[allow(unused_variables)]
  6231. fn compute_size(&self) -> u32 {
  6232. let mut my_size = 0;
  6233. if !self.field_id.is_empty() {
  6234. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  6235. }
  6236. if !self.grid_id.is_empty() {
  6237. my_size += ::protobuf::rt::string_size(2, &self.grid_id);
  6238. }
  6239. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  6240. match v {
  6241. &FieldChangesetPayload_oneof_one_of_name::name(ref v) => {
  6242. my_size += ::protobuf::rt::string_size(3, &v);
  6243. },
  6244. };
  6245. }
  6246. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  6247. match v {
  6248. &FieldChangesetPayload_oneof_one_of_desc::desc(ref v) => {
  6249. my_size += ::protobuf::rt::string_size(4, &v);
  6250. },
  6251. };
  6252. }
  6253. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  6254. match v {
  6255. &FieldChangesetPayload_oneof_one_of_field_type::field_type(v) => {
  6256. my_size += ::protobuf::rt::enum_size(5, v);
  6257. },
  6258. };
  6259. }
  6260. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  6261. match v {
  6262. &FieldChangesetPayload_oneof_one_of_frozen::frozen(v) => {
  6263. my_size += 2;
  6264. },
  6265. };
  6266. }
  6267. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  6268. match v {
  6269. &FieldChangesetPayload_oneof_one_of_visibility::visibility(v) => {
  6270. my_size += 2;
  6271. },
  6272. };
  6273. }
  6274. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  6275. match v {
  6276. &FieldChangesetPayload_oneof_one_of_width::width(v) => {
  6277. my_size += ::protobuf::rt::value_size(8, v, ::protobuf::wire_format::WireTypeVarint);
  6278. },
  6279. };
  6280. }
  6281. if let ::std::option::Option::Some(ref v) = self.one_of_type_option_data {
  6282. match v {
  6283. &FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v) => {
  6284. my_size += ::protobuf::rt::bytes_size(9, &v);
  6285. },
  6286. };
  6287. }
  6288. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  6289. self.cached_size.set(my_size);
  6290. my_size
  6291. }
  6292. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6293. if !self.field_id.is_empty() {
  6294. os.write_string(1, &self.field_id)?;
  6295. }
  6296. if !self.grid_id.is_empty() {
  6297. os.write_string(2, &self.grid_id)?;
  6298. }
  6299. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  6300. match v {
  6301. &FieldChangesetPayload_oneof_one_of_name::name(ref v) => {
  6302. os.write_string(3, v)?;
  6303. },
  6304. };
  6305. }
  6306. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  6307. match v {
  6308. &FieldChangesetPayload_oneof_one_of_desc::desc(ref v) => {
  6309. os.write_string(4, v)?;
  6310. },
  6311. };
  6312. }
  6313. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  6314. match v {
  6315. &FieldChangesetPayload_oneof_one_of_field_type::field_type(v) => {
  6316. os.write_enum(5, ::protobuf::ProtobufEnum::value(&v))?;
  6317. },
  6318. };
  6319. }
  6320. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  6321. match v {
  6322. &FieldChangesetPayload_oneof_one_of_frozen::frozen(v) => {
  6323. os.write_bool(6, v)?;
  6324. },
  6325. };
  6326. }
  6327. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  6328. match v {
  6329. &FieldChangesetPayload_oneof_one_of_visibility::visibility(v) => {
  6330. os.write_bool(7, v)?;
  6331. },
  6332. };
  6333. }
  6334. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  6335. match v {
  6336. &FieldChangesetPayload_oneof_one_of_width::width(v) => {
  6337. os.write_int32(8, v)?;
  6338. },
  6339. };
  6340. }
  6341. if let ::std::option::Option::Some(ref v) = self.one_of_type_option_data {
  6342. match v {
  6343. &FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v) => {
  6344. os.write_bytes(9, v)?;
  6345. },
  6346. };
  6347. }
  6348. os.write_unknown_fields(self.get_unknown_fields())?;
  6349. ::std::result::Result::Ok(())
  6350. }
  6351. fn get_cached_size(&self) -> u32 {
  6352. self.cached_size.get()
  6353. }
  6354. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  6355. &self.unknown_fields
  6356. }
  6357. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  6358. &mut self.unknown_fields
  6359. }
  6360. fn as_any(&self) -> &dyn (::std::any::Any) {
  6361. self as &dyn (::std::any::Any)
  6362. }
  6363. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  6364. self as &mut dyn (::std::any::Any)
  6365. }
  6366. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  6367. self
  6368. }
  6369. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  6370. Self::descriptor_static()
  6371. }
  6372. fn new() -> FieldChangesetPayload {
  6373. FieldChangesetPayload::new()
  6374. }
  6375. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  6376. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6377. descriptor.get(|| {
  6378. let mut fields = ::std::vec::Vec::new();
  6379. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6380. "field_id",
  6381. |m: &FieldChangesetPayload| { &m.field_id },
  6382. |m: &mut FieldChangesetPayload| { &mut m.field_id },
  6383. ));
  6384. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6385. "grid_id",
  6386. |m: &FieldChangesetPayload| { &m.grid_id },
  6387. |m: &mut FieldChangesetPayload| { &mut m.grid_id },
  6388. ));
  6389. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6390. "name",
  6391. FieldChangesetPayload::has_name,
  6392. FieldChangesetPayload::get_name,
  6393. ));
  6394. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6395. "desc",
  6396. FieldChangesetPayload::has_desc,
  6397. FieldChangesetPayload::get_desc,
  6398. ));
  6399. fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor::<_, FieldType>(
  6400. "field_type",
  6401. FieldChangesetPayload::has_field_type,
  6402. FieldChangesetPayload::get_field_type,
  6403. ));
  6404. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  6405. "frozen",
  6406. FieldChangesetPayload::has_frozen,
  6407. FieldChangesetPayload::get_frozen,
  6408. ));
  6409. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  6410. "visibility",
  6411. FieldChangesetPayload::has_visibility,
  6412. FieldChangesetPayload::get_visibility,
  6413. ));
  6414. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  6415. "width",
  6416. FieldChangesetPayload::has_width,
  6417. FieldChangesetPayload::get_width,
  6418. ));
  6419. fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
  6420. "type_option_data",
  6421. FieldChangesetPayload::has_type_option_data,
  6422. FieldChangesetPayload::get_type_option_data,
  6423. ));
  6424. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldChangesetPayload>(
  6425. "FieldChangesetPayload",
  6426. fields,
  6427. file_descriptor_proto()
  6428. )
  6429. })
  6430. }
  6431. fn default_instance() -> &'static FieldChangesetPayload {
  6432. static instance: ::protobuf::rt::LazyV2<FieldChangesetPayload> = ::protobuf::rt::LazyV2::INIT;
  6433. instance.get(FieldChangesetPayload::new)
  6434. }
  6435. }
  6436. impl ::protobuf::Clear for FieldChangesetPayload {
  6437. fn clear(&mut self) {
  6438. self.field_id.clear();
  6439. self.grid_id.clear();
  6440. self.one_of_name = ::std::option::Option::None;
  6441. self.one_of_desc = ::std::option::Option::None;
  6442. self.one_of_field_type = ::std::option::Option::None;
  6443. self.one_of_frozen = ::std::option::Option::None;
  6444. self.one_of_visibility = ::std::option::Option::None;
  6445. self.one_of_width = ::std::option::Option::None;
  6446. self.one_of_type_option_data = ::std::option::Option::None;
  6447. self.unknown_fields.clear();
  6448. }
  6449. }
  6450. impl ::std::fmt::Debug for FieldChangesetPayload {
  6451. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6452. ::protobuf::text_format::fmt(self, f)
  6453. }
  6454. }
  6455. impl ::protobuf::reflect::ProtobufValue for FieldChangesetPayload {
  6456. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6457. ::protobuf::reflect::ReflectValueRef::Message(self)
  6458. }
  6459. }
  6460. #[derive(PartialEq,Clone,Default)]
  6461. pub struct MoveItemPayload {
  6462. // message fields
  6463. pub grid_id: ::std::string::String,
  6464. pub item_id: ::std::string::String,
  6465. pub from_index: i32,
  6466. pub to_index: i32,
  6467. pub ty: MoveItemType,
  6468. // special fields
  6469. pub unknown_fields: ::protobuf::UnknownFields,
  6470. pub cached_size: ::protobuf::CachedSize,
  6471. }
  6472. impl<'a> ::std::default::Default for &'a MoveItemPayload {
  6473. fn default() -> &'a MoveItemPayload {
  6474. <MoveItemPayload as ::protobuf::Message>::default_instance()
  6475. }
  6476. }
  6477. impl MoveItemPayload {
  6478. pub fn new() -> MoveItemPayload {
  6479. ::std::default::Default::default()
  6480. }
  6481. // string grid_id = 1;
  6482. pub fn get_grid_id(&self) -> &str {
  6483. &self.grid_id
  6484. }
  6485. pub fn clear_grid_id(&mut self) {
  6486. self.grid_id.clear();
  6487. }
  6488. // Param is passed by value, moved
  6489. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  6490. self.grid_id = v;
  6491. }
  6492. // Mutable pointer to the field.
  6493. // If field is not initialized, it is initialized with default value first.
  6494. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  6495. &mut self.grid_id
  6496. }
  6497. // Take field
  6498. pub fn take_grid_id(&mut self) -> ::std::string::String {
  6499. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  6500. }
  6501. // string item_id = 2;
  6502. pub fn get_item_id(&self) -> &str {
  6503. &self.item_id
  6504. }
  6505. pub fn clear_item_id(&mut self) {
  6506. self.item_id.clear();
  6507. }
  6508. // Param is passed by value, moved
  6509. pub fn set_item_id(&mut self, v: ::std::string::String) {
  6510. self.item_id = v;
  6511. }
  6512. // Mutable pointer to the field.
  6513. // If field is not initialized, it is initialized with default value first.
  6514. pub fn mut_item_id(&mut self) -> &mut ::std::string::String {
  6515. &mut self.item_id
  6516. }
  6517. // Take field
  6518. pub fn take_item_id(&mut self) -> ::std::string::String {
  6519. ::std::mem::replace(&mut self.item_id, ::std::string::String::new())
  6520. }
  6521. // int32 from_index = 3;
  6522. pub fn get_from_index(&self) -> i32 {
  6523. self.from_index
  6524. }
  6525. pub fn clear_from_index(&mut self) {
  6526. self.from_index = 0;
  6527. }
  6528. // Param is passed by value, moved
  6529. pub fn set_from_index(&mut self, v: i32) {
  6530. self.from_index = v;
  6531. }
  6532. // int32 to_index = 4;
  6533. pub fn get_to_index(&self) -> i32 {
  6534. self.to_index
  6535. }
  6536. pub fn clear_to_index(&mut self) {
  6537. self.to_index = 0;
  6538. }
  6539. // Param is passed by value, moved
  6540. pub fn set_to_index(&mut self, v: i32) {
  6541. self.to_index = v;
  6542. }
  6543. // .MoveItemType ty = 5;
  6544. pub fn get_ty(&self) -> MoveItemType {
  6545. self.ty
  6546. }
  6547. pub fn clear_ty(&mut self) {
  6548. self.ty = MoveItemType::MoveField;
  6549. }
  6550. // Param is passed by value, moved
  6551. pub fn set_ty(&mut self, v: MoveItemType) {
  6552. self.ty = v;
  6553. }
  6554. }
  6555. impl ::protobuf::Message for MoveItemPayload {
  6556. fn is_initialized(&self) -> bool {
  6557. true
  6558. }
  6559. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6560. while !is.eof()? {
  6561. let (field_number, wire_type) = is.read_tag_unpack()?;
  6562. match field_number {
  6563. 1 => {
  6564. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  6565. },
  6566. 2 => {
  6567. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.item_id)?;
  6568. },
  6569. 3 => {
  6570. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6571. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6572. }
  6573. let tmp = is.read_int32()?;
  6574. self.from_index = tmp;
  6575. },
  6576. 4 => {
  6577. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6578. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6579. }
  6580. let tmp = is.read_int32()?;
  6581. self.to_index = tmp;
  6582. },
  6583. 5 => {
  6584. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.ty, 5, &mut self.unknown_fields)?
  6585. },
  6586. _ => {
  6587. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  6588. },
  6589. };
  6590. }
  6591. ::std::result::Result::Ok(())
  6592. }
  6593. // Compute sizes of nested messages
  6594. #[allow(unused_variables)]
  6595. fn compute_size(&self) -> u32 {
  6596. let mut my_size = 0;
  6597. if !self.grid_id.is_empty() {
  6598. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  6599. }
  6600. if !self.item_id.is_empty() {
  6601. my_size += ::protobuf::rt::string_size(2, &self.item_id);
  6602. }
  6603. if self.from_index != 0 {
  6604. my_size += ::protobuf::rt::value_size(3, self.from_index, ::protobuf::wire_format::WireTypeVarint);
  6605. }
  6606. if self.to_index != 0 {
  6607. my_size += ::protobuf::rt::value_size(4, self.to_index, ::protobuf::wire_format::WireTypeVarint);
  6608. }
  6609. if self.ty != MoveItemType::MoveField {
  6610. my_size += ::protobuf::rt::enum_size(5, self.ty);
  6611. }
  6612. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  6613. self.cached_size.set(my_size);
  6614. my_size
  6615. }
  6616. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6617. if !self.grid_id.is_empty() {
  6618. os.write_string(1, &self.grid_id)?;
  6619. }
  6620. if !self.item_id.is_empty() {
  6621. os.write_string(2, &self.item_id)?;
  6622. }
  6623. if self.from_index != 0 {
  6624. os.write_int32(3, self.from_index)?;
  6625. }
  6626. if self.to_index != 0 {
  6627. os.write_int32(4, self.to_index)?;
  6628. }
  6629. if self.ty != MoveItemType::MoveField {
  6630. os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.ty))?;
  6631. }
  6632. os.write_unknown_fields(self.get_unknown_fields())?;
  6633. ::std::result::Result::Ok(())
  6634. }
  6635. fn get_cached_size(&self) -> u32 {
  6636. self.cached_size.get()
  6637. }
  6638. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  6639. &self.unknown_fields
  6640. }
  6641. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  6642. &mut self.unknown_fields
  6643. }
  6644. fn as_any(&self) -> &dyn (::std::any::Any) {
  6645. self as &dyn (::std::any::Any)
  6646. }
  6647. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  6648. self as &mut dyn (::std::any::Any)
  6649. }
  6650. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  6651. self
  6652. }
  6653. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  6654. Self::descriptor_static()
  6655. }
  6656. fn new() -> MoveItemPayload {
  6657. MoveItemPayload::new()
  6658. }
  6659. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  6660. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6661. descriptor.get(|| {
  6662. let mut fields = ::std::vec::Vec::new();
  6663. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6664. "grid_id",
  6665. |m: &MoveItemPayload| { &m.grid_id },
  6666. |m: &mut MoveItemPayload| { &mut m.grid_id },
  6667. ));
  6668. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6669. "item_id",
  6670. |m: &MoveItemPayload| { &m.item_id },
  6671. |m: &mut MoveItemPayload| { &mut m.item_id },
  6672. ));
  6673. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  6674. "from_index",
  6675. |m: &MoveItemPayload| { &m.from_index },
  6676. |m: &mut MoveItemPayload| { &mut m.from_index },
  6677. ));
  6678. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  6679. "to_index",
  6680. |m: &MoveItemPayload| { &m.to_index },
  6681. |m: &mut MoveItemPayload| { &mut m.to_index },
  6682. ));
  6683. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MoveItemType>>(
  6684. "ty",
  6685. |m: &MoveItemPayload| { &m.ty },
  6686. |m: &mut MoveItemPayload| { &mut m.ty },
  6687. ));
  6688. ::protobuf::reflect::MessageDescriptor::new_pb_name::<MoveItemPayload>(
  6689. "MoveItemPayload",
  6690. fields,
  6691. file_descriptor_proto()
  6692. )
  6693. })
  6694. }
  6695. fn default_instance() -> &'static MoveItemPayload {
  6696. static instance: ::protobuf::rt::LazyV2<MoveItemPayload> = ::protobuf::rt::LazyV2::INIT;
  6697. instance.get(MoveItemPayload::new)
  6698. }
  6699. }
  6700. impl ::protobuf::Clear for MoveItemPayload {
  6701. fn clear(&mut self) {
  6702. self.grid_id.clear();
  6703. self.item_id.clear();
  6704. self.from_index = 0;
  6705. self.to_index = 0;
  6706. self.ty = MoveItemType::MoveField;
  6707. self.unknown_fields.clear();
  6708. }
  6709. }
  6710. impl ::std::fmt::Debug for MoveItemPayload {
  6711. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6712. ::protobuf::text_format::fmt(self, f)
  6713. }
  6714. }
  6715. impl ::protobuf::reflect::ProtobufValue for MoveItemPayload {
  6716. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6717. ::protobuf::reflect::ReflectValueRef::Message(self)
  6718. }
  6719. }
  6720. #[derive(PartialEq,Clone,Default)]
  6721. pub struct CellChangeset {
  6722. // message fields
  6723. pub grid_id: ::std::string::String,
  6724. pub row_id: ::std::string::String,
  6725. pub field_id: ::std::string::String,
  6726. // message oneof groups
  6727. pub one_of_cell_content_changeset: ::std::option::Option<CellChangeset_oneof_one_of_cell_content_changeset>,
  6728. // special fields
  6729. pub unknown_fields: ::protobuf::UnknownFields,
  6730. pub cached_size: ::protobuf::CachedSize,
  6731. }
  6732. impl<'a> ::std::default::Default for &'a CellChangeset {
  6733. fn default() -> &'a CellChangeset {
  6734. <CellChangeset as ::protobuf::Message>::default_instance()
  6735. }
  6736. }
  6737. #[derive(Clone,PartialEq,Debug)]
  6738. pub enum CellChangeset_oneof_one_of_cell_content_changeset {
  6739. cell_content_changeset(::std::string::String),
  6740. }
  6741. impl CellChangeset {
  6742. pub fn new() -> CellChangeset {
  6743. ::std::default::Default::default()
  6744. }
  6745. // string grid_id = 1;
  6746. pub fn get_grid_id(&self) -> &str {
  6747. &self.grid_id
  6748. }
  6749. pub fn clear_grid_id(&mut self) {
  6750. self.grid_id.clear();
  6751. }
  6752. // Param is passed by value, moved
  6753. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  6754. self.grid_id = v;
  6755. }
  6756. // Mutable pointer to the field.
  6757. // If field is not initialized, it is initialized with default value first.
  6758. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  6759. &mut self.grid_id
  6760. }
  6761. // Take field
  6762. pub fn take_grid_id(&mut self) -> ::std::string::String {
  6763. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  6764. }
  6765. // string row_id = 2;
  6766. pub fn get_row_id(&self) -> &str {
  6767. &self.row_id
  6768. }
  6769. pub fn clear_row_id(&mut self) {
  6770. self.row_id.clear();
  6771. }
  6772. // Param is passed by value, moved
  6773. pub fn set_row_id(&mut self, v: ::std::string::String) {
  6774. self.row_id = v;
  6775. }
  6776. // Mutable pointer to the field.
  6777. // If field is not initialized, it is initialized with default value first.
  6778. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  6779. &mut self.row_id
  6780. }
  6781. // Take field
  6782. pub fn take_row_id(&mut self) -> ::std::string::String {
  6783. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  6784. }
  6785. // string field_id = 3;
  6786. pub fn get_field_id(&self) -> &str {
  6787. &self.field_id
  6788. }
  6789. pub fn clear_field_id(&mut self) {
  6790. self.field_id.clear();
  6791. }
  6792. // Param is passed by value, moved
  6793. pub fn set_field_id(&mut self, v: ::std::string::String) {
  6794. self.field_id = v;
  6795. }
  6796. // Mutable pointer to the field.
  6797. // If field is not initialized, it is initialized with default value first.
  6798. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  6799. &mut self.field_id
  6800. }
  6801. // Take field
  6802. pub fn take_field_id(&mut self) -> ::std::string::String {
  6803. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  6804. }
  6805. // string cell_content_changeset = 4;
  6806. pub fn get_cell_content_changeset(&self) -> &str {
  6807. match self.one_of_cell_content_changeset {
  6808. ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(ref v)) => v,
  6809. _ => "",
  6810. }
  6811. }
  6812. pub fn clear_cell_content_changeset(&mut self) {
  6813. self.one_of_cell_content_changeset = ::std::option::Option::None;
  6814. }
  6815. pub fn has_cell_content_changeset(&self) -> bool {
  6816. match self.one_of_cell_content_changeset {
  6817. ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(..)) => true,
  6818. _ => false,
  6819. }
  6820. }
  6821. // Param is passed by value, moved
  6822. pub fn set_cell_content_changeset(&mut self, v: ::std::string::String) {
  6823. self.one_of_cell_content_changeset = ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(v))
  6824. }
  6825. // Mutable pointer to the field.
  6826. pub fn mut_cell_content_changeset(&mut self) -> &mut ::std::string::String {
  6827. if let ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(_)) = self.one_of_cell_content_changeset {
  6828. } else {
  6829. self.one_of_cell_content_changeset = ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(::std::string::String::new()));
  6830. }
  6831. match self.one_of_cell_content_changeset {
  6832. ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(ref mut v)) => v,
  6833. _ => panic!(),
  6834. }
  6835. }
  6836. // Take field
  6837. pub fn take_cell_content_changeset(&mut self) -> ::std::string::String {
  6838. if self.has_cell_content_changeset() {
  6839. match self.one_of_cell_content_changeset.take() {
  6840. ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(v)) => v,
  6841. _ => panic!(),
  6842. }
  6843. } else {
  6844. ::std::string::String::new()
  6845. }
  6846. }
  6847. }
  6848. impl ::protobuf::Message for CellChangeset {
  6849. fn is_initialized(&self) -> bool {
  6850. true
  6851. }
  6852. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6853. while !is.eof()? {
  6854. let (field_number, wire_type) = is.read_tag_unpack()?;
  6855. match field_number {
  6856. 1 => {
  6857. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  6858. },
  6859. 2 => {
  6860. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  6861. },
  6862. 3 => {
  6863. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  6864. },
  6865. 4 => {
  6866. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  6867. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6868. }
  6869. self.one_of_cell_content_changeset = ::std::option::Option::Some(CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(is.read_string()?));
  6870. },
  6871. _ => {
  6872. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  6873. },
  6874. };
  6875. }
  6876. ::std::result::Result::Ok(())
  6877. }
  6878. // Compute sizes of nested messages
  6879. #[allow(unused_variables)]
  6880. fn compute_size(&self) -> u32 {
  6881. let mut my_size = 0;
  6882. if !self.grid_id.is_empty() {
  6883. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  6884. }
  6885. if !self.row_id.is_empty() {
  6886. my_size += ::protobuf::rt::string_size(2, &self.row_id);
  6887. }
  6888. if !self.field_id.is_empty() {
  6889. my_size += ::protobuf::rt::string_size(3, &self.field_id);
  6890. }
  6891. if let ::std::option::Option::Some(ref v) = self.one_of_cell_content_changeset {
  6892. match v {
  6893. &CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(ref v) => {
  6894. my_size += ::protobuf::rt::string_size(4, &v);
  6895. },
  6896. };
  6897. }
  6898. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  6899. self.cached_size.set(my_size);
  6900. my_size
  6901. }
  6902. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6903. if !self.grid_id.is_empty() {
  6904. os.write_string(1, &self.grid_id)?;
  6905. }
  6906. if !self.row_id.is_empty() {
  6907. os.write_string(2, &self.row_id)?;
  6908. }
  6909. if !self.field_id.is_empty() {
  6910. os.write_string(3, &self.field_id)?;
  6911. }
  6912. if let ::std::option::Option::Some(ref v) = self.one_of_cell_content_changeset {
  6913. match v {
  6914. &CellChangeset_oneof_one_of_cell_content_changeset::cell_content_changeset(ref v) => {
  6915. os.write_string(4, v)?;
  6916. },
  6917. };
  6918. }
  6919. os.write_unknown_fields(self.get_unknown_fields())?;
  6920. ::std::result::Result::Ok(())
  6921. }
  6922. fn get_cached_size(&self) -> u32 {
  6923. self.cached_size.get()
  6924. }
  6925. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  6926. &self.unknown_fields
  6927. }
  6928. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  6929. &mut self.unknown_fields
  6930. }
  6931. fn as_any(&self) -> &dyn (::std::any::Any) {
  6932. self as &dyn (::std::any::Any)
  6933. }
  6934. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  6935. self as &mut dyn (::std::any::Any)
  6936. }
  6937. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  6938. self
  6939. }
  6940. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  6941. Self::descriptor_static()
  6942. }
  6943. fn new() -> CellChangeset {
  6944. CellChangeset::new()
  6945. }
  6946. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  6947. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6948. descriptor.get(|| {
  6949. let mut fields = ::std::vec::Vec::new();
  6950. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6951. "grid_id",
  6952. |m: &CellChangeset| { &m.grid_id },
  6953. |m: &mut CellChangeset| { &mut m.grid_id },
  6954. ));
  6955. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6956. "row_id",
  6957. |m: &CellChangeset| { &m.row_id },
  6958. |m: &mut CellChangeset| { &mut m.row_id },
  6959. ));
  6960. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6961. "field_id",
  6962. |m: &CellChangeset| { &m.field_id },
  6963. |m: &mut CellChangeset| { &mut m.field_id },
  6964. ));
  6965. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6966. "cell_content_changeset",
  6967. CellChangeset::has_cell_content_changeset,
  6968. CellChangeset::get_cell_content_changeset,
  6969. ));
  6970. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellChangeset>(
  6971. "CellChangeset",
  6972. fields,
  6973. file_descriptor_proto()
  6974. )
  6975. })
  6976. }
  6977. fn default_instance() -> &'static CellChangeset {
  6978. static instance: ::protobuf::rt::LazyV2<CellChangeset> = ::protobuf::rt::LazyV2::INIT;
  6979. instance.get(CellChangeset::new)
  6980. }
  6981. }
  6982. impl ::protobuf::Clear for CellChangeset {
  6983. fn clear(&mut self) {
  6984. self.grid_id.clear();
  6985. self.row_id.clear();
  6986. self.field_id.clear();
  6987. self.one_of_cell_content_changeset = ::std::option::Option::None;
  6988. self.unknown_fields.clear();
  6989. }
  6990. }
  6991. impl ::std::fmt::Debug for CellChangeset {
  6992. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6993. ::protobuf::text_format::fmt(self, f)
  6994. }
  6995. }
  6996. impl ::protobuf::reflect::ProtobufValue for CellChangeset {
  6997. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6998. ::protobuf::reflect::ReflectValueRef::Message(self)
  6999. }
  7000. }
  7001. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  7002. pub enum MoveItemType {
  7003. MoveField = 0,
  7004. MoveRow = 1,
  7005. }
  7006. impl ::protobuf::ProtobufEnum for MoveItemType {
  7007. fn value(&self) -> i32 {
  7008. *self as i32
  7009. }
  7010. fn from_i32(value: i32) -> ::std::option::Option<MoveItemType> {
  7011. match value {
  7012. 0 => ::std::option::Option::Some(MoveItemType::MoveField),
  7013. 1 => ::std::option::Option::Some(MoveItemType::MoveRow),
  7014. _ => ::std::option::Option::None
  7015. }
  7016. }
  7017. fn values() -> &'static [Self] {
  7018. static values: &'static [MoveItemType] = &[
  7019. MoveItemType::MoveField,
  7020. MoveItemType::MoveRow,
  7021. ];
  7022. values
  7023. }
  7024. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  7025. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  7026. descriptor.get(|| {
  7027. ::protobuf::reflect::EnumDescriptor::new_pb_name::<MoveItemType>("MoveItemType", file_descriptor_proto())
  7028. })
  7029. }
  7030. }
  7031. impl ::std::marker::Copy for MoveItemType {
  7032. }
  7033. impl ::std::default::Default for MoveItemType {
  7034. fn default() -> Self {
  7035. MoveItemType::MoveField
  7036. }
  7037. }
  7038. impl ::protobuf::reflect::ProtobufValue for MoveItemType {
  7039. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  7040. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  7041. }
  7042. }
  7043. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  7044. pub enum FieldType {
  7045. RichText = 0,
  7046. Number = 1,
  7047. DateTime = 2,
  7048. SingleSelect = 3,
  7049. MultiSelect = 4,
  7050. Checkbox = 5,
  7051. }
  7052. impl ::protobuf::ProtobufEnum for FieldType {
  7053. fn value(&self) -> i32 {
  7054. *self as i32
  7055. }
  7056. fn from_i32(value: i32) -> ::std::option::Option<FieldType> {
  7057. match value {
  7058. 0 => ::std::option::Option::Some(FieldType::RichText),
  7059. 1 => ::std::option::Option::Some(FieldType::Number),
  7060. 2 => ::std::option::Option::Some(FieldType::DateTime),
  7061. 3 => ::std::option::Option::Some(FieldType::SingleSelect),
  7062. 4 => ::std::option::Option::Some(FieldType::MultiSelect),
  7063. 5 => ::std::option::Option::Some(FieldType::Checkbox),
  7064. _ => ::std::option::Option::None
  7065. }
  7066. }
  7067. fn values() -> &'static [Self] {
  7068. static values: &'static [FieldType] = &[
  7069. FieldType::RichText,
  7070. FieldType::Number,
  7071. FieldType::DateTime,
  7072. FieldType::SingleSelect,
  7073. FieldType::MultiSelect,
  7074. FieldType::Checkbox,
  7075. ];
  7076. values
  7077. }
  7078. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  7079. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  7080. descriptor.get(|| {
  7081. ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldType>("FieldType", file_descriptor_proto())
  7082. })
  7083. }
  7084. }
  7085. impl ::std::marker::Copy for FieldType {
  7086. }
  7087. impl ::std::default::Default for FieldType {
  7088. fn default() -> Self {
  7089. FieldType::RichText
  7090. }
  7091. }
  7092. impl ::protobuf::reflect::ProtobufValue for FieldType {
  7093. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  7094. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  7095. }
  7096. }
  7097. static file_descriptor_proto_data: &'static [u8] = b"\
  7098. \n\ngrid.proto\"z\n\x04Grid\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\
  7099. \x12.\n\x0cfield_orders\x18\x02\x20\x03(\x0b2\x0b.FieldOrderR\x0bfieldOr\
  7100. ders\x122\n\x0cblock_orders\x18\x03\x20\x03(\x0b2\x0f.GridBlockOrderR\
  7101. \x0bblockOrders\"\xd7\x01\n\x05Field\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\
  7102. \x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\
  7103. \x18\x03\x20\x01(\tR\x04desc\x12)\n\nfield_type\x18\x04\x20\x01(\x0e2\n.\
  7104. FieldTypeR\tfieldType\x12\x16\n\x06frozen\x18\x05\x20\x01(\x08R\x06froze\
  7105. n\x12\x1e\n\nvisibility\x18\x06\x20\x01(\x08R\nvisibility\x12\x14\n\x05w\
  7106. idth\x18\x07\x20\x01(\x05R\x05width\x12\x1d\n\nis_primary\x18\x08\x20\
  7107. \x01(\x08R\tisPrimary\"'\n\nFieldOrder\x12\x19\n\x08field_id\x18\x01\x20\
  7108. \x01(\tR\x07fieldId\"\xc6\x01\n\x12GridFieldChangeset\x12\x17\n\x07grid_\
  7109. id\x18\x01\x20\x01(\tR\x06gridId\x124\n\x0finserted_fields\x18\x02\x20\
  7110. \x03(\x0b2\x0b.IndexFieldR\x0einsertedFields\x122\n\x0edeleted_fields\
  7111. \x18\x03\x20\x03(\x0b2\x0b.FieldOrderR\rdeletedFields\x12-\n\x0eupdated_\
  7112. fields\x18\x04\x20\x03(\x0b2\x06.FieldR\rupdatedFields\"@\n\nIndexField\
  7113. \x12\x1c\n\x05field\x18\x01\x20\x01(\x0b2\x06.FieldR\x05field\x12\x14\n\
  7114. \x05index\x18\x02\x20\x01(\x05R\x05index\"\x90\x01\n\x1aGetEditFieldCont\
  7115. extPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x1b\n\
  7116. \x08field_id\x18\x02\x20\x01(\tH\0R\x07fieldId\x12)\n\nfield_type\x18\
  7117. \x03\x20\x01(\x0e2\n.FieldTypeR\tfieldTypeB\x11\n\x0fone_of_field_id\"\
  7118. \xa0\x01\n\x10EditFieldPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
  7119. \x06gridId\x12\x19\n\x08field_id\x18\x02\x20\x01(\tR\x07fieldId\x12)\n\n\
  7120. field_type\x18\x03\x20\x01(\x0e2\n.FieldTypeR\tfieldType\x12-\n\x13creat\
  7121. e_if_not_exist\x18\x04\x20\x01(\x08R\x10createIfNotExist\"\x82\x01\n\x16\
  7122. FieldTypeOptionContext\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridI\
  7123. d\x12%\n\ngrid_field\x18\x02\x20\x01(\x0b2\x06.FieldR\tgridField\x12(\n\
  7124. \x10type_option_data\x18\x03\x20\x01(\x0cR\x0etypeOptionData\"v\n\x13Fie\
  7125. ldTypeOptionData\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\
  7126. \x1c\n\x05field\x18\x02\x20\x01(\x0b2\x06.FieldR\x05field\x12(\n\x10type\
  7127. _option_data\x18\x03\x20\x01(\x0cR\x0etypeOptionData\"-\n\rRepeatedField\
  7128. \x12\x1c\n\x05items\x18\x01\x20\x03(\x0b2\x06.FieldR\x05items\"7\n\x12Re\
  7129. peatedFieldOrder\x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b.FieldOrderR\
  7130. \x05items\"T\n\x08RowOrder\x12\x15\n\x06row_id\x18\x01\x20\x01(\tR\x05ro\
  7131. wId\x12\x19\n\x08block_id\x18\x02\x20\x01(\tR\x07blockId\x12\x16\n\x06he\
  7132. ight\x18\x03\x20\x01(\x05R\x06height\"\xb8\x01\n\x03Row\x12\x0e\n\x02id\
  7133. \x18\x01\x20\x01(\tR\x02id\x12@\n\x10cell_by_field_id\x18\x02\x20\x03(\
  7134. \x0b2\x17.Row.CellByFieldIdEntryR\rcellByFieldId\x12\x16\n\x06height\x18\
  7135. \x03\x20\x01(\x05R\x06height\x1aG\n\x12CellByFieldIdEntry\x12\x10\n\x03k\
  7136. ey\x18\x01\x20\x01(\tR\x03key\x12\x1b\n\x05value\x18\x02\x20\x01(\x0b2\
  7137. \x05.CellR\x05value:\x028\x01\")\n\x0bRepeatedRow\x12\x1a\n\x05items\x18\
  7138. \x01\x20\x03(\x0b2\x04.RowR\x05items\"5\n\x11RepeatedGridBlock\x12\x20\n\
  7139. \x05items\x18\x01\x20\x03(\x0b2\n.GridBlockR\x05items\"U\n\x0eGridBlockO\
  7140. rder\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12(\n\nrow_or\
  7141. ders\x18\x02\x20\x03(\x0b2\t.RowOrderR\trowOrders\"_\n\rIndexRowOrder\
  7142. \x12&\n\trow_order\x18\x01\x20\x01(\x0b2\t.RowOrderR\x08rowOrder\x12\x16\
  7143. \n\x05index\x18\x02\x20\x01(\x05H\0R\x05indexB\x0e\n\x0cone_of_index\"Q\
  7144. \n\x0fUpdatedRowOrder\x12&\n\trow_order\x18\x01\x20\x01(\x0b2\t.RowOrder\
  7145. R\x08rowOrder\x12\x16\n\x03row\x18\x02\x20\x01(\x0b2\x04.RowR\x03row\"\
  7146. \xc6\x01\n\x11GridRowsChangeset\x12\x19\n\x08block_id\x18\x01\x20\x01(\t\
  7147. R\x07blockId\x123\n\rinserted_rows\x18\x02\x20\x03(\x0b2\x0e.IndexRowOrd\
  7148. erR\x0cinsertedRows\x12,\n\x0cdeleted_rows\x18\x03\x20\x03(\x0b2\t.RowOr\
  7149. derR\x0bdeletedRows\x123\n\x0cupdated_rows\x18\x04\x20\x03(\x0b2\x10.Upd\
  7150. atedRowOrderR\x0bupdatedRows\"E\n\tGridBlock\x12\x0e\n\x02id\x18\x01\x20\
  7151. \x01(\tR\x02id\x12(\n\nrow_orders\x18\x02\x20\x03(\x0b2\t.RowOrderR\trow\
  7152. Orders\"5\n\x04Cell\x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldId\
  7153. \x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\"+\n\x0cRepeatedCell\
  7154. \x12\x1b\n\x05items\x18\x01\x20\x03(\x0b2\x05.CellR\x05items\"'\n\x11Cre\
  7155. ateGridPayload\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\x1e\n\x06\
  7156. GridId\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"#\n\x0bGridBlock\
  7157. Id\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"f\n\x10CreateRowPayl\
  7158. oad\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\"\n\x0cstart_\
  7159. row_id\x18\x02\x20\x01(\tH\0R\nstartRowIdB\x15\n\x13one_of_start_row_id\
  7160. \"\xb6\x01\n\x12InsertFieldPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\
  7161. \tR\x06gridId\x12\x1c\n\x05field\x18\x02\x20\x01(\x0b2\x06.FieldR\x05fie\
  7162. ld\x12(\n\x10type_option_data\x18\x03\x20\x01(\x0cR\x0etypeOptionData\
  7163. \x12&\n\x0estart_field_id\x18\x04\x20\x01(\tH\0R\x0cstartFieldIdB\x17\n\
  7164. \x15one_of_start_field_id\"|\n\x1cUpdateFieldTypeOptionPayload\x12\x17\n\
  7165. \x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x19\n\x08field_id\x18\x02\
  7166. \x20\x01(\tR\x07fieldId\x12(\n\x10type_option_data\x18\x03\x20\x01(\x0cR\
  7167. \x0etypeOptionData\"d\n\x11QueryFieldPayload\x12\x17\n\x07grid_id\x18\
  7168. \x01\x20\x01(\tR\x06gridId\x126\n\x0cfield_orders\x18\x02\x20\x01(\x0b2\
  7169. \x13.RepeatedFieldOrderR\x0bfieldOrders\"e\n\x16QueryGridBlocksPayload\
  7170. \x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x122\n\x0cblock_orde\
  7171. rs\x18\x02\x20\x03(\x0b2\x0f.GridBlockOrderR\x0bblockOrders\"\xa8\x03\n\
  7172. \x15FieldChangesetPayload\x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07f\
  7173. ieldId\x12\x17\n\x07grid_id\x18\x02\x20\x01(\tR\x06gridId\x12\x14\n\x04n\
  7174. ame\x18\x03\x20\x01(\tH\0R\x04name\x12\x14\n\x04desc\x18\x04\x20\x01(\tH\
  7175. \x01R\x04desc\x12+\n\nfield_type\x18\x05\x20\x01(\x0e2\n.FieldTypeH\x02R\
  7176. \tfieldType\x12\x18\n\x06frozen\x18\x06\x20\x01(\x08H\x03R\x06frozen\x12\
  7177. \x20\n\nvisibility\x18\x07\x20\x01(\x08H\x04R\nvisibility\x12\x16\n\x05w\
  7178. idth\x18\x08\x20\x01(\x05H\x05R\x05width\x12*\n\x10type_option_data\x18\
  7179. \t\x20\x01(\x0cH\x06R\x0etypeOptionDataB\r\n\x0bone_of_nameB\r\n\x0bone_\
  7180. of_descB\x13\n\x11one_of_field_typeB\x0f\n\rone_of_frozenB\x13\n\x11one_\
  7181. of_visibilityB\x0e\n\x0cone_of_widthB\x19\n\x17one_of_type_option_data\"\
  7182. \x9c\x01\n\x0fMoveItemPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
  7183. \x06gridId\x12\x17\n\x07item_id\x18\x02\x20\x01(\tR\x06itemId\x12\x1d\n\
  7184. \nfrom_index\x18\x03\x20\x01(\x05R\tfromIndex\x12\x19\n\x08to_index\x18\
  7185. \x04\x20\x01(\x05R\x07toIndex\x12\x1d\n\x02ty\x18\x05\x20\x01(\x0e2\r.Mo\
  7186. veItemTypeR\x02ty\"\xb3\x01\n\rCellChangeset\x12\x17\n\x07grid_id\x18\
  7187. \x01\x20\x01(\tR\x06gridId\x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05ro\
  7188. wId\x12\x19\n\x08field_id\x18\x03\x20\x01(\tR\x07fieldId\x126\n\x16cell_\
  7189. content_changeset\x18\x04\x20\x01(\tH\0R\x14cellContentChangesetB\x1f\n\
  7190. \x1done_of_cell_content_changeset**\n\x0cMoveItemType\x12\r\n\tMoveField\
  7191. \x10\0\x12\x0b\n\x07MoveRow\x10\x01*d\n\tFieldType\x12\x0c\n\x08RichText\
  7192. \x10\0\x12\n\n\x06Number\x10\x01\x12\x0c\n\x08DateTime\x10\x02\x12\x10\n\
  7193. \x0cSingleSelect\x10\x03\x12\x0f\n\x0bMultiSelect\x10\x04\x12\x0c\n\x08C\
  7194. heckbox\x10\x05b\x06proto3\
  7195. ";
  7196. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  7197. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  7198. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  7199. }
  7200. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  7201. file_descriptor_proto_lazy.get(|| {
  7202. parse_descriptor_proto()
  7203. })
  7204. }