grid.rs 263 KB

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