2 Star 2 Fork 1

cockroachdb/cockroach

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
errors.pb.go 166.68 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678
// Code generated by protoc-gen-gogo.
// source: cockroach/pkg/roachpb/errors.proto
// DO NOT EDIT!
package roachpb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import cockroach_util_hlc "github.com/cockroachdb/cockroach/pkg/util/hlc"
import github_com_cockroachdb_cockroach_pkg_util_uuid "github.com/cockroachdb/cockroach/pkg/util/uuid"
import bytes "bytes"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// TransactionRetryReason specifies what caused a transaction retry.
type TransactionRetryReason int32
const (
// For backwards compatibility.
RETRY_REASON_UNKNOWN TransactionRetryReason = 0
// A concurrent writer finished first, causing restart.
RETRY_WRITE_TOO_OLD TransactionRetryReason = 1
// A transaction containing a delete range command had its timestamp
// moved forward.
RETRY_DELETE_RANGE TransactionRetryReason = 2
// A SERIALIZABLE transaction had its timestamp moved forward.
RETRY_SERIALIZABLE TransactionRetryReason = 3
// A possible replay caused by duplicate begin txn or out-of-order
// txn sequence number.
RETRY_POSSIBLE_REPLAY TransactionRetryReason = 4
)
var TransactionRetryReason_name = map[int32]string{
0: "RETRY_REASON_UNKNOWN",
1: "RETRY_WRITE_TOO_OLD",
2: "RETRY_DELETE_RANGE",
3: "RETRY_SERIALIZABLE",
4: "RETRY_POSSIBLE_REPLAY",
}
var TransactionRetryReason_value = map[string]int32{
"RETRY_REASON_UNKNOWN": 0,
"RETRY_WRITE_TOO_OLD": 1,
"RETRY_DELETE_RANGE": 2,
"RETRY_SERIALIZABLE": 3,
"RETRY_POSSIBLE_REPLAY": 4,
}
func (x TransactionRetryReason) Enum() *TransactionRetryReason {
p := new(TransactionRetryReason)
*p = x
return p
}
func (x TransactionRetryReason) String() string {
return proto.EnumName(TransactionRetryReason_name, int32(x))
}
func (x *TransactionRetryReason) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(TransactionRetryReason_value, data, "TransactionRetryReason")
if err != nil {
return err
}
*x = TransactionRetryReason(value)
return nil
}
func (TransactionRetryReason) EnumDescriptor() ([]byte, []int) { return fileDescriptorErrors, []int{0} }
// TransactionRestart indicates how an error should be handled in a
// transactional context.
type TransactionRestart int32
const (
// NONE (the default) is used for errors which have no effect on the
// transaction state. That is, a transactional operation which receives such
// an error is still PENDING and does not need to restart (at least not as a
// result of the error). Examples are a CPut whose condition wasn't met, or
// a spurious RPC error.
TransactionRestart_NONE TransactionRestart = 0
// BACKOFF is for errors that can retried by restarting the transaction
// after an exponential backoff.
// Note: Deprecated.
TransactionRestart_BACKOFF TransactionRestart = 1
// IMMEDIATE is for errors that can be retried by restarting the
// transaction immediately.
TransactionRestart_IMMEDIATE TransactionRestart = 2
)
var TransactionRestart_name = map[int32]string{
0: "NONE",
1: "BACKOFF",
2: "IMMEDIATE",
}
var TransactionRestart_value = map[string]int32{
"NONE": 0,
"BACKOFF": 1,
"IMMEDIATE": 2,
}
func (x TransactionRestart) Enum() *TransactionRestart {
p := new(TransactionRestart)
*p = x
return p
}
func (x TransactionRestart) String() string {
return proto.EnumName(TransactionRestart_name, int32(x))
}
func (x *TransactionRestart) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(TransactionRestart_value, data, "TransactionRestart")
if err != nil {
return err
}
*x = TransactionRestart(value)
return nil
}
func (TransactionRestart) EnumDescriptor() ([]byte, []int) { return fileDescriptorErrors, []int{1} }
// A NotLeaseHolderError indicates that the current range is not the lease
// holder. If the lease holder is known, its Replica is set in the error.
type NotLeaseHolderError struct {
// The replica the error originated from. Used in the error's string
// representation.
Replica ReplicaDescriptor `protobuf:"bytes,1,opt,name=replica" json:"replica"`
// The lease holder, if known.
LeaseHolder *ReplicaDescriptor `protobuf:"bytes,2,opt,name=lease_holder,json=leaseHolder" json:"lease_holder,omitempty"`
// The current lease, if known. This might be nil even when lease_holder is
// set, as sometimes one can create this error without actually knowing the
// current lease, but having a guess about who the leader is.
Lease *Lease `protobuf:"bytes,4,opt,name=lease" json:"lease,omitempty"`
RangeID RangeID `protobuf:"varint,3,opt,name=range_id,json=rangeId,casttype=RangeID" json:"range_id"`
// If set, the Error() method will return this instead of composing its
// regular spiel. Useful because we reuse this error when rejecting a command
// because the lease under which its application was attempted is different
// than the lease under which it had been proposed.
CustomMsg string `protobuf:"bytes,5,opt,name=custom_msg,json=customMsg" json:"custom_msg"`
}
func (m *NotLeaseHolderError) Reset() { *m = NotLeaseHolderError{} }
func (m *NotLeaseHolderError) String() string { return proto.CompactTextString(m) }
func (*NotLeaseHolderError) ProtoMessage() {}
func (*NotLeaseHolderError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{0} }
// A NodeUnavailableError indicates that the sending gateway can
// not process requests at the time, and that the client should
// retry the request with another peer.
type NodeUnavailableError struct {
}
func (m *NodeUnavailableError) Reset() { *m = NodeUnavailableError{} }
func (m *NodeUnavailableError) String() string { return proto.CompactTextString(m) }
func (*NodeUnavailableError) ProtoMessage() {}
func (*NodeUnavailableError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{1} }
// A RangeNotFoundError indicates that a command was sent to a range
// which is not hosted on this store.
type RangeNotFoundError struct {
RangeID RangeID `protobuf:"varint,1,opt,name=range_id,json=rangeId,casttype=RangeID" json:"range_id"`
}
func (m *RangeNotFoundError) Reset() { *m = RangeNotFoundError{} }
func (m *RangeNotFoundError) String() string { return proto.CompactTextString(m) }
func (*RangeNotFoundError) ProtoMessage() {}
func (*RangeNotFoundError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{2} }
// A RangeKeyMismatchError indicates that a command was sent to a
// range which did not contain the key(s) specified by the command.
type RangeKeyMismatchError struct {
RequestStartKey Key `protobuf:"bytes,1,opt,name=request_start_key,json=requestStartKey,casttype=Key" json:"request_start_key,omitempty"`
RequestEndKey Key `protobuf:"bytes,2,opt,name=request_end_key,json=requestEndKey,casttype=Key" json:"request_end_key,omitempty"`
// mismatched_range is the range that the command was incorrectly sent to.
// It is used to update the sender's range cache without an additional range
// lookup.
MismatchedRange *RangeDescriptor `protobuf:"bytes,3,opt,name=mismatched_range,json=mismatchedRange" json:"mismatched_range,omitempty"`
// suggested_range is a hint to the sender of a command about the range
// they may be looking for. It is only populated when the recipient has
// authoritative knowledge of the range requested by the sender.
SuggestedRange *RangeDescriptor `protobuf:"bytes,4,opt,name=suggested_range,json=suggestedRange" json:"suggested_range,omitempty"`
}
func (m *RangeKeyMismatchError) Reset() { *m = RangeKeyMismatchError{} }
func (m *RangeKeyMismatchError) String() string { return proto.CompactTextString(m) }
func (*RangeKeyMismatchError) ProtoMessage() {}
func (*RangeKeyMismatchError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{3} }
// A ReadWithinUncertaintyIntervalError indicates that a read at timestamp
// encountered a write within the uncertainty interval of the reader.
// The read should be retried at a higher timestamp; the timestamps contained
// within are purely informational, though typically existing_timestamp is a
// lower bound for a new timestamp at which at least the read producing
// this error would succeed on retry.
type ReadWithinUncertaintyIntervalError struct {
ReadTimestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,1,opt,name=read_timestamp,json=readTimestamp" json:"read_timestamp"`
ExistingTimestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,2,opt,name=existing_timestamp,json=existingTimestamp" json:"existing_timestamp"`
}
func (m *ReadWithinUncertaintyIntervalError) Reset() { *m = ReadWithinUncertaintyIntervalError{} }
func (m *ReadWithinUncertaintyIntervalError) String() string { return proto.CompactTextString(m) }
func (*ReadWithinUncertaintyIntervalError) ProtoMessage() {}
func (*ReadWithinUncertaintyIntervalError) Descriptor() ([]byte, []int) {
return fileDescriptorErrors, []int{4}
}
// A TransactionAbortedError indicates that the transaction was aborted by
// another concurrent transaction. Upon seeing this error, the client is
// supposed to reset its Transaction proto and try the transaction again.
//
// In contrast with other errors, the Transaction that the client gets in the
// pErr carrying this ErrorDetail is not supposed to be used by the client,
// besides checking that the transaction's ID is right.
type TransactionAbortedError struct {
}
func (m *TransactionAbortedError) Reset() { *m = TransactionAbortedError{} }
func (m *TransactionAbortedError) String() string { return proto.CompactTextString(m) }
func (*TransactionAbortedError) ProtoMessage() {}
func (*TransactionAbortedError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{5} }
// A TransactionPushError indicates that the transaction could not
// continue because it encountered a write intent from another
// transaction which it was unable to push.
type TransactionPushError struct {
PusheeTxn Transaction `protobuf:"bytes,1,opt,name=pushee_txn,json=pusheeTxn" json:"pushee_txn"`
}
func (m *TransactionPushError) Reset() { *m = TransactionPushError{} }
func (m *TransactionPushError) String() string { return proto.CompactTextString(m) }
func (*TransactionPushError) ProtoMessage() {}
func (*TransactionPushError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{6} }
// A TransactionRetryError indicates that the transaction must be
// retried, usually with an increased transaction timestamp.
type TransactionRetryError struct {
Reason TransactionRetryReason `protobuf:"varint,1,opt,name=reason,enum=cockroach.roachpb.TransactionRetryReason" json:"reason"`
}
func (m *TransactionRetryError) Reset() { *m = TransactionRetryError{} }
func (m *TransactionRetryError) String() string { return proto.CompactTextString(m) }
func (*TransactionRetryError) ProtoMessage() {}
func (*TransactionRetryError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{7} }
// A TransactionReplayError indicates that a BeginTransaction request
// is being replayed. This can happen on network replays in which a
// BeginTransaction request is sent again either from the client or
// is belatedly delivered after an earlier attempt succeeded.
type TransactionReplayError struct {
}
func (m *TransactionReplayError) Reset() { *m = TransactionReplayError{} }
func (m *TransactionReplayError) String() string { return proto.CompactTextString(m) }
func (*TransactionReplayError) ProtoMessage() {}
func (*TransactionReplayError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{8} }
// A TransactionStatusError indicates that the transaction status is
// incompatible with the requested operation. This might mean the
// transaction has already been committed. It might also be the case
// that the request to modify the transaction failed due to a
// regression in transaction epoch or timestamp, both of which may
// only monotonically increase.
type TransactionStatusError struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg"`
}
func (m *TransactionStatusError) Reset() { *m = TransactionStatusError{} }
func (m *TransactionStatusError) String() string { return proto.CompactTextString(m) }
func (*TransactionStatusError) ProtoMessage() {}
func (*TransactionStatusError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{9} }
// A WriteIntentError indicates that one or more write intent
// belonging to another transaction were encountered leading to a
// read/write or write/write conflict. The keys at which the intent
// was encountered are set, as are the txn records for the intents'
// transactions.
type WriteIntentError struct {
Intents []Intent `protobuf:"bytes,1,rep,name=intents" json:"intents"`
}
func (m *WriteIntentError) Reset() { *m = WriteIntentError{} }
func (m *WriteIntentError) String() string { return proto.CompactTextString(m) }
func (*WriteIntentError) ProtoMessage() {}
func (*WriteIntentError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{10} }
// A WriteTooOldError indicates that a write encountered a versioned
// value newer than its timestamp, making it impossible to rewrite
// history. The write is instead done at actual timestamp, which is
// the timestamp of the existing version+1.
type WriteTooOldError struct {
Timestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp"`
ActualTimestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,2,opt,name=actual_timestamp,json=actualTimestamp" json:"actual_timestamp"`
}
func (m *WriteTooOldError) Reset() { *m = WriteTooOldError{} }
func (m *WriteTooOldError) String() string { return proto.CompactTextString(m) }
func (*WriteTooOldError) ProtoMessage() {}
func (*WriteTooOldError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{11} }
// An OpRequiresTxnError indicates that a command required to be
// carried out in a transactional context but was not.
// For example, a Scan which spans ranges requires a transaction.
// The operation should be retried inside of a transaction.
type OpRequiresTxnError struct {
}
func (m *OpRequiresTxnError) Reset() { *m = OpRequiresTxnError{} }
func (m *OpRequiresTxnError) String() string { return proto.CompactTextString(m) }
func (*OpRequiresTxnError) ProtoMessage() {}
func (*OpRequiresTxnError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{12} }
// A ConditionFailedError indicates that the expected value
// of a ConditionalPutRequest was not found, either
// because it was missing or was not equal. The error will
// contain the actual value found.
type ConditionFailedError struct {
ActualValue *Value `protobuf:"bytes,1,opt,name=actual_value,json=actualValue" json:"actual_value,omitempty"`
}
func (m *ConditionFailedError) Reset() { *m = ConditionFailedError{} }
func (m *ConditionFailedError) String() string { return proto.CompactTextString(m) }
func (*ConditionFailedError) ProtoMessage() {}
func (*ConditionFailedError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{13} }
// A LeaseRejectedError indicates that the requested replica could
// not acquire the desired lease because of an existing range lease.
type LeaseRejectedError struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message"`
Requested Lease `protobuf:"bytes,2,opt,name=requested" json:"requested"`
Existing Lease `protobuf:"bytes,3,opt,name=existing" json:"existing"`
}
func (m *LeaseRejectedError) Reset() { *m = LeaseRejectedError{} }
func (m *LeaseRejectedError) String() string { return proto.CompactTextString(m) }
func (*LeaseRejectedError) ProtoMessage() {}
func (*LeaseRejectedError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{14} }
// A SendError indicates that a message could not be delivered to
// the desired recipient(s).
type SendError struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message"`
}
func (m *SendError) Reset() { *m = SendError{} }
func (m *SendError) String() string { return proto.CompactTextString(m) }
func (*SendError) ProtoMessage() {}
func (*SendError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{15} }
// An AmbiguousResultError indicates that a request may have succeeded or
// failed, but the response was not received and the final result is ambiguous.
type AmbiguousResultError struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message"`
// This can be set to give extra information about which error was converted
// into an AmbiguousResultError. Useful for tests.
WrappedErr *Error `protobuf:"bytes,2,opt,name=wrapped_err,json=wrappedErr" json:"wrapped_err,omitempty"`
}
func (m *AmbiguousResultError) Reset() { *m = AmbiguousResultError{} }
func (m *AmbiguousResultError) String() string { return proto.CompactTextString(m) }
func (*AmbiguousResultError) ProtoMessage() {}
func (*AmbiguousResultError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{16} }
// A RaftGroupDeletedError indicates a raft group has been deleted for
// the replica.
type RaftGroupDeletedError struct {
}
func (m *RaftGroupDeletedError) Reset() { *m = RaftGroupDeletedError{} }
func (m *RaftGroupDeletedError) String() string { return proto.CompactTextString(m) }
func (*RaftGroupDeletedError) ProtoMessage() {}
func (*RaftGroupDeletedError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{17} }
// A ReplicaCorruptionError indicates that the replica has experienced
// an error which puts its integrity at risk.
type ReplicaCorruptionError struct {
ErrorMsg string `protobuf:"bytes,1,opt,name=error_msg,json=errorMsg" json:"error_msg"`
// processed indicates that the error has been taken into account and
// necessary steps will be taken. For now, required for testing.
Processed bool `protobuf:"varint,2,opt,name=processed" json:"processed"`
}
func (m *ReplicaCorruptionError) Reset() { *m = ReplicaCorruptionError{} }
func (m *ReplicaCorruptionError) String() string { return proto.CompactTextString(m) }
func (*ReplicaCorruptionError) ProtoMessage() {}
func (*ReplicaCorruptionError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{18} }
// ReplicaTooOldError is sent in response to a raft message when the
// recipient of the raft message believes the sender of the raft
// message to have been removed from the raft group
type ReplicaTooOldError struct {
// replica_id is the ID of the replica that is too old.
ReplicaID ReplicaID `protobuf:"varint,1,opt,name=replica_id,json=replicaId,casttype=ReplicaID" json:"replica_id"`
}
func (m *ReplicaTooOldError) Reset() { *m = ReplicaTooOldError{} }
func (m *ReplicaTooOldError) String() string { return proto.CompactTextString(m) }
func (*ReplicaTooOldError) ProtoMessage() {}
func (*ReplicaTooOldError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{19} }
// A StoreNotFoundError indicates that a command was sent to a store
// which is not hosted on this node.
type StoreNotFoundError struct {
StoreID StoreID `protobuf:"varint,1,opt,name=store_id,json=storeId,casttype=StoreID" json:"store_id"`
}
func (m *StoreNotFoundError) Reset() { *m = StoreNotFoundError{} }
func (m *StoreNotFoundError) String() string { return proto.CompactTextString(m) }
func (*StoreNotFoundError) ProtoMessage() {}
func (*StoreNotFoundError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{20} }
// UnhandledRetryableError tells the recipient that a KV request must be
// retried. In case the request was transactional, the whole transaction needs
// to be retried. This is returned generally as a result of a transaction
// conflict.
//
// This error is generated by pErr.GoError() in case of a retryable error (other
// than HandledRetryableTxnError). For transactional requests, the
// TxnCoordSender handles retryable pErrs and transform them into
// HandledRetryableTxnError. So, for transactional requests, only DistSQL is
// supposed to see this error (as it doesn't go through TxnCoordSender). For
// non-transactional requests, this error will be observed by layers above the
// TxnCoordSender.
type UnhandledRetryableError struct {
// The underlying storage error that is being marshalled.
// pErr.TransactionRestart is exected to be set, and the error detail is one
// of the retryable ones.
PErr Error `protobuf:"bytes,1,opt,name=pErr" json:"pErr"`
}
func (m *UnhandledRetryableError) Reset() { *m = UnhandledRetryableError{} }
func (m *UnhandledRetryableError) String() string { return proto.CompactTextString(m) }
func (*UnhandledRetryableError) ProtoMessage() {}
func (*UnhandledRetryableError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{21} }
// HandledRetryableTxnError is an error detail representing a retryable error
// that has been "handled" by the TxnCoordSender. This error is produced by the
// TxnCoordSender and is only produced for transactional requests.
//
// It contains the final form of the Transaction proto that should be used on
// next attempts. After being produced by the TxnCoordSender, this error is
// handled first by the client.Txn, which uses the Transaction inside to update
// its state, and then passed along to SQL in a pErr (through the
// client.Sender() interface).
type HandledRetryableTxnError struct {
// A user-readable message.
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg"`
// The ID of the transaction being restarted. The client is supposed to check
// this against the ID of its transaction and make sure the retryable error
// is meant for its level and didn't escape from some inner transaction.
TxnID github_com_cockroachdb_cockroach_pkg_util_uuid.UUID `protobuf:"bytes,2,opt,name=txn_id,json=txnId,customtype=github.com/cockroachdb/cockroach/pkg/util/uuid.UUID" json:"txn_id"`
// The Transaction that should be used by next attempts. Depending on the
// original cause of this method, this can either be the same Transaction as
// before, but with an incremented epoch and timestamp, or a completely new
// Transaction.
Transaction Transaction `protobuf:"bytes,3,opt,name=transaction" json:"transaction"`
}
func (m *HandledRetryableTxnError) Reset() { *m = HandledRetryableTxnError{} }
func (m *HandledRetryableTxnError) String() string { return proto.CompactTextString(m) }
func (*HandledRetryableTxnError) ProtoMessage() {}
func (*HandledRetryableTxnError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{22} }
// An UntrackedTxnError indicates that an attempt to transmit a batch request
// for a Transaction failed because the Transaction was not being tracked by
// the TxnCoordSender properly.
type UntrackedTxnError struct {
}
func (m *UntrackedTxnError) Reset() { *m = UntrackedTxnError{} }
func (m *UntrackedTxnError) String() string { return proto.CompactTextString(m) }
func (*UntrackedTxnError) ProtoMessage() {}
func (*UntrackedTxnError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{23} }
// A TxnPrevAttemptError indicates a batch response for a request sent through
// client Txn was found that was meant for a previous incarnation of the
// transaction. This can happen in cases where concurrent requests are made
// for a Transaction and one of the requests results in a Txn abort.
type TxnPrevAttemptError struct {
}
func (m *TxnPrevAttemptError) Reset() { *m = TxnPrevAttemptError{} }
func (m *TxnPrevAttemptError) String() string { return proto.CompactTextString(m) }
func (*TxnPrevAttemptError) ProtoMessage() {}
func (*TxnPrevAttemptError) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{24} }
// ErrorDetail is a union type containing all available errors.
type ErrorDetail struct {
NotLeaseHolder *NotLeaseHolderError `protobuf:"bytes,1,opt,name=not_lease_holder,json=notLeaseHolder" json:"not_lease_holder,omitempty"`
RangeNotFound *RangeNotFoundError `protobuf:"bytes,2,opt,name=range_not_found,json=rangeNotFound" json:"range_not_found,omitempty"`
RangeKeyMismatch *RangeKeyMismatchError `protobuf:"bytes,3,opt,name=range_key_mismatch,json=rangeKeyMismatch" json:"range_key_mismatch,omitempty"`
ReadWithinUncertaintyInterval *ReadWithinUncertaintyIntervalError `protobuf:"bytes,4,opt,name=read_within_uncertainty_interval,json=readWithinUncertaintyInterval" json:"read_within_uncertainty_interval,omitempty"`
TransactionAborted *TransactionAbortedError `protobuf:"bytes,5,opt,name=transaction_aborted,json=transactionAborted" json:"transaction_aborted,omitempty"`
TransactionPush *TransactionPushError `protobuf:"bytes,6,opt,name=transaction_push,json=transactionPush" json:"transaction_push,omitempty"`
TransactionRetry *TransactionRetryError `protobuf:"bytes,7,opt,name=transaction_retry,json=transactionRetry" json:"transaction_retry,omitempty"`
TransactionReplay *TransactionReplayError `protobuf:"bytes,22,opt,name=transaction_replay,json=transactionReplay" json:"transaction_replay,omitempty"`
TransactionStatus *TransactionStatusError `protobuf:"bytes,8,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
WriteIntent *WriteIntentError `protobuf:"bytes,9,opt,name=write_intent,json=writeIntent" json:"write_intent,omitempty"`
WriteTooOld *WriteTooOldError `protobuf:"bytes,10,opt,name=write_too_old,json=writeTooOld" json:"write_too_old,omitempty"`
OpRequiresTxn *OpRequiresTxnError `protobuf:"bytes,11,opt,name=op_requires_txn,json=opRequiresTxn" json:"op_requires_txn,omitempty"`
ConditionFailed *ConditionFailedError `protobuf:"bytes,12,opt,name=condition_failed,json=conditionFailed" json:"condition_failed,omitempty"`
LeaseRejected *LeaseRejectedError `protobuf:"bytes,13,opt,name=lease_rejected,json=leaseRejected" json:"lease_rejected,omitempty"`
NodeUnavailable *NodeUnavailableError `protobuf:"bytes,14,opt,name=node_unavailable,json=nodeUnavailable" json:"node_unavailable,omitempty"`
Send *SendError `protobuf:"bytes,15,opt,name=send" json:"send,omitempty"`
// TODO(kaneda): Following three are added to preserve the type when
// converting Go errors from/to proto Errors. Revisit this design.
RaftGroupDeleted *RaftGroupDeletedError `protobuf:"bytes,16,opt,name=raft_group_deleted,json=raftGroupDeleted" json:"raft_group_deleted,omitempty"`
ReplicaCorruption *ReplicaCorruptionError `protobuf:"bytes,17,opt,name=replica_corruption,json=replicaCorruption" json:"replica_corruption,omitempty"`
ReplicaTooOld *ReplicaTooOldError `protobuf:"bytes,18,opt,name=replica_too_old,json=replicaTooOld" json:"replica_too_old,omitempty"`
AmbiguousResult *AmbiguousResultError `protobuf:"bytes,26,opt,name=ambiguous_result,json=ambiguousResult" json:"ambiguous_result,omitempty"`
StoreNotFound *StoreNotFoundError `protobuf:"bytes,27,opt,name=store_not_found,json=storeNotFound" json:"store_not_found,omitempty"`
// The following three are ErrorDetails (and proto messages) because they
// needs to be communicated from the TxnCoordSender and Txn to the upper
// layers through the Sender interface.
HandledRetryableTxnError *HandledRetryableTxnError `protobuf:"bytes,28,opt,name=handled_retryable_txn_error,json=handledRetryableTxnError" json:"handled_retryable_txn_error,omitempty"`
UntrackedTxnError *UntrackedTxnError `protobuf:"bytes,29,opt,name=untracked_txn_error,json=untrackedTxnError" json:"untracked_txn_error,omitempty"`
TxnAbortedAsyncErr *TxnPrevAttemptError `protobuf:"bytes,30,opt,name=txn_aborted_async_err,json=txnAbortedAsyncErr" json:"txn_aborted_async_err,omitempty"`
}
func (m *ErrorDetail) Reset() { *m = ErrorDetail{} }
func (m *ErrorDetail) String() string { return proto.CompactTextString(m) }
func (*ErrorDetail) ProtoMessage() {}
func (*ErrorDetail) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{25} }
// ErrPosition describes the position of an error in a Batch. A simple nullable
// primitive field would break compatibility with proto3, where primitive fields
// are no longer allowed to be nullable.
type ErrPosition struct {
Index int32 `protobuf:"varint,1,opt,name=index" json:"index"`
}
func (m *ErrPosition) Reset() { *m = ErrPosition{} }
func (m *ErrPosition) String() string { return proto.CompactTextString(m) }
func (*ErrPosition) ProtoMessage() {}
func (*ErrPosition) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{26} }
// Error is a generic representation including a string message
// and information about retryability.
type Error struct {
// message is a human-readable error message.
Message string `protobuf:"bytes,1,opt,name=message" json:"message"`
// If transaction_restart is not ABORT, the error condition may be handled by
// restarting the transaction.
TransactionRestart TransactionRestart `protobuf:"varint,3,opt,name=transaction_restart,json=transactionRestart,enum=cockroach.roachpb.TransactionRestart" json:"transaction_restart"`
// An optional updated transaction. This is to be used by the client in case
// of retryable errors.
//
// Not to be accessed directly - use Error.GetTxn().
UnexposedTxn *Transaction `protobuf:"bytes,4,opt,name=unexposed_txn,json=unexposedTxn" json:"unexposed_txn,omitempty"`
// Node at which the error was generated (zero if does not apply).
OriginNode NodeID `protobuf:"varint,5,opt,name=origin_node,json=originNode,casttype=NodeID" json:"origin_node"`
// If an ErrorDetail is present, it may contain additional structured data
// about the error.
Detail *ErrorDetail `protobuf:"bytes,6,opt,name=detail" json:"detail,omitempty"`
// The index, if given, contains the index of the request (in the batch)
// whose execution caused the error.
Index *ErrPosition `protobuf:"bytes,7,opt,name=index" json:"index,omitempty"`
// now is the current time at the node sending the response,
// which can be used by the receiver to update its local HLC.
Now cockroach_util_hlc.Timestamp `protobuf:"bytes,8,opt,name=now" json:"now"`
}
func (m *Error) Reset() { *m = Error{} }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorErrors, []int{27} }
func init() {
proto.RegisterType((*NotLeaseHolderError)(nil), "cockroach.roachpb.NotLeaseHolderError")
proto.RegisterType((*NodeUnavailableError)(nil), "cockroach.roachpb.NodeUnavailableError")
proto.RegisterType((*RangeNotFoundError)(nil), "cockroach.roachpb.RangeNotFoundError")
proto.RegisterType((*RangeKeyMismatchError)(nil), "cockroach.roachpb.RangeKeyMismatchError")
proto.RegisterType((*ReadWithinUncertaintyIntervalError)(nil), "cockroach.roachpb.ReadWithinUncertaintyIntervalError")
proto.RegisterType((*TransactionAbortedError)(nil), "cockroach.roachpb.TransactionAbortedError")
proto.RegisterType((*TransactionPushError)(nil), "cockroach.roachpb.TransactionPushError")
proto.RegisterType((*TransactionRetryError)(nil), "cockroach.roachpb.TransactionRetryError")
proto.RegisterType((*TransactionReplayError)(nil), "cockroach.roachpb.TransactionReplayError")
proto.RegisterType((*TransactionStatusError)(nil), "cockroach.roachpb.TransactionStatusError")
proto.RegisterType((*WriteIntentError)(nil), "cockroach.roachpb.WriteIntentError")
proto.RegisterType((*WriteTooOldError)(nil), "cockroach.roachpb.WriteTooOldError")
proto.RegisterType((*OpRequiresTxnError)(nil), "cockroach.roachpb.OpRequiresTxnError")
proto.RegisterType((*ConditionFailedError)(nil), "cockroach.roachpb.ConditionFailedError")
proto.RegisterType((*LeaseRejectedError)(nil), "cockroach.roachpb.LeaseRejectedError")
proto.RegisterType((*SendError)(nil), "cockroach.roachpb.SendError")
proto.RegisterType((*AmbiguousResultError)(nil), "cockroach.roachpb.AmbiguousResultError")
proto.RegisterType((*RaftGroupDeletedError)(nil), "cockroach.roachpb.RaftGroupDeletedError")
proto.RegisterType((*ReplicaCorruptionError)(nil), "cockroach.roachpb.ReplicaCorruptionError")
proto.RegisterType((*ReplicaTooOldError)(nil), "cockroach.roachpb.ReplicaTooOldError")
proto.RegisterType((*StoreNotFoundError)(nil), "cockroach.roachpb.StoreNotFoundError")
proto.RegisterType((*UnhandledRetryableError)(nil), "cockroach.roachpb.UnhandledRetryableError")
proto.RegisterType((*HandledRetryableTxnError)(nil), "cockroach.roachpb.HandledRetryableTxnError")
proto.RegisterType((*UntrackedTxnError)(nil), "cockroach.roachpb.UntrackedTxnError")
proto.RegisterType((*TxnPrevAttemptError)(nil), "cockroach.roachpb.TxnPrevAttemptError")
proto.RegisterType((*ErrorDetail)(nil), "cockroach.roachpb.ErrorDetail")
proto.RegisterType((*ErrPosition)(nil), "cockroach.roachpb.ErrPosition")
proto.RegisterType((*Error)(nil), "cockroach.roachpb.Error")
proto.RegisterEnum("cockroach.roachpb.TransactionRetryReason", TransactionRetryReason_name, TransactionRetryReason_value)
proto.RegisterEnum("cockroach.roachpb.TransactionRestart", TransactionRestart_name, TransactionRestart_value)
}
func (this *NotLeaseHolderError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*NotLeaseHolderError)
if !ok {
that2, ok := that.(NotLeaseHolderError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Replica.Equal(&that1.Replica) {
return false
}
if !this.LeaseHolder.Equal(that1.LeaseHolder) {
return false
}
if !this.Lease.Equal(that1.Lease) {
return false
}
if this.RangeID != that1.RangeID {
return false
}
if this.CustomMsg != that1.CustomMsg {
return false
}
return true
}
func (this *NodeUnavailableError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*NodeUnavailableError)
if !ok {
that2, ok := that.(NodeUnavailableError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *RangeNotFoundError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*RangeNotFoundError)
if !ok {
that2, ok := that.(RangeNotFoundError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.RangeID != that1.RangeID {
return false
}
return true
}
func (this *RangeKeyMismatchError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*RangeKeyMismatchError)
if !ok {
that2, ok := that.(RangeKeyMismatchError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !bytes.Equal(this.RequestStartKey, that1.RequestStartKey) {
return false
}
if !bytes.Equal(this.RequestEndKey, that1.RequestEndKey) {
return false
}
if !this.MismatchedRange.Equal(that1.MismatchedRange) {
return false
}
if !this.SuggestedRange.Equal(that1.SuggestedRange) {
return false
}
return true
}
func (this *ReadWithinUncertaintyIntervalError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ReadWithinUncertaintyIntervalError)
if !ok {
that2, ok := that.(ReadWithinUncertaintyIntervalError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.ReadTimestamp.Equal(&that1.ReadTimestamp) {
return false
}
if !this.ExistingTimestamp.Equal(&that1.ExistingTimestamp) {
return false
}
return true
}
func (this *TransactionAbortedError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TransactionAbortedError)
if !ok {
that2, ok := that.(TransactionAbortedError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *TransactionPushError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TransactionPushError)
if !ok {
that2, ok := that.(TransactionPushError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.PusheeTxn.Equal(&that1.PusheeTxn) {
return false
}
return true
}
func (this *TransactionRetryError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TransactionRetryError)
if !ok {
that2, ok := that.(TransactionRetryError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Reason != that1.Reason {
return false
}
return true
}
func (this *TransactionReplayError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TransactionReplayError)
if !ok {
that2, ok := that.(TransactionReplayError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *TransactionStatusError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TransactionStatusError)
if !ok {
that2, ok := that.(TransactionStatusError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Msg != that1.Msg {
return false
}
return true
}
func (this *WriteIntentError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*WriteIntentError)
if !ok {
that2, ok := that.(WriteIntentError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Intents) != len(that1.Intents) {
return false
}
for i := range this.Intents {
if !this.Intents[i].Equal(&that1.Intents[i]) {
return false
}
}
return true
}
func (this *WriteTooOldError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*WriteTooOldError)
if !ok {
that2, ok := that.(WriteTooOldError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Timestamp.Equal(&that1.Timestamp) {
return false
}
if !this.ActualTimestamp.Equal(&that1.ActualTimestamp) {
return false
}
return true
}
func (this *OpRequiresTxnError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*OpRequiresTxnError)
if !ok {
that2, ok := that.(OpRequiresTxnError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *ConditionFailedError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ConditionFailedError)
if !ok {
that2, ok := that.(ConditionFailedError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.ActualValue.Equal(that1.ActualValue) {
return false
}
return true
}
func (this *LeaseRejectedError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*LeaseRejectedError)
if !ok {
that2, ok := that.(LeaseRejectedError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Message != that1.Message {
return false
}
if !this.Requested.Equal(&that1.Requested) {
return false
}
if !this.Existing.Equal(&that1.Existing) {
return false
}
return true
}
func (this *SendError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*SendError)
if !ok {
that2, ok := that.(SendError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Message != that1.Message {
return false
}
return true
}
func (this *AmbiguousResultError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*AmbiguousResultError)
if !ok {
that2, ok := that.(AmbiguousResultError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Message != that1.Message {
return false
}
if !this.WrappedErr.Equal(that1.WrappedErr) {
return false
}
return true
}
func (this *RaftGroupDeletedError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*RaftGroupDeletedError)
if !ok {
that2, ok := that.(RaftGroupDeletedError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *ReplicaCorruptionError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ReplicaCorruptionError)
if !ok {
that2, ok := that.(ReplicaCorruptionError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.ErrorMsg != that1.ErrorMsg {
return false
}
if this.Processed != that1.Processed {
return false
}
return true
}
func (this *ReplicaTooOldError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ReplicaTooOldError)
if !ok {
that2, ok := that.(ReplicaTooOldError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.ReplicaID != that1.ReplicaID {
return false
}
return true
}
func (this *StoreNotFoundError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*StoreNotFoundError)
if !ok {
that2, ok := that.(StoreNotFoundError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.StoreID != that1.StoreID {
return false
}
return true
}
func (this *HandledRetryableTxnError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*HandledRetryableTxnError)
if !ok {
that2, ok := that.(HandledRetryableTxnError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Msg != that1.Msg {
return false
}
if !this.TxnID.Equal(that1.TxnID) {
return false
}
if !this.Transaction.Equal(&that1.Transaction) {
return false
}
return true
}
func (this *UntrackedTxnError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*UntrackedTxnError)
if !ok {
that2, ok := that.(UntrackedTxnError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *TxnPrevAttemptError) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*TxnPrevAttemptError)
if !ok {
that2, ok := that.(TxnPrevAttemptError)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
return true
}
func (this *ErrorDetail) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ErrorDetail)
if !ok {
that2, ok := that.(ErrorDetail)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.NotLeaseHolder.Equal(that1.NotLeaseHolder) {
return false
}
if !this.RangeNotFound.Equal(that1.RangeNotFound) {
return false
}
if !this.RangeKeyMismatch.Equal(that1.RangeKeyMismatch) {
return false
}
if !this.ReadWithinUncertaintyInterval.Equal(that1.ReadWithinUncertaintyInterval) {
return false
}
if !this.TransactionAborted.Equal(that1.TransactionAborted) {
return false
}
if !this.TransactionPush.Equal(that1.TransactionPush) {
return false
}
if !this.TransactionRetry.Equal(that1.TransactionRetry) {
return false
}
if !this.TransactionReplay.Equal(that1.TransactionReplay) {
return false
}
if !this.TransactionStatus.Equal(that1.TransactionStatus) {
return false
}
if !this.WriteIntent.Equal(that1.WriteIntent) {
return false
}
if !this.WriteTooOld.Equal(that1.WriteTooOld) {
return false
}
if !this.OpRequiresTxn.Equal(that1.OpRequiresTxn) {
return false
}
if !this.ConditionFailed.Equal(that1.ConditionFailed) {
return false
}
if !this.LeaseRejected.Equal(that1.LeaseRejected) {
return false
}
if !this.NodeUnavailable.Equal(that1.NodeUnavailable) {
return false
}
if !this.Send.Equal(that1.Send) {
return false
}
if !this.RaftGroupDeleted.Equal(that1.RaftGroupDeleted) {
return false
}
if !this.ReplicaCorruption.Equal(that1.ReplicaCorruption) {
return false
}
if !this.ReplicaTooOld.Equal(that1.ReplicaTooOld) {
return false
}
if !this.AmbiguousResult.Equal(that1.AmbiguousResult) {
return false
}
if !this.StoreNotFound.Equal(that1.StoreNotFound) {
return false
}
if !this.HandledRetryableTxnError.Equal(that1.HandledRetryableTxnError) {
return false
}
if !this.UntrackedTxnError.Equal(that1.UntrackedTxnError) {
return false
}
if !this.TxnAbortedAsyncErr.Equal(that1.TxnAbortedAsyncErr) {
return false
}
return true
}
func (this *ErrPosition) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ErrPosition)
if !ok {
that2, ok := that.(ErrPosition)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Index != that1.Index {
return false
}
return true
}
func (this *Error) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Error)
if !ok {
that2, ok := that.(Error)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Message != that1.Message {
return false
}
if this.TransactionRestart != that1.TransactionRestart {
return false
}
if !this.UnexposedTxn.Equal(that1.UnexposedTxn) {
return false
}
if this.OriginNode != that1.OriginNode {
return false
}
if !this.Detail.Equal(that1.Detail) {
return false
}
if !this.Index.Equal(that1.Index) {
return false
}
if !this.Now.Equal(&that1.Now) {
return false
}
return true
}
func (m *NotLeaseHolderError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *NotLeaseHolderError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Replica.Size()))
n1, err := m.Replica.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
if m.LeaseHolder != nil {
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.LeaseHolder.Size()))
n2, err := m.LeaseHolder.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
dAtA[i] = 0x18
i++
i = encodeVarintErrors(dAtA, i, uint64(m.RangeID))
if m.Lease != nil {
dAtA[i] = 0x22
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Lease.Size()))
n3, err := m.Lease.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
dAtA[i] = 0x2a
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.CustomMsg)))
i += copy(dAtA[i:], m.CustomMsg)
return i, nil
}
func (m *NodeUnavailableError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *NodeUnavailableError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *RangeNotFoundError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *RangeNotFoundError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0x8
i++
i = encodeVarintErrors(dAtA, i, uint64(m.RangeID))
return i, nil
}
func (m *RangeKeyMismatchError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *RangeKeyMismatchError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.RequestStartKey != nil {
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.RequestStartKey)))
i += copy(dAtA[i:], m.RequestStartKey)
}
if m.RequestEndKey != nil {
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.RequestEndKey)))
i += copy(dAtA[i:], m.RequestEndKey)
}
if m.MismatchedRange != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.MismatchedRange.Size()))
n4, err := m.MismatchedRange.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
if m.SuggestedRange != nil {
dAtA[i] = 0x22
i++
i = encodeVarintErrors(dAtA, i, uint64(m.SuggestedRange.Size()))
n5, err := m.SuggestedRange.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
return i, nil
}
func (m *ReadWithinUncertaintyIntervalError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ReadWithinUncertaintyIntervalError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ReadTimestamp.Size()))
n6, err := m.ReadTimestamp.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ExistingTimestamp.Size()))
n7, err := m.ExistingTimestamp.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
return i, nil
}
func (m *TransactionAbortedError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TransactionAbortedError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *TransactionPushError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TransactionPushError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.PusheeTxn.Size()))
n8, err := m.PusheeTxn.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
return i, nil
}
func (m *TransactionRetryError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TransactionRetryError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0x8
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Reason))
return i, nil
}
func (m *TransactionReplayError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TransactionReplayError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *TransactionStatusError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TransactionStatusError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Msg)))
i += copy(dAtA[i:], m.Msg)
return i, nil
}
func (m *WriteIntentError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *WriteIntentError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Intents) > 0 {
for _, msg := range m.Intents {
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
return i, nil
}
func (m *WriteTooOldError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *WriteTooOldError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Timestamp.Size()))
n9, err := m.Timestamp.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n9
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ActualTimestamp.Size()))
n10, err := m.ActualTimestamp.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
return i, nil
}
func (m *OpRequiresTxnError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *OpRequiresTxnError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *ConditionFailedError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ConditionFailedError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.ActualValue != nil {
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ActualValue.Size()))
n11, err := m.ActualValue.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n11
}
return i, nil
}
func (m *LeaseRejectedError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *LeaseRejectedError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Message)))
i += copy(dAtA[i:], m.Message)
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Requested.Size()))
n12, err := m.Requested.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n12
dAtA[i] = 0x1a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Existing.Size()))
n13, err := m.Existing.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n13
return i, nil
}
func (m *SendError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SendError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Message)))
i += copy(dAtA[i:], m.Message)
return i, nil
}
func (m *AmbiguousResultError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *AmbiguousResultError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Message)))
i += copy(dAtA[i:], m.Message)
if m.WrappedErr != nil {
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.WrappedErr.Size()))
n14, err := m.WrappedErr.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n14
}
return i, nil
}
func (m *RaftGroupDeletedError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *RaftGroupDeletedError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *ReplicaCorruptionError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ReplicaCorruptionError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.ErrorMsg)))
i += copy(dAtA[i:], m.ErrorMsg)
dAtA[i] = 0x10
i++
if m.Processed {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
return i, nil
}
func (m *ReplicaTooOldError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ReplicaTooOldError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0x8
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ReplicaID))
return i, nil
}
func (m *StoreNotFoundError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StoreNotFoundError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0x8
i++
i = encodeVarintErrors(dAtA, i, uint64(m.StoreID))
return i, nil
}
func (m *UnhandledRetryableError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *UnhandledRetryableError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.PErr.Size()))
n15, err := m.PErr.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n15
return i, nil
}
func (m *HandledRetryableTxnError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *HandledRetryableTxnError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Msg)))
i += copy(dAtA[i:], m.Msg)
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TxnID.Size()))
n16, err := m.TxnID.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n16
dAtA[i] = 0x1a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Transaction.Size()))
n17, err := m.Transaction.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n17
return i, nil
}
func (m *UntrackedTxnError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *UntrackedTxnError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *TxnPrevAttemptError) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TxnPrevAttemptError) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
return i, nil
}
func (m *ErrorDetail) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ErrorDetail) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.NotLeaseHolder != nil {
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(m.NotLeaseHolder.Size()))
n18, err := m.NotLeaseHolder.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n18
}
if m.RangeNotFound != nil {
dAtA[i] = 0x12
i++
i = encodeVarintErrors(dAtA, i, uint64(m.RangeNotFound.Size()))
n19, err := m.RangeNotFound.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n19
}
if m.RangeKeyMismatch != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.RangeKeyMismatch.Size()))
n20, err := m.RangeKeyMismatch.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n20
}
if m.ReadWithinUncertaintyInterval != nil {
dAtA[i] = 0x22
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ReadWithinUncertaintyInterval.Size()))
n21, err := m.ReadWithinUncertaintyInterval.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n21
}
if m.TransactionAborted != nil {
dAtA[i] = 0x2a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionAborted.Size()))
n22, err := m.TransactionAborted.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n22
}
if m.TransactionPush != nil {
dAtA[i] = 0x32
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionPush.Size()))
n23, err := m.TransactionPush.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n23
}
if m.TransactionRetry != nil {
dAtA[i] = 0x3a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionRetry.Size()))
n24, err := m.TransactionRetry.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n24
}
if m.TransactionStatus != nil {
dAtA[i] = 0x42
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionStatus.Size()))
n25, err := m.TransactionStatus.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n25
}
if m.WriteIntent != nil {
dAtA[i] = 0x4a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.WriteIntent.Size()))
n26, err := m.WriteIntent.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n26
}
if m.WriteTooOld != nil {
dAtA[i] = 0x52
i++
i = encodeVarintErrors(dAtA, i, uint64(m.WriteTooOld.Size()))
n27, err := m.WriteTooOld.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n27
}
if m.OpRequiresTxn != nil {
dAtA[i] = 0x5a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.OpRequiresTxn.Size()))
n28, err := m.OpRequiresTxn.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n28
}
if m.ConditionFailed != nil {
dAtA[i] = 0x62
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ConditionFailed.Size()))
n29, err := m.ConditionFailed.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n29
}
if m.LeaseRejected != nil {
dAtA[i] = 0x6a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.LeaseRejected.Size()))
n30, err := m.LeaseRejected.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n30
}
if m.NodeUnavailable != nil {
dAtA[i] = 0x72
i++
i = encodeVarintErrors(dAtA, i, uint64(m.NodeUnavailable.Size()))
n31, err := m.NodeUnavailable.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n31
}
if m.Send != nil {
dAtA[i] = 0x7a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Send.Size()))
n32, err := m.Send.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n32
}
if m.RaftGroupDeleted != nil {
dAtA[i] = 0x82
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.RaftGroupDeleted.Size()))
n33, err := m.RaftGroupDeleted.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n33
}
if m.ReplicaCorruption != nil {
dAtA[i] = 0x8a
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ReplicaCorruption.Size()))
n34, err := m.ReplicaCorruption.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n34
}
if m.ReplicaTooOld != nil {
dAtA[i] = 0x92
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.ReplicaTooOld.Size()))
n35, err := m.ReplicaTooOld.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n35
}
if m.TransactionReplay != nil {
dAtA[i] = 0xb2
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionReplay.Size()))
n36, err := m.TransactionReplay.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n36
}
if m.AmbiguousResult != nil {
dAtA[i] = 0xd2
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.AmbiguousResult.Size()))
n37, err := m.AmbiguousResult.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n37
}
if m.StoreNotFound != nil {
dAtA[i] = 0xda
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.StoreNotFound.Size()))
n38, err := m.StoreNotFound.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n38
}
if m.HandledRetryableTxnError != nil {
dAtA[i] = 0xe2
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.HandledRetryableTxnError.Size()))
n39, err := m.HandledRetryableTxnError.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n39
}
if m.UntrackedTxnError != nil {
dAtA[i] = 0xea
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.UntrackedTxnError.Size()))
n40, err := m.UntrackedTxnError.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n40
}
if m.TxnAbortedAsyncErr != nil {
dAtA[i] = 0xf2
i++
dAtA[i] = 0x1
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TxnAbortedAsyncErr.Size()))
n41, err := m.TxnAbortedAsyncErr.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n41
}
return i, nil
}
func (m *ErrPosition) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ErrPosition) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0x8
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Index))
return i, nil
}
func (m *Error) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Error) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintErrors(dAtA, i, uint64(len(m.Message)))
i += copy(dAtA[i:], m.Message)
dAtA[i] = 0x18
i++
i = encodeVarintErrors(dAtA, i, uint64(m.TransactionRestart))
if m.UnexposedTxn != nil {
dAtA[i] = 0x22
i++
i = encodeVarintErrors(dAtA, i, uint64(m.UnexposedTxn.Size()))
n42, err := m.UnexposedTxn.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n42
}
dAtA[i] = 0x28
i++
i = encodeVarintErrors(dAtA, i, uint64(m.OriginNode))
if m.Detail != nil {
dAtA[i] = 0x32
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Detail.Size()))
n43, err := m.Detail.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n43
}
if m.Index != nil {
dAtA[i] = 0x3a
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Index.Size()))
n44, err := m.Index.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n44
}
dAtA[i] = 0x42
i++
i = encodeVarintErrors(dAtA, i, uint64(m.Now.Size()))
n45, err := m.Now.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n45
return i, nil
}
func encodeFixed64Errors(dAtA []byte, offset int, v uint64) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
dAtA[offset+4] = uint8(v >> 32)
dAtA[offset+5] = uint8(v >> 40)
dAtA[offset+6] = uint8(v >> 48)
dAtA[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Errors(dAtA []byte, offset int, v uint32) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintErrors(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *NotLeaseHolderError) Size() (n int) {
var l int
_ = l
l = m.Replica.Size()
n += 1 + l + sovErrors(uint64(l))
if m.LeaseHolder != nil {
l = m.LeaseHolder.Size()
n += 1 + l + sovErrors(uint64(l))
}
n += 1 + sovErrors(uint64(m.RangeID))
if m.Lease != nil {
l = m.Lease.Size()
n += 1 + l + sovErrors(uint64(l))
}
l = len(m.CustomMsg)
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *NodeUnavailableError) Size() (n int) {
var l int
_ = l
return n
}
func (m *RangeNotFoundError) Size() (n int) {
var l int
_ = l
n += 1 + sovErrors(uint64(m.RangeID))
return n
}
func (m *RangeKeyMismatchError) Size() (n int) {
var l int
_ = l
if m.RequestStartKey != nil {
l = len(m.RequestStartKey)
n += 1 + l + sovErrors(uint64(l))
}
if m.RequestEndKey != nil {
l = len(m.RequestEndKey)
n += 1 + l + sovErrors(uint64(l))
}
if m.MismatchedRange != nil {
l = m.MismatchedRange.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.SuggestedRange != nil {
l = m.SuggestedRange.Size()
n += 1 + l + sovErrors(uint64(l))
}
return n
}
func (m *ReadWithinUncertaintyIntervalError) Size() (n int) {
var l int
_ = l
l = m.ReadTimestamp.Size()
n += 1 + l + sovErrors(uint64(l))
l = m.ExistingTimestamp.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *TransactionAbortedError) Size() (n int) {
var l int
_ = l
return n
}
func (m *TransactionPushError) Size() (n int) {
var l int
_ = l
l = m.PusheeTxn.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *TransactionRetryError) Size() (n int) {
var l int
_ = l
n += 1 + sovErrors(uint64(m.Reason))
return n
}
func (m *TransactionReplayError) Size() (n int) {
var l int
_ = l
return n
}
func (m *TransactionStatusError) Size() (n int) {
var l int
_ = l
l = len(m.Msg)
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *WriteIntentError) Size() (n int) {
var l int
_ = l
if len(m.Intents) > 0 {
for _, e := range m.Intents {
l = e.Size()
n += 1 + l + sovErrors(uint64(l))
}
}
return n
}
func (m *WriteTooOldError) Size() (n int) {
var l int
_ = l
l = m.Timestamp.Size()
n += 1 + l + sovErrors(uint64(l))
l = m.ActualTimestamp.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *OpRequiresTxnError) Size() (n int) {
var l int
_ = l
return n
}
func (m *ConditionFailedError) Size() (n int) {
var l int
_ = l
if m.ActualValue != nil {
l = m.ActualValue.Size()
n += 1 + l + sovErrors(uint64(l))
}
return n
}
func (m *LeaseRejectedError) Size() (n int) {
var l int
_ = l
l = len(m.Message)
n += 1 + l + sovErrors(uint64(l))
l = m.Requested.Size()
n += 1 + l + sovErrors(uint64(l))
l = m.Existing.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *SendError) Size() (n int) {
var l int
_ = l
l = len(m.Message)
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *AmbiguousResultError) Size() (n int) {
var l int
_ = l
l = len(m.Message)
n += 1 + l + sovErrors(uint64(l))
if m.WrappedErr != nil {
l = m.WrappedErr.Size()
n += 1 + l + sovErrors(uint64(l))
}
return n
}
func (m *RaftGroupDeletedError) Size() (n int) {
var l int
_ = l
return n
}
func (m *ReplicaCorruptionError) Size() (n int) {
var l int
_ = l
l = len(m.ErrorMsg)
n += 1 + l + sovErrors(uint64(l))
n += 2
return n
}
func (m *ReplicaTooOldError) Size() (n int) {
var l int
_ = l
n += 1 + sovErrors(uint64(m.ReplicaID))
return n
}
func (m *StoreNotFoundError) Size() (n int) {
var l int
_ = l
n += 1 + sovErrors(uint64(m.StoreID))
return n
}
func (m *UnhandledRetryableError) Size() (n int) {
var l int
_ = l
l = m.PErr.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *HandledRetryableTxnError) Size() (n int) {
var l int
_ = l
l = len(m.Msg)
n += 1 + l + sovErrors(uint64(l))
l = m.TxnID.Size()
n += 1 + l + sovErrors(uint64(l))
l = m.Transaction.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func (m *UntrackedTxnError) Size() (n int) {
var l int
_ = l
return n
}
func (m *TxnPrevAttemptError) Size() (n int) {
var l int
_ = l
return n
}
func (m *ErrorDetail) Size() (n int) {
var l int
_ = l
if m.NotLeaseHolder != nil {
l = m.NotLeaseHolder.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.RangeNotFound != nil {
l = m.RangeNotFound.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.RangeKeyMismatch != nil {
l = m.RangeKeyMismatch.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.ReadWithinUncertaintyInterval != nil {
l = m.ReadWithinUncertaintyInterval.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.TransactionAborted != nil {
l = m.TransactionAborted.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.TransactionPush != nil {
l = m.TransactionPush.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.TransactionRetry != nil {
l = m.TransactionRetry.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.TransactionStatus != nil {
l = m.TransactionStatus.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.WriteIntent != nil {
l = m.WriteIntent.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.WriteTooOld != nil {
l = m.WriteTooOld.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.OpRequiresTxn != nil {
l = m.OpRequiresTxn.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.ConditionFailed != nil {
l = m.ConditionFailed.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.LeaseRejected != nil {
l = m.LeaseRejected.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.NodeUnavailable != nil {
l = m.NodeUnavailable.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.Send != nil {
l = m.Send.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.RaftGroupDeleted != nil {
l = m.RaftGroupDeleted.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.ReplicaCorruption != nil {
l = m.ReplicaCorruption.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.ReplicaTooOld != nil {
l = m.ReplicaTooOld.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.TransactionReplay != nil {
l = m.TransactionReplay.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.AmbiguousResult != nil {
l = m.AmbiguousResult.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.StoreNotFound != nil {
l = m.StoreNotFound.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.HandledRetryableTxnError != nil {
l = m.HandledRetryableTxnError.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.UntrackedTxnError != nil {
l = m.UntrackedTxnError.Size()
n += 2 + l + sovErrors(uint64(l))
}
if m.TxnAbortedAsyncErr != nil {
l = m.TxnAbortedAsyncErr.Size()
n += 2 + l + sovErrors(uint64(l))
}
return n
}
func (m *ErrPosition) Size() (n int) {
var l int
_ = l
n += 1 + sovErrors(uint64(m.Index))
return n
}
func (m *Error) Size() (n int) {
var l int
_ = l
l = len(m.Message)
n += 1 + l + sovErrors(uint64(l))
n += 1 + sovErrors(uint64(m.TransactionRestart))
if m.UnexposedTxn != nil {
l = m.UnexposedTxn.Size()
n += 1 + l + sovErrors(uint64(l))
}
n += 1 + sovErrors(uint64(m.OriginNode))
if m.Detail != nil {
l = m.Detail.Size()
n += 1 + l + sovErrors(uint64(l))
}
if m.Index != nil {
l = m.Index.Size()
n += 1 + l + sovErrors(uint64(l))
}
l = m.Now.Size()
n += 1 + l + sovErrors(uint64(l))
return n
}
func sovErrors(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozErrors(x uint64) (n int) {
return sovErrors(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *ErrorDetail) GetValue() interface{} {
if this.NotLeaseHolder != nil {
return this.NotLeaseHolder
}
if this.RangeNotFound != nil {
return this.RangeNotFound
}
if this.RangeKeyMismatch != nil {
return this.RangeKeyMismatch
}
if this.ReadWithinUncertaintyInterval != nil {
return this.ReadWithinUncertaintyInterval
}
if this.TransactionAborted != nil {
return this.TransactionAborted
}
if this.TransactionPush != nil {
return this.TransactionPush
}
if this.TransactionRetry != nil {
return this.TransactionRetry
}
if this.TransactionStatus != nil {
return this.TransactionStatus
}
if this.WriteIntent != nil {
return this.WriteIntent
}
if this.WriteTooOld != nil {
return this.WriteTooOld
}
if this.OpRequiresTxn != nil {
return this.OpRequiresTxn
}
if this.ConditionFailed != nil {
return this.ConditionFailed
}
if this.LeaseRejected != nil {
return this.LeaseRejected
}
if this.NodeUnavailable != nil {
return this.NodeUnavailable
}
if this.Send != nil {
return this.Send
}
if this.RaftGroupDeleted != nil {
return this.RaftGroupDeleted
}
if this.ReplicaCorruption != nil {
return this.ReplicaCorruption
}
if this.ReplicaTooOld != nil {
return this.ReplicaTooOld
}
if this.TransactionReplay != nil {
return this.TransactionReplay
}
if this.AmbiguousResult != nil {
return this.AmbiguousResult
}
if this.StoreNotFound != nil {
return this.StoreNotFound
}
if this.HandledRetryableTxnError != nil {
return this.HandledRetryableTxnError
}
if this.UntrackedTxnError != nil {
return this.UntrackedTxnError
}
if this.TxnAbortedAsyncErr != nil {
return this.TxnAbortedAsyncErr
}
return nil
}
func (this *ErrorDetail) SetValue(value interface{}) bool {
switch vt := value.(type) {
case *NotLeaseHolderError:
this.NotLeaseHolder = vt
case *RangeNotFoundError:
this.RangeNotFound = vt
case *RangeKeyMismatchError:
this.RangeKeyMismatch = vt
case *ReadWithinUncertaintyIntervalError:
this.ReadWithinUncertaintyInterval = vt
case *TransactionAbortedError:
this.TransactionAborted = vt
case *TransactionPushError:
this.TransactionPush = vt
case *TransactionRetryError:
this.TransactionRetry = vt
case *TransactionStatusError:
this.TransactionStatus = vt
case *WriteIntentError:
this.WriteIntent = vt
case *WriteTooOldError:
this.WriteTooOld = vt
case *OpRequiresTxnError:
this.OpRequiresTxn = vt
case *ConditionFailedError:
this.ConditionFailed = vt
case *LeaseRejectedError:
this.LeaseRejected = vt
case *NodeUnavailableError:
this.NodeUnavailable = vt
case *SendError:
this.Send = vt
case *RaftGroupDeletedError:
this.RaftGroupDeleted = vt
case *ReplicaCorruptionError:
this.ReplicaCorruption = vt
case *ReplicaTooOldError:
this.ReplicaTooOld = vt
case *TransactionReplayError:
this.TransactionReplay = vt
case *AmbiguousResultError:
this.AmbiguousResult = vt
case *StoreNotFoundError:
this.StoreNotFound = vt
case *HandledRetryableTxnError:
this.HandledRetryableTxnError = vt
case *UntrackedTxnError:
this.UntrackedTxnError = vt
case *TxnPrevAttemptError:
this.TxnAbortedAsyncErr = vt
default:
return false
}
return true
}
func (m *NotLeaseHolderError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: NotLeaseHolderError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: NotLeaseHolderError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LeaseHolder", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.LeaseHolder == nil {
m.LeaseHolder = &ReplicaDescriptor{}
}
if err := m.LeaseHolder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType)
}
m.RangeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RangeID |= (RangeID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Lease == nil {
m.Lease = &Lease{}
}
if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CustomMsg", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.CustomMsg = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *NodeUnavailableError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: NodeUnavailableError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: NodeUnavailableError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *RangeNotFoundError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: RangeNotFoundError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: RangeNotFoundError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType)
}
m.RangeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RangeID |= (RangeID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *RangeKeyMismatchError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: RangeKeyMismatchError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: RangeKeyMismatchError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestStartKey", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.RequestStartKey = append(m.RequestStartKey[:0], dAtA[iNdEx:postIndex]...)
if m.RequestStartKey == nil {
m.RequestStartKey = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestEndKey", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.RequestEndKey = append(m.RequestEndKey[:0], dAtA[iNdEx:postIndex]...)
if m.RequestEndKey == nil {
m.RequestEndKey = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field MismatchedRange", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.MismatchedRange == nil {
m.MismatchedRange = &RangeDescriptor{}
}
if err := m.MismatchedRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SuggestedRange", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SuggestedRange == nil {
m.SuggestedRange = &RangeDescriptor{}
}
if err := m.SuggestedRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReadWithinUncertaintyIntervalError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ReadWithinUncertaintyIntervalError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReadWithinUncertaintyIntervalError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ReadTimestamp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ReadTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExistingTimestamp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ExistingTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TransactionAbortedError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TransactionAbortedError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TransactionAbortedError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TransactionPushError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TransactionPushError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TransactionPushError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PusheeTxn", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.PusheeTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TransactionRetryError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TransactionRetryError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TransactionRetryError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
}
m.Reason = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Reason |= (TransactionRetryReason(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TransactionReplayError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TransactionReplayError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TransactionReplayError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TransactionStatusError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TransactionStatusError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TransactionStatusError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Msg = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *WriteIntentError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: WriteIntentError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: WriteIntentError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Intents", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Intents = append(m.Intents, Intent{})
if err := m.Intents[len(m.Intents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *WriteTooOldError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: WriteTooOldError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: WriteTooOldError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ActualTimestamp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ActualTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *OpRequiresTxnError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: OpRequiresTxnError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: OpRequiresTxnError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ConditionFailedError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ConditionFailedError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ConditionFailedError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ActualValue", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ActualValue == nil {
m.ActualValue = &Value{}
}
if err := m.ActualValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *LeaseRejectedError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: LeaseRejectedError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: LeaseRejectedError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Message = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Requested", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Requested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Existing", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Existing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SendError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: SendError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SendError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Message = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *AmbiguousResultError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: AmbiguousResultError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AmbiguousResultError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Message = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WrappedErr", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.WrappedErr == nil {
m.WrappedErr = &Error{}
}
if err := m.WrappedErr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *RaftGroupDeletedError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: RaftGroupDeletedError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: RaftGroupDeletedError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReplicaCorruptionError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ReplicaCorruptionError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReplicaCorruptionError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ErrorMsg", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ErrorMsg = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Processed = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReplicaTooOldError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ReplicaTooOldError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReplicaTooOldError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType)
}
m.ReplicaID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ReplicaID |= (ReplicaID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StoreNotFoundError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: StoreNotFoundError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StoreNotFoundError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
}
m.StoreID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.StoreID |= (StoreID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *UnhandledRetryableError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: UnhandledRetryableError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: UnhandledRetryableError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PErr", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.PErr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *HandledRetryableTxnError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: HandledRetryableTxnError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: HandledRetryableTxnError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Msg = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TxnID", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.TxnID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *UntrackedTxnError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: UntrackedTxnError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: UntrackedTxnError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TxnPrevAttemptError) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TxnPrevAttemptError: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TxnPrevAttemptError: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ErrorDetail) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ErrorDetail: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ErrorDetail: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NotLeaseHolder", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.NotLeaseHolder == nil {
m.NotLeaseHolder = &NotLeaseHolderError{}
}
if err := m.NotLeaseHolder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RangeNotFound", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.RangeNotFound == nil {
m.RangeNotFound = &RangeNotFoundError{}
}
if err := m.RangeNotFound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RangeKeyMismatch", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.RangeKeyMismatch == nil {
m.RangeKeyMismatch = &RangeKeyMismatchError{}
}
if err := m.RangeKeyMismatch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ReadWithinUncertaintyInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ReadWithinUncertaintyInterval == nil {
m.ReadWithinUncertaintyInterval = &ReadWithinUncertaintyIntervalError{}
}
if err := m.ReadWithinUncertaintyInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionAborted", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TransactionAborted == nil {
m.TransactionAborted = &TransactionAbortedError{}
}
if err := m.TransactionAborted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionPush", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TransactionPush == nil {
m.TransactionPush = &TransactionPushError{}
}
if err := m.TransactionPush.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionRetry", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TransactionRetry == nil {
m.TransactionRetry = &TransactionRetryError{}
}
if err := m.TransactionRetry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionStatus", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TransactionStatus == nil {
m.TransactionStatus = &TransactionStatusError{}
}
if err := m.TransactionStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 9:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WriteIntent", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.WriteIntent == nil {
m.WriteIntent = &WriteIntentError{}
}
if err := m.WriteIntent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 10:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WriteTooOld", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.WriteTooOld == nil {
m.WriteTooOld = &WriteTooOldError{}
}
if err := m.WriteTooOld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 11:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OpRequiresTxn", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.OpRequiresTxn == nil {
m.OpRequiresTxn = &OpRequiresTxnError{}
}
if err := m.OpRequiresTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 12:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ConditionFailed", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ConditionFailed == nil {
m.ConditionFailed = &ConditionFailedError{}
}
if err := m.ConditionFailed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 13:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LeaseRejected", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.LeaseRejected == nil {
m.LeaseRejected = &LeaseRejectedError{}
}
if err := m.LeaseRejected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 14:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NodeUnavailable", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.NodeUnavailable == nil {
m.NodeUnavailable = &NodeUnavailableError{}
}
if err := m.NodeUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 15:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Send == nil {
m.Send = &SendError{}
}
if err := m.Send.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 16:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RaftGroupDeleted", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.RaftGroupDeleted == nil {
m.RaftGroupDeleted = &RaftGroupDeletedError{}
}
if err := m.RaftGroupDeleted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 17:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ReplicaCorruption", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ReplicaCorruption == nil {
m.ReplicaCorruption = &ReplicaCorruptionError{}
}
if err := m.ReplicaCorruption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 18:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ReplicaTooOld", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ReplicaTooOld == nil {
m.ReplicaTooOld = &ReplicaTooOldError{}
}
if err := m.ReplicaTooOld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 22:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionReplay", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TransactionReplay == nil {
m.TransactionReplay = &TransactionReplayError{}
}
if err := m.TransactionReplay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 26:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AmbiguousResult", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.AmbiguousResult == nil {
m.AmbiguousResult = &AmbiguousResultError{}
}
if err := m.AmbiguousResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 27:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field StoreNotFound", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.StoreNotFound == nil {
m.StoreNotFound = &StoreNotFoundError{}
}
if err := m.StoreNotFound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 28:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field HandledRetryableTxnError", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.HandledRetryableTxnError == nil {
m.HandledRetryableTxnError = &HandledRetryableTxnError{}
}
if err := m.HandledRetryableTxnError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 29:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UntrackedTxnError", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.UntrackedTxnError == nil {
m.UntrackedTxnError = &UntrackedTxnError{}
}
if err := m.UntrackedTxnError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 30:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TxnAbortedAsyncErr", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TxnAbortedAsyncErr == nil {
m.TxnAbortedAsyncErr = &TxnPrevAttemptError{}
}
if err := m.TxnAbortedAsyncErr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ErrPosition) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ErrPosition: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ErrPosition: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
}
m.Index = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Index |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Error) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Error: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Message = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TransactionRestart", wireType)
}
m.TransactionRestart = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TransactionRestart |= (TransactionRestart(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UnexposedTxn", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.UnexposedTxn == nil {
m.UnexposedTxn = &Transaction{}
}
if err := m.UnexposedTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field OriginNode", wireType)
}
m.OriginNode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.OriginNode |= (NodeID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Detail", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Detail == nil {
m.Detail = &ErrorDetail{}
}
if err := m.Detail.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Index == nil {
m.Index = &ErrPosition{}
}
if err := m.Index.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowErrors
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthErrors
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Now.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipErrors(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthErrors
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipErrors(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowErrors
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowErrors
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowErrors
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthErrors
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowErrors
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipErrors(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("cockroach/pkg/roachpb/errors.proto", fileDescriptorErrors) }
var fileDescriptorErrors = []byte{
// 2040 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xcf, 0x6f, 0xdb, 0xc8,
0xf5, 0x37, 0x6d, 0x39, 0xb2, 0x9e, 0x2c, 0x4b, 0x9e, 0x38, 0x09, 0xe3, 0x24, 0x92, 0xd7, 0xbb,
0xdf, 0xfd, 0xa6, 0x29, 0x60, 0x15, 0xde, 0x66, 0x8b, 0x4d, 0xdb, 0x83, 0x1c, 0xc9, 0x5e, 0xad,
0x6d, 0xc9, 0x1d, 0xcb, 0x9b, 0x7a, 0xb7, 0x00, 0x41, 0x93, 0x63, 0x89, 0x6b, 0x8a, 0xd4, 0x0e,
0x87, 0xb1, 0x7c, 0xe9, 0xb9, 0xc7, 0x1e, 0x0b, 0xb4, 0x40, 0x03, 0xf4, 0xd8, 0x4b, 0x0f, 0x45,
0xff, 0x86, 0xa0, 0xa7, 0x1e, 0x8b, 0x02, 0x35, 0x5a, 0xf7, 0xd2, 0xbf, 0x21, 0xa7, 0x62, 0x7e,
0x50, 0xa2, 0x24, 0xca, 0x11, 0xf6, 0x46, 0xbe, 0x79, 0xef, 0x33, 0x6f, 0xe6, 0xfd, 0xfa, 0x90,
0xb0, 0x69, 0xf9, 0xd6, 0x05, 0xf5, 0x4d, 0xab, 0x53, 0xee, 0x5d, 0xb4, 0xcb, 0xe2, 0xa9, 0x77,
0x56, 0x26, 0x94, 0xfa, 0x34, 0xd8, 0xea, 0x51, 0x9f, 0xf9, 0x68, 0x75, 0xa0, 0xb3, 0xa5, 0xd6,
0xd7, 0x3f, 0x4a, 0x36, 0xeb, 0x12, 0x66, 0xda, 0x26, 0x33, 0xa5, 0xe1, 0xfa, 0x46, 0xb2, 0x56,
0x4c, 0xe3, 0xe3, 0x51, 0x8d, 0x90, 0x39, 0x6e, 0xb9, 0xe3, 0x5a, 0x65, 0xe6, 0x74, 0x49, 0xc0,
0xcc, 0x6e, 0x4f, 0xe9, 0xad, 0xb5, 0xfd, 0xb6, 0x2f, 0x1e, 0xcb, 0xfc, 0x49, 0x4a, 0x37, 0xff,
0x32, 0x0f, 0x77, 0x1b, 0x3e, 0x3b, 0x20, 0x66, 0x40, 0x3e, 0xf7, 0x5d, 0x9b, 0xd0, 0x1a, 0xf7,
0x1b, 0x55, 0x21, 0x4d, 0x49, 0xcf, 0x75, 0x2c, 0x53, 0xd7, 0x36, 0xb4, 0xa7, 0xd9, 0xed, 0x8f,
0xb6, 0x26, 0x8e, 0xb0, 0x85, 0xa5, 0x46, 0x95, 0x04, 0x16, 0x75, 0x7a, 0xcc, 0xa7, 0x3b, 0xa9,
0xb7, 0xd7, 0xa5, 0x39, 0x1c, 0x99, 0xa2, 0x3d, 0x58, 0x76, 0x39, 0xb2, 0xd1, 0x11, 0xd0, 0xfa,
0xfc, 0xec, 0x50, 0x38, 0xeb, 0x0e, 0x7d, 0x42, 0xcf, 0x61, 0x89, 0x9a, 0x5e, 0x9b, 0x18, 0x8e,
0xad, 0x2f, 0x6c, 0x68, 0x4f, 0x17, 0x76, 0xd6, 0xf9, 0x4e, 0x37, 0xd7, 0xa5, 0x34, 0xe6, 0xf2,
0x7a, 0xf5, 0xdd, 0xf0, 0x11, 0xa7, 0x85, 0x6e, 0xdd, 0x46, 0x5b, 0xb0, 0x28, 0x50, 0xf4, 0x94,
0xd8, 0x58, 0x4f, 0xd8, 0x58, 0x9c, 0x1c, 0x4b, 0x35, 0xf4, 0x21, 0x80, 0x15, 0x06, 0xcc, 0xef,
0x1a, 0xdd, 0xa0, 0xad, 0x2f, 0x6e, 0x68, 0x4f, 0x33, 0xea, 0x48, 0x19, 0x29, 0x3f, 0x0c, 0xda,
0x2f, 0x52, 0xff, 0x7d, 0x53, 0xd2, 0x36, 0x1f, 0xc3, 0x5a, 0xc3, 0xb7, 0xc9, 0x89, 0x67, 0xbe,
0x36, 0x1d, 0xd7, 0x3c, 0x73, 0x89, 0xb8, 0x38, 0xb5, 0xfa, 0x33, 0x40, 0xc2, 0x99, 0x86, 0xcf,
0x76, 0xfd, 0xd0, 0xb3, 0xe5, 0xa5, 0xc6, 0x4f, 0xa1, 0xcd, 0x7c, 0x0a, 0x05, 0xf9, 0xfb, 0x79,
0xb8, 0x27, 0x96, 0xf6, 0xc9, 0xd5, 0xa1, 0x13, 0x74, 0x4d, 0x66, 0x75, 0x24, 0xec, 0x27, 0xb0,
0x4a, 0xc9, 0xb7, 0x21, 0x09, 0x98, 0x11, 0x30, 0x93, 0x32, 0xe3, 0x82, 0x5c, 0x09, 0xfc, 0xe5,
0x9d, 0xf4, 0xbb, 0xeb, 0xd2, 0xc2, 0x3e, 0xb9, 0xc2, 0x79, 0xa5, 0x71, 0xcc, 0x15, 0xf6, 0xc9,
0x15, 0x2a, 0x43, 0x24, 0x32, 0x88, 0x67, 0x0b, 0x93, 0xf9, 0x51, 0x93, 0x9c, 0x5a, 0xaf, 0x79,
0x36, 0x37, 0x38, 0x84, 0x42, 0x57, 0x6d, 0x4b, 0x6c, 0x43, 0xf8, 0x26, 0x42, 0x91, 0xdd, 0xde,
0x4c, 0x8a, 0x27, 0x5f, 0x8f, 0x45, 0x33, 0x3f, 0xb4, 0x15, 0x4b, 0x68, 0x1f, 0xf2, 0x41, 0xd8,
0x6e, 0x93, 0x80, 0x0d, 0xd0, 0x52, 0x33, 0xa3, 0xad, 0x0c, 0x4c, 0xc5, 0x8a, 0xba, 0xa1, 0xbf,
0x6a, 0xb0, 0x89, 0x89, 0x69, 0xbf, 0x72, 0x58, 0xc7, 0xf1, 0x4e, 0x3c, 0x8b, 0x50, 0x66, 0x3a,
0x1e, 0xbb, 0xaa, 0x7b, 0x8c, 0xd0, 0xd7, 0xa6, 0x2b, 0xaf, 0xeb, 0x0b, 0x58, 0xa1, 0xc4, 0xb4,
0x8d, 0x41, 0x81, 0xa8, 0x0c, 0x7f, 0x12, 0xdb, 0x98, 0x57, 0xd1, 0x56, 0xc7, 0xb5, 0xb6, 0x5a,
0x91, 0x92, 0xca, 0x83, 0x1c, 0x37, 0x1d, 0x08, 0x11, 0x06, 0x44, 0xfa, 0x4e, 0xc0, 0x1c, 0xaf,
0x1d, 0xc3, 0x9b, 0x9f, 0x1d, 0x6f, 0x35, 0x32, 0x1f, 0x2c, 0xa8, 0xc3, 0x94, 0xe0, 0x41, 0x8b,
0x9a, 0x5e, 0x60, 0x5a, 0xcc, 0xf1, 0xbd, 0xca, 0x99, 0x4f, 0x19, 0xb1, 0xe3, 0x29, 0x66, 0xc2,
0x5a, 0x4c, 0xe1, 0x28, 0x0c, 0x54, 0x36, 0xbc, 0x04, 0xe8, 0x85, 0x41, 0x87, 0x10, 0x83, 0xf5,
0x3d, 0x75, 0xb4, 0x62, 0xc2, 0x9d, 0xc6, 0x8c, 0xa3, 0x1c, 0x97, 0x76, 0xad, 0xbe, 0xa7, 0xb6,
0x38, 0x87, 0x7b, 0x31, 0x2d, 0x4c, 0x18, 0xbd, 0x92, 0x7b, 0xec, 0xc1, 0x1d, 0x4a, 0xcc, 0xc0,
0x97, 0xf8, 0x2b, 0xdb, 0xdf, 0xbb, 0x1d, 0x5f, 0x58, 0x62, 0x61, 0xa0, 0xb6, 0x52, 0xe6, 0x6a,
0x9f, 0x22, 0xdc, 0x1f, 0xd1, 0xee, 0xb9, 0xe6, 0x55, 0xfc, 0xa8, 0x9f, 0x8e, 0xac, 0x1f, 0x33,
0x93, 0x85, 0x81, 0x74, 0xe4, 0x3e, 0x2c, 0xf0, 0x4a, 0xd5, 0x62, 0x95, 0xca, 0x05, 0xca, 0xee,
0x14, 0x0a, 0xaf, 0xa8, 0xc3, 0x08, 0x8f, 0xbf, 0xc7, 0xa4, 0xc5, 0x67, 0x90, 0x76, 0xc4, 0x6b,
0xa0, 0x6b, 0x1b, 0x0b, 0x4f, 0xb3, 0xdb, 0x0f, 0x13, 0x7c, 0x97, 0x06, 0x51, 0x37, 0x53, 0xfa,
0x12, 0xf4, 0x8b, 0xd4, 0xd2, 0x7c, 0x61, 0x61, 0xf3, 0x8f, 0x9a, 0xc2, 0x6e, 0xf9, 0x7e, 0xd3,
0x55, 0xf5, 0x5d, 0x81, 0xcc, 0x77, 0x4a, 0xaa, 0xa1, 0x15, 0x6a, 0x40, 0xc1, 0xb4, 0x58, 0x68,
0xba, 0xdf, 0x2d, 0x9d, 0xf2, 0xd2, 0x78, 0x3c, 0x99, 0xd6, 0x01, 0x35, 0x7b, 0x98, 0x7c, 0x1b,
0x3a, 0x94, 0x04, 0xad, 0xbe, 0x17, 0xbf, 0xdc, 0x53, 0x58, 0x7b, 0xe9, 0x7b, 0xb6, 0xc3, 0xaf,
0x76, 0xd7, 0x74, 0x5c, 0x95, 0x65, 0xe8, 0xc7, 0xb0, 0xac, 0x3c, 0x79, 0x6d, 0xba, 0x21, 0x51,
0xe7, 0x49, 0x6a, 0xa1, 0x5f, 0xf2, 0x75, 0x9c, 0x95, 0xda, 0xe2, 0x45, 0x41, 0xff, 0x59, 0x03,
0x24, 0xfb, 0x2b, 0xf9, 0x86, 0x58, 0x51, 0xfe, 0xa2, 0x22, 0xa4, 0xbb, 0x24, 0x08, 0xcc, 0x36,
0x19, 0x09, 0x5c, 0x24, 0x44, 0x3f, 0x81, 0x8c, 0x6a, 0x3d, 0xc4, 0x56, 0x87, 0x9f, 0xda, 0xb9,
0xa3, 0x1b, 0x1c, 0x18, 0xa0, 0x17, 0xb0, 0x14, 0xd5, 0x94, 0xea, 0x4f, 0xef, 0x33, 0x1e, 0xe8,
0x2b, 0xb7, 0x7f, 0x04, 0x99, 0x63, 0xe2, 0xcd, 0xe6, 0xec, 0x48, 0x52, 0x5c, 0xc2, 0x5a, 0xa5,
0x7b, 0xe6, 0xb4, 0x43, 0x3f, 0x0c, 0x30, 0x09, 0x42, 0x97, 0xcd, 0x76, 0xe0, 0xcf, 0x20, 0x7b,
0x49, 0xcd, 0x5e, 0x8f, 0xd8, 0x06, 0xa1, 0xf4, 0x96, 0x23, 0x0b, 0x38, 0x0c, 0x4a, 0xb9, 0x46,
0xa3, 0x18, 0x3e, 0xe1, 0xa3, 0xe1, 0x9c, 0xed, 0x51, 0x3f, 0xec, 0x55, 0x89, 0x4b, 0xc6, 0x5a,
0x05, 0x81, 0xfb, 0x6a, 0xbe, 0xbe, 0xf4, 0x29, 0x0d, 0x7b, 0x3c, 0xd4, 0xd2, 0xb3, 0x0f, 0x20,
0x23, 0x78, 0x8a, 0x31, 0x5e, 0x45, 0x4b, 0x42, 0x7c, 0x18, 0xb4, 0xd1, 0x26, 0x64, 0x7a, 0xd4,
0xb7, 0x48, 0x10, 0xa8, 0x68, 0x2c, 0x0d, 0xda, 0x45, 0x24, 0x1e, 0x64, 0x12, 0x52, 0xdb, 0xc4,
0x8b, 0xe2, 0xa7, 0x00, 0x8a, 0x0e, 0x44, 0x63, 0x6f, 0x71, 0xa7, 0xa8, 0xc6, 0x5e, 0x46, 0xe9,
0x8b, 0xc1, 0x37, 0x7c, 0xe1, 0xe1, 0x94, 0x8f, 0xf6, 0x70, 0x9e, 0x1e, 0x33, 0x9f, 0x4e, 0xce,
0xd3, 0x80, 0x4b, 0x13, 0xe6, 0xa9, 0xd0, 0x96, 0xf3, 0x54, 0x3d, 0xe2, 0xb4, 0xd0, 0x1d, 0x40,
0x1e, 0xc2, 0x83, 0x13, 0xaf, 0x63, 0x7a, 0xb6, 0x4b, 0x6c, 0xd1, 0xa0, 0x06, 0x33, 0x1c, 0x6d,
0x43, 0xaa, 0x57, 0xa3, 0xf4, 0x96, 0x94, 0x17, 0x7a, 0xea, 0x1e, 0x84, 0xee, 0xe6, 0x3f, 0x35,
0xd0, 0x3f, 0x1f, 0x43, 0x8b, 0x2a, 0x6d, 0x5a, 0x9b, 0x42, 0x5f, 0xc3, 0x1d, 0xd6, 0xf7, 0xb8,
0xfb, 0x72, 0xf6, 0x56, 0xf9, 0xd2, 0x3f, 0xae, 0x4b, 0x9f, 0xb4, 0x1d, 0xd6, 0x09, 0xcf, 0xb6,
0x2c, 0xbf, 0x5b, 0x1e, 0x6c, 0x6e, 0x9f, 0x95, 0x13, 0xa8, 0x5e, 0x18, 0x3a, 0xf6, 0xd6, 0xc9,
0x49, 0xbd, 0x7a, 0x73, 0x5d, 0x5a, 0x6c, 0xf5, 0xbd, 0x7a, 0x15, 0x2f, 0xb2, 0xbe, 0x57, 0xb7,
0xd1, 0x2e, 0x64, 0xd9, 0xb0, 0x6b, 0xaa, 0x5a, 0x98, 0x6d, 0x12, 0xc4, 0x0d, 0xd5, 0x75, 0x3d,
0x84, 0xd5, 0x13, 0x8f, 0x51, 0xd3, 0xba, 0x20, 0xf6, 0x58, 0x07, 0x79, 0x04, 0x77, 0x5b, 0x7d,
0xef, 0x88, 0x92, 0xd7, 0x15, 0xc6, 0x48, 0xb7, 0xc7, 0xe2, 0x8b, 0xbf, 0x2d, 0x40, 0x56, 0xbc,
0x57, 0x09, 0x33, 0x1d, 0x17, 0x1d, 0x41, 0xc1, 0xf3, 0x99, 0x31, 0x42, 0x0b, 0xe5, 0x3d, 0x7f,
0x9c, 0xe0, 0x5a, 0x02, 0x35, 0xc5, 0x2b, 0xde, 0x88, 0x10, 0x1d, 0x42, 0x5e, 0xb2, 0x2a, 0x8e,
0x7b, 0xce, 0xb3, 0x43, 0x55, 0xd0, 0xff, 0x4d, 0x63, 0x12, 0x23, 0x59, 0x84, 0x73, 0x34, 0x2e,
0x43, 0x5f, 0x02, 0x92, 0x70, 0x17, 0xe4, 0xca, 0x88, 0x58, 0x8b, 0xba, 0xbd, 0xa7, 0xd3, 0x10,
0xc7, 0x39, 0x19, 0x2e, 0xd0, 0x31, 0x31, 0xfa, 0x25, 0x6c, 0x08, 0xda, 0x71, 0x29, 0xd8, 0x89,
0x11, 0x0e, 0xe9, 0x89, 0xe1, 0x28, 0x7e, 0xa2, 0x18, 0xd0, 0xf3, 0x44, 0x7e, 0xfc, 0x3e, 0x5e,
0x83, 0x9f, 0xd0, 0xdb, 0x74, 0xd0, 0xd7, 0x70, 0x37, 0x16, 0x55, 0xc3, 0x94, 0x8c, 0x42, 0x90,
0xdc, 0xec, 0xf6, 0xb3, 0xdb, 0xd3, 0x22, 0x4e, 0x3f, 0x30, 0x62, 0x13, 0x0b, 0x08, 0x43, 0x21,
0x0e, 0xce, 0x89, 0x84, 0x7e, 0x47, 0x20, 0xff, 0xff, 0xed, 0xc8, 0x03, 0xde, 0x82, 0xf3, 0x6c,
0x54, 0x8a, 0x4e, 0x60, 0x35, 0x8e, 0x49, 0x79, 0x55, 0xe9, 0xe9, 0xa9, 0x71, 0x48, 0x64, 0x2a,
0x38, 0xee, 0x96, 0x10, 0xa3, 0x9f, 0x43, 0xfc, 0x00, 0x9c, 0x31, 0xb3, 0x30, 0xd0, 0x97, 0x04,
0xee, 0x7b, 0x78, 0x4c, 0x8c, 0x79, 0xe0, 0xb8, 0x6f, 0x52, 0x8e, 0x76, 0x61, 0xf9, 0x92, 0x53,
0x02, 0x43, 0x12, 0x06, 0x3d, 0x23, 0x30, 0x3f, 0x4c, 0xc0, 0x1c, 0x67, 0x25, 0x38, 0x7b, 0x39,
0x94, 0xa0, 0x3d, 0xc8, 0x49, 0x1c, 0xe6, 0xfb, 0x86, 0xef, 0xda, 0x3a, 0xdc, 0x0e, 0x14, 0xeb,
0xb6, 0x0a, 0x48, 0x4a, 0x78, 0x65, 0xf8, 0x3d, 0x83, 0xaa, 0xb9, 0x2f, 0xf8, 0x60, 0x76, 0x6a,
0x65, 0x4c, 0x12, 0x04, 0x9c, 0xf3, 0xe3, 0x32, 0x1e, 0x64, 0x2b, 0x62, 0x0a, 0xc6, 0xb9, 0xa0,
0x0a, 0xfa, 0xf2, 0xd4, 0x20, 0x27, 0x91, 0x0a, 0x9c, 0xb7, 0x46, 0xa5, 0xe8, 0x00, 0x56, 0x64,
0x2b, 0xa0, 0x8a, 0x22, 0xe8, 0xb9, 0xa9, 0x1e, 0x4e, 0x52, 0x09, 0x9c, 0x73, 0xe3, 0x32, 0xee,
0xa1, 0xe7, 0xdb, 0xc4, 0x08, 0x87, 0x5f, 0x65, 0xfa, 0xca, 0x54, 0x0f, 0x93, 0xbe, 0xdf, 0x70,
0xde, 0x1b, 0x95, 0xa2, 0x1f, 0x40, 0x2a, 0x20, 0x9e, 0xad, 0xe7, 0x05, 0xce, 0xe3, 0x04, 0x9c,
0x01, 0x59, 0xc0, 0x42, 0x53, 0x76, 0x90, 0x73, 0x66, 0xb4, 0xf9, 0x38, 0x36, 0x6c, 0x39, 0x8f,
0xf5, 0xc2, 0x2d, 0x1d, 0x24, 0x61, 0x74, 0xf3, 0x0e, 0x32, 0x2a, 0xe6, 0x99, 0x1b, 0x4d, 0x52,
0x6b, 0x30, 0xc7, 0xf5, 0xd5, 0xa9, 0x99, 0x9b, 0x3c, 0xf3, 0xf1, 0x2a, 0x1d, 0x97, 0x8b, 0x16,
0xaa, 0x90, 0xa3, 0x9c, 0x43, 0xd3, 0x5b, 0xe8, 0xc4, 0x8c, 0xe7, 0x5f, 0x45, 0x31, 0xd9, 0x78,
0x89, 0x51, 0x41, 0xe8, 0xf5, 0xfb, 0xb3, 0x94, 0x58, 0x8c, 0xfc, 0x8f, 0x94, 0x98, 0x94, 0xf3,
0x00, 0x9b, 0x11, 0xc3, 0x32, 0xa8, 0xa0, 0x58, 0xfa, 0xfa, 0xd4, 0x00, 0x27, 0x91, 0x31, 0x9c,
0x37, 0x47, 0xa5, 0xfc, 0xf0, 0x92, 0x45, 0x0c, 0xe7, 0xc7, 0xa3, 0xa9, 0x87, 0x9f, 0x64, 0x21,
0x38, 0x17, 0xc4, 0x65, 0xe8, 0x1b, 0x78, 0xa4, 0x58, 0x85, 0x6c, 0x59, 0x3c, 0x89, 0x78, 0xe9,
0x19, 0x82, 0x51, 0xe9, 0x8f, 0x05, 0xf4, 0xf7, 0x13, 0xa0, 0xa7, 0xb1, 0x07, 0xac, 0x77, 0xa6,
0xf1, 0x8a, 0x16, 0xdc, 0x0d, 0xa3, 0xa1, 0x1c, 0xdb, 0xe3, 0xc9, 0xd4, 0xdf, 0x2c, 0x13, 0x23,
0x1c, 0xaf, 0x86, 0xe3, 0x22, 0x74, 0x0a, 0xf7, 0x38, 0x96, 0x9a, 0x10, 0x86, 0x19, 0x5c, 0x79,
0x96, 0x20, 0xa6, 0xc5, 0xa9, 0x73, 0x3a, 0x61, 0xfe, 0x63, 0xc4, 0xfa, 0xd1, 0x7c, 0xa8, 0x70,
0x08, 0x4e, 0x57, 0x97, 0xde, 0xbe, 0x29, 0x69, 0x8a, 0x31, 0x3f, 0x2c, 0xac, 0x6f, 0x96, 0x05,
0x39, 0x38, 0xf2, 0x03, 0xd1, 0x13, 0xd0, 0x3a, 0x2c, 0x3a, 0x9e, 0x4d, 0xfa, 0x8a, 0x26, 0x4a,
0x32, 0x22, 0x45, 0x8a, 0x4e, 0xfc, 0x69, 0x01, 0x16, 0x67, 0x23, 0xd5, 0xbf, 0x18, 0x9d, 0x77,
0x94, 0x88, 0x7f, 0x23, 0x62, 0x90, 0xaf, 0x24, 0x86, 0x76, 0x24, 0x0b, 0x85, 0xb2, 0x82, 0x44,
0x6c, 0x62, 0x05, 0xbd, 0x84, 0x5c, 0xe8, 0x91, 0x7e, 0xcf, 0x0f, 0xe4, 0xcd, 0xab, 0xd1, 0xfd,
0x1e, 0x7a, 0x85, 0x97, 0x07, 0x46, 0xbc, 0xa1, 0x96, 0x21, 0xeb, 0x53, 0xa7, 0xed, 0x78, 0x06,
0x6f, 0x3a, 0x62, 0x14, 0x2f, 0xee, 0xac, 0xf0, 0x3d, 0xdf, 0x5d, 0x97, 0xee, 0xf0, 0xf6, 0x54,
0xaf, 0x62, 0x90, 0x2a, 0xfc, 0x0d, 0x7d, 0x0a, 0x77, 0x6c, 0x41, 0xa3, 0xd4, 0x70, 0x2d, 0x4e,
0xa3, 0xa6, 0x92, 0x6c, 0x61, 0xa5, 0x8d, 0x7e, 0x18, 0xdd, 0x6b, 0xfa, 0x36, 0xb3, 0x28, 0x0c,
0xea, 0xc6, 0xd1, 0x73, 0x58, 0xf0, 0xfc, 0x4b, 0x35, 0x1a, 0x67, 0xfa, 0xfc, 0xe4, 0xfa, 0x2f,
0x96, 0x7e, 0xf3, 0xa6, 0x34, 0x37, 0xfc, 0x2a, 0x7a, 0xf6, 0x3b, 0x6d, 0xec, 0xf3, 0x7e, 0xf0,
0x33, 0x00, 0xe9, 0xb0, 0x86, 0x6b, 0x2d, 0x7c, 0x6a, 0xe0, 0x5a, 0xe5, 0xb8, 0xd9, 0x30, 0x4e,
0x1a, 0xfb, 0x8d, 0xe6, 0xab, 0x46, 0x61, 0x0e, 0x3d, 0x80, 0xbb, 0x72, 0xe5, 0x15, 0xae, 0xb7,
0x6a, 0x46, 0xab, 0xd9, 0x34, 0x9a, 0x07, 0xd5, 0x82, 0x86, 0xee, 0x03, 0x92, 0x0b, 0xd5, 0xda,
0x41, 0xad, 0x55, 0x33, 0x70, 0xa5, 0xb1, 0x57, 0x2b, 0xcc, 0x0f, 0xe5, 0xc7, 0x35, 0x5c, 0xaf,
0x1c, 0xd4, 0xbf, 0xaa, 0xec, 0x1c, 0xd4, 0x0a, 0x0b, 0xe8, 0x21, 0xdc, 0x93, 0xf2, 0xa3, 0xe6,
0xf1, 0x71, 0x7d, 0xe7, 0xa0, 0x66, 0xe0, 0xda, 0xd1, 0x41, 0xe5, 0xb4, 0x90, 0x5a, 0x4f, 0xfd,
0xea, 0x0f, 0xc5, 0xb9, 0x67, 0x2f, 0x00, 0x4d, 0x46, 0x1e, 0x2d, 0x41, 0xaa, 0xd1, 0x6c, 0xd4,
0x0a, 0x73, 0x28, 0x0b, 0xe9, 0x9d, 0xca, 0xcb, 0xfd, 0xe6, 0xee, 0x6e, 0x41, 0x43, 0x39, 0xc8,
0xd4, 0x0f, 0x0f, 0x6b, 0xd5, 0x7a, 0xa5, 0x55, 0x2b, 0xcc, 0xef, 0x7c, 0xf0, 0xf6, 0xdf, 0xc5,
0xb9, 0xb7, 0x37, 0x45, 0xed, 0x6f, 0x37, 0x45, 0xed, 0xef, 0x37, 0x45, 0xed, 0x5f, 0x37, 0x45,
0xed, 0xd7, 0xff, 0x29, 0xce, 0x7d, 0x95, 0x56, 0xf7, 0xfa, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff,
0x31, 0x79, 0xfa, 0x3f, 0x1e, 0x16, 0x00, 0x00,
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_cockroachdb/cockroach.git
git@gitee.com:mirrors_cockroachdb/cockroach.git
mirrors_cockroachdb
cockroach
cockroach
v1.1.2

搜索帮助