grid.rs 174 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373
  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: super::meta::FieldType,
  249. pub frozen: bool,
  250. pub visibility: bool,
  251. pub width: i32,
  252. // special fields
  253. pub unknown_fields: ::protobuf::UnknownFields,
  254. pub cached_size: ::protobuf::CachedSize,
  255. }
  256. impl<'a> ::std::default::Default for &'a Field {
  257. fn default() -> &'a Field {
  258. <Field as ::protobuf::Message>::default_instance()
  259. }
  260. }
  261. impl Field {
  262. pub fn new() -> Field {
  263. ::std::default::Default::default()
  264. }
  265. // string id = 1;
  266. pub fn get_id(&self) -> &str {
  267. &self.id
  268. }
  269. pub fn clear_id(&mut self) {
  270. self.id.clear();
  271. }
  272. // Param is passed by value, moved
  273. pub fn set_id(&mut self, v: ::std::string::String) {
  274. self.id = v;
  275. }
  276. // Mutable pointer to the field.
  277. // If field is not initialized, it is initialized with default value first.
  278. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  279. &mut self.id
  280. }
  281. // Take field
  282. pub fn take_id(&mut self) -> ::std::string::String {
  283. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  284. }
  285. // string name = 2;
  286. pub fn get_name(&self) -> &str {
  287. &self.name
  288. }
  289. pub fn clear_name(&mut self) {
  290. self.name.clear();
  291. }
  292. // Param is passed by value, moved
  293. pub fn set_name(&mut self, v: ::std::string::String) {
  294. self.name = v;
  295. }
  296. // Mutable pointer to the field.
  297. // If field is not initialized, it is initialized with default value first.
  298. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  299. &mut self.name
  300. }
  301. // Take field
  302. pub fn take_name(&mut self) -> ::std::string::String {
  303. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  304. }
  305. // string desc = 3;
  306. pub fn get_desc(&self) -> &str {
  307. &self.desc
  308. }
  309. pub fn clear_desc(&mut self) {
  310. self.desc.clear();
  311. }
  312. // Param is passed by value, moved
  313. pub fn set_desc(&mut self, v: ::std::string::String) {
  314. self.desc = v;
  315. }
  316. // Mutable pointer to the field.
  317. // If field is not initialized, it is initialized with default value first.
  318. pub fn mut_desc(&mut self) -> &mut ::std::string::String {
  319. &mut self.desc
  320. }
  321. // Take field
  322. pub fn take_desc(&mut self) -> ::std::string::String {
  323. ::std::mem::replace(&mut self.desc, ::std::string::String::new())
  324. }
  325. // .FieldType field_type = 4;
  326. pub fn get_field_type(&self) -> super::meta::FieldType {
  327. self.field_type
  328. }
  329. pub fn clear_field_type(&mut self) {
  330. self.field_type = super::meta::FieldType::RichText;
  331. }
  332. // Param is passed by value, moved
  333. pub fn set_field_type(&mut self, v: super::meta::FieldType) {
  334. self.field_type = v;
  335. }
  336. // bool frozen = 5;
  337. pub fn get_frozen(&self) -> bool {
  338. self.frozen
  339. }
  340. pub fn clear_frozen(&mut self) {
  341. self.frozen = false;
  342. }
  343. // Param is passed by value, moved
  344. pub fn set_frozen(&mut self, v: bool) {
  345. self.frozen = v;
  346. }
  347. // bool visibility = 6;
  348. pub fn get_visibility(&self) -> bool {
  349. self.visibility
  350. }
  351. pub fn clear_visibility(&mut self) {
  352. self.visibility = false;
  353. }
  354. // Param is passed by value, moved
  355. pub fn set_visibility(&mut self, v: bool) {
  356. self.visibility = v;
  357. }
  358. // int32 width = 7;
  359. pub fn get_width(&self) -> i32 {
  360. self.width
  361. }
  362. pub fn clear_width(&mut self) {
  363. self.width = 0;
  364. }
  365. // Param is passed by value, moved
  366. pub fn set_width(&mut self, v: i32) {
  367. self.width = v;
  368. }
  369. }
  370. impl ::protobuf::Message for Field {
  371. fn is_initialized(&self) -> bool {
  372. true
  373. }
  374. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  375. while !is.eof()? {
  376. let (field_number, wire_type) = is.read_tag_unpack()?;
  377. match field_number {
  378. 1 => {
  379. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  380. },
  381. 2 => {
  382. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  383. },
  384. 3 => {
  385. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
  386. },
  387. 4 => {
  388. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)?
  389. },
  390. 5 => {
  391. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  392. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  393. }
  394. let tmp = is.read_bool()?;
  395. self.frozen = tmp;
  396. },
  397. 6 => {
  398. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  399. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  400. }
  401. let tmp = is.read_bool()?;
  402. self.visibility = tmp;
  403. },
  404. 7 => {
  405. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  406. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  407. }
  408. let tmp = is.read_int32()?;
  409. self.width = tmp;
  410. },
  411. _ => {
  412. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  413. },
  414. };
  415. }
  416. ::std::result::Result::Ok(())
  417. }
  418. // Compute sizes of nested messages
  419. #[allow(unused_variables)]
  420. fn compute_size(&self) -> u32 {
  421. let mut my_size = 0;
  422. if !self.id.is_empty() {
  423. my_size += ::protobuf::rt::string_size(1, &self.id);
  424. }
  425. if !self.name.is_empty() {
  426. my_size += ::protobuf::rt::string_size(2, &self.name);
  427. }
  428. if !self.desc.is_empty() {
  429. my_size += ::protobuf::rt::string_size(3, &self.desc);
  430. }
  431. if self.field_type != super::meta::FieldType::RichText {
  432. my_size += ::protobuf::rt::enum_size(4, self.field_type);
  433. }
  434. if self.frozen != false {
  435. my_size += 2;
  436. }
  437. if self.visibility != false {
  438. my_size += 2;
  439. }
  440. if self.width != 0 {
  441. my_size += ::protobuf::rt::value_size(7, self.width, ::protobuf::wire_format::WireTypeVarint);
  442. }
  443. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  444. self.cached_size.set(my_size);
  445. my_size
  446. }
  447. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  448. if !self.id.is_empty() {
  449. os.write_string(1, &self.id)?;
  450. }
  451. if !self.name.is_empty() {
  452. os.write_string(2, &self.name)?;
  453. }
  454. if !self.desc.is_empty() {
  455. os.write_string(3, &self.desc)?;
  456. }
  457. if self.field_type != super::meta::FieldType::RichText {
  458. os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  459. }
  460. if self.frozen != false {
  461. os.write_bool(5, self.frozen)?;
  462. }
  463. if self.visibility != false {
  464. os.write_bool(6, self.visibility)?;
  465. }
  466. if self.width != 0 {
  467. os.write_int32(7, self.width)?;
  468. }
  469. os.write_unknown_fields(self.get_unknown_fields())?;
  470. ::std::result::Result::Ok(())
  471. }
  472. fn get_cached_size(&self) -> u32 {
  473. self.cached_size.get()
  474. }
  475. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  476. &self.unknown_fields
  477. }
  478. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  479. &mut self.unknown_fields
  480. }
  481. fn as_any(&self) -> &dyn (::std::any::Any) {
  482. self as &dyn (::std::any::Any)
  483. }
  484. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  485. self as &mut dyn (::std::any::Any)
  486. }
  487. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  488. self
  489. }
  490. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  491. Self::descriptor_static()
  492. }
  493. fn new() -> Field {
  494. Field::new()
  495. }
  496. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  497. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  498. descriptor.get(|| {
  499. let mut fields = ::std::vec::Vec::new();
  500. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  501. "id",
  502. |m: &Field| { &m.id },
  503. |m: &mut Field| { &mut m.id },
  504. ));
  505. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  506. "name",
  507. |m: &Field| { &m.name },
  508. |m: &mut Field| { &mut m.name },
  509. ));
  510. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  511. "desc",
  512. |m: &Field| { &m.desc },
  513. |m: &mut Field| { &mut m.desc },
  514. ));
  515. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::meta::FieldType>>(
  516. "field_type",
  517. |m: &Field| { &m.field_type },
  518. |m: &mut Field| { &mut m.field_type },
  519. ));
  520. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  521. "frozen",
  522. |m: &Field| { &m.frozen },
  523. |m: &mut Field| { &mut m.frozen },
  524. ));
  525. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  526. "visibility",
  527. |m: &Field| { &m.visibility },
  528. |m: &mut Field| { &mut m.visibility },
  529. ));
  530. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  531. "width",
  532. |m: &Field| { &m.width },
  533. |m: &mut Field| { &mut m.width },
  534. ));
  535. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Field>(
  536. "Field",
  537. fields,
  538. file_descriptor_proto()
  539. )
  540. })
  541. }
  542. fn default_instance() -> &'static Field {
  543. static instance: ::protobuf::rt::LazyV2<Field> = ::protobuf::rt::LazyV2::INIT;
  544. instance.get(Field::new)
  545. }
  546. }
  547. impl ::protobuf::Clear for Field {
  548. fn clear(&mut self) {
  549. self.id.clear();
  550. self.name.clear();
  551. self.desc.clear();
  552. self.field_type = super::meta::FieldType::RichText;
  553. self.frozen = false;
  554. self.visibility = false;
  555. self.width = 0;
  556. self.unknown_fields.clear();
  557. }
  558. }
  559. impl ::std::fmt::Debug for Field {
  560. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  561. ::protobuf::text_format::fmt(self, f)
  562. }
  563. }
  564. impl ::protobuf::reflect::ProtobufValue for Field {
  565. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  566. ::protobuf::reflect::ReflectValueRef::Message(self)
  567. }
  568. }
  569. #[derive(PartialEq,Clone,Default)]
  570. pub struct FieldOrder {
  571. // message fields
  572. pub field_id: ::std::string::String,
  573. // special fields
  574. pub unknown_fields: ::protobuf::UnknownFields,
  575. pub cached_size: ::protobuf::CachedSize,
  576. }
  577. impl<'a> ::std::default::Default for &'a FieldOrder {
  578. fn default() -> &'a FieldOrder {
  579. <FieldOrder as ::protobuf::Message>::default_instance()
  580. }
  581. }
  582. impl FieldOrder {
  583. pub fn new() -> FieldOrder {
  584. ::std::default::Default::default()
  585. }
  586. // string field_id = 1;
  587. pub fn get_field_id(&self) -> &str {
  588. &self.field_id
  589. }
  590. pub fn clear_field_id(&mut self) {
  591. self.field_id.clear();
  592. }
  593. // Param is passed by value, moved
  594. pub fn set_field_id(&mut self, v: ::std::string::String) {
  595. self.field_id = v;
  596. }
  597. // Mutable pointer to the field.
  598. // If field is not initialized, it is initialized with default value first.
  599. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  600. &mut self.field_id
  601. }
  602. // Take field
  603. pub fn take_field_id(&mut self) -> ::std::string::String {
  604. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  605. }
  606. }
  607. impl ::protobuf::Message for FieldOrder {
  608. fn is_initialized(&self) -> bool {
  609. true
  610. }
  611. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  612. while !is.eof()? {
  613. let (field_number, wire_type) = is.read_tag_unpack()?;
  614. match field_number {
  615. 1 => {
  616. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  617. },
  618. _ => {
  619. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  620. },
  621. };
  622. }
  623. ::std::result::Result::Ok(())
  624. }
  625. // Compute sizes of nested messages
  626. #[allow(unused_variables)]
  627. fn compute_size(&self) -> u32 {
  628. let mut my_size = 0;
  629. if !self.field_id.is_empty() {
  630. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  631. }
  632. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  633. self.cached_size.set(my_size);
  634. my_size
  635. }
  636. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  637. if !self.field_id.is_empty() {
  638. os.write_string(1, &self.field_id)?;
  639. }
  640. os.write_unknown_fields(self.get_unknown_fields())?;
  641. ::std::result::Result::Ok(())
  642. }
  643. fn get_cached_size(&self) -> u32 {
  644. self.cached_size.get()
  645. }
  646. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  647. &self.unknown_fields
  648. }
  649. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  650. &mut self.unknown_fields
  651. }
  652. fn as_any(&self) -> &dyn (::std::any::Any) {
  653. self as &dyn (::std::any::Any)
  654. }
  655. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  656. self as &mut dyn (::std::any::Any)
  657. }
  658. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  659. self
  660. }
  661. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  662. Self::descriptor_static()
  663. }
  664. fn new() -> FieldOrder {
  665. FieldOrder::new()
  666. }
  667. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  668. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  669. descriptor.get(|| {
  670. let mut fields = ::std::vec::Vec::new();
  671. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  672. "field_id",
  673. |m: &FieldOrder| { &m.field_id },
  674. |m: &mut FieldOrder| { &mut m.field_id },
  675. ));
  676. ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldOrder>(
  677. "FieldOrder",
  678. fields,
  679. file_descriptor_proto()
  680. )
  681. })
  682. }
  683. fn default_instance() -> &'static FieldOrder {
  684. static instance: ::protobuf::rt::LazyV2<FieldOrder> = ::protobuf::rt::LazyV2::INIT;
  685. instance.get(FieldOrder::new)
  686. }
  687. }
  688. impl ::protobuf::Clear for FieldOrder {
  689. fn clear(&mut self) {
  690. self.field_id.clear();
  691. self.unknown_fields.clear();
  692. }
  693. }
  694. impl ::std::fmt::Debug for FieldOrder {
  695. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  696. ::protobuf::text_format::fmt(self, f)
  697. }
  698. }
  699. impl ::protobuf::reflect::ProtobufValue for FieldOrder {
  700. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  701. ::protobuf::reflect::ReflectValueRef::Message(self)
  702. }
  703. }
  704. #[derive(PartialEq,Clone,Default)]
  705. pub struct GetEditFieldContextPayload {
  706. // message fields
  707. pub grid_id: ::std::string::String,
  708. pub field_type: super::meta::FieldType,
  709. // message oneof groups
  710. pub one_of_field_id: ::std::option::Option<GetEditFieldContextPayload_oneof_one_of_field_id>,
  711. // special fields
  712. pub unknown_fields: ::protobuf::UnknownFields,
  713. pub cached_size: ::protobuf::CachedSize,
  714. }
  715. impl<'a> ::std::default::Default for &'a GetEditFieldContextPayload {
  716. fn default() -> &'a GetEditFieldContextPayload {
  717. <GetEditFieldContextPayload as ::protobuf::Message>::default_instance()
  718. }
  719. }
  720. #[derive(Clone,PartialEq,Debug)]
  721. pub enum GetEditFieldContextPayload_oneof_one_of_field_id {
  722. field_id(::std::string::String),
  723. }
  724. impl GetEditFieldContextPayload {
  725. pub fn new() -> GetEditFieldContextPayload {
  726. ::std::default::Default::default()
  727. }
  728. // string grid_id = 1;
  729. pub fn get_grid_id(&self) -> &str {
  730. &self.grid_id
  731. }
  732. pub fn clear_grid_id(&mut self) {
  733. self.grid_id.clear();
  734. }
  735. // Param is passed by value, moved
  736. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  737. self.grid_id = v;
  738. }
  739. // Mutable pointer to the field.
  740. // If field is not initialized, it is initialized with default value first.
  741. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  742. &mut self.grid_id
  743. }
  744. // Take field
  745. pub fn take_grid_id(&mut self) -> ::std::string::String {
  746. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  747. }
  748. // string field_id = 2;
  749. pub fn get_field_id(&self) -> &str {
  750. match self.one_of_field_id {
  751. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v)) => v,
  752. _ => "",
  753. }
  754. }
  755. pub fn clear_field_id(&mut self) {
  756. self.one_of_field_id = ::std::option::Option::None;
  757. }
  758. pub fn has_field_id(&self) -> bool {
  759. match self.one_of_field_id {
  760. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(..)) => true,
  761. _ => false,
  762. }
  763. }
  764. // Param is passed by value, moved
  765. pub fn set_field_id(&mut self, v: ::std::string::String) {
  766. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(v))
  767. }
  768. // Mutable pointer to the field.
  769. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  770. if let ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(_)) = self.one_of_field_id {
  771. } else {
  772. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(::std::string::String::new()));
  773. }
  774. match self.one_of_field_id {
  775. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref mut v)) => v,
  776. _ => panic!(),
  777. }
  778. }
  779. // Take field
  780. pub fn take_field_id(&mut self) -> ::std::string::String {
  781. if self.has_field_id() {
  782. match self.one_of_field_id.take() {
  783. ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(v)) => v,
  784. _ => panic!(),
  785. }
  786. } else {
  787. ::std::string::String::new()
  788. }
  789. }
  790. // .FieldType field_type = 3;
  791. pub fn get_field_type(&self) -> super::meta::FieldType {
  792. self.field_type
  793. }
  794. pub fn clear_field_type(&mut self) {
  795. self.field_type = super::meta::FieldType::RichText;
  796. }
  797. // Param is passed by value, moved
  798. pub fn set_field_type(&mut self, v: super::meta::FieldType) {
  799. self.field_type = v;
  800. }
  801. }
  802. impl ::protobuf::Message for GetEditFieldContextPayload {
  803. fn is_initialized(&self) -> bool {
  804. true
  805. }
  806. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  807. while !is.eof()? {
  808. let (field_number, wire_type) = is.read_tag_unpack()?;
  809. match field_number {
  810. 1 => {
  811. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  812. },
  813. 2 => {
  814. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  815. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  816. }
  817. self.one_of_field_id = ::std::option::Option::Some(GetEditFieldContextPayload_oneof_one_of_field_id::field_id(is.read_string()?));
  818. },
  819. 3 => {
  820. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 3, &mut self.unknown_fields)?
  821. },
  822. _ => {
  823. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  824. },
  825. };
  826. }
  827. ::std::result::Result::Ok(())
  828. }
  829. // Compute sizes of nested messages
  830. #[allow(unused_variables)]
  831. fn compute_size(&self) -> u32 {
  832. let mut my_size = 0;
  833. if !self.grid_id.is_empty() {
  834. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  835. }
  836. if self.field_type != super::meta::FieldType::RichText {
  837. my_size += ::protobuf::rt::enum_size(3, self.field_type);
  838. }
  839. if let ::std::option::Option::Some(ref v) = self.one_of_field_id {
  840. match v {
  841. &GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v) => {
  842. my_size += ::protobuf::rt::string_size(2, &v);
  843. },
  844. };
  845. }
  846. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  847. self.cached_size.set(my_size);
  848. my_size
  849. }
  850. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  851. if !self.grid_id.is_empty() {
  852. os.write_string(1, &self.grid_id)?;
  853. }
  854. if self.field_type != super::meta::FieldType::RichText {
  855. os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  856. }
  857. if let ::std::option::Option::Some(ref v) = self.one_of_field_id {
  858. match v {
  859. &GetEditFieldContextPayload_oneof_one_of_field_id::field_id(ref v) => {
  860. os.write_string(2, v)?;
  861. },
  862. };
  863. }
  864. os.write_unknown_fields(self.get_unknown_fields())?;
  865. ::std::result::Result::Ok(())
  866. }
  867. fn get_cached_size(&self) -> u32 {
  868. self.cached_size.get()
  869. }
  870. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  871. &self.unknown_fields
  872. }
  873. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  874. &mut self.unknown_fields
  875. }
  876. fn as_any(&self) -> &dyn (::std::any::Any) {
  877. self as &dyn (::std::any::Any)
  878. }
  879. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  880. self as &mut dyn (::std::any::Any)
  881. }
  882. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  883. self
  884. }
  885. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  886. Self::descriptor_static()
  887. }
  888. fn new() -> GetEditFieldContextPayload {
  889. GetEditFieldContextPayload::new()
  890. }
  891. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  892. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  893. descriptor.get(|| {
  894. let mut fields = ::std::vec::Vec::new();
  895. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  896. "grid_id",
  897. |m: &GetEditFieldContextPayload| { &m.grid_id },
  898. |m: &mut GetEditFieldContextPayload| { &mut m.grid_id },
  899. ));
  900. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  901. "field_id",
  902. GetEditFieldContextPayload::has_field_id,
  903. GetEditFieldContextPayload::get_field_id,
  904. ));
  905. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::meta::FieldType>>(
  906. "field_type",
  907. |m: &GetEditFieldContextPayload| { &m.field_type },
  908. |m: &mut GetEditFieldContextPayload| { &mut m.field_type },
  909. ));
  910. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GetEditFieldContextPayload>(
  911. "GetEditFieldContextPayload",
  912. fields,
  913. file_descriptor_proto()
  914. )
  915. })
  916. }
  917. fn default_instance() -> &'static GetEditFieldContextPayload {
  918. static instance: ::protobuf::rt::LazyV2<GetEditFieldContextPayload> = ::protobuf::rt::LazyV2::INIT;
  919. instance.get(GetEditFieldContextPayload::new)
  920. }
  921. }
  922. impl ::protobuf::Clear for GetEditFieldContextPayload {
  923. fn clear(&mut self) {
  924. self.grid_id.clear();
  925. self.one_of_field_id = ::std::option::Option::None;
  926. self.field_type = super::meta::FieldType::RichText;
  927. self.unknown_fields.clear();
  928. }
  929. }
  930. impl ::std::fmt::Debug for GetEditFieldContextPayload {
  931. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  932. ::protobuf::text_format::fmt(self, f)
  933. }
  934. }
  935. impl ::protobuf::reflect::ProtobufValue for GetEditFieldContextPayload {
  936. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  937. ::protobuf::reflect::ReflectValueRef::Message(self)
  938. }
  939. }
  940. #[derive(PartialEq,Clone,Default)]
  941. pub struct EditFieldPayload {
  942. // message fields
  943. pub grid_id: ::std::string::String,
  944. pub field_id: ::std::string::String,
  945. pub field_type: super::meta::FieldType,
  946. // special fields
  947. pub unknown_fields: ::protobuf::UnknownFields,
  948. pub cached_size: ::protobuf::CachedSize,
  949. }
  950. impl<'a> ::std::default::Default for &'a EditFieldPayload {
  951. fn default() -> &'a EditFieldPayload {
  952. <EditFieldPayload as ::protobuf::Message>::default_instance()
  953. }
  954. }
  955. impl EditFieldPayload {
  956. pub fn new() -> EditFieldPayload {
  957. ::std::default::Default::default()
  958. }
  959. // string grid_id = 1;
  960. pub fn get_grid_id(&self) -> &str {
  961. &self.grid_id
  962. }
  963. pub fn clear_grid_id(&mut self) {
  964. self.grid_id.clear();
  965. }
  966. // Param is passed by value, moved
  967. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  968. self.grid_id = v;
  969. }
  970. // Mutable pointer to the field.
  971. // If field is not initialized, it is initialized with default value first.
  972. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  973. &mut self.grid_id
  974. }
  975. // Take field
  976. pub fn take_grid_id(&mut self) -> ::std::string::String {
  977. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  978. }
  979. // string field_id = 2;
  980. pub fn get_field_id(&self) -> &str {
  981. &self.field_id
  982. }
  983. pub fn clear_field_id(&mut self) {
  984. self.field_id.clear();
  985. }
  986. // Param is passed by value, moved
  987. pub fn set_field_id(&mut self, v: ::std::string::String) {
  988. self.field_id = v;
  989. }
  990. // Mutable pointer to the field.
  991. // If field is not initialized, it is initialized with default value first.
  992. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  993. &mut self.field_id
  994. }
  995. // Take field
  996. pub fn take_field_id(&mut self) -> ::std::string::String {
  997. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  998. }
  999. // .FieldType field_type = 3;
  1000. pub fn get_field_type(&self) -> super::meta::FieldType {
  1001. self.field_type
  1002. }
  1003. pub fn clear_field_type(&mut self) {
  1004. self.field_type = super::meta::FieldType::RichText;
  1005. }
  1006. // Param is passed by value, moved
  1007. pub fn set_field_type(&mut self, v: super::meta::FieldType) {
  1008. self.field_type = v;
  1009. }
  1010. }
  1011. impl ::protobuf::Message for EditFieldPayload {
  1012. fn is_initialized(&self) -> bool {
  1013. true
  1014. }
  1015. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1016. while !is.eof()? {
  1017. let (field_number, wire_type) = is.read_tag_unpack()?;
  1018. match field_number {
  1019. 1 => {
  1020. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1021. },
  1022. 2 => {
  1023. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  1024. },
  1025. 3 => {
  1026. ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 3, &mut self.unknown_fields)?
  1027. },
  1028. _ => {
  1029. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1030. },
  1031. };
  1032. }
  1033. ::std::result::Result::Ok(())
  1034. }
  1035. // Compute sizes of nested messages
  1036. #[allow(unused_variables)]
  1037. fn compute_size(&self) -> u32 {
  1038. let mut my_size = 0;
  1039. if !self.grid_id.is_empty() {
  1040. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1041. }
  1042. if !self.field_id.is_empty() {
  1043. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  1044. }
  1045. if self.field_type != super::meta::FieldType::RichText {
  1046. my_size += ::protobuf::rt::enum_size(3, self.field_type);
  1047. }
  1048. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1049. self.cached_size.set(my_size);
  1050. my_size
  1051. }
  1052. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1053. if !self.grid_id.is_empty() {
  1054. os.write_string(1, &self.grid_id)?;
  1055. }
  1056. if !self.field_id.is_empty() {
  1057. os.write_string(2, &self.field_id)?;
  1058. }
  1059. if self.field_type != super::meta::FieldType::RichText {
  1060. os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
  1061. }
  1062. os.write_unknown_fields(self.get_unknown_fields())?;
  1063. ::std::result::Result::Ok(())
  1064. }
  1065. fn get_cached_size(&self) -> u32 {
  1066. self.cached_size.get()
  1067. }
  1068. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1069. &self.unknown_fields
  1070. }
  1071. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1072. &mut self.unknown_fields
  1073. }
  1074. fn as_any(&self) -> &dyn (::std::any::Any) {
  1075. self as &dyn (::std::any::Any)
  1076. }
  1077. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1078. self as &mut dyn (::std::any::Any)
  1079. }
  1080. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1081. self
  1082. }
  1083. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1084. Self::descriptor_static()
  1085. }
  1086. fn new() -> EditFieldPayload {
  1087. EditFieldPayload::new()
  1088. }
  1089. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1090. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1091. descriptor.get(|| {
  1092. let mut fields = ::std::vec::Vec::new();
  1093. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1094. "grid_id",
  1095. |m: &EditFieldPayload| { &m.grid_id },
  1096. |m: &mut EditFieldPayload| { &mut m.grid_id },
  1097. ));
  1098. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1099. "field_id",
  1100. |m: &EditFieldPayload| { &m.field_id },
  1101. |m: &mut EditFieldPayload| { &mut m.field_id },
  1102. ));
  1103. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::meta::FieldType>>(
  1104. "field_type",
  1105. |m: &EditFieldPayload| { &m.field_type },
  1106. |m: &mut EditFieldPayload| { &mut m.field_type },
  1107. ));
  1108. ::protobuf::reflect::MessageDescriptor::new_pb_name::<EditFieldPayload>(
  1109. "EditFieldPayload",
  1110. fields,
  1111. file_descriptor_proto()
  1112. )
  1113. })
  1114. }
  1115. fn default_instance() -> &'static EditFieldPayload {
  1116. static instance: ::protobuf::rt::LazyV2<EditFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  1117. instance.get(EditFieldPayload::new)
  1118. }
  1119. }
  1120. impl ::protobuf::Clear for EditFieldPayload {
  1121. fn clear(&mut self) {
  1122. self.grid_id.clear();
  1123. self.field_id.clear();
  1124. self.field_type = super::meta::FieldType::RichText;
  1125. self.unknown_fields.clear();
  1126. }
  1127. }
  1128. impl ::std::fmt::Debug for EditFieldPayload {
  1129. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1130. ::protobuf::text_format::fmt(self, f)
  1131. }
  1132. }
  1133. impl ::protobuf::reflect::ProtobufValue for EditFieldPayload {
  1134. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1135. ::protobuf::reflect::ReflectValueRef::Message(self)
  1136. }
  1137. }
  1138. #[derive(PartialEq,Clone,Default)]
  1139. pub struct EditFieldContext {
  1140. // message fields
  1141. pub grid_id: ::std::string::String,
  1142. pub grid_field: ::protobuf::SingularPtrField<Field>,
  1143. pub type_option_data: ::std::vec::Vec<u8>,
  1144. // special fields
  1145. pub unknown_fields: ::protobuf::UnknownFields,
  1146. pub cached_size: ::protobuf::CachedSize,
  1147. }
  1148. impl<'a> ::std::default::Default for &'a EditFieldContext {
  1149. fn default() -> &'a EditFieldContext {
  1150. <EditFieldContext as ::protobuf::Message>::default_instance()
  1151. }
  1152. }
  1153. impl EditFieldContext {
  1154. pub fn new() -> EditFieldContext {
  1155. ::std::default::Default::default()
  1156. }
  1157. // string grid_id = 1;
  1158. pub fn get_grid_id(&self) -> &str {
  1159. &self.grid_id
  1160. }
  1161. pub fn clear_grid_id(&mut self) {
  1162. self.grid_id.clear();
  1163. }
  1164. // Param is passed by value, moved
  1165. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  1166. self.grid_id = v;
  1167. }
  1168. // Mutable pointer to the field.
  1169. // If field is not initialized, it is initialized with default value first.
  1170. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  1171. &mut self.grid_id
  1172. }
  1173. // Take field
  1174. pub fn take_grid_id(&mut self) -> ::std::string::String {
  1175. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  1176. }
  1177. // .Field grid_field = 2;
  1178. pub fn get_grid_field(&self) -> &Field {
  1179. self.grid_field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  1180. }
  1181. pub fn clear_grid_field(&mut self) {
  1182. self.grid_field.clear();
  1183. }
  1184. pub fn has_grid_field(&self) -> bool {
  1185. self.grid_field.is_some()
  1186. }
  1187. // Param is passed by value, moved
  1188. pub fn set_grid_field(&mut self, v: Field) {
  1189. self.grid_field = ::protobuf::SingularPtrField::some(v);
  1190. }
  1191. // Mutable pointer to the field.
  1192. // If field is not initialized, it is initialized with default value first.
  1193. pub fn mut_grid_field(&mut self) -> &mut Field {
  1194. if self.grid_field.is_none() {
  1195. self.grid_field.set_default();
  1196. }
  1197. self.grid_field.as_mut().unwrap()
  1198. }
  1199. // Take field
  1200. pub fn take_grid_field(&mut self) -> Field {
  1201. self.grid_field.take().unwrap_or_else(|| Field::new())
  1202. }
  1203. // bytes type_option_data = 3;
  1204. pub fn get_type_option_data(&self) -> &[u8] {
  1205. &self.type_option_data
  1206. }
  1207. pub fn clear_type_option_data(&mut self) {
  1208. self.type_option_data.clear();
  1209. }
  1210. // Param is passed by value, moved
  1211. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  1212. self.type_option_data = 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_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  1217. &mut self.type_option_data
  1218. }
  1219. // Take field
  1220. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  1221. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  1222. }
  1223. }
  1224. impl ::protobuf::Message for EditFieldContext {
  1225. fn is_initialized(&self) -> bool {
  1226. for v in &self.grid_field {
  1227. if !v.is_initialized() {
  1228. return false;
  1229. }
  1230. };
  1231. true
  1232. }
  1233. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1234. while !is.eof()? {
  1235. let (field_number, wire_type) = is.read_tag_unpack()?;
  1236. match field_number {
  1237. 1 => {
  1238. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  1239. },
  1240. 2 => {
  1241. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grid_field)?;
  1242. },
  1243. 3 => {
  1244. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  1245. },
  1246. _ => {
  1247. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1248. },
  1249. };
  1250. }
  1251. ::std::result::Result::Ok(())
  1252. }
  1253. // Compute sizes of nested messages
  1254. #[allow(unused_variables)]
  1255. fn compute_size(&self) -> u32 {
  1256. let mut my_size = 0;
  1257. if !self.grid_id.is_empty() {
  1258. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  1259. }
  1260. if let Some(ref v) = self.grid_field.as_ref() {
  1261. let len = v.compute_size();
  1262. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1263. }
  1264. if !self.type_option_data.is_empty() {
  1265. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  1266. }
  1267. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1268. self.cached_size.set(my_size);
  1269. my_size
  1270. }
  1271. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1272. if !self.grid_id.is_empty() {
  1273. os.write_string(1, &self.grid_id)?;
  1274. }
  1275. if let Some(ref v) = self.grid_field.as_ref() {
  1276. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1277. os.write_raw_varint32(v.get_cached_size())?;
  1278. v.write_to_with_cached_sizes(os)?;
  1279. }
  1280. if !self.type_option_data.is_empty() {
  1281. os.write_bytes(3, &self.type_option_data)?;
  1282. }
  1283. os.write_unknown_fields(self.get_unknown_fields())?;
  1284. ::std::result::Result::Ok(())
  1285. }
  1286. fn get_cached_size(&self) -> u32 {
  1287. self.cached_size.get()
  1288. }
  1289. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1290. &self.unknown_fields
  1291. }
  1292. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1293. &mut self.unknown_fields
  1294. }
  1295. fn as_any(&self) -> &dyn (::std::any::Any) {
  1296. self as &dyn (::std::any::Any)
  1297. }
  1298. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1299. self as &mut dyn (::std::any::Any)
  1300. }
  1301. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1302. self
  1303. }
  1304. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1305. Self::descriptor_static()
  1306. }
  1307. fn new() -> EditFieldContext {
  1308. EditFieldContext::new()
  1309. }
  1310. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1311. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1312. descriptor.get(|| {
  1313. let mut fields = ::std::vec::Vec::new();
  1314. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1315. "grid_id",
  1316. |m: &EditFieldContext| { &m.grid_id },
  1317. |m: &mut EditFieldContext| { &mut m.grid_id },
  1318. ));
  1319. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1320. "grid_field",
  1321. |m: &EditFieldContext| { &m.grid_field },
  1322. |m: &mut EditFieldContext| { &mut m.grid_field },
  1323. ));
  1324. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1325. "type_option_data",
  1326. |m: &EditFieldContext| { &m.type_option_data },
  1327. |m: &mut EditFieldContext| { &mut m.type_option_data },
  1328. ));
  1329. ::protobuf::reflect::MessageDescriptor::new_pb_name::<EditFieldContext>(
  1330. "EditFieldContext",
  1331. fields,
  1332. file_descriptor_proto()
  1333. )
  1334. })
  1335. }
  1336. fn default_instance() -> &'static EditFieldContext {
  1337. static instance: ::protobuf::rt::LazyV2<EditFieldContext> = ::protobuf::rt::LazyV2::INIT;
  1338. instance.get(EditFieldContext::new)
  1339. }
  1340. }
  1341. impl ::protobuf::Clear for EditFieldContext {
  1342. fn clear(&mut self) {
  1343. self.grid_id.clear();
  1344. self.grid_field.clear();
  1345. self.type_option_data.clear();
  1346. self.unknown_fields.clear();
  1347. }
  1348. }
  1349. impl ::std::fmt::Debug for EditFieldContext {
  1350. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1351. ::protobuf::text_format::fmt(self, f)
  1352. }
  1353. }
  1354. impl ::protobuf::reflect::ProtobufValue for EditFieldContext {
  1355. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1356. ::protobuf::reflect::ReflectValueRef::Message(self)
  1357. }
  1358. }
  1359. #[derive(PartialEq,Clone,Default)]
  1360. pub struct RepeatedField {
  1361. // message fields
  1362. pub items: ::protobuf::RepeatedField<Field>,
  1363. // special fields
  1364. pub unknown_fields: ::protobuf::UnknownFields,
  1365. pub cached_size: ::protobuf::CachedSize,
  1366. }
  1367. impl<'a> ::std::default::Default for &'a RepeatedField {
  1368. fn default() -> &'a RepeatedField {
  1369. <RepeatedField as ::protobuf::Message>::default_instance()
  1370. }
  1371. }
  1372. impl RepeatedField {
  1373. pub fn new() -> RepeatedField {
  1374. ::std::default::Default::default()
  1375. }
  1376. // repeated .Field items = 1;
  1377. pub fn get_items(&self) -> &[Field] {
  1378. &self.items
  1379. }
  1380. pub fn clear_items(&mut self) {
  1381. self.items.clear();
  1382. }
  1383. // Param is passed by value, moved
  1384. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Field>) {
  1385. self.items = v;
  1386. }
  1387. // Mutable pointer to the field.
  1388. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Field> {
  1389. &mut self.items
  1390. }
  1391. // Take field
  1392. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Field> {
  1393. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  1394. }
  1395. }
  1396. impl ::protobuf::Message for RepeatedField {
  1397. fn is_initialized(&self) -> bool {
  1398. for v in &self.items {
  1399. if !v.is_initialized() {
  1400. return false;
  1401. }
  1402. };
  1403. true
  1404. }
  1405. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1406. while !is.eof()? {
  1407. let (field_number, wire_type) = is.read_tag_unpack()?;
  1408. match field_number {
  1409. 1 => {
  1410. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  1411. },
  1412. _ => {
  1413. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1414. },
  1415. };
  1416. }
  1417. ::std::result::Result::Ok(())
  1418. }
  1419. // Compute sizes of nested messages
  1420. #[allow(unused_variables)]
  1421. fn compute_size(&self) -> u32 {
  1422. let mut my_size = 0;
  1423. for value in &self.items {
  1424. let len = value.compute_size();
  1425. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1426. };
  1427. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1428. self.cached_size.set(my_size);
  1429. my_size
  1430. }
  1431. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1432. for v in &self.items {
  1433. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1434. os.write_raw_varint32(v.get_cached_size())?;
  1435. v.write_to_with_cached_sizes(os)?;
  1436. };
  1437. os.write_unknown_fields(self.get_unknown_fields())?;
  1438. ::std::result::Result::Ok(())
  1439. }
  1440. fn get_cached_size(&self) -> u32 {
  1441. self.cached_size.get()
  1442. }
  1443. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1444. &self.unknown_fields
  1445. }
  1446. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1447. &mut self.unknown_fields
  1448. }
  1449. fn as_any(&self) -> &dyn (::std::any::Any) {
  1450. self as &dyn (::std::any::Any)
  1451. }
  1452. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1453. self as &mut dyn (::std::any::Any)
  1454. }
  1455. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1456. self
  1457. }
  1458. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1459. Self::descriptor_static()
  1460. }
  1461. fn new() -> RepeatedField {
  1462. RepeatedField::new()
  1463. }
  1464. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1465. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1466. descriptor.get(|| {
  1467. let mut fields = ::std::vec::Vec::new();
  1468. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  1469. "items",
  1470. |m: &RepeatedField| { &m.items },
  1471. |m: &mut RepeatedField| { &mut m.items },
  1472. ));
  1473. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedField>(
  1474. "RepeatedField",
  1475. fields,
  1476. file_descriptor_proto()
  1477. )
  1478. })
  1479. }
  1480. fn default_instance() -> &'static RepeatedField {
  1481. static instance: ::protobuf::rt::LazyV2<RepeatedField> = ::protobuf::rt::LazyV2::INIT;
  1482. instance.get(RepeatedField::new)
  1483. }
  1484. }
  1485. impl ::protobuf::Clear for RepeatedField {
  1486. fn clear(&mut self) {
  1487. self.items.clear();
  1488. self.unknown_fields.clear();
  1489. }
  1490. }
  1491. impl ::std::fmt::Debug for RepeatedField {
  1492. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1493. ::protobuf::text_format::fmt(self, f)
  1494. }
  1495. }
  1496. impl ::protobuf::reflect::ProtobufValue for RepeatedField {
  1497. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1498. ::protobuf::reflect::ReflectValueRef::Message(self)
  1499. }
  1500. }
  1501. #[derive(PartialEq,Clone,Default)]
  1502. pub struct RepeatedFieldOrder {
  1503. // message fields
  1504. pub items: ::protobuf::RepeatedField<FieldOrder>,
  1505. // special fields
  1506. pub unknown_fields: ::protobuf::UnknownFields,
  1507. pub cached_size: ::protobuf::CachedSize,
  1508. }
  1509. impl<'a> ::std::default::Default for &'a RepeatedFieldOrder {
  1510. fn default() -> &'a RepeatedFieldOrder {
  1511. <RepeatedFieldOrder as ::protobuf::Message>::default_instance()
  1512. }
  1513. }
  1514. impl RepeatedFieldOrder {
  1515. pub fn new() -> RepeatedFieldOrder {
  1516. ::std::default::Default::default()
  1517. }
  1518. // repeated .FieldOrder items = 1;
  1519. pub fn get_items(&self) -> &[FieldOrder] {
  1520. &self.items
  1521. }
  1522. pub fn clear_items(&mut self) {
  1523. self.items.clear();
  1524. }
  1525. // Param is passed by value, moved
  1526. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {
  1527. self.items = v;
  1528. }
  1529. // Mutable pointer to the field.
  1530. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {
  1531. &mut self.items
  1532. }
  1533. // Take field
  1534. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {
  1535. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  1536. }
  1537. }
  1538. impl ::protobuf::Message for RepeatedFieldOrder {
  1539. fn is_initialized(&self) -> bool {
  1540. for v in &self.items {
  1541. if !v.is_initialized() {
  1542. return false;
  1543. }
  1544. };
  1545. true
  1546. }
  1547. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1548. while !is.eof()? {
  1549. let (field_number, wire_type) = is.read_tag_unpack()?;
  1550. match field_number {
  1551. 1 => {
  1552. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  1553. },
  1554. _ => {
  1555. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1556. },
  1557. };
  1558. }
  1559. ::std::result::Result::Ok(())
  1560. }
  1561. // Compute sizes of nested messages
  1562. #[allow(unused_variables)]
  1563. fn compute_size(&self) -> u32 {
  1564. let mut my_size = 0;
  1565. for value in &self.items {
  1566. let len = value.compute_size();
  1567. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1568. };
  1569. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1570. self.cached_size.set(my_size);
  1571. my_size
  1572. }
  1573. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1574. for v in &self.items {
  1575. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1576. os.write_raw_varint32(v.get_cached_size())?;
  1577. v.write_to_with_cached_sizes(os)?;
  1578. };
  1579. os.write_unknown_fields(self.get_unknown_fields())?;
  1580. ::std::result::Result::Ok(())
  1581. }
  1582. fn get_cached_size(&self) -> u32 {
  1583. self.cached_size.get()
  1584. }
  1585. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1586. &self.unknown_fields
  1587. }
  1588. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1589. &mut self.unknown_fields
  1590. }
  1591. fn as_any(&self) -> &dyn (::std::any::Any) {
  1592. self as &dyn (::std::any::Any)
  1593. }
  1594. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1595. self as &mut dyn (::std::any::Any)
  1596. }
  1597. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1598. self
  1599. }
  1600. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1601. Self::descriptor_static()
  1602. }
  1603. fn new() -> RepeatedFieldOrder {
  1604. RepeatedFieldOrder::new()
  1605. }
  1606. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1607. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1608. descriptor.get(|| {
  1609. let mut fields = ::std::vec::Vec::new();
  1610. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(
  1611. "items",
  1612. |m: &RepeatedFieldOrder| { &m.items },
  1613. |m: &mut RepeatedFieldOrder| { &mut m.items },
  1614. ));
  1615. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFieldOrder>(
  1616. "RepeatedFieldOrder",
  1617. fields,
  1618. file_descriptor_proto()
  1619. )
  1620. })
  1621. }
  1622. fn default_instance() -> &'static RepeatedFieldOrder {
  1623. static instance: ::protobuf::rt::LazyV2<RepeatedFieldOrder> = ::protobuf::rt::LazyV2::INIT;
  1624. instance.get(RepeatedFieldOrder::new)
  1625. }
  1626. }
  1627. impl ::protobuf::Clear for RepeatedFieldOrder {
  1628. fn clear(&mut self) {
  1629. self.items.clear();
  1630. self.unknown_fields.clear();
  1631. }
  1632. }
  1633. impl ::std::fmt::Debug for RepeatedFieldOrder {
  1634. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1635. ::protobuf::text_format::fmt(self, f)
  1636. }
  1637. }
  1638. impl ::protobuf::reflect::ProtobufValue for RepeatedFieldOrder {
  1639. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1640. ::protobuf::reflect::ReflectValueRef::Message(self)
  1641. }
  1642. }
  1643. #[derive(PartialEq,Clone,Default)]
  1644. pub struct RowOrder {
  1645. // message fields
  1646. pub row_id: ::std::string::String,
  1647. pub block_id: ::std::string::String,
  1648. pub height: i32,
  1649. // special fields
  1650. pub unknown_fields: ::protobuf::UnknownFields,
  1651. pub cached_size: ::protobuf::CachedSize,
  1652. }
  1653. impl<'a> ::std::default::Default for &'a RowOrder {
  1654. fn default() -> &'a RowOrder {
  1655. <RowOrder as ::protobuf::Message>::default_instance()
  1656. }
  1657. }
  1658. impl RowOrder {
  1659. pub fn new() -> RowOrder {
  1660. ::std::default::Default::default()
  1661. }
  1662. // string row_id = 1;
  1663. pub fn get_row_id(&self) -> &str {
  1664. &self.row_id
  1665. }
  1666. pub fn clear_row_id(&mut self) {
  1667. self.row_id.clear();
  1668. }
  1669. // Param is passed by value, moved
  1670. pub fn set_row_id(&mut self, v: ::std::string::String) {
  1671. self.row_id = v;
  1672. }
  1673. // Mutable pointer to the field.
  1674. // If field is not initialized, it is initialized with default value first.
  1675. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  1676. &mut self.row_id
  1677. }
  1678. // Take field
  1679. pub fn take_row_id(&mut self) -> ::std::string::String {
  1680. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  1681. }
  1682. // string block_id = 2;
  1683. pub fn get_block_id(&self) -> &str {
  1684. &self.block_id
  1685. }
  1686. pub fn clear_block_id(&mut self) {
  1687. self.block_id.clear();
  1688. }
  1689. // Param is passed by value, moved
  1690. pub fn set_block_id(&mut self, v: ::std::string::String) {
  1691. self.block_id = v;
  1692. }
  1693. // Mutable pointer to the field.
  1694. // If field is not initialized, it is initialized with default value first.
  1695. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  1696. &mut self.block_id
  1697. }
  1698. // Take field
  1699. pub fn take_block_id(&mut self) -> ::std::string::String {
  1700. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  1701. }
  1702. // int32 height = 3;
  1703. pub fn get_height(&self) -> i32 {
  1704. self.height
  1705. }
  1706. pub fn clear_height(&mut self) {
  1707. self.height = 0;
  1708. }
  1709. // Param is passed by value, moved
  1710. pub fn set_height(&mut self, v: i32) {
  1711. self.height = v;
  1712. }
  1713. }
  1714. impl ::protobuf::Message for RowOrder {
  1715. fn is_initialized(&self) -> bool {
  1716. true
  1717. }
  1718. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1719. while !is.eof()? {
  1720. let (field_number, wire_type) = is.read_tag_unpack()?;
  1721. match field_number {
  1722. 1 => {
  1723. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  1724. },
  1725. 2 => {
  1726. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  1727. },
  1728. 3 => {
  1729. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1730. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1731. }
  1732. let tmp = is.read_int32()?;
  1733. self.height = tmp;
  1734. },
  1735. _ => {
  1736. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1737. },
  1738. };
  1739. }
  1740. ::std::result::Result::Ok(())
  1741. }
  1742. // Compute sizes of nested messages
  1743. #[allow(unused_variables)]
  1744. fn compute_size(&self) -> u32 {
  1745. let mut my_size = 0;
  1746. if !self.row_id.is_empty() {
  1747. my_size += ::protobuf::rt::string_size(1, &self.row_id);
  1748. }
  1749. if !self.block_id.is_empty() {
  1750. my_size += ::protobuf::rt::string_size(2, &self.block_id);
  1751. }
  1752. if self.height != 0 {
  1753. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  1754. }
  1755. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1756. self.cached_size.set(my_size);
  1757. my_size
  1758. }
  1759. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1760. if !self.row_id.is_empty() {
  1761. os.write_string(1, &self.row_id)?;
  1762. }
  1763. if !self.block_id.is_empty() {
  1764. os.write_string(2, &self.block_id)?;
  1765. }
  1766. if self.height != 0 {
  1767. os.write_int32(3, self.height)?;
  1768. }
  1769. os.write_unknown_fields(self.get_unknown_fields())?;
  1770. ::std::result::Result::Ok(())
  1771. }
  1772. fn get_cached_size(&self) -> u32 {
  1773. self.cached_size.get()
  1774. }
  1775. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1776. &self.unknown_fields
  1777. }
  1778. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1779. &mut self.unknown_fields
  1780. }
  1781. fn as_any(&self) -> &dyn (::std::any::Any) {
  1782. self as &dyn (::std::any::Any)
  1783. }
  1784. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1785. self as &mut dyn (::std::any::Any)
  1786. }
  1787. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1788. self
  1789. }
  1790. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1791. Self::descriptor_static()
  1792. }
  1793. fn new() -> RowOrder {
  1794. RowOrder::new()
  1795. }
  1796. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1797. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1798. descriptor.get(|| {
  1799. let mut fields = ::std::vec::Vec::new();
  1800. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1801. "row_id",
  1802. |m: &RowOrder| { &m.row_id },
  1803. |m: &mut RowOrder| { &mut m.row_id },
  1804. ));
  1805. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1806. "block_id",
  1807. |m: &RowOrder| { &m.block_id },
  1808. |m: &mut RowOrder| { &mut m.block_id },
  1809. ));
  1810. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  1811. "height",
  1812. |m: &RowOrder| { &m.height },
  1813. |m: &mut RowOrder| { &mut m.height },
  1814. ));
  1815. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowOrder>(
  1816. "RowOrder",
  1817. fields,
  1818. file_descriptor_proto()
  1819. )
  1820. })
  1821. }
  1822. fn default_instance() -> &'static RowOrder {
  1823. static instance: ::protobuf::rt::LazyV2<RowOrder> = ::protobuf::rt::LazyV2::INIT;
  1824. instance.get(RowOrder::new)
  1825. }
  1826. }
  1827. impl ::protobuf::Clear for RowOrder {
  1828. fn clear(&mut self) {
  1829. self.row_id.clear();
  1830. self.block_id.clear();
  1831. self.height = 0;
  1832. self.unknown_fields.clear();
  1833. }
  1834. }
  1835. impl ::std::fmt::Debug for RowOrder {
  1836. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  1837. ::protobuf::text_format::fmt(self, f)
  1838. }
  1839. }
  1840. impl ::protobuf::reflect::ProtobufValue for RowOrder {
  1841. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  1842. ::protobuf::reflect::ReflectValueRef::Message(self)
  1843. }
  1844. }
  1845. #[derive(PartialEq,Clone,Default)]
  1846. pub struct Row {
  1847. // message fields
  1848. pub id: ::std::string::String,
  1849. pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, Cell>,
  1850. pub height: i32,
  1851. // special fields
  1852. pub unknown_fields: ::protobuf::UnknownFields,
  1853. pub cached_size: ::protobuf::CachedSize,
  1854. }
  1855. impl<'a> ::std::default::Default for &'a Row {
  1856. fn default() -> &'a Row {
  1857. <Row as ::protobuf::Message>::default_instance()
  1858. }
  1859. }
  1860. impl Row {
  1861. pub fn new() -> Row {
  1862. ::std::default::Default::default()
  1863. }
  1864. // string id = 1;
  1865. pub fn get_id(&self) -> &str {
  1866. &self.id
  1867. }
  1868. pub fn clear_id(&mut self) {
  1869. self.id.clear();
  1870. }
  1871. // Param is passed by value, moved
  1872. pub fn set_id(&mut self, v: ::std::string::String) {
  1873. self.id = v;
  1874. }
  1875. // Mutable pointer to the field.
  1876. // If field is not initialized, it is initialized with default value first.
  1877. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  1878. &mut self.id
  1879. }
  1880. // Take field
  1881. pub fn take_id(&mut self) -> ::std::string::String {
  1882. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  1883. }
  1884. // repeated .Row.CellByFieldIdEntry cell_by_field_id = 2;
  1885. pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, Cell> {
  1886. &self.cell_by_field_id
  1887. }
  1888. pub fn clear_cell_by_field_id(&mut self) {
  1889. self.cell_by_field_id.clear();
  1890. }
  1891. // Param is passed by value, moved
  1892. pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, Cell>) {
  1893. self.cell_by_field_id = v;
  1894. }
  1895. // Mutable pointer to the field.
  1896. pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Cell> {
  1897. &mut self.cell_by_field_id
  1898. }
  1899. // Take field
  1900. pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, Cell> {
  1901. ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())
  1902. }
  1903. // int32 height = 3;
  1904. pub fn get_height(&self) -> i32 {
  1905. self.height
  1906. }
  1907. pub fn clear_height(&mut self) {
  1908. self.height = 0;
  1909. }
  1910. // Param is passed by value, moved
  1911. pub fn set_height(&mut self, v: i32) {
  1912. self.height = v;
  1913. }
  1914. }
  1915. impl ::protobuf::Message for Row {
  1916. fn is_initialized(&self) -> bool {
  1917. true
  1918. }
  1919. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1920. while !is.eof()? {
  1921. let (field_number, wire_type) = is.read_tag_unpack()?;
  1922. match field_number {
  1923. 1 => {
  1924. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  1925. },
  1926. 2 => {
  1927. ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(wire_type, is, &mut self.cell_by_field_id)?;
  1928. },
  1929. 3 => {
  1930. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1931. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1932. }
  1933. let tmp = is.read_int32()?;
  1934. self.height = tmp;
  1935. },
  1936. _ => {
  1937. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1938. },
  1939. };
  1940. }
  1941. ::std::result::Result::Ok(())
  1942. }
  1943. // Compute sizes of nested messages
  1944. #[allow(unused_variables)]
  1945. fn compute_size(&self) -> u32 {
  1946. let mut my_size = 0;
  1947. if !self.id.is_empty() {
  1948. my_size += ::protobuf::rt::string_size(1, &self.id);
  1949. }
  1950. my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id);
  1951. if self.height != 0 {
  1952. my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
  1953. }
  1954. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1955. self.cached_size.set(my_size);
  1956. my_size
  1957. }
  1958. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  1959. if !self.id.is_empty() {
  1960. os.write_string(1, &self.id)?;
  1961. }
  1962. ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id, os)?;
  1963. if self.height != 0 {
  1964. os.write_int32(3, self.height)?;
  1965. }
  1966. os.write_unknown_fields(self.get_unknown_fields())?;
  1967. ::std::result::Result::Ok(())
  1968. }
  1969. fn get_cached_size(&self) -> u32 {
  1970. self.cached_size.get()
  1971. }
  1972. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1973. &self.unknown_fields
  1974. }
  1975. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1976. &mut self.unknown_fields
  1977. }
  1978. fn as_any(&self) -> &dyn (::std::any::Any) {
  1979. self as &dyn (::std::any::Any)
  1980. }
  1981. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  1982. self as &mut dyn (::std::any::Any)
  1983. }
  1984. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  1985. self
  1986. }
  1987. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1988. Self::descriptor_static()
  1989. }
  1990. fn new() -> Row {
  1991. Row::new()
  1992. }
  1993. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  1994. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  1995. descriptor.get(|| {
  1996. let mut fields = ::std::vec::Vec::new();
  1997. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1998. "id",
  1999. |m: &Row| { &m.id },
  2000. |m: &mut Row| { &mut m.id },
  2001. ));
  2002. fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  2003. "cell_by_field_id",
  2004. |m: &Row| { &m.cell_by_field_id },
  2005. |m: &mut Row| { &mut m.cell_by_field_id },
  2006. ));
  2007. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2008. "height",
  2009. |m: &Row| { &m.height },
  2010. |m: &mut Row| { &mut m.height },
  2011. ));
  2012. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Row>(
  2013. "Row",
  2014. fields,
  2015. file_descriptor_proto()
  2016. )
  2017. })
  2018. }
  2019. fn default_instance() -> &'static Row {
  2020. static instance: ::protobuf::rt::LazyV2<Row> = ::protobuf::rt::LazyV2::INIT;
  2021. instance.get(Row::new)
  2022. }
  2023. }
  2024. impl ::protobuf::Clear for Row {
  2025. fn clear(&mut self) {
  2026. self.id.clear();
  2027. self.cell_by_field_id.clear();
  2028. self.height = 0;
  2029. self.unknown_fields.clear();
  2030. }
  2031. }
  2032. impl ::std::fmt::Debug for Row {
  2033. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2034. ::protobuf::text_format::fmt(self, f)
  2035. }
  2036. }
  2037. impl ::protobuf::reflect::ProtobufValue for Row {
  2038. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2039. ::protobuf::reflect::ReflectValueRef::Message(self)
  2040. }
  2041. }
  2042. #[derive(PartialEq,Clone,Default)]
  2043. pub struct RepeatedRow {
  2044. // message fields
  2045. pub items: ::protobuf::RepeatedField<Row>,
  2046. // special fields
  2047. pub unknown_fields: ::protobuf::UnknownFields,
  2048. pub cached_size: ::protobuf::CachedSize,
  2049. }
  2050. impl<'a> ::std::default::Default for &'a RepeatedRow {
  2051. fn default() -> &'a RepeatedRow {
  2052. <RepeatedRow as ::protobuf::Message>::default_instance()
  2053. }
  2054. }
  2055. impl RepeatedRow {
  2056. pub fn new() -> RepeatedRow {
  2057. ::std::default::Default::default()
  2058. }
  2059. // repeated .Row items = 1;
  2060. pub fn get_items(&self) -> &[Row] {
  2061. &self.items
  2062. }
  2063. pub fn clear_items(&mut self) {
  2064. self.items.clear();
  2065. }
  2066. // Param is passed by value, moved
  2067. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Row>) {
  2068. self.items = v;
  2069. }
  2070. // Mutable pointer to the field.
  2071. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Row> {
  2072. &mut self.items
  2073. }
  2074. // Take field
  2075. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Row> {
  2076. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2077. }
  2078. }
  2079. impl ::protobuf::Message for RepeatedRow {
  2080. fn is_initialized(&self) -> bool {
  2081. for v in &self.items {
  2082. if !v.is_initialized() {
  2083. return false;
  2084. }
  2085. };
  2086. true
  2087. }
  2088. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2089. while !is.eof()? {
  2090. let (field_number, wire_type) = is.read_tag_unpack()?;
  2091. match field_number {
  2092. 1 => {
  2093. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2094. },
  2095. _ => {
  2096. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2097. },
  2098. };
  2099. }
  2100. ::std::result::Result::Ok(())
  2101. }
  2102. // Compute sizes of nested messages
  2103. #[allow(unused_variables)]
  2104. fn compute_size(&self) -> u32 {
  2105. let mut my_size = 0;
  2106. for value in &self.items {
  2107. let len = value.compute_size();
  2108. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2109. };
  2110. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2111. self.cached_size.set(my_size);
  2112. my_size
  2113. }
  2114. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2115. for v in &self.items {
  2116. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2117. os.write_raw_varint32(v.get_cached_size())?;
  2118. v.write_to_with_cached_sizes(os)?;
  2119. };
  2120. os.write_unknown_fields(self.get_unknown_fields())?;
  2121. ::std::result::Result::Ok(())
  2122. }
  2123. fn get_cached_size(&self) -> u32 {
  2124. self.cached_size.get()
  2125. }
  2126. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2127. &self.unknown_fields
  2128. }
  2129. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2130. &mut self.unknown_fields
  2131. }
  2132. fn as_any(&self) -> &dyn (::std::any::Any) {
  2133. self as &dyn (::std::any::Any)
  2134. }
  2135. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2136. self as &mut dyn (::std::any::Any)
  2137. }
  2138. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2139. self
  2140. }
  2141. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2142. Self::descriptor_static()
  2143. }
  2144. fn new() -> RepeatedRow {
  2145. RepeatedRow::new()
  2146. }
  2147. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2148. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2149. descriptor.get(|| {
  2150. let mut fields = ::std::vec::Vec::new();
  2151. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Row>>(
  2152. "items",
  2153. |m: &RepeatedRow| { &m.items },
  2154. |m: &mut RepeatedRow| { &mut m.items },
  2155. ));
  2156. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRow>(
  2157. "RepeatedRow",
  2158. fields,
  2159. file_descriptor_proto()
  2160. )
  2161. })
  2162. }
  2163. fn default_instance() -> &'static RepeatedRow {
  2164. static instance: ::protobuf::rt::LazyV2<RepeatedRow> = ::protobuf::rt::LazyV2::INIT;
  2165. instance.get(RepeatedRow::new)
  2166. }
  2167. }
  2168. impl ::protobuf::Clear for RepeatedRow {
  2169. fn clear(&mut self) {
  2170. self.items.clear();
  2171. self.unknown_fields.clear();
  2172. }
  2173. }
  2174. impl ::std::fmt::Debug for RepeatedRow {
  2175. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2176. ::protobuf::text_format::fmt(self, f)
  2177. }
  2178. }
  2179. impl ::protobuf::reflect::ProtobufValue for RepeatedRow {
  2180. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2181. ::protobuf::reflect::ReflectValueRef::Message(self)
  2182. }
  2183. }
  2184. #[derive(PartialEq,Clone,Default)]
  2185. pub struct RepeatedGridBlock {
  2186. // message fields
  2187. pub items: ::protobuf::RepeatedField<GridBlock>,
  2188. // special fields
  2189. pub unknown_fields: ::protobuf::UnknownFields,
  2190. pub cached_size: ::protobuf::CachedSize,
  2191. }
  2192. impl<'a> ::std::default::Default for &'a RepeatedGridBlock {
  2193. fn default() -> &'a RepeatedGridBlock {
  2194. <RepeatedGridBlock as ::protobuf::Message>::default_instance()
  2195. }
  2196. }
  2197. impl RepeatedGridBlock {
  2198. pub fn new() -> RepeatedGridBlock {
  2199. ::std::default::Default::default()
  2200. }
  2201. // repeated .GridBlock items = 1;
  2202. pub fn get_items(&self) -> &[GridBlock] {
  2203. &self.items
  2204. }
  2205. pub fn clear_items(&mut self) {
  2206. self.items.clear();
  2207. }
  2208. // Param is passed by value, moved
  2209. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<GridBlock>) {
  2210. self.items = v;
  2211. }
  2212. // Mutable pointer to the field.
  2213. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<GridBlock> {
  2214. &mut self.items
  2215. }
  2216. // Take field
  2217. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<GridBlock> {
  2218. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  2219. }
  2220. }
  2221. impl ::protobuf::Message for RepeatedGridBlock {
  2222. fn is_initialized(&self) -> bool {
  2223. for v in &self.items {
  2224. if !v.is_initialized() {
  2225. return false;
  2226. }
  2227. };
  2228. true
  2229. }
  2230. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2231. while !is.eof()? {
  2232. let (field_number, wire_type) = is.read_tag_unpack()?;
  2233. match field_number {
  2234. 1 => {
  2235. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  2236. },
  2237. _ => {
  2238. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2239. },
  2240. };
  2241. }
  2242. ::std::result::Result::Ok(())
  2243. }
  2244. // Compute sizes of nested messages
  2245. #[allow(unused_variables)]
  2246. fn compute_size(&self) -> u32 {
  2247. let mut my_size = 0;
  2248. for value in &self.items {
  2249. let len = value.compute_size();
  2250. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2251. };
  2252. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2253. self.cached_size.set(my_size);
  2254. my_size
  2255. }
  2256. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2257. for v in &self.items {
  2258. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2259. os.write_raw_varint32(v.get_cached_size())?;
  2260. v.write_to_with_cached_sizes(os)?;
  2261. };
  2262. os.write_unknown_fields(self.get_unknown_fields())?;
  2263. ::std::result::Result::Ok(())
  2264. }
  2265. fn get_cached_size(&self) -> u32 {
  2266. self.cached_size.get()
  2267. }
  2268. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2269. &self.unknown_fields
  2270. }
  2271. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2272. &mut self.unknown_fields
  2273. }
  2274. fn as_any(&self) -> &dyn (::std::any::Any) {
  2275. self as &dyn (::std::any::Any)
  2276. }
  2277. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2278. self as &mut dyn (::std::any::Any)
  2279. }
  2280. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2281. self
  2282. }
  2283. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2284. Self::descriptor_static()
  2285. }
  2286. fn new() -> RepeatedGridBlock {
  2287. RepeatedGridBlock::new()
  2288. }
  2289. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2290. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2291. descriptor.get(|| {
  2292. let mut fields = ::std::vec::Vec::new();
  2293. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlock>>(
  2294. "items",
  2295. |m: &RepeatedGridBlock| { &m.items },
  2296. |m: &mut RepeatedGridBlock| { &mut m.items },
  2297. ));
  2298. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedGridBlock>(
  2299. "RepeatedGridBlock",
  2300. fields,
  2301. file_descriptor_proto()
  2302. )
  2303. })
  2304. }
  2305. fn default_instance() -> &'static RepeatedGridBlock {
  2306. static instance: ::protobuf::rt::LazyV2<RepeatedGridBlock> = ::protobuf::rt::LazyV2::INIT;
  2307. instance.get(RepeatedGridBlock::new)
  2308. }
  2309. }
  2310. impl ::protobuf::Clear for RepeatedGridBlock {
  2311. fn clear(&mut self) {
  2312. self.items.clear();
  2313. self.unknown_fields.clear();
  2314. }
  2315. }
  2316. impl ::std::fmt::Debug for RepeatedGridBlock {
  2317. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2318. ::protobuf::text_format::fmt(self, f)
  2319. }
  2320. }
  2321. impl ::protobuf::reflect::ProtobufValue for RepeatedGridBlock {
  2322. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2323. ::protobuf::reflect::ReflectValueRef::Message(self)
  2324. }
  2325. }
  2326. #[derive(PartialEq,Clone,Default)]
  2327. pub struct GridBlockOrder {
  2328. // message fields
  2329. pub block_id: ::std::string::String,
  2330. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  2331. // special fields
  2332. pub unknown_fields: ::protobuf::UnknownFields,
  2333. pub cached_size: ::protobuf::CachedSize,
  2334. }
  2335. impl<'a> ::std::default::Default for &'a GridBlockOrder {
  2336. fn default() -> &'a GridBlockOrder {
  2337. <GridBlockOrder as ::protobuf::Message>::default_instance()
  2338. }
  2339. }
  2340. impl GridBlockOrder {
  2341. pub fn new() -> GridBlockOrder {
  2342. ::std::default::Default::default()
  2343. }
  2344. // string block_id = 1;
  2345. pub fn get_block_id(&self) -> &str {
  2346. &self.block_id
  2347. }
  2348. pub fn clear_block_id(&mut self) {
  2349. self.block_id.clear();
  2350. }
  2351. // Param is passed by value, moved
  2352. pub fn set_block_id(&mut self, v: ::std::string::String) {
  2353. self.block_id = v;
  2354. }
  2355. // Mutable pointer to the field.
  2356. // If field is not initialized, it is initialized with default value first.
  2357. pub fn mut_block_id(&mut self) -> &mut ::std::string::String {
  2358. &mut self.block_id
  2359. }
  2360. // Take field
  2361. pub fn take_block_id(&mut self) -> ::std::string::String {
  2362. ::std::mem::replace(&mut self.block_id, ::std::string::String::new())
  2363. }
  2364. // repeated .RowOrder row_orders = 2;
  2365. pub fn get_row_orders(&self) -> &[RowOrder] {
  2366. &self.row_orders
  2367. }
  2368. pub fn clear_row_orders(&mut self) {
  2369. self.row_orders.clear();
  2370. }
  2371. // Param is passed by value, moved
  2372. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  2373. self.row_orders = v;
  2374. }
  2375. // Mutable pointer to the field.
  2376. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  2377. &mut self.row_orders
  2378. }
  2379. // Take field
  2380. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  2381. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  2382. }
  2383. }
  2384. impl ::protobuf::Message for GridBlockOrder {
  2385. fn is_initialized(&self) -> bool {
  2386. for v in &self.row_orders {
  2387. if !v.is_initialized() {
  2388. return false;
  2389. }
  2390. };
  2391. true
  2392. }
  2393. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2394. while !is.eof()? {
  2395. let (field_number, wire_type) = is.read_tag_unpack()?;
  2396. match field_number {
  2397. 1 => {
  2398. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
  2399. },
  2400. 2 => {
  2401. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  2402. },
  2403. _ => {
  2404. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2405. },
  2406. };
  2407. }
  2408. ::std::result::Result::Ok(())
  2409. }
  2410. // Compute sizes of nested messages
  2411. #[allow(unused_variables)]
  2412. fn compute_size(&self) -> u32 {
  2413. let mut my_size = 0;
  2414. if !self.block_id.is_empty() {
  2415. my_size += ::protobuf::rt::string_size(1, &self.block_id);
  2416. }
  2417. for value in &self.row_orders {
  2418. let len = value.compute_size();
  2419. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2420. };
  2421. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2422. self.cached_size.set(my_size);
  2423. my_size
  2424. }
  2425. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2426. if !self.block_id.is_empty() {
  2427. os.write_string(1, &self.block_id)?;
  2428. }
  2429. for v in &self.row_orders {
  2430. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2431. os.write_raw_varint32(v.get_cached_size())?;
  2432. v.write_to_with_cached_sizes(os)?;
  2433. };
  2434. os.write_unknown_fields(self.get_unknown_fields())?;
  2435. ::std::result::Result::Ok(())
  2436. }
  2437. fn get_cached_size(&self) -> u32 {
  2438. self.cached_size.get()
  2439. }
  2440. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2441. &self.unknown_fields
  2442. }
  2443. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2444. &mut self.unknown_fields
  2445. }
  2446. fn as_any(&self) -> &dyn (::std::any::Any) {
  2447. self as &dyn (::std::any::Any)
  2448. }
  2449. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2450. self as &mut dyn (::std::any::Any)
  2451. }
  2452. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2453. self
  2454. }
  2455. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2456. Self::descriptor_static()
  2457. }
  2458. fn new() -> GridBlockOrder {
  2459. GridBlockOrder::new()
  2460. }
  2461. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2462. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2463. descriptor.get(|| {
  2464. let mut fields = ::std::vec::Vec::new();
  2465. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2466. "block_id",
  2467. |m: &GridBlockOrder| { &m.block_id },
  2468. |m: &mut GridBlockOrder| { &mut m.block_id },
  2469. ));
  2470. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  2471. "row_orders",
  2472. |m: &GridBlockOrder| { &m.row_orders },
  2473. |m: &mut GridBlockOrder| { &mut m.row_orders },
  2474. ));
  2475. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockOrder>(
  2476. "GridBlockOrder",
  2477. fields,
  2478. file_descriptor_proto()
  2479. )
  2480. })
  2481. }
  2482. fn default_instance() -> &'static GridBlockOrder {
  2483. static instance: ::protobuf::rt::LazyV2<GridBlockOrder> = ::protobuf::rt::LazyV2::INIT;
  2484. instance.get(GridBlockOrder::new)
  2485. }
  2486. }
  2487. impl ::protobuf::Clear for GridBlockOrder {
  2488. fn clear(&mut self) {
  2489. self.block_id.clear();
  2490. self.row_orders.clear();
  2491. self.unknown_fields.clear();
  2492. }
  2493. }
  2494. impl ::std::fmt::Debug for GridBlockOrder {
  2495. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2496. ::protobuf::text_format::fmt(self, f)
  2497. }
  2498. }
  2499. impl ::protobuf::reflect::ProtobufValue for GridBlockOrder {
  2500. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2501. ::protobuf::reflect::ReflectValueRef::Message(self)
  2502. }
  2503. }
  2504. #[derive(PartialEq,Clone,Default)]
  2505. pub struct GridBlock {
  2506. // message fields
  2507. pub id: ::std::string::String,
  2508. pub row_orders: ::protobuf::RepeatedField<RowOrder>,
  2509. // special fields
  2510. pub unknown_fields: ::protobuf::UnknownFields,
  2511. pub cached_size: ::protobuf::CachedSize,
  2512. }
  2513. impl<'a> ::std::default::Default for &'a GridBlock {
  2514. fn default() -> &'a GridBlock {
  2515. <GridBlock as ::protobuf::Message>::default_instance()
  2516. }
  2517. }
  2518. impl GridBlock {
  2519. pub fn new() -> GridBlock {
  2520. ::std::default::Default::default()
  2521. }
  2522. // string id = 1;
  2523. pub fn get_id(&self) -> &str {
  2524. &self.id
  2525. }
  2526. pub fn clear_id(&mut self) {
  2527. self.id.clear();
  2528. }
  2529. // Param is passed by value, moved
  2530. pub fn set_id(&mut self, v: ::std::string::String) {
  2531. self.id = v;
  2532. }
  2533. // Mutable pointer to the field.
  2534. // If field is not initialized, it is initialized with default value first.
  2535. pub fn mut_id(&mut self) -> &mut ::std::string::String {
  2536. &mut self.id
  2537. }
  2538. // Take field
  2539. pub fn take_id(&mut self) -> ::std::string::String {
  2540. ::std::mem::replace(&mut self.id, ::std::string::String::new())
  2541. }
  2542. // repeated .RowOrder row_orders = 2;
  2543. pub fn get_row_orders(&self) -> &[RowOrder] {
  2544. &self.row_orders
  2545. }
  2546. pub fn clear_row_orders(&mut self) {
  2547. self.row_orders.clear();
  2548. }
  2549. // Param is passed by value, moved
  2550. pub fn set_row_orders(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {
  2551. self.row_orders = v;
  2552. }
  2553. // Mutable pointer to the field.
  2554. pub fn mut_row_orders(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {
  2555. &mut self.row_orders
  2556. }
  2557. // Take field
  2558. pub fn take_row_orders(&mut self) -> ::protobuf::RepeatedField<RowOrder> {
  2559. ::std::mem::replace(&mut self.row_orders, ::protobuf::RepeatedField::new())
  2560. }
  2561. }
  2562. impl ::protobuf::Message for GridBlock {
  2563. fn is_initialized(&self) -> bool {
  2564. for v in &self.row_orders {
  2565. if !v.is_initialized() {
  2566. return false;
  2567. }
  2568. };
  2569. true
  2570. }
  2571. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2572. while !is.eof()? {
  2573. let (field_number, wire_type) = is.read_tag_unpack()?;
  2574. match field_number {
  2575. 1 => {
  2576. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
  2577. },
  2578. 2 => {
  2579. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_orders)?;
  2580. },
  2581. _ => {
  2582. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2583. },
  2584. };
  2585. }
  2586. ::std::result::Result::Ok(())
  2587. }
  2588. // Compute sizes of nested messages
  2589. #[allow(unused_variables)]
  2590. fn compute_size(&self) -> u32 {
  2591. let mut my_size = 0;
  2592. if !self.id.is_empty() {
  2593. my_size += ::protobuf::rt::string_size(1, &self.id);
  2594. }
  2595. for value in &self.row_orders {
  2596. let len = value.compute_size();
  2597. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2598. };
  2599. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2600. self.cached_size.set(my_size);
  2601. my_size
  2602. }
  2603. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2604. if !self.id.is_empty() {
  2605. os.write_string(1, &self.id)?;
  2606. }
  2607. for v in &self.row_orders {
  2608. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2609. os.write_raw_varint32(v.get_cached_size())?;
  2610. v.write_to_with_cached_sizes(os)?;
  2611. };
  2612. os.write_unknown_fields(self.get_unknown_fields())?;
  2613. ::std::result::Result::Ok(())
  2614. }
  2615. fn get_cached_size(&self) -> u32 {
  2616. self.cached_size.get()
  2617. }
  2618. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2619. &self.unknown_fields
  2620. }
  2621. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2622. &mut self.unknown_fields
  2623. }
  2624. fn as_any(&self) -> &dyn (::std::any::Any) {
  2625. self as &dyn (::std::any::Any)
  2626. }
  2627. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2628. self as &mut dyn (::std::any::Any)
  2629. }
  2630. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2631. self
  2632. }
  2633. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2634. Self::descriptor_static()
  2635. }
  2636. fn new() -> GridBlock {
  2637. GridBlock::new()
  2638. }
  2639. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2640. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2641. descriptor.get(|| {
  2642. let mut fields = ::std::vec::Vec::new();
  2643. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2644. "id",
  2645. |m: &GridBlock| { &m.id },
  2646. |m: &mut GridBlock| { &mut m.id },
  2647. ));
  2648. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(
  2649. "row_orders",
  2650. |m: &GridBlock| { &m.row_orders },
  2651. |m: &mut GridBlock| { &mut m.row_orders },
  2652. ));
  2653. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlock>(
  2654. "GridBlock",
  2655. fields,
  2656. file_descriptor_proto()
  2657. )
  2658. })
  2659. }
  2660. fn default_instance() -> &'static GridBlock {
  2661. static instance: ::protobuf::rt::LazyV2<GridBlock> = ::protobuf::rt::LazyV2::INIT;
  2662. instance.get(GridBlock::new)
  2663. }
  2664. }
  2665. impl ::protobuf::Clear for GridBlock {
  2666. fn clear(&mut self) {
  2667. self.id.clear();
  2668. self.row_orders.clear();
  2669. self.unknown_fields.clear();
  2670. }
  2671. }
  2672. impl ::std::fmt::Debug for GridBlock {
  2673. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2674. ::protobuf::text_format::fmt(self, f)
  2675. }
  2676. }
  2677. impl ::protobuf::reflect::ProtobufValue for GridBlock {
  2678. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2679. ::protobuf::reflect::ReflectValueRef::Message(self)
  2680. }
  2681. }
  2682. #[derive(PartialEq,Clone,Default)]
  2683. pub struct Cell {
  2684. // message fields
  2685. pub field_id: ::std::string::String,
  2686. pub content: ::std::string::String,
  2687. // special fields
  2688. pub unknown_fields: ::protobuf::UnknownFields,
  2689. pub cached_size: ::protobuf::CachedSize,
  2690. }
  2691. impl<'a> ::std::default::Default for &'a Cell {
  2692. fn default() -> &'a Cell {
  2693. <Cell as ::protobuf::Message>::default_instance()
  2694. }
  2695. }
  2696. impl Cell {
  2697. pub fn new() -> Cell {
  2698. ::std::default::Default::default()
  2699. }
  2700. // string field_id = 1;
  2701. pub fn get_field_id(&self) -> &str {
  2702. &self.field_id
  2703. }
  2704. pub fn clear_field_id(&mut self) {
  2705. self.field_id.clear();
  2706. }
  2707. // Param is passed by value, moved
  2708. pub fn set_field_id(&mut self, v: ::std::string::String) {
  2709. self.field_id = v;
  2710. }
  2711. // Mutable pointer to the field.
  2712. // If field is not initialized, it is initialized with default value first.
  2713. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  2714. &mut self.field_id
  2715. }
  2716. // Take field
  2717. pub fn take_field_id(&mut self) -> ::std::string::String {
  2718. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  2719. }
  2720. // string content = 2;
  2721. pub fn get_content(&self) -> &str {
  2722. &self.content
  2723. }
  2724. pub fn clear_content(&mut self) {
  2725. self.content.clear();
  2726. }
  2727. // Param is passed by value, moved
  2728. pub fn set_content(&mut self, v: ::std::string::String) {
  2729. self.content = v;
  2730. }
  2731. // Mutable pointer to the field.
  2732. // If field is not initialized, it is initialized with default value first.
  2733. pub fn mut_content(&mut self) -> &mut ::std::string::String {
  2734. &mut self.content
  2735. }
  2736. // Take field
  2737. pub fn take_content(&mut self) -> ::std::string::String {
  2738. ::std::mem::replace(&mut self.content, ::std::string::String::new())
  2739. }
  2740. }
  2741. impl ::protobuf::Message for Cell {
  2742. fn is_initialized(&self) -> bool {
  2743. true
  2744. }
  2745. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2746. while !is.eof()? {
  2747. let (field_number, wire_type) = is.read_tag_unpack()?;
  2748. match field_number {
  2749. 1 => {
  2750. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  2751. },
  2752. 2 => {
  2753. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?;
  2754. },
  2755. _ => {
  2756. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2757. },
  2758. };
  2759. }
  2760. ::std::result::Result::Ok(())
  2761. }
  2762. // Compute sizes of nested messages
  2763. #[allow(unused_variables)]
  2764. fn compute_size(&self) -> u32 {
  2765. let mut my_size = 0;
  2766. if !self.field_id.is_empty() {
  2767. my_size += ::protobuf::rt::string_size(1, &self.field_id);
  2768. }
  2769. if !self.content.is_empty() {
  2770. my_size += ::protobuf::rt::string_size(2, &self.content);
  2771. }
  2772. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2773. self.cached_size.set(my_size);
  2774. my_size
  2775. }
  2776. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2777. if !self.field_id.is_empty() {
  2778. os.write_string(1, &self.field_id)?;
  2779. }
  2780. if !self.content.is_empty() {
  2781. os.write_string(2, &self.content)?;
  2782. }
  2783. os.write_unknown_fields(self.get_unknown_fields())?;
  2784. ::std::result::Result::Ok(())
  2785. }
  2786. fn get_cached_size(&self) -> u32 {
  2787. self.cached_size.get()
  2788. }
  2789. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2790. &self.unknown_fields
  2791. }
  2792. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2793. &mut self.unknown_fields
  2794. }
  2795. fn as_any(&self) -> &dyn (::std::any::Any) {
  2796. self as &dyn (::std::any::Any)
  2797. }
  2798. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  2799. self as &mut dyn (::std::any::Any)
  2800. }
  2801. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  2802. self
  2803. }
  2804. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2805. Self::descriptor_static()
  2806. }
  2807. fn new() -> Cell {
  2808. Cell::new()
  2809. }
  2810. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  2811. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  2812. descriptor.get(|| {
  2813. let mut fields = ::std::vec::Vec::new();
  2814. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2815. "field_id",
  2816. |m: &Cell| { &m.field_id },
  2817. |m: &mut Cell| { &mut m.field_id },
  2818. ));
  2819. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2820. "content",
  2821. |m: &Cell| { &m.content },
  2822. |m: &mut Cell| { &mut m.content },
  2823. ));
  2824. ::protobuf::reflect::MessageDescriptor::new_pb_name::<Cell>(
  2825. "Cell",
  2826. fields,
  2827. file_descriptor_proto()
  2828. )
  2829. })
  2830. }
  2831. fn default_instance() -> &'static Cell {
  2832. static instance: ::protobuf::rt::LazyV2<Cell> = ::protobuf::rt::LazyV2::INIT;
  2833. instance.get(Cell::new)
  2834. }
  2835. }
  2836. impl ::protobuf::Clear for Cell {
  2837. fn clear(&mut self) {
  2838. self.field_id.clear();
  2839. self.content.clear();
  2840. self.unknown_fields.clear();
  2841. }
  2842. }
  2843. impl ::std::fmt::Debug for Cell {
  2844. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  2845. ::protobuf::text_format::fmt(self, f)
  2846. }
  2847. }
  2848. impl ::protobuf::reflect::ProtobufValue for Cell {
  2849. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  2850. ::protobuf::reflect::ReflectValueRef::Message(self)
  2851. }
  2852. }
  2853. #[derive(PartialEq,Clone,Default)]
  2854. pub struct CellNotificationData {
  2855. // message fields
  2856. pub grid_id: ::std::string::String,
  2857. pub field_id: ::std::string::String,
  2858. pub row_id: ::std::string::String,
  2859. // message oneof groups
  2860. pub one_of_content: ::std::option::Option<CellNotificationData_oneof_one_of_content>,
  2861. // special fields
  2862. pub unknown_fields: ::protobuf::UnknownFields,
  2863. pub cached_size: ::protobuf::CachedSize,
  2864. }
  2865. impl<'a> ::std::default::Default for &'a CellNotificationData {
  2866. fn default() -> &'a CellNotificationData {
  2867. <CellNotificationData as ::protobuf::Message>::default_instance()
  2868. }
  2869. }
  2870. #[derive(Clone,PartialEq,Debug)]
  2871. pub enum CellNotificationData_oneof_one_of_content {
  2872. content(::std::string::String),
  2873. }
  2874. impl CellNotificationData {
  2875. pub fn new() -> CellNotificationData {
  2876. ::std::default::Default::default()
  2877. }
  2878. // string grid_id = 1;
  2879. pub fn get_grid_id(&self) -> &str {
  2880. &self.grid_id
  2881. }
  2882. pub fn clear_grid_id(&mut self) {
  2883. self.grid_id.clear();
  2884. }
  2885. // Param is passed by value, moved
  2886. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  2887. self.grid_id = v;
  2888. }
  2889. // Mutable pointer to the field.
  2890. // If field is not initialized, it is initialized with default value first.
  2891. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  2892. &mut self.grid_id
  2893. }
  2894. // Take field
  2895. pub fn take_grid_id(&mut self) -> ::std::string::String {
  2896. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  2897. }
  2898. // string field_id = 2;
  2899. pub fn get_field_id(&self) -> &str {
  2900. &self.field_id
  2901. }
  2902. pub fn clear_field_id(&mut self) {
  2903. self.field_id.clear();
  2904. }
  2905. // Param is passed by value, moved
  2906. pub fn set_field_id(&mut self, v: ::std::string::String) {
  2907. self.field_id = v;
  2908. }
  2909. // Mutable pointer to the field.
  2910. // If field is not initialized, it is initialized with default value first.
  2911. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  2912. &mut self.field_id
  2913. }
  2914. // Take field
  2915. pub fn take_field_id(&mut self) -> ::std::string::String {
  2916. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  2917. }
  2918. // string row_id = 3;
  2919. pub fn get_row_id(&self) -> &str {
  2920. &self.row_id
  2921. }
  2922. pub fn clear_row_id(&mut self) {
  2923. self.row_id.clear();
  2924. }
  2925. // Param is passed by value, moved
  2926. pub fn set_row_id(&mut self, v: ::std::string::String) {
  2927. self.row_id = v;
  2928. }
  2929. // Mutable pointer to the field.
  2930. // If field is not initialized, it is initialized with default value first.
  2931. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  2932. &mut self.row_id
  2933. }
  2934. // Take field
  2935. pub fn take_row_id(&mut self) -> ::std::string::String {
  2936. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  2937. }
  2938. // string content = 4;
  2939. pub fn get_content(&self) -> &str {
  2940. match self.one_of_content {
  2941. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(ref v)) => v,
  2942. _ => "",
  2943. }
  2944. }
  2945. pub fn clear_content(&mut self) {
  2946. self.one_of_content = ::std::option::Option::None;
  2947. }
  2948. pub fn has_content(&self) -> bool {
  2949. match self.one_of_content {
  2950. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(..)) => true,
  2951. _ => false,
  2952. }
  2953. }
  2954. // Param is passed by value, moved
  2955. pub fn set_content(&mut self, v: ::std::string::String) {
  2956. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(v))
  2957. }
  2958. // Mutable pointer to the field.
  2959. pub fn mut_content(&mut self) -> &mut ::std::string::String {
  2960. if let ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(_)) = self.one_of_content {
  2961. } else {
  2962. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(::std::string::String::new()));
  2963. }
  2964. match self.one_of_content {
  2965. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(ref mut v)) => v,
  2966. _ => panic!(),
  2967. }
  2968. }
  2969. // Take field
  2970. pub fn take_content(&mut self) -> ::std::string::String {
  2971. if self.has_content() {
  2972. match self.one_of_content.take() {
  2973. ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(v)) => v,
  2974. _ => panic!(),
  2975. }
  2976. } else {
  2977. ::std::string::String::new()
  2978. }
  2979. }
  2980. }
  2981. impl ::protobuf::Message for CellNotificationData {
  2982. fn is_initialized(&self) -> bool {
  2983. true
  2984. }
  2985. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  2986. while !is.eof()? {
  2987. let (field_number, wire_type) = is.read_tag_unpack()?;
  2988. match field_number {
  2989. 1 => {
  2990. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  2991. },
  2992. 2 => {
  2993. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  2994. },
  2995. 3 => {
  2996. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  2997. },
  2998. 4 => {
  2999. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  3000. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3001. }
  3002. self.one_of_content = ::std::option::Option::Some(CellNotificationData_oneof_one_of_content::content(is.read_string()?));
  3003. },
  3004. _ => {
  3005. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3006. },
  3007. };
  3008. }
  3009. ::std::result::Result::Ok(())
  3010. }
  3011. // Compute sizes of nested messages
  3012. #[allow(unused_variables)]
  3013. fn compute_size(&self) -> u32 {
  3014. let mut my_size = 0;
  3015. if !self.grid_id.is_empty() {
  3016. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  3017. }
  3018. if !self.field_id.is_empty() {
  3019. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  3020. }
  3021. if !self.row_id.is_empty() {
  3022. my_size += ::protobuf::rt::string_size(3, &self.row_id);
  3023. }
  3024. if let ::std::option::Option::Some(ref v) = self.one_of_content {
  3025. match v {
  3026. &CellNotificationData_oneof_one_of_content::content(ref v) => {
  3027. my_size += ::protobuf::rt::string_size(4, &v);
  3028. },
  3029. };
  3030. }
  3031. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3032. self.cached_size.set(my_size);
  3033. my_size
  3034. }
  3035. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3036. if !self.grid_id.is_empty() {
  3037. os.write_string(1, &self.grid_id)?;
  3038. }
  3039. if !self.field_id.is_empty() {
  3040. os.write_string(2, &self.field_id)?;
  3041. }
  3042. if !self.row_id.is_empty() {
  3043. os.write_string(3, &self.row_id)?;
  3044. }
  3045. if let ::std::option::Option::Some(ref v) = self.one_of_content {
  3046. match v {
  3047. &CellNotificationData_oneof_one_of_content::content(ref v) => {
  3048. os.write_string(4, v)?;
  3049. },
  3050. };
  3051. }
  3052. os.write_unknown_fields(self.get_unknown_fields())?;
  3053. ::std::result::Result::Ok(())
  3054. }
  3055. fn get_cached_size(&self) -> u32 {
  3056. self.cached_size.get()
  3057. }
  3058. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3059. &self.unknown_fields
  3060. }
  3061. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3062. &mut self.unknown_fields
  3063. }
  3064. fn as_any(&self) -> &dyn (::std::any::Any) {
  3065. self as &dyn (::std::any::Any)
  3066. }
  3067. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3068. self as &mut dyn (::std::any::Any)
  3069. }
  3070. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3071. self
  3072. }
  3073. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3074. Self::descriptor_static()
  3075. }
  3076. fn new() -> CellNotificationData {
  3077. CellNotificationData::new()
  3078. }
  3079. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3080. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3081. descriptor.get(|| {
  3082. let mut fields = ::std::vec::Vec::new();
  3083. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3084. "grid_id",
  3085. |m: &CellNotificationData| { &m.grid_id },
  3086. |m: &mut CellNotificationData| { &mut m.grid_id },
  3087. ));
  3088. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3089. "field_id",
  3090. |m: &CellNotificationData| { &m.field_id },
  3091. |m: &mut CellNotificationData| { &mut m.field_id },
  3092. ));
  3093. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3094. "row_id",
  3095. |m: &CellNotificationData| { &m.row_id },
  3096. |m: &mut CellNotificationData| { &mut m.row_id },
  3097. ));
  3098. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  3099. "content",
  3100. CellNotificationData::has_content,
  3101. CellNotificationData::get_content,
  3102. ));
  3103. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellNotificationData>(
  3104. "CellNotificationData",
  3105. fields,
  3106. file_descriptor_proto()
  3107. )
  3108. })
  3109. }
  3110. fn default_instance() -> &'static CellNotificationData {
  3111. static instance: ::protobuf::rt::LazyV2<CellNotificationData> = ::protobuf::rt::LazyV2::INIT;
  3112. instance.get(CellNotificationData::new)
  3113. }
  3114. }
  3115. impl ::protobuf::Clear for CellNotificationData {
  3116. fn clear(&mut self) {
  3117. self.grid_id.clear();
  3118. self.field_id.clear();
  3119. self.row_id.clear();
  3120. self.one_of_content = ::std::option::Option::None;
  3121. self.unknown_fields.clear();
  3122. }
  3123. }
  3124. impl ::std::fmt::Debug for CellNotificationData {
  3125. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3126. ::protobuf::text_format::fmt(self, f)
  3127. }
  3128. }
  3129. impl ::protobuf::reflect::ProtobufValue for CellNotificationData {
  3130. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3131. ::protobuf::reflect::ReflectValueRef::Message(self)
  3132. }
  3133. }
  3134. #[derive(PartialEq,Clone,Default)]
  3135. pub struct RepeatedCell {
  3136. // message fields
  3137. pub items: ::protobuf::RepeatedField<Cell>,
  3138. // special fields
  3139. pub unknown_fields: ::protobuf::UnknownFields,
  3140. pub cached_size: ::protobuf::CachedSize,
  3141. }
  3142. impl<'a> ::std::default::Default for &'a RepeatedCell {
  3143. fn default() -> &'a RepeatedCell {
  3144. <RepeatedCell as ::protobuf::Message>::default_instance()
  3145. }
  3146. }
  3147. impl RepeatedCell {
  3148. pub fn new() -> RepeatedCell {
  3149. ::std::default::Default::default()
  3150. }
  3151. // repeated .Cell items = 1;
  3152. pub fn get_items(&self) -> &[Cell] {
  3153. &self.items
  3154. }
  3155. pub fn clear_items(&mut self) {
  3156. self.items.clear();
  3157. }
  3158. // Param is passed by value, moved
  3159. pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Cell>) {
  3160. self.items = v;
  3161. }
  3162. // Mutable pointer to the field.
  3163. pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Cell> {
  3164. &mut self.items
  3165. }
  3166. // Take field
  3167. pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Cell> {
  3168. ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
  3169. }
  3170. }
  3171. impl ::protobuf::Message for RepeatedCell {
  3172. fn is_initialized(&self) -> bool {
  3173. for v in &self.items {
  3174. if !v.is_initialized() {
  3175. return false;
  3176. }
  3177. };
  3178. true
  3179. }
  3180. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3181. while !is.eof()? {
  3182. let (field_number, wire_type) = is.read_tag_unpack()?;
  3183. match field_number {
  3184. 1 => {
  3185. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
  3186. },
  3187. _ => {
  3188. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3189. },
  3190. };
  3191. }
  3192. ::std::result::Result::Ok(())
  3193. }
  3194. // Compute sizes of nested messages
  3195. #[allow(unused_variables)]
  3196. fn compute_size(&self) -> u32 {
  3197. let mut my_size = 0;
  3198. for value in &self.items {
  3199. let len = value.compute_size();
  3200. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3201. };
  3202. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3203. self.cached_size.set(my_size);
  3204. my_size
  3205. }
  3206. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3207. for v in &self.items {
  3208. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3209. os.write_raw_varint32(v.get_cached_size())?;
  3210. v.write_to_with_cached_sizes(os)?;
  3211. };
  3212. os.write_unknown_fields(self.get_unknown_fields())?;
  3213. ::std::result::Result::Ok(())
  3214. }
  3215. fn get_cached_size(&self) -> u32 {
  3216. self.cached_size.get()
  3217. }
  3218. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3219. &self.unknown_fields
  3220. }
  3221. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3222. &mut self.unknown_fields
  3223. }
  3224. fn as_any(&self) -> &dyn (::std::any::Any) {
  3225. self as &dyn (::std::any::Any)
  3226. }
  3227. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3228. self as &mut dyn (::std::any::Any)
  3229. }
  3230. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3231. self
  3232. }
  3233. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3234. Self::descriptor_static()
  3235. }
  3236. fn new() -> RepeatedCell {
  3237. RepeatedCell::new()
  3238. }
  3239. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3240. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3241. descriptor.get(|| {
  3242. let mut fields = ::std::vec::Vec::new();
  3243. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Cell>>(
  3244. "items",
  3245. |m: &RepeatedCell| { &m.items },
  3246. |m: &mut RepeatedCell| { &mut m.items },
  3247. ));
  3248. ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedCell>(
  3249. "RepeatedCell",
  3250. fields,
  3251. file_descriptor_proto()
  3252. )
  3253. })
  3254. }
  3255. fn default_instance() -> &'static RepeatedCell {
  3256. static instance: ::protobuf::rt::LazyV2<RepeatedCell> = ::protobuf::rt::LazyV2::INIT;
  3257. instance.get(RepeatedCell::new)
  3258. }
  3259. }
  3260. impl ::protobuf::Clear for RepeatedCell {
  3261. fn clear(&mut self) {
  3262. self.items.clear();
  3263. self.unknown_fields.clear();
  3264. }
  3265. }
  3266. impl ::std::fmt::Debug for RepeatedCell {
  3267. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3268. ::protobuf::text_format::fmt(self, f)
  3269. }
  3270. }
  3271. impl ::protobuf::reflect::ProtobufValue for RepeatedCell {
  3272. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3273. ::protobuf::reflect::ReflectValueRef::Message(self)
  3274. }
  3275. }
  3276. #[derive(PartialEq,Clone,Default)]
  3277. pub struct CreateGridPayload {
  3278. // message fields
  3279. pub name: ::std::string::String,
  3280. // special fields
  3281. pub unknown_fields: ::protobuf::UnknownFields,
  3282. pub cached_size: ::protobuf::CachedSize,
  3283. }
  3284. impl<'a> ::std::default::Default for &'a CreateGridPayload {
  3285. fn default() -> &'a CreateGridPayload {
  3286. <CreateGridPayload as ::protobuf::Message>::default_instance()
  3287. }
  3288. }
  3289. impl CreateGridPayload {
  3290. pub fn new() -> CreateGridPayload {
  3291. ::std::default::Default::default()
  3292. }
  3293. // string name = 1;
  3294. pub fn get_name(&self) -> &str {
  3295. &self.name
  3296. }
  3297. pub fn clear_name(&mut self) {
  3298. self.name.clear();
  3299. }
  3300. // Param is passed by value, moved
  3301. pub fn set_name(&mut self, v: ::std::string::String) {
  3302. self.name = v;
  3303. }
  3304. // Mutable pointer to the field.
  3305. // If field is not initialized, it is initialized with default value first.
  3306. pub fn mut_name(&mut self) -> &mut ::std::string::String {
  3307. &mut self.name
  3308. }
  3309. // Take field
  3310. pub fn take_name(&mut self) -> ::std::string::String {
  3311. ::std::mem::replace(&mut self.name, ::std::string::String::new())
  3312. }
  3313. }
  3314. impl ::protobuf::Message for CreateGridPayload {
  3315. fn is_initialized(&self) -> bool {
  3316. true
  3317. }
  3318. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3319. while !is.eof()? {
  3320. let (field_number, wire_type) = is.read_tag_unpack()?;
  3321. match field_number {
  3322. 1 => {
  3323. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
  3324. },
  3325. _ => {
  3326. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3327. },
  3328. };
  3329. }
  3330. ::std::result::Result::Ok(())
  3331. }
  3332. // Compute sizes of nested messages
  3333. #[allow(unused_variables)]
  3334. fn compute_size(&self) -> u32 {
  3335. let mut my_size = 0;
  3336. if !self.name.is_empty() {
  3337. my_size += ::protobuf::rt::string_size(1, &self.name);
  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.name.is_empty() {
  3345. os.write_string(1, &self.name)?;
  3346. }
  3347. os.write_unknown_fields(self.get_unknown_fields())?;
  3348. ::std::result::Result::Ok(())
  3349. }
  3350. fn get_cached_size(&self) -> u32 {
  3351. self.cached_size.get()
  3352. }
  3353. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3354. &self.unknown_fields
  3355. }
  3356. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3357. &mut self.unknown_fields
  3358. }
  3359. fn as_any(&self) -> &dyn (::std::any::Any) {
  3360. self as &dyn (::std::any::Any)
  3361. }
  3362. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3363. self as &mut dyn (::std::any::Any)
  3364. }
  3365. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3366. self
  3367. }
  3368. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3369. Self::descriptor_static()
  3370. }
  3371. fn new() -> CreateGridPayload {
  3372. CreateGridPayload::new()
  3373. }
  3374. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3375. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3376. descriptor.get(|| {
  3377. let mut fields = ::std::vec::Vec::new();
  3378. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3379. "name",
  3380. |m: &CreateGridPayload| { &m.name },
  3381. |m: &mut CreateGridPayload| { &mut m.name },
  3382. ));
  3383. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateGridPayload>(
  3384. "CreateGridPayload",
  3385. fields,
  3386. file_descriptor_proto()
  3387. )
  3388. })
  3389. }
  3390. fn default_instance() -> &'static CreateGridPayload {
  3391. static instance: ::protobuf::rt::LazyV2<CreateGridPayload> = ::protobuf::rt::LazyV2::INIT;
  3392. instance.get(CreateGridPayload::new)
  3393. }
  3394. }
  3395. impl ::protobuf::Clear for CreateGridPayload {
  3396. fn clear(&mut self) {
  3397. self.name.clear();
  3398. self.unknown_fields.clear();
  3399. }
  3400. }
  3401. impl ::std::fmt::Debug for CreateGridPayload {
  3402. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3403. ::protobuf::text_format::fmt(self, f)
  3404. }
  3405. }
  3406. impl ::protobuf::reflect::ProtobufValue for CreateGridPayload {
  3407. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3408. ::protobuf::reflect::ReflectValueRef::Message(self)
  3409. }
  3410. }
  3411. #[derive(PartialEq,Clone,Default)]
  3412. pub struct GridId {
  3413. // message fields
  3414. pub value: ::std::string::String,
  3415. // special fields
  3416. pub unknown_fields: ::protobuf::UnknownFields,
  3417. pub cached_size: ::protobuf::CachedSize,
  3418. }
  3419. impl<'a> ::std::default::Default for &'a GridId {
  3420. fn default() -> &'a GridId {
  3421. <GridId as ::protobuf::Message>::default_instance()
  3422. }
  3423. }
  3424. impl GridId {
  3425. pub fn new() -> GridId {
  3426. ::std::default::Default::default()
  3427. }
  3428. // string value = 1;
  3429. pub fn get_value(&self) -> &str {
  3430. &self.value
  3431. }
  3432. pub fn clear_value(&mut self) {
  3433. self.value.clear();
  3434. }
  3435. // Param is passed by value, moved
  3436. pub fn set_value(&mut self, v: ::std::string::String) {
  3437. self.value = v;
  3438. }
  3439. // Mutable pointer to the field.
  3440. // If field is not initialized, it is initialized with default value first.
  3441. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  3442. &mut self.value
  3443. }
  3444. // Take field
  3445. pub fn take_value(&mut self) -> ::std::string::String {
  3446. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  3447. }
  3448. }
  3449. impl ::protobuf::Message for GridId {
  3450. fn is_initialized(&self) -> bool {
  3451. true
  3452. }
  3453. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3454. while !is.eof()? {
  3455. let (field_number, wire_type) = is.read_tag_unpack()?;
  3456. match field_number {
  3457. 1 => {
  3458. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  3459. },
  3460. _ => {
  3461. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3462. },
  3463. };
  3464. }
  3465. ::std::result::Result::Ok(())
  3466. }
  3467. // Compute sizes of nested messages
  3468. #[allow(unused_variables)]
  3469. fn compute_size(&self) -> u32 {
  3470. let mut my_size = 0;
  3471. if !self.value.is_empty() {
  3472. my_size += ::protobuf::rt::string_size(1, &self.value);
  3473. }
  3474. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3475. self.cached_size.set(my_size);
  3476. my_size
  3477. }
  3478. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3479. if !self.value.is_empty() {
  3480. os.write_string(1, &self.value)?;
  3481. }
  3482. os.write_unknown_fields(self.get_unknown_fields())?;
  3483. ::std::result::Result::Ok(())
  3484. }
  3485. fn get_cached_size(&self) -> u32 {
  3486. self.cached_size.get()
  3487. }
  3488. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3489. &self.unknown_fields
  3490. }
  3491. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3492. &mut self.unknown_fields
  3493. }
  3494. fn as_any(&self) -> &dyn (::std::any::Any) {
  3495. self as &dyn (::std::any::Any)
  3496. }
  3497. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3498. self as &mut dyn (::std::any::Any)
  3499. }
  3500. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3501. self
  3502. }
  3503. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3504. Self::descriptor_static()
  3505. }
  3506. fn new() -> GridId {
  3507. GridId::new()
  3508. }
  3509. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3510. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3511. descriptor.get(|| {
  3512. let mut fields = ::std::vec::Vec::new();
  3513. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3514. "value",
  3515. |m: &GridId| { &m.value },
  3516. |m: &mut GridId| { &mut m.value },
  3517. ));
  3518. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridId>(
  3519. "GridId",
  3520. fields,
  3521. file_descriptor_proto()
  3522. )
  3523. })
  3524. }
  3525. fn default_instance() -> &'static GridId {
  3526. static instance: ::protobuf::rt::LazyV2<GridId> = ::protobuf::rt::LazyV2::INIT;
  3527. instance.get(GridId::new)
  3528. }
  3529. }
  3530. impl ::protobuf::Clear for GridId {
  3531. fn clear(&mut self) {
  3532. self.value.clear();
  3533. self.unknown_fields.clear();
  3534. }
  3535. }
  3536. impl ::std::fmt::Debug for GridId {
  3537. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3538. ::protobuf::text_format::fmt(self, f)
  3539. }
  3540. }
  3541. impl ::protobuf::reflect::ProtobufValue for GridId {
  3542. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3543. ::protobuf::reflect::ReflectValueRef::Message(self)
  3544. }
  3545. }
  3546. #[derive(PartialEq,Clone,Default)]
  3547. pub struct GridBlockId {
  3548. // message fields
  3549. pub value: ::std::string::String,
  3550. // special fields
  3551. pub unknown_fields: ::protobuf::UnknownFields,
  3552. pub cached_size: ::protobuf::CachedSize,
  3553. }
  3554. impl<'a> ::std::default::Default for &'a GridBlockId {
  3555. fn default() -> &'a GridBlockId {
  3556. <GridBlockId as ::protobuf::Message>::default_instance()
  3557. }
  3558. }
  3559. impl GridBlockId {
  3560. pub fn new() -> GridBlockId {
  3561. ::std::default::Default::default()
  3562. }
  3563. // string value = 1;
  3564. pub fn get_value(&self) -> &str {
  3565. &self.value
  3566. }
  3567. pub fn clear_value(&mut self) {
  3568. self.value.clear();
  3569. }
  3570. // Param is passed by value, moved
  3571. pub fn set_value(&mut self, v: ::std::string::String) {
  3572. self.value = v;
  3573. }
  3574. // Mutable pointer to the field.
  3575. // If field is not initialized, it is initialized with default value first.
  3576. pub fn mut_value(&mut self) -> &mut ::std::string::String {
  3577. &mut self.value
  3578. }
  3579. // Take field
  3580. pub fn take_value(&mut self) -> ::std::string::String {
  3581. ::std::mem::replace(&mut self.value, ::std::string::String::new())
  3582. }
  3583. }
  3584. impl ::protobuf::Message for GridBlockId {
  3585. fn is_initialized(&self) -> bool {
  3586. true
  3587. }
  3588. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3589. while !is.eof()? {
  3590. let (field_number, wire_type) = is.read_tag_unpack()?;
  3591. match field_number {
  3592. 1 => {
  3593. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
  3594. },
  3595. _ => {
  3596. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3597. },
  3598. };
  3599. }
  3600. ::std::result::Result::Ok(())
  3601. }
  3602. // Compute sizes of nested messages
  3603. #[allow(unused_variables)]
  3604. fn compute_size(&self) -> u32 {
  3605. let mut my_size = 0;
  3606. if !self.value.is_empty() {
  3607. my_size += ::protobuf::rt::string_size(1, &self.value);
  3608. }
  3609. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3610. self.cached_size.set(my_size);
  3611. my_size
  3612. }
  3613. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3614. if !self.value.is_empty() {
  3615. os.write_string(1, &self.value)?;
  3616. }
  3617. os.write_unknown_fields(self.get_unknown_fields())?;
  3618. ::std::result::Result::Ok(())
  3619. }
  3620. fn get_cached_size(&self) -> u32 {
  3621. self.cached_size.get()
  3622. }
  3623. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3624. &self.unknown_fields
  3625. }
  3626. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3627. &mut self.unknown_fields
  3628. }
  3629. fn as_any(&self) -> &dyn (::std::any::Any) {
  3630. self as &dyn (::std::any::Any)
  3631. }
  3632. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3633. self as &mut dyn (::std::any::Any)
  3634. }
  3635. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3636. self
  3637. }
  3638. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3639. Self::descriptor_static()
  3640. }
  3641. fn new() -> GridBlockId {
  3642. GridBlockId::new()
  3643. }
  3644. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3645. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3646. descriptor.get(|| {
  3647. let mut fields = ::std::vec::Vec::new();
  3648. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3649. "value",
  3650. |m: &GridBlockId| { &m.value },
  3651. |m: &mut GridBlockId| { &mut m.value },
  3652. ));
  3653. ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockId>(
  3654. "GridBlockId",
  3655. fields,
  3656. file_descriptor_proto()
  3657. )
  3658. })
  3659. }
  3660. fn default_instance() -> &'static GridBlockId {
  3661. static instance: ::protobuf::rt::LazyV2<GridBlockId> = ::protobuf::rt::LazyV2::INIT;
  3662. instance.get(GridBlockId::new)
  3663. }
  3664. }
  3665. impl ::protobuf::Clear for GridBlockId {
  3666. fn clear(&mut self) {
  3667. self.value.clear();
  3668. self.unknown_fields.clear();
  3669. }
  3670. }
  3671. impl ::std::fmt::Debug for GridBlockId {
  3672. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3673. ::protobuf::text_format::fmt(self, f)
  3674. }
  3675. }
  3676. impl ::protobuf::reflect::ProtobufValue for GridBlockId {
  3677. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3678. ::protobuf::reflect::ReflectValueRef::Message(self)
  3679. }
  3680. }
  3681. #[derive(PartialEq,Clone,Default)]
  3682. pub struct CreateRowPayload {
  3683. // message fields
  3684. pub grid_id: ::std::string::String,
  3685. // message oneof groups
  3686. pub one_of_start_row_id: ::std::option::Option<CreateRowPayload_oneof_one_of_start_row_id>,
  3687. // special fields
  3688. pub unknown_fields: ::protobuf::UnknownFields,
  3689. pub cached_size: ::protobuf::CachedSize,
  3690. }
  3691. impl<'a> ::std::default::Default for &'a CreateRowPayload {
  3692. fn default() -> &'a CreateRowPayload {
  3693. <CreateRowPayload as ::protobuf::Message>::default_instance()
  3694. }
  3695. }
  3696. #[derive(Clone,PartialEq,Debug)]
  3697. pub enum CreateRowPayload_oneof_one_of_start_row_id {
  3698. start_row_id(::std::string::String),
  3699. }
  3700. impl CreateRowPayload {
  3701. pub fn new() -> CreateRowPayload {
  3702. ::std::default::Default::default()
  3703. }
  3704. // string grid_id = 1;
  3705. pub fn get_grid_id(&self) -> &str {
  3706. &self.grid_id
  3707. }
  3708. pub fn clear_grid_id(&mut self) {
  3709. self.grid_id.clear();
  3710. }
  3711. // Param is passed by value, moved
  3712. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  3713. self.grid_id = v;
  3714. }
  3715. // Mutable pointer to the field.
  3716. // If field is not initialized, it is initialized with default value first.
  3717. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  3718. &mut self.grid_id
  3719. }
  3720. // Take field
  3721. pub fn take_grid_id(&mut self) -> ::std::string::String {
  3722. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  3723. }
  3724. // string start_row_id = 2;
  3725. pub fn get_start_row_id(&self) -> &str {
  3726. match self.one_of_start_row_id {
  3727. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v)) => v,
  3728. _ => "",
  3729. }
  3730. }
  3731. pub fn clear_start_row_id(&mut self) {
  3732. self.one_of_start_row_id = ::std::option::Option::None;
  3733. }
  3734. pub fn has_start_row_id(&self) -> bool {
  3735. match self.one_of_start_row_id {
  3736. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(..)) => true,
  3737. _ => false,
  3738. }
  3739. }
  3740. // Param is passed by value, moved
  3741. pub fn set_start_row_id(&mut self, v: ::std::string::String) {
  3742. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v))
  3743. }
  3744. // Mutable pointer to the field.
  3745. pub fn mut_start_row_id(&mut self) -> &mut ::std::string::String {
  3746. if let ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(_)) = self.one_of_start_row_id {
  3747. } else {
  3748. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(::std::string::String::new()));
  3749. }
  3750. match self.one_of_start_row_id {
  3751. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref mut v)) => v,
  3752. _ => panic!(),
  3753. }
  3754. }
  3755. // Take field
  3756. pub fn take_start_row_id(&mut self) -> ::std::string::String {
  3757. if self.has_start_row_id() {
  3758. match self.one_of_start_row_id.take() {
  3759. ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(v)) => v,
  3760. _ => panic!(),
  3761. }
  3762. } else {
  3763. ::std::string::String::new()
  3764. }
  3765. }
  3766. }
  3767. impl ::protobuf::Message for CreateRowPayload {
  3768. fn is_initialized(&self) -> bool {
  3769. true
  3770. }
  3771. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3772. while !is.eof()? {
  3773. let (field_number, wire_type) = is.read_tag_unpack()?;
  3774. match field_number {
  3775. 1 => {
  3776. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  3777. },
  3778. 2 => {
  3779. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  3780. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3781. }
  3782. self.one_of_start_row_id = ::std::option::Option::Some(CreateRowPayload_oneof_one_of_start_row_id::start_row_id(is.read_string()?));
  3783. },
  3784. _ => {
  3785. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3786. },
  3787. };
  3788. }
  3789. ::std::result::Result::Ok(())
  3790. }
  3791. // Compute sizes of nested messages
  3792. #[allow(unused_variables)]
  3793. fn compute_size(&self) -> u32 {
  3794. let mut my_size = 0;
  3795. if !self.grid_id.is_empty() {
  3796. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  3797. }
  3798. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  3799. match v {
  3800. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  3801. my_size += ::protobuf::rt::string_size(2, &v);
  3802. },
  3803. };
  3804. }
  3805. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3806. self.cached_size.set(my_size);
  3807. my_size
  3808. }
  3809. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  3810. if !self.grid_id.is_empty() {
  3811. os.write_string(1, &self.grid_id)?;
  3812. }
  3813. if let ::std::option::Option::Some(ref v) = self.one_of_start_row_id {
  3814. match v {
  3815. &CreateRowPayload_oneof_one_of_start_row_id::start_row_id(ref v) => {
  3816. os.write_string(2, v)?;
  3817. },
  3818. };
  3819. }
  3820. os.write_unknown_fields(self.get_unknown_fields())?;
  3821. ::std::result::Result::Ok(())
  3822. }
  3823. fn get_cached_size(&self) -> u32 {
  3824. self.cached_size.get()
  3825. }
  3826. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3827. &self.unknown_fields
  3828. }
  3829. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3830. &mut self.unknown_fields
  3831. }
  3832. fn as_any(&self) -> &dyn (::std::any::Any) {
  3833. self as &dyn (::std::any::Any)
  3834. }
  3835. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  3836. self as &mut dyn (::std::any::Any)
  3837. }
  3838. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  3839. self
  3840. }
  3841. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3842. Self::descriptor_static()
  3843. }
  3844. fn new() -> CreateRowPayload {
  3845. CreateRowPayload::new()
  3846. }
  3847. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  3848. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  3849. descriptor.get(|| {
  3850. let mut fields = ::std::vec::Vec::new();
  3851. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3852. "grid_id",
  3853. |m: &CreateRowPayload| { &m.grid_id },
  3854. |m: &mut CreateRowPayload| { &mut m.grid_id },
  3855. ));
  3856. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  3857. "start_row_id",
  3858. CreateRowPayload::has_start_row_id,
  3859. CreateRowPayload::get_start_row_id,
  3860. ));
  3861. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateRowPayload>(
  3862. "CreateRowPayload",
  3863. fields,
  3864. file_descriptor_proto()
  3865. )
  3866. })
  3867. }
  3868. fn default_instance() -> &'static CreateRowPayload {
  3869. static instance: ::protobuf::rt::LazyV2<CreateRowPayload> = ::protobuf::rt::LazyV2::INIT;
  3870. instance.get(CreateRowPayload::new)
  3871. }
  3872. }
  3873. impl ::protobuf::Clear for CreateRowPayload {
  3874. fn clear(&mut self) {
  3875. self.grid_id.clear();
  3876. self.one_of_start_row_id = ::std::option::Option::None;
  3877. self.unknown_fields.clear();
  3878. }
  3879. }
  3880. impl ::std::fmt::Debug for CreateRowPayload {
  3881. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  3882. ::protobuf::text_format::fmt(self, f)
  3883. }
  3884. }
  3885. impl ::protobuf::reflect::ProtobufValue for CreateRowPayload {
  3886. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  3887. ::protobuf::reflect::ReflectValueRef::Message(self)
  3888. }
  3889. }
  3890. #[derive(PartialEq,Clone,Default)]
  3891. pub struct CreateFieldPayload {
  3892. // message fields
  3893. pub grid_id: ::std::string::String,
  3894. pub field: ::protobuf::SingularPtrField<Field>,
  3895. pub type_option_data: ::std::vec::Vec<u8>,
  3896. // message oneof groups
  3897. pub one_of_start_field_id: ::std::option::Option<CreateFieldPayload_oneof_one_of_start_field_id>,
  3898. // special fields
  3899. pub unknown_fields: ::protobuf::UnknownFields,
  3900. pub cached_size: ::protobuf::CachedSize,
  3901. }
  3902. impl<'a> ::std::default::Default for &'a CreateFieldPayload {
  3903. fn default() -> &'a CreateFieldPayload {
  3904. <CreateFieldPayload as ::protobuf::Message>::default_instance()
  3905. }
  3906. }
  3907. #[derive(Clone,PartialEq,Debug)]
  3908. pub enum CreateFieldPayload_oneof_one_of_start_field_id {
  3909. start_field_id(::std::string::String),
  3910. }
  3911. impl CreateFieldPayload {
  3912. pub fn new() -> CreateFieldPayload {
  3913. ::std::default::Default::default()
  3914. }
  3915. // string grid_id = 1;
  3916. pub fn get_grid_id(&self) -> &str {
  3917. &self.grid_id
  3918. }
  3919. pub fn clear_grid_id(&mut self) {
  3920. self.grid_id.clear();
  3921. }
  3922. // Param is passed by value, moved
  3923. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  3924. self.grid_id = v;
  3925. }
  3926. // Mutable pointer to the field.
  3927. // If field is not initialized, it is initialized with default value first.
  3928. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  3929. &mut self.grid_id
  3930. }
  3931. // Take field
  3932. pub fn take_grid_id(&mut self) -> ::std::string::String {
  3933. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  3934. }
  3935. // .Field field = 2;
  3936. pub fn get_field(&self) -> &Field {
  3937. self.field.as_ref().unwrap_or_else(|| <Field as ::protobuf::Message>::default_instance())
  3938. }
  3939. pub fn clear_field(&mut self) {
  3940. self.field.clear();
  3941. }
  3942. pub fn has_field(&self) -> bool {
  3943. self.field.is_some()
  3944. }
  3945. // Param is passed by value, moved
  3946. pub fn set_field(&mut self, v: Field) {
  3947. self.field = ::protobuf::SingularPtrField::some(v);
  3948. }
  3949. // Mutable pointer to the field.
  3950. // If field is not initialized, it is initialized with default value first.
  3951. pub fn mut_field(&mut self) -> &mut Field {
  3952. if self.field.is_none() {
  3953. self.field.set_default();
  3954. }
  3955. self.field.as_mut().unwrap()
  3956. }
  3957. // Take field
  3958. pub fn take_field(&mut self) -> Field {
  3959. self.field.take().unwrap_or_else(|| Field::new())
  3960. }
  3961. // bytes type_option_data = 3;
  3962. pub fn get_type_option_data(&self) -> &[u8] {
  3963. &self.type_option_data
  3964. }
  3965. pub fn clear_type_option_data(&mut self) {
  3966. self.type_option_data.clear();
  3967. }
  3968. // Param is passed by value, moved
  3969. pub fn set_type_option_data(&mut self, v: ::std::vec::Vec<u8>) {
  3970. self.type_option_data = v;
  3971. }
  3972. // Mutable pointer to the field.
  3973. // If field is not initialized, it is initialized with default value first.
  3974. pub fn mut_type_option_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  3975. &mut self.type_option_data
  3976. }
  3977. // Take field
  3978. pub fn take_type_option_data(&mut self) -> ::std::vec::Vec<u8> {
  3979. ::std::mem::replace(&mut self.type_option_data, ::std::vec::Vec::new())
  3980. }
  3981. // string start_field_id = 4;
  3982. pub fn get_start_field_id(&self) -> &str {
  3983. match self.one_of_start_field_id {
  3984. ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v)) => v,
  3985. _ => "",
  3986. }
  3987. }
  3988. pub fn clear_start_field_id(&mut self) {
  3989. self.one_of_start_field_id = ::std::option::Option::None;
  3990. }
  3991. pub fn has_start_field_id(&self) -> bool {
  3992. match self.one_of_start_field_id {
  3993. ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(..)) => true,
  3994. _ => false,
  3995. }
  3996. }
  3997. // Param is passed by value, moved
  3998. pub fn set_start_field_id(&mut self, v: ::std::string::String) {
  3999. self.one_of_start_field_id = ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(v))
  4000. }
  4001. // Mutable pointer to the field.
  4002. pub fn mut_start_field_id(&mut self) -> &mut ::std::string::String {
  4003. if let ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(_)) = self.one_of_start_field_id {
  4004. } else {
  4005. self.one_of_start_field_id = ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(::std::string::String::new()));
  4006. }
  4007. match self.one_of_start_field_id {
  4008. ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(ref mut v)) => v,
  4009. _ => panic!(),
  4010. }
  4011. }
  4012. // Take field
  4013. pub fn take_start_field_id(&mut self) -> ::std::string::String {
  4014. if self.has_start_field_id() {
  4015. match self.one_of_start_field_id.take() {
  4016. ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(v)) => v,
  4017. _ => panic!(),
  4018. }
  4019. } else {
  4020. ::std::string::String::new()
  4021. }
  4022. }
  4023. }
  4024. impl ::protobuf::Message for CreateFieldPayload {
  4025. fn is_initialized(&self) -> bool {
  4026. for v in &self.field {
  4027. if !v.is_initialized() {
  4028. return false;
  4029. }
  4030. };
  4031. true
  4032. }
  4033. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4034. while !is.eof()? {
  4035. let (field_number, wire_type) = is.read_tag_unpack()?;
  4036. match field_number {
  4037. 1 => {
  4038. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4039. },
  4040. 2 => {
  4041. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field)?;
  4042. },
  4043. 3 => {
  4044. ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.type_option_data)?;
  4045. },
  4046. 4 => {
  4047. if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
  4048. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4049. }
  4050. self.one_of_start_field_id = ::std::option::Option::Some(CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(is.read_string()?));
  4051. },
  4052. _ => {
  4053. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4054. },
  4055. };
  4056. }
  4057. ::std::result::Result::Ok(())
  4058. }
  4059. // Compute sizes of nested messages
  4060. #[allow(unused_variables)]
  4061. fn compute_size(&self) -> u32 {
  4062. let mut my_size = 0;
  4063. if !self.grid_id.is_empty() {
  4064. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  4065. }
  4066. if let Some(ref v) = self.field.as_ref() {
  4067. let len = v.compute_size();
  4068. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4069. }
  4070. if !self.type_option_data.is_empty() {
  4071. my_size += ::protobuf::rt::bytes_size(3, &self.type_option_data);
  4072. }
  4073. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  4074. match v {
  4075. &CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  4076. my_size += ::protobuf::rt::string_size(4, &v);
  4077. },
  4078. };
  4079. }
  4080. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4081. self.cached_size.set(my_size);
  4082. my_size
  4083. }
  4084. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4085. if !self.grid_id.is_empty() {
  4086. os.write_string(1, &self.grid_id)?;
  4087. }
  4088. if let Some(ref v) = self.field.as_ref() {
  4089. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4090. os.write_raw_varint32(v.get_cached_size())?;
  4091. v.write_to_with_cached_sizes(os)?;
  4092. }
  4093. if !self.type_option_data.is_empty() {
  4094. os.write_bytes(3, &self.type_option_data)?;
  4095. }
  4096. if let ::std::option::Option::Some(ref v) = self.one_of_start_field_id {
  4097. match v {
  4098. &CreateFieldPayload_oneof_one_of_start_field_id::start_field_id(ref v) => {
  4099. os.write_string(4, v)?;
  4100. },
  4101. };
  4102. }
  4103. os.write_unknown_fields(self.get_unknown_fields())?;
  4104. ::std::result::Result::Ok(())
  4105. }
  4106. fn get_cached_size(&self) -> u32 {
  4107. self.cached_size.get()
  4108. }
  4109. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4110. &self.unknown_fields
  4111. }
  4112. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4113. &mut self.unknown_fields
  4114. }
  4115. fn as_any(&self) -> &dyn (::std::any::Any) {
  4116. self as &dyn (::std::any::Any)
  4117. }
  4118. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4119. self as &mut dyn (::std::any::Any)
  4120. }
  4121. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4122. self
  4123. }
  4124. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4125. Self::descriptor_static()
  4126. }
  4127. fn new() -> CreateFieldPayload {
  4128. CreateFieldPayload::new()
  4129. }
  4130. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4131. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4132. descriptor.get(|| {
  4133. let mut fields = ::std::vec::Vec::new();
  4134. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4135. "grid_id",
  4136. |m: &CreateFieldPayload| { &m.grid_id },
  4137. |m: &mut CreateFieldPayload| { &mut m.grid_id },
  4138. ));
  4139. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
  4140. "field",
  4141. |m: &CreateFieldPayload| { &m.field },
  4142. |m: &mut CreateFieldPayload| { &mut m.field },
  4143. ));
  4144. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  4145. "type_option_data",
  4146. |m: &CreateFieldPayload| { &m.type_option_data },
  4147. |m: &mut CreateFieldPayload| { &mut m.type_option_data },
  4148. ));
  4149. fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
  4150. "start_field_id",
  4151. CreateFieldPayload::has_start_field_id,
  4152. CreateFieldPayload::get_start_field_id,
  4153. ));
  4154. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateFieldPayload>(
  4155. "CreateFieldPayload",
  4156. fields,
  4157. file_descriptor_proto()
  4158. )
  4159. })
  4160. }
  4161. fn default_instance() -> &'static CreateFieldPayload {
  4162. static instance: ::protobuf::rt::LazyV2<CreateFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  4163. instance.get(CreateFieldPayload::new)
  4164. }
  4165. }
  4166. impl ::protobuf::Clear for CreateFieldPayload {
  4167. fn clear(&mut self) {
  4168. self.grid_id.clear();
  4169. self.field.clear();
  4170. self.type_option_data.clear();
  4171. self.one_of_start_field_id = ::std::option::Option::None;
  4172. self.unknown_fields.clear();
  4173. }
  4174. }
  4175. impl ::std::fmt::Debug for CreateFieldPayload {
  4176. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4177. ::protobuf::text_format::fmt(self, f)
  4178. }
  4179. }
  4180. impl ::protobuf::reflect::ProtobufValue for CreateFieldPayload {
  4181. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4182. ::protobuf::reflect::ReflectValueRef::Message(self)
  4183. }
  4184. }
  4185. #[derive(PartialEq,Clone,Default)]
  4186. pub struct QueryFieldPayload {
  4187. // message fields
  4188. pub grid_id: ::std::string::String,
  4189. pub field_orders: ::protobuf::SingularPtrField<RepeatedFieldOrder>,
  4190. // special fields
  4191. pub unknown_fields: ::protobuf::UnknownFields,
  4192. pub cached_size: ::protobuf::CachedSize,
  4193. }
  4194. impl<'a> ::std::default::Default for &'a QueryFieldPayload {
  4195. fn default() -> &'a QueryFieldPayload {
  4196. <QueryFieldPayload as ::protobuf::Message>::default_instance()
  4197. }
  4198. }
  4199. impl QueryFieldPayload {
  4200. pub fn new() -> QueryFieldPayload {
  4201. ::std::default::Default::default()
  4202. }
  4203. // string grid_id = 1;
  4204. pub fn get_grid_id(&self) -> &str {
  4205. &self.grid_id
  4206. }
  4207. pub fn clear_grid_id(&mut self) {
  4208. self.grid_id.clear();
  4209. }
  4210. // Param is passed by value, moved
  4211. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  4212. self.grid_id = v;
  4213. }
  4214. // Mutable pointer to the field.
  4215. // If field is not initialized, it is initialized with default value first.
  4216. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  4217. &mut self.grid_id
  4218. }
  4219. // Take field
  4220. pub fn take_grid_id(&mut self) -> ::std::string::String {
  4221. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  4222. }
  4223. // .RepeatedFieldOrder field_orders = 2;
  4224. pub fn get_field_orders(&self) -> &RepeatedFieldOrder {
  4225. self.field_orders.as_ref().unwrap_or_else(|| <RepeatedFieldOrder as ::protobuf::Message>::default_instance())
  4226. }
  4227. pub fn clear_field_orders(&mut self) {
  4228. self.field_orders.clear();
  4229. }
  4230. pub fn has_field_orders(&self) -> bool {
  4231. self.field_orders.is_some()
  4232. }
  4233. // Param is passed by value, moved
  4234. pub fn set_field_orders(&mut self, v: RepeatedFieldOrder) {
  4235. self.field_orders = ::protobuf::SingularPtrField::some(v);
  4236. }
  4237. // Mutable pointer to the field.
  4238. // If field is not initialized, it is initialized with default value first.
  4239. pub fn mut_field_orders(&mut self) -> &mut RepeatedFieldOrder {
  4240. if self.field_orders.is_none() {
  4241. self.field_orders.set_default();
  4242. }
  4243. self.field_orders.as_mut().unwrap()
  4244. }
  4245. // Take field
  4246. pub fn take_field_orders(&mut self) -> RepeatedFieldOrder {
  4247. self.field_orders.take().unwrap_or_else(|| RepeatedFieldOrder::new())
  4248. }
  4249. }
  4250. impl ::protobuf::Message for QueryFieldPayload {
  4251. fn is_initialized(&self) -> bool {
  4252. for v in &self.field_orders {
  4253. if !v.is_initialized() {
  4254. return false;
  4255. }
  4256. };
  4257. true
  4258. }
  4259. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4260. while !is.eof()? {
  4261. let (field_number, wire_type) = is.read_tag_unpack()?;
  4262. match field_number {
  4263. 1 => {
  4264. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4265. },
  4266. 2 => {
  4267. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_orders)?;
  4268. },
  4269. _ => {
  4270. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4271. },
  4272. };
  4273. }
  4274. ::std::result::Result::Ok(())
  4275. }
  4276. // Compute sizes of nested messages
  4277. #[allow(unused_variables)]
  4278. fn compute_size(&self) -> u32 {
  4279. let mut my_size = 0;
  4280. if !self.grid_id.is_empty() {
  4281. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  4282. }
  4283. if let Some(ref v) = self.field_orders.as_ref() {
  4284. let len = v.compute_size();
  4285. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4286. }
  4287. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4288. self.cached_size.set(my_size);
  4289. my_size
  4290. }
  4291. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4292. if !self.grid_id.is_empty() {
  4293. os.write_string(1, &self.grid_id)?;
  4294. }
  4295. if let Some(ref v) = self.field_orders.as_ref() {
  4296. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4297. os.write_raw_varint32(v.get_cached_size())?;
  4298. v.write_to_with_cached_sizes(os)?;
  4299. }
  4300. os.write_unknown_fields(self.get_unknown_fields())?;
  4301. ::std::result::Result::Ok(())
  4302. }
  4303. fn get_cached_size(&self) -> u32 {
  4304. self.cached_size.get()
  4305. }
  4306. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4307. &self.unknown_fields
  4308. }
  4309. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4310. &mut self.unknown_fields
  4311. }
  4312. fn as_any(&self) -> &dyn (::std::any::Any) {
  4313. self as &dyn (::std::any::Any)
  4314. }
  4315. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4316. self as &mut dyn (::std::any::Any)
  4317. }
  4318. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4319. self
  4320. }
  4321. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4322. Self::descriptor_static()
  4323. }
  4324. fn new() -> QueryFieldPayload {
  4325. QueryFieldPayload::new()
  4326. }
  4327. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4328. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4329. descriptor.get(|| {
  4330. let mut fields = ::std::vec::Vec::new();
  4331. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4332. "grid_id",
  4333. |m: &QueryFieldPayload| { &m.grid_id },
  4334. |m: &mut QueryFieldPayload| { &mut m.grid_id },
  4335. ));
  4336. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RepeatedFieldOrder>>(
  4337. "field_orders",
  4338. |m: &QueryFieldPayload| { &m.field_orders },
  4339. |m: &mut QueryFieldPayload| { &mut m.field_orders },
  4340. ));
  4341. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryFieldPayload>(
  4342. "QueryFieldPayload",
  4343. fields,
  4344. file_descriptor_proto()
  4345. )
  4346. })
  4347. }
  4348. fn default_instance() -> &'static QueryFieldPayload {
  4349. static instance: ::protobuf::rt::LazyV2<QueryFieldPayload> = ::protobuf::rt::LazyV2::INIT;
  4350. instance.get(QueryFieldPayload::new)
  4351. }
  4352. }
  4353. impl ::protobuf::Clear for QueryFieldPayload {
  4354. fn clear(&mut self) {
  4355. self.grid_id.clear();
  4356. self.field_orders.clear();
  4357. self.unknown_fields.clear();
  4358. }
  4359. }
  4360. impl ::std::fmt::Debug for QueryFieldPayload {
  4361. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4362. ::protobuf::text_format::fmt(self, f)
  4363. }
  4364. }
  4365. impl ::protobuf::reflect::ProtobufValue for QueryFieldPayload {
  4366. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4367. ::protobuf::reflect::ReflectValueRef::Message(self)
  4368. }
  4369. }
  4370. #[derive(PartialEq,Clone,Default)]
  4371. pub struct QueryGridBlocksPayload {
  4372. // message fields
  4373. pub grid_id: ::std::string::String,
  4374. pub block_orders: ::protobuf::RepeatedField<GridBlockOrder>,
  4375. // special fields
  4376. pub unknown_fields: ::protobuf::UnknownFields,
  4377. pub cached_size: ::protobuf::CachedSize,
  4378. }
  4379. impl<'a> ::std::default::Default for &'a QueryGridBlocksPayload {
  4380. fn default() -> &'a QueryGridBlocksPayload {
  4381. <QueryGridBlocksPayload as ::protobuf::Message>::default_instance()
  4382. }
  4383. }
  4384. impl QueryGridBlocksPayload {
  4385. pub fn new() -> QueryGridBlocksPayload {
  4386. ::std::default::Default::default()
  4387. }
  4388. // string grid_id = 1;
  4389. pub fn get_grid_id(&self) -> &str {
  4390. &self.grid_id
  4391. }
  4392. pub fn clear_grid_id(&mut self) {
  4393. self.grid_id.clear();
  4394. }
  4395. // Param is passed by value, moved
  4396. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  4397. self.grid_id = v;
  4398. }
  4399. // Mutable pointer to the field.
  4400. // If field is not initialized, it is initialized with default value first.
  4401. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  4402. &mut self.grid_id
  4403. }
  4404. // Take field
  4405. pub fn take_grid_id(&mut self) -> ::std::string::String {
  4406. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  4407. }
  4408. // repeated .GridBlockOrder block_orders = 2;
  4409. pub fn get_block_orders(&self) -> &[GridBlockOrder] {
  4410. &self.block_orders
  4411. }
  4412. pub fn clear_block_orders(&mut self) {
  4413. self.block_orders.clear();
  4414. }
  4415. // Param is passed by value, moved
  4416. pub fn set_block_orders(&mut self, v: ::protobuf::RepeatedField<GridBlockOrder>) {
  4417. self.block_orders = v;
  4418. }
  4419. // Mutable pointer to the field.
  4420. pub fn mut_block_orders(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockOrder> {
  4421. &mut self.block_orders
  4422. }
  4423. // Take field
  4424. pub fn take_block_orders(&mut self) -> ::protobuf::RepeatedField<GridBlockOrder> {
  4425. ::std::mem::replace(&mut self.block_orders, ::protobuf::RepeatedField::new())
  4426. }
  4427. }
  4428. impl ::protobuf::Message for QueryGridBlocksPayload {
  4429. fn is_initialized(&self) -> bool {
  4430. for v in &self.block_orders {
  4431. if !v.is_initialized() {
  4432. return false;
  4433. }
  4434. };
  4435. true
  4436. }
  4437. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4438. while !is.eof()? {
  4439. let (field_number, wire_type) = is.read_tag_unpack()?;
  4440. match field_number {
  4441. 1 => {
  4442. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  4443. },
  4444. 2 => {
  4445. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_orders)?;
  4446. },
  4447. _ => {
  4448. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4449. },
  4450. };
  4451. }
  4452. ::std::result::Result::Ok(())
  4453. }
  4454. // Compute sizes of nested messages
  4455. #[allow(unused_variables)]
  4456. fn compute_size(&self) -> u32 {
  4457. let mut my_size = 0;
  4458. if !self.grid_id.is_empty() {
  4459. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  4460. }
  4461. for value in &self.block_orders {
  4462. let len = value.compute_size();
  4463. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4464. };
  4465. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4466. self.cached_size.set(my_size);
  4467. my_size
  4468. }
  4469. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  4470. if !self.grid_id.is_empty() {
  4471. os.write_string(1, &self.grid_id)?;
  4472. }
  4473. for v in &self.block_orders {
  4474. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4475. os.write_raw_varint32(v.get_cached_size())?;
  4476. v.write_to_with_cached_sizes(os)?;
  4477. };
  4478. os.write_unknown_fields(self.get_unknown_fields())?;
  4479. ::std::result::Result::Ok(())
  4480. }
  4481. fn get_cached_size(&self) -> u32 {
  4482. self.cached_size.get()
  4483. }
  4484. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4485. &self.unknown_fields
  4486. }
  4487. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4488. &mut self.unknown_fields
  4489. }
  4490. fn as_any(&self) -> &dyn (::std::any::Any) {
  4491. self as &dyn (::std::any::Any)
  4492. }
  4493. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  4494. self as &mut dyn (::std::any::Any)
  4495. }
  4496. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  4497. self
  4498. }
  4499. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4500. Self::descriptor_static()
  4501. }
  4502. fn new() -> QueryGridBlocksPayload {
  4503. QueryGridBlocksPayload::new()
  4504. }
  4505. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  4506. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  4507. descriptor.get(|| {
  4508. let mut fields = ::std::vec::Vec::new();
  4509. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4510. "grid_id",
  4511. |m: &QueryGridBlocksPayload| { &m.grid_id },
  4512. |m: &mut QueryGridBlocksPayload| { &mut m.grid_id },
  4513. ));
  4514. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockOrder>>(
  4515. "block_orders",
  4516. |m: &QueryGridBlocksPayload| { &m.block_orders },
  4517. |m: &mut QueryGridBlocksPayload| { &mut m.block_orders },
  4518. ));
  4519. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryGridBlocksPayload>(
  4520. "QueryGridBlocksPayload",
  4521. fields,
  4522. file_descriptor_proto()
  4523. )
  4524. })
  4525. }
  4526. fn default_instance() -> &'static QueryGridBlocksPayload {
  4527. static instance: ::protobuf::rt::LazyV2<QueryGridBlocksPayload> = ::protobuf::rt::LazyV2::INIT;
  4528. instance.get(QueryGridBlocksPayload::new)
  4529. }
  4530. }
  4531. impl ::protobuf::Clear for QueryGridBlocksPayload {
  4532. fn clear(&mut self) {
  4533. self.grid_id.clear();
  4534. self.block_orders.clear();
  4535. self.unknown_fields.clear();
  4536. }
  4537. }
  4538. impl ::std::fmt::Debug for QueryGridBlocksPayload {
  4539. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  4540. ::protobuf::text_format::fmt(self, f)
  4541. }
  4542. }
  4543. impl ::protobuf::reflect::ProtobufValue for QueryGridBlocksPayload {
  4544. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  4545. ::protobuf::reflect::ReflectValueRef::Message(self)
  4546. }
  4547. }
  4548. static file_descriptor_proto_data: &'static [u8] = b"\
  4549. \n\ngrid.proto\x1a\nmeta.proto\"z\n\x04Grid\x12\x0e\n\x02id\x18\x01\x20\
  4550. \x01(\tR\x02id\x12.\n\x0cfield_orders\x18\x02\x20\x03(\x0b2\x0b.FieldOrd\
  4551. erR\x0bfieldOrders\x122\n\x0cblock_orders\x18\x03\x20\x03(\x0b2\x0f.Grid\
  4552. BlockOrderR\x0bblockOrders\"\xb8\x01\n\x05Field\x12\x0e\n\x02id\x18\x01\
  4553. \x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\x12\
  4554. \n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12)\n\nfield_type\x18\x04\x20\
  4555. \x01(\x0e2\n.FieldTypeR\tfieldType\x12\x16\n\x06frozen\x18\x05\x20\x01(\
  4556. \x08R\x06frozen\x12\x1e\n\nvisibility\x18\x06\x20\x01(\x08R\nvisibility\
  4557. \x12\x14\n\x05width\x18\x07\x20\x01(\x05R\x05width\"'\n\nFieldOrder\x12\
  4558. \x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldId\"\x90\x01\n\x1aGetEdit\
  4559. FieldContextPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\
  4560. \x12\x1b\n\x08field_id\x18\x02\x20\x01(\tH\0R\x07fieldId\x12)\n\nfield_t\
  4561. ype\x18\x03\x20\x01(\x0e2\n.FieldTypeR\tfieldTypeB\x11\n\x0fone_of_field\
  4562. _id\"q\n\x10EditFieldPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
  4563. \x06gridId\x12\x19\n\x08field_id\x18\x02\x20\x01(\tR\x07fieldId\x12)\n\n\
  4564. field_type\x18\x03\x20\x01(\x0e2\n.FieldTypeR\tfieldType\"|\n\x10EditFie\
  4565. ldContext\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12%\n\ngri\
  4566. d_field\x18\x02\x20\x01(\x0b2\x06.FieldR\tgridField\x12(\n\x10type_optio\
  4567. n_data\x18\x03\x20\x01(\x0cR\x0etypeOptionData\"-\n\rRepeatedField\x12\
  4568. \x1c\n\x05items\x18\x01\x20\x03(\x0b2\x06.FieldR\x05items\"7\n\x12Repeat\
  4569. edFieldOrder\x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b.FieldOrderR\x05it\
  4570. ems\"T\n\x08RowOrder\x12\x15\n\x06row_id\x18\x01\x20\x01(\tR\x05rowId\
  4571. \x12\x19\n\x08block_id\x18\x02\x20\x01(\tR\x07blockId\x12\x16\n\x06heigh\
  4572. t\x18\x03\x20\x01(\x05R\x06height\"\xb8\x01\n\x03Row\x12\x0e\n\x02id\x18\
  4573. \x01\x20\x01(\tR\x02id\x12@\n\x10cell_by_field_id\x18\x02\x20\x03(\x0b2\
  4574. \x17.Row.CellByFieldIdEntryR\rcellByFieldId\x12\x16\n\x06height\x18\x03\
  4575. \x20\x01(\x05R\x06height\x1aG\n\x12CellByFieldIdEntry\x12\x10\n\x03key\
  4576. \x18\x01\x20\x01(\tR\x03key\x12\x1b\n\x05value\x18\x02\x20\x01(\x0b2\x05\
  4577. .CellR\x05value:\x028\x01\")\n\x0bRepeatedRow\x12\x1a\n\x05items\x18\x01\
  4578. \x20\x03(\x0b2\x04.RowR\x05items\"5\n\x11RepeatedGridBlock\x12\x20\n\x05\
  4579. items\x18\x01\x20\x03(\x0b2\n.GridBlockR\x05items\"U\n\x0eGridBlockOrder\
  4580. \x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12(\n\nrow_orders\
  4581. \x18\x02\x20\x03(\x0b2\t.RowOrderR\trowOrders\"E\n\tGridBlock\x12\x0e\n\
  4582. \x02id\x18\x01\x20\x01(\tR\x02id\x12(\n\nrow_orders\x18\x02\x20\x03(\x0b\
  4583. 2\t.RowOrderR\trowOrders\";\n\x04Cell\x12\x19\n\x08field_id\x18\x01\x20\
  4584. \x01(\tR\x07fieldId\x12\x18\n\x07content\x18\x02\x20\x01(\tR\x07content\
  4585. \"\x8f\x01\n\x14CellNotificationData\x12\x17\n\x07grid_id\x18\x01\x20\
  4586. \x01(\tR\x06gridId\x12\x19\n\x08field_id\x18\x02\x20\x01(\tR\x07fieldId\
  4587. \x12\x15\n\x06row_id\x18\x03\x20\x01(\tR\x05rowId\x12\x1a\n\x07content\
  4588. \x18\x04\x20\x01(\tH\0R\x07contentB\x10\n\x0eone_of_content\"+\n\x0cRepe\
  4589. atedCell\x12\x1b\n\x05items\x18\x01\x20\x03(\x0b2\x05.CellR\x05items\"'\
  4590. \n\x11CreateGridPayload\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\
  4591. \x1e\n\x06GridId\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"#\n\
  4592. \x0bGridBlockId\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"f\n\x10\
  4593. CreateRowPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\
  4594. \"\n\x0cstart_row_id\x18\x02\x20\x01(\tH\0R\nstartRowIdB\x15\n\x13one_of\
  4595. _start_row_id\"\xb6\x01\n\x12CreateFieldPayload\x12\x17\n\x07grid_id\x18\
  4596. \x01\x20\x01(\tR\x06gridId\x12\x1c\n\x05field\x18\x02\x20\x01(\x0b2\x06.\
  4597. FieldR\x05field\x12(\n\x10type_option_data\x18\x03\x20\x01(\x0cR\x0etype\
  4598. OptionData\x12&\n\x0estart_field_id\x18\x04\x20\x01(\tH\0R\x0cstartField\
  4599. IdB\x17\n\x15one_of_start_field_id\"d\n\x11QueryFieldPayload\x12\x17\n\
  4600. \x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x126\n\x0cfield_orders\x18\x02\
  4601. \x20\x01(\x0b2\x13.RepeatedFieldOrderR\x0bfieldOrders\"e\n\x16QueryGridB\
  4602. locksPayload\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x122\n\
  4603. \x0cblock_orders\x18\x02\x20\x03(\x0b2\x0f.GridBlockOrderR\x0bblockOrder\
  4604. sb\x06proto3\
  4605. ";
  4606. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  4607. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  4608. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  4609. }
  4610. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  4611. file_descriptor_proto_lazy.get(|| {
  4612. parse_descriptor_proto()
  4613. })
  4614. }