grid.rs 260 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908
  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. // special fields
  1422. pub unknown_fields: ::protobuf::UnknownFields,
  1423. pub cached_size: ::protobuf::CachedSize,
  1424. }
  1425. impl<'a> ::std::default::Default for &'a EditFieldPayload {
  1426. fn default() -> &'a EditFieldPayload {
  1427. <EditFieldPayload as ::protobuf::Message>::default_instance()
  1428. }
  1429. }
  1430. impl EditFieldPayload {
  1431. pub fn new() -> EditFieldPayload {
  1432. ::std::default::Default::default()
  1433. }
  1434. // string grid_id = 1;
  1435. pub fn get_grid_id(&self) -> &str {
  1436. &self.grid_id
  1437. }
  1438. pub fn clear_grid_id(&mut self) {
  1439. self.grid_id.clear();
  1440. }
  1441. // Param is passed by value, moved
  1442. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1443. self.grid_id = v;
  1444. }
  1445. // Mutable pointer to the field.
  1446. // If field is not initialized, it is initialized with default value first.
  1447. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1448. &mut self.grid_id
  1449. }
  1450. // Take field
  1451. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1452. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1453. }
  1454. // string field_id = 2;
  1455. pub fn get_field_id(&self) -> &str {
  1456. &self.field_id
  1457. }
  1458. pub fn clear_field_id(&mut self) {
  1459. self.field_id.clear();
  1460. }
  1461. // Param is passed by value, moved
  1462. pub fn set_field_id(&mut self, v: ::std::string::String) {
  1463. self.field_id = v;
  1464. }
  1465. // Mutable pointer to the field.
  1466. // If field is not initialized, it is initialized with default value first.
  1467. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  1468. &mut self.field_id
  1469. }
  1470. // Take field
  1471. pub fn take_field_id(&mut self) -> ::std::string::String {
  1472. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  1473. }
  1474. // .FieldType field_type = 3;
  1475. pub fn get_field_type(&self) -> FieldType {
  1476. self.field_type
  1477. }
  1478. pub fn clear_field_type(&mut self) {
  1479. self.field_type = FieldType::RichText;
  1480. }
  1481. // Param is passed by value, moved
  1482. pub fn set_field_type(&mut self, v: FieldType) {
  1483. self.field_type = v;
  1484. }
  1485. }
  1486. impl ::protobuf::Message for EditFieldPayload {
  1487. fn is_initialized(&self) -> bool {
  1488. true
  1489. }
  1490. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1491. while !is.eof()? {
  1492. let (field_number, wire_type) = is.read_tag_unpack()?;
  1493. match field_number {
  1494. 1 => {
  1495. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1496. },
  1497. 2 => {
  1498. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  1499. },
  1500. 3 => {
  1501. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 3, &mut self.unknown_fields)?
  1502. },
  1503. _ => {
  1504. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1505. },
  1506. };
  1507. }
  1508. ::std::result::Result::Ok(())
  1509. }
  1510. // Compute sizes of nested messages
  1511. #[allow(unused_variables)]
  1512. fn compute_size(&self) -> u32 {
  1513. let mut my_size = 0;
  1514. if !self.grid_id.is_empty() {
  1515. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1516. }
  1517. if !self.field_id.is_empty() {
  1518. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  1519. }
  1520. if self.field_type != FieldType::RichText {
  1521. my_size += ::protobuf::rt::enum_size(3, self.field_type);
  1522. }
  1523. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1524. self.cached_size.set(my_size);
  1525. my_size
  1526. }
  1527. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1528. if !self.grid_id.is_empty() {
  1529. os.write_string(1, &self.grid_id)?;
  1530. }
  1531. if !self.field_id.is_empty() {
  1532. os.write_string(2, &self.field_id)?;
  1533. }
  1534. if self.field_type != FieldType::RichText {
  1535. os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  1536. }
  1537. os.write_unknown_fields(self.get_unknown_fields())?;
  1538. ::std::result::Result::Ok(())
  1539. }
  1540. fn get_cached_size(&self) -> u32 {
  1541. self.cached_size.get()
  1542. }
  1543. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1544. &self.unknown_fields
  1545. }
  1546. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1547. &mut self.unknown_fields
  1548. }
  1549. fn as_any(&self) -> &dyn (::std::any::Any) {
  1550. self as &dyn (::std::any::Any)
  1551. }
  1552. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1553. self as &mut dyn (::std::any::Any)
  1554. }
  1555. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1556. self
  1557. }
  1558. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1559. Self::descriptor_static()
  1560. }
  1561. fn new() -> EditFieldPayload {
  1562. EditFieldPayload::new()
  1563. }
  1564. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1565. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1566. descriptor.get(|| {
  1567. let mut fields = ::std::vec::Vec::new();
  1568. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1569. "grid_id",
  1570. |m: &EditFieldPayload| { &m.grid_id },
  1571. |m: &mut EditFieldPayload| { &mut m.grid_id },
  1572. ));
  1573. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1574. "field_id",
  1575. |m: &EditFieldPayload| { &m.field_id },
  1576. |m: &mut EditFieldPayload| { &mut m.field_id },
  1577. ));
  1578. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(
  1579. "field_type",
  1580. |m: &EditFieldPayload| { &m.field_type },
  1581. |m: &mut EditFieldPayload| { &mut m.field_type },
  1582. ));
  1583. ::protobuf::reflect::MessageDescriptor::new_pb_name::<EditFieldPayload>(
  1584. "EditFieldPayload",
  1585. fields,
  1586. file_descriptor_proto()
  1587. )
  1588. })
  1589. }
  1590. fn default_instance() -> &'static EditFieldPayload {
  1591. static instance: ::protobuf::rt::LazyV2<EditFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  1592. instance.get(EditFieldPayload::new)
  1593. }
  1594. }
  1595. impl ::protobuf::Clear for EditFieldPayload {
  1596. fn clear(&mut self) {
  1597. self.grid_id.clear();
  1598. self.field_id.clear();
  1599. self.field_type = FieldType::RichText;
  1600. self.unknown_fields.clear();
  1601. }
  1602. }
  1603. impl ::std::fmt::Debug for EditFieldPayload {
  1604. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1605. ::protobuf::text_format::fmt(self, f)
  1606. }
  1607. }
  1608. impl ::protobuf::reflect::ProtobufValue for EditFieldPayload {
  1609. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1610. ::protobuf::reflect::ReflectValueRef::Message(self)
  1611. }
  1612. }
  1613. #[derive(PartialEq,Clone,Default)]
  1614. pub struct EditFieldContext {
  1615. // message fields
  1616. pub grid_id: ::std::string::String,
  1617. pub grid_field: ::protobuf::SingularPtrField<Field>,
  1618. pub type_option_data: ::std::vec::Vec<u8>,
  1619. // special fields
  1620. pub unknown_fields: ::protobuf::UnknownFields,
  1621. pub cached_size: ::protobuf::CachedSize,
  1622. }
  1623. impl<'a> ::std::default::Default for &'a EditFieldContext {
  1624. fn default() -> &'a EditFieldContext {
  1625. <EditFieldContext as ::protobuf::Message>::default_instance()
  1626. }
  1627. }
  1628. impl EditFieldContext {
  1629. pub fn new() -> EditFieldContext {
  1630. ::std::default::Default::default()
  1631. }
  1632. // string grid_id = 1;
  1633. pub fn get_grid_id(&self) -> &str {
  1634. &self.grid_id
  1635. }
  1636. pub fn clear_grid_id(&mut self) {
  1637. self.grid_id.clear();
  1638. }
  1639. // Param is passed by value, moved
  1640. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1641. self.grid_id = v;
  1642. }
  1643. // Mutable pointer to the field.
  1644. // If field is not initialized, it is initialized with default value first.
  1645. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1646. &mut self.grid_id
  1647. }
  1648. // Take field
  1649. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1650. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1651. }
  1652. // .Field grid_field = 2;
  1653. pub fn get_grid_field(&self) -> &Field {
  1654. self.grid_field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  1655. }
  1656. pub fn clear_grid_field(&mut self) {
  1657. self.grid_field.clear();
  1658. }
  1659. pub fn has_grid_field(&self) -> bool {
  1660. self.grid_field.is_some()
  1661. }
  1662. // Param is passed by value, moved
  1663. pub fn set_grid_field(&mut self, v: Field) {
  1664. self.grid_field = ::protobuf::SingularPtrField::some(v);
  1665. }
  1666. // Mutable pointer to the field.
  1667. // If field is not initialized, it is initialized with default value first.
  1668. pub fn mut_grid_field(&mut self) -> &mut Field {
  1669. if self.grid_field.is_none() {
  1670. self.grid_field.set_default();
  1671. }
  1672. self.grid_field.as_mut().unwrap()
  1673. }
  1674. // Take field
  1675. pub fn take_grid_field(&mut self) -> Field {
  1676. self.grid_field.take().unwrap_or_else(|| Field::new())
  1677. }
  1678. // bytes type_option_data = 3;
  1679. pub fn get_type_option_data(&self) -> &[u8] {
  1680. &self.type_option_data
  1681. }
  1682. pub fn clear_type_option_data(&mut self) {
  1683. self.type_option_data.clear();
  1684. }
  1685. // Param is passed by value, moved
  1686. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  1687. self.type_option_data = v;
  1688. }
  1689. // Mutable pointer to the field.
  1690. // If field is not initialized, it is initialized with default value first.
  1691. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  1692. &mut self.type_option_data
  1693. }
  1694. // Take field
  1695. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  1696. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  1697. }
  1698. }
  1699. impl ::protobuf::Message for EditFieldContext {
  1700. fn is_initialized(&self) -> bool {
  1701. for v in &self.grid_field {
  1702. if !v.is_initialized() {
  1703. return false;
  1704. }
  1705. };
  1706. true
  1707. }
  1708. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1709. while !is.eof()? {
  1710. let (field_number, wire_type) = is.read_tag_unpack()?;
  1711. match field_number {
  1712. 1 => {
  1713. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1714. },
  1715. 2 => {
  1716. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grid_field)?;
  1717. },
  1718. 3 => {
  1719. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  1720. },
  1721. _ => {
  1722. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1723. },
  1724. };
  1725. }
  1726. ::std::result::Result::Ok(())
  1727. }
  1728. // Compute sizes of nested messages
  1729. #[allow(unused_variables)]
  1730. fn compute_size(&self) -> u32 {
  1731. let mut my_size = 0;
  1732. if !self.grid_id.is_empty() {
  1733. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1734. }
  1735. if let Some(ref v) = self.grid_field.as_ref() {
  1736. let len = v.compute_size();
  1737. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1738. }
  1739. if !self.type_option_data.is_empty() {
  1740. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  1741. }
  1742. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1743. self.cached_size.set(my_size);
  1744. my_size
  1745. }
  1746. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1747. if !self.grid_id.is_empty() {
  1748. os.write_string(1, &self.grid_id)?;
  1749. }
  1750. if let Some(ref v) = self.grid_field.as_ref() {
  1751. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1752. os.write_raw_varint32(v.get_cached_size())?;
  1753. v.write_to_with_cached_sizes(os)?;
  1754. }
  1755. if !self.type_option_data.is_empty() {
  1756. os.write_bytes(3, &self.type_option_data)?;
  1757. }
  1758. os.write_unknown_fields(self.get_unknown_fields())?;
  1759. ::std::result::Result::Ok(())
  1760. }
  1761. fn get_cached_size(&self) -> u32 {
  1762. self.cached_size.get()
  1763. }
  1764. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1765. &self.unknown_fields
  1766. }
  1767. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1768. &mut self.unknown_fields
  1769. }
  1770. fn as_any(&self) -> &dyn (::std::any::Any) {
  1771. self as &dyn (::std::any::Any)
  1772. }
  1773. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1774. self as &mut dyn (::std::any::Any)
  1775. }
  1776. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1777. self
  1778. }
  1779. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1780. Self::descriptor_static()
  1781. }
  1782. fn new() -> EditFieldContext {
  1783. EditFieldContext::new()
  1784. }
  1785. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1786. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1787. descriptor.get(|| {
  1788. let mut fields = ::std::vec::Vec::new();
  1789. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1790. "grid_id",
  1791. |m: &EditFieldContext| { &m.grid_id },
  1792. |m: &mut EditFieldContext| { &mut m.grid_id },
  1793. ));
  1794. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1795. "grid_field",
  1796. |m: &EditFieldContext| { &m.grid_field },
  1797. |m: &mut EditFieldContext| { &mut m.grid_field },
  1798. ));
  1799. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1800. "type_option_data",
  1801. |m: &EditFieldContext| { &m.type_option_data },
  1802. |m: &mut EditFieldContext| { &mut m.type_option_data },
  1803. ));
  1804. ::protobuf::reflect::MessageDescriptor::new_pb_name::<EditFieldContext>(
  1805. "EditFieldContext",
  1806. fields,
  1807. file_descriptor_proto()
  1808. )
  1809. })
  1810. }
  1811. fn default_instance() -> &'static EditFieldContext {
  1812. static instance: ::protobuf::rt::LazyV2<EditFieldContext> = ::protobuf::rt::LazyV2::INIT;
  1813. instance.get(EditFieldContext::new)
  1814. }
  1815. }
  1816. impl ::protobuf::Clear for EditFieldContext {
  1817. fn clear(&mut self) {
  1818. self.grid_id.clear();
  1819. self.grid_field.clear();
  1820. self.type_option_data.clear();
  1821. self.unknown_fields.clear();
  1822. }
  1823. }
  1824. impl ::std::fmt::Debug for EditFieldContext {
  1825. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1826. ::protobuf::text_format::fmt(self, f)
  1827. }
  1828. }
  1829. impl ::protobuf::reflect::ProtobufValue for EditFieldContext {
  1830. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1831. ::protobuf::reflect::ReflectValueRef::Message(self)
  1832. }
  1833. }
  1834. #[derive(PartialEq,Clone,Default)]
  1835. pub struct RepeatedField {
  1836. // message fields
  1837. pub items: ::protobuf::RepeatedField<Field>,
  1838. // special fields
  1839. pub unknown_fields: ::protobuf::UnknownFields,
  1840. pub cached_size: ::protobuf::CachedSize,
  1841. }
  1842. impl<'a> ::std::default::Default for &'a RepeatedField {
  1843. fn default() -> &'a RepeatedField {
  1844. <RepeatedField as ::protobuf::Message>::default_instance()
  1845. }
  1846. }
  1847. impl RepeatedField {
  1848. pub fn new() -> RepeatedField {
  1849. ::std::default::Default::default()
  1850. }
  1851. // repeated .Field items = 1;
  1852. pub fn get_items(&self) -> &[Field] {
  1853. &self.items
  1854. }
  1855. pub fn clear_items(&mut self) {
  1856. self.items.clear();
  1857. }
  1858. // Param is passed by value, moved
  1859. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Field>) {
  1860. self.items = v;
  1861. }
  1862. // Mutable pointer to the field.
  1863. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Field> {
  1864. &mut self.items
  1865. }
  1866. // Take field
  1867. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Field> {
  1868. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  1869. }
  1870. }
  1871. impl ::protobuf::Message for RepeatedField {
  1872. fn is_initialized(&self) -> bool {
  1873. for v in &self.items {
  1874. if !v.is_initialized() {
  1875. return false;
  1876. }
  1877. };
  1878. true
  1879. }
  1880. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1881. while !is.eof()? {
  1882. let (field_number, wire_type) = is.read_tag_unpack()?;
  1883. match field_number {
  1884. 1 => {
  1885. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  1886. },
  1887. _ => {
  1888. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1889. },
  1890. };
  1891. }
  1892. ::std::result::Result::Ok(())
  1893. }
  1894. // Compute sizes of nested messages
  1895. #[allow(unused_variables)]
  1896. fn compute_size(&self) -> u32 {
  1897. let mut my_size = 0;
  1898. for value in &self.items {
  1899. let len = value.compute_size();
  1900. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1901. };
  1902. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1903. self.cached_size.set(my_size);
  1904. my_size
  1905. }
  1906. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1907. for v in &self.items {
  1908. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1909. os.write_raw_varint32(v.get_cached_size())?;
  1910. v.write_to_with_cached_sizes(os)?;
  1911. };
  1912. os.write_unknown_fields(self.get_unknown_fields())?;
  1913. ::std::result::Result::Ok(())
  1914. }
  1915. fn get_cached_size(&self) -> u32 {
  1916. self.cached_size.get()
  1917. }
  1918. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1919. &self.unknown_fields
  1920. }
  1921. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1922. &mut self.unknown_fields
  1923. }
  1924. fn as_any(&self) -> &dyn (::std::any::Any) {
  1925. self as &dyn (::std::any::Any)
  1926. }
  1927. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1928. self as &mut dyn (::std::any::Any)
  1929. }
  1930. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1931. self
  1932. }
  1933. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1934. Self::descriptor_static()
  1935. }
  1936. fn new() -> RepeatedField {
  1937. RepeatedField::new()
  1938. }
  1939. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1940. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1941. descriptor.get(|| {
  1942. let mut fields = ::std::vec::Vec::new();
  1943. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1944. "items",
  1945. |m: &RepeatedField| { &m.items },
  1946. |m: &mut RepeatedField| { &mut m.items },
  1947. ));
  1948. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedField>(
  1949. "RepeatedField",
  1950. fields,
  1951. file_descriptor_proto()
  1952. )
  1953. })
  1954. }
  1955. fn default_instance() -> &'static RepeatedField {
  1956. static instance: ::protobuf::rt::LazyV2<RepeatedField> = ::protobuf::rt::LazyV2::INIT;
  1957. instance.get(RepeatedField::new)
  1958. }
  1959. }
  1960. impl ::protobuf::Clear for RepeatedField {
  1961. fn clear(&mut self) {
  1962. self.items.clear();
  1963. self.unknown_fields.clear();
  1964. }
  1965. }
  1966. impl ::std::fmt::Debug for RepeatedField {
  1967. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1968. ::protobuf::text_format::fmt(self, f)
  1969. }
  1970. }
  1971. impl ::protobuf::reflect::ProtobufValue for RepeatedField {
  1972. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1973. ::protobuf::reflect::ReflectValueRef::Message(self)
  1974. }
  1975. }
  1976. #[derive(PartialEq,Clone,Default)]
  1977. pub struct RepeatedFieldOrder {
  1978. // message fields
  1979. pub items: ::protobuf::RepeatedField<FieldOrder>,
  1980. // special fields
  1981. pub unknown_fields: ::protobuf::UnknownFields,
  1982. pub cached_size: ::protobuf::CachedSize,
  1983. }
  1984. impl<'a> ::std::default::Default for &'a RepeatedFieldOrder {
  1985. fn default() -> &'a RepeatedFieldOrder {
  1986. <RepeatedFieldOrder as ::protobuf::Message>::default_instance()
  1987. }
  1988. }
  1989. impl RepeatedFieldOrder {
  1990. pub fn new() -> RepeatedFieldOrder {
  1991. ::std::default::Default::default()
  1992. }
  1993. // repeated .FieldOrder items = 1;
  1994. pub fn get_items(&self) -> &[FieldOrder] {
  1995. &self.items
  1996. }
  1997. pub fn clear_items(&mut self) {
  1998. self.items.clear();
  1999. }
  2000. // Param is passed by value, moved
  2001. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {
  2002. self.items = v;
  2003. }
  2004. // Mutable pointer to the field.
  2005. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {
  2006. &mut self.items
  2007. }
  2008. // Take field
  2009. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {
  2010. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2011. }
  2012. }
  2013. impl ::protobuf::Message for RepeatedFieldOrder {
  2014. fn is_initialized(&self) -> bool {
  2015. for v in &self.items {
  2016. if !v.is_initialized() {
  2017. return false;
  2018. }
  2019. };
  2020. true
  2021. }
  2022. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2023. while !is.eof()? {
  2024. let (field_number, wire_type) = is.read_tag_unpack()?;
  2025. match field_number {
  2026. 1 => {
  2027. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2028. },
  2029. _ => {
  2030. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2031. },
  2032. };
  2033. }
  2034. ::std::result::Result::Ok(())
  2035. }
  2036. // Compute sizes of nested messages
  2037. #[allow(unused_variables)]
  2038. fn compute_size(&self) -> u32 {
  2039. let mut my_size = 0;
  2040. for value in &self.items {
  2041. let len = value.compute_size();
  2042. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2043. };
  2044. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2045. self.cached_size.set(my_size);
  2046. my_size
  2047. }
  2048. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2049. for v in &self.items {
  2050. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2051. os.write_raw_varint32(v.get_cached_size())?;
  2052. v.write_to_with_cached_sizes(os)?;
  2053. };
  2054. os.write_unknown_fields(self.get_unknown_fields())?;
  2055. ::std::result::Result::Ok(())
  2056. }
  2057. fn get_cached_size(&self) -> u32 {
  2058. self.cached_size.get()
  2059. }
  2060. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2061. &self.unknown_fields
  2062. }
  2063. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2064. &mut self.unknown_fields
  2065. }
  2066. fn as_any(&self) -> &dyn (::std::any::Any) {
  2067. self as &dyn (::std::any::Any)
  2068. }
  2069. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2070. self as &mut dyn (::std::any::Any)
  2071. }
  2072. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2073. self
  2074. }
  2075. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2076. Self::descriptor_static()
  2077. }
  2078. fn new() -> RepeatedFieldOrder {
  2079. RepeatedFieldOrder::new()
  2080. }
  2081. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2082. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2083. descriptor.get(|| {
  2084. let mut fields = ::std::vec::Vec::new();
  2085. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(
  2086. "items",
  2087. |m: &RepeatedFieldOrder| { &m.items },
  2088. |m: &mut RepeatedFieldOrder| { &mut m.items },
  2089. ));
  2090. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFieldOrder>(
  2091. "RepeatedFieldOrder",
  2092. fields,
  2093. file_descriptor_proto()
  2094. )
  2095. })
  2096. }
  2097. fn default_instance() -> &'static RepeatedFieldOrder {
  2098. static instance: ::protobuf::rt::LazyV2<RepeatedFieldOrder> = ::protobuf::rt::LazyV2::INIT;
  2099. instance.get(RepeatedFieldOrder::new)
  2100. }
  2101. }
  2102. impl ::protobuf::Clear for RepeatedFieldOrder {
  2103. fn clear(&mut self) {
  2104. self.items.clear();
  2105. self.unknown_fields.clear();
  2106. }
  2107. }
  2108. impl ::std::fmt::Debug for RepeatedFieldOrder {
  2109. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2110. ::protobuf::text_format::fmt(self, f)
  2111. }
  2112. }
  2113. impl ::protobuf::reflect::ProtobufValue for RepeatedFieldOrder {
  2114. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2115. ::protobuf::reflect::ReflectValueRef::Message(self)
  2116. }
  2117. }
  2118. #[derive(PartialEq,Clone,Default)]
  2119. pub struct RowOrder {
  2120. // message fields
  2121. pub row_id: ::std::string::String,
  2122. pub block_id: ::std::string::String,
  2123. pub height: i32,
  2124. // special fields
  2125. pub unknown_fields: ::protobuf::UnknownFields,
  2126. pub cached_size: ::protobuf::CachedSize,
  2127. }
  2128. impl<'a> ::std::default::Default for &'a RowOrder {
  2129. fn default() -> &'a RowOrder {
  2130. <RowOrder as ::protobuf::Message>::default_instance()
  2131. }
  2132. }
  2133. impl RowOrder {
  2134. pub fn new() -> RowOrder {
  2135. ::std::default::Default::default()
  2136. }
  2137. // string row_id = 1;
  2138. pub fn get_row_id(&self) -> &str {
  2139. &self.row_id
  2140. }
  2141. pub fn clear_row_id(&mut self) {
  2142. self.row_id.clear();
  2143. }
  2144. // Param is passed by value, moved
  2145. pub fn set_row_id(&mut self, v: ::std::string::String) {
  2146. self.row_id = v;
  2147. }
  2148. // Mutable pointer to the field.
  2149. // If field is not initialized, it is initialized with default value first.
  2150. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  2151. &mut self.row_id
  2152. }
  2153. // Take field
  2154. pub fn take_row_id(&mut self) -> ::std::string::String {
  2155. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  2156. }
  2157. // string block_id = 2;
  2158. pub fn get_block_id(&self) -> &str {
  2159. &self.block_id
  2160. }
  2161. pub fn clear_block_id(&mut self) {
  2162. self.block_id.clear();
  2163. }
  2164. // Param is passed by value, moved
  2165. pub fn set_block_id(&mut self, v: ::std::string::String) {
  2166. self.block_id = v;
  2167. }
  2168. // Mutable pointer to the field.
  2169. // If field is not initialized, it is initialized with default value first.
  2170. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  2171. &mut self.block_id
  2172. }
  2173. // Take field
  2174. pub fn take_block_id(&mut self) -> ::std::string::String {
  2175. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  2176. }
  2177. // int32 height = 3;
  2178. pub fn get_height(&self) -> i32 {
  2179. self.height
  2180. }
  2181. pub fn clear_height(&mut self) {
  2182. self.height = 0;
  2183. }
  2184. // Param is passed by value, moved
  2185. pub fn set_height(&mut self, v: i32) {
  2186. self.height = v;
  2187. }
  2188. }
  2189. impl ::protobuf::Message for RowOrder {
  2190. fn is_initialized(&self) -> bool {
  2191. true
  2192. }
  2193. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2194. while !is.eof()? {
  2195. let (field_number, wire_type) = is.read_tag_unpack()?;
  2196. match field_number {
  2197. 1 => {
  2198. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  2199. },
  2200. 2 => {
  2201. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  2202. },
  2203. 3 => {
  2204. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2205. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2206. }
  2207. let tmp = is.read_int32()?;
  2208. self.height = tmp;
  2209. },
  2210. _ => {
  2211. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2212. },
  2213. };
  2214. }
  2215. ::std::result::Result::Ok(())
  2216. }
  2217. // Compute sizes of nested messages
  2218. #[allow(unused_variables)]
  2219. fn compute_size(&self) -> u32 {
  2220. let mut my_size = 0;
  2221. if !self.row_id.is_empty() {
  2222. my_size += ::protobuf::rt::string_size(1, &self.row_id);
  2223. }
  2224. if !self.block_id.is_empty() {
  2225. my_size += ::protobuf::rt::string_size(2, &self.block_id);
  2226. }
  2227. if self.height != 0 {
  2228. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  2229. }
  2230. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2231. self.cached_size.set(my_size);
  2232. my_size
  2233. }
  2234. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2235. if !self.row_id.is_empty() {
  2236. os.write_string(1, &self.row_id)?;
  2237. }
  2238. if !self.block_id.is_empty() {
  2239. os.write_string(2, &self.block_id)?;
  2240. }
  2241. if self.height != 0 {
  2242. os.write_int32(3, self.height)?;
  2243. }
  2244. os.write_unknown_fields(self.get_unknown_fields())?;
  2245. ::std::result::Result::Ok(())
  2246. }
  2247. fn get_cached_size(&self) -> u32 {
  2248. self.cached_size.get()
  2249. }
  2250. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2251. &self.unknown_fields
  2252. }
  2253. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2254. &mut self.unknown_fields
  2255. }
  2256. fn as_any(&self) -> &dyn (::std::any::Any) {
  2257. self as &dyn (::std::any::Any)
  2258. }
  2259. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2260. self as &mut dyn (::std::any::Any)
  2261. }
  2262. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2263. self
  2264. }
  2265. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2266. Self::descriptor_static()
  2267. }
  2268. fn new() -> RowOrder {
  2269. RowOrder::new()
  2270. }
  2271. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2272. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2273. descriptor.get(|| {
  2274. let mut fields = ::std::vec::Vec::new();
  2275. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2276. "row_id",
  2277. |m: &RowOrder| { &m.row_id },
  2278. |m: &mut RowOrder| { &mut m.row_id },
  2279. ));
  2280. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2281. "block_id",
  2282. |m: &RowOrder| { &m.block_id },
  2283. |m: &mut RowOrder| { &mut m.block_id },
  2284. ));
  2285. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2286. "height",
  2287. |m: &RowOrder| { &m.height },
  2288. |m: &mut RowOrder| { &mut m.height },
  2289. ));
  2290. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowOrder>(
  2291. "RowOrder",
  2292. fields,
  2293. file_descriptor_proto()
  2294. )
  2295. })
  2296. }
  2297. fn default_instance() -> &'static RowOrder {
  2298. static instance: ::protobuf::rt::LazyV2<RowOrder> = ::protobuf::rt::LazyV2::INIT;
  2299. instance.get(RowOrder::new)
  2300. }
  2301. }
  2302. impl ::protobuf::Clear for RowOrder {
  2303. fn clear(&mut self) {
  2304. self.row_id.clear();
  2305. self.block_id.clear();
  2306. self.height = 0;
  2307. self.unknown_fields.clear();
  2308. }
  2309. }
  2310. impl ::std::fmt::Debug for RowOrder {
  2311. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2312. ::protobuf::text_format::fmt(self, f)
  2313. }
  2314. }
  2315. impl ::protobuf::reflect::ProtobufValue for RowOrder {
  2316. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2317. ::protobuf::reflect::ReflectValueRef::Message(self)
  2318. }
  2319. }
  2320. #[derive(PartialEq,Clone,Default)]
  2321. pub struct Row {
  2322. // message fields
  2323. pub id: ::std::string::String,
  2324. pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, Cell>,
  2325. pub height: i32,
  2326. // special fields
  2327. pub unknown_fields: ::protobuf::UnknownFields,
  2328. pub cached_size: ::protobuf::CachedSize,
  2329. }
  2330. impl<'a> ::std::default::Default for &'a Row {
  2331. fn default() -> &'a Row {
  2332. <Row as ::protobuf::Message>::default_instance()
  2333. }
  2334. }
  2335. impl Row {
  2336. pub fn new() -> Row {
  2337. ::std::default::Default::default()
  2338. }
  2339. // string id = 1;
  2340. pub fn get_id(&self) -> &str {
  2341. &self.id
  2342. }
  2343. pub fn clear_id(&mut self) {
  2344. self.id.clear();
  2345. }
  2346. // Param is passed by value, moved
  2347. pub fn set_id(&mut self, v: ::std::string::String) {
  2348. self.id = v;
  2349. }
  2350. // Mutable pointer to the field.
  2351. // If field is not initialized, it is initialized with default value first.
  2352. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  2353. &mut self.id
  2354. }
  2355. // Take field
  2356. pub fn take_id(&mut self) -> ::std::string::String {
  2357. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  2358. }
  2359. // repeated .Row.CellByFieldIdEntry cell_by_field_id = 2;
  2360. pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, Cell> {
  2361. &self.cell_by_field_id
  2362. }
  2363. pub fn clear_cell_by_field_id(&mut self) {
  2364. self.cell_by_field_id.clear();
  2365. }
  2366. // Param is passed by value, moved
  2367. pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, Cell>) {
  2368. self.cell_by_field_id = v;
  2369. }
  2370. // Mutable pointer to the field.
  2371. pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Cell> {
  2372. &mut self.cell_by_field_id
  2373. }
  2374. // Take field
  2375. pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, Cell> {
  2376. ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())
  2377. }
  2378. // int32 height = 3;
  2379. pub fn get_height(&self) -> i32 {
  2380. self.height
  2381. }
  2382. pub fn clear_height(&mut self) {
  2383. self.height = 0;
  2384. }
  2385. // Param is passed by value, moved
  2386. pub fn set_height(&mut self, v: i32) {
  2387. self.height = v;
  2388. }
  2389. }
  2390. impl ::protobuf::Message for Row {
  2391. fn is_initialized(&self) -> bool {
  2392. true
  2393. }
  2394. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2395. while !is.eof()? {
  2396. let (field_number, wire_type) = is.read_tag_unpack()?;
  2397. match field_number {
  2398. 1 => {
  2399. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  2400. },
  2401. 2 => {
  2402. ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(wire_type, is, &mut self.cell_by_field_id)?;
  2403. },
  2404. 3 => {
  2405. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2406. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2407. }
  2408. let tmp = is.read_int32()?;
  2409. self.height = tmp;
  2410. },
  2411. _ => {
  2412. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2413. },
  2414. };
  2415. }
  2416. ::std::result::Result::Ok(())
  2417. }
  2418. // Compute sizes of nested messages
  2419. #[allow(unused_variables)]
  2420. fn compute_size(&self) -> u32 {
  2421. let mut my_size = 0;
  2422. if !self.id.is_empty() {
  2423. my_size += ::protobuf::rt::string_size(1, &self.id);
  2424. }
  2425. my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id);
  2426. if self.height != 0 {
  2427. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  2428. }
  2429. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2430. self.cached_size.set(my_size);
  2431. my_size
  2432. }
  2433. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2434. if !self.id.is_empty() {
  2435. os.write_string(1, &self.id)?;
  2436. }
  2437. ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id, os)?;
  2438. if self.height != 0 {
  2439. os.write_int32(3, self.height)?;
  2440. }
  2441. os.write_unknown_fields(self.get_unknown_fields())?;
  2442. ::std::result::Result::Ok(())
  2443. }
  2444. fn get_cached_size(&self) -> u32 {
  2445. self.cached_size.get()
  2446. }
  2447. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2448. &self.unknown_fields
  2449. }
  2450. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2451. &mut self.unknown_fields
  2452. }
  2453. fn as_any(&self) -> &dyn (::std::any::Any) {
  2454. self as &dyn (::std::any::Any)
  2455. }
  2456. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2457. self as &mut dyn (::std::any::Any)
  2458. }
  2459. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2460. self
  2461. }
  2462. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2463. Self::descriptor_static()
  2464. }
  2465. fn new() -> Row {
  2466. Row::new()
  2467. }
  2468. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2469. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2470. descriptor.get(|| {
  2471. let mut fields = ::std::vec::Vec::new();
  2472. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2473. "id",
  2474. |m: &Row| { &m.id },
  2475. |m: &mut Row| { &mut m.id },
  2476. ));
  2477. fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  2478. "cell_by_field_id",
  2479. |m: &Row| { &m.cell_by_field_id },
  2480. |m: &mut Row| { &mut m.cell_by_field_id },
  2481. ));
  2482. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2483. "height",
  2484. |m: &Row| { &m.height },
  2485. |m: &mut Row| { &mut m.height },
  2486. ));
  2487. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Row>(
  2488. "Row",
  2489. fields,
  2490. file_descriptor_proto()
  2491. )
  2492. })
  2493. }
  2494. fn default_instance() -> &'static Row {
  2495. static instance: ::protobuf::rt::LazyV2<Row> = ::protobuf::rt::LazyV2::INIT;
  2496. instance.get(Row::new)
  2497. }
  2498. }
  2499. impl ::protobuf::Clear for Row {
  2500. fn clear(&mut self) {
  2501. self.id.clear();
  2502. self.cell_by_field_id.clear();
  2503. self.height = 0;
  2504. self.unknown_fields.clear();
  2505. }
  2506. }
  2507. impl ::std::fmt::Debug for Row {
  2508. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2509. ::protobuf::text_format::fmt(self, f)
  2510. }
  2511. }
  2512. impl ::protobuf::reflect::ProtobufValue for Row {
  2513. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2514. ::protobuf::reflect::ReflectValueRef::Message(self)
  2515. }
  2516. }
  2517. #[derive(PartialEq,Clone,Default)]
  2518. pub struct RepeatedRow {
  2519. // message fields
  2520. pub items: ::protobuf::RepeatedField<Row>,
  2521. // special fields
  2522. pub unknown_fields: ::protobuf::UnknownFields,
  2523. pub cached_size: ::protobuf::CachedSize,
  2524. }
  2525. impl<'a> ::std::default::Default for &'a RepeatedRow {
  2526. fn default() -> &'a RepeatedRow {
  2527. <RepeatedRow as ::protobuf::Message>::default_instance()
  2528. }
  2529. }
  2530. impl RepeatedRow {
  2531. pub fn new() -> RepeatedRow {
  2532. ::std::default::Default::default()
  2533. }
  2534. // repeated .Row items = 1;
  2535. pub fn get_items(&self) -> &[Row] {
  2536. &self.items
  2537. }
  2538. pub fn clear_items(&mut self) {
  2539. self.items.clear();
  2540. }
  2541. // Param is passed by value, moved
  2542. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Row>) {
  2543. self.items = v;
  2544. }
  2545. // Mutable pointer to the field.
  2546. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Row> {
  2547. &mut self.items
  2548. }
  2549. // Take field
  2550. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Row> {
  2551. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2552. }
  2553. }
  2554. impl ::protobuf::Message for RepeatedRow {
  2555. fn is_initialized(&self) -> bool {
  2556. for v in &self.items {
  2557. if !v.is_initialized() {
  2558. return false;
  2559. }
  2560. };
  2561. true
  2562. }
  2563. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2564. while !is.eof()? {
  2565. let (field_number, wire_type) = is.read_tag_unpack()?;
  2566. match field_number {
  2567. 1 => {
  2568. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2569. },
  2570. _ => {
  2571. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2572. },
  2573. };
  2574. }
  2575. ::std::result::Result::Ok(())
  2576. }
  2577. // Compute sizes of nested messages
  2578. #[allow(unused_variables)]
  2579. fn compute_size(&self) -> u32 {
  2580. let mut my_size = 0;
  2581. for value in &self.items {
  2582. let len = value.compute_size();
  2583. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2584. };
  2585. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2586. self.cached_size.set(my_size);
  2587. my_size
  2588. }
  2589. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2590. for v in &self.items {
  2591. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2592. os.write_raw_varint32(v.get_cached_size())?;
  2593. v.write_to_with_cached_sizes(os)?;
  2594. };
  2595. os.write_unknown_fields(self.get_unknown_fields())?;
  2596. ::std::result::Result::Ok(())
  2597. }
  2598. fn get_cached_size(&self) -> u32 {
  2599. self.cached_size.get()
  2600. }
  2601. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2602. &self.unknown_fields
  2603. }
  2604. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2605. &mut self.unknown_fields
  2606. }
  2607. fn as_any(&self) -> &dyn (::std::any::Any) {
  2608. self as &dyn (::std::any::Any)
  2609. }
  2610. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2611. self as &mut dyn (::std::any::Any)
  2612. }
  2613. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2614. self
  2615. }
  2616. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2617. Self::descriptor_static()
  2618. }
  2619. fn new() -> RepeatedRow {
  2620. RepeatedRow::new()
  2621. }
  2622. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2623. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2624. descriptor.get(|| {
  2625. let mut fields = ::std::vec::Vec::new();
  2626. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Row>>(
  2627. "items",
  2628. |m: &RepeatedRow| { &m.items },
  2629. |m: &mut RepeatedRow| { &mut m.items },
  2630. ));
  2631. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRow>(
  2632. "RepeatedRow",
  2633. fields,
  2634. file_descriptor_proto()
  2635. )
  2636. })
  2637. }
  2638. fn default_instance() -> &'static RepeatedRow {
  2639. static instance: ::protobuf::rt::LazyV2<RepeatedRow> = ::protobuf::rt::LazyV2::INIT;
  2640. instance.get(RepeatedRow::new)
  2641. }
  2642. }
  2643. impl ::protobuf::Clear for RepeatedRow {
  2644. fn clear(&mut self) {
  2645. self.items.clear();
  2646. self.unknown_fields.clear();
  2647. }
  2648. }
  2649. impl ::std::fmt::Debug for RepeatedRow {
  2650. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2651. ::protobuf::text_format::fmt(self, f)
  2652. }
  2653. }
  2654. impl ::protobuf::reflect::ProtobufValue for RepeatedRow {
  2655. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2656. ::protobuf::reflect::ReflectValueRef::Message(self)
  2657. }
  2658. }
  2659. #[derive(PartialEq,Clone,Default)]
  2660. pub struct RepeatedGridBlock {
  2661. // message fields
  2662. pub items: ::protobuf::RepeatedField<GridBlock>,
  2663. // special fields
  2664. pub unknown_fields: ::protobuf::UnknownFields,
  2665. pub cached_size: ::protobuf::CachedSize,
  2666. }
  2667. impl<'a> ::std::default::Default for &'a RepeatedGridBlock {
  2668. fn default() -> &'a RepeatedGridBlock {
  2669. <RepeatedGridBlock as ::protobuf::Message>::default_instance()
  2670. }
  2671. }
  2672. impl RepeatedGridBlock {
  2673. pub fn new() -> RepeatedGridBlock {
  2674. ::std::default::Default::default()
  2675. }
  2676. // repeated .GridBlock items = 1;
  2677. pub fn get_items(&self) -> &[GridBlock] {
  2678. &self.items
  2679. }
  2680. pub fn clear_items(&mut self) {
  2681. self.items.clear();
  2682. }
  2683. // Param is passed by value, moved
  2684. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<GridBlock>) {
  2685. self.items = v;
  2686. }
  2687. // Mutable pointer to the field.
  2688. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<GridBlock> {
  2689. &mut self.items
  2690. }
  2691. // Take field
  2692. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<GridBlock> {
  2693. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2694. }
  2695. }
  2696. impl ::protobuf::Message for RepeatedGridBlock {
  2697. fn is_initialized(&self) -> bool {
  2698. for v in &self.items {
  2699. if !v.is_initialized() {
  2700. return false;
  2701. }
  2702. };
  2703. true
  2704. }
  2705. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2706. while !is.eof()? {
  2707. let (field_number, wire_type) = is.read_tag_unpack()?;
  2708. match field_number {
  2709. 1 => {
  2710. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2711. },
  2712. _ => {
  2713. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2714. },
  2715. };
  2716. }
  2717. ::std::result::Result::Ok(())
  2718. }
  2719. // Compute sizes of nested messages
  2720. #[allow(unused_variables)]
  2721. fn compute_size(&self) -> u32 {
  2722. let mut my_size = 0;
  2723. for value in &self.items {
  2724. let len = value.compute_size();
  2725. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2726. };
  2727. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2728. self.cached_size.set(my_size);
  2729. my_size
  2730. }
  2731. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2732. for v in &self.items {
  2733. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2734. os.write_raw_varint32(v.get_cached_size())?;
  2735. v.write_to_with_cached_sizes(os)?;
  2736. };
  2737. os.write_unknown_fields(self.get_unknown_fields())?;
  2738. ::std::result::Result::Ok(())
  2739. }
  2740. fn get_cached_size(&self) -> u32 {
  2741. self.cached_size.get()
  2742. }
  2743. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2744. &self.unknown_fields
  2745. }
  2746. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2747. &mut self.unknown_fields
  2748. }
  2749. fn as_any(&self) -> &dyn (::std::any::Any) {
  2750. self as &dyn (::std::any::Any)
  2751. }
  2752. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2753. self as &mut dyn (::std::any::Any)
  2754. }
  2755. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2756. self
  2757. }
  2758. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2759. Self::descriptor_static()
  2760. }
  2761. fn new() -> RepeatedGridBlock {
  2762. RepeatedGridBlock::new()
  2763. }
  2764. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2765. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2766. descriptor.get(|| {
  2767. let mut fields = ::std::vec::Vec::new();
  2768. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlock>>(
  2769. "items",
  2770. |m: &RepeatedGridBlock| { &m.items },
  2771. |m: &mut RepeatedGridBlock| { &mut m.items },
  2772. ));
  2773. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedGridBlock>(
  2774. "RepeatedGridBlock",
  2775. fields,
  2776. file_descriptor_proto()
  2777. )
  2778. })
  2779. }
  2780. fn default_instance() -> &'static RepeatedGridBlock {
  2781. static instance: ::protobuf::rt::LazyV2<RepeatedGridBlock> = ::protobuf::rt::LazyV2::INIT;
  2782. instance.get(RepeatedGridBlock::new)
  2783. }
  2784. }
  2785. impl ::protobuf::Clear for RepeatedGridBlock {
  2786. fn clear(&mut self) {
  2787. self.items.clear();
  2788. self.unknown_fields.clear();
  2789. }
  2790. }
  2791. impl ::std::fmt::Debug for RepeatedGridBlock {
  2792. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2793. ::protobuf::text_format::fmt(self, f)
  2794. }
  2795. }
  2796. impl ::protobuf::reflect::ProtobufValue for RepeatedGridBlock {
  2797. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2798. ::protobuf::reflect::ReflectValueRef::Message(self)
  2799. }
  2800. }
  2801. #[derive(PartialEq,Clone,Default)]
  2802. pub struct GridBlockOrder {
  2803. // message fields
  2804. pub block_id: ::std::string::String,
  2805. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  2806. // special fields
  2807. pub unknown_fields: ::protobuf::UnknownFields,
  2808. pub cached_size: ::protobuf::CachedSize,
  2809. }
  2810. impl<'a> ::std::default::Default for &'a GridBlockOrder {
  2811. fn default() -> &'a GridBlockOrder {
  2812. <GridBlockOrder as ::protobuf::Message>::default_instance()
  2813. }
  2814. }
  2815. impl GridBlockOrder {
  2816. pub fn new() -> GridBlockOrder {
  2817. ::std::default::Default::default()
  2818. }
  2819. // string block_id = 1;
  2820. pub fn get_block_id(&self) -> &str {
  2821. &self.block_id
  2822. }
  2823. pub fn clear_block_id(&mut self) {
  2824. self.block_id.clear();
  2825. }
  2826. // Param is passed by value, moved
  2827. pub fn set_block_id(&mut self, v: ::std::string::String) {
  2828. self.block_id = v;
  2829. }
  2830. // Mutable pointer to the field.
  2831. // If field is not initialized, it is initialized with default value first.
  2832. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  2833. &mut self.block_id
  2834. }
  2835. // Take field
  2836. pub fn take_block_id(&mut self) -> ::std::string::String {
  2837. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  2838. }
  2839. // repeated .RowOrder row_orders = 2;
  2840. pub fn get_row_orders(&self) -> &[RowOrder] {
  2841. &self.row_orders
  2842. }
  2843. pub fn clear_row_orders(&mut self) {
  2844. self.row_orders.clear();
  2845. }
  2846. // Param is passed by value, moved
  2847. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  2848. self.row_orders = v;
  2849. }
  2850. // Mutable pointer to the field.
  2851. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  2852. &mut self.row_orders
  2853. }
  2854. // Take field
  2855. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  2856. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  2857. }
  2858. }
  2859. impl ::protobuf::Message for GridBlockOrder {
  2860. fn is_initialized(&self) -> bool {
  2861. for v in &self.row_orders {
  2862. if !v.is_initialized() {
  2863. return false;
  2864. }
  2865. };
  2866. true
  2867. }
  2868. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2869. while !is.eof()? {
  2870. let (field_number, wire_type) = is.read_tag_unpack()?;
  2871. match field_number {
  2872. 1 => {
  2873. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  2874. },
  2875. 2 => {
  2876. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  2877. },
  2878. _ => {
  2879. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2880. },
  2881. };
  2882. }
  2883. ::std::result::Result::Ok(())
  2884. }
  2885. // Compute sizes of nested messages
  2886. #[allow(unused_variables)]
  2887. fn compute_size(&self) -> u32 {
  2888. let mut my_size = 0;
  2889. if !self.block_id.is_empty() {
  2890. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  2891. }
  2892. for value in &self.row_orders {
  2893. let len = value.compute_size();
  2894. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2895. };
  2896. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2897. self.cached_size.set(my_size);
  2898. my_size
  2899. }
  2900. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2901. if !self.block_id.is_empty() {
  2902. os.write_string(1, &self.block_id)?;
  2903. }
  2904. for v in &self.row_orders {
  2905. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2906. os.write_raw_varint32(v.get_cached_size())?;
  2907. v.write_to_with_cached_sizes(os)?;
  2908. };
  2909. os.write_unknown_fields(self.get_unknown_fields())?;
  2910. ::std::result::Result::Ok(())
  2911. }
  2912. fn get_cached_size(&self) -> u32 {
  2913. self.cached_size.get()
  2914. }
  2915. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2916. &self.unknown_fields
  2917. }
  2918. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2919. &mut self.unknown_fields
  2920. }
  2921. fn as_any(&self) -> &dyn (::std::any::Any) {
  2922. self as &dyn (::std::any::Any)
  2923. }
  2924. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2925. self as &mut dyn (::std::any::Any)
  2926. }
  2927. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2928. self
  2929. }
  2930. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2931. Self::descriptor_static()
  2932. }
  2933. fn new() -> GridBlockOrder {
  2934. GridBlockOrder::new()
  2935. }
  2936. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2937. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2938. descriptor.get(|| {
  2939. let mut fields = ::std::vec::Vec::new();
  2940. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2941. "block_id",
  2942. |m: &GridBlockOrder| { &m.block_id },
  2943. |m: &mut GridBlockOrder| { &mut m.block_id },
  2944. ));
  2945. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  2946. "row_orders",
  2947. |m: &GridBlockOrder| { &m.row_orders },
  2948. |m: &mut GridBlockOrder| { &mut m.row_orders },
  2949. ));
  2950. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockOrder>(
  2951. "GridBlockOrder",
  2952. fields,
  2953. file_descriptor_proto()
  2954. )
  2955. })
  2956. }
  2957. fn default_instance() -> &'static GridBlockOrder {
  2958. static instance: ::protobuf::rt::LazyV2<GridBlockOrder> = ::protobuf::rt::LazyV2::INIT;
  2959. instance.get(GridBlockOrder::new)
  2960. }
  2961. }
  2962. impl ::protobuf::Clear for GridBlockOrder {
  2963. fn clear(&mut self) {
  2964. self.block_id.clear();
  2965. self.row_orders.clear();
  2966. self.unknown_fields.clear();
  2967. }
  2968. }
  2969. impl ::std::fmt::Debug for GridBlockOrder {
  2970. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2971. ::protobuf::text_format::fmt(self, f)
  2972. }
  2973. }
  2974. impl ::protobuf::reflect::ProtobufValue for GridBlockOrder {
  2975. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2976. ::protobuf::reflect::ReflectValueRef::Message(self)
  2977. }
  2978. }
  2979. #[derive(PartialEq,Clone,Default)]
  2980. pub struct IndexRowOrder {
  2981. // message fields
  2982. pub row_order: ::protobuf::SingularPtrField<RowOrder>,
  2983. // message oneof groups
  2984. pub one_of_index: ::std::option::Option<IndexRowOrder_oneof_one_of_index>,
  2985. // special fields
  2986. pub unknown_fields: ::protobuf::UnknownFields,
  2987. pub cached_size: ::protobuf::CachedSize,
  2988. }
  2989. impl<'a> ::std::default::Default for &'a IndexRowOrder {
  2990. fn default() -> &'a IndexRowOrder {
  2991. <IndexRowOrder as ::protobuf::Message>::default_instance()
  2992. }
  2993. }
  2994. #[derive(Clone,PartialEq,Debug)]
  2995. pub enum IndexRowOrder_oneof_one_of_index {
  2996. index(i32),
  2997. }
  2998. impl IndexRowOrder {
  2999. pub fn new() -> IndexRowOrder {
  3000. ::std::default::Default::default()
  3001. }
  3002. // .RowOrder row_order = 1;
  3003. pub fn get_row_order(&self) -> &RowOrder {
  3004. self.row_order.as_ref().unwrap_or_else(|| <RowOrder as ::protobuf::Message>::default_instance())
  3005. }
  3006. pub fn clear_row_order(&mut self) {
  3007. self.row_order.clear();
  3008. }
  3009. pub fn has_row_order(&self) -> bool {
  3010. self.row_order.is_some()
  3011. }
  3012. // Param is passed by value, moved
  3013. pub fn set_row_order(&mut self, v: RowOrder) {
  3014. self.row_order = ::protobuf::SingularPtrField::some(v);
  3015. }
  3016. // Mutable pointer to the field.
  3017. // If field is not initialized, it is initialized with default value first.
  3018. pub fn mut_row_order(&mut self) -> &mut RowOrder {
  3019. if self.row_order.is_none() {
  3020. self.row_order.set_default();
  3021. }
  3022. self.row_order.as_mut().unwrap()
  3023. }
  3024. // Take field
  3025. pub fn take_row_order(&mut self) -> RowOrder {
  3026. self.row_order.take().unwrap_or_else(|| RowOrder::new())
  3027. }
  3028. // int32 index = 2;
  3029. pub fn get_index(&self) -> i32 {
  3030. match self.one_of_index {
  3031. ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(v)) => v,
  3032. _ => 0,
  3033. }
  3034. }
  3035. pub fn clear_index(&mut self) {
  3036. self.one_of_index = ::std::option::Option::None;
  3037. }
  3038. pub fn has_index(&self) -> bool {
  3039. match self.one_of_index {
  3040. ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(..)) => true,
  3041. _ => false,
  3042. }
  3043. }
  3044. // Param is passed by value, moved
  3045. pub fn set_index(&mut self, v: i32) {
  3046. self.one_of_index = ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(v))
  3047. }
  3048. }
  3049. impl ::protobuf::Message for IndexRowOrder {
  3050. fn is_initialized(&self) -> bool {
  3051. for v in &self.row_order {
  3052. if !v.is_initialized() {
  3053. return false;
  3054. }
  3055. };
  3056. true
  3057. }
  3058. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3059. while !is.eof()? {
  3060. let (field_number, wire_type) = is.read_tag_unpack()?;
  3061. match field_number {
  3062. 1 => {
  3063. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row_order)?;
  3064. },
  3065. 2 => {
  3066. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3067. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3068. }
  3069. self.one_of_index = ::std::option::Option::Some(IndexRowOrder_oneof_one_of_index::index(is.read_int32()?));
  3070. },
  3071. _ => {
  3072. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3073. },
  3074. };
  3075. }
  3076. ::std::result::Result::Ok(())
  3077. }
  3078. // Compute sizes of nested messages
  3079. #[allow(unused_variables)]
  3080. fn compute_size(&self) -> u32 {
  3081. let mut my_size = 0;
  3082. if let Some(ref v) = self.row_order.as_ref() {
  3083. let len = v.compute_size();
  3084. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3085. }
  3086. if let ::std::option::Option::Some(ref v) = self.one_of_index {
  3087. match v {
  3088. &IndexRowOrder_oneof_one_of_index::index(v) => {
  3089. my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
  3090. },
  3091. };
  3092. }
  3093. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3094. self.cached_size.set(my_size);
  3095. my_size
  3096. }
  3097. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3098. if let Some(ref v) = self.row_order.as_ref() {
  3099. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3100. os.write_raw_varint32(v.get_cached_size())?;
  3101. v.write_to_with_cached_sizes(os)?;
  3102. }
  3103. if let ::std::option::Option::Some(ref v) = self.one_of_index {
  3104. match v {
  3105. &IndexRowOrder_oneof_one_of_index::index(v) => {
  3106. os.write_int32(2, v)?;
  3107. },
  3108. };
  3109. }
  3110. os.write_unknown_fields(self.get_unknown_fields())?;
  3111. ::std::result::Result::Ok(())
  3112. }
  3113. fn get_cached_size(&self) -> u32 {
  3114. self.cached_size.get()
  3115. }
  3116. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3117. &self.unknown_fields
  3118. }
  3119. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3120. &mut self.unknown_fields
  3121. }
  3122. fn as_any(&self) -> &dyn (::std::any::Any) {
  3123. self as &dyn (::std::any::Any)
  3124. }
  3125. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3126. self as &mut dyn (::std::any::Any)
  3127. }
  3128. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3129. self
  3130. }
  3131. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3132. Self::descriptor_static()
  3133. }
  3134. fn new() -> IndexRowOrder {
  3135. IndexRowOrder::new()
  3136. }
  3137. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3138. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3139. descriptor.get(|| {
  3140. let mut fields = ::std::vec::Vec::new();
  3141. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3142. "row_order",
  3143. |m: &IndexRowOrder| { &m.row_order },
  3144. |m: &mut IndexRowOrder| { &mut m.row_order },
  3145. ));
  3146. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  3147. "index",
  3148. IndexRowOrder::has_index,
  3149. IndexRowOrder::get_index,
  3150. ));
  3151. ::protobuf::reflect::MessageDescriptor::new_pb_name::<IndexRowOrder>(
  3152. "IndexRowOrder",
  3153. fields,
  3154. file_descriptor_proto()
  3155. )
  3156. })
  3157. }
  3158. fn default_instance() -> &'static IndexRowOrder {
  3159. static instance: ::protobuf::rt::LazyV2<IndexRowOrder> = ::protobuf::rt::LazyV2::INIT;
  3160. instance.get(IndexRowOrder::new)
  3161. }
  3162. }
  3163. impl ::protobuf::Clear for IndexRowOrder {
  3164. fn clear(&mut self) {
  3165. self.row_order.clear();
  3166. self.one_of_index = ::std::option::Option::None;
  3167. self.unknown_fields.clear();
  3168. }
  3169. }
  3170. impl ::std::fmt::Debug for IndexRowOrder {
  3171. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3172. ::protobuf::text_format::fmt(self, f)
  3173. }
  3174. }
  3175. impl ::protobuf::reflect::ProtobufValue for IndexRowOrder {
  3176. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3177. ::protobuf::reflect::ReflectValueRef::Message(self)
  3178. }
  3179. }
  3180. #[derive(PartialEq,Clone,Default)]
  3181. pub struct GridRowsChangeset {
  3182. // message fields
  3183. pub block_id: ::std::string::String,
  3184. pub inserted_rows: ::protobuf::RepeatedField<IndexRowOrder>,
  3185. pub deleted_rows: ::protobuf::RepeatedField<RowOrder>,
  3186. pub updated_rows: ::protobuf::RepeatedField<RowOrder>,
  3187. // special fields
  3188. pub unknown_fields: ::protobuf::UnknownFields,
  3189. pub cached_size: ::protobuf::CachedSize,
  3190. }
  3191. impl<'a> ::std::default::Default for &'a GridRowsChangeset {
  3192. fn default() -> &'a GridRowsChangeset {
  3193. <GridRowsChangeset as ::protobuf::Message>::default_instance()
  3194. }
  3195. }
  3196. impl GridRowsChangeset {
  3197. pub fn new() -> GridRowsChangeset {
  3198. ::std::default::Default::default()
  3199. }
  3200. // string block_id = 1;
  3201. pub fn get_block_id(&self) -> &str {
  3202. &self.block_id
  3203. }
  3204. pub fn clear_block_id(&mut self) {
  3205. self.block_id.clear();
  3206. }
  3207. // Param is passed by value, moved
  3208. pub fn set_block_id(&mut self, v: ::std::string::String) {
  3209. self.block_id = v;
  3210. }
  3211. // Mutable pointer to the field.
  3212. // If field is not initialized, it is initialized with default value first.
  3213. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  3214. &mut self.block_id
  3215. }
  3216. // Take field
  3217. pub fn take_block_id(&mut self) -> ::std::string::String {
  3218. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  3219. }
  3220. // repeated .IndexRowOrder inserted_rows = 2;
  3221. pub fn get_inserted_rows(&self) -> &[IndexRowOrder] {
  3222. &self.inserted_rows
  3223. }
  3224. pub fn clear_inserted_rows(&mut self) {
  3225. self.inserted_rows.clear();
  3226. }
  3227. // Param is passed by value, moved
  3228. pub fn set_inserted_rows(&mut self, v: ::protobuf::RepeatedField<IndexRowOrder>) {
  3229. self.inserted_rows = v;
  3230. }
  3231. // Mutable pointer to the field.
  3232. pub fn mut_inserted_rows(&mut self) -> &mut ::protobuf::RepeatedField<IndexRowOrder> {
  3233. &mut self.inserted_rows
  3234. }
  3235. // Take field
  3236. pub fn take_inserted_rows(&mut self) -> ::protobuf::RepeatedField<IndexRowOrder> {
  3237. ::std::mem::replace(&mut self.inserted_rows, ::protobuf::RepeatedField::new())
  3238. }
  3239. // repeated .RowOrder deleted_rows = 3;
  3240. pub fn get_deleted_rows(&self) -> &[RowOrder] {
  3241. &self.deleted_rows
  3242. }
  3243. pub fn clear_deleted_rows(&mut self) {
  3244. self.deleted_rows.clear();
  3245. }
  3246. // Param is passed by value, moved
  3247. pub fn set_deleted_rows(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3248. self.deleted_rows = v;
  3249. }
  3250. // Mutable pointer to the field.
  3251. pub fn mut_deleted_rows(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3252. &mut self.deleted_rows
  3253. }
  3254. // Take field
  3255. pub fn take_deleted_rows(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3256. ::std::mem::replace(&mut self.deleted_rows, ::protobuf::RepeatedField::new())
  3257. }
  3258. // repeated .RowOrder updated_rows = 4;
  3259. pub fn get_updated_rows(&self) -> &[RowOrder] {
  3260. &self.updated_rows
  3261. }
  3262. pub fn clear_updated_rows(&mut self) {
  3263. self.updated_rows.clear();
  3264. }
  3265. // Param is passed by value, moved
  3266. pub fn set_updated_rows(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3267. self.updated_rows = v;
  3268. }
  3269. // Mutable pointer to the field.
  3270. pub fn mut_updated_rows(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3271. &mut self.updated_rows
  3272. }
  3273. // Take field
  3274. pub fn take_updated_rows(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3275. ::std::mem::replace(&mut self.updated_rows, ::protobuf::RepeatedField::new())
  3276. }
  3277. }
  3278. impl ::protobuf::Message for GridRowsChangeset {
  3279. fn is_initialized(&self) -> bool {
  3280. for v in &self.inserted_rows {
  3281. if !v.is_initialized() {
  3282. return false;
  3283. }
  3284. };
  3285. for v in &self.deleted_rows {
  3286. if !v.is_initialized() {
  3287. return false;
  3288. }
  3289. };
  3290. for v in &self.updated_rows {
  3291. if !v.is_initialized() {
  3292. return false;
  3293. }
  3294. };
  3295. true
  3296. }
  3297. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3298. while !is.eof()? {
  3299. let (field_number, wire_type) = is.read_tag_unpack()?;
  3300. match field_number {
  3301. 1 => {
  3302. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  3303. },
  3304. 2 => {
  3305. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inserted_rows)?;
  3306. },
  3307. 3 => {
  3308. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.deleted_rows)?;
  3309. },
  3310. 4 => {
  3311. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.updated_rows)?;
  3312. },
  3313. _ => {
  3314. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3315. },
  3316. };
  3317. }
  3318. ::std::result::Result::Ok(())
  3319. }
  3320. // Compute sizes of nested messages
  3321. #[allow(unused_variables)]
  3322. fn compute_size(&self) -> u32 {
  3323. let mut my_size = 0;
  3324. if !self.block_id.is_empty() {
  3325. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  3326. }
  3327. for value in &self.inserted_rows {
  3328. let len = value.compute_size();
  3329. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3330. };
  3331. for value in &self.deleted_rows {
  3332. let len = value.compute_size();
  3333. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3334. };
  3335. for value in &self.updated_rows {
  3336. let len = value.compute_size();
  3337. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3338. };
  3339. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3340. self.cached_size.set(my_size);
  3341. my_size
  3342. }
  3343. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3344. if !self.block_id.is_empty() {
  3345. os.write_string(1, &self.block_id)?;
  3346. }
  3347. for v in &self.inserted_rows {
  3348. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3349. os.write_raw_varint32(v.get_cached_size())?;
  3350. v.write_to_with_cached_sizes(os)?;
  3351. };
  3352. for v in &self.deleted_rows {
  3353. os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3354. os.write_raw_varint32(v.get_cached_size())?;
  3355. v.write_to_with_cached_sizes(os)?;
  3356. };
  3357. for v in &self.updated_rows {
  3358. os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3359. os.write_raw_varint32(v.get_cached_size())?;
  3360. v.write_to_with_cached_sizes(os)?;
  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() -> GridRowsChangeset {
  3387. GridRowsChangeset::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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3394. "block_id",
  3395. |m: &GridRowsChangeset| { &m.block_id },
  3396. |m: &mut GridRowsChangeset| { &mut m.block_id },
  3397. ));
  3398. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<IndexRowOrder>>(
  3399. "inserted_rows",
  3400. |m: &GridRowsChangeset| { &m.inserted_rows },
  3401. |m: &mut GridRowsChangeset| { &mut m.inserted_rows },
  3402. ));
  3403. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3404. "deleted_rows",
  3405. |m: &GridRowsChangeset| { &m.deleted_rows },
  3406. |m: &mut GridRowsChangeset| { &mut m.deleted_rows },
  3407. ));
  3408. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3409. "updated_rows",
  3410. |m: &GridRowsChangeset| { &m.updated_rows },
  3411. |m: &mut GridRowsChangeset| { &mut m.updated_rows },
  3412. ));
  3413. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridRowsChangeset>(
  3414. "GridRowsChangeset",
  3415. fields,
  3416. file_descriptor_proto()
  3417. )
  3418. })
  3419. }
  3420. fn default_instance() -> &'static GridRowsChangeset {
  3421. static instance: ::protobuf::rt::LazyV2<GridRowsChangeset> = ::protobuf::rt::LazyV2::INIT;
  3422. instance.get(GridRowsChangeset::new)
  3423. }
  3424. }
  3425. impl ::protobuf::Clear for GridRowsChangeset {
  3426. fn clear(&mut self) {
  3427. self.block_id.clear();
  3428. self.inserted_rows.clear();
  3429. self.deleted_rows.clear();
  3430. self.updated_rows.clear();
  3431. self.unknown_fields.clear();
  3432. }
  3433. }
  3434. impl ::std::fmt::Debug for GridRowsChangeset {
  3435. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3436. ::protobuf::text_format::fmt(self, f)
  3437. }
  3438. }
  3439. impl ::protobuf::reflect::ProtobufValue for GridRowsChangeset {
  3440. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3441. ::protobuf::reflect::ReflectValueRef::Message(self)
  3442. }
  3443. }
  3444. #[derive(PartialEq,Clone,Default)]
  3445. pub struct GridBlock {
  3446. // message fields
  3447. pub id: ::std::string::String,
  3448. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  3449. // special fields
  3450. pub unknown_fields: ::protobuf::UnknownFields,
  3451. pub cached_size: ::protobuf::CachedSize,
  3452. }
  3453. impl<'a> ::std::default::Default for &'a GridBlock {
  3454. fn default() -> &'a GridBlock {
  3455. <GridBlock as ::protobuf::Message>::default_instance()
  3456. }
  3457. }
  3458. impl GridBlock {
  3459. pub fn new() -> GridBlock {
  3460. ::std::default::Default::default()
  3461. }
  3462. // string id = 1;
  3463. pub fn get_id(&self) -> &str {
  3464. &self.id
  3465. }
  3466. pub fn clear_id(&mut self) {
  3467. self.id.clear();
  3468. }
  3469. // Param is passed by value, moved
  3470. pub fn set_id(&mut self, v: ::std::string::String) {
  3471. self.id = v;
  3472. }
  3473. // Mutable pointer to the field.
  3474. // If field is not initialized, it is initialized with default value first.
  3475. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  3476. &mut self.id
  3477. }
  3478. // Take field
  3479. pub fn take_id(&mut self) -> ::std::string::String {
  3480. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  3481. }
  3482. // repeated .RowOrder row_orders = 2;
  3483. pub fn get_row_orders(&self) -> &[RowOrder] {
  3484. &self.row_orders
  3485. }
  3486. pub fn clear_row_orders(&mut self) {
  3487. self.row_orders.clear();
  3488. }
  3489. // Param is passed by value, moved
  3490. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  3491. self.row_orders = v;
  3492. }
  3493. // Mutable pointer to the field.
  3494. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  3495. &mut self.row_orders
  3496. }
  3497. // Take field
  3498. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  3499. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  3500. }
  3501. }
  3502. impl ::protobuf::Message for GridBlock {
  3503. fn is_initialized(&self) -> bool {
  3504. for v in &self.row_orders {
  3505. if !v.is_initialized() {
  3506. return false;
  3507. }
  3508. };
  3509. true
  3510. }
  3511. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3512. while !is.eof()? {
  3513. let (field_number, wire_type) = is.read_tag_unpack()?;
  3514. match field_number {
  3515. 1 => {
  3516. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  3517. },
  3518. 2 => {
  3519. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  3520. },
  3521. _ => {
  3522. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3523. },
  3524. };
  3525. }
  3526. ::std::result::Result::Ok(())
  3527. }
  3528. // Compute sizes of nested messages
  3529. #[allow(unused_variables)]
  3530. fn compute_size(&self) -> u32 {
  3531. let mut my_size = 0;
  3532. if !self.id.is_empty() {
  3533. my_size += ::protobuf::rt::string_size(1, &self.id);
  3534. }
  3535. for value in &self.row_orders {
  3536. let len = value.compute_size();
  3537. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3538. };
  3539. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3540. self.cached_size.set(my_size);
  3541. my_size
  3542. }
  3543. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3544. if !self.id.is_empty() {
  3545. os.write_string(1, &self.id)?;
  3546. }
  3547. for v in &self.row_orders {
  3548. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3549. os.write_raw_varint32(v.get_cached_size())?;
  3550. v.write_to_with_cached_sizes(os)?;
  3551. };
  3552. os.write_unknown_fields(self.get_unknown_fields())?;
  3553. ::std::result::Result::Ok(())
  3554. }
  3555. fn get_cached_size(&self) -> u32 {
  3556. self.cached_size.get()
  3557. }
  3558. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3559. &self.unknown_fields
  3560. }
  3561. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3562. &mut self.unknown_fields
  3563. }
  3564. fn as_any(&self) -> &dyn (::std::any::Any) {
  3565. self as &dyn (::std::any::Any)
  3566. }
  3567. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3568. self as &mut dyn (::std::any::Any)
  3569. }
  3570. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3571. self
  3572. }
  3573. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3574. Self::descriptor_static()
  3575. }
  3576. fn new() -> GridBlock {
  3577. GridBlock::new()
  3578. }
  3579. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3580. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3581. descriptor.get(|| {
  3582. let mut fields = ::std::vec::Vec::new();
  3583. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3584. "id",
  3585. |m: &GridBlock| { &m.id },
  3586. |m: &mut GridBlock| { &mut m.id },
  3587. ));
  3588. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  3589. "row_orders",
  3590. |m: &GridBlock| { &m.row_orders },
  3591. |m: &mut GridBlock| { &mut m.row_orders },
  3592. ));
  3593. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlock>(
  3594. "GridBlock",
  3595. fields,
  3596. file_descriptor_proto()
  3597. )
  3598. })
  3599. }
  3600. fn default_instance() -> &'static GridBlock {
  3601. static instance: ::protobuf::rt::LazyV2<GridBlock> = ::protobuf::rt::LazyV2::INIT;
  3602. instance.get(GridBlock::new)
  3603. }
  3604. }
  3605. impl ::protobuf::Clear for GridBlock {
  3606. fn clear(&mut self) {
  3607. self.id.clear();
  3608. self.row_orders.clear();
  3609. self.unknown_fields.clear();
  3610. }
  3611. }
  3612. impl ::std::fmt::Debug for GridBlock {
  3613. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3614. ::protobuf::text_format::fmt(self, f)
  3615. }
  3616. }
  3617. impl ::protobuf::reflect::ProtobufValue for GridBlock {
  3618. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3619. ::protobuf::reflect::ReflectValueRef::Message(self)
  3620. }
  3621. }
  3622. #[derive(PartialEq,Clone,Default)]
  3623. pub struct Cell {
  3624. // message fields
  3625. pub field_id: ::std::string::String,
  3626. pub content: ::std::string::String,
  3627. // special fields
  3628. pub unknown_fields: ::protobuf::UnknownFields,
  3629. pub cached_size: ::protobuf::CachedSize,
  3630. }
  3631. impl<'a> ::std::default::Default for &'a Cell {
  3632. fn default() -> &'a Cell {
  3633. <Cell as ::protobuf::Message>::default_instance()
  3634. }
  3635. }
  3636. impl Cell {
  3637. pub fn new() -> Cell {
  3638. ::std::default::Default::default()
  3639. }
  3640. // string field_id = 1;
  3641. pub fn get_field_id(&self) -> &str {
  3642. &self.field_id
  3643. }
  3644. pub fn clear_field_id(&mut self) {
  3645. self.field_id.clear();
  3646. }
  3647. // Param is passed by value, moved
  3648. pub fn set_field_id(&mut self, v: ::std::string::String) {
  3649. self.field_id = v;
  3650. }
  3651. // Mutable pointer to the field.
  3652. // If field is not initialized, it is initialized with default value first.
  3653. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  3654. &mut self.field_id
  3655. }
  3656. // Take field
  3657. pub fn take_field_id(&mut self) -> ::std::string::String {
  3658. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  3659. }
  3660. // string content = 2;
  3661. pub fn get_content(&self) -> &str {
  3662. &self.content
  3663. }
  3664. pub fn clear_content(&mut self) {
  3665. self.content.clear();
  3666. }
  3667. // Param is passed by value, moved
  3668. pub fn set_content(&mut self, v: ::std::string::String) {
  3669. self.content = v;
  3670. }
  3671. // Mutable pointer to the field.
  3672. // If field is not initialized, it is initialized with default value first.
  3673. pub fn mut_content(&mut self) -> &mut ::std::string::String {
  3674. &mut self.content
  3675. }
  3676. // Take field
  3677. pub fn take_content(&mut self) -> ::std::string::String {
  3678. ::std::mem::replace(&mut self.content, ::std::string::String::new())
  3679. }
  3680. }
  3681. impl ::protobuf::Message for Cell {
  3682. fn is_initialized(&self) -> bool {
  3683. true
  3684. }
  3685. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3686. while !is.eof()? {
  3687. let (field_number, wire_type) = is.read_tag_unpack()?;
  3688. match field_number {
  3689. 1 => {
  3690. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  3691. },
  3692. 2 => {
  3693. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?;
  3694. },
  3695. _ => {
  3696. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3697. },
  3698. };
  3699. }
  3700. ::std::result::Result::Ok(())
  3701. }
  3702. // Compute sizes of nested messages
  3703. #[allow(unused_variables)]
  3704. fn compute_size(&self) -> u32 {
  3705. let mut my_size = 0;
  3706. if !self.field_id.is_empty() {
  3707. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  3708. }
  3709. if !self.content.is_empty() {
  3710. my_size += ::protobuf::rt::string_size(2, &self.content);
  3711. }
  3712. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3713. self.cached_size.set(my_size);
  3714. my_size
  3715. }
  3716. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3717. if !self.field_id.is_empty() {
  3718. os.write_string(1, &self.field_id)?;
  3719. }
  3720. if !self.content.is_empty() {
  3721. os.write_string(2, &self.content)?;
  3722. }
  3723. os.write_unknown_fields(self.get_unknown_fields())?;
  3724. ::std::result::Result::Ok(())
  3725. }
  3726. fn get_cached_size(&self) -> u32 {
  3727. self.cached_size.get()
  3728. }
  3729. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3730. &self.unknown_fields
  3731. }
  3732. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3733. &mut self.unknown_fields
  3734. }
  3735. fn as_any(&self) -> &dyn (::std::any::Any) {
  3736. self as &dyn (::std::any::Any)
  3737. }
  3738. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3739. self as &mut dyn (::std::any::Any)
  3740. }
  3741. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3742. self
  3743. }
  3744. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3745. Self::descriptor_static()
  3746. }
  3747. fn new() -> Cell {
  3748. Cell::new()
  3749. }
  3750. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3751. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3752. descriptor.get(|| {
  3753. let mut fields = ::std::vec::Vec::new();
  3754. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3755. "field_id",
  3756. |m: &Cell| { &m.field_id },
  3757. |m: &mut Cell| { &mut m.field_id },
  3758. ));
  3759. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3760. "content",
  3761. |m: &Cell| { &m.content },
  3762. |m: &mut Cell| { &mut m.content },
  3763. ));
  3764. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Cell>(
  3765. "Cell",
  3766. fields,
  3767. file_descriptor_proto()
  3768. )
  3769. })
  3770. }
  3771. fn default_instance() -> &'static Cell {
  3772. static instance: ::protobuf::rt::LazyV2<Cell> = ::protobuf::rt::LazyV2::INIT;
  3773. instance.get(Cell::new)
  3774. }
  3775. }
  3776. impl ::protobuf::Clear for Cell {
  3777. fn clear(&mut self) {
  3778. self.field_id.clear();
  3779. self.content.clear();
  3780. self.unknown_fields.clear();
  3781. }
  3782. }
  3783. impl ::std::fmt::Debug for Cell {
  3784. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3785. ::protobuf::text_format::fmt(self, f)
  3786. }
  3787. }
  3788. impl ::protobuf::reflect::ProtobufValue for Cell {
  3789. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3790. ::protobuf::reflect::ReflectValueRef::Message(self)
  3791. }
  3792. }
  3793. #[derive(PartialEq,Clone,Default)]
  3794. pub struct CellNotificationData {
  3795. // message fields
  3796. pub grid_id: ::std::string::String,
  3797. pub field_id: ::std::string::String,
  3798. pub row_id: ::std::string::String,
  3799. // message oneof groups
  3800. pub one_of_content: ::std::option::Option<CellNotificationData_oneof_one_of_content>,
  3801. // special fields
  3802. pub unknown_fields: ::protobuf::UnknownFields,
  3803. pub cached_size: ::protobuf::CachedSize,
  3804. }
  3805. impl<'a> ::std::default::Default for &'a CellNotificationData {
  3806. fn default() -> &'a CellNotificationData {
  3807. <CellNotificationData as ::protobuf::Message>::default_instance()
  3808. }
  3809. }
  3810. #[derive(Clone,PartialEq,Debug)]
  3811. pub enum CellNotificationData_oneof_one_of_content {
  3812. content(::std::string::String),
  3813. }
  3814. impl CellNotificationData {
  3815. pub fn new() -> CellNotificationData {
  3816. ::std::default::Default::default()
  3817. }
  3818. // string grid_id = 1;
  3819. pub fn get_grid_id(&self) -> &str {
  3820. &self.grid_id
  3821. }
  3822. pub fn clear_grid_id(&mut self) {
  3823. self.grid_id.clear();
  3824. }
  3825. // Param is passed by value, moved
  3826. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  3827. self.grid_id = v;
  3828. }
  3829. // Mutable pointer to the field.
  3830. // If field is not initialized, it is initialized with default value first.
  3831. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  3832. &mut self.grid_id
  3833. }
  3834. // Take field
  3835. pub fn take_grid_id(&mut self) -> ::std::string::String {
  3836. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  3837. }
  3838. // string field_id = 2;
  3839. pub fn get_field_id(&self) -> &str {
  3840. &self.field_id
  3841. }
  3842. pub fn clear_field_id(&mut self) {
  3843. self.field_id.clear();
  3844. }
  3845. // Param is passed by value, moved
  3846. pub fn set_field_id(&mut self, v: ::std::string::String) {
  3847. self.field_id = v;
  3848. }
  3849. // Mutable pointer to the field.
  3850. // If field is not initialized, it is initialized with default value first.
  3851. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  3852. &mut self.field_id
  3853. }
  3854. // Take field
  3855. pub fn take_field_id(&mut self) -> ::std::string::String {
  3856. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  3857. }
  3858. // string row_id = 3;
  3859. pub fn get_row_id(&self) -> &str {
  3860. &self.row_id
  3861. }
  3862. pub fn clear_row_id(&mut self) {
  3863. self.row_id.clear();
  3864. }
  3865. // Param is passed by value, moved
  3866. pub fn set_row_id(&mut self, v: ::std::string::String) {
  3867. self.row_id = v;
  3868. }
  3869. // Mutable pointer to the field.
  3870. // If field is not initialized, it is initialized with default value first.
  3871. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  3872. &mut self.row_id
  3873. }
  3874. // Take field
  3875. pub fn take_row_id(&mut self) -> ::std::string::String {
  3876. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  3877. }
  3878. // string content = 4;
  3879. pub fn get_content(&self) -> &str {
  3880. match self.one_of_content {
  3881. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(ref v)) => v,
  3882. _ => "",
  3883. }
  3884. }
  3885. pub fn clear_content(&mut self) {
  3886. self.one_of_content = ::std::option::Option::None;
  3887. }
  3888. pub fn has_content(&self) -> bool {
  3889. match self.one_of_content {
  3890. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(..)) => true,
  3891. _ => false,
  3892. }
  3893. }
  3894. // Param is passed by value, moved
  3895. pub fn set_content(&mut self, v: ::std::string::String) {
  3896. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(v))
  3897. }
  3898. // Mutable pointer to the field.
  3899. pub fn mut_content(&mut self) -> &mut ::std::string::String {
  3900. if let ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(_)) = self.one_of_content {
  3901. } else {
  3902. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(::std::string::String::new()));
  3903. }
  3904. match self.one_of_content {
  3905. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(ref mut v)) => v,
  3906. _ => panic!(),
  3907. }
  3908. }
  3909. // Take field
  3910. pub fn take_content(&mut self) -> ::std::string::String {
  3911. if self.has_content() {
  3912. match self.one_of_content.take() {
  3913. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(v)) => v,
  3914. _ => panic!(),
  3915. }
  3916. } else {
  3917. ::std::string::String::new()
  3918. }
  3919. }
  3920. }
  3921. impl ::protobuf::Message for CellNotificationData {
  3922. fn is_initialized(&self) -> bool {
  3923. true
  3924. }
  3925. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3926. while !is.eof()? {
  3927. let (field_number, wire_type) = is.read_tag_unpack()?;
  3928. match field_number {
  3929. 1 => {
  3930. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  3931. },
  3932. 2 => {
  3933. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  3934. },
  3935. 3 => {
  3936. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  3937. },
  3938. 4 => {
  3939. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  3940. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3941. }
  3942. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(is.read_string()?));
  3943. },
  3944. _ => {
  3945. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3946. },
  3947. };
  3948. }
  3949. ::std::result::Result::Ok(())
  3950. }
  3951. // Compute sizes of nested messages
  3952. #[allow(unused_variables)]
  3953. fn compute_size(&self) -> u32 {
  3954. let mut my_size = 0;
  3955. if !self.grid_id.is_empty() {
  3956. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  3957. }
  3958. if !self.field_id.is_empty() {
  3959. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  3960. }
  3961. if !self.row_id.is_empty() {
  3962. my_size += ::protobuf::rt::string_size(3, &self.row_id);
  3963. }
  3964. if let ::std::option::Option::Some(ref v) = self.one_of_content {
  3965. match v {
  3966. &CellNotificationData_oneof_one_of_content::content(ref v) => {
  3967. my_size += ::protobuf::rt::string_size(4, &v);
  3968. },
  3969. };
  3970. }
  3971. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3972. self.cached_size.set(my_size);
  3973. my_size
  3974. }
  3975. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3976. if !self.grid_id.is_empty() {
  3977. os.write_string(1, &self.grid_id)?;
  3978. }
  3979. if !self.field_id.is_empty() {
  3980. os.write_string(2, &self.field_id)?;
  3981. }
  3982. if !self.row_id.is_empty() {
  3983. os.write_string(3, &self.row_id)?;
  3984. }
  3985. if let ::std::option::Option::Some(ref v) = self.one_of_content {
  3986. match v {
  3987. &CellNotificationData_oneof_one_of_content::content(ref v) => {
  3988. os.write_string(4, v)?;
  3989. },
  3990. };
  3991. }
  3992. os.write_unknown_fields(self.get_unknown_fields())?;
  3993. ::std::result::Result::Ok(())
  3994. }
  3995. fn get_cached_size(&self) -> u32 {
  3996. self.cached_size.get()
  3997. }
  3998. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3999. &self.unknown_fields
  4000. }
  4001. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4002. &mut self.unknown_fields
  4003. }
  4004. fn as_any(&self) -> &dyn (::std::any::Any) {
  4005. self as &dyn (::std::any::Any)
  4006. }
  4007. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4008. self as &mut dyn (::std::any::Any)
  4009. }
  4010. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4011. self
  4012. }
  4013. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4014. Self::descriptor_static()
  4015. }
  4016. fn new() -> CellNotificationData {
  4017. CellNotificationData::new()
  4018. }
  4019. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4020. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4021. descriptor.get(|| {
  4022. let mut fields = ::std::vec::Vec::new();
  4023. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4024. "grid_id",
  4025. |m: &CellNotificationData| { &m.grid_id },
  4026. |m: &mut CellNotificationData| { &mut m.grid_id },
  4027. ));
  4028. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4029. "field_id",
  4030. |m: &CellNotificationData| { &m.field_id },
  4031. |m: &mut CellNotificationData| { &mut m.field_id },
  4032. ));
  4033. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4034. "row_id",
  4035. |m: &CellNotificationData| { &m.row_id },
  4036. |m: &mut CellNotificationData| { &mut m.row_id },
  4037. ));
  4038. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  4039. "content",
  4040. CellNotificationData::has_content,
  4041. CellNotificationData::get_content,
  4042. ));
  4043. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellNotificationData>(
  4044. "CellNotificationData",
  4045. fields,
  4046. file_descriptor_proto()
  4047. )
  4048. })
  4049. }
  4050. fn default_instance() -> &'static CellNotificationData {
  4051. static instance: ::protobuf::rt::LazyV2<CellNotificationData> = ::protobuf::rt::LazyV2::INIT;
  4052. instance.get(CellNotificationData::new)
  4053. }
  4054. }
  4055. impl ::protobuf::Clear for CellNotificationData {
  4056. fn clear(&mut self) {
  4057. self.grid_id.clear();
  4058. self.field_id.clear();
  4059. self.row_id.clear();
  4060. self.one_of_content = ::std::option::Option::None;
  4061. self.unknown_fields.clear();
  4062. }
  4063. }
  4064. impl ::std::fmt::Debug for CellNotificationData {
  4065. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4066. ::protobuf::text_format::fmt(self, f)
  4067. }
  4068. }
  4069. impl ::protobuf::reflect::ProtobufValue for CellNotificationData {
  4070. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4071. ::protobuf::reflect::ReflectValueRef::Message(self)
  4072. }
  4073. }
  4074. #[derive(PartialEq,Clone,Default)]
  4075. pub struct RepeatedCell {
  4076. // message fields
  4077. pub items: ::protobuf::RepeatedField<Cell>,
  4078. // special fields
  4079. pub unknown_fields: ::protobuf::UnknownFields,
  4080. pub cached_size: ::protobuf::CachedSize,
  4081. }
  4082. impl<'a> ::std::default::Default for &'a RepeatedCell {
  4083. fn default() -> &'a RepeatedCell {
  4084. <RepeatedCell as ::protobuf::Message>::default_instance()
  4085. }
  4086. }
  4087. impl RepeatedCell {
  4088. pub fn new() -> RepeatedCell {
  4089. ::std::default::Default::default()
  4090. }
  4091. // repeated .Cell items = 1;
  4092. pub fn get_items(&self) -> &[Cell] {
  4093. &self.items
  4094. }
  4095. pub fn clear_items(&mut self) {
  4096. self.items.clear();
  4097. }
  4098. // Param is passed by value, moved
  4099. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Cell>) {
  4100. self.items = v;
  4101. }
  4102. // Mutable pointer to the field.
  4103. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Cell> {
  4104. &mut self.items
  4105. }
  4106. // Take field
  4107. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Cell> {
  4108. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  4109. }
  4110. }
  4111. impl ::protobuf::Message for RepeatedCell {
  4112. fn is_initialized(&self) -> bool {
  4113. for v in &self.items {
  4114. if !v.is_initialized() {
  4115. return false;
  4116. }
  4117. };
  4118. true
  4119. }
  4120. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4121. while !is.eof()? {
  4122. let (field_number, wire_type) = is.read_tag_unpack()?;
  4123. match field_number {
  4124. 1 => {
  4125. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  4126. },
  4127. _ => {
  4128. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4129. },
  4130. };
  4131. }
  4132. ::std::result::Result::Ok(())
  4133. }
  4134. // Compute sizes of nested messages
  4135. #[allow(unused_variables)]
  4136. fn compute_size(&self) -> u32 {
  4137. let mut my_size = 0;
  4138. for value in &self.items {
  4139. let len = value.compute_size();
  4140. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4141. };
  4142. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4143. self.cached_size.set(my_size);
  4144. my_size
  4145. }
  4146. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4147. for v in &self.items {
  4148. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4149. os.write_raw_varint32(v.get_cached_size())?;
  4150. v.write_to_with_cached_sizes(os)?;
  4151. };
  4152. os.write_unknown_fields(self.get_unknown_fields())?;
  4153. ::std::result::Result::Ok(())
  4154. }
  4155. fn get_cached_size(&self) -> u32 {
  4156. self.cached_size.get()
  4157. }
  4158. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4159. &self.unknown_fields
  4160. }
  4161. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4162. &mut self.unknown_fields
  4163. }
  4164. fn as_any(&self) -> &dyn (::std::any::Any) {
  4165. self as &dyn (::std::any::Any)
  4166. }
  4167. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4168. self as &mut dyn (::std::any::Any)
  4169. }
  4170. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4171. self
  4172. }
  4173. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4174. Self::descriptor_static()
  4175. }
  4176. fn new() -> RepeatedCell {
  4177. RepeatedCell::new()
  4178. }
  4179. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4180. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4181. descriptor.get(|| {
  4182. let mut fields = ::std::vec::Vec::new();
  4183. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  4184. "items",
  4185. |m: &RepeatedCell| { &m.items },
  4186. |m: &mut RepeatedCell| { &mut m.items },
  4187. ));
  4188. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedCell>(
  4189. "RepeatedCell",
  4190. fields,
  4191. file_descriptor_proto()
  4192. )
  4193. })
  4194. }
  4195. fn default_instance() -> &'static RepeatedCell {
  4196. static instance: ::protobuf::rt::LazyV2<RepeatedCell> = ::protobuf::rt::LazyV2::INIT;
  4197. instance.get(RepeatedCell::new)
  4198. }
  4199. }
  4200. impl ::protobuf::Clear for RepeatedCell {
  4201. fn clear(&mut self) {
  4202. self.items.clear();
  4203. self.unknown_fields.clear();
  4204. }
  4205. }
  4206. impl ::std::fmt::Debug for RepeatedCell {
  4207. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4208. ::protobuf::text_format::fmt(self, f)
  4209. }
  4210. }
  4211. impl ::protobuf::reflect::ProtobufValue for RepeatedCell {
  4212. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4213. ::protobuf::reflect::ReflectValueRef::Message(self)
  4214. }
  4215. }
  4216. #[derive(PartialEq,Clone,Default)]
  4217. pub struct CreateGridPayload {
  4218. // message fields
  4219. pub name: ::std::string::String,
  4220. // special fields
  4221. pub unknown_fields: ::protobuf::UnknownFields,
  4222. pub cached_size: ::protobuf::CachedSize,
  4223. }
  4224. impl<'a> ::std::default::Default for &'a CreateGridPayload {
  4225. fn default() -> &'a CreateGridPayload {
  4226. <CreateGridPayload as ::protobuf::Message>::default_instance()
  4227. }
  4228. }
  4229. impl CreateGridPayload {
  4230. pub fn new() -> CreateGridPayload {
  4231. ::std::default::Default::default()
  4232. }
  4233. // string name = 1;
  4234. pub fn get_name(&self) -> &str {
  4235. &self.name
  4236. }
  4237. pub fn clear_name(&mut self) {
  4238. self.name.clear();
  4239. }
  4240. // Param is passed by value, moved
  4241. pub fn set_name(&mut self, v: ::std::string::String) {
  4242. self.name = v;
  4243. }
  4244. // Mutable pointer to the field.
  4245. // If field is not initialized, it is initialized with default value first.
  4246. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  4247. &mut self.name
  4248. }
  4249. // Take field
  4250. pub fn take_name(&mut self) -> ::std::string::String {
  4251. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  4252. }
  4253. }
  4254. impl ::protobuf::Message for CreateGridPayload {
  4255. fn is_initialized(&self) -> bool {
  4256. true
  4257. }
  4258. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4259. while !is.eof()? {
  4260. let (field_number, wire_type) = is.read_tag_unpack()?;
  4261. match field_number {
  4262. 1 => {
  4263. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  4264. },
  4265. _ => {
  4266. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4267. },
  4268. };
  4269. }
  4270. ::std::result::Result::Ok(())
  4271. }
  4272. // Compute sizes of nested messages
  4273. #[allow(unused_variables)]
  4274. fn compute_size(&self) -> u32 {
  4275. let mut my_size = 0;
  4276. if !self.name.is_empty() {
  4277. my_size += ::protobuf::rt::string_size(1, &self.name);
  4278. }
  4279. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4280. self.cached_size.set(my_size);
  4281. my_size
  4282. }
  4283. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4284. if !self.name.is_empty() {
  4285. os.write_string(1, &self.name)?;
  4286. }
  4287. os.write_unknown_fields(self.get_unknown_fields())?;
  4288. ::std::result::Result::Ok(())
  4289. }
  4290. fn get_cached_size(&self) -> u32 {
  4291. self.cached_size.get()
  4292. }
  4293. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4294. &self.unknown_fields
  4295. }
  4296. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4297. &mut self.unknown_fields
  4298. }
  4299. fn as_any(&self) -> &dyn (::std::any::Any) {
  4300. self as &dyn (::std::any::Any)
  4301. }
  4302. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4303. self as &mut dyn (::std::any::Any)
  4304. }
  4305. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4306. self
  4307. }
  4308. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4309. Self::descriptor_static()
  4310. }
  4311. fn new() -> CreateGridPayload {
  4312. CreateGridPayload::new()
  4313. }
  4314. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4315. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4316. descriptor.get(|| {
  4317. let mut fields = ::std::vec::Vec::new();
  4318. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4319. "name",
  4320. |m: &CreateGridPayload| { &m.name },
  4321. |m: &mut CreateGridPayload| { &mut m.name },
  4322. ));
  4323. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateGridPayload>(
  4324. "CreateGridPayload",
  4325. fields,
  4326. file_descriptor_proto()
  4327. )
  4328. })
  4329. }
  4330. fn default_instance() -> &'static CreateGridPayload {
  4331. static instance: ::protobuf::rt::LazyV2<CreateGridPayload> = ::protobuf::rt::LazyV2::INIT;
  4332. instance.get(CreateGridPayload::new)
  4333. }
  4334. }
  4335. impl ::protobuf::Clear for CreateGridPayload {
  4336. fn clear(&mut self) {
  4337. self.name.clear();
  4338. self.unknown_fields.clear();
  4339. }
  4340. }
  4341. impl ::std::fmt::Debug for CreateGridPayload {
  4342. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4343. ::protobuf::text_format::fmt(self, f)
  4344. }
  4345. }
  4346. impl ::protobuf::reflect::ProtobufValue for CreateGridPayload {
  4347. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4348. ::protobuf::reflect::ReflectValueRef::Message(self)
  4349. }
  4350. }
  4351. #[derive(PartialEq,Clone,Default)]
  4352. pub struct GridId {
  4353. // message fields
  4354. pub value: ::std::string::String,
  4355. // special fields
  4356. pub unknown_fields: ::protobuf::UnknownFields,
  4357. pub cached_size: ::protobuf::CachedSize,
  4358. }
  4359. impl<'a> ::std::default::Default for &'a GridId {
  4360. fn default() -> &'a GridId {
  4361. <GridId as ::protobuf::Message>::default_instance()
  4362. }
  4363. }
  4364. impl GridId {
  4365. pub fn new() -> GridId {
  4366. ::std::default::Default::default()
  4367. }
  4368. // string value = 1;
  4369. pub fn get_value(&self) -> &str {
  4370. &self.value
  4371. }
  4372. pub fn clear_value(&mut self) {
  4373. self.value.clear();
  4374. }
  4375. // Param is passed by value, moved
  4376. pub fn set_value(&mut self, v: ::std::string::String) {
  4377. self.value = v;
  4378. }
  4379. // Mutable pointer to the field.
  4380. // If field is not initialized, it is initialized with default value first.
  4381. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  4382. &mut self.value
  4383. }
  4384. // Take field
  4385. pub fn take_value(&mut self) -> ::std::string::String {
  4386. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  4387. }
  4388. }
  4389. impl ::protobuf::Message for GridId {
  4390. fn is_initialized(&self) -> bool {
  4391. true
  4392. }
  4393. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4394. while !is.eof()? {
  4395. let (field_number, wire_type) = is.read_tag_unpack()?;
  4396. match field_number {
  4397. 1 => {
  4398. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  4399. },
  4400. _ => {
  4401. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4402. },
  4403. };
  4404. }
  4405. ::std::result::Result::Ok(())
  4406. }
  4407. // Compute sizes of nested messages
  4408. #[allow(unused_variables)]
  4409. fn compute_size(&self) -> u32 {
  4410. let mut my_size = 0;
  4411. if !self.value.is_empty() {
  4412. my_size += ::protobuf::rt::string_size(1, &self.value);
  4413. }
  4414. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4415. self.cached_size.set(my_size);
  4416. my_size
  4417. }
  4418. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4419. if !self.value.is_empty() {
  4420. os.write_string(1, &self.value)?;
  4421. }
  4422. os.write_unknown_fields(self.get_unknown_fields())?;
  4423. ::std::result::Result::Ok(())
  4424. }
  4425. fn get_cached_size(&self) -> u32 {
  4426. self.cached_size.get()
  4427. }
  4428. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4429. &self.unknown_fields
  4430. }
  4431. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4432. &mut self.unknown_fields
  4433. }
  4434. fn as_any(&self) -> &dyn (::std::any::Any) {
  4435. self as &dyn (::std::any::Any)
  4436. }
  4437. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4438. self as &mut dyn (::std::any::Any)
  4439. }
  4440. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4441. self
  4442. }
  4443. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4444. Self::descriptor_static()
  4445. }
  4446. fn new() -> GridId {
  4447. GridId::new()
  4448. }
  4449. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4450. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4451. descriptor.get(|| {
  4452. let mut fields = ::std::vec::Vec::new();
  4453. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4454. "value",
  4455. |m: &GridId| { &m.value },
  4456. |m: &mut GridId| { &mut m.value },
  4457. ));
  4458. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridId>(
  4459. "GridId",
  4460. fields,
  4461. file_descriptor_proto()
  4462. )
  4463. })
  4464. }
  4465. fn default_instance() -> &'static GridId {
  4466. static instance: ::protobuf::rt::LazyV2<GridId> = ::protobuf::rt::LazyV2::INIT;
  4467. instance.get(GridId::new)
  4468. }
  4469. }
  4470. impl ::protobuf::Clear for GridId {
  4471. fn clear(&mut self) {
  4472. self.value.clear();
  4473. self.unknown_fields.clear();
  4474. }
  4475. }
  4476. impl ::std::fmt::Debug for GridId {
  4477. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4478. ::protobuf::text_format::fmt(self, f)
  4479. }
  4480. }
  4481. impl ::protobuf::reflect::ProtobufValue for GridId {
  4482. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4483. ::protobuf::reflect::ReflectValueRef::Message(self)
  4484. }
  4485. }
  4486. #[derive(PartialEq,Clone,Default)]
  4487. pub struct GridBlockId {
  4488. // message fields
  4489. pub value: ::std::string::String,
  4490. // special fields
  4491. pub unknown_fields: ::protobuf::UnknownFields,
  4492. pub cached_size: ::protobuf::CachedSize,
  4493. }
  4494. impl<'a> ::std::default::Default for &'a GridBlockId {
  4495. fn default() -> &'a GridBlockId {
  4496. <GridBlockId as ::protobuf::Message>::default_instance()
  4497. }
  4498. }
  4499. impl GridBlockId {
  4500. pub fn new() -> GridBlockId {
  4501. ::std::default::Default::default()
  4502. }
  4503. // string value = 1;
  4504. pub fn get_value(&self) -> &str {
  4505. &self.value
  4506. }
  4507. pub fn clear_value(&mut self) {
  4508. self.value.clear();
  4509. }
  4510. // Param is passed by value, moved
  4511. pub fn set_value(&mut self, v: ::std::string::String) {
  4512. self.value = v;
  4513. }
  4514. // Mutable pointer to the field.
  4515. // If field is not initialized, it is initialized with default value first.
  4516. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  4517. &mut self.value
  4518. }
  4519. // Take field
  4520. pub fn take_value(&mut self) -> ::std::string::String {
  4521. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  4522. }
  4523. }
  4524. impl ::protobuf::Message for GridBlockId {
  4525. fn is_initialized(&self) -> bool {
  4526. true
  4527. }
  4528. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4529. while !is.eof()? {
  4530. let (field_number, wire_type) = is.read_tag_unpack()?;
  4531. match field_number {
  4532. 1 => {
  4533. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  4534. },
  4535. _ => {
  4536. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4537. },
  4538. };
  4539. }
  4540. ::std::result::Result::Ok(())
  4541. }
  4542. // Compute sizes of nested messages
  4543. #[allow(unused_variables)]
  4544. fn compute_size(&self) -> u32 {
  4545. let mut my_size = 0;
  4546. if !self.value.is_empty() {
  4547. my_size += ::protobuf::rt::string_size(1, &self.value);
  4548. }
  4549. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4550. self.cached_size.set(my_size);
  4551. my_size
  4552. }
  4553. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4554. if !self.value.is_empty() {
  4555. os.write_string(1, &self.value)?;
  4556. }
  4557. os.write_unknown_fields(self.get_unknown_fields())?;
  4558. ::std::result::Result::Ok(())
  4559. }
  4560. fn get_cached_size(&self) -> u32 {
  4561. self.cached_size.get()
  4562. }
  4563. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4564. &self.unknown_fields
  4565. }
  4566. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4567. &mut self.unknown_fields
  4568. }
  4569. fn as_any(&self) -> &dyn (::std::any::Any) {
  4570. self as &dyn (::std::any::Any)
  4571. }
  4572. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4573. self as &mut dyn (::std::any::Any)
  4574. }
  4575. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4576. self
  4577. }
  4578. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4579. Self::descriptor_static()
  4580. }
  4581. fn new() -> GridBlockId {
  4582. GridBlockId::new()
  4583. }
  4584. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4585. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4586. descriptor.get(|| {
  4587. let mut fields = ::std::vec::Vec::new();
  4588. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4589. "value",
  4590. |m: &GridBlockId| { &m.value },
  4591. |m: &mut GridBlockId| { &mut m.value },
  4592. ));
  4593. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockId>(
  4594. "GridBlockId",
  4595. fields,
  4596. file_descriptor_proto()
  4597. )
  4598. })
  4599. }
  4600. fn default_instance() -> &'static GridBlockId {
  4601. static instance: ::protobuf::rt::LazyV2<GridBlockId> = ::protobuf::rt::LazyV2::INIT;
  4602. instance.get(GridBlockId::new)
  4603. }
  4604. }
  4605. impl ::protobuf::Clear for GridBlockId {
  4606. fn clear(&mut self) {
  4607. self.value.clear();
  4608. self.unknown_fields.clear();
  4609. }
  4610. }
  4611. impl ::std::fmt::Debug for GridBlockId {
  4612. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4613. ::protobuf::text_format::fmt(self, f)
  4614. }
  4615. }
  4616. impl ::protobuf::reflect::ProtobufValue for GridBlockId {
  4617. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4618. ::protobuf::reflect::ReflectValueRef::Message(self)
  4619. }
  4620. }
  4621. #[derive(PartialEq,Clone,Default)]
  4622. pub struct CreateRowPayload {
  4623. // message fields
  4624. pub grid_id: ::std::string::String,
  4625. // message oneof groups
  4626. pub one_of_start_row_id: ::std::option::Option<CreateRowPayload_oneof_one_of_start_row_id>,
  4627. // special fields
  4628. pub unknown_fields: ::protobuf::UnknownFields,
  4629. pub cached_size: ::protobuf::CachedSize,
  4630. }
  4631. impl<'a> ::std::default::Default for &'a CreateRowPayload {
  4632. fn default() -> &'a CreateRowPayload {
  4633. <CreateRowPayload as ::protobuf::Message>::default_instance()
  4634. }
  4635. }
  4636. #[derive(Clone,PartialEq,Debug)]
  4637. pub enum CreateRowPayload_oneof_one_of_start_row_id {
  4638. start_row_id(::std::string::String),
  4639. }
  4640. impl CreateRowPayload {
  4641. pub fn new() -> CreateRowPayload {
  4642. ::std::default::Default::default()
  4643. }
  4644. // string grid_id = 1;
  4645. pub fn get_grid_id(&self) -> &str {
  4646. &self.grid_id
  4647. }
  4648. pub fn clear_grid_id(&mut self) {
  4649. self.grid_id.clear();
  4650. }
  4651. // Param is passed by value, moved
  4652. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  4653. self.grid_id = v;
  4654. }
  4655. // Mutable pointer to the field.
  4656. // If field is not initialized, it is initialized with default value first.
  4657. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  4658. &mut self.grid_id
  4659. }
  4660. // Take field
  4661. pub fn take_grid_id(&mut self) -> ::std::string::String {
  4662. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  4663. }
  4664. // string start_row_id = 2;
  4665. pub fn get_start_row_id(&self) -> &str {
  4666. match self.one_of_start_row_id {
  4667. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v)) => v,
  4668. _ => "",
  4669. }
  4670. }
  4671. pub fn clear_start_row_id(&mut self) {
  4672. self.one_of_start_row_id = ::std::option::Option::None;
  4673. }
  4674. pub fn has_start_row_id(&self) -> bool {
  4675. match self.one_of_start_row_id {
  4676. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(..)) => true,
  4677. _ => false,
  4678. }
  4679. }
  4680. // Param is passed by value, moved
  4681. pub fn set_start_row_id(&mut self, v: ::std::string::String) {
  4682. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v))
  4683. }
  4684. // Mutable pointer to the field.
  4685. pub fn mut_start_row_id(&mut self) -> &mut ::std::string::String {
  4686. if let ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(_)) = self.one_of_start_row_id {
  4687. } else {
  4688. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(::std::string::String::new()));
  4689. }
  4690. match self.one_of_start_row_id {
  4691. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref mut v)) => v,
  4692. _ => panic!(),
  4693. }
  4694. }
  4695. // Take field
  4696. pub fn take_start_row_id(&mut self) -> ::std::string::String {
  4697. if self.has_start_row_id() {
  4698. match self.one_of_start_row_id.take() {
  4699. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v)) => v,
  4700. _ => panic!(),
  4701. }
  4702. } else {
  4703. ::std::string::String::new()
  4704. }
  4705. }
  4706. }
  4707. impl ::protobuf::Message for CreateRowPayload {
  4708. fn is_initialized(&self) -> bool {
  4709. true
  4710. }
  4711. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4712. while !is.eof()? {
  4713. let (field_number, wire_type) = is.read_tag_unpack()?;
  4714. match field_number {
  4715. 1 => {
  4716. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4717. },
  4718. 2 => {
  4719. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  4720. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4721. }
  4722. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(is.read_string()?));
  4723. },
  4724. _ => {
  4725. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4726. },
  4727. };
  4728. }
  4729. ::std::result::Result::Ok(())
  4730. }
  4731. // Compute sizes of nested messages
  4732. #[allow(unused_variables)]
  4733. fn compute_size(&self) -> u32 {
  4734. let mut my_size = 0;
  4735. if !self.grid_id.is_empty() {
  4736. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  4737. }
  4738. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  4739. match v {
  4740. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  4741. my_size += ::protobuf::rt::string_size(2, &v);
  4742. },
  4743. };
  4744. }
  4745. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4746. self.cached_size.set(my_size);
  4747. my_size
  4748. }
  4749. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4750. if !self.grid_id.is_empty() {
  4751. os.write_string(1, &self.grid_id)?;
  4752. }
  4753. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  4754. match v {
  4755. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  4756. os.write_string(2, v)?;
  4757. },
  4758. };
  4759. }
  4760. os.write_unknown_fields(self.get_unknown_fields())?;
  4761. ::std::result::Result::Ok(())
  4762. }
  4763. fn get_cached_size(&self) -> u32 {
  4764. self.cached_size.get()
  4765. }
  4766. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4767. &self.unknown_fields
  4768. }
  4769. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4770. &mut self.unknown_fields
  4771. }
  4772. fn as_any(&self) -> &dyn (::std::any::Any) {
  4773. self as &dyn (::std::any::Any)
  4774. }
  4775. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4776. self as &mut dyn (::std::any::Any)
  4777. }
  4778. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4779. self
  4780. }
  4781. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4782. Self::descriptor_static()
  4783. }
  4784. fn new() -> CreateRowPayload {
  4785. CreateRowPayload::new()
  4786. }
  4787. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4788. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4789. descriptor.get(|| {
  4790. let mut fields = ::std::vec::Vec::new();
  4791. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4792. "grid_id",
  4793. |m: &CreateRowPayload| { &m.grid_id },
  4794. |m: &mut CreateRowPayload| { &mut m.grid_id },
  4795. ));
  4796. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  4797. "start_row_id",
  4798. CreateRowPayload::has_start_row_id,
  4799. CreateRowPayload::get_start_row_id,
  4800. ));
  4801. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateRowPayload>(
  4802. "CreateRowPayload",
  4803. fields,
  4804. file_descriptor_proto()
  4805. )
  4806. })
  4807. }
  4808. fn default_instance() -> &'static CreateRowPayload {
  4809. static instance: ::protobuf::rt::LazyV2<CreateRowPayload> = ::protobuf::rt::LazyV2::INIT;
  4810. instance.get(CreateRowPayload::new)
  4811. }
  4812. }
  4813. impl ::protobuf::Clear for CreateRowPayload {
  4814. fn clear(&mut self) {
  4815. self.grid_id.clear();
  4816. self.one_of_start_row_id = ::std::option::Option::None;
  4817. self.unknown_fields.clear();
  4818. }
  4819. }
  4820. impl ::std::fmt::Debug for CreateRowPayload {
  4821. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4822. ::protobuf::text_format::fmt(self, f)
  4823. }
  4824. }
  4825. impl ::protobuf::reflect::ProtobufValue for CreateRowPayload {
  4826. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4827. ::protobuf::reflect::ReflectValueRef::Message(self)
  4828. }
  4829. }
  4830. #[derive(PartialEq,Clone,Default)]
  4831. pub struct InsertFieldPayload {
  4832. // message fields
  4833. pub grid_id: ::std::string::String,
  4834. pub field: ::protobuf::SingularPtrField<Field>,
  4835. pub type_option_data: ::std::vec::Vec<u8>,
  4836. // message oneof groups
  4837. pub one_of_start_field_id: ::std::option::Option<InsertFieldPayload_oneof_one_of_start_field_id>,
  4838. // special fields
  4839. pub unknown_fields: ::protobuf::UnknownFields,
  4840. pub cached_size: ::protobuf::CachedSize,
  4841. }
  4842. impl<'a> ::std::default::Default for &'a InsertFieldPayload {
  4843. fn default() -> &'a InsertFieldPayload {
  4844. <InsertFieldPayload as ::protobuf::Message>::default_instance()
  4845. }
  4846. }
  4847. #[derive(Clone,PartialEq,Debug)]
  4848. pub enum InsertFieldPayload_oneof_one_of_start_field_id {
  4849. start_field_id(::std::string::String),
  4850. }
  4851. impl InsertFieldPayload {
  4852. pub fn new() -> InsertFieldPayload {
  4853. ::std::default::Default::default()
  4854. }
  4855. // string grid_id = 1;
  4856. pub fn get_grid_id(&self) -> &str {
  4857. &self.grid_id
  4858. }
  4859. pub fn clear_grid_id(&mut self) {
  4860. self.grid_id.clear();
  4861. }
  4862. // Param is passed by value, moved
  4863. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  4864. self.grid_id = v;
  4865. }
  4866. // Mutable pointer to the field.
  4867. // If field is not initialized, it is initialized with default value first.
  4868. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  4869. &mut self.grid_id
  4870. }
  4871. // Take field
  4872. pub fn take_grid_id(&mut self) -> ::std::string::String {
  4873. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  4874. }
  4875. // .Field field = 2;
  4876. pub fn get_field(&self) -> &Field {
  4877. self.field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  4878. }
  4879. pub fn clear_field(&mut self) {
  4880. self.field.clear();
  4881. }
  4882. pub fn has_field(&self) -> bool {
  4883. self.field.is_some()
  4884. }
  4885. // Param is passed by value, moved
  4886. pub fn set_field(&mut self, v: Field) {
  4887. self.field = ::protobuf::SingularPtrField::some(v);
  4888. }
  4889. // Mutable pointer to the field.
  4890. // If field is not initialized, it is initialized with default value first.
  4891. pub fn mut_field(&mut self) -> &mut Field {
  4892. if self.field.is_none() {
  4893. self.field.set_default();
  4894. }
  4895. self.field.as_mut().unwrap()
  4896. }
  4897. // Take field
  4898. pub fn take_field(&mut self) -> Field {
  4899. self.field.take().unwrap_or_else(|| Field::new())
  4900. }
  4901. // bytes type_option_data = 3;
  4902. pub fn get_type_option_data(&self) -> &[u8] {
  4903. &self.type_option_data
  4904. }
  4905. pub fn clear_type_option_data(&mut self) {
  4906. self.type_option_data.clear();
  4907. }
  4908. // Param is passed by value, moved
  4909. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  4910. self.type_option_data = v;
  4911. }
  4912. // Mutable pointer to the field.
  4913. // If field is not initialized, it is initialized with default value first.
  4914. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  4915. &mut self.type_option_data
  4916. }
  4917. // Take field
  4918. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  4919. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  4920. }
  4921. // string start_field_id = 4;
  4922. pub fn get_start_field_id(&self) -> &str {
  4923. match self.one_of_start_field_id {
  4924. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v)) => v,
  4925. _ => "",
  4926. }
  4927. }
  4928. pub fn clear_start_field_id(&mut self) {
  4929. self.one_of_start_field_id = ::std::option::Option::None;
  4930. }
  4931. pub fn has_start_field_id(&self) -> bool {
  4932. match self.one_of_start_field_id {
  4933. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(..)) => true,
  4934. _ => false,
  4935. }
  4936. }
  4937. // Param is passed by value, moved
  4938. pub fn set_start_field_id(&mut self, v: ::std::string::String) {
  4939. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(v))
  4940. }
  4941. // Mutable pointer to the field.
  4942. pub fn mut_start_field_id(&mut self) -> &mut ::std::string::String {
  4943. if let ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(_)) = self.one_of_start_field_id {
  4944. } else {
  4945. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(::std::string::String::new()));
  4946. }
  4947. match self.one_of_start_field_id {
  4948. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref mut v)) => v,
  4949. _ => panic!(),
  4950. }
  4951. }
  4952. // Take field
  4953. pub fn take_start_field_id(&mut self) -> ::std::string::String {
  4954. if self.has_start_field_id() {
  4955. match self.one_of_start_field_id.take() {
  4956. ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(v)) => v,
  4957. _ => panic!(),
  4958. }
  4959. } else {
  4960. ::std::string::String::new()
  4961. }
  4962. }
  4963. }
  4964. impl ::protobuf::Message for InsertFieldPayload {
  4965. fn is_initialized(&self) -> bool {
  4966. for v in &self.field {
  4967. if !v.is_initialized() {
  4968. return false;
  4969. }
  4970. };
  4971. true
  4972. }
  4973. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4974. while !is.eof()? {
  4975. let (field_number, wire_type) = is.read_tag_unpack()?;
  4976. match field_number {
  4977. 1 => {
  4978. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4979. },
  4980. 2 => {
  4981. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field)?;
  4982. },
  4983. 3 => {
  4984. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  4985. },
  4986. 4 => {
  4987. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  4988. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4989. }
  4990. self.one_of_start_field_id = ::std::option::Option::Some(InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(is.read_string()?));
  4991. },
  4992. _ => {
  4993. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4994. },
  4995. };
  4996. }
  4997. ::std::result::Result::Ok(())
  4998. }
  4999. // Compute sizes of nested messages
  5000. #[allow(unused_variables)]
  5001. fn compute_size(&self) -> u32 {
  5002. let mut my_size = 0;
  5003. if !self.grid_id.is_empty() {
  5004. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5005. }
  5006. if let Some(ref v) = self.field.as_ref() {
  5007. let len = v.compute_size();
  5008. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5009. }
  5010. if !self.type_option_data.is_empty() {
  5011. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  5012. }
  5013. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  5014. match v {
  5015. &InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  5016. my_size += ::protobuf::rt::string_size(4, &v);
  5017. },
  5018. };
  5019. }
  5020. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5021. self.cached_size.set(my_size);
  5022. my_size
  5023. }
  5024. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5025. if !self.grid_id.is_empty() {
  5026. os.write_string(1, &self.grid_id)?;
  5027. }
  5028. if let Some(ref v) = self.field.as_ref() {
  5029. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5030. os.write_raw_varint32(v.get_cached_size())?;
  5031. v.write_to_with_cached_sizes(os)?;
  5032. }
  5033. if !self.type_option_data.is_empty() {
  5034. os.write_bytes(3, &self.type_option_data)?;
  5035. }
  5036. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  5037. match v {
  5038. &InsertFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  5039. os.write_string(4, v)?;
  5040. },
  5041. };
  5042. }
  5043. os.write_unknown_fields(self.get_unknown_fields())?;
  5044. ::std::result::Result::Ok(())
  5045. }
  5046. fn get_cached_size(&self) -> u32 {
  5047. self.cached_size.get()
  5048. }
  5049. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5050. &self.unknown_fields
  5051. }
  5052. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5053. &mut self.unknown_fields
  5054. }
  5055. fn as_any(&self) -> &dyn (::std::any::Any) {
  5056. self as &dyn (::std::any::Any)
  5057. }
  5058. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5059. self as &mut dyn (::std::any::Any)
  5060. }
  5061. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5062. self
  5063. }
  5064. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5065. Self::descriptor_static()
  5066. }
  5067. fn new() -> InsertFieldPayload {
  5068. InsertFieldPayload::new()
  5069. }
  5070. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5071. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5072. descriptor.get(|| {
  5073. let mut fields = ::std::vec::Vec::new();
  5074. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5075. "grid_id",
  5076. |m: &InsertFieldPayload| { &m.grid_id },
  5077. |m: &mut InsertFieldPayload| { &mut m.grid_id },
  5078. ));
  5079. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  5080. "field",
  5081. |m: &InsertFieldPayload| { &m.field },
  5082. |m: &mut InsertFieldPayload| { &mut m.field },
  5083. ));
  5084. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  5085. "type_option_data",
  5086. |m: &InsertFieldPayload| { &m.type_option_data },
  5087. |m: &mut InsertFieldPayload| { &mut m.type_option_data },
  5088. ));
  5089. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  5090. "start_field_id",
  5091. InsertFieldPayload::has_start_field_id,
  5092. InsertFieldPayload::get_start_field_id,
  5093. ));
  5094. ::protobuf::reflect::MessageDescriptor::new_pb_name::<InsertFieldPayload>(
  5095. "InsertFieldPayload",
  5096. fields,
  5097. file_descriptor_proto()
  5098. )
  5099. })
  5100. }
  5101. fn default_instance() -> &'static InsertFieldPayload {
  5102. static instance: ::protobuf::rt::LazyV2<InsertFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  5103. instance.get(InsertFieldPayload::new)
  5104. }
  5105. }
  5106. impl ::protobuf::Clear for InsertFieldPayload {
  5107. fn clear(&mut self) {
  5108. self.grid_id.clear();
  5109. self.field.clear();
  5110. self.type_option_data.clear();
  5111. self.one_of_start_field_id = ::std::option::Option::None;
  5112. self.unknown_fields.clear();
  5113. }
  5114. }
  5115. impl ::std::fmt::Debug for InsertFieldPayload {
  5116. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5117. ::protobuf::text_format::fmt(self, f)
  5118. }
  5119. }
  5120. impl ::protobuf::reflect::ProtobufValue for InsertFieldPayload {
  5121. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5122. ::protobuf::reflect::ReflectValueRef::Message(self)
  5123. }
  5124. }
  5125. #[derive(PartialEq,Clone,Default)]
  5126. pub struct QueryFieldPayload {
  5127. // message fields
  5128. pub grid_id: ::std::string::String,
  5129. pub field_orders: ::protobuf::SingularPtrField<RepeatedFieldOrder>,
  5130. // special fields
  5131. pub unknown_fields: ::protobuf::UnknownFields,
  5132. pub cached_size: ::protobuf::CachedSize,
  5133. }
  5134. impl<'a> ::std::default::Default for &'a QueryFieldPayload {
  5135. fn default() -> &'a QueryFieldPayload {
  5136. <QueryFieldPayload as ::protobuf::Message>::default_instance()
  5137. }
  5138. }
  5139. impl QueryFieldPayload {
  5140. pub fn new() -> QueryFieldPayload {
  5141. ::std::default::Default::default()
  5142. }
  5143. // string grid_id = 1;
  5144. pub fn get_grid_id(&self) -> &str {
  5145. &self.grid_id
  5146. }
  5147. pub fn clear_grid_id(&mut self) {
  5148. self.grid_id.clear();
  5149. }
  5150. // Param is passed by value, moved
  5151. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5152. self.grid_id = v;
  5153. }
  5154. // Mutable pointer to the field.
  5155. // If field is not initialized, it is initialized with default value first.
  5156. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5157. &mut self.grid_id
  5158. }
  5159. // Take field
  5160. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5161. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5162. }
  5163. // .RepeatedFieldOrder field_orders = 2;
  5164. pub fn get_field_orders(&self) -> &RepeatedFieldOrder {
  5165. self.field_orders.as_ref().unwrap_or_else(|| <RepeatedFieldOrder as ::protobuf::Message>::default_instance())
  5166. }
  5167. pub fn clear_field_orders(&mut self) {
  5168. self.field_orders.clear();
  5169. }
  5170. pub fn has_field_orders(&self) -> bool {
  5171. self.field_orders.is_some()
  5172. }
  5173. // Param is passed by value, moved
  5174. pub fn set_field_orders(&mut self, v: RepeatedFieldOrder) {
  5175. self.field_orders = ::protobuf::SingularPtrField::some(v);
  5176. }
  5177. // Mutable pointer to the field.
  5178. // If field is not initialized, it is initialized with default value first.
  5179. pub fn mut_field_orders(&mut self) -> &mut RepeatedFieldOrder {
  5180. if self.field_orders.is_none() {
  5181. self.field_orders.set_default();
  5182. }
  5183. self.field_orders.as_mut().unwrap()
  5184. }
  5185. // Take field
  5186. pub fn take_field_orders(&mut self) -> RepeatedFieldOrder {
  5187. self.field_orders.take().unwrap_or_else(|| RepeatedFieldOrder::new())
  5188. }
  5189. }
  5190. impl ::protobuf::Message for QueryFieldPayload {
  5191. fn is_initialized(&self) -> bool {
  5192. for v in &self.field_orders {
  5193. if !v.is_initialized() {
  5194. return false;
  5195. }
  5196. };
  5197. true
  5198. }
  5199. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5200. while !is.eof()? {
  5201. let (field_number, wire_type) = is.read_tag_unpack()?;
  5202. match field_number {
  5203. 1 => {
  5204. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5205. },
  5206. 2 => {
  5207. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_orders)?;
  5208. },
  5209. _ => {
  5210. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5211. },
  5212. };
  5213. }
  5214. ::std::result::Result::Ok(())
  5215. }
  5216. // Compute sizes of nested messages
  5217. #[allow(unused_variables)]
  5218. fn compute_size(&self) -> u32 {
  5219. let mut my_size = 0;
  5220. if !self.grid_id.is_empty() {
  5221. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5222. }
  5223. if let Some(ref v) = self.field_orders.as_ref() {
  5224. let len = v.compute_size();
  5225. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5226. }
  5227. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5228. self.cached_size.set(my_size);
  5229. my_size
  5230. }
  5231. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5232. if !self.grid_id.is_empty() {
  5233. os.write_string(1, &self.grid_id)?;
  5234. }
  5235. if let Some(ref v) = self.field_orders.as_ref() {
  5236. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5237. os.write_raw_varint32(v.get_cached_size())?;
  5238. v.write_to_with_cached_sizes(os)?;
  5239. }
  5240. os.write_unknown_fields(self.get_unknown_fields())?;
  5241. ::std::result::Result::Ok(())
  5242. }
  5243. fn get_cached_size(&self) -> u32 {
  5244. self.cached_size.get()
  5245. }
  5246. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5247. &self.unknown_fields
  5248. }
  5249. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5250. &mut self.unknown_fields
  5251. }
  5252. fn as_any(&self) -> &dyn (::std::any::Any) {
  5253. self as &dyn (::std::any::Any)
  5254. }
  5255. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5256. self as &mut dyn (::std::any::Any)
  5257. }
  5258. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5259. self
  5260. }
  5261. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5262. Self::descriptor_static()
  5263. }
  5264. fn new() -> QueryFieldPayload {
  5265. QueryFieldPayload::new()
  5266. }
  5267. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5268. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5269. descriptor.get(|| {
  5270. let mut fields = ::std::vec::Vec::new();
  5271. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5272. "grid_id",
  5273. |m: &QueryFieldPayload| { &m.grid_id },
  5274. |m: &mut QueryFieldPayload| { &mut m.grid_id },
  5275. ));
  5276. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RepeatedFieldOrder>>(
  5277. "field_orders",
  5278. |m: &QueryFieldPayload| { &m.field_orders },
  5279. |m: &mut QueryFieldPayload| { &mut m.field_orders },
  5280. ));
  5281. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryFieldPayload>(
  5282. "QueryFieldPayload",
  5283. fields,
  5284. file_descriptor_proto()
  5285. )
  5286. })
  5287. }
  5288. fn default_instance() -> &'static QueryFieldPayload {
  5289. static instance: ::protobuf::rt::LazyV2<QueryFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  5290. instance.get(QueryFieldPayload::new)
  5291. }
  5292. }
  5293. impl ::protobuf::Clear for QueryFieldPayload {
  5294. fn clear(&mut self) {
  5295. self.grid_id.clear();
  5296. self.field_orders.clear();
  5297. self.unknown_fields.clear();
  5298. }
  5299. }
  5300. impl ::std::fmt::Debug for QueryFieldPayload {
  5301. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5302. ::protobuf::text_format::fmt(self, f)
  5303. }
  5304. }
  5305. impl ::protobuf::reflect::ProtobufValue for QueryFieldPayload {
  5306. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5307. ::protobuf::reflect::ReflectValueRef::Message(self)
  5308. }
  5309. }
  5310. #[derive(PartialEq,Clone,Default)]
  5311. pub struct QueryGridBlocksPayload {
  5312. // message fields
  5313. pub grid_id: ::std::string::String,
  5314. pub block_orders: ::protobuf::RepeatedField<GridBlockOrder>,
  5315. // special fields
  5316. pub unknown_fields: ::protobuf::UnknownFields,
  5317. pub cached_size: ::protobuf::CachedSize,
  5318. }
  5319. impl<'a> ::std::default::Default for &'a QueryGridBlocksPayload {
  5320. fn default() -> &'a QueryGridBlocksPayload {
  5321. <QueryGridBlocksPayload as ::protobuf::Message>::default_instance()
  5322. }
  5323. }
  5324. impl QueryGridBlocksPayload {
  5325. pub fn new() -> QueryGridBlocksPayload {
  5326. ::std::default::Default::default()
  5327. }
  5328. // string grid_id = 1;
  5329. pub fn get_grid_id(&self) -> &str {
  5330. &self.grid_id
  5331. }
  5332. pub fn clear_grid_id(&mut self) {
  5333. self.grid_id.clear();
  5334. }
  5335. // Param is passed by value, moved
  5336. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5337. self.grid_id = v;
  5338. }
  5339. // Mutable pointer to the field.
  5340. // If field is not initialized, it is initialized with default value first.
  5341. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5342. &mut self.grid_id
  5343. }
  5344. // Take field
  5345. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5346. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5347. }
  5348. // repeated .GridBlockOrder block_orders = 2;
  5349. pub fn get_block_orders(&self) -> &[GridBlockOrder] {
  5350. &self.block_orders
  5351. }
  5352. pub fn clear_block_orders(&mut self) {
  5353. self.block_orders.clear();
  5354. }
  5355. // Param is passed by value, moved
  5356. pub fn set_block_orders(&mut self, v: ::protobuf::RepeatedField<GridBlockOrder>) {
  5357. self.block_orders = v;
  5358. }
  5359. // Mutable pointer to the field.
  5360. pub fn mut_block_orders(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockOrder> {
  5361. &mut self.block_orders
  5362. }
  5363. // Take field
  5364. pub fn take_block_orders(&mut self) -> ::protobuf::RepeatedField<GridBlockOrder> {
  5365. ::std::mem::replace(&mut self.block_orders, ::protobuf::RepeatedField::new())
  5366. }
  5367. }
  5368. impl ::protobuf::Message for QueryGridBlocksPayload {
  5369. fn is_initialized(&self) -> bool {
  5370. for v in &self.block_orders {
  5371. if !v.is_initialized() {
  5372. return false;
  5373. }
  5374. };
  5375. true
  5376. }
  5377. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5378. while !is.eof()? {
  5379. let (field_number, wire_type) = is.read_tag_unpack()?;
  5380. match field_number {
  5381. 1 => {
  5382. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5383. },
  5384. 2 => {
  5385. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_orders)?;
  5386. },
  5387. _ => {
  5388. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5389. },
  5390. };
  5391. }
  5392. ::std::result::Result::Ok(())
  5393. }
  5394. // Compute sizes of nested messages
  5395. #[allow(unused_variables)]
  5396. fn compute_size(&self) -> u32 {
  5397. let mut my_size = 0;
  5398. if !self.grid_id.is_empty() {
  5399. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  5400. }
  5401. for value in &self.block_orders {
  5402. let len = value.compute_size();
  5403. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5404. };
  5405. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5406. self.cached_size.set(my_size);
  5407. my_size
  5408. }
  5409. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5410. if !self.grid_id.is_empty() {
  5411. os.write_string(1, &self.grid_id)?;
  5412. }
  5413. for v in &self.block_orders {
  5414. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5415. os.write_raw_varint32(v.get_cached_size())?;
  5416. v.write_to_with_cached_sizes(os)?;
  5417. };
  5418. os.write_unknown_fields(self.get_unknown_fields())?;
  5419. ::std::result::Result::Ok(())
  5420. }
  5421. fn get_cached_size(&self) -> u32 {
  5422. self.cached_size.get()
  5423. }
  5424. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5425. &self.unknown_fields
  5426. }
  5427. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5428. &mut self.unknown_fields
  5429. }
  5430. fn as_any(&self) -> &dyn (::std::any::Any) {
  5431. self as &dyn (::std::any::Any)
  5432. }
  5433. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5434. self as &mut dyn (::std::any::Any)
  5435. }
  5436. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5437. self
  5438. }
  5439. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5440. Self::descriptor_static()
  5441. }
  5442. fn new() -> QueryGridBlocksPayload {
  5443. QueryGridBlocksPayload::new()
  5444. }
  5445. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5446. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  5447. descriptor.get(|| {
  5448. let mut fields = ::std::vec::Vec::new();
  5449. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  5450. "grid_id",
  5451. |m: &QueryGridBlocksPayload| { &m.grid_id },
  5452. |m: &mut QueryGridBlocksPayload| { &mut m.grid_id },
  5453. ));
  5454. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockOrder>>(
  5455. "block_orders",
  5456. |m: &QueryGridBlocksPayload| { &m.block_orders },
  5457. |m: &mut QueryGridBlocksPayload| { &mut m.block_orders },
  5458. ));
  5459. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryGridBlocksPayload>(
  5460. "QueryGridBlocksPayload",
  5461. fields,
  5462. file_descriptor_proto()
  5463. )
  5464. })
  5465. }
  5466. fn default_instance() -> &'static QueryGridBlocksPayload {
  5467. static instance: ::protobuf::rt::LazyV2<QueryGridBlocksPayload> = ::protobuf::rt::LazyV2::INIT;
  5468. instance.get(QueryGridBlocksPayload::new)
  5469. }
  5470. }
  5471. impl ::protobuf::Clear for QueryGridBlocksPayload {
  5472. fn clear(&mut self) {
  5473. self.grid_id.clear();
  5474. self.block_orders.clear();
  5475. self.unknown_fields.clear();
  5476. }
  5477. }
  5478. impl ::std::fmt::Debug for QueryGridBlocksPayload {
  5479. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  5480. ::protobuf::text_format::fmt(self, f)
  5481. }
  5482. }
  5483. impl ::protobuf::reflect::ProtobufValue for QueryGridBlocksPayload {
  5484. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  5485. ::protobuf::reflect::ReflectValueRef::Message(self)
  5486. }
  5487. }
  5488. #[derive(PartialEq,Clone,Default)]
  5489. pub struct FieldChangesetPayload {
  5490. // message fields
  5491. pub field_id: ::std::string::String,
  5492. pub grid_id: ::std::string::String,
  5493. // message oneof groups
  5494. pub one_of_name: ::std::option::Option<FieldChangesetPayload_oneof_one_of_name>,
  5495. pub one_of_desc: ::std::option::Option<FieldChangesetPayload_oneof_one_of_desc>,
  5496. pub one_of_field_type: ::std::option::Option<FieldChangesetPayload_oneof_one_of_field_type>,
  5497. pub one_of_frozen: ::std::option::Option<FieldChangesetPayload_oneof_one_of_frozen>,
  5498. pub one_of_visibility: ::std::option::Option<FieldChangesetPayload_oneof_one_of_visibility>,
  5499. pub one_of_width: ::std::option::Option<FieldChangesetPayload_oneof_one_of_width>,
  5500. pub one_of_type_option_data: ::std::option::Option<FieldChangesetPayload_oneof_one_of_type_option_data>,
  5501. // special fields
  5502. pub unknown_fields: ::protobuf::UnknownFields,
  5503. pub cached_size: ::protobuf::CachedSize,
  5504. }
  5505. impl<'a> ::std::default::Default for &'a FieldChangesetPayload {
  5506. fn default() -> &'a FieldChangesetPayload {
  5507. <FieldChangesetPayload as ::protobuf::Message>::default_instance()
  5508. }
  5509. }
  5510. #[derive(Clone,PartialEq,Debug)]
  5511. pub enum FieldChangesetPayload_oneof_one_of_name {
  5512. name(::std::string::String),
  5513. }
  5514. #[derive(Clone,PartialEq,Debug)]
  5515. pub enum FieldChangesetPayload_oneof_one_of_desc {
  5516. desc(::std::string::String),
  5517. }
  5518. #[derive(Clone,PartialEq,Debug)]
  5519. pub enum FieldChangesetPayload_oneof_one_of_field_type {
  5520. field_type(FieldType),
  5521. }
  5522. #[derive(Clone,PartialEq,Debug)]
  5523. pub enum FieldChangesetPayload_oneof_one_of_frozen {
  5524. frozen(bool),
  5525. }
  5526. #[derive(Clone,PartialEq,Debug)]
  5527. pub enum FieldChangesetPayload_oneof_one_of_visibility {
  5528. visibility(bool),
  5529. }
  5530. #[derive(Clone,PartialEq,Debug)]
  5531. pub enum FieldChangesetPayload_oneof_one_of_width {
  5532. width(i32),
  5533. }
  5534. #[derive(Clone,PartialEq,Debug)]
  5535. pub enum FieldChangesetPayload_oneof_one_of_type_option_data {
  5536. type_option_data(::std::vec::Vec<u8>),
  5537. }
  5538. impl FieldChangesetPayload {
  5539. pub fn new() -> FieldChangesetPayload {
  5540. ::std::default::Default::default()
  5541. }
  5542. // string field_id = 1;
  5543. pub fn get_field_id(&self) -> &str {
  5544. &self.field_id
  5545. }
  5546. pub fn clear_field_id(&mut self) {
  5547. self.field_id.clear();
  5548. }
  5549. // Param is passed by value, moved
  5550. pub fn set_field_id(&mut self, v: ::std::string::String) {
  5551. self.field_id = v;
  5552. }
  5553. // Mutable pointer to the field.
  5554. // If field is not initialized, it is initialized with default value first.
  5555. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  5556. &mut self.field_id
  5557. }
  5558. // Take field
  5559. pub fn take_field_id(&mut self) -> ::std::string::String {
  5560. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  5561. }
  5562. // string grid_id = 2;
  5563. pub fn get_grid_id(&self) -> &str {
  5564. &self.grid_id
  5565. }
  5566. pub fn clear_grid_id(&mut self) {
  5567. self.grid_id.clear();
  5568. }
  5569. // Param is passed by value, moved
  5570. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  5571. self.grid_id = v;
  5572. }
  5573. // Mutable pointer to the field.
  5574. // If field is not initialized, it is initialized with default value first.
  5575. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  5576. &mut self.grid_id
  5577. }
  5578. // Take field
  5579. pub fn take_grid_id(&mut self) -> ::std::string::String {
  5580. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  5581. }
  5582. // string name = 3;
  5583. pub fn get_name(&self) -> &str {
  5584. match self.one_of_name {
  5585. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(ref v)) => v,
  5586. _ => "",
  5587. }
  5588. }
  5589. pub fn clear_name(&mut self) {
  5590. self.one_of_name = ::std::option::Option::None;
  5591. }
  5592. pub fn has_name(&self) -> bool {
  5593. match self.one_of_name {
  5594. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(..)) => true,
  5595. _ => false,
  5596. }
  5597. }
  5598. // Param is passed by value, moved
  5599. pub fn set_name(&mut self, v: ::std::string::String) {
  5600. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(v))
  5601. }
  5602. // Mutable pointer to the field.
  5603. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  5604. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(_)) = self.one_of_name {
  5605. } else {
  5606. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(::std::string::String::new()));
  5607. }
  5608. match self.one_of_name {
  5609. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(ref mut v)) => v,
  5610. _ => panic!(),
  5611. }
  5612. }
  5613. // Take field
  5614. pub fn take_name(&mut self) -> ::std::string::String {
  5615. if self.has_name() {
  5616. match self.one_of_name.take() {
  5617. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(v)) => v,
  5618. _ => panic!(),
  5619. }
  5620. } else {
  5621. ::std::string::String::new()
  5622. }
  5623. }
  5624. // string desc = 4;
  5625. pub fn get_desc(&self) -> &str {
  5626. match self.one_of_desc {
  5627. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(ref v)) => v,
  5628. _ => "",
  5629. }
  5630. }
  5631. pub fn clear_desc(&mut self) {
  5632. self.one_of_desc = ::std::option::Option::None;
  5633. }
  5634. pub fn has_desc(&self) -> bool {
  5635. match self.one_of_desc {
  5636. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(..)) => true,
  5637. _ => false,
  5638. }
  5639. }
  5640. // Param is passed by value, moved
  5641. pub fn set_desc(&mut self, v: ::std::string::String) {
  5642. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(v))
  5643. }
  5644. // Mutable pointer to the field.
  5645. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  5646. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(_)) = self.one_of_desc {
  5647. } else {
  5648. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(::std::string::String::new()));
  5649. }
  5650. match self.one_of_desc {
  5651. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(ref mut v)) => v,
  5652. _ => panic!(),
  5653. }
  5654. }
  5655. // Take field
  5656. pub fn take_desc(&mut self) -> ::std::string::String {
  5657. if self.has_desc() {
  5658. match self.one_of_desc.take() {
  5659. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(v)) => v,
  5660. _ => panic!(),
  5661. }
  5662. } else {
  5663. ::std::string::String::new()
  5664. }
  5665. }
  5666. // .FieldType field_type = 5;
  5667. pub fn get_field_type(&self) -> FieldType {
  5668. match self.one_of_field_type {
  5669. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(v)) => v,
  5670. _ => FieldType::RichText,
  5671. }
  5672. }
  5673. pub fn clear_field_type(&mut self) {
  5674. self.one_of_field_type = ::std::option::Option::None;
  5675. }
  5676. pub fn has_field_type(&self) -> bool {
  5677. match self.one_of_field_type {
  5678. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(..)) => true,
  5679. _ => false,
  5680. }
  5681. }
  5682. // Param is passed by value, moved
  5683. pub fn set_field_type(&mut self, v: FieldType) {
  5684. self.one_of_field_type = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(v))
  5685. }
  5686. // bool frozen = 6;
  5687. pub fn get_frozen(&self) -> bool {
  5688. match self.one_of_frozen {
  5689. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(v)) => v,
  5690. _ => false,
  5691. }
  5692. }
  5693. pub fn clear_frozen(&mut self) {
  5694. self.one_of_frozen = ::std::option::Option::None;
  5695. }
  5696. pub fn has_frozen(&self) -> bool {
  5697. match self.one_of_frozen {
  5698. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(..)) => true,
  5699. _ => false,
  5700. }
  5701. }
  5702. // Param is passed by value, moved
  5703. pub fn set_frozen(&mut self, v: bool) {
  5704. self.one_of_frozen = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(v))
  5705. }
  5706. // bool visibility = 7;
  5707. pub fn get_visibility(&self) -> bool {
  5708. match self.one_of_visibility {
  5709. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(v)) => v,
  5710. _ => false,
  5711. }
  5712. }
  5713. pub fn clear_visibility(&mut self) {
  5714. self.one_of_visibility = ::std::option::Option::None;
  5715. }
  5716. pub fn has_visibility(&self) -> bool {
  5717. match self.one_of_visibility {
  5718. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(..)) => true,
  5719. _ => false,
  5720. }
  5721. }
  5722. // Param is passed by value, moved
  5723. pub fn set_visibility(&mut self, v: bool) {
  5724. self.one_of_visibility = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(v))
  5725. }
  5726. // int32 width = 8;
  5727. pub fn get_width(&self) -> i32 {
  5728. match self.one_of_width {
  5729. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(v)) => v,
  5730. _ => 0,
  5731. }
  5732. }
  5733. pub fn clear_width(&mut self) {
  5734. self.one_of_width = ::std::option::Option::None;
  5735. }
  5736. pub fn has_width(&self) -> bool {
  5737. match self.one_of_width {
  5738. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(..)) => true,
  5739. _ => false,
  5740. }
  5741. }
  5742. // Param is passed by value, moved
  5743. pub fn set_width(&mut self, v: i32) {
  5744. self.one_of_width = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(v))
  5745. }
  5746. // bytes type_option_data = 9;
  5747. pub fn get_type_option_data(&self) -> &[u8] {
  5748. match self.one_of_type_option_data {
  5749. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v)) => v,
  5750. _ => &[],
  5751. }
  5752. }
  5753. pub fn clear_type_option_data(&mut self) {
  5754. self.one_of_type_option_data = ::std::option::Option::None;
  5755. }
  5756. pub fn has_type_option_data(&self) -> bool {
  5757. match self.one_of_type_option_data {
  5758. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(..)) => true,
  5759. _ => false,
  5760. }
  5761. }
  5762. // Param is passed by value, moved
  5763. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  5764. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(v))
  5765. }
  5766. // Mutable pointer to the field.
  5767. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  5768. if let ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(_)) = self.one_of_type_option_data {
  5769. } else {
  5770. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(::std::vec::Vec::new()));
  5771. }
  5772. match self.one_of_type_option_data {
  5773. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref mut v)) => v,
  5774. _ => panic!(),
  5775. }
  5776. }
  5777. // Take field
  5778. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  5779. if self.has_type_option_data() {
  5780. match self.one_of_type_option_data.take() {
  5781. ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(v)) => v,
  5782. _ => panic!(),
  5783. }
  5784. } else {
  5785. ::std::vec::Vec::new()
  5786. }
  5787. }
  5788. }
  5789. impl ::protobuf::Message for FieldChangesetPayload {
  5790. fn is_initialized(&self) -> bool {
  5791. true
  5792. }
  5793. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5794. while !is.eof()? {
  5795. let (field_number, wire_type) = is.read_tag_unpack()?;
  5796. match field_number {
  5797. 1 => {
  5798. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  5799. },
  5800. 2 => {
  5801. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  5802. },
  5803. 3 => {
  5804. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  5805. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5806. }
  5807. self.one_of_name = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_name::name(is.read_string()?));
  5808. },
  5809. 4 => {
  5810. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  5811. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5812. }
  5813. self.one_of_desc = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_desc::desc(is.read_string()?));
  5814. },
  5815. 5 => {
  5816. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5817. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5818. }
  5819. self.one_of_field_type = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_field_type::field_type(is.read_enum()?));
  5820. },
  5821. 6 => {
  5822. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5823. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5824. }
  5825. self.one_of_frozen = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_frozen::frozen(is.read_bool()?));
  5826. },
  5827. 7 => {
  5828. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5829. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5830. }
  5831. self.one_of_visibility = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_visibility::visibility(is.read_bool()?));
  5832. },
  5833. 8 => {
  5834. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5835. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5836. }
  5837. self.one_of_width = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_width::width(is.read_int32()?));
  5838. },
  5839. 9 => {
  5840. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  5841. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5842. }
  5843. self.one_of_type_option_data = ::std::option::Option::Some(FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(is.read_bytes()?));
  5844. },
  5845. _ => {
  5846. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5847. },
  5848. };
  5849. }
  5850. ::std::result::Result::Ok(())
  5851. }
  5852. // Compute sizes of nested messages
  5853. #[allow(unused_variables)]
  5854. fn compute_size(&self) -> u32 {
  5855. let mut my_size = 0;
  5856. if !self.field_id.is_empty() {
  5857. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  5858. }
  5859. if !self.grid_id.is_empty() {
  5860. my_size += ::protobuf::rt::string_size(2, &self.grid_id);
  5861. }
  5862. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  5863. match v {
  5864. &FieldChangesetPayload_oneof_one_of_name::name(ref v) => {
  5865. my_size += ::protobuf::rt::string_size(3, &v);
  5866. },
  5867. };
  5868. }
  5869. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  5870. match v {
  5871. &FieldChangesetPayload_oneof_one_of_desc::desc(ref v) => {
  5872. my_size += ::protobuf::rt::string_size(4, &v);
  5873. },
  5874. };
  5875. }
  5876. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  5877. match v {
  5878. &FieldChangesetPayload_oneof_one_of_field_type::field_type(v) => {
  5879. my_size += ::protobuf::rt::enum_size(5, v);
  5880. },
  5881. };
  5882. }
  5883. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  5884. match v {
  5885. &FieldChangesetPayload_oneof_one_of_frozen::frozen(v) => {
  5886. my_size += 2;
  5887. },
  5888. };
  5889. }
  5890. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  5891. match v {
  5892. &FieldChangesetPayload_oneof_one_of_visibility::visibility(v) => {
  5893. my_size += 2;
  5894. },
  5895. };
  5896. }
  5897. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  5898. match v {
  5899. &FieldChangesetPayload_oneof_one_of_width::width(v) => {
  5900. my_size += ::protobuf::rt::value_size(8, v, ::protobuf::wire_format::WireTypeVarint);
  5901. },
  5902. };
  5903. }
  5904. if let ::std::option::Option::Some(ref v) = self.one_of_type_option_data {
  5905. match v {
  5906. &FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v) => {
  5907. my_size += ::protobuf::rt::bytes_size(9, &v);
  5908. },
  5909. };
  5910. }
  5911. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5912. self.cached_size.set(my_size);
  5913. my_size
  5914. }
  5915. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  5916. if !self.field_id.is_empty() {
  5917. os.write_string(1, &self.field_id)?;
  5918. }
  5919. if !self.grid_id.is_empty() {
  5920. os.write_string(2, &self.grid_id)?;
  5921. }
  5922. if let ::std::option::Option::Some(ref v) = self.one_of_name {
  5923. match v {
  5924. &FieldChangesetPayload_oneof_one_of_name::name(ref v) => {
  5925. os.write_string(3, v)?;
  5926. },
  5927. };
  5928. }
  5929. if let ::std::option::Option::Some(ref v) = self.one_of_desc {
  5930. match v {
  5931. &FieldChangesetPayload_oneof_one_of_desc::desc(ref v) => {
  5932. os.write_string(4, v)?;
  5933. },
  5934. };
  5935. }
  5936. if let ::std::option::Option::Some(ref v) = self.one_of_field_type {
  5937. match v {
  5938. &FieldChangesetPayload_oneof_one_of_field_type::field_type(v) => {
  5939. os.write_enum(5, ::protobuf::ProtobufEnum::value(&v))?;
  5940. },
  5941. };
  5942. }
  5943. if let ::std::option::Option::Some(ref v) = self.one_of_frozen {
  5944. match v {
  5945. &FieldChangesetPayload_oneof_one_of_frozen::frozen(v) => {
  5946. os.write_bool(6, v)?;
  5947. },
  5948. };
  5949. }
  5950. if let ::std::option::Option::Some(ref v) = self.one_of_visibility {
  5951. match v {
  5952. &FieldChangesetPayload_oneof_one_of_visibility::visibility(v) => {
  5953. os.write_bool(7, v)?;
  5954. },
  5955. };
  5956. }
  5957. if let ::std::option::Option::Some(ref v) = self.one_of_width {
  5958. match v {
  5959. &FieldChangesetPayload_oneof_one_of_width::width(v) => {
  5960. os.write_int32(8, v)?;
  5961. },
  5962. };
  5963. }
  5964. if let ::std::option::Option::Some(ref v) = self.one_of_type_option_data {
  5965. match v {
  5966. &FieldChangesetPayload_oneof_one_of_type_option_data::type_option_data(ref v) => {
  5967. os.write_bytes(9, v)?;
  5968. },
  5969. };
  5970. }
  5971. os.write_unknown_fields(self.get_unknown_fields())?;
  5972. ::std::result::Result::Ok(())
  5973. }
  5974. fn get_cached_size(&self) -> u32 {
  5975. self.cached_size.get()
  5976. }
  5977. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5978. &self.unknown_fields
  5979. }
  5980. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5981. &mut self.unknown_fields
  5982. }
  5983. fn as_any(&self) -> &dyn (::std::any::Any) {
  5984. self as &dyn (::std::any::Any)
  5985. }
  5986. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  5987. self as &mut dyn (::std::any::Any)
  5988. }
  5989. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  5990. self
  5991. }
  5992. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5993. Self::descriptor_static()
  5994. }
  5995. fn new() -> FieldChangesetPayload {
  5996. FieldChangesetPayload::new()
  5997. }
  5998. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  5999. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6000. descriptor.get(|| {
  6001. let mut fields = ::std::vec::Vec::new();
  6002. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6003. "field_id",
  6004. |m: &FieldChangesetPayload| { &m.field_id },
  6005. |m: &mut FieldChangesetPayload| { &mut m.field_id },
  6006. ));
  6007. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6008. "grid_id",
  6009. |m: &FieldChangesetPayload| { &m.grid_id },
  6010. |m: &mut FieldChangesetPayload| { &mut m.grid_id },
  6011. ));
  6012. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6013. "name",
  6014. FieldChangesetPayload::has_name,
  6015. FieldChangesetPayload::get_name,
  6016. ));
  6017. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6018. "desc",
  6019. FieldChangesetPayload::has_desc,
  6020. FieldChangesetPayload::get_desc,
  6021. ));
  6022. fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor::<_, FieldType>(
  6023. "field_type",
  6024. FieldChangesetPayload::has_field_type,
  6025. FieldChangesetPayload::get_field_type,
  6026. ));
  6027. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  6028. "frozen",
  6029. FieldChangesetPayload::has_frozen,
  6030. FieldChangesetPayload::get_frozen,
  6031. ));
  6032. fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
  6033. "visibility",
  6034. FieldChangesetPayload::has_visibility,
  6035. FieldChangesetPayload::get_visibility,
  6036. ));
  6037. fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>(
  6038. "width",
  6039. FieldChangesetPayload::has_width,
  6040. FieldChangesetPayload::get_width,
  6041. ));
  6042. fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
  6043. "type_option_data",
  6044. FieldChangesetPayload::has_type_option_data,
  6045. FieldChangesetPayload::get_type_option_data,
  6046. ));
  6047. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldChangesetPayload>(
  6048. "FieldChangesetPayload",
  6049. fields,
  6050. file_descriptor_proto()
  6051. )
  6052. })
  6053. }
  6054. fn default_instance() -> &'static FieldChangesetPayload {
  6055. static instance: ::protobuf::rt::LazyV2<FieldChangesetPayload> = ::protobuf::rt::LazyV2::INIT;
  6056. instance.get(FieldChangesetPayload::new)
  6057. }
  6058. }
  6059. impl ::protobuf::Clear for FieldChangesetPayload {
  6060. fn clear(&mut self) {
  6061. self.field_id.clear();
  6062. self.grid_id.clear();
  6063. self.one_of_name = ::std::option::Option::None;
  6064. self.one_of_desc = ::std::option::Option::None;
  6065. self.one_of_field_type = ::std::option::Option::None;
  6066. self.one_of_frozen = ::std::option::Option::None;
  6067. self.one_of_visibility = ::std::option::Option::None;
  6068. self.one_of_width = ::std::option::Option::None;
  6069. self.one_of_type_option_data = ::std::option::Option::None;
  6070. self.unknown_fields.clear();
  6071. }
  6072. }
  6073. impl ::std::fmt::Debug for FieldChangesetPayload {
  6074. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6075. ::protobuf::text_format::fmt(self, f)
  6076. }
  6077. }
  6078. impl ::protobuf::reflect::ProtobufValue for FieldChangesetPayload {
  6079. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6080. ::protobuf::reflect::ReflectValueRef::Message(self)
  6081. }
  6082. }
  6083. #[derive(PartialEq,Clone,Default)]
  6084. pub struct MoveItemPayload {
  6085. // message fields
  6086. pub grid_id: ::std::string::String,
  6087. pub item_id: ::std::string::String,
  6088. pub from_index: i32,
  6089. pub to_index: i32,
  6090. pub ty: MoveItemType,
  6091. // special fields
  6092. pub unknown_fields: ::protobuf::UnknownFields,
  6093. pub cached_size: ::protobuf::CachedSize,
  6094. }
  6095. impl<'a> ::std::default::Default for &'a MoveItemPayload {
  6096. fn default() -> &'a MoveItemPayload {
  6097. <MoveItemPayload as ::protobuf::Message>::default_instance()
  6098. }
  6099. }
  6100. impl MoveItemPayload {
  6101. pub fn new() -> MoveItemPayload {
  6102. ::std::default::Default::default()
  6103. }
  6104. // string grid_id = 1;
  6105. pub fn get_grid_id(&self) -> &str {
  6106. &self.grid_id
  6107. }
  6108. pub fn clear_grid_id(&mut self) {
  6109. self.grid_id.clear();
  6110. }
  6111. // Param is passed by value, moved
  6112. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  6113. self.grid_id = v;
  6114. }
  6115. // Mutable pointer to the field.
  6116. // If field is not initialized, it is initialized with default value first.
  6117. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  6118. &mut self.grid_id
  6119. }
  6120. // Take field
  6121. pub fn take_grid_id(&mut self) -> ::std::string::String {
  6122. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  6123. }
  6124. // string item_id = 2;
  6125. pub fn get_item_id(&self) -> &str {
  6126. &self.item_id
  6127. }
  6128. pub fn clear_item_id(&mut self) {
  6129. self.item_id.clear();
  6130. }
  6131. // Param is passed by value, moved
  6132. pub fn set_item_id(&mut self, v: ::std::string::String) {
  6133. self.item_id = v;
  6134. }
  6135. // Mutable pointer to the field.
  6136. // If field is not initialized, it is initialized with default value first.
  6137. pub fn mut_item_id(&mut self) -> &mut ::std::string::String {
  6138. &mut self.item_id
  6139. }
  6140. // Take field
  6141. pub fn take_item_id(&mut self) -> ::std::string::String {
  6142. ::std::mem::replace(&mut self.item_id, ::std::string::String::new())
  6143. }
  6144. // int32 from_index = 3;
  6145. pub fn get_from_index(&self) -> i32 {
  6146. self.from_index
  6147. }
  6148. pub fn clear_from_index(&mut self) {
  6149. self.from_index = 0;
  6150. }
  6151. // Param is passed by value, moved
  6152. pub fn set_from_index(&mut self, v: i32) {
  6153. self.from_index = v;
  6154. }
  6155. // int32 to_index = 4;
  6156. pub fn get_to_index(&self) -> i32 {
  6157. self.to_index
  6158. }
  6159. pub fn clear_to_index(&mut self) {
  6160. self.to_index = 0;
  6161. }
  6162. // Param is passed by value, moved
  6163. pub fn set_to_index(&mut self, v: i32) {
  6164. self.to_index = v;
  6165. }
  6166. // .MoveItemType ty = 5;
  6167. pub fn get_ty(&self) -> MoveItemType {
  6168. self.ty
  6169. }
  6170. pub fn clear_ty(&mut self) {
  6171. self.ty = MoveItemType::MoveField;
  6172. }
  6173. // Param is passed by value, moved
  6174. pub fn set_ty(&mut self, v: MoveItemType) {
  6175. self.ty = v;
  6176. }
  6177. }
  6178. impl ::protobuf::Message for MoveItemPayload {
  6179. fn is_initialized(&self) -> bool {
  6180. true
  6181. }
  6182. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6183. while !is.eof()? {
  6184. let (field_number, wire_type) = is.read_tag_unpack()?;
  6185. match field_number {
  6186. 1 => {
  6187. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  6188. },
  6189. 2 => {
  6190. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.item_id)?;
  6191. },
  6192. 3 => {
  6193. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6194. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6195. }
  6196. let tmp = is.read_int32()?;
  6197. self.from_index = tmp;
  6198. },
  6199. 4 => {
  6200. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  6201. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6202. }
  6203. let tmp = is.read_int32()?;
  6204. self.to_index = tmp;
  6205. },
  6206. 5 => {
  6207. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.ty, 5, &mut self.unknown_fields)?
  6208. },
  6209. _ => {
  6210. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  6211. },
  6212. };
  6213. }
  6214. ::std::result::Result::Ok(())
  6215. }
  6216. // Compute sizes of nested messages
  6217. #[allow(unused_variables)]
  6218. fn compute_size(&self) -> u32 {
  6219. let mut my_size = 0;
  6220. if !self.grid_id.is_empty() {
  6221. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  6222. }
  6223. if !self.item_id.is_empty() {
  6224. my_size += ::protobuf::rt::string_size(2, &self.item_id);
  6225. }
  6226. if self.from_index != 0 {
  6227. my_size += ::protobuf::rt::value_size(3, self.from_index, ::protobuf::wire_format::WireTypeVarint);
  6228. }
  6229. if self.to_index != 0 {
  6230. my_size += ::protobuf::rt::value_size(4, self.to_index, ::protobuf::wire_format::WireTypeVarint);
  6231. }
  6232. if self.ty != MoveItemType::MoveField {
  6233. my_size += ::protobuf::rt::enum_size(5, self.ty);
  6234. }
  6235. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  6236. self.cached_size.set(my_size);
  6237. my_size
  6238. }
  6239. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6240. if !self.grid_id.is_empty() {
  6241. os.write_string(1, &self.grid_id)?;
  6242. }
  6243. if !self.item_id.is_empty() {
  6244. os.write_string(2, &self.item_id)?;
  6245. }
  6246. if self.from_index != 0 {
  6247. os.write_int32(3, self.from_index)?;
  6248. }
  6249. if self.to_index != 0 {
  6250. os.write_int32(4, self.to_index)?;
  6251. }
  6252. if self.ty != MoveItemType::MoveField {
  6253. os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.ty))?;
  6254. }
  6255. os.write_unknown_fields(self.get_unknown_fields())?;
  6256. ::std::result::Result::Ok(())
  6257. }
  6258. fn get_cached_size(&self) -> u32 {
  6259. self.cached_size.get()
  6260. }
  6261. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  6262. &self.unknown_fields
  6263. }
  6264. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  6265. &mut self.unknown_fields
  6266. }
  6267. fn as_any(&self) -> &dyn (::std::any::Any) {
  6268. self as &dyn (::std::any::Any)
  6269. }
  6270. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  6271. self as &mut dyn (::std::any::Any)
  6272. }
  6273. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  6274. self
  6275. }
  6276. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  6277. Self::descriptor_static()
  6278. }
  6279. fn new() -> MoveItemPayload {
  6280. MoveItemPayload::new()
  6281. }
  6282. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  6283. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6284. descriptor.get(|| {
  6285. let mut fields = ::std::vec::Vec::new();
  6286. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6287. "grid_id",
  6288. |m: &MoveItemPayload| { &m.grid_id },
  6289. |m: &mut MoveItemPayload| { &mut m.grid_id },
  6290. ));
  6291. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6292. "item_id",
  6293. |m: &MoveItemPayload| { &m.item_id },
  6294. |m: &mut MoveItemPayload| { &mut m.item_id },
  6295. ));
  6296. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  6297. "from_index",
  6298. |m: &MoveItemPayload| { &m.from_index },
  6299. |m: &mut MoveItemPayload| { &mut m.from_index },
  6300. ));
  6301. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  6302. "to_index",
  6303. |m: &MoveItemPayload| { &m.to_index },
  6304. |m: &mut MoveItemPayload| { &mut m.to_index },
  6305. ));
  6306. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MoveItemType>>(
  6307. "ty",
  6308. |m: &MoveItemPayload| { &m.ty },
  6309. |m: &mut MoveItemPayload| { &mut m.ty },
  6310. ));
  6311. ::protobuf::reflect::MessageDescriptor::new_pb_name::<MoveItemPayload>(
  6312. "MoveItemPayload",
  6313. fields,
  6314. file_descriptor_proto()
  6315. )
  6316. })
  6317. }
  6318. fn default_instance() -> &'static MoveItemPayload {
  6319. static instance: ::protobuf::rt::LazyV2<MoveItemPayload> = ::protobuf::rt::LazyV2::INIT;
  6320. instance.get(MoveItemPayload::new)
  6321. }
  6322. }
  6323. impl ::protobuf::Clear for MoveItemPayload {
  6324. fn clear(&mut self) {
  6325. self.grid_id.clear();
  6326. self.item_id.clear();
  6327. self.from_index = 0;
  6328. self.to_index = 0;
  6329. self.ty = MoveItemType::MoveField;
  6330. self.unknown_fields.clear();
  6331. }
  6332. }
  6333. impl ::std::fmt::Debug for MoveItemPayload {
  6334. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6335. ::protobuf::text_format::fmt(self, f)
  6336. }
  6337. }
  6338. impl ::protobuf::reflect::ProtobufValue for MoveItemPayload {
  6339. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6340. ::protobuf::reflect::ReflectValueRef::Message(self)
  6341. }
  6342. }
  6343. #[derive(PartialEq,Clone,Default)]
  6344. pub struct CellChangeset {
  6345. // message fields
  6346. pub grid_id: ::std::string::String,
  6347. pub row_id: ::std::string::String,
  6348. pub field_id: ::std::string::String,
  6349. // message oneof groups
  6350. pub one_of_data: ::std::option::Option<CellChangeset_oneof_one_of_data>,
  6351. // special fields
  6352. pub unknown_fields: ::protobuf::UnknownFields,
  6353. pub cached_size: ::protobuf::CachedSize,
  6354. }
  6355. impl<'a> ::std::default::Default for &'a CellChangeset {
  6356. fn default() -> &'a CellChangeset {
  6357. <CellChangeset as ::protobuf::Message>::default_instance()
  6358. }
  6359. }
  6360. #[derive(Clone,PartialEq,Debug)]
  6361. pub enum CellChangeset_oneof_one_of_data {
  6362. data(::std::string::String),
  6363. }
  6364. impl CellChangeset {
  6365. pub fn new() -> CellChangeset {
  6366. ::std::default::Default::default()
  6367. }
  6368. // string grid_id = 1;
  6369. pub fn get_grid_id(&self) -> &str {
  6370. &self.grid_id
  6371. }
  6372. pub fn clear_grid_id(&mut self) {
  6373. self.grid_id.clear();
  6374. }
  6375. // Param is passed by value, moved
  6376. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  6377. self.grid_id = v;
  6378. }
  6379. // Mutable pointer to the field.
  6380. // If field is not initialized, it is initialized with default value first.
  6381. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  6382. &mut self.grid_id
  6383. }
  6384. // Take field
  6385. pub fn take_grid_id(&mut self) -> ::std::string::String {
  6386. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  6387. }
  6388. // string row_id = 2;
  6389. pub fn get_row_id(&self) -> &str {
  6390. &self.row_id
  6391. }
  6392. pub fn clear_row_id(&mut self) {
  6393. self.row_id.clear();
  6394. }
  6395. // Param is passed by value, moved
  6396. pub fn set_row_id(&mut self, v: ::std::string::String) {
  6397. self.row_id = v;
  6398. }
  6399. // Mutable pointer to the field.
  6400. // If field is not initialized, it is initialized with default value first.
  6401. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  6402. &mut self.row_id
  6403. }
  6404. // Take field
  6405. pub fn take_row_id(&mut self) -> ::std::string::String {
  6406. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  6407. }
  6408. // string field_id = 3;
  6409. pub fn get_field_id(&self) -> &str {
  6410. &self.field_id
  6411. }
  6412. pub fn clear_field_id(&mut self) {
  6413. self.field_id.clear();
  6414. }
  6415. // Param is passed by value, moved
  6416. pub fn set_field_id(&mut self, v: ::std::string::String) {
  6417. self.field_id = v;
  6418. }
  6419. // Mutable pointer to the field.
  6420. // If field is not initialized, it is initialized with default value first.
  6421. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  6422. &mut self.field_id
  6423. }
  6424. // Take field
  6425. pub fn take_field_id(&mut self) -> ::std::string::String {
  6426. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  6427. }
  6428. // string data = 4;
  6429. pub fn get_data(&self) -> &str {
  6430. match self.one_of_data {
  6431. ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(ref v)) => v,
  6432. _ => "",
  6433. }
  6434. }
  6435. pub fn clear_data(&mut self) {
  6436. self.one_of_data = ::std::option::Option::None;
  6437. }
  6438. pub fn has_data(&self) -> bool {
  6439. match self.one_of_data {
  6440. ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(..)) => true,
  6441. _ => false,
  6442. }
  6443. }
  6444. // Param is passed by value, moved
  6445. pub fn set_data(&mut self, v: ::std::string::String) {
  6446. self.one_of_data = ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(v))
  6447. }
  6448. // Mutable pointer to the field.
  6449. pub fn mut_data(&mut self) -> &mut ::std::string::String {
  6450. if let ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(_)) = self.one_of_data {
  6451. } else {
  6452. self.one_of_data = ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(::std::string::String::new()));
  6453. }
  6454. match self.one_of_data {
  6455. ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(ref mut v)) => v,
  6456. _ => panic!(),
  6457. }
  6458. }
  6459. // Take field
  6460. pub fn take_data(&mut self) -> ::std::string::String {
  6461. if self.has_data() {
  6462. match self.one_of_data.take() {
  6463. ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(v)) => v,
  6464. _ => panic!(),
  6465. }
  6466. } else {
  6467. ::std::string::String::new()
  6468. }
  6469. }
  6470. }
  6471. impl ::protobuf::Message for CellChangeset {
  6472. fn is_initialized(&self) -> bool {
  6473. true
  6474. }
  6475. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6476. while !is.eof()? {
  6477. let (field_number, wire_type) = is.read_tag_unpack()?;
  6478. match field_number {
  6479. 1 => {
  6480. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  6481. },
  6482. 2 => {
  6483. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  6484. },
  6485. 3 => {
  6486. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  6487. },
  6488. 4 => {
  6489. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  6490. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  6491. }
  6492. self.one_of_data = ::std::option::Option::Some(CellChangeset_oneof_one_of_data::data(is.read_string()?));
  6493. },
  6494. _ => {
  6495. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  6496. },
  6497. };
  6498. }
  6499. ::std::result::Result::Ok(())
  6500. }
  6501. // Compute sizes of nested messages
  6502. #[allow(unused_variables)]
  6503. fn compute_size(&self) -> u32 {
  6504. let mut my_size = 0;
  6505. if !self.grid_id.is_empty() {
  6506. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  6507. }
  6508. if !self.row_id.is_empty() {
  6509. my_size += ::protobuf::rt::string_size(2, &self.row_id);
  6510. }
  6511. if !self.field_id.is_empty() {
  6512. my_size += ::protobuf::rt::string_size(3, &self.field_id);
  6513. }
  6514. if let ::std::option::Option::Some(ref v) = self.one_of_data {
  6515. match v {
  6516. &CellChangeset_oneof_one_of_data::data(ref v) => {
  6517. my_size += ::protobuf::rt::string_size(4, &v);
  6518. },
  6519. };
  6520. }
  6521. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  6522. self.cached_size.set(my_size);
  6523. my_size
  6524. }
  6525. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  6526. if !self.grid_id.is_empty() {
  6527. os.write_string(1, &self.grid_id)?;
  6528. }
  6529. if !self.row_id.is_empty() {
  6530. os.write_string(2, &self.row_id)?;
  6531. }
  6532. if !self.field_id.is_empty() {
  6533. os.write_string(3, &self.field_id)?;
  6534. }
  6535. if let ::std::option::Option::Some(ref v) = self.one_of_data {
  6536. match v {
  6537. &CellChangeset_oneof_one_of_data::data(ref v) => {
  6538. os.write_string(4, v)?;
  6539. },
  6540. };
  6541. }
  6542. os.write_unknown_fields(self.get_unknown_fields())?;
  6543. ::std::result::Result::Ok(())
  6544. }
  6545. fn get_cached_size(&self) -> u32 {
  6546. self.cached_size.get()
  6547. }
  6548. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  6549. &self.unknown_fields
  6550. }
  6551. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  6552. &mut self.unknown_fields
  6553. }
  6554. fn as_any(&self) -> &dyn (::std::any::Any) {
  6555. self as &dyn (::std::any::Any)
  6556. }
  6557. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  6558. self as &mut dyn (::std::any::Any)
  6559. }
  6560. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  6561. self
  6562. }
  6563. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  6564. Self::descriptor_static()
  6565. }
  6566. fn new() -> CellChangeset {
  6567. CellChangeset::new()
  6568. }
  6569. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  6570. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6571. descriptor.get(|| {
  6572. let mut fields = ::std::vec::Vec::new();
  6573. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6574. "grid_id",
  6575. |m: &CellChangeset| { &m.grid_id },
  6576. |m: &mut CellChangeset| { &mut m.grid_id },
  6577. ));
  6578. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6579. "row_id",
  6580. |m: &CellChangeset| { &m.row_id },
  6581. |m: &mut CellChangeset| { &mut m.row_id },
  6582. ));
  6583. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  6584. "field_id",
  6585. |m: &CellChangeset| { &m.field_id },
  6586. |m: &mut CellChangeset| { &mut m.field_id },
  6587. ));
  6588. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  6589. "data",
  6590. CellChangeset::has_data,
  6591. CellChangeset::get_data,
  6592. ));
  6593. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellChangeset>(
  6594. "CellChangeset",
  6595. fields,
  6596. file_descriptor_proto()
  6597. )
  6598. })
  6599. }
  6600. fn default_instance() -> &'static CellChangeset {
  6601. static instance: ::protobuf::rt::LazyV2<CellChangeset> = ::protobuf::rt::LazyV2::INIT;
  6602. instance.get(CellChangeset::new)
  6603. }
  6604. }
  6605. impl ::protobuf::Clear for CellChangeset {
  6606. fn clear(&mut self) {
  6607. self.grid_id.clear();
  6608. self.row_id.clear();
  6609. self.field_id.clear();
  6610. self.one_of_data = ::std::option::Option::None;
  6611. self.unknown_fields.clear();
  6612. }
  6613. }
  6614. impl ::std::fmt::Debug for CellChangeset {
  6615. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  6616. ::protobuf::text_format::fmt(self, f)
  6617. }
  6618. }
  6619. impl ::protobuf::reflect::ProtobufValue for CellChangeset {
  6620. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6621. ::protobuf::reflect::ReflectValueRef::Message(self)
  6622. }
  6623. }
  6624. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6625. pub enum MoveItemType {
  6626. MoveField = 0,
  6627. MoveRow = 1,
  6628. }
  6629. impl ::protobuf::ProtobufEnum for MoveItemType {
  6630. fn value(&self) -> i32 {
  6631. *self as i32
  6632. }
  6633. fn from_i32(value: i32) -> ::std::option::Option<MoveItemType> {
  6634. match value {
  6635. 0 => ::std::option::Option::Some(MoveItemType::MoveField),
  6636. 1 => ::std::option::Option::Some(MoveItemType::MoveRow),
  6637. _ => ::std::option::Option::None
  6638. }
  6639. }
  6640. fn values() -> &'static [Self] {
  6641. static values: &'static [MoveItemType] = &[
  6642. MoveItemType::MoveField,
  6643. MoveItemType::MoveRow,
  6644. ];
  6645. values
  6646. }
  6647. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  6648. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6649. descriptor.get(|| {
  6650. ::protobuf::reflect::EnumDescriptor::new_pb_name::<MoveItemType>("MoveItemType", file_descriptor_proto())
  6651. })
  6652. }
  6653. }
  6654. impl ::std::marker::Copy for MoveItemType {
  6655. }
  6656. impl ::std::default::Default for MoveItemType {
  6657. fn default() -> Self {
  6658. MoveItemType::MoveField
  6659. }
  6660. }
  6661. impl ::protobuf::reflect::ProtobufValue for MoveItemType {
  6662. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6663. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  6664. }
  6665. }
  6666. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6667. pub enum FieldType {
  6668. RichText = 0,
  6669. Number = 1,
  6670. DateTime = 2,
  6671. SingleSelect = 3,
  6672. MultiSelect = 4,
  6673. Checkbox = 5,
  6674. }
  6675. impl ::protobuf::ProtobufEnum for FieldType {
  6676. fn value(&self) -> i32 {
  6677. *self as i32
  6678. }
  6679. fn from_i32(value: i32) -> ::std::option::Option<FieldType> {
  6680. match value {
  6681. 0 => ::std::option::Option::Some(FieldType::RichText),
  6682. 1 => ::std::option::Option::Some(FieldType::Number),
  6683. 2 => ::std::option::Option::Some(FieldType::DateTime),
  6684. 3 => ::std::option::Option::Some(FieldType::SingleSelect),
  6685. 4 => ::std::option::Option::Some(FieldType::MultiSelect),
  6686. 5 => ::std::option::Option::Some(FieldType::Checkbox),
  6687. _ => ::std::option::Option::None
  6688. }
  6689. }
  6690. fn values() -> &'static [Self] {
  6691. static values: &'static [FieldType] = &[
  6692. FieldType::RichText,
  6693. FieldType::Number,
  6694. FieldType::DateTime,
  6695. FieldType::SingleSelect,
  6696. FieldType::MultiSelect,
  6697. FieldType::Checkbox,
  6698. ];
  6699. values
  6700. }
  6701. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  6702. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  6703. descriptor.get(|| {
  6704. ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldType>("FieldType", file_descriptor_proto())
  6705. })
  6706. }
  6707. }
  6708. impl ::std::marker::Copy for FieldType {
  6709. }
  6710. impl ::std::default::Default for FieldType {
  6711. fn default() -> Self {
  6712. FieldType::RichText
  6713. }
  6714. }
  6715. impl ::protobuf::reflect::ProtobufValue for FieldType {
  6716. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  6717. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  6718. }
  6719. }
  6720. static file_descriptor_proto_data: &'static [u8] = b"\
  6721. \n\ngrid.proto\"z\n\x04Grid\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\
  6722. \x12.\n\x0cfield_orders\x18\x02\x20\x03(\x0b2\x0b.FieldOrderR\x0bfieldOr\
  6723. ders\x122\n\x0cblock_orders\x18\x03\x20\x03(\x0b2\x0f.GridBlockOrderR\
  6724. \x0bblockOrders\"\xd7\x01\n\x05Field\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\
  6725. \x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\
  6726. \x18\x03\x20\x01(\tR\x04desc\x12)\n\nfield_type\x18\x04\x20\x01(\x0e2\n.\
  6727. FieldTypeR\tfieldType\x12\x16\n\x06frozen\x18\x05\x20\x01(\x08R\x06froze\
  6728. n\x12\x1e\n\nvisibility\x18\x06\x20\x01(\x08R\nvisibility\x12\x14\n\x05w\
  6729. idth\x18\x07\x20\x01(\x05R\x05width\x12\x1d\n\nis_primary\x18\x08\x20\
  6730. \x01(\x08R\tisPrimary\"'\n\nFieldOrder\x12\x19\n\x08field_id\x18\x01\x20\
  6731. \x01(\tR\x07fieldId\"\xc6\x01\n\x12GridFieldChangeset\x12\x17\n\x07grid_\
  6732. id\x18\x01\x20\x01(\tR\x06gridId\x124\n\x0finserted_fields\x18\x02\x20\
  6733. \x03(\x0b2\x0b.IndexFieldR\x0einsertedFields\x122\n\x0edeleted_fields\
  6734. \x18\x03\x20\x03(\x0b2\x0b.FieldOrderR\rdeletedFields\x12-\n\x0eupdated_\
  6735. fields\x18\x04\x20\x03(\x0b2\x06.FieldR\rupdatedFields\"@\n\nIndexField\
  6736. \x12\x1c\n\x05field\x18\x01\x20\x01(\x0b2\x06.FieldR\x05field\x12\x14\n\
  6737. \x05index\x18\x02\x20\x01(\x05R\x05index\"\x90\x01\n\x1aGetEditFieldCont\
  6738. extPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x1b\n\
  6739. \x08field_id\x18\x02\x20\x01(\tH\0R\x07fieldId\x12)\n\nfield_type\x18\
  6740. \x03\x20\x01(\x0e2\n.FieldTypeR\tfieldTypeB\x11\n\x0fone_of_field_id\"q\
  6741. \n\x10EditFieldPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridI\
  6742. d\x12\x19\n\x08field_id\x18\x02\x20\x01(\tR\x07fieldId\x12)\n\nfield_typ\
  6743. e\x18\x03\x20\x01(\x0e2\n.FieldTypeR\tfieldType\"|\n\x10EditFieldContext\
  6744. \x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12%\n\ngrid_field\
  6745. \x18\x02\x20\x01(\x0b2\x06.FieldR\tgridField\x12(\n\x10type_option_data\
  6746. \x18\x03\x20\x01(\x0cR\x0etypeOptionData\"-\n\rRepeatedField\x12\x1c\n\
  6747. \x05items\x18\x01\x20\x03(\x0b2\x06.FieldR\x05items\"7\n\x12RepeatedFiel\
  6748. dOrder\x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b.FieldOrderR\x05items\"T\
  6749. \n\x08RowOrder\x12\x15\n\x06row_id\x18\x01\x20\x01(\tR\x05rowId\x12\x19\
  6750. \n\x08block_id\x18\x02\x20\x01(\tR\x07blockId\x12\x16\n\x06height\x18\
  6751. \x03\x20\x01(\x05R\x06height\"\xb8\x01\n\x03Row\x12\x0e\n\x02id\x18\x01\
  6752. \x20\x01(\tR\x02id\x12@\n\x10cell_by_field_id\x18\x02\x20\x03(\x0b2\x17.\
  6753. Row.CellByFieldIdEntryR\rcellByFieldId\x12\x16\n\x06height\x18\x03\x20\
  6754. \x01(\x05R\x06height\x1aG\n\x12CellByFieldIdEntry\x12\x10\n\x03key\x18\
  6755. \x01\x20\x01(\tR\x03key\x12\x1b\n\x05value\x18\x02\x20\x01(\x0b2\x05.Cel\
  6756. lR\x05value:\x028\x01\")\n\x0bRepeatedRow\x12\x1a\n\x05items\x18\x01\x20\
  6757. \x03(\x0b2\x04.RowR\x05items\"5\n\x11RepeatedGridBlock\x12\x20\n\x05item\
  6758. s\x18\x01\x20\x03(\x0b2\n.GridBlockR\x05items\"U\n\x0eGridBlockOrder\x12\
  6759. \x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12(\n\nrow_orders\x18\
  6760. \x02\x20\x03(\x0b2\t.RowOrderR\trowOrders\"_\n\rIndexRowOrder\x12&\n\tro\
  6761. w_order\x18\x01\x20\x01(\x0b2\t.RowOrderR\x08rowOrder\x12\x16\n\x05index\
  6762. \x18\x02\x20\x01(\x05H\0R\x05indexB\x0e\n\x0cone_of_index\"\xbf\x01\n\
  6763. \x11GridRowsChangeset\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07block\
  6764. Id\x123\n\rinserted_rows\x18\x02\x20\x03(\x0b2\x0e.IndexRowOrderR\x0cins\
  6765. ertedRows\x12,\n\x0cdeleted_rows\x18\x03\x20\x03(\x0b2\t.RowOrderR\x0bde\
  6766. letedRows\x12,\n\x0cupdated_rows\x18\x04\x20\x03(\x0b2\t.RowOrderR\x0bup\
  6767. datedRows\"E\n\tGridBlock\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12(\
  6768. \n\nrow_orders\x18\x02\x20\x03(\x0b2\t.RowOrderR\trowOrders\";\n\x04Cell\
  6769. \x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldId\x12\x18\n\x07conte\
  6770. nt\x18\x02\x20\x01(\tR\x07content\"\x8f\x01\n\x14CellNotificationData\
  6771. \x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x19\n\x08field_i\
  6772. d\x18\x02\x20\x01(\tR\x07fieldId\x12\x15\n\x06row_id\x18\x03\x20\x01(\tR\
  6773. \x05rowId\x12\x1a\n\x07content\x18\x04\x20\x01(\tH\0R\x07contentB\x10\n\
  6774. \x0eone_of_content\"+\n\x0cRepeatedCell\x12\x1b\n\x05items\x18\x01\x20\
  6775. \x03(\x0b2\x05.CellR\x05items\"'\n\x11CreateGridPayload\x12\x12\n\x04nam\
  6776. e\x18\x01\x20\x01(\tR\x04name\"\x1e\n\x06GridId\x12\x14\n\x05value\x18\
  6777. \x01\x20\x01(\tR\x05value\"#\n\x0bGridBlockId\x12\x14\n\x05value\x18\x01\
  6778. \x20\x01(\tR\x05value\"f\n\x10CreateRowPayload\x12\x17\n\x07grid_id\x18\
  6779. \x01\x20\x01(\tR\x06gridId\x12\"\n\x0cstart_row_id\x18\x02\x20\x01(\tH\0\
  6780. R\nstartRowIdB\x15\n\x13one_of_start_row_id\"\xb6\x01\n\x12InsertFieldPa\
  6781. yload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x1c\n\x05fi\
  6782. eld\x18\x02\x20\x01(\x0b2\x06.FieldR\x05field\x12(\n\x10type_option_data\
  6783. \x18\x03\x20\x01(\x0cR\x0etypeOptionData\x12&\n\x0estart_field_id\x18\
  6784. \x04\x20\x01(\tH\0R\x0cstartFieldIdB\x17\n\x15one_of_start_field_id\"d\n\
  6785. \x11QueryFieldPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\
  6786. \x126\n\x0cfield_orders\x18\x02\x20\x01(\x0b2\x13.RepeatedFieldOrderR\
  6787. \x0bfieldOrders\"e\n\x16QueryGridBlocksPayload\x12\x17\n\x07grid_id\x18\
  6788. \x01\x20\x01(\tR\x06gridId\x122\n\x0cblock_orders\x18\x02\x20\x03(\x0b2\
  6789. \x0f.GridBlockOrderR\x0bblockOrders\"\xa8\x03\n\x15FieldChangesetPayload\
  6790. \x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldId\x12\x17\n\x07grid_\
  6791. id\x18\x02\x20\x01(\tR\x06gridId\x12\x14\n\x04name\x18\x03\x20\x01(\tH\0\
  6792. R\x04name\x12\x14\n\x04desc\x18\x04\x20\x01(\tH\x01R\x04desc\x12+\n\nfie\
  6793. ld_type\x18\x05\x20\x01(\x0e2\n.FieldTypeH\x02R\tfieldType\x12\x18\n\x06\
  6794. frozen\x18\x06\x20\x01(\x08H\x03R\x06frozen\x12\x20\n\nvisibility\x18\
  6795. \x07\x20\x01(\x08H\x04R\nvisibility\x12\x16\n\x05width\x18\x08\x20\x01(\
  6796. \x05H\x05R\x05width\x12*\n\x10type_option_data\x18\t\x20\x01(\x0cH\x06R\
  6797. \x0etypeOptionDataB\r\n\x0bone_of_nameB\r\n\x0bone_of_descB\x13\n\x11one\
  6798. _of_field_typeB\x0f\n\rone_of_frozenB\x13\n\x11one_of_visibilityB\x0e\n\
  6799. \x0cone_of_widthB\x19\n\x17one_of_type_option_data\"\x9c\x01\n\x0fMoveIt\
  6800. emPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x17\n\
  6801. \x07item_id\x18\x02\x20\x01(\tR\x06itemId\x12\x1d\n\nfrom_index\x18\x03\
  6802. \x20\x01(\x05R\tfromIndex\x12\x19\n\x08to_index\x18\x04\x20\x01(\x05R\
  6803. \x07toIndex\x12\x1d\n\x02ty\x18\x05\x20\x01(\x0e2\r.MoveItemTypeR\x02ty\
  6804. \"\x7f\n\rCellChangeset\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06grid\
  6805. Id\x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05rowId\x12\x19\n\x08field_i\
  6806. d\x18\x03\x20\x01(\tR\x07fieldId\x12\x14\n\x04data\x18\x04\x20\x01(\tH\0\
  6807. R\x04dataB\r\n\x0bone_of_data**\n\x0cMoveItemType\x12\r\n\tMoveField\x10\
  6808. \0\x12\x0b\n\x07MoveRow\x10\x01*d\n\tFieldType\x12\x0c\n\x08RichText\x10\
  6809. \0\x12\n\n\x06Number\x10\x01\x12\x0c\n\x08DateTime\x10\x02\x12\x10\n\x0c\
  6810. SingleSelect\x10\x03\x12\x0f\n\x0bMultiSelect\x10\x04\x12\x0c\n\x08Check\
  6811. box\x10\x05b\x06proto3\
  6812. ";
  6813. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  6814. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  6815. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  6816. }
  6817. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  6818. file_descriptor_proto_lazy.get(|| {
  6819. parse_descriptor_proto()
  6820. })
  6821. }