You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

seata.pb.go 243 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: seata.proto
  3. package apis
  4. import (
  5. bytes "bytes"
  6. fmt "fmt"
  7. _ "github.com/gogo/protobuf/gogoproto"
  8. proto "github.com/gogo/protobuf/proto"
  9. types "github.com/gogo/protobuf/types"
  10. io "io"
  11. math "math"
  12. math_bits "math/bits"
  13. reflect "reflect"
  14. strconv "strconv"
  15. strings "strings"
  16. )
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  26. type ResultCode int32
  27. const (
  28. ResultCodeFailed ResultCode = 0
  29. ResultCodeSuccess ResultCode = 1
  30. )
  31. var ResultCode_name = map[int32]string{
  32. 0: "ResultCodeFailed",
  33. 1: "ResultCodeSuccess",
  34. }
  35. var ResultCode_value = map[string]int32{
  36. "ResultCodeFailed": 0,
  37. "ResultCodeSuccess": 1,
  38. }
  39. func (ResultCode) EnumDescriptor() ([]byte, []int) {
  40. return fileDescriptor_450a439f8893981f, []int{0}
  41. }
  42. type ExceptionCode int32
  43. const (
  44. // Unknown transaction error code.
  45. UnknownErr ExceptionCode = 0
  46. // BeginFailed
  47. BeginFailed ExceptionCode = 1
  48. // Lock key conflict transaction error code.
  49. LockKeyConflict ExceptionCode = 2
  50. // Io transaction error code.
  51. IO ExceptionCode = 3
  52. // Branch rollback failed retryable transaction error code.
  53. BranchRollbackFailedRetryable ExceptionCode = 4
  54. // Branch rollback failed unretryable transaction error code.
  55. BranchRollbackFailedUnretryable ExceptionCode = 5
  56. // Branch register failed transaction error code.
  57. BranchRegisterFailed ExceptionCode = 6
  58. // Branch report failed transaction error code.
  59. BranchReportFailed ExceptionCode = 7
  60. // Lockable check failed transaction error code.
  61. LockableCheckFailed ExceptionCode = 8
  62. // Branch transaction not exist transaction error code.
  63. BranchTransactionNotExist ExceptionCode = 9
  64. // Global transaction not exist transaction error code.
  65. GlobalTransactionNotExist ExceptionCode = 10
  66. // Global transaction not active transaction error code.
  67. GlobalTransactionNotActive ExceptionCode = 11
  68. // Global transaction status invalid transaction error code.
  69. GlobalTransactionStatusInvalid ExceptionCode = 12
  70. // Failed to send branch commit request transaction error code.
  71. FailedToSendBranchCommitRequest ExceptionCode = 13
  72. // Failed to send branch rollback request transaction error code.
  73. FailedToSendBranchRollbackRequest ExceptionCode = 14
  74. // Failed to add branch transaction error code.
  75. FailedToAddBranch ExceptionCode = 15
  76. // Failed to lock global transaction error code.
  77. FailedLockGlobalTransaction ExceptionCode = 16
  78. // FailedWriteSession
  79. FailedWriteSession ExceptionCode = 17
  80. // Failed to holder error code
  81. FailedStore ExceptionCode = 18
  82. )
  83. var ExceptionCode_name = map[int32]string{
  84. 0: "UnknownErr",
  85. 1: "BeginFailed",
  86. 2: "LockKeyConflict",
  87. 3: "IO",
  88. 4: "BranchRollbackFailedRetryable",
  89. 5: "BranchRollbackFailedUnretryable",
  90. 6: "BranchRegisterFailed",
  91. 7: "BranchReportFailed",
  92. 8: "LockableCheckFailed",
  93. 9: "BranchTransactionNotExist",
  94. 10: "GlobalTransactionNotExist",
  95. 11: "GlobalTransactionNotActive",
  96. 12: "GlobalTransactionStatusInvalid",
  97. 13: "FailedToSendBranchCommitRequest",
  98. 14: "FailedToSendBranchRollbackRequest",
  99. 15: "FailedToAddBranch",
  100. 16: "FailedLockGlobalTransaction",
  101. 17: "FailedWriteSession",
  102. 18: "FailedStore",
  103. }
  104. var ExceptionCode_value = map[string]int32{
  105. "UnknownErr": 0,
  106. "BeginFailed": 1,
  107. "LockKeyConflict": 2,
  108. "IO": 3,
  109. "BranchRollbackFailedRetryable": 4,
  110. "BranchRollbackFailedUnretryable": 5,
  111. "BranchRegisterFailed": 6,
  112. "BranchReportFailed": 7,
  113. "LockableCheckFailed": 8,
  114. "BranchTransactionNotExist": 9,
  115. "GlobalTransactionNotExist": 10,
  116. "GlobalTransactionNotActive": 11,
  117. "GlobalTransactionStatusInvalid": 12,
  118. "FailedToSendBranchCommitRequest": 13,
  119. "FailedToSendBranchRollbackRequest": 14,
  120. "FailedToAddBranch": 15,
  121. "FailedLockGlobalTransaction": 16,
  122. "FailedWriteSession": 17,
  123. "FailedStore": 18,
  124. }
  125. func (ExceptionCode) EnumDescriptor() ([]byte, []int) {
  126. return fileDescriptor_450a439f8893981f, []int{1}
  127. }
  128. type BranchMessageType int32
  129. const (
  130. TypeBranchCommit BranchMessageType = 0
  131. TypeBranchCommitResult BranchMessageType = 1
  132. TypeBranchRollback BranchMessageType = 2
  133. TypeBranchRollBackResult BranchMessageType = 3
  134. )
  135. var BranchMessageType_name = map[int32]string{
  136. 0: "TypeBranchCommit",
  137. 1: "TypeBranchCommitResult",
  138. 2: "TypeBranchRollback",
  139. 3: "TypeBranchRollBackResult",
  140. }
  141. var BranchMessageType_value = map[string]int32{
  142. "TypeBranchCommit": 0,
  143. "TypeBranchCommitResult": 1,
  144. "TypeBranchRollback": 2,
  145. "TypeBranchRollBackResult": 3,
  146. }
  147. func (BranchMessageType) EnumDescriptor() ([]byte, []int) {
  148. return fileDescriptor_450a439f8893981f, []int{2}
  149. }
  150. type GlobalSession_GlobalStatus int32
  151. const (
  152. // Un known global status.
  153. UnknownGlobalStatus GlobalSession_GlobalStatus = 0
  154. // PHASE 1: can accept new branch registering.
  155. Begin GlobalSession_GlobalStatus = 1
  156. // PHASE 2: Running Status: may be changed any time.
  157. Committing GlobalSession_GlobalStatus = 2
  158. // The Commit retrying.
  159. // Retrying commit after a recoverable failure.
  160. CommitRetrying GlobalSession_GlobalStatus = 3
  161. // Rolling back global status.
  162. RollingBack GlobalSession_GlobalStatus = 4
  163. // The Rollback retrying.
  164. // Retrying rollback after a recoverable failure.
  165. RollbackRetrying GlobalSession_GlobalStatus = 5
  166. // The Timeout rolling back.
  167. // Rolling back since timeout
  168. TimeoutRollingBack GlobalSession_GlobalStatus = 6
  169. // The Timeout rollback retrying.
  170. // Retrying rollback (since timeout) after a recoverable failure.
  171. TimeoutRollbackRetrying GlobalSession_GlobalStatus = 7
  172. // All branches can be async committed. The committing is NOT done yet, but it can be seen as
  173. // committed for TM/RM rpc_client.
  174. AsyncCommitting GlobalSession_GlobalStatus = 8
  175. // PHASE 2: Final Status: will NOT change any more.
  176. // Finally: global transaction is successfully committed.
  177. Committed GlobalSession_GlobalStatus = 9
  178. // The Commit failed.
  179. // Finally: failed to commit
  180. CommitFailed GlobalSession_GlobalStatus = 10
  181. // The RolledBack.
  182. // Finally: global transaction is successfully rollback.
  183. RolledBack GlobalSession_GlobalStatus = 11
  184. // The Rollback failed.
  185. // Finally: failed to rollback
  186. RollbackFailed GlobalSession_GlobalStatus = 12
  187. // The Timeout rolled back.
  188. // Finally: global transaction is successfully rollback since timeout.
  189. TimeoutRolledBack GlobalSession_GlobalStatus = 13
  190. // The Timeout rollback failed.
  191. // Finally: failed to rollback since timeout
  192. TimeoutRollbackFailed GlobalSession_GlobalStatus = 14
  193. // The Finished.
  194. // Not managed in getty_session MAP any more
  195. Finished GlobalSession_GlobalStatus = 15
  196. )
  197. var GlobalSession_GlobalStatus_name = map[int32]string{
  198. 0: "UnknownGlobalStatus",
  199. 1: "Begin",
  200. 2: "Committing",
  201. 3: "CommitRetrying",
  202. 4: "RollingBack",
  203. 5: "RollbackRetrying",
  204. 6: "TimeoutRollingBack",
  205. 7: "TimeoutRollbackRetrying",
  206. 8: "AsyncCommitting",
  207. 9: "Committed",
  208. 10: "CommitFailed",
  209. 11: "RolledBack",
  210. 12: "RollbackFailed",
  211. 13: "TimeoutRolledBack",
  212. 14: "TimeoutRollbackFailed",
  213. 15: "Finished",
  214. }
  215. var GlobalSession_GlobalStatus_value = map[string]int32{
  216. "UnknownGlobalStatus": 0,
  217. "Begin": 1,
  218. "Committing": 2,
  219. "CommitRetrying": 3,
  220. "RollingBack": 4,
  221. "RollbackRetrying": 5,
  222. "TimeoutRollingBack": 6,
  223. "TimeoutRollbackRetrying": 7,
  224. "AsyncCommitting": 8,
  225. "Committed": 9,
  226. "CommitFailed": 10,
  227. "RolledBack": 11,
  228. "RollbackFailed": 12,
  229. "TimeoutRolledBack": 13,
  230. "TimeoutRollbackFailed": 14,
  231. "Finished": 15,
  232. }
  233. func (GlobalSession_GlobalStatus) EnumDescriptor() ([]byte, []int) {
  234. return fileDescriptor_450a439f8893981f, []int{0, 0}
  235. }
  236. type BranchSession_BranchType int32
  237. const (
  238. AT BranchSession_BranchType = 0
  239. TCC BranchSession_BranchType = 1
  240. SAGA BranchSession_BranchType = 2
  241. XA BranchSession_BranchType = 3
  242. )
  243. var BranchSession_BranchType_name = map[int32]string{
  244. 0: "AT",
  245. 1: "TCC",
  246. 2: "SAGA",
  247. 3: "XA",
  248. }
  249. var BranchSession_BranchType_value = map[string]int32{
  250. "AT": 0,
  251. "TCC": 1,
  252. "SAGA": 2,
  253. "XA": 3,
  254. }
  255. func (BranchSession_BranchType) EnumDescriptor() ([]byte, []int) {
  256. return fileDescriptor_450a439f8893981f, []int{1, 0}
  257. }
  258. type BranchSession_BranchStatus int32
  259. const (
  260. // description:BranchStatus_Unknown branch status.
  261. UnknownBranchStatus BranchSession_BranchStatus = 0
  262. // description:BranchStatus_Registered to TC.
  263. Registered BranchSession_BranchStatus = 1
  264. // The Phase one done.
  265. // description:Branch logic is successfully done at phase one.
  266. PhaseOneDone BranchSession_BranchStatus = 2
  267. // The Phase one failed.
  268. // description:Branch logic is failed at phase one.
  269. PhaseOneFailed BranchSession_BranchStatus = 3
  270. // The Phase one timeout.
  271. // description:Branch logic is NOT reported for a timeout.
  272. PhaseOneTimeout BranchSession_BranchStatus = 4
  273. // The Phase two committed.
  274. // description:Commit logic is successfully done at phase two.
  275. PhaseTwoCommitted BranchSession_BranchStatus = 5
  276. // The Phase two commit failed retryable.
  277. // description:Commit logic is failed but retryable.
  278. PhaseTwoCommitFailedRetryable BranchSession_BranchStatus = 6
  279. // The Phase two commit failed and can not retry.
  280. // description:Commit logic is failed and NOT retryable.
  281. PhaseTwoCommitFailedCanNotRetry BranchSession_BranchStatus = 7
  282. // The Phase two rollback completed.
  283. // description:Rollback logic is successfully done at phase two.
  284. PhaseTwoRolledBack BranchSession_BranchStatus = 8
  285. // The Phase two rollback failed retryable.
  286. // description:Rollback logic is failed but retryable.
  287. PhaseTwoRollbackFailedRetryable BranchSession_BranchStatus = 9
  288. // The Phase two rollback failed and can not retry.
  289. // description:Rollback logic is failed but NOT retryable.
  290. PhaseTwoRollbackFailedCanNotRetry BranchSession_BranchStatus = 10
  291. )
  292. var BranchSession_BranchStatus_name = map[int32]string{
  293. 0: "UnknownBranchStatus",
  294. 1: "Registered",
  295. 2: "PhaseOneDone",
  296. 3: "PhaseOneFailed",
  297. 4: "PhaseOneTimeout",
  298. 5: "PhaseTwoCommitted",
  299. 6: "PhaseTwoCommitFailedRetryable",
  300. 7: "PhaseTwoCommitFailedCanNotRetry",
  301. 8: "PhaseTwoRolledBack",
  302. 9: "PhaseTwoRollbackFailedRetryable",
  303. 10: "PhaseTwoRollbackFailedCanNotRetry",
  304. }
  305. var BranchSession_BranchStatus_value = map[string]int32{
  306. "UnknownBranchStatus": 0,
  307. "Registered": 1,
  308. "PhaseOneDone": 2,
  309. "PhaseOneFailed": 3,
  310. "PhaseOneTimeout": 4,
  311. "PhaseTwoCommitted": 5,
  312. "PhaseTwoCommitFailedRetryable": 6,
  313. "PhaseTwoCommitFailedCanNotRetry": 7,
  314. "PhaseTwoRolledBack": 8,
  315. "PhaseTwoRollbackFailedRetryable": 9,
  316. "PhaseTwoRollbackFailedCanNotRetry": 10,
  317. }
  318. func (BranchSession_BranchStatus) EnumDescriptor() ([]byte, []int) {
  319. return fileDescriptor_450a439f8893981f, []int{1, 1}
  320. }
  321. type GlobalSession struct {
  322. Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
  323. XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
  324. TransactionID int64 `protobuf:"varint,3,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
  325. TransactionName string `protobuf:"bytes,4,opt,name=TransactionName,proto3" json:"TransactionName,omitempty" xorm:"transaction_name"`
  326. Timeout int32 `protobuf:"varint,5,opt,name=Timeout,proto3" json:"Timeout,omitempty" xorm:"timeout"`
  327. BeginTime int64 `protobuf:"varint,6,opt,name=BeginTime,proto3" json:"BeginTime,omitempty" xorm:"begin_time"`
  328. Status GlobalSession_GlobalStatus `protobuf:"varint,7,opt,name=Status,proto3,enum=apis.GlobalSession_GlobalStatus" json:"Status,omitempty" xorm:"status"`
  329. Active bool `protobuf:"varint,8,opt,name=Active,proto3" json:"Active,omitempty" xorm:"active"`
  330. }
  331. func (m *GlobalSession) Reset() { *m = GlobalSession{} }
  332. func (*GlobalSession) ProtoMessage() {}
  333. func (*GlobalSession) Descriptor() ([]byte, []int) {
  334. return fileDescriptor_450a439f8893981f, []int{0}
  335. }
  336. func (m *GlobalSession) XXX_Unmarshal(b []byte) error {
  337. return m.Unmarshal(b)
  338. }
  339. func (m *GlobalSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  340. if deterministic {
  341. return xxx_messageInfo_GlobalSession.Marshal(b, m, deterministic)
  342. } else {
  343. b = b[:cap(b)]
  344. n, err := m.MarshalToSizedBuffer(b)
  345. if err != nil {
  346. return nil, err
  347. }
  348. return b[:n], nil
  349. }
  350. }
  351. func (m *GlobalSession) XXX_Merge(src proto.Message) {
  352. xxx_messageInfo_GlobalSession.Merge(m, src)
  353. }
  354. func (m *GlobalSession) XXX_Size() int {
  355. return m.Size()
  356. }
  357. func (m *GlobalSession) XXX_DiscardUnknown() {
  358. xxx_messageInfo_GlobalSession.DiscardUnknown(m)
  359. }
  360. var xxx_messageInfo_GlobalSession proto.InternalMessageInfo
  361. func (m *GlobalSession) GetAddressing() string {
  362. if m != nil {
  363. return m.Addressing
  364. }
  365. return ""
  366. }
  367. func (m *GlobalSession) GetXID() string {
  368. if m != nil {
  369. return m.XID
  370. }
  371. return ""
  372. }
  373. func (m *GlobalSession) GetTransactionID() int64 {
  374. if m != nil {
  375. return m.TransactionID
  376. }
  377. return 0
  378. }
  379. func (m *GlobalSession) GetTransactionName() string {
  380. if m != nil {
  381. return m.TransactionName
  382. }
  383. return ""
  384. }
  385. func (m *GlobalSession) GetTimeout() int32 {
  386. if m != nil {
  387. return m.Timeout
  388. }
  389. return 0
  390. }
  391. func (m *GlobalSession) GetBeginTime() int64 {
  392. if m != nil {
  393. return m.BeginTime
  394. }
  395. return 0
  396. }
  397. func (m *GlobalSession) GetStatus() GlobalSession_GlobalStatus {
  398. if m != nil {
  399. return m.Status
  400. }
  401. return UnknownGlobalStatus
  402. }
  403. func (m *GlobalSession) GetActive() bool {
  404. if m != nil {
  405. return m.Active
  406. }
  407. return false
  408. }
  409. type BranchSession struct {
  410. Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
  411. XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
  412. BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
  413. TransactionID int64 `protobuf:"varint,4,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
  414. ResourceID string `protobuf:"bytes,5,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
  415. LockKey string `protobuf:"bytes,6,opt,name=LockKey,proto3" json:"LockKey,omitempty" xorm:"lock_key"`
  416. Type BranchSession_BranchType `protobuf:"varint,7,opt,name=Type,proto3,enum=apis.BranchSession_BranchType" json:"Type,omitempty" xorm:"branch_type"`
  417. Status BranchSession_BranchStatus `protobuf:"varint,8,opt,name=Status,proto3,enum=apis.BranchSession_BranchStatus" json:"Status,omitempty" xorm:"status"`
  418. ApplicationData []byte `protobuf:"bytes,9,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty" xorm:"application_data"`
  419. AsyncCommit bool `protobuf:"varint,10,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty" xorm:"async_commit"`
  420. }
  421. func (m *BranchSession) Reset() { *m = BranchSession{} }
  422. func (*BranchSession) ProtoMessage() {}
  423. func (*BranchSession) Descriptor() ([]byte, []int) {
  424. return fileDescriptor_450a439f8893981f, []int{1}
  425. }
  426. func (m *BranchSession) XXX_Unmarshal(b []byte) error {
  427. return m.Unmarshal(b)
  428. }
  429. func (m *BranchSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  430. if deterministic {
  431. return xxx_messageInfo_BranchSession.Marshal(b, m, deterministic)
  432. } else {
  433. b = b[:cap(b)]
  434. n, err := m.MarshalToSizedBuffer(b)
  435. if err != nil {
  436. return nil, err
  437. }
  438. return b[:n], nil
  439. }
  440. }
  441. func (m *BranchSession) XXX_Merge(src proto.Message) {
  442. xxx_messageInfo_BranchSession.Merge(m, src)
  443. }
  444. func (m *BranchSession) XXX_Size() int {
  445. return m.Size()
  446. }
  447. func (m *BranchSession) XXX_DiscardUnknown() {
  448. xxx_messageInfo_BranchSession.DiscardUnknown(m)
  449. }
  450. var xxx_messageInfo_BranchSession proto.InternalMessageInfo
  451. func (m *BranchSession) GetAddressing() string {
  452. if m != nil {
  453. return m.Addressing
  454. }
  455. return ""
  456. }
  457. func (m *BranchSession) GetXID() string {
  458. if m != nil {
  459. return m.XID
  460. }
  461. return ""
  462. }
  463. func (m *BranchSession) GetBranchID() int64 {
  464. if m != nil {
  465. return m.BranchID
  466. }
  467. return 0
  468. }
  469. func (m *BranchSession) GetTransactionID() int64 {
  470. if m != nil {
  471. return m.TransactionID
  472. }
  473. return 0
  474. }
  475. func (m *BranchSession) GetResourceID() string {
  476. if m != nil {
  477. return m.ResourceID
  478. }
  479. return ""
  480. }
  481. func (m *BranchSession) GetLockKey() string {
  482. if m != nil {
  483. return m.LockKey
  484. }
  485. return ""
  486. }
  487. func (m *BranchSession) GetType() BranchSession_BranchType {
  488. if m != nil {
  489. return m.Type
  490. }
  491. return AT
  492. }
  493. func (m *BranchSession) GetStatus() BranchSession_BranchStatus {
  494. if m != nil {
  495. return m.Status
  496. }
  497. return UnknownBranchStatus
  498. }
  499. func (m *BranchSession) GetApplicationData() []byte {
  500. if m != nil {
  501. return m.ApplicationData
  502. }
  503. return nil
  504. }
  505. func (m *BranchSession) GetAsyncCommit() bool {
  506. if m != nil {
  507. return m.AsyncCommit
  508. }
  509. return false
  510. }
  511. type RowLock struct {
  512. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
  513. TransactionID int64 `protobuf:"varint,2,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
  514. BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
  515. ResourceID string `protobuf:"bytes,4,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
  516. TableName string `protobuf:"bytes,5,opt,name=TableName,proto3" json:"TableName,omitempty" xorm:"table_name"`
  517. PK string `protobuf:"bytes,6,opt,name=PK,proto3" json:"PK,omitempty" xorm:"pk"`
  518. RowKey string `protobuf:"bytes,7,opt,name=RowKey,proto3" json:"RowKey,omitempty" xorm:"row_key"`
  519. }
  520. func (m *RowLock) Reset() { *m = RowLock{} }
  521. func (*RowLock) ProtoMessage() {}
  522. func (*RowLock) Descriptor() ([]byte, []int) {
  523. return fileDescriptor_450a439f8893981f, []int{2}
  524. }
  525. func (m *RowLock) XXX_Unmarshal(b []byte) error {
  526. return m.Unmarshal(b)
  527. }
  528. func (m *RowLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  529. if deterministic {
  530. return xxx_messageInfo_RowLock.Marshal(b, m, deterministic)
  531. } else {
  532. b = b[:cap(b)]
  533. n, err := m.MarshalToSizedBuffer(b)
  534. if err != nil {
  535. return nil, err
  536. }
  537. return b[:n], nil
  538. }
  539. }
  540. func (m *RowLock) XXX_Merge(src proto.Message) {
  541. xxx_messageInfo_RowLock.Merge(m, src)
  542. }
  543. func (m *RowLock) XXX_Size() int {
  544. return m.Size()
  545. }
  546. func (m *RowLock) XXX_DiscardUnknown() {
  547. xxx_messageInfo_RowLock.DiscardUnknown(m)
  548. }
  549. var xxx_messageInfo_RowLock proto.InternalMessageInfo
  550. func (m *RowLock) GetXID() string {
  551. if m != nil {
  552. return m.XID
  553. }
  554. return ""
  555. }
  556. func (m *RowLock) GetTransactionID() int64 {
  557. if m != nil {
  558. return m.TransactionID
  559. }
  560. return 0
  561. }
  562. func (m *RowLock) GetBranchID() int64 {
  563. if m != nil {
  564. return m.BranchID
  565. }
  566. return 0
  567. }
  568. func (m *RowLock) GetResourceID() string {
  569. if m != nil {
  570. return m.ResourceID
  571. }
  572. return ""
  573. }
  574. func (m *RowLock) GetTableName() string {
  575. if m != nil {
  576. return m.TableName
  577. }
  578. return ""
  579. }
  580. func (m *RowLock) GetPK() string {
  581. if m != nil {
  582. return m.PK
  583. }
  584. return ""
  585. }
  586. func (m *RowLock) GetRowKey() string {
  587. if m != nil {
  588. return m.RowKey
  589. }
  590. return ""
  591. }
  592. // GlobalBeginRequest represents a global transaction begin
  593. type GlobalBeginRequest struct {
  594. Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
  595. Timeout int32 `protobuf:"varint,2,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
  596. TransactionName string `protobuf:"bytes,3,opt,name=TransactionName,proto3" json:"TransactionName,omitempty"`
  597. }
  598. func (m *GlobalBeginRequest) Reset() { *m = GlobalBeginRequest{} }
  599. func (*GlobalBeginRequest) ProtoMessage() {}
  600. func (*GlobalBeginRequest) Descriptor() ([]byte, []int) {
  601. return fileDescriptor_450a439f8893981f, []int{3}
  602. }
  603. func (m *GlobalBeginRequest) XXX_Unmarshal(b []byte) error {
  604. return m.Unmarshal(b)
  605. }
  606. func (m *GlobalBeginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  607. if deterministic {
  608. return xxx_messageInfo_GlobalBeginRequest.Marshal(b, m, deterministic)
  609. } else {
  610. b = b[:cap(b)]
  611. n, err := m.MarshalToSizedBuffer(b)
  612. if err != nil {
  613. return nil, err
  614. }
  615. return b[:n], nil
  616. }
  617. }
  618. func (m *GlobalBeginRequest) XXX_Merge(src proto.Message) {
  619. xxx_messageInfo_GlobalBeginRequest.Merge(m, src)
  620. }
  621. func (m *GlobalBeginRequest) XXX_Size() int {
  622. return m.Size()
  623. }
  624. func (m *GlobalBeginRequest) XXX_DiscardUnknown() {
  625. xxx_messageInfo_GlobalBeginRequest.DiscardUnknown(m)
  626. }
  627. var xxx_messageInfo_GlobalBeginRequest proto.InternalMessageInfo
  628. func (m *GlobalBeginRequest) GetAddressing() string {
  629. if m != nil {
  630. return m.Addressing
  631. }
  632. return ""
  633. }
  634. func (m *GlobalBeginRequest) GetTimeout() int32 {
  635. if m != nil {
  636. return m.Timeout
  637. }
  638. return 0
  639. }
  640. func (m *GlobalBeginRequest) GetTransactionName() string {
  641. if m != nil {
  642. return m.TransactionName
  643. }
  644. return ""
  645. }
  646. // GlobalBeginResponse represents a response to GlobalBeginRequest
  647. type GlobalBeginResponse struct {
  648. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  649. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  650. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  651. XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
  652. }
  653. func (m *GlobalBeginResponse) Reset() { *m = GlobalBeginResponse{} }
  654. func (*GlobalBeginResponse) ProtoMessage() {}
  655. func (*GlobalBeginResponse) Descriptor() ([]byte, []int) {
  656. return fileDescriptor_450a439f8893981f, []int{4}
  657. }
  658. func (m *GlobalBeginResponse) XXX_Unmarshal(b []byte) error {
  659. return m.Unmarshal(b)
  660. }
  661. func (m *GlobalBeginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  662. if deterministic {
  663. return xxx_messageInfo_GlobalBeginResponse.Marshal(b, m, deterministic)
  664. } else {
  665. b = b[:cap(b)]
  666. n, err := m.MarshalToSizedBuffer(b)
  667. if err != nil {
  668. return nil, err
  669. }
  670. return b[:n], nil
  671. }
  672. }
  673. func (m *GlobalBeginResponse) XXX_Merge(src proto.Message) {
  674. xxx_messageInfo_GlobalBeginResponse.Merge(m, src)
  675. }
  676. func (m *GlobalBeginResponse) XXX_Size() int {
  677. return m.Size()
  678. }
  679. func (m *GlobalBeginResponse) XXX_DiscardUnknown() {
  680. xxx_messageInfo_GlobalBeginResponse.DiscardUnknown(m)
  681. }
  682. var xxx_messageInfo_GlobalBeginResponse proto.InternalMessageInfo
  683. func (m *GlobalBeginResponse) GetResultCode() ResultCode {
  684. if m != nil {
  685. return m.ResultCode
  686. }
  687. return ResultCodeFailed
  688. }
  689. func (m *GlobalBeginResponse) GetExceptionCode() ExceptionCode {
  690. if m != nil {
  691. return m.ExceptionCode
  692. }
  693. return UnknownErr
  694. }
  695. func (m *GlobalBeginResponse) GetMessage() string {
  696. if m != nil {
  697. return m.Message
  698. }
  699. return ""
  700. }
  701. func (m *GlobalBeginResponse) GetXID() string {
  702. if m != nil {
  703. return m.XID
  704. }
  705. return ""
  706. }
  707. // BranchRegisterRequest represents a branch transaction join in the global transaction
  708. type BranchRegisterRequest struct {
  709. Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
  710. XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty"`
  711. ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
  712. LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
  713. BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
  714. ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
  715. AsyncCommit bool `protobuf:"varint,7,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty"`
  716. }
  717. func (m *BranchRegisterRequest) Reset() { *m = BranchRegisterRequest{} }
  718. func (*BranchRegisterRequest) ProtoMessage() {}
  719. func (*BranchRegisterRequest) Descriptor() ([]byte, []int) {
  720. return fileDescriptor_450a439f8893981f, []int{5}
  721. }
  722. func (m *BranchRegisterRequest) XXX_Unmarshal(b []byte) error {
  723. return m.Unmarshal(b)
  724. }
  725. func (m *BranchRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  726. if deterministic {
  727. return xxx_messageInfo_BranchRegisterRequest.Marshal(b, m, deterministic)
  728. } else {
  729. b = b[:cap(b)]
  730. n, err := m.MarshalToSizedBuffer(b)
  731. if err != nil {
  732. return nil, err
  733. }
  734. return b[:n], nil
  735. }
  736. }
  737. func (m *BranchRegisterRequest) XXX_Merge(src proto.Message) {
  738. xxx_messageInfo_BranchRegisterRequest.Merge(m, src)
  739. }
  740. func (m *BranchRegisterRequest) XXX_Size() int {
  741. return m.Size()
  742. }
  743. func (m *BranchRegisterRequest) XXX_DiscardUnknown() {
  744. xxx_messageInfo_BranchRegisterRequest.DiscardUnknown(m)
  745. }
  746. var xxx_messageInfo_BranchRegisterRequest proto.InternalMessageInfo
  747. func (m *BranchRegisterRequest) GetAddressing() string {
  748. if m != nil {
  749. return m.Addressing
  750. }
  751. return ""
  752. }
  753. func (m *BranchRegisterRequest) GetXID() string {
  754. if m != nil {
  755. return m.XID
  756. }
  757. return ""
  758. }
  759. func (m *BranchRegisterRequest) GetResourceID() string {
  760. if m != nil {
  761. return m.ResourceID
  762. }
  763. return ""
  764. }
  765. func (m *BranchRegisterRequest) GetLockKey() string {
  766. if m != nil {
  767. return m.LockKey
  768. }
  769. return ""
  770. }
  771. func (m *BranchRegisterRequest) GetBranchType() BranchSession_BranchType {
  772. if m != nil {
  773. return m.BranchType
  774. }
  775. return AT
  776. }
  777. func (m *BranchRegisterRequest) GetApplicationData() []byte {
  778. if m != nil {
  779. return m.ApplicationData
  780. }
  781. return nil
  782. }
  783. func (m *BranchRegisterRequest) GetAsyncCommit() bool {
  784. if m != nil {
  785. return m.AsyncCommit
  786. }
  787. return false
  788. }
  789. // BranchRegisterResponse represents a response to BranchRegisterRequest
  790. type BranchRegisterResponse struct {
  791. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  792. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  793. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  794. BranchID int64 `protobuf:"varint,4,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  795. }
  796. func (m *BranchRegisterResponse) Reset() { *m = BranchRegisterResponse{} }
  797. func (*BranchRegisterResponse) ProtoMessage() {}
  798. func (*BranchRegisterResponse) Descriptor() ([]byte, []int) {
  799. return fileDescriptor_450a439f8893981f, []int{6}
  800. }
  801. func (m *BranchRegisterResponse) XXX_Unmarshal(b []byte) error {
  802. return m.Unmarshal(b)
  803. }
  804. func (m *BranchRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  805. if deterministic {
  806. return xxx_messageInfo_BranchRegisterResponse.Marshal(b, m, deterministic)
  807. } else {
  808. b = b[:cap(b)]
  809. n, err := m.MarshalToSizedBuffer(b)
  810. if err != nil {
  811. return nil, err
  812. }
  813. return b[:n], nil
  814. }
  815. }
  816. func (m *BranchRegisterResponse) XXX_Merge(src proto.Message) {
  817. xxx_messageInfo_BranchRegisterResponse.Merge(m, src)
  818. }
  819. func (m *BranchRegisterResponse) XXX_Size() int {
  820. return m.Size()
  821. }
  822. func (m *BranchRegisterResponse) XXX_DiscardUnknown() {
  823. xxx_messageInfo_BranchRegisterResponse.DiscardUnknown(m)
  824. }
  825. var xxx_messageInfo_BranchRegisterResponse proto.InternalMessageInfo
  826. func (m *BranchRegisterResponse) GetResultCode() ResultCode {
  827. if m != nil {
  828. return m.ResultCode
  829. }
  830. return ResultCodeFailed
  831. }
  832. func (m *BranchRegisterResponse) GetExceptionCode() ExceptionCode {
  833. if m != nil {
  834. return m.ExceptionCode
  835. }
  836. return UnknownErr
  837. }
  838. func (m *BranchRegisterResponse) GetMessage() string {
  839. if m != nil {
  840. return m.Message
  841. }
  842. return ""
  843. }
  844. func (m *BranchRegisterResponse) GetBranchID() int64 {
  845. if m != nil {
  846. return m.BranchID
  847. }
  848. return 0
  849. }
  850. // BranchReportRequest represents a request to report branch transaction execution status
  851. type BranchReportRequest struct {
  852. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  853. BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  854. ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
  855. BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
  856. BranchStatus BranchSession_BranchStatus `protobuf:"varint,5,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
  857. ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
  858. }
  859. func (m *BranchReportRequest) Reset() { *m = BranchReportRequest{} }
  860. func (*BranchReportRequest) ProtoMessage() {}
  861. func (*BranchReportRequest) Descriptor() ([]byte, []int) {
  862. return fileDescriptor_450a439f8893981f, []int{7}
  863. }
  864. func (m *BranchReportRequest) XXX_Unmarshal(b []byte) error {
  865. return m.Unmarshal(b)
  866. }
  867. func (m *BranchReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  868. if deterministic {
  869. return xxx_messageInfo_BranchReportRequest.Marshal(b, m, deterministic)
  870. } else {
  871. b = b[:cap(b)]
  872. n, err := m.MarshalToSizedBuffer(b)
  873. if err != nil {
  874. return nil, err
  875. }
  876. return b[:n], nil
  877. }
  878. }
  879. func (m *BranchReportRequest) XXX_Merge(src proto.Message) {
  880. xxx_messageInfo_BranchReportRequest.Merge(m, src)
  881. }
  882. func (m *BranchReportRequest) XXX_Size() int {
  883. return m.Size()
  884. }
  885. func (m *BranchReportRequest) XXX_DiscardUnknown() {
  886. xxx_messageInfo_BranchReportRequest.DiscardUnknown(m)
  887. }
  888. var xxx_messageInfo_BranchReportRequest proto.InternalMessageInfo
  889. func (m *BranchReportRequest) GetXID() string {
  890. if m != nil {
  891. return m.XID
  892. }
  893. return ""
  894. }
  895. func (m *BranchReportRequest) GetBranchID() int64 {
  896. if m != nil {
  897. return m.BranchID
  898. }
  899. return 0
  900. }
  901. func (m *BranchReportRequest) GetResourceID() string {
  902. if m != nil {
  903. return m.ResourceID
  904. }
  905. return ""
  906. }
  907. func (m *BranchReportRequest) GetBranchType() BranchSession_BranchType {
  908. if m != nil {
  909. return m.BranchType
  910. }
  911. return AT
  912. }
  913. func (m *BranchReportRequest) GetBranchStatus() BranchSession_BranchStatus {
  914. if m != nil {
  915. return m.BranchStatus
  916. }
  917. return UnknownBranchStatus
  918. }
  919. func (m *BranchReportRequest) GetApplicationData() []byte {
  920. if m != nil {
  921. return m.ApplicationData
  922. }
  923. return nil
  924. }
  925. // BranchReportResponse represents a response to BranchReportRequest
  926. type BranchReportResponse struct {
  927. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  928. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  929. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  930. }
  931. func (m *BranchReportResponse) Reset() { *m = BranchReportResponse{} }
  932. func (*BranchReportResponse) ProtoMessage() {}
  933. func (*BranchReportResponse) Descriptor() ([]byte, []int) {
  934. return fileDescriptor_450a439f8893981f, []int{8}
  935. }
  936. func (m *BranchReportResponse) XXX_Unmarshal(b []byte) error {
  937. return m.Unmarshal(b)
  938. }
  939. func (m *BranchReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  940. if deterministic {
  941. return xxx_messageInfo_BranchReportResponse.Marshal(b, m, deterministic)
  942. } else {
  943. b = b[:cap(b)]
  944. n, err := m.MarshalToSizedBuffer(b)
  945. if err != nil {
  946. return nil, err
  947. }
  948. return b[:n], nil
  949. }
  950. }
  951. func (m *BranchReportResponse) XXX_Merge(src proto.Message) {
  952. xxx_messageInfo_BranchReportResponse.Merge(m, src)
  953. }
  954. func (m *BranchReportResponse) XXX_Size() int {
  955. return m.Size()
  956. }
  957. func (m *BranchReportResponse) XXX_DiscardUnknown() {
  958. xxx_messageInfo_BranchReportResponse.DiscardUnknown(m)
  959. }
  960. var xxx_messageInfo_BranchReportResponse proto.InternalMessageInfo
  961. func (m *BranchReportResponse) GetResultCode() ResultCode {
  962. if m != nil {
  963. return m.ResultCode
  964. }
  965. return ResultCodeFailed
  966. }
  967. func (m *BranchReportResponse) GetExceptionCode() ExceptionCode {
  968. if m != nil {
  969. return m.ExceptionCode
  970. }
  971. return UnknownErr
  972. }
  973. func (m *BranchReportResponse) GetMessage() string {
  974. if m != nil {
  975. return m.Message
  976. }
  977. return ""
  978. }
  979. // GlobalLockQueryRequest represents a request to query the global lock
  980. type GlobalLockQueryRequest struct {
  981. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  982. ResourceID string `protobuf:"bytes,2,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
  983. LockKey string `protobuf:"bytes,3,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
  984. BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
  985. }
  986. func (m *GlobalLockQueryRequest) Reset() { *m = GlobalLockQueryRequest{} }
  987. func (*GlobalLockQueryRequest) ProtoMessage() {}
  988. func (*GlobalLockQueryRequest) Descriptor() ([]byte, []int) {
  989. return fileDescriptor_450a439f8893981f, []int{9}
  990. }
  991. func (m *GlobalLockQueryRequest) XXX_Unmarshal(b []byte) error {
  992. return m.Unmarshal(b)
  993. }
  994. func (m *GlobalLockQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  995. if deterministic {
  996. return xxx_messageInfo_GlobalLockQueryRequest.Marshal(b, m, deterministic)
  997. } else {
  998. b = b[:cap(b)]
  999. n, err := m.MarshalToSizedBuffer(b)
  1000. if err != nil {
  1001. return nil, err
  1002. }
  1003. return b[:n], nil
  1004. }
  1005. }
  1006. func (m *GlobalLockQueryRequest) XXX_Merge(src proto.Message) {
  1007. xxx_messageInfo_GlobalLockQueryRequest.Merge(m, src)
  1008. }
  1009. func (m *GlobalLockQueryRequest) XXX_Size() int {
  1010. return m.Size()
  1011. }
  1012. func (m *GlobalLockQueryRequest) XXX_DiscardUnknown() {
  1013. xxx_messageInfo_GlobalLockQueryRequest.DiscardUnknown(m)
  1014. }
  1015. var xxx_messageInfo_GlobalLockQueryRequest proto.InternalMessageInfo
  1016. func (m *GlobalLockQueryRequest) GetXID() string {
  1017. if m != nil {
  1018. return m.XID
  1019. }
  1020. return ""
  1021. }
  1022. func (m *GlobalLockQueryRequest) GetResourceID() string {
  1023. if m != nil {
  1024. return m.ResourceID
  1025. }
  1026. return ""
  1027. }
  1028. func (m *GlobalLockQueryRequest) GetLockKey() string {
  1029. if m != nil {
  1030. return m.LockKey
  1031. }
  1032. return ""
  1033. }
  1034. func (m *GlobalLockQueryRequest) GetBranchType() BranchSession_BranchType {
  1035. if m != nil {
  1036. return m.BranchType
  1037. }
  1038. return AT
  1039. }
  1040. // GlobalLockQueryResponse represents a response to GlobalLockQueryRequest
  1041. type GlobalLockQueryResponse struct {
  1042. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1043. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1044. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1045. Lockable bool `protobuf:"varint,4,opt,name=Lockable,proto3" json:"Lockable,omitempty"`
  1046. }
  1047. func (m *GlobalLockQueryResponse) Reset() { *m = GlobalLockQueryResponse{} }
  1048. func (*GlobalLockQueryResponse) ProtoMessage() {}
  1049. func (*GlobalLockQueryResponse) Descriptor() ([]byte, []int) {
  1050. return fileDescriptor_450a439f8893981f, []int{10}
  1051. }
  1052. func (m *GlobalLockQueryResponse) XXX_Unmarshal(b []byte) error {
  1053. return m.Unmarshal(b)
  1054. }
  1055. func (m *GlobalLockQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1056. if deterministic {
  1057. return xxx_messageInfo_GlobalLockQueryResponse.Marshal(b, m, deterministic)
  1058. } else {
  1059. b = b[:cap(b)]
  1060. n, err := m.MarshalToSizedBuffer(b)
  1061. if err != nil {
  1062. return nil, err
  1063. }
  1064. return b[:n], nil
  1065. }
  1066. }
  1067. func (m *GlobalLockQueryResponse) XXX_Merge(src proto.Message) {
  1068. xxx_messageInfo_GlobalLockQueryResponse.Merge(m, src)
  1069. }
  1070. func (m *GlobalLockQueryResponse) XXX_Size() int {
  1071. return m.Size()
  1072. }
  1073. func (m *GlobalLockQueryResponse) XXX_DiscardUnknown() {
  1074. xxx_messageInfo_GlobalLockQueryResponse.DiscardUnknown(m)
  1075. }
  1076. var xxx_messageInfo_GlobalLockQueryResponse proto.InternalMessageInfo
  1077. func (m *GlobalLockQueryResponse) GetResultCode() ResultCode {
  1078. if m != nil {
  1079. return m.ResultCode
  1080. }
  1081. return ResultCodeFailed
  1082. }
  1083. func (m *GlobalLockQueryResponse) GetExceptionCode() ExceptionCode {
  1084. if m != nil {
  1085. return m.ExceptionCode
  1086. }
  1087. return UnknownErr
  1088. }
  1089. func (m *GlobalLockQueryResponse) GetMessage() string {
  1090. if m != nil {
  1091. return m.Message
  1092. }
  1093. return ""
  1094. }
  1095. func (m *GlobalLockQueryResponse) GetLockable() bool {
  1096. if m != nil {
  1097. return m.Lockable
  1098. }
  1099. return false
  1100. }
  1101. // GlobalStatusRequest represents a request to query the global transaction status
  1102. type GlobalStatusRequest struct {
  1103. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1104. }
  1105. func (m *GlobalStatusRequest) Reset() { *m = GlobalStatusRequest{} }
  1106. func (*GlobalStatusRequest) ProtoMessage() {}
  1107. func (*GlobalStatusRequest) Descriptor() ([]byte, []int) {
  1108. return fileDescriptor_450a439f8893981f, []int{11}
  1109. }
  1110. func (m *GlobalStatusRequest) XXX_Unmarshal(b []byte) error {
  1111. return m.Unmarshal(b)
  1112. }
  1113. func (m *GlobalStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1114. if deterministic {
  1115. return xxx_messageInfo_GlobalStatusRequest.Marshal(b, m, deterministic)
  1116. } else {
  1117. b = b[:cap(b)]
  1118. n, err := m.MarshalToSizedBuffer(b)
  1119. if err != nil {
  1120. return nil, err
  1121. }
  1122. return b[:n], nil
  1123. }
  1124. }
  1125. func (m *GlobalStatusRequest) XXX_Merge(src proto.Message) {
  1126. xxx_messageInfo_GlobalStatusRequest.Merge(m, src)
  1127. }
  1128. func (m *GlobalStatusRequest) XXX_Size() int {
  1129. return m.Size()
  1130. }
  1131. func (m *GlobalStatusRequest) XXX_DiscardUnknown() {
  1132. xxx_messageInfo_GlobalStatusRequest.DiscardUnknown(m)
  1133. }
  1134. var xxx_messageInfo_GlobalStatusRequest proto.InternalMessageInfo
  1135. func (m *GlobalStatusRequest) GetXID() string {
  1136. if m != nil {
  1137. return m.XID
  1138. }
  1139. return ""
  1140. }
  1141. // GlobalStatusResponse represents a response to GlobalStatusRequest
  1142. type GlobalStatusResponse struct {
  1143. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1144. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1145. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1146. GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
  1147. }
  1148. func (m *GlobalStatusResponse) Reset() { *m = GlobalStatusResponse{} }
  1149. func (*GlobalStatusResponse) ProtoMessage() {}
  1150. func (*GlobalStatusResponse) Descriptor() ([]byte, []int) {
  1151. return fileDescriptor_450a439f8893981f, []int{12}
  1152. }
  1153. func (m *GlobalStatusResponse) XXX_Unmarshal(b []byte) error {
  1154. return m.Unmarshal(b)
  1155. }
  1156. func (m *GlobalStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1157. if deterministic {
  1158. return xxx_messageInfo_GlobalStatusResponse.Marshal(b, m, deterministic)
  1159. } else {
  1160. b = b[:cap(b)]
  1161. n, err := m.MarshalToSizedBuffer(b)
  1162. if err != nil {
  1163. return nil, err
  1164. }
  1165. return b[:n], nil
  1166. }
  1167. }
  1168. func (m *GlobalStatusResponse) XXX_Merge(src proto.Message) {
  1169. xxx_messageInfo_GlobalStatusResponse.Merge(m, src)
  1170. }
  1171. func (m *GlobalStatusResponse) XXX_Size() int {
  1172. return m.Size()
  1173. }
  1174. func (m *GlobalStatusResponse) XXX_DiscardUnknown() {
  1175. xxx_messageInfo_GlobalStatusResponse.DiscardUnknown(m)
  1176. }
  1177. var xxx_messageInfo_GlobalStatusResponse proto.InternalMessageInfo
  1178. func (m *GlobalStatusResponse) GetResultCode() ResultCode {
  1179. if m != nil {
  1180. return m.ResultCode
  1181. }
  1182. return ResultCodeFailed
  1183. }
  1184. func (m *GlobalStatusResponse) GetExceptionCode() ExceptionCode {
  1185. if m != nil {
  1186. return m.ExceptionCode
  1187. }
  1188. return UnknownErr
  1189. }
  1190. func (m *GlobalStatusResponse) GetMessage() string {
  1191. if m != nil {
  1192. return m.Message
  1193. }
  1194. return ""
  1195. }
  1196. func (m *GlobalStatusResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
  1197. if m != nil {
  1198. return m.GlobalStatus
  1199. }
  1200. return UnknownGlobalStatus
  1201. }
  1202. // GlobalCommitRequest represents a request to commit global transaction
  1203. type GlobalCommitRequest struct {
  1204. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1205. }
  1206. func (m *GlobalCommitRequest) Reset() { *m = GlobalCommitRequest{} }
  1207. func (*GlobalCommitRequest) ProtoMessage() {}
  1208. func (*GlobalCommitRequest) Descriptor() ([]byte, []int) {
  1209. return fileDescriptor_450a439f8893981f, []int{13}
  1210. }
  1211. func (m *GlobalCommitRequest) XXX_Unmarshal(b []byte) error {
  1212. return m.Unmarshal(b)
  1213. }
  1214. func (m *GlobalCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1215. if deterministic {
  1216. return xxx_messageInfo_GlobalCommitRequest.Marshal(b, m, deterministic)
  1217. } else {
  1218. b = b[:cap(b)]
  1219. n, err := m.MarshalToSizedBuffer(b)
  1220. if err != nil {
  1221. return nil, err
  1222. }
  1223. return b[:n], nil
  1224. }
  1225. }
  1226. func (m *GlobalCommitRequest) XXX_Merge(src proto.Message) {
  1227. xxx_messageInfo_GlobalCommitRequest.Merge(m, src)
  1228. }
  1229. func (m *GlobalCommitRequest) XXX_Size() int {
  1230. return m.Size()
  1231. }
  1232. func (m *GlobalCommitRequest) XXX_DiscardUnknown() {
  1233. xxx_messageInfo_GlobalCommitRequest.DiscardUnknown(m)
  1234. }
  1235. var xxx_messageInfo_GlobalCommitRequest proto.InternalMessageInfo
  1236. func (m *GlobalCommitRequest) GetXID() string {
  1237. if m != nil {
  1238. return m.XID
  1239. }
  1240. return ""
  1241. }
  1242. // GlobalCommitResponse represents a response to GlobalCommitRequest
  1243. type GlobalCommitResponse struct {
  1244. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1245. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1246. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1247. GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
  1248. }
  1249. func (m *GlobalCommitResponse) Reset() { *m = GlobalCommitResponse{} }
  1250. func (*GlobalCommitResponse) ProtoMessage() {}
  1251. func (*GlobalCommitResponse) Descriptor() ([]byte, []int) {
  1252. return fileDescriptor_450a439f8893981f, []int{14}
  1253. }
  1254. func (m *GlobalCommitResponse) XXX_Unmarshal(b []byte) error {
  1255. return m.Unmarshal(b)
  1256. }
  1257. func (m *GlobalCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1258. if deterministic {
  1259. return xxx_messageInfo_GlobalCommitResponse.Marshal(b, m, deterministic)
  1260. } else {
  1261. b = b[:cap(b)]
  1262. n, err := m.MarshalToSizedBuffer(b)
  1263. if err != nil {
  1264. return nil, err
  1265. }
  1266. return b[:n], nil
  1267. }
  1268. }
  1269. func (m *GlobalCommitResponse) XXX_Merge(src proto.Message) {
  1270. xxx_messageInfo_GlobalCommitResponse.Merge(m, src)
  1271. }
  1272. func (m *GlobalCommitResponse) XXX_Size() int {
  1273. return m.Size()
  1274. }
  1275. func (m *GlobalCommitResponse) XXX_DiscardUnknown() {
  1276. xxx_messageInfo_GlobalCommitResponse.DiscardUnknown(m)
  1277. }
  1278. var xxx_messageInfo_GlobalCommitResponse proto.InternalMessageInfo
  1279. func (m *GlobalCommitResponse) GetResultCode() ResultCode {
  1280. if m != nil {
  1281. return m.ResultCode
  1282. }
  1283. return ResultCodeFailed
  1284. }
  1285. func (m *GlobalCommitResponse) GetExceptionCode() ExceptionCode {
  1286. if m != nil {
  1287. return m.ExceptionCode
  1288. }
  1289. return UnknownErr
  1290. }
  1291. func (m *GlobalCommitResponse) GetMessage() string {
  1292. if m != nil {
  1293. return m.Message
  1294. }
  1295. return ""
  1296. }
  1297. func (m *GlobalCommitResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
  1298. if m != nil {
  1299. return m.GlobalStatus
  1300. }
  1301. return UnknownGlobalStatus
  1302. }
  1303. // GlobalRollbackRequest represents a request to rollback global transaction
  1304. type GlobalRollbackRequest struct {
  1305. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1306. }
  1307. func (m *GlobalRollbackRequest) Reset() { *m = GlobalRollbackRequest{} }
  1308. func (*GlobalRollbackRequest) ProtoMessage() {}
  1309. func (*GlobalRollbackRequest) Descriptor() ([]byte, []int) {
  1310. return fileDescriptor_450a439f8893981f, []int{15}
  1311. }
  1312. func (m *GlobalRollbackRequest) XXX_Unmarshal(b []byte) error {
  1313. return m.Unmarshal(b)
  1314. }
  1315. func (m *GlobalRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1316. if deterministic {
  1317. return xxx_messageInfo_GlobalRollbackRequest.Marshal(b, m, deterministic)
  1318. } else {
  1319. b = b[:cap(b)]
  1320. n, err := m.MarshalToSizedBuffer(b)
  1321. if err != nil {
  1322. return nil, err
  1323. }
  1324. return b[:n], nil
  1325. }
  1326. }
  1327. func (m *GlobalRollbackRequest) XXX_Merge(src proto.Message) {
  1328. xxx_messageInfo_GlobalRollbackRequest.Merge(m, src)
  1329. }
  1330. func (m *GlobalRollbackRequest) XXX_Size() int {
  1331. return m.Size()
  1332. }
  1333. func (m *GlobalRollbackRequest) XXX_DiscardUnknown() {
  1334. xxx_messageInfo_GlobalRollbackRequest.DiscardUnknown(m)
  1335. }
  1336. var xxx_messageInfo_GlobalRollbackRequest proto.InternalMessageInfo
  1337. func (m *GlobalRollbackRequest) GetXID() string {
  1338. if m != nil {
  1339. return m.XID
  1340. }
  1341. return ""
  1342. }
  1343. // GlobalRollbackResponse represents a response to GlobalRollbackRequest
  1344. type GlobalRollbackResponse struct {
  1345. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1346. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1347. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1348. GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
  1349. }
  1350. func (m *GlobalRollbackResponse) Reset() { *m = GlobalRollbackResponse{} }
  1351. func (*GlobalRollbackResponse) ProtoMessage() {}
  1352. func (*GlobalRollbackResponse) Descriptor() ([]byte, []int) {
  1353. return fileDescriptor_450a439f8893981f, []int{16}
  1354. }
  1355. func (m *GlobalRollbackResponse) XXX_Unmarshal(b []byte) error {
  1356. return m.Unmarshal(b)
  1357. }
  1358. func (m *GlobalRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1359. if deterministic {
  1360. return xxx_messageInfo_GlobalRollbackResponse.Marshal(b, m, deterministic)
  1361. } else {
  1362. b = b[:cap(b)]
  1363. n, err := m.MarshalToSizedBuffer(b)
  1364. if err != nil {
  1365. return nil, err
  1366. }
  1367. return b[:n], nil
  1368. }
  1369. }
  1370. func (m *GlobalRollbackResponse) XXX_Merge(src proto.Message) {
  1371. xxx_messageInfo_GlobalRollbackResponse.Merge(m, src)
  1372. }
  1373. func (m *GlobalRollbackResponse) XXX_Size() int {
  1374. return m.Size()
  1375. }
  1376. func (m *GlobalRollbackResponse) XXX_DiscardUnknown() {
  1377. xxx_messageInfo_GlobalRollbackResponse.DiscardUnknown(m)
  1378. }
  1379. var xxx_messageInfo_GlobalRollbackResponse proto.InternalMessageInfo
  1380. func (m *GlobalRollbackResponse) GetResultCode() ResultCode {
  1381. if m != nil {
  1382. return m.ResultCode
  1383. }
  1384. return ResultCodeFailed
  1385. }
  1386. func (m *GlobalRollbackResponse) GetExceptionCode() ExceptionCode {
  1387. if m != nil {
  1388. return m.ExceptionCode
  1389. }
  1390. return UnknownErr
  1391. }
  1392. func (m *GlobalRollbackResponse) GetMessage() string {
  1393. if m != nil {
  1394. return m.Message
  1395. }
  1396. return ""
  1397. }
  1398. func (m *GlobalRollbackResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
  1399. if m != nil {
  1400. return m.GlobalStatus
  1401. }
  1402. return UnknownGlobalStatus
  1403. }
  1404. // GlobalReportRequest represents a request to report global transaction execution status
  1405. type GlobalReportRequest struct {
  1406. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1407. GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,2,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
  1408. }
  1409. func (m *GlobalReportRequest) Reset() { *m = GlobalReportRequest{} }
  1410. func (*GlobalReportRequest) ProtoMessage() {}
  1411. func (*GlobalReportRequest) Descriptor() ([]byte, []int) {
  1412. return fileDescriptor_450a439f8893981f, []int{17}
  1413. }
  1414. func (m *GlobalReportRequest) XXX_Unmarshal(b []byte) error {
  1415. return m.Unmarshal(b)
  1416. }
  1417. func (m *GlobalReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1418. if deterministic {
  1419. return xxx_messageInfo_GlobalReportRequest.Marshal(b, m, deterministic)
  1420. } else {
  1421. b = b[:cap(b)]
  1422. n, err := m.MarshalToSizedBuffer(b)
  1423. if err != nil {
  1424. return nil, err
  1425. }
  1426. return b[:n], nil
  1427. }
  1428. }
  1429. func (m *GlobalReportRequest) XXX_Merge(src proto.Message) {
  1430. xxx_messageInfo_GlobalReportRequest.Merge(m, src)
  1431. }
  1432. func (m *GlobalReportRequest) XXX_Size() int {
  1433. return m.Size()
  1434. }
  1435. func (m *GlobalReportRequest) XXX_DiscardUnknown() {
  1436. xxx_messageInfo_GlobalReportRequest.DiscardUnknown(m)
  1437. }
  1438. var xxx_messageInfo_GlobalReportRequest proto.InternalMessageInfo
  1439. func (m *GlobalReportRequest) GetXID() string {
  1440. if m != nil {
  1441. return m.XID
  1442. }
  1443. return ""
  1444. }
  1445. func (m *GlobalReportRequest) GetGlobalStatus() GlobalSession_GlobalStatus {
  1446. if m != nil {
  1447. return m.GlobalStatus
  1448. }
  1449. return UnknownGlobalStatus
  1450. }
  1451. // GlobalReportResponse represents a response to GlobalReportRequest
  1452. type GlobalReportResponse struct {
  1453. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1454. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1455. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1456. GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
  1457. }
  1458. func (m *GlobalReportResponse) Reset() { *m = GlobalReportResponse{} }
  1459. func (*GlobalReportResponse) ProtoMessage() {}
  1460. func (*GlobalReportResponse) Descriptor() ([]byte, []int) {
  1461. return fileDescriptor_450a439f8893981f, []int{18}
  1462. }
  1463. func (m *GlobalReportResponse) XXX_Unmarshal(b []byte) error {
  1464. return m.Unmarshal(b)
  1465. }
  1466. func (m *GlobalReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1467. if deterministic {
  1468. return xxx_messageInfo_GlobalReportResponse.Marshal(b, m, deterministic)
  1469. } else {
  1470. b = b[:cap(b)]
  1471. n, err := m.MarshalToSizedBuffer(b)
  1472. if err != nil {
  1473. return nil, err
  1474. }
  1475. return b[:n], nil
  1476. }
  1477. }
  1478. func (m *GlobalReportResponse) XXX_Merge(src proto.Message) {
  1479. xxx_messageInfo_GlobalReportResponse.Merge(m, src)
  1480. }
  1481. func (m *GlobalReportResponse) XXX_Size() int {
  1482. return m.Size()
  1483. }
  1484. func (m *GlobalReportResponse) XXX_DiscardUnknown() {
  1485. xxx_messageInfo_GlobalReportResponse.DiscardUnknown(m)
  1486. }
  1487. var xxx_messageInfo_GlobalReportResponse proto.InternalMessageInfo
  1488. func (m *GlobalReportResponse) GetResultCode() ResultCode {
  1489. if m != nil {
  1490. return m.ResultCode
  1491. }
  1492. return ResultCodeFailed
  1493. }
  1494. func (m *GlobalReportResponse) GetExceptionCode() ExceptionCode {
  1495. if m != nil {
  1496. return m.ExceptionCode
  1497. }
  1498. return UnknownErr
  1499. }
  1500. func (m *GlobalReportResponse) GetMessage() string {
  1501. if m != nil {
  1502. return m.Message
  1503. }
  1504. return ""
  1505. }
  1506. func (m *GlobalReportResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
  1507. if m != nil {
  1508. return m.GlobalStatus
  1509. }
  1510. return UnknownGlobalStatus
  1511. }
  1512. // BranchCommitRequest represents a request to commit branch transaction
  1513. type BranchCommitRequest struct {
  1514. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1515. BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  1516. ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
  1517. LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
  1518. BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
  1519. ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
  1520. }
  1521. func (m *BranchCommitRequest) Reset() { *m = BranchCommitRequest{} }
  1522. func (*BranchCommitRequest) ProtoMessage() {}
  1523. func (*BranchCommitRequest) Descriptor() ([]byte, []int) {
  1524. return fileDescriptor_450a439f8893981f, []int{19}
  1525. }
  1526. func (m *BranchCommitRequest) XXX_Unmarshal(b []byte) error {
  1527. return m.Unmarshal(b)
  1528. }
  1529. func (m *BranchCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1530. if deterministic {
  1531. return xxx_messageInfo_BranchCommitRequest.Marshal(b, m, deterministic)
  1532. } else {
  1533. b = b[:cap(b)]
  1534. n, err := m.MarshalToSizedBuffer(b)
  1535. if err != nil {
  1536. return nil, err
  1537. }
  1538. return b[:n], nil
  1539. }
  1540. }
  1541. func (m *BranchCommitRequest) XXX_Merge(src proto.Message) {
  1542. xxx_messageInfo_BranchCommitRequest.Merge(m, src)
  1543. }
  1544. func (m *BranchCommitRequest) XXX_Size() int {
  1545. return m.Size()
  1546. }
  1547. func (m *BranchCommitRequest) XXX_DiscardUnknown() {
  1548. xxx_messageInfo_BranchCommitRequest.DiscardUnknown(m)
  1549. }
  1550. var xxx_messageInfo_BranchCommitRequest proto.InternalMessageInfo
  1551. func (m *BranchCommitRequest) GetXID() string {
  1552. if m != nil {
  1553. return m.XID
  1554. }
  1555. return ""
  1556. }
  1557. func (m *BranchCommitRequest) GetBranchID() int64 {
  1558. if m != nil {
  1559. return m.BranchID
  1560. }
  1561. return 0
  1562. }
  1563. func (m *BranchCommitRequest) GetResourceID() string {
  1564. if m != nil {
  1565. return m.ResourceID
  1566. }
  1567. return ""
  1568. }
  1569. func (m *BranchCommitRequest) GetLockKey() string {
  1570. if m != nil {
  1571. return m.LockKey
  1572. }
  1573. return ""
  1574. }
  1575. func (m *BranchCommitRequest) GetBranchType() BranchSession_BranchType {
  1576. if m != nil {
  1577. return m.BranchType
  1578. }
  1579. return AT
  1580. }
  1581. func (m *BranchCommitRequest) GetApplicationData() []byte {
  1582. if m != nil {
  1583. return m.ApplicationData
  1584. }
  1585. return nil
  1586. }
  1587. // BranchCommitResponse represents a response to BranchCommitRequest
  1588. type BranchCommitResponse struct {
  1589. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1590. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1591. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1592. XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
  1593. BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  1594. BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
  1595. }
  1596. func (m *BranchCommitResponse) Reset() { *m = BranchCommitResponse{} }
  1597. func (*BranchCommitResponse) ProtoMessage() {}
  1598. func (*BranchCommitResponse) Descriptor() ([]byte, []int) {
  1599. return fileDescriptor_450a439f8893981f, []int{20}
  1600. }
  1601. func (m *BranchCommitResponse) XXX_Unmarshal(b []byte) error {
  1602. return m.Unmarshal(b)
  1603. }
  1604. func (m *BranchCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1605. if deterministic {
  1606. return xxx_messageInfo_BranchCommitResponse.Marshal(b, m, deterministic)
  1607. } else {
  1608. b = b[:cap(b)]
  1609. n, err := m.MarshalToSizedBuffer(b)
  1610. if err != nil {
  1611. return nil, err
  1612. }
  1613. return b[:n], nil
  1614. }
  1615. }
  1616. func (m *BranchCommitResponse) XXX_Merge(src proto.Message) {
  1617. xxx_messageInfo_BranchCommitResponse.Merge(m, src)
  1618. }
  1619. func (m *BranchCommitResponse) XXX_Size() int {
  1620. return m.Size()
  1621. }
  1622. func (m *BranchCommitResponse) XXX_DiscardUnknown() {
  1623. xxx_messageInfo_BranchCommitResponse.DiscardUnknown(m)
  1624. }
  1625. var xxx_messageInfo_BranchCommitResponse proto.InternalMessageInfo
  1626. func (m *BranchCommitResponse) GetResultCode() ResultCode {
  1627. if m != nil {
  1628. return m.ResultCode
  1629. }
  1630. return ResultCodeFailed
  1631. }
  1632. func (m *BranchCommitResponse) GetExceptionCode() ExceptionCode {
  1633. if m != nil {
  1634. return m.ExceptionCode
  1635. }
  1636. return UnknownErr
  1637. }
  1638. func (m *BranchCommitResponse) GetMessage() string {
  1639. if m != nil {
  1640. return m.Message
  1641. }
  1642. return ""
  1643. }
  1644. func (m *BranchCommitResponse) GetXID() string {
  1645. if m != nil {
  1646. return m.XID
  1647. }
  1648. return ""
  1649. }
  1650. func (m *BranchCommitResponse) GetBranchID() int64 {
  1651. if m != nil {
  1652. return m.BranchID
  1653. }
  1654. return 0
  1655. }
  1656. func (m *BranchCommitResponse) GetBranchStatus() BranchSession_BranchStatus {
  1657. if m != nil {
  1658. return m.BranchStatus
  1659. }
  1660. return UnknownBranchStatus
  1661. }
  1662. // BranchCommitRequest represents a request to rollback branch transaction
  1663. type BranchRollbackRequest struct {
  1664. XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
  1665. BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  1666. ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
  1667. LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
  1668. BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
  1669. ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
  1670. }
  1671. func (m *BranchRollbackRequest) Reset() { *m = BranchRollbackRequest{} }
  1672. func (*BranchRollbackRequest) ProtoMessage() {}
  1673. func (*BranchRollbackRequest) Descriptor() ([]byte, []int) {
  1674. return fileDescriptor_450a439f8893981f, []int{21}
  1675. }
  1676. func (m *BranchRollbackRequest) XXX_Unmarshal(b []byte) error {
  1677. return m.Unmarshal(b)
  1678. }
  1679. func (m *BranchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1680. if deterministic {
  1681. return xxx_messageInfo_BranchRollbackRequest.Marshal(b, m, deterministic)
  1682. } else {
  1683. b = b[:cap(b)]
  1684. n, err := m.MarshalToSizedBuffer(b)
  1685. if err != nil {
  1686. return nil, err
  1687. }
  1688. return b[:n], nil
  1689. }
  1690. }
  1691. func (m *BranchRollbackRequest) XXX_Merge(src proto.Message) {
  1692. xxx_messageInfo_BranchRollbackRequest.Merge(m, src)
  1693. }
  1694. func (m *BranchRollbackRequest) XXX_Size() int {
  1695. return m.Size()
  1696. }
  1697. func (m *BranchRollbackRequest) XXX_DiscardUnknown() {
  1698. xxx_messageInfo_BranchRollbackRequest.DiscardUnknown(m)
  1699. }
  1700. var xxx_messageInfo_BranchRollbackRequest proto.InternalMessageInfo
  1701. func (m *BranchRollbackRequest) GetXID() string {
  1702. if m != nil {
  1703. return m.XID
  1704. }
  1705. return ""
  1706. }
  1707. func (m *BranchRollbackRequest) GetBranchID() int64 {
  1708. if m != nil {
  1709. return m.BranchID
  1710. }
  1711. return 0
  1712. }
  1713. func (m *BranchRollbackRequest) GetResourceID() string {
  1714. if m != nil {
  1715. return m.ResourceID
  1716. }
  1717. return ""
  1718. }
  1719. func (m *BranchRollbackRequest) GetLockKey() string {
  1720. if m != nil {
  1721. return m.LockKey
  1722. }
  1723. return ""
  1724. }
  1725. func (m *BranchRollbackRequest) GetBranchType() BranchSession_BranchType {
  1726. if m != nil {
  1727. return m.BranchType
  1728. }
  1729. return AT
  1730. }
  1731. func (m *BranchRollbackRequest) GetApplicationData() []byte {
  1732. if m != nil {
  1733. return m.ApplicationData
  1734. }
  1735. return nil
  1736. }
  1737. // BranchRollbackResponse represents a response to BranchRollbackRequest
  1738. type BranchRollbackResponse struct {
  1739. ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
  1740. ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
  1741. Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1742. XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
  1743. BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
  1744. BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
  1745. }
  1746. func (m *BranchRollbackResponse) Reset() { *m = BranchRollbackResponse{} }
  1747. func (*BranchRollbackResponse) ProtoMessage() {}
  1748. func (*BranchRollbackResponse) Descriptor() ([]byte, []int) {
  1749. return fileDescriptor_450a439f8893981f, []int{22}
  1750. }
  1751. func (m *BranchRollbackResponse) XXX_Unmarshal(b []byte) error {
  1752. return m.Unmarshal(b)
  1753. }
  1754. func (m *BranchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1755. if deterministic {
  1756. return xxx_messageInfo_BranchRollbackResponse.Marshal(b, m, deterministic)
  1757. } else {
  1758. b = b[:cap(b)]
  1759. n, err := m.MarshalToSizedBuffer(b)
  1760. if err != nil {
  1761. return nil, err
  1762. }
  1763. return b[:n], nil
  1764. }
  1765. }
  1766. func (m *BranchRollbackResponse) XXX_Merge(src proto.Message) {
  1767. xxx_messageInfo_BranchRollbackResponse.Merge(m, src)
  1768. }
  1769. func (m *BranchRollbackResponse) XXX_Size() int {
  1770. return m.Size()
  1771. }
  1772. func (m *BranchRollbackResponse) XXX_DiscardUnknown() {
  1773. xxx_messageInfo_BranchRollbackResponse.DiscardUnknown(m)
  1774. }
  1775. var xxx_messageInfo_BranchRollbackResponse proto.InternalMessageInfo
  1776. func (m *BranchRollbackResponse) GetResultCode() ResultCode {
  1777. if m != nil {
  1778. return m.ResultCode
  1779. }
  1780. return ResultCodeFailed
  1781. }
  1782. func (m *BranchRollbackResponse) GetExceptionCode() ExceptionCode {
  1783. if m != nil {
  1784. return m.ExceptionCode
  1785. }
  1786. return UnknownErr
  1787. }
  1788. func (m *BranchRollbackResponse) GetMessage() string {
  1789. if m != nil {
  1790. return m.Message
  1791. }
  1792. return ""
  1793. }
  1794. func (m *BranchRollbackResponse) GetXID() string {
  1795. if m != nil {
  1796. return m.XID
  1797. }
  1798. return ""
  1799. }
  1800. func (m *BranchRollbackResponse) GetBranchID() int64 {
  1801. if m != nil {
  1802. return m.BranchID
  1803. }
  1804. return 0
  1805. }
  1806. func (m *BranchRollbackResponse) GetBranchStatus() BranchSession_BranchStatus {
  1807. if m != nil {
  1808. return m.BranchStatus
  1809. }
  1810. return UnknownBranchStatus
  1811. }
  1812. type BranchMessage struct {
  1813. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  1814. BranchMessageType BranchMessageType `protobuf:"varint,2,opt,name=BranchMessageType,proto3,enum=apis.BranchMessageType" json:"BranchMessageType,omitempty"`
  1815. Message *types.Any `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
  1816. }
  1817. func (m *BranchMessage) Reset() { *m = BranchMessage{} }
  1818. func (*BranchMessage) ProtoMessage() {}
  1819. func (*BranchMessage) Descriptor() ([]byte, []int) {
  1820. return fileDescriptor_450a439f8893981f, []int{23}
  1821. }
  1822. func (m *BranchMessage) XXX_Unmarshal(b []byte) error {
  1823. return m.Unmarshal(b)
  1824. }
  1825. func (m *BranchMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1826. if deterministic {
  1827. return xxx_messageInfo_BranchMessage.Marshal(b, m, deterministic)
  1828. } else {
  1829. b = b[:cap(b)]
  1830. n, err := m.MarshalToSizedBuffer(b)
  1831. if err != nil {
  1832. return nil, err
  1833. }
  1834. return b[:n], nil
  1835. }
  1836. }
  1837. func (m *BranchMessage) XXX_Merge(src proto.Message) {
  1838. xxx_messageInfo_BranchMessage.Merge(m, src)
  1839. }
  1840. func (m *BranchMessage) XXX_Size() int {
  1841. return m.Size()
  1842. }
  1843. func (m *BranchMessage) XXX_DiscardUnknown() {
  1844. xxx_messageInfo_BranchMessage.DiscardUnknown(m)
  1845. }
  1846. var xxx_messageInfo_BranchMessage proto.InternalMessageInfo
  1847. func (m *BranchMessage) GetID() int64 {
  1848. if m != nil {
  1849. return m.ID
  1850. }
  1851. return 0
  1852. }
  1853. func (m *BranchMessage) GetBranchMessageType() BranchMessageType {
  1854. if m != nil {
  1855. return m.BranchMessageType
  1856. }
  1857. return TypeBranchCommit
  1858. }
  1859. func (m *BranchMessage) GetMessage() *types.Any {
  1860. if m != nil {
  1861. return m.Message
  1862. }
  1863. return nil
  1864. }
  1865. func init() {
  1866. proto.RegisterEnum("apis.ResultCode", ResultCode_name, ResultCode_value)
  1867. proto.RegisterEnum("apis.ExceptionCode", ExceptionCode_name, ExceptionCode_value)
  1868. proto.RegisterEnum("apis.BranchMessageType", BranchMessageType_name, BranchMessageType_value)
  1869. proto.RegisterEnum("apis.GlobalSession_GlobalStatus", GlobalSession_GlobalStatus_name, GlobalSession_GlobalStatus_value)
  1870. proto.RegisterEnum("apis.BranchSession_BranchType", BranchSession_BranchType_name, BranchSession_BranchType_value)
  1871. proto.RegisterEnum("apis.BranchSession_BranchStatus", BranchSession_BranchStatus_name, BranchSession_BranchStatus_value)
  1872. proto.RegisterType((*GlobalSession)(nil), "apis.GlobalSession")
  1873. proto.RegisterType((*BranchSession)(nil), "apis.BranchSession")
  1874. proto.RegisterType((*RowLock)(nil), "apis.RowLock")
  1875. proto.RegisterType((*GlobalBeginRequest)(nil), "apis.GlobalBeginRequest")
  1876. proto.RegisterType((*GlobalBeginResponse)(nil), "apis.GlobalBeginResponse")
  1877. proto.RegisterType((*BranchRegisterRequest)(nil), "apis.BranchRegisterRequest")
  1878. proto.RegisterType((*BranchRegisterResponse)(nil), "apis.BranchRegisterResponse")
  1879. proto.RegisterType((*BranchReportRequest)(nil), "apis.BranchReportRequest")
  1880. proto.RegisterType((*BranchReportResponse)(nil), "apis.BranchReportResponse")
  1881. proto.RegisterType((*GlobalLockQueryRequest)(nil), "apis.GlobalLockQueryRequest")
  1882. proto.RegisterType((*GlobalLockQueryResponse)(nil), "apis.GlobalLockQueryResponse")
  1883. proto.RegisterType((*GlobalStatusRequest)(nil), "apis.GlobalStatusRequest")
  1884. proto.RegisterType((*GlobalStatusResponse)(nil), "apis.GlobalStatusResponse")
  1885. proto.RegisterType((*GlobalCommitRequest)(nil), "apis.GlobalCommitRequest")
  1886. proto.RegisterType((*GlobalCommitResponse)(nil), "apis.GlobalCommitResponse")
  1887. proto.RegisterType((*GlobalRollbackRequest)(nil), "apis.GlobalRollbackRequest")
  1888. proto.RegisterType((*GlobalRollbackResponse)(nil), "apis.GlobalRollbackResponse")
  1889. proto.RegisterType((*GlobalReportRequest)(nil), "apis.GlobalReportRequest")
  1890. proto.RegisterType((*GlobalReportResponse)(nil), "apis.GlobalReportResponse")
  1891. proto.RegisterType((*BranchCommitRequest)(nil), "apis.BranchCommitRequest")
  1892. proto.RegisterType((*BranchCommitResponse)(nil), "apis.BranchCommitResponse")
  1893. proto.RegisterType((*BranchRollbackRequest)(nil), "apis.BranchRollbackRequest")
  1894. proto.RegisterType((*BranchRollbackResponse)(nil), "apis.BranchRollbackResponse")
  1895. proto.RegisterType((*BranchMessage)(nil), "apis.BranchMessage")
  1896. }
  1897. func init() { proto.RegisterFile("seata.proto", fileDescriptor_450a439f8893981f) }
  1898. var fileDescriptor_450a439f8893981f = []byte{
  1899. // 1943 bytes of a gzipped FileDescriptorProto
  1900. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4f, 0x6f, 0x23, 0x49,
  1901. 0x15, 0x77, 0xb7, 0xff, 0xbf, 0xc4, 0x76, 0xa5, 0x3c, 0x49, 0x1c, 0xcf, 0xa6, 0xed, 0xe9, 0xd5,
  1902. 0x0a, 0xef, 0x88, 0xcd, 0x8c, 0x32, 0x80, 0x34, 0x08, 0xb1, 0xb2, 0x93, 0xec, 0x10, 0xc2, 0xee,
  1903. 0x0e, 0x9d, 0xac, 0xd8, 0x5b, 0xd4, 0xb1, 0x6b, 0x9d, 0x56, 0x9c, 0x6e, 0xd3, 0xdd, 0x9e, 0xc4,
  1904. 0xe2, 0xc2, 0x37, 0x58, 0xd0, 0x4a, 0x1c, 0x90, 0xb8, 0x71, 0xe0, 0xc4, 0x8d, 0x03, 0x82, 0x33,
  1905. 0xe2, 0xc0, 0x61, 0x4e, 0x68, 0x4f, 0x16, 0x93, 0x11, 0x02, 0x24, 0x0e, 0x2b, 0x7f, 0x02, 0x54,
  1906. 0x7f, 0xda, 0x5d, 0x65, 0x3b, 0xeb, 0xc9, 0x02, 0x22, 0xec, 0xcd, 0xf5, 0xde, 0xaf, 0x5e, 0x55,
  1907. 0xbf, 0xf7, 0x7e, 0xef, 0x55, 0x95, 0x61, 0x29, 0x20, 0x76, 0x68, 0x6f, 0xf5, 0x7d, 0x2f, 0xf4,
  1908. 0x70, 0xca, 0xee, 0x3b, 0x41, 0xf5, 0xad, 0xae, 0x13, 0x9e, 0x0e, 0x4e, 0xb6, 0xda, 0xde, 0xf9,
  1909. 0x83, 0xae, 0xd7, 0xf5, 0x1e, 0x30, 0xe5, 0xc9, 0xe0, 0x23, 0x36, 0x62, 0x03, 0xf6, 0x8b, 0x4f,
  1910. 0xaa, 0x6e, 0x74, 0x3d, 0xaf, 0xdb, 0x23, 0x31, 0xca, 0x76, 0x87, 0x5c, 0x65, 0xfe, 0x3c, 0x03,
  1911. 0x85, 0x27, 0x3d, 0xef, 0xc4, 0xee, 0x1d, 0x92, 0x20, 0x70, 0x3c, 0x17, 0x7f, 0x1d, 0xa0, 0xd9,
  1912. 0xe9, 0xf8, 0x74, 0xe4, 0x76, 0x2b, 0x5a, 0x5d, 0x6b, 0xe4, 0x5b, 0xab, 0xe3, 0x51, 0x6d, 0xe5,
  1913. 0xd2, 0xf3, 0xcf, 0xbf, 0x69, 0xda, 0x13, 0x9d, 0x69, 0x49, 0x40, 0x5c, 0x87, 0xe4, 0x87, 0xfb,
  1914. 0xbb, 0x15, 0x9d, 0xe1, 0x8b, 0xe3, 0x51, 0x0d, 0x38, 0xfe, 0xd2, 0xe9, 0x98, 0x16, 0x55, 0xe1,
  1915. 0xb7, 0xa1, 0x70, 0xe4, 0xdb, 0x6e, 0x60, 0xb7, 0x43, 0xc7, 0x73, 0xf7, 0x77, 0x2b, 0xc9, 0xba,
  1916. 0xd6, 0x48, 0xb6, 0x36, 0xc6, 0xa3, 0xda, 0x2a, 0xc7, 0x86, 0xb1, 0xfa, 0x98, 0x4e, 0x53, 0xf1,
  1917. 0x78, 0x0f, 0x4a, 0x92, 0xe0, 0x3d, 0xfb, 0x9c, 0x54, 0x52, 0x6c, 0xb9, 0xbb, 0xe3, 0x51, 0x6d,
  1918. 0x7d, 0xd6, 0x84, 0x6b, 0x9f, 0x13, 0xd3, 0x9a, 0x9e, 0x83, 0xbf, 0x0a, 0xd9, 0x23, 0xe7, 0x9c,
  1919. 0x78, 0x83, 0xb0, 0x92, 0xae, 0x6b, 0x8d, 0x74, 0x0b, 0x8f, 0x47, 0xb5, 0xa2, 0x98, 0xce, 0x15,
  1920. 0xa6, 0x15, 0x41, 0xf0, 0x23, 0xc8, 0xb7, 0x48, 0xd7, 0x71, 0xe9, 0xb8, 0x92, 0x61, 0x3b, 0x96,
  1921. 0xbc, 0x71, 0x42, 0x55, 0xc7, 0x74, 0x96, 0x69, 0xc5, 0x38, 0x7c, 0x00, 0x99, 0xc3, 0xd0, 0x0e,
  1922. 0x07, 0x41, 0x25, 0x5b, 0xd7, 0x1a, 0xc5, 0xed, 0xfa, 0x16, 0x0d, 0xdb, 0x96, 0xe2, 0xe8, 0x68,
  1923. 0xc4, 0x70, 0xad, 0x95, 0xf1, 0xa8, 0x56, 0xe0, 0x36, 0x03, 0x26, 0x31, 0x2d, 0x61, 0x02, 0xbf,
  1924. 0x09, 0x99, 0x66, 0x3b, 0x74, 0x9e, 0x91, 0x4a, 0xae, 0xae, 0x35, 0x72, 0x32, 0xd4, 0x66, 0x72,
  1925. 0xd3, 0x12, 0x00, 0xf3, 0x4f, 0x3a, 0x2c, 0xcb, 0x66, 0xf1, 0x3a, 0x94, 0x3f, 0x70, 0xcf, 0x5c,
  1926. 0xef, 0xc2, 0x95, 0xc5, 0x28, 0x81, 0xf3, 0x90, 0x66, 0xdb, 0x45, 0x1a, 0x2e, 0x02, 0xec, 0x78,
  1927. 0xe7, 0xe7, 0x4e, 0x18, 0x3a, 0x6e, 0x17, 0xe9, 0x18, 0x43, 0x91, 0x8f, 0x2d, 0x12, 0xfa, 0x43,
  1928. 0x2a, 0x4b, 0xe2, 0x12, 0x2c, 0x59, 0x5e, 0xaf, 0xe7, 0xb8, 0xdd, 0x96, 0xdd, 0x3e, 0x43, 0x29,
  1929. 0x7c, 0x07, 0x10, 0x15, 0x9c, 0xd8, 0xed, 0xb3, 0x09, 0x2c, 0x8d, 0xd7, 0x00, 0x0b, 0xbf, 0xc9,
  1930. 0xe8, 0x0c, 0xbe, 0x0b, 0xeb, 0x92, 0x5c, 0x99, 0x94, 0xc5, 0x65, 0x28, 0x35, 0x83, 0xa1, 0xdb,
  1931. 0x96, 0x36, 0x91, 0xc3, 0x05, 0xc8, 0x8b, 0x31, 0xe9, 0xa0, 0x3c, 0x46, 0xb0, 0xcc, 0x87, 0xef,
  1932. 0xd8, 0x4e, 0x8f, 0x74, 0x10, 0xd0, 0x5d, 0x53, 0x5b, 0xa4, 0xc3, 0x96, 0x58, 0xa2, 0xbb, 0x8e,
  1933. 0x6c, 0x0b, 0xcc, 0x32, 0x5e, 0x85, 0x15, 0x69, 0x59, 0x01, 0x2d, 0xe0, 0x0d, 0x58, 0x9d, 0xda,
  1934. 0x8d, 0x98, 0x51, 0xc4, 0xcb, 0x90, 0x7b, 0xc7, 0x71, 0x9d, 0xe0, 0x94, 0x74, 0x50, 0xc9, 0xfc,
  1935. 0x43, 0x16, 0x0a, 0x2d, 0xdf, 0x76, 0xdb, 0xa7, 0xff, 0x75, 0x72, 0x3c, 0x84, 0x1c, 0x5f, 0x69,
  1936. 0xc2, 0x8b, 0x3b, 0xe3, 0x51, 0x0d, 0x89, 0x2c, 0x63, 0x1a, 0x46, 0x89, 0x09, 0x6a, 0x96, 0x4e,
  1937. 0xa9, 0x1b, 0xd2, 0xe9, 0x1b, 0x00, 0x16, 0x09, 0xbc, 0x81, 0xdf, 0x26, 0xfb, 0xbb, 0x8c, 0x0a,
  1938. 0xf9, 0xd6, 0xda, 0x78, 0x54, 0xc3, 0x7c, 0xb6, 0x2f, 0x74, 0x6c, 0xaa, 0x84, 0xc4, 0x6f, 0x41,
  1939. 0xf6, 0x7b, 0x5e, 0xfb, 0xec, 0x80, 0x0c, 0x19, 0x1f, 0xf2, 0xad, 0xf2, 0x78, 0x54, 0x2b, 0xf1,
  1940. 0x49, 0x3d, 0xaf, 0x7d, 0x76, 0x7c, 0x46, 0x86, 0xa6, 0x15, 0x61, 0xf0, 0x77, 0x21, 0x75, 0x34,
  1941. 0xec, 0x13, 0xc1, 0x04, 0x83, 0x33, 0x41, 0xf1, 0xaa, 0x18, 0x51, 0x94, 0xbc, 0x01, 0xf1, 0xd5,
  1942. 0xe1, 0xb0, 0x4f, 0x4c, 0x8b, 0xd9, 0x90, 0x78, 0x95, 0x93, 0x79, 0x35, 0xcf, 0xda, 0x62, 0x5e,
  1943. 0xed, 0x41, 0xa9, 0xd9, 0xef, 0xf7, 0x9c, 0xb6, 0x4d, 0x1d, 0xb2, 0x6b, 0x87, 0x76, 0x25, 0x5f,
  1944. 0xd7, 0x1a, 0xcb, 0x72, 0x39, 0xb1, 0x63, 0xc0, 0x71, 0xc7, 0x0e, 0x6d, 0xd3, 0x9a, 0x9e, 0x83,
  1945. 0x1f, 0xc3, 0x92, 0x94, 0xbe, 0x15, 0x60, 0x1c, 0x5d, 0x1f, 0x8f, 0x6a, 0x65, 0x61, 0x82, 0x2a,
  1946. 0x8f, 0xdb, 0x4c, 0x6b, 0x5a, 0x32, 0xd6, 0x7c, 0x00, 0x10, 0x7f, 0x3a, 0xce, 0x80, 0xde, 0x3c,
  1947. 0x42, 0x09, 0x9c, 0x85, 0xe4, 0xd1, 0xce, 0x0e, 0xd2, 0x70, 0x0e, 0x52, 0x87, 0xcd, 0x27, 0x4d,
  1948. 0xa4, 0x53, 0xd5, 0x87, 0x4d, 0x94, 0x34, 0x7f, 0xa3, 0xc3, 0xb2, 0xfc, 0x79, 0x12, 0xbf, 0x65,
  1949. 0x31, 0x4a, 0x30, 0x7a, 0x90, 0xae, 0x13, 0x84, 0xc4, 0x27, 0x1d, 0xa4, 0x51, 0x02, 0x3d, 0x3d,
  1950. 0xb5, 0x03, 0xf2, 0xbe, 0x4b, 0x76, 0x3d, 0x97, 0x70, 0x9a, 0x47, 0x12, 0x91, 0xfe, 0x49, 0x4a,
  1951. 0xc5, 0x48, 0x26, 0x18, 0x82, 0x52, 0x94, 0x45, 0x4c, 0x78, 0x74, 0xe1, 0xc5, 0x94, 0x4c, 0xe3,
  1952. 0x7b, 0xb0, 0xa9, 0x8a, 0xb9, 0x15, 0x46, 0x6c, 0xfb, 0xa4, 0x47, 0x50, 0x06, 0xbf, 0x0e, 0xb5,
  1953. 0x79, 0x90, 0x1d, 0xdb, 0x7d, 0xcf, 0xe3, 0xd5, 0x05, 0x65, 0x69, 0xcd, 0x88, 0x40, 0x12, 0x4b,
  1954. 0x73, 0xf2, 0x64, 0x95, 0xa6, 0xf1, 0x0a, 0x79, 0xfc, 0x06, 0xdc, 0x9b, 0x0f, 0x92, 0xd7, 0x00,
  1955. 0xf3, 0xcf, 0x3a, 0x64, 0x2d, 0xef, 0x82, 0xa6, 0x64, 0xc4, 0x45, 0xed, 0x06, 0x8d, 0x4a, 0xbf,
  1956. 0x21, 0xb3, 0x6e, 0x4e, 0x66, 0x95, 0x8b, 0xa9, 0x57, 0xe6, 0xe2, 0x23, 0xc8, 0x1f, 0x51, 0x57,
  1957. 0xb0, 0x66, 0x98, 0x9e, 0x2e, 0x47, 0x21, 0x55, 0x89, 0x36, 0x18, 0xe3, 0xf0, 0x26, 0xe8, 0x4f,
  1958. 0x0f, 0x04, 0x77, 0x0b, 0xe3, 0x51, 0x2d, 0xcf, 0xd1, 0xfd, 0x33, 0xd3, 0xd2, 0x9f, 0x1e, 0xe0,
  1959. 0xfb, 0x90, 0xb1, 0xbc, 0x0b, 0x4a, 0xef, 0x2c, 0x83, 0x48, 0xed, 0xd1, 0xf7, 0x2e, 0x38, 0xbb,
  1960. 0x05, 0xc2, 0xbc, 0x04, 0xcc, 0x1b, 0x0b, 0x6b, 0x26, 0x16, 0xf9, 0xe1, 0x80, 0x04, 0x21, 0x36,
  1961. 0x66, 0xab, 0xa4, 0x52, 0x0e, 0x2b, 0x71, 0x07, 0xa6, 0xae, 0x4d, 0xc7, 0xdd, 0xb6, 0x31, 0xdb,
  1962. 0xe2, 0x93, 0x6c, 0xfa, 0xb4, 0xd8, 0xfc, 0xb5, 0x06, 0x65, 0x65, 0xe9, 0xa0, 0xef, 0xb9, 0x01,
  1963. 0xc1, 0x0f, 0x99, 0x27, 0x07, 0xbd, 0x70, 0xc7, 0xeb, 0x10, 0xb6, 0x76, 0x71, 0x1b, 0xf1, 0x32,
  1964. 0x11, 0xcb, 0x2d, 0x09, 0x83, 0x1f, 0x43, 0x61, 0xef, 0xb2, 0x4d, 0xfa, 0xd4, 0x34, 0x9b, 0xa4,
  1965. 0xb3, 0x49, 0x65, 0x3e, 0x49, 0x51, 0x59, 0x2a, 0x92, 0x7e, 0xc8, 0xbb, 0x24, 0x08, 0xec, 0x6e,
  1966. 0xb4, 0xcd, 0x68, 0x88, 0x11, 0xcf, 0x32, 0x16, 0x49, 0x96, 0x55, 0xe6, 0xc7, 0x3a, 0xac, 0xf2,
  1967. 0x78, 0x47, 0xc4, 0x7c, 0x55, 0x77, 0x21, 0xa9, 0x7b, 0xf0, 0x0c, 0x35, 0x94, 0x74, 0xe1, 0x4b,
  1968. 0xcb, 0x69, 0x51, 0x89, 0x4b, 0x34, 0xdf, 0xc1, 0xa4, 0x1a, 0x7f, 0x5b, 0x2e, 0x39, 0x2c, 0x63,
  1969. 0x16, 0xd6, 0x64, 0x4b, 0x2e, 0x52, 0x8d, 0xd9, 0xa2, 0x49, 0x13, 0x69, 0x79, 0xb6, 0x2e, 0xd6,
  1970. 0xd5, 0xba, 0x48, 0x73, 0x29, 0xa7, 0x96, 0xbf, 0xdf, 0x69, 0xb0, 0x36, 0xed, 0x91, 0xdb, 0x15,
  1971. 0xc5, 0xaa, 0x44, 0x64, 0xd6, 0x5e, 0x63, 0xca, 0x9a, 0x9f, 0xe8, 0x50, 0x8e, 0x76, 0xdf, 0xf7,
  1972. 0xfc, 0x30, 0x8a, 0x26, 0x92, 0xea, 0x0b, 0x8f, 0x96, 0x6c, 0x45, 0x57, 0xad, 0x2c, 0x8c, 0xa4,
  1973. 0x1a, 0xaf, 0xd4, 0x8d, 0xe3, 0xb5, 0xab, 0x36, 0x0c, 0x11, 0xf1, 0x85, 0x7d, 0xd3, 0x52, 0xdb,
  1974. 0xcc, 0x2b, 0x47, 0xdd, 0xfc, 0x85, 0x06, 0x77, 0x54, 0xaf, 0xdc, 0xaa, 0x88, 0x9a, 0xbf, 0xd4,
  1975. 0x60, 0x8d, 0x97, 0x0d, 0xca, 0x88, 0xef, 0x0f, 0x88, 0x3f, 0xbc, 0x3e, 0x70, 0x6a, 0x70, 0xf4,
  1976. 0xcf, 0xa3, 0x59, 0xf2, 0xf3, 0x68, 0x76, 0xe3, 0xb0, 0x99, 0xbf, 0xd7, 0x60, 0x7d, 0x66, 0x9b,
  1977. 0xb7, 0x8e, 0x1b, 0x74, 0x6f, 0xb4, 0xab, 0xb0, 0x0f, 0xcc, 0x59, 0x93, 0xb1, 0xf9, 0x95, 0xa8,
  1978. 0x36, 0x8b, 0x6c, 0xba, 0xce, 0xc3, 0xe6, 0x4b, 0x0d, 0xee, 0xa8, 0xc8, 0xdb, 0xf5, 0x91, 0xbb,
  1979. 0xea, 0x7d, 0x4a, 0x44, 0x72, 0xe1, 0x75, 0xce, 0x52, 0x66, 0xc5, 0xee, 0x88, 0xee, 0x55, 0x8b,
  1980. 0xdd, 0x11, 0x21, 0xbf, 0x8c, 0xee, 0x78, 0x13, 0x56, 0xf9, 0x38, 0xbe, 0x0c, 0x5e, 0xe7, 0x90,
  1981. 0xbf, 0x4e, 0xe8, 0x1a, 0x63, 0xbf, 0x8c, 0x2e, 0x39, 0x8f, 0x32, 0x64, 0x51, 0x2f, 0x99, 0x5e,
  1982. 0x4e, 0xff, 0x42, 0xcb, 0xc5, 0x79, 0x76, 0x2b, 0xab, 0xf4, 0x7f, 0xc8, 0xa9, 0x7f, 0xd3, 0xa2,
  1983. 0x0e, 0xbd, 0x80, 0x77, 0xff, 0x56, 0x87, 0xbe, 0x05, 0x67, 0x2d, 0xf3, 0xa7, 0x7a, 0xd4, 0x75,
  1984. 0x6f, 0x67, 0xdd, 0x98, 0x39, 0x0d, 0x2b, 0x1e, 0x4f, 0x4f, 0x79, 0x7c, 0xfa, 0xcc, 0x92, 0xf9,
  1985. 0x22, 0x67, 0x16, 0xf3, 0x1f, 0xda, 0xe4, 0xbc, 0xbd, 0xa8, 0xcc, 0xfc, 0xdf, 0xc7, 0xff, 0x13,
  1986. 0x7d, 0x72, 0x92, 0xbe, 0xa5, 0x65, 0xf2, 0x7f, 0x91, 0x01, 0x3f, 0xd3, 0xa2, 0xe7, 0xbb, 0x68,
  1987. 0x17, 0x45, 0xd0, 0x45, 0xe0, 0x93, 0x96, 0xce, 0x5e, 0x94, 0x57, 0x14, 0x00, 0x0b, 0x14, 0xff,
  1988. 0xdc, 0x75, 0x79, 0x31, 0x49, 0x6d, 0xcd, 0xce, 0xc0, 0x5b, 0xea, 0x67, 0x2f, 0x6d, 0xdf, 0xd9,
  1989. 0xe2, 0x2f, 0xee, 0x5b, 0xd1, 0x8b, 0xfb, 0x56, 0xd3, 0x1d, 0x4e, 0x9c, 0x71, 0xff, 0xb1, 0x1c,
  1990. 0x13, 0xf6, 0x94, 0x3a, 0x19, 0x89, 0xa7, 0x98, 0x04, 0x5e, 0x85, 0x95, 0x58, 0x7a, 0x38, 0x68,
  1991. 0xb7, 0x49, 0x10, 0x20, 0xed, 0xfe, 0xc7, 0xa9, 0xa9, 0xe8, 0xe0, 0x22, 0x80, 0x78, 0x02, 0xda,
  1992. 0xf3, 0x7d, 0x94, 0xc0, 0x25, 0x58, 0x62, 0x37, 0x62, 0x61, 0x49, 0xc3, 0x65, 0x28, 0x89, 0x8c,
  1993. 0xdc, 0xf1, 0xdc, 0x8f, 0x7a, 0x4e, 0x3b, 0xe4, 0x2f, 0x4a, 0xfb, 0xef, 0xa3, 0x24, 0xbe, 0x07,
  1994. 0x9b, 0x6a, 0xe2, 0x4c, 0xbf, 0xb1, 0xa4, 0xf0, 0xeb, 0x50, 0x9b, 0x07, 0xf9, 0xc0, 0xf5, 0x27,
  1995. 0xa0, 0x34, 0xae, 0xc4, 0xc7, 0x7e, 0x7e, 0x95, 0x13, 0xcb, 0x67, 0xf0, 0x1a, 0x60, 0xf9, 0x42,
  1996. 0x20, 0xe4, 0x59, 0xbc, 0x0e, 0xe5, 0xe8, 0xbc, 0xb8, 0x73, 0x4a, 0x26, 0x6f, 0xb0, 0x39, 0xbc,
  1997. 0x09, 0x1b, 0x82, 0x04, 0xd2, 0x95, 0xdf, 0x0b, 0xf7, 0x2e, 0x9d, 0x20, 0x44, 0x79, 0xaa, 0xe6,
  1998. 0x55, 0x7e, 0x9e, 0x1a, 0xb0, 0x01, 0xd5, 0x79, 0x6a, 0xfe, 0x40, 0x8e, 0x96, 0xb0, 0x09, 0xc6,
  1999. 0x8c, 0x9e, 0xe7, 0xcb, 0xbe, 0xfb, 0xcc, 0xee, 0x39, 0x1d, 0xb4, 0x4c, 0xbf, 0x98, 0xef, 0xe6,
  2000. 0xc8, 0x3b, 0x24, 0x6e, 0x67, 0x4e, 0x0f, 0x41, 0x05, 0xfc, 0x06, 0xdc, 0x9b, 0x05, 0x4d, 0x95,
  2001. 0x1a, 0x54, 0xa4, 0x71, 0x8c, 0x60, 0xcd, 0x8e, 0x40, 0xa1, 0x12, 0xae, 0xc1, 0x5d, 0x2e, 0xa6,
  2002. 0x3e, 0x98, 0xd9, 0x10, 0x42, 0xd4, 0x6d, 0x1c, 0xf0, 0x03, 0xdf, 0x09, 0x89, 0xc8, 0x76, 0xb4,
  2003. 0x42, 0xc3, 0xcb, 0xe5, 0x87, 0xa1, 0xe7, 0x13, 0x84, 0xef, 0xff, 0x68, 0x4e, 0x0e, 0xd3, 0x9c,
  2004. 0x62, 0xcf, 0xa9, 0xd2, 0xce, 0x51, 0x02, 0x57, 0x61, 0x6d, 0x5a, 0xca, 0x73, 0x0c, 0x69, 0xec,
  2005. 0xe9, 0x7e, 0xa2, 0x8b, 0x3e, 0x03, 0xe9, 0xf8, 0x35, 0xa8, 0xa8, 0xf2, 0x16, 0xaf, 0x2e, 0x74,
  2006. 0x56, 0x72, 0xfb, 0x9f, 0x3a, 0x6c, 0x48, 0xfb, 0x7e, 0xd7, 0x76, 0xed, 0x2e, 0xf1, 0x0f, 0x89,
  2007. 0xff, 0xcc, 0x69, 0x13, 0xfc, 0x2d, 0xf1, 0x27, 0x03, 0xae, 0xc8, 0x9d, 0x5b, 0x7e, 0x2a, 0xaa,
  2008. 0x6e, 0xcc, 0xd1, 0x88, 0xca, 0xd5, 0x82, 0xfc, 0x13, 0x12, 0x8a, 0x1b, 0xa8, 0x82, 0x53, 0x6e,
  2009. 0x15, 0xd5, 0xea, 0x3c, 0x95, 0xb0, 0xb1, 0x17, 0x1d, 0x24, 0x78, 0xf2, 0xa9, 0x66, 0x94, 0xb3,
  2010. 0x96, 0x6a, 0x66, 0xea, 0x58, 0xf4, 0x36, 0x64, 0xb8, 0xbb, 0x54, 0x03, 0x4a, 0x4a, 0xa8, 0x06,
  2011. 0xa6, 0xfa, 0xf0, 0x1e, 0xe4, 0x22, 0x9f, 0xe2, 0xbb, 0xca, 0x42, 0x6a, 0xc2, 0x54, 0x5f, 0x9b,
  2012. 0xaf, 0xe4, 0x66, 0xb6, 0x7f, 0xab, 0xc3, 0x5a, 0xd4, 0x7a, 0xa6, 0x7c, 0xdd, 0x8c, 0xd2, 0x80,
  2013. 0xae, 0x3c, 0x70, 0x69, 0x77, 0x20, 0xb8, 0x3c, 0xa7, 0x88, 0x55, 0xe7, 0x09, 0x1b, 0xda, 0x43,
  2014. 0x0d, 0x1f, 0x40, 0x51, 0xe5, 0x70, 0xb4, 0xd5, 0xb9, 0xcf, 0x56, 0xd1, 0x56, 0xaf, 0x79, 0xc1,
  2015. 0xd9, 0x8b, 0x4a, 0xb8, 0xea, 0xf9, 0x39, 0x2f, 0x26, 0x91, 0xe3, 0xe6, 0x3e, 0x1b, 0x7c, 0x07,
  2016. 0xf2, 0x93, 0x1b, 0x30, 0x56, 0x9c, 0x33, 0x7d, 0x7f, 0xaf, 0x6e, 0x5e, 0xa3, 0xe5, 0x96, 0x5a,
  2017. 0x5f, 0x7b, 0xfe, 0xc2, 0x48, 0x7c, 0xfa, 0xc2, 0x48, 0x7c, 0xf6, 0xc2, 0xd0, 0x7e, 0x7c, 0x65,
  2018. 0x68, 0xbf, 0xba, 0x32, 0xb4, 0x3f, 0x5e, 0x19, 0xda, 0xf3, 0x2b, 0x43, 0xfb, 0xcb, 0x95, 0xa1,
  2019. 0xfd, 0xfd, 0xca, 0x48, 0x7c, 0x76, 0x65, 0x68, 0x3f, 0x79, 0x69, 0x24, 0x9e, 0xbf, 0x34, 0x12,
  2020. 0x9f, 0xbe, 0x34, 0x12, 0x27, 0x19, 0x56, 0xc1, 0x1f, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x29,
  2021. 0x5b, 0x99, 0x9e, 0x85, 0x1d, 0x00, 0x00,
  2022. }
  2023. func (x ResultCode) String() string {
  2024. s, ok := ResultCode_name[int32(x)]
  2025. if ok {
  2026. return s
  2027. }
  2028. return strconv.Itoa(int(x))
  2029. }
  2030. func (x ExceptionCode) String() string {
  2031. s, ok := ExceptionCode_name[int32(x)]
  2032. if ok {
  2033. return s
  2034. }
  2035. return strconv.Itoa(int(x))
  2036. }
  2037. func (x BranchMessageType) String() string {
  2038. s, ok := BranchMessageType_name[int32(x)]
  2039. if ok {
  2040. return s
  2041. }
  2042. return strconv.Itoa(int(x))
  2043. }
  2044. func (x GlobalSession_GlobalStatus) String() string {
  2045. s, ok := GlobalSession_GlobalStatus_name[int32(x)]
  2046. if ok {
  2047. return s
  2048. }
  2049. return strconv.Itoa(int(x))
  2050. }
  2051. func (x BranchSession_BranchType) String() string {
  2052. s, ok := BranchSession_BranchType_name[int32(x)]
  2053. if ok {
  2054. return s
  2055. }
  2056. return strconv.Itoa(int(x))
  2057. }
  2058. func (x BranchSession_BranchStatus) String() string {
  2059. s, ok := BranchSession_BranchStatus_name[int32(x)]
  2060. if ok {
  2061. return s
  2062. }
  2063. return strconv.Itoa(int(x))
  2064. }
  2065. func (this *GlobalSession) Equal(that interface{}) bool {
  2066. if that == nil {
  2067. return this == nil
  2068. }
  2069. that1, ok := that.(*GlobalSession)
  2070. if !ok {
  2071. that2, ok := that.(GlobalSession)
  2072. if ok {
  2073. that1 = &that2
  2074. } else {
  2075. return false
  2076. }
  2077. }
  2078. if that1 == nil {
  2079. return this == nil
  2080. } else if this == nil {
  2081. return false
  2082. }
  2083. if this.Addressing != that1.Addressing {
  2084. return false
  2085. }
  2086. if this.XID != that1.XID {
  2087. return false
  2088. }
  2089. if this.TransactionID != that1.TransactionID {
  2090. return false
  2091. }
  2092. if this.TransactionName != that1.TransactionName {
  2093. return false
  2094. }
  2095. if this.Timeout != that1.Timeout {
  2096. return false
  2097. }
  2098. if this.BeginTime != that1.BeginTime {
  2099. return false
  2100. }
  2101. if this.Status != that1.Status {
  2102. return false
  2103. }
  2104. if this.Active != that1.Active {
  2105. return false
  2106. }
  2107. return true
  2108. }
  2109. func (this *BranchSession) Equal(that interface{}) bool {
  2110. if that == nil {
  2111. return this == nil
  2112. }
  2113. that1, ok := that.(*BranchSession)
  2114. if !ok {
  2115. that2, ok := that.(BranchSession)
  2116. if ok {
  2117. that1 = &that2
  2118. } else {
  2119. return false
  2120. }
  2121. }
  2122. if that1 == nil {
  2123. return this == nil
  2124. } else if this == nil {
  2125. return false
  2126. }
  2127. if this.Addressing != that1.Addressing {
  2128. return false
  2129. }
  2130. if this.XID != that1.XID {
  2131. return false
  2132. }
  2133. if this.BranchID != that1.BranchID {
  2134. return false
  2135. }
  2136. if this.TransactionID != that1.TransactionID {
  2137. return false
  2138. }
  2139. if this.ResourceID != that1.ResourceID {
  2140. return false
  2141. }
  2142. if this.LockKey != that1.LockKey {
  2143. return false
  2144. }
  2145. if this.Type != that1.Type {
  2146. return false
  2147. }
  2148. if this.Status != that1.Status {
  2149. return false
  2150. }
  2151. if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
  2152. return false
  2153. }
  2154. if this.AsyncCommit != that1.AsyncCommit {
  2155. return false
  2156. }
  2157. return true
  2158. }
  2159. func (this *RowLock) Equal(that interface{}) bool {
  2160. if that == nil {
  2161. return this == nil
  2162. }
  2163. that1, ok := that.(*RowLock)
  2164. if !ok {
  2165. that2, ok := that.(RowLock)
  2166. if ok {
  2167. that1 = &that2
  2168. } else {
  2169. return false
  2170. }
  2171. }
  2172. if that1 == nil {
  2173. return this == nil
  2174. } else if this == nil {
  2175. return false
  2176. }
  2177. if this.XID != that1.XID {
  2178. return false
  2179. }
  2180. if this.TransactionID != that1.TransactionID {
  2181. return false
  2182. }
  2183. if this.BranchID != that1.BranchID {
  2184. return false
  2185. }
  2186. if this.ResourceID != that1.ResourceID {
  2187. return false
  2188. }
  2189. if this.TableName != that1.TableName {
  2190. return false
  2191. }
  2192. if this.PK != that1.PK {
  2193. return false
  2194. }
  2195. if this.RowKey != that1.RowKey {
  2196. return false
  2197. }
  2198. return true
  2199. }
  2200. func (this *GlobalBeginRequest) Equal(that interface{}) bool {
  2201. if that == nil {
  2202. return this == nil
  2203. }
  2204. that1, ok := that.(*GlobalBeginRequest)
  2205. if !ok {
  2206. that2, ok := that.(GlobalBeginRequest)
  2207. if ok {
  2208. that1 = &that2
  2209. } else {
  2210. return false
  2211. }
  2212. }
  2213. if that1 == nil {
  2214. return this == nil
  2215. } else if this == nil {
  2216. return false
  2217. }
  2218. if this.Addressing != that1.Addressing {
  2219. return false
  2220. }
  2221. if this.Timeout != that1.Timeout {
  2222. return false
  2223. }
  2224. if this.TransactionName != that1.TransactionName {
  2225. return false
  2226. }
  2227. return true
  2228. }
  2229. func (this *GlobalBeginResponse) Equal(that interface{}) bool {
  2230. if that == nil {
  2231. return this == nil
  2232. }
  2233. that1, ok := that.(*GlobalBeginResponse)
  2234. if !ok {
  2235. that2, ok := that.(GlobalBeginResponse)
  2236. if ok {
  2237. that1 = &that2
  2238. } else {
  2239. return false
  2240. }
  2241. }
  2242. if that1 == nil {
  2243. return this == nil
  2244. } else if this == nil {
  2245. return false
  2246. }
  2247. if this.ResultCode != that1.ResultCode {
  2248. return false
  2249. }
  2250. if this.ExceptionCode != that1.ExceptionCode {
  2251. return false
  2252. }
  2253. if this.Message != that1.Message {
  2254. return false
  2255. }
  2256. if this.XID != that1.XID {
  2257. return false
  2258. }
  2259. return true
  2260. }
  2261. func (this *BranchRegisterRequest) Equal(that interface{}) bool {
  2262. if that == nil {
  2263. return this == nil
  2264. }
  2265. that1, ok := that.(*BranchRegisterRequest)
  2266. if !ok {
  2267. that2, ok := that.(BranchRegisterRequest)
  2268. if ok {
  2269. that1 = &that2
  2270. } else {
  2271. return false
  2272. }
  2273. }
  2274. if that1 == nil {
  2275. return this == nil
  2276. } else if this == nil {
  2277. return false
  2278. }
  2279. if this.Addressing != that1.Addressing {
  2280. return false
  2281. }
  2282. if this.XID != that1.XID {
  2283. return false
  2284. }
  2285. if this.ResourceID != that1.ResourceID {
  2286. return false
  2287. }
  2288. if this.LockKey != that1.LockKey {
  2289. return false
  2290. }
  2291. if this.BranchType != that1.BranchType {
  2292. return false
  2293. }
  2294. if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
  2295. return false
  2296. }
  2297. if this.AsyncCommit != that1.AsyncCommit {
  2298. return false
  2299. }
  2300. return true
  2301. }
  2302. func (this *BranchRegisterResponse) Equal(that interface{}) bool {
  2303. if that == nil {
  2304. return this == nil
  2305. }
  2306. that1, ok := that.(*BranchRegisterResponse)
  2307. if !ok {
  2308. that2, ok := that.(BranchRegisterResponse)
  2309. if ok {
  2310. that1 = &that2
  2311. } else {
  2312. return false
  2313. }
  2314. }
  2315. if that1 == nil {
  2316. return this == nil
  2317. } else if this == nil {
  2318. return false
  2319. }
  2320. if this.ResultCode != that1.ResultCode {
  2321. return false
  2322. }
  2323. if this.ExceptionCode != that1.ExceptionCode {
  2324. return false
  2325. }
  2326. if this.Message != that1.Message {
  2327. return false
  2328. }
  2329. if this.BranchID != that1.BranchID {
  2330. return false
  2331. }
  2332. return true
  2333. }
  2334. func (this *BranchReportRequest) Equal(that interface{}) bool {
  2335. if that == nil {
  2336. return this == nil
  2337. }
  2338. that1, ok := that.(*BranchReportRequest)
  2339. if !ok {
  2340. that2, ok := that.(BranchReportRequest)
  2341. if ok {
  2342. that1 = &that2
  2343. } else {
  2344. return false
  2345. }
  2346. }
  2347. if that1 == nil {
  2348. return this == nil
  2349. } else if this == nil {
  2350. return false
  2351. }
  2352. if this.XID != that1.XID {
  2353. return false
  2354. }
  2355. if this.BranchID != that1.BranchID {
  2356. return false
  2357. }
  2358. if this.ResourceID != that1.ResourceID {
  2359. return false
  2360. }
  2361. if this.BranchType != that1.BranchType {
  2362. return false
  2363. }
  2364. if this.BranchStatus != that1.BranchStatus {
  2365. return false
  2366. }
  2367. if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
  2368. return false
  2369. }
  2370. return true
  2371. }
  2372. func (this *BranchReportResponse) Equal(that interface{}) bool {
  2373. if that == nil {
  2374. return this == nil
  2375. }
  2376. that1, ok := that.(*BranchReportResponse)
  2377. if !ok {
  2378. that2, ok := that.(BranchReportResponse)
  2379. if ok {
  2380. that1 = &that2
  2381. } else {
  2382. return false
  2383. }
  2384. }
  2385. if that1 == nil {
  2386. return this == nil
  2387. } else if this == nil {
  2388. return false
  2389. }
  2390. if this.ResultCode != that1.ResultCode {
  2391. return false
  2392. }
  2393. if this.ExceptionCode != that1.ExceptionCode {
  2394. return false
  2395. }
  2396. if this.Message != that1.Message {
  2397. return false
  2398. }
  2399. return true
  2400. }
  2401. func (this *GlobalLockQueryRequest) Equal(that interface{}) bool {
  2402. if that == nil {
  2403. return this == nil
  2404. }
  2405. that1, ok := that.(*GlobalLockQueryRequest)
  2406. if !ok {
  2407. that2, ok := that.(GlobalLockQueryRequest)
  2408. if ok {
  2409. that1 = &that2
  2410. } else {
  2411. return false
  2412. }
  2413. }
  2414. if that1 == nil {
  2415. return this == nil
  2416. } else if this == nil {
  2417. return false
  2418. }
  2419. if this.XID != that1.XID {
  2420. return false
  2421. }
  2422. if this.ResourceID != that1.ResourceID {
  2423. return false
  2424. }
  2425. if this.LockKey != that1.LockKey {
  2426. return false
  2427. }
  2428. if this.BranchType != that1.BranchType {
  2429. return false
  2430. }
  2431. return true
  2432. }
  2433. func (this *GlobalLockQueryResponse) Equal(that interface{}) bool {
  2434. if that == nil {
  2435. return this == nil
  2436. }
  2437. that1, ok := that.(*GlobalLockQueryResponse)
  2438. if !ok {
  2439. that2, ok := that.(GlobalLockQueryResponse)
  2440. if ok {
  2441. that1 = &that2
  2442. } else {
  2443. return false
  2444. }
  2445. }
  2446. if that1 == nil {
  2447. return this == nil
  2448. } else if this == nil {
  2449. return false
  2450. }
  2451. if this.ResultCode != that1.ResultCode {
  2452. return false
  2453. }
  2454. if this.ExceptionCode != that1.ExceptionCode {
  2455. return false
  2456. }
  2457. if this.Message != that1.Message {
  2458. return false
  2459. }
  2460. if this.Lockable != that1.Lockable {
  2461. return false
  2462. }
  2463. return true
  2464. }
  2465. func (this *GlobalStatusRequest) Equal(that interface{}) bool {
  2466. if that == nil {
  2467. return this == nil
  2468. }
  2469. that1, ok := that.(*GlobalStatusRequest)
  2470. if !ok {
  2471. that2, ok := that.(GlobalStatusRequest)
  2472. if ok {
  2473. that1 = &that2
  2474. } else {
  2475. return false
  2476. }
  2477. }
  2478. if that1 == nil {
  2479. return this == nil
  2480. } else if this == nil {
  2481. return false
  2482. }
  2483. if this.XID != that1.XID {
  2484. return false
  2485. }
  2486. return true
  2487. }
  2488. func (this *GlobalStatusResponse) Equal(that interface{}) bool {
  2489. if that == nil {
  2490. return this == nil
  2491. }
  2492. that1, ok := that.(*GlobalStatusResponse)
  2493. if !ok {
  2494. that2, ok := that.(GlobalStatusResponse)
  2495. if ok {
  2496. that1 = &that2
  2497. } else {
  2498. return false
  2499. }
  2500. }
  2501. if that1 == nil {
  2502. return this == nil
  2503. } else if this == nil {
  2504. return false
  2505. }
  2506. if this.ResultCode != that1.ResultCode {
  2507. return false
  2508. }
  2509. if this.ExceptionCode != that1.ExceptionCode {
  2510. return false
  2511. }
  2512. if this.Message != that1.Message {
  2513. return false
  2514. }
  2515. if this.GlobalStatus != that1.GlobalStatus {
  2516. return false
  2517. }
  2518. return true
  2519. }
  2520. func (this *GlobalCommitRequest) Equal(that interface{}) bool {
  2521. if that == nil {
  2522. return this == nil
  2523. }
  2524. that1, ok := that.(*GlobalCommitRequest)
  2525. if !ok {
  2526. that2, ok := that.(GlobalCommitRequest)
  2527. if ok {
  2528. that1 = &that2
  2529. } else {
  2530. return false
  2531. }
  2532. }
  2533. if that1 == nil {
  2534. return this == nil
  2535. } else if this == nil {
  2536. return false
  2537. }
  2538. if this.XID != that1.XID {
  2539. return false
  2540. }
  2541. return true
  2542. }
  2543. func (this *GlobalCommitResponse) Equal(that interface{}) bool {
  2544. if that == nil {
  2545. return this == nil
  2546. }
  2547. that1, ok := that.(*GlobalCommitResponse)
  2548. if !ok {
  2549. that2, ok := that.(GlobalCommitResponse)
  2550. if ok {
  2551. that1 = &that2
  2552. } else {
  2553. return false
  2554. }
  2555. }
  2556. if that1 == nil {
  2557. return this == nil
  2558. } else if this == nil {
  2559. return false
  2560. }
  2561. if this.ResultCode != that1.ResultCode {
  2562. return false
  2563. }
  2564. if this.ExceptionCode != that1.ExceptionCode {
  2565. return false
  2566. }
  2567. if this.Message != that1.Message {
  2568. return false
  2569. }
  2570. if this.GlobalStatus != that1.GlobalStatus {
  2571. return false
  2572. }
  2573. return true
  2574. }
  2575. func (this *GlobalRollbackRequest) Equal(that interface{}) bool {
  2576. if that == nil {
  2577. return this == nil
  2578. }
  2579. that1, ok := that.(*GlobalRollbackRequest)
  2580. if !ok {
  2581. that2, ok := that.(GlobalRollbackRequest)
  2582. if ok {
  2583. that1 = &that2
  2584. } else {
  2585. return false
  2586. }
  2587. }
  2588. if that1 == nil {
  2589. return this == nil
  2590. } else if this == nil {
  2591. return false
  2592. }
  2593. if this.XID != that1.XID {
  2594. return false
  2595. }
  2596. return true
  2597. }
  2598. func (this *GlobalRollbackResponse) Equal(that interface{}) bool {
  2599. if that == nil {
  2600. return this == nil
  2601. }
  2602. that1, ok := that.(*GlobalRollbackResponse)
  2603. if !ok {
  2604. that2, ok := that.(GlobalRollbackResponse)
  2605. if ok {
  2606. that1 = &that2
  2607. } else {
  2608. return false
  2609. }
  2610. }
  2611. if that1 == nil {
  2612. return this == nil
  2613. } else if this == nil {
  2614. return false
  2615. }
  2616. if this.ResultCode != that1.ResultCode {
  2617. return false
  2618. }
  2619. if this.ExceptionCode != that1.ExceptionCode {
  2620. return false
  2621. }
  2622. if this.Message != that1.Message {
  2623. return false
  2624. }
  2625. if this.GlobalStatus != that1.GlobalStatus {
  2626. return false
  2627. }
  2628. return true
  2629. }
  2630. func (this *GlobalReportRequest) Equal(that interface{}) bool {
  2631. if that == nil {
  2632. return this == nil
  2633. }
  2634. that1, ok := that.(*GlobalReportRequest)
  2635. if !ok {
  2636. that2, ok := that.(GlobalReportRequest)
  2637. if ok {
  2638. that1 = &that2
  2639. } else {
  2640. return false
  2641. }
  2642. }
  2643. if that1 == nil {
  2644. return this == nil
  2645. } else if this == nil {
  2646. return false
  2647. }
  2648. if this.XID != that1.XID {
  2649. return false
  2650. }
  2651. if this.GlobalStatus != that1.GlobalStatus {
  2652. return false
  2653. }
  2654. return true
  2655. }
  2656. func (this *GlobalReportResponse) Equal(that interface{}) bool {
  2657. if that == nil {
  2658. return this == nil
  2659. }
  2660. that1, ok := that.(*GlobalReportResponse)
  2661. if !ok {
  2662. that2, ok := that.(GlobalReportResponse)
  2663. if ok {
  2664. that1 = &that2
  2665. } else {
  2666. return false
  2667. }
  2668. }
  2669. if that1 == nil {
  2670. return this == nil
  2671. } else if this == nil {
  2672. return false
  2673. }
  2674. if this.ResultCode != that1.ResultCode {
  2675. return false
  2676. }
  2677. if this.ExceptionCode != that1.ExceptionCode {
  2678. return false
  2679. }
  2680. if this.Message != that1.Message {
  2681. return false
  2682. }
  2683. if this.GlobalStatus != that1.GlobalStatus {
  2684. return false
  2685. }
  2686. return true
  2687. }
  2688. func (this *BranchCommitRequest) Equal(that interface{}) bool {
  2689. if that == nil {
  2690. return this == nil
  2691. }
  2692. that1, ok := that.(*BranchCommitRequest)
  2693. if !ok {
  2694. that2, ok := that.(BranchCommitRequest)
  2695. if ok {
  2696. that1 = &that2
  2697. } else {
  2698. return false
  2699. }
  2700. }
  2701. if that1 == nil {
  2702. return this == nil
  2703. } else if this == nil {
  2704. return false
  2705. }
  2706. if this.XID != that1.XID {
  2707. return false
  2708. }
  2709. if this.BranchID != that1.BranchID {
  2710. return false
  2711. }
  2712. if this.ResourceID != that1.ResourceID {
  2713. return false
  2714. }
  2715. if this.LockKey != that1.LockKey {
  2716. return false
  2717. }
  2718. if this.BranchType != that1.BranchType {
  2719. return false
  2720. }
  2721. if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
  2722. return false
  2723. }
  2724. return true
  2725. }
  2726. func (this *BranchCommitResponse) Equal(that interface{}) bool {
  2727. if that == nil {
  2728. return this == nil
  2729. }
  2730. that1, ok := that.(*BranchCommitResponse)
  2731. if !ok {
  2732. that2, ok := that.(BranchCommitResponse)
  2733. if ok {
  2734. that1 = &that2
  2735. } else {
  2736. return false
  2737. }
  2738. }
  2739. if that1 == nil {
  2740. return this == nil
  2741. } else if this == nil {
  2742. return false
  2743. }
  2744. if this.ResultCode != that1.ResultCode {
  2745. return false
  2746. }
  2747. if this.ExceptionCode != that1.ExceptionCode {
  2748. return false
  2749. }
  2750. if this.Message != that1.Message {
  2751. return false
  2752. }
  2753. if this.XID != that1.XID {
  2754. return false
  2755. }
  2756. if this.BranchID != that1.BranchID {
  2757. return false
  2758. }
  2759. if this.BranchStatus != that1.BranchStatus {
  2760. return false
  2761. }
  2762. return true
  2763. }
  2764. func (this *BranchRollbackRequest) Equal(that interface{}) bool {
  2765. if that == nil {
  2766. return this == nil
  2767. }
  2768. that1, ok := that.(*BranchRollbackRequest)
  2769. if !ok {
  2770. that2, ok := that.(BranchRollbackRequest)
  2771. if ok {
  2772. that1 = &that2
  2773. } else {
  2774. return false
  2775. }
  2776. }
  2777. if that1 == nil {
  2778. return this == nil
  2779. } else if this == nil {
  2780. return false
  2781. }
  2782. if this.XID != that1.XID {
  2783. return false
  2784. }
  2785. if this.BranchID != that1.BranchID {
  2786. return false
  2787. }
  2788. if this.ResourceID != that1.ResourceID {
  2789. return false
  2790. }
  2791. if this.LockKey != that1.LockKey {
  2792. return false
  2793. }
  2794. if this.BranchType != that1.BranchType {
  2795. return false
  2796. }
  2797. if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
  2798. return false
  2799. }
  2800. return true
  2801. }
  2802. func (this *BranchRollbackResponse) Equal(that interface{}) bool {
  2803. if that == nil {
  2804. return this == nil
  2805. }
  2806. that1, ok := that.(*BranchRollbackResponse)
  2807. if !ok {
  2808. that2, ok := that.(BranchRollbackResponse)
  2809. if ok {
  2810. that1 = &that2
  2811. } else {
  2812. return false
  2813. }
  2814. }
  2815. if that1 == nil {
  2816. return this == nil
  2817. } else if this == nil {
  2818. return false
  2819. }
  2820. if this.ResultCode != that1.ResultCode {
  2821. return false
  2822. }
  2823. if this.ExceptionCode != that1.ExceptionCode {
  2824. return false
  2825. }
  2826. if this.Message != that1.Message {
  2827. return false
  2828. }
  2829. if this.XID != that1.XID {
  2830. return false
  2831. }
  2832. if this.BranchID != that1.BranchID {
  2833. return false
  2834. }
  2835. if this.BranchStatus != that1.BranchStatus {
  2836. return false
  2837. }
  2838. return true
  2839. }
  2840. func (this *BranchMessage) Equal(that interface{}) bool {
  2841. if that == nil {
  2842. return this == nil
  2843. }
  2844. that1, ok := that.(*BranchMessage)
  2845. if !ok {
  2846. that2, ok := that.(BranchMessage)
  2847. if ok {
  2848. that1 = &that2
  2849. } else {
  2850. return false
  2851. }
  2852. }
  2853. if that1 == nil {
  2854. return this == nil
  2855. } else if this == nil {
  2856. return false
  2857. }
  2858. if this.ID != that1.ID {
  2859. return false
  2860. }
  2861. if this.BranchMessageType != that1.BranchMessageType {
  2862. return false
  2863. }
  2864. if !this.Message.Equal(that1.Message) {
  2865. return false
  2866. }
  2867. return true
  2868. }
  2869. func (this *GlobalSession) GoString() string {
  2870. if this == nil {
  2871. return "nil"
  2872. }
  2873. s := make([]string, 0, 12)
  2874. s = append(s, "&apis.GlobalSession{")
  2875. s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
  2876. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2877. s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
  2878. s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
  2879. s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
  2880. s = append(s, "BeginTime: "+fmt.Sprintf("%#v", this.BeginTime)+",\n")
  2881. s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
  2882. s = append(s, "Active: "+fmt.Sprintf("%#v", this.Active)+",\n")
  2883. s = append(s, "}")
  2884. return strings.Join(s, "")
  2885. }
  2886. func (this *BranchSession) GoString() string {
  2887. if this == nil {
  2888. return "nil"
  2889. }
  2890. s := make([]string, 0, 14)
  2891. s = append(s, "&apis.BranchSession{")
  2892. s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
  2893. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2894. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  2895. s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
  2896. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  2897. s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
  2898. s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
  2899. s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
  2900. s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
  2901. s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
  2902. s = append(s, "}")
  2903. return strings.Join(s, "")
  2904. }
  2905. func (this *RowLock) GoString() string {
  2906. if this == nil {
  2907. return "nil"
  2908. }
  2909. s := make([]string, 0, 11)
  2910. s = append(s, "&apis.RowLock{")
  2911. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2912. s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
  2913. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  2914. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  2915. s = append(s, "TableName: "+fmt.Sprintf("%#v", this.TableName)+",\n")
  2916. s = append(s, "PK: "+fmt.Sprintf("%#v", this.PK)+",\n")
  2917. s = append(s, "RowKey: "+fmt.Sprintf("%#v", this.RowKey)+",\n")
  2918. s = append(s, "}")
  2919. return strings.Join(s, "")
  2920. }
  2921. func (this *GlobalBeginRequest) GoString() string {
  2922. if this == nil {
  2923. return "nil"
  2924. }
  2925. s := make([]string, 0, 7)
  2926. s = append(s, "&apis.GlobalBeginRequest{")
  2927. s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
  2928. s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
  2929. s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
  2930. s = append(s, "}")
  2931. return strings.Join(s, "")
  2932. }
  2933. func (this *GlobalBeginResponse) GoString() string {
  2934. if this == nil {
  2935. return "nil"
  2936. }
  2937. s := make([]string, 0, 8)
  2938. s = append(s, "&apis.GlobalBeginResponse{")
  2939. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  2940. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  2941. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  2942. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2943. s = append(s, "}")
  2944. return strings.Join(s, "")
  2945. }
  2946. func (this *BranchRegisterRequest) GoString() string {
  2947. if this == nil {
  2948. return "nil"
  2949. }
  2950. s := make([]string, 0, 11)
  2951. s = append(s, "&apis.BranchRegisterRequest{")
  2952. s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
  2953. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2954. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  2955. s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
  2956. s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
  2957. s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
  2958. s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
  2959. s = append(s, "}")
  2960. return strings.Join(s, "")
  2961. }
  2962. func (this *BranchRegisterResponse) GoString() string {
  2963. if this == nil {
  2964. return "nil"
  2965. }
  2966. s := make([]string, 0, 8)
  2967. s = append(s, "&apis.BranchRegisterResponse{")
  2968. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  2969. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  2970. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  2971. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  2972. s = append(s, "}")
  2973. return strings.Join(s, "")
  2974. }
  2975. func (this *BranchReportRequest) GoString() string {
  2976. if this == nil {
  2977. return "nil"
  2978. }
  2979. s := make([]string, 0, 10)
  2980. s = append(s, "&apis.BranchReportRequest{")
  2981. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  2982. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  2983. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  2984. s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
  2985. s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
  2986. s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
  2987. s = append(s, "}")
  2988. return strings.Join(s, "")
  2989. }
  2990. func (this *BranchReportResponse) GoString() string {
  2991. if this == nil {
  2992. return "nil"
  2993. }
  2994. s := make([]string, 0, 7)
  2995. s = append(s, "&apis.BranchReportResponse{")
  2996. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  2997. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  2998. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  2999. s = append(s, "}")
  3000. return strings.Join(s, "")
  3001. }
  3002. func (this *GlobalLockQueryRequest) GoString() string {
  3003. if this == nil {
  3004. return "nil"
  3005. }
  3006. s := make([]string, 0, 8)
  3007. s = append(s, "&apis.GlobalLockQueryRequest{")
  3008. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3009. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  3010. s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
  3011. s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
  3012. s = append(s, "}")
  3013. return strings.Join(s, "")
  3014. }
  3015. func (this *GlobalLockQueryResponse) GoString() string {
  3016. if this == nil {
  3017. return "nil"
  3018. }
  3019. s := make([]string, 0, 8)
  3020. s = append(s, "&apis.GlobalLockQueryResponse{")
  3021. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3022. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3023. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3024. s = append(s, "Lockable: "+fmt.Sprintf("%#v", this.Lockable)+",\n")
  3025. s = append(s, "}")
  3026. return strings.Join(s, "")
  3027. }
  3028. func (this *GlobalStatusRequest) GoString() string {
  3029. if this == nil {
  3030. return "nil"
  3031. }
  3032. s := make([]string, 0, 5)
  3033. s = append(s, "&apis.GlobalStatusRequest{")
  3034. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3035. s = append(s, "}")
  3036. return strings.Join(s, "")
  3037. }
  3038. func (this *GlobalStatusResponse) GoString() string {
  3039. if this == nil {
  3040. return "nil"
  3041. }
  3042. s := make([]string, 0, 8)
  3043. s = append(s, "&apis.GlobalStatusResponse{")
  3044. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3045. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3046. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3047. s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
  3048. s = append(s, "}")
  3049. return strings.Join(s, "")
  3050. }
  3051. func (this *GlobalCommitRequest) GoString() string {
  3052. if this == nil {
  3053. return "nil"
  3054. }
  3055. s := make([]string, 0, 5)
  3056. s = append(s, "&apis.GlobalCommitRequest{")
  3057. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3058. s = append(s, "}")
  3059. return strings.Join(s, "")
  3060. }
  3061. func (this *GlobalCommitResponse) GoString() string {
  3062. if this == nil {
  3063. return "nil"
  3064. }
  3065. s := make([]string, 0, 8)
  3066. s = append(s, "&apis.GlobalCommitResponse{")
  3067. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3068. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3069. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3070. s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
  3071. s = append(s, "}")
  3072. return strings.Join(s, "")
  3073. }
  3074. func (this *GlobalRollbackRequest) GoString() string {
  3075. if this == nil {
  3076. return "nil"
  3077. }
  3078. s := make([]string, 0, 5)
  3079. s = append(s, "&apis.GlobalRollbackRequest{")
  3080. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3081. s = append(s, "}")
  3082. return strings.Join(s, "")
  3083. }
  3084. func (this *GlobalRollbackResponse) GoString() string {
  3085. if this == nil {
  3086. return "nil"
  3087. }
  3088. s := make([]string, 0, 8)
  3089. s = append(s, "&apis.GlobalRollbackResponse{")
  3090. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3091. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3092. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3093. s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
  3094. s = append(s, "}")
  3095. return strings.Join(s, "")
  3096. }
  3097. func (this *GlobalReportRequest) GoString() string {
  3098. if this == nil {
  3099. return "nil"
  3100. }
  3101. s := make([]string, 0, 6)
  3102. s = append(s, "&apis.GlobalReportRequest{")
  3103. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3104. s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
  3105. s = append(s, "}")
  3106. return strings.Join(s, "")
  3107. }
  3108. func (this *GlobalReportResponse) GoString() string {
  3109. if this == nil {
  3110. return "nil"
  3111. }
  3112. s := make([]string, 0, 8)
  3113. s = append(s, "&apis.GlobalReportResponse{")
  3114. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3115. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3116. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3117. s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
  3118. s = append(s, "}")
  3119. return strings.Join(s, "")
  3120. }
  3121. func (this *BranchCommitRequest) GoString() string {
  3122. if this == nil {
  3123. return "nil"
  3124. }
  3125. s := make([]string, 0, 10)
  3126. s = append(s, "&apis.BranchCommitRequest{")
  3127. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3128. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  3129. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  3130. s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
  3131. s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
  3132. s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
  3133. s = append(s, "}")
  3134. return strings.Join(s, "")
  3135. }
  3136. func (this *BranchCommitResponse) GoString() string {
  3137. if this == nil {
  3138. return "nil"
  3139. }
  3140. s := make([]string, 0, 10)
  3141. s = append(s, "&apis.BranchCommitResponse{")
  3142. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3143. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3144. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3145. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3146. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  3147. s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
  3148. s = append(s, "}")
  3149. return strings.Join(s, "")
  3150. }
  3151. func (this *BranchRollbackRequest) GoString() string {
  3152. if this == nil {
  3153. return "nil"
  3154. }
  3155. s := make([]string, 0, 10)
  3156. s = append(s, "&apis.BranchRollbackRequest{")
  3157. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3158. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  3159. s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
  3160. s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
  3161. s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
  3162. s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
  3163. s = append(s, "}")
  3164. return strings.Join(s, "")
  3165. }
  3166. func (this *BranchRollbackResponse) GoString() string {
  3167. if this == nil {
  3168. return "nil"
  3169. }
  3170. s := make([]string, 0, 10)
  3171. s = append(s, "&apis.BranchRollbackResponse{")
  3172. s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
  3173. s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
  3174. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3175. s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
  3176. s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
  3177. s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
  3178. s = append(s, "}")
  3179. return strings.Join(s, "")
  3180. }
  3181. func (this *BranchMessage) GoString() string {
  3182. if this == nil {
  3183. return "nil"
  3184. }
  3185. s := make([]string, 0, 7)
  3186. s = append(s, "&apis.BranchMessage{")
  3187. s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
  3188. s = append(s, "BranchMessageType: "+fmt.Sprintf("%#v", this.BranchMessageType)+",\n")
  3189. if this.Message != nil {
  3190. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  3191. }
  3192. s = append(s, "}")
  3193. return strings.Join(s, "")
  3194. }
  3195. func valueToGoStringSeata(v interface{}, typ string) string {
  3196. rv := reflect.ValueOf(v)
  3197. if rv.IsNil() {
  3198. return "nil"
  3199. }
  3200. pv := reflect.Indirect(rv).Interface()
  3201. return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
  3202. }
  3203. func (m *GlobalSession) Marshal() (dAtA []byte, err error) {
  3204. size := m.Size()
  3205. dAtA = make([]byte, size)
  3206. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3207. if err != nil {
  3208. return nil, err
  3209. }
  3210. return dAtA[:n], nil
  3211. }
  3212. func (m *GlobalSession) MarshalTo(dAtA []byte) (int, error) {
  3213. size := m.Size()
  3214. return m.MarshalToSizedBuffer(dAtA[:size])
  3215. }
  3216. func (m *GlobalSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3217. i := len(dAtA)
  3218. _ = i
  3219. var l int
  3220. _ = l
  3221. if m.Active {
  3222. i--
  3223. if m.Active {
  3224. dAtA[i] = 1
  3225. } else {
  3226. dAtA[i] = 0
  3227. }
  3228. i--
  3229. dAtA[i] = 0x40
  3230. }
  3231. if m.Status != 0 {
  3232. i = encodeVarintSeata(dAtA, i, uint64(m.Status))
  3233. i--
  3234. dAtA[i] = 0x38
  3235. }
  3236. if m.BeginTime != 0 {
  3237. i = encodeVarintSeata(dAtA, i, uint64(m.BeginTime))
  3238. i--
  3239. dAtA[i] = 0x30
  3240. }
  3241. if m.Timeout != 0 {
  3242. i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
  3243. i--
  3244. dAtA[i] = 0x28
  3245. }
  3246. if len(m.TransactionName) > 0 {
  3247. i -= len(m.TransactionName)
  3248. copy(dAtA[i:], m.TransactionName)
  3249. i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
  3250. i--
  3251. dAtA[i] = 0x22
  3252. }
  3253. if m.TransactionID != 0 {
  3254. i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
  3255. i--
  3256. dAtA[i] = 0x18
  3257. }
  3258. if len(m.XID) > 0 {
  3259. i -= len(m.XID)
  3260. copy(dAtA[i:], m.XID)
  3261. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3262. i--
  3263. dAtA[i] = 0x12
  3264. }
  3265. if len(m.Addressing) > 0 {
  3266. i -= len(m.Addressing)
  3267. copy(dAtA[i:], m.Addressing)
  3268. i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
  3269. i--
  3270. dAtA[i] = 0xa
  3271. }
  3272. return len(dAtA) - i, nil
  3273. }
  3274. func (m *BranchSession) Marshal() (dAtA []byte, err error) {
  3275. size := m.Size()
  3276. dAtA = make([]byte, size)
  3277. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3278. if err != nil {
  3279. return nil, err
  3280. }
  3281. return dAtA[:n], nil
  3282. }
  3283. func (m *BranchSession) MarshalTo(dAtA []byte) (int, error) {
  3284. size := m.Size()
  3285. return m.MarshalToSizedBuffer(dAtA[:size])
  3286. }
  3287. func (m *BranchSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3288. i := len(dAtA)
  3289. _ = i
  3290. var l int
  3291. _ = l
  3292. if m.AsyncCommit {
  3293. i--
  3294. if m.AsyncCommit {
  3295. dAtA[i] = 1
  3296. } else {
  3297. dAtA[i] = 0
  3298. }
  3299. i--
  3300. dAtA[i] = 0x50
  3301. }
  3302. if len(m.ApplicationData) > 0 {
  3303. i -= len(m.ApplicationData)
  3304. copy(dAtA[i:], m.ApplicationData)
  3305. i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
  3306. i--
  3307. dAtA[i] = 0x4a
  3308. }
  3309. if m.Status != 0 {
  3310. i = encodeVarintSeata(dAtA, i, uint64(m.Status))
  3311. i--
  3312. dAtA[i] = 0x40
  3313. }
  3314. if m.Type != 0 {
  3315. i = encodeVarintSeata(dAtA, i, uint64(m.Type))
  3316. i--
  3317. dAtA[i] = 0x38
  3318. }
  3319. if len(m.LockKey) > 0 {
  3320. i -= len(m.LockKey)
  3321. copy(dAtA[i:], m.LockKey)
  3322. i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
  3323. i--
  3324. dAtA[i] = 0x32
  3325. }
  3326. if len(m.ResourceID) > 0 {
  3327. i -= len(m.ResourceID)
  3328. copy(dAtA[i:], m.ResourceID)
  3329. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  3330. i--
  3331. dAtA[i] = 0x2a
  3332. }
  3333. if m.TransactionID != 0 {
  3334. i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
  3335. i--
  3336. dAtA[i] = 0x20
  3337. }
  3338. if m.BranchID != 0 {
  3339. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  3340. i--
  3341. dAtA[i] = 0x18
  3342. }
  3343. if len(m.XID) > 0 {
  3344. i -= len(m.XID)
  3345. copy(dAtA[i:], m.XID)
  3346. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3347. i--
  3348. dAtA[i] = 0x12
  3349. }
  3350. if len(m.Addressing) > 0 {
  3351. i -= len(m.Addressing)
  3352. copy(dAtA[i:], m.Addressing)
  3353. i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
  3354. i--
  3355. dAtA[i] = 0xa
  3356. }
  3357. return len(dAtA) - i, nil
  3358. }
  3359. func (m *RowLock) Marshal() (dAtA []byte, err error) {
  3360. size := m.Size()
  3361. dAtA = make([]byte, size)
  3362. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3363. if err != nil {
  3364. return nil, err
  3365. }
  3366. return dAtA[:n], nil
  3367. }
  3368. func (m *RowLock) MarshalTo(dAtA []byte) (int, error) {
  3369. size := m.Size()
  3370. return m.MarshalToSizedBuffer(dAtA[:size])
  3371. }
  3372. func (m *RowLock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3373. i := len(dAtA)
  3374. _ = i
  3375. var l int
  3376. _ = l
  3377. if len(m.RowKey) > 0 {
  3378. i -= len(m.RowKey)
  3379. copy(dAtA[i:], m.RowKey)
  3380. i = encodeVarintSeata(dAtA, i, uint64(len(m.RowKey)))
  3381. i--
  3382. dAtA[i] = 0x3a
  3383. }
  3384. if len(m.PK) > 0 {
  3385. i -= len(m.PK)
  3386. copy(dAtA[i:], m.PK)
  3387. i = encodeVarintSeata(dAtA, i, uint64(len(m.PK)))
  3388. i--
  3389. dAtA[i] = 0x32
  3390. }
  3391. if len(m.TableName) > 0 {
  3392. i -= len(m.TableName)
  3393. copy(dAtA[i:], m.TableName)
  3394. i = encodeVarintSeata(dAtA, i, uint64(len(m.TableName)))
  3395. i--
  3396. dAtA[i] = 0x2a
  3397. }
  3398. if len(m.ResourceID) > 0 {
  3399. i -= len(m.ResourceID)
  3400. copy(dAtA[i:], m.ResourceID)
  3401. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  3402. i--
  3403. dAtA[i] = 0x22
  3404. }
  3405. if m.BranchID != 0 {
  3406. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  3407. i--
  3408. dAtA[i] = 0x18
  3409. }
  3410. if m.TransactionID != 0 {
  3411. i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
  3412. i--
  3413. dAtA[i] = 0x10
  3414. }
  3415. if len(m.XID) > 0 {
  3416. i -= len(m.XID)
  3417. copy(dAtA[i:], m.XID)
  3418. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3419. i--
  3420. dAtA[i] = 0xa
  3421. }
  3422. return len(dAtA) - i, nil
  3423. }
  3424. func (m *GlobalBeginRequest) Marshal() (dAtA []byte, err error) {
  3425. size := m.Size()
  3426. dAtA = make([]byte, size)
  3427. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3428. if err != nil {
  3429. return nil, err
  3430. }
  3431. return dAtA[:n], nil
  3432. }
  3433. func (m *GlobalBeginRequest) MarshalTo(dAtA []byte) (int, error) {
  3434. size := m.Size()
  3435. return m.MarshalToSizedBuffer(dAtA[:size])
  3436. }
  3437. func (m *GlobalBeginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3438. i := len(dAtA)
  3439. _ = i
  3440. var l int
  3441. _ = l
  3442. if len(m.TransactionName) > 0 {
  3443. i -= len(m.TransactionName)
  3444. copy(dAtA[i:], m.TransactionName)
  3445. i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
  3446. i--
  3447. dAtA[i] = 0x1a
  3448. }
  3449. if m.Timeout != 0 {
  3450. i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
  3451. i--
  3452. dAtA[i] = 0x10
  3453. }
  3454. if len(m.Addressing) > 0 {
  3455. i -= len(m.Addressing)
  3456. copy(dAtA[i:], m.Addressing)
  3457. i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
  3458. i--
  3459. dAtA[i] = 0xa
  3460. }
  3461. return len(dAtA) - i, nil
  3462. }
  3463. func (m *GlobalBeginResponse) Marshal() (dAtA []byte, err error) {
  3464. size := m.Size()
  3465. dAtA = make([]byte, size)
  3466. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3467. if err != nil {
  3468. return nil, err
  3469. }
  3470. return dAtA[:n], nil
  3471. }
  3472. func (m *GlobalBeginResponse) MarshalTo(dAtA []byte) (int, error) {
  3473. size := m.Size()
  3474. return m.MarshalToSizedBuffer(dAtA[:size])
  3475. }
  3476. func (m *GlobalBeginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3477. i := len(dAtA)
  3478. _ = i
  3479. var l int
  3480. _ = l
  3481. if len(m.XID) > 0 {
  3482. i -= len(m.XID)
  3483. copy(dAtA[i:], m.XID)
  3484. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3485. i--
  3486. dAtA[i] = 0x22
  3487. }
  3488. if len(m.Message) > 0 {
  3489. i -= len(m.Message)
  3490. copy(dAtA[i:], m.Message)
  3491. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3492. i--
  3493. dAtA[i] = 0x1a
  3494. }
  3495. if m.ExceptionCode != 0 {
  3496. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3497. i--
  3498. dAtA[i] = 0x10
  3499. }
  3500. if m.ResultCode != 0 {
  3501. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3502. i--
  3503. dAtA[i] = 0x8
  3504. }
  3505. return len(dAtA) - i, nil
  3506. }
  3507. func (m *BranchRegisterRequest) Marshal() (dAtA []byte, err error) {
  3508. size := m.Size()
  3509. dAtA = make([]byte, size)
  3510. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3511. if err != nil {
  3512. return nil, err
  3513. }
  3514. return dAtA[:n], nil
  3515. }
  3516. func (m *BranchRegisterRequest) MarshalTo(dAtA []byte) (int, error) {
  3517. size := m.Size()
  3518. return m.MarshalToSizedBuffer(dAtA[:size])
  3519. }
  3520. func (m *BranchRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3521. i := len(dAtA)
  3522. _ = i
  3523. var l int
  3524. _ = l
  3525. if m.AsyncCommit {
  3526. i--
  3527. if m.AsyncCommit {
  3528. dAtA[i] = 1
  3529. } else {
  3530. dAtA[i] = 0
  3531. }
  3532. i--
  3533. dAtA[i] = 0x38
  3534. }
  3535. if len(m.ApplicationData) > 0 {
  3536. i -= len(m.ApplicationData)
  3537. copy(dAtA[i:], m.ApplicationData)
  3538. i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
  3539. i--
  3540. dAtA[i] = 0x32
  3541. }
  3542. if m.BranchType != 0 {
  3543. i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
  3544. i--
  3545. dAtA[i] = 0x28
  3546. }
  3547. if len(m.LockKey) > 0 {
  3548. i -= len(m.LockKey)
  3549. copy(dAtA[i:], m.LockKey)
  3550. i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
  3551. i--
  3552. dAtA[i] = 0x22
  3553. }
  3554. if len(m.ResourceID) > 0 {
  3555. i -= len(m.ResourceID)
  3556. copy(dAtA[i:], m.ResourceID)
  3557. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  3558. i--
  3559. dAtA[i] = 0x1a
  3560. }
  3561. if len(m.XID) > 0 {
  3562. i -= len(m.XID)
  3563. copy(dAtA[i:], m.XID)
  3564. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3565. i--
  3566. dAtA[i] = 0x12
  3567. }
  3568. if len(m.Addressing) > 0 {
  3569. i -= len(m.Addressing)
  3570. copy(dAtA[i:], m.Addressing)
  3571. i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
  3572. i--
  3573. dAtA[i] = 0xa
  3574. }
  3575. return len(dAtA) - i, nil
  3576. }
  3577. func (m *BranchRegisterResponse) Marshal() (dAtA []byte, err error) {
  3578. size := m.Size()
  3579. dAtA = make([]byte, size)
  3580. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3581. if err != nil {
  3582. return nil, err
  3583. }
  3584. return dAtA[:n], nil
  3585. }
  3586. func (m *BranchRegisterResponse) MarshalTo(dAtA []byte) (int, error) {
  3587. size := m.Size()
  3588. return m.MarshalToSizedBuffer(dAtA[:size])
  3589. }
  3590. func (m *BranchRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3591. i := len(dAtA)
  3592. _ = i
  3593. var l int
  3594. _ = l
  3595. if m.BranchID != 0 {
  3596. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  3597. i--
  3598. dAtA[i] = 0x20
  3599. }
  3600. if len(m.Message) > 0 {
  3601. i -= len(m.Message)
  3602. copy(dAtA[i:], m.Message)
  3603. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3604. i--
  3605. dAtA[i] = 0x1a
  3606. }
  3607. if m.ExceptionCode != 0 {
  3608. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3609. i--
  3610. dAtA[i] = 0x10
  3611. }
  3612. if m.ResultCode != 0 {
  3613. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3614. i--
  3615. dAtA[i] = 0x8
  3616. }
  3617. return len(dAtA) - i, nil
  3618. }
  3619. func (m *BranchReportRequest) Marshal() (dAtA []byte, err error) {
  3620. size := m.Size()
  3621. dAtA = make([]byte, size)
  3622. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3623. if err != nil {
  3624. return nil, err
  3625. }
  3626. return dAtA[:n], nil
  3627. }
  3628. func (m *BranchReportRequest) MarshalTo(dAtA []byte) (int, error) {
  3629. size := m.Size()
  3630. return m.MarshalToSizedBuffer(dAtA[:size])
  3631. }
  3632. func (m *BranchReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3633. i := len(dAtA)
  3634. _ = i
  3635. var l int
  3636. _ = l
  3637. if len(m.ApplicationData) > 0 {
  3638. i -= len(m.ApplicationData)
  3639. copy(dAtA[i:], m.ApplicationData)
  3640. i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
  3641. i--
  3642. dAtA[i] = 0x32
  3643. }
  3644. if m.BranchStatus != 0 {
  3645. i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
  3646. i--
  3647. dAtA[i] = 0x28
  3648. }
  3649. if m.BranchType != 0 {
  3650. i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
  3651. i--
  3652. dAtA[i] = 0x20
  3653. }
  3654. if len(m.ResourceID) > 0 {
  3655. i -= len(m.ResourceID)
  3656. copy(dAtA[i:], m.ResourceID)
  3657. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  3658. i--
  3659. dAtA[i] = 0x1a
  3660. }
  3661. if m.BranchID != 0 {
  3662. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  3663. i--
  3664. dAtA[i] = 0x10
  3665. }
  3666. if len(m.XID) > 0 {
  3667. i -= len(m.XID)
  3668. copy(dAtA[i:], m.XID)
  3669. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3670. i--
  3671. dAtA[i] = 0xa
  3672. }
  3673. return len(dAtA) - i, nil
  3674. }
  3675. func (m *BranchReportResponse) Marshal() (dAtA []byte, err error) {
  3676. size := m.Size()
  3677. dAtA = make([]byte, size)
  3678. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3679. if err != nil {
  3680. return nil, err
  3681. }
  3682. return dAtA[:n], nil
  3683. }
  3684. func (m *BranchReportResponse) MarshalTo(dAtA []byte) (int, error) {
  3685. size := m.Size()
  3686. return m.MarshalToSizedBuffer(dAtA[:size])
  3687. }
  3688. func (m *BranchReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3689. i := len(dAtA)
  3690. _ = i
  3691. var l int
  3692. _ = l
  3693. if len(m.Message) > 0 {
  3694. i -= len(m.Message)
  3695. copy(dAtA[i:], m.Message)
  3696. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3697. i--
  3698. dAtA[i] = 0x1a
  3699. }
  3700. if m.ExceptionCode != 0 {
  3701. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3702. i--
  3703. dAtA[i] = 0x10
  3704. }
  3705. if m.ResultCode != 0 {
  3706. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3707. i--
  3708. dAtA[i] = 0x8
  3709. }
  3710. return len(dAtA) - i, nil
  3711. }
  3712. func (m *GlobalLockQueryRequest) Marshal() (dAtA []byte, err error) {
  3713. size := m.Size()
  3714. dAtA = make([]byte, size)
  3715. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3716. if err != nil {
  3717. return nil, err
  3718. }
  3719. return dAtA[:n], nil
  3720. }
  3721. func (m *GlobalLockQueryRequest) MarshalTo(dAtA []byte) (int, error) {
  3722. size := m.Size()
  3723. return m.MarshalToSizedBuffer(dAtA[:size])
  3724. }
  3725. func (m *GlobalLockQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3726. i := len(dAtA)
  3727. _ = i
  3728. var l int
  3729. _ = l
  3730. if m.BranchType != 0 {
  3731. i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
  3732. i--
  3733. dAtA[i] = 0x20
  3734. }
  3735. if len(m.LockKey) > 0 {
  3736. i -= len(m.LockKey)
  3737. copy(dAtA[i:], m.LockKey)
  3738. i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
  3739. i--
  3740. dAtA[i] = 0x1a
  3741. }
  3742. if len(m.ResourceID) > 0 {
  3743. i -= len(m.ResourceID)
  3744. copy(dAtA[i:], m.ResourceID)
  3745. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  3746. i--
  3747. dAtA[i] = 0x12
  3748. }
  3749. if len(m.XID) > 0 {
  3750. i -= len(m.XID)
  3751. copy(dAtA[i:], m.XID)
  3752. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3753. i--
  3754. dAtA[i] = 0xa
  3755. }
  3756. return len(dAtA) - i, nil
  3757. }
  3758. func (m *GlobalLockQueryResponse) Marshal() (dAtA []byte, err error) {
  3759. size := m.Size()
  3760. dAtA = make([]byte, size)
  3761. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3762. if err != nil {
  3763. return nil, err
  3764. }
  3765. return dAtA[:n], nil
  3766. }
  3767. func (m *GlobalLockQueryResponse) MarshalTo(dAtA []byte) (int, error) {
  3768. size := m.Size()
  3769. return m.MarshalToSizedBuffer(dAtA[:size])
  3770. }
  3771. func (m *GlobalLockQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3772. i := len(dAtA)
  3773. _ = i
  3774. var l int
  3775. _ = l
  3776. if m.Lockable {
  3777. i--
  3778. if m.Lockable {
  3779. dAtA[i] = 1
  3780. } else {
  3781. dAtA[i] = 0
  3782. }
  3783. i--
  3784. dAtA[i] = 0x20
  3785. }
  3786. if len(m.Message) > 0 {
  3787. i -= len(m.Message)
  3788. copy(dAtA[i:], m.Message)
  3789. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3790. i--
  3791. dAtA[i] = 0x1a
  3792. }
  3793. if m.ExceptionCode != 0 {
  3794. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3795. i--
  3796. dAtA[i] = 0x10
  3797. }
  3798. if m.ResultCode != 0 {
  3799. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3800. i--
  3801. dAtA[i] = 0x8
  3802. }
  3803. return len(dAtA) - i, nil
  3804. }
  3805. func (m *GlobalStatusRequest) Marshal() (dAtA []byte, err error) {
  3806. size := m.Size()
  3807. dAtA = make([]byte, size)
  3808. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3809. if err != nil {
  3810. return nil, err
  3811. }
  3812. return dAtA[:n], nil
  3813. }
  3814. func (m *GlobalStatusRequest) MarshalTo(dAtA []byte) (int, error) {
  3815. size := m.Size()
  3816. return m.MarshalToSizedBuffer(dAtA[:size])
  3817. }
  3818. func (m *GlobalStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3819. i := len(dAtA)
  3820. _ = i
  3821. var l int
  3822. _ = l
  3823. if len(m.XID) > 0 {
  3824. i -= len(m.XID)
  3825. copy(dAtA[i:], m.XID)
  3826. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3827. i--
  3828. dAtA[i] = 0xa
  3829. }
  3830. return len(dAtA) - i, nil
  3831. }
  3832. func (m *GlobalStatusResponse) Marshal() (dAtA []byte, err error) {
  3833. size := m.Size()
  3834. dAtA = make([]byte, size)
  3835. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3836. if err != nil {
  3837. return nil, err
  3838. }
  3839. return dAtA[:n], nil
  3840. }
  3841. func (m *GlobalStatusResponse) MarshalTo(dAtA []byte) (int, error) {
  3842. size := m.Size()
  3843. return m.MarshalToSizedBuffer(dAtA[:size])
  3844. }
  3845. func (m *GlobalStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3846. i := len(dAtA)
  3847. _ = i
  3848. var l int
  3849. _ = l
  3850. if m.GlobalStatus != 0 {
  3851. i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
  3852. i--
  3853. dAtA[i] = 0x20
  3854. }
  3855. if len(m.Message) > 0 {
  3856. i -= len(m.Message)
  3857. copy(dAtA[i:], m.Message)
  3858. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3859. i--
  3860. dAtA[i] = 0x1a
  3861. }
  3862. if m.ExceptionCode != 0 {
  3863. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3864. i--
  3865. dAtA[i] = 0x10
  3866. }
  3867. if m.ResultCode != 0 {
  3868. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3869. i--
  3870. dAtA[i] = 0x8
  3871. }
  3872. return len(dAtA) - i, nil
  3873. }
  3874. func (m *GlobalCommitRequest) Marshal() (dAtA []byte, err error) {
  3875. size := m.Size()
  3876. dAtA = make([]byte, size)
  3877. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3878. if err != nil {
  3879. return nil, err
  3880. }
  3881. return dAtA[:n], nil
  3882. }
  3883. func (m *GlobalCommitRequest) MarshalTo(dAtA []byte) (int, error) {
  3884. size := m.Size()
  3885. return m.MarshalToSizedBuffer(dAtA[:size])
  3886. }
  3887. func (m *GlobalCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3888. i := len(dAtA)
  3889. _ = i
  3890. var l int
  3891. _ = l
  3892. if len(m.XID) > 0 {
  3893. i -= len(m.XID)
  3894. copy(dAtA[i:], m.XID)
  3895. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3896. i--
  3897. dAtA[i] = 0xa
  3898. }
  3899. return len(dAtA) - i, nil
  3900. }
  3901. func (m *GlobalCommitResponse) Marshal() (dAtA []byte, err error) {
  3902. size := m.Size()
  3903. dAtA = make([]byte, size)
  3904. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3905. if err != nil {
  3906. return nil, err
  3907. }
  3908. return dAtA[:n], nil
  3909. }
  3910. func (m *GlobalCommitResponse) MarshalTo(dAtA []byte) (int, error) {
  3911. size := m.Size()
  3912. return m.MarshalToSizedBuffer(dAtA[:size])
  3913. }
  3914. func (m *GlobalCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3915. i := len(dAtA)
  3916. _ = i
  3917. var l int
  3918. _ = l
  3919. if m.GlobalStatus != 0 {
  3920. i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
  3921. i--
  3922. dAtA[i] = 0x20
  3923. }
  3924. if len(m.Message) > 0 {
  3925. i -= len(m.Message)
  3926. copy(dAtA[i:], m.Message)
  3927. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3928. i--
  3929. dAtA[i] = 0x1a
  3930. }
  3931. if m.ExceptionCode != 0 {
  3932. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  3933. i--
  3934. dAtA[i] = 0x10
  3935. }
  3936. if m.ResultCode != 0 {
  3937. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  3938. i--
  3939. dAtA[i] = 0x8
  3940. }
  3941. return len(dAtA) - i, nil
  3942. }
  3943. func (m *GlobalRollbackRequest) Marshal() (dAtA []byte, err error) {
  3944. size := m.Size()
  3945. dAtA = make([]byte, size)
  3946. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3947. if err != nil {
  3948. return nil, err
  3949. }
  3950. return dAtA[:n], nil
  3951. }
  3952. func (m *GlobalRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
  3953. size := m.Size()
  3954. return m.MarshalToSizedBuffer(dAtA[:size])
  3955. }
  3956. func (m *GlobalRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3957. i := len(dAtA)
  3958. _ = i
  3959. var l int
  3960. _ = l
  3961. if len(m.XID) > 0 {
  3962. i -= len(m.XID)
  3963. copy(dAtA[i:], m.XID)
  3964. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  3965. i--
  3966. dAtA[i] = 0xa
  3967. }
  3968. return len(dAtA) - i, nil
  3969. }
  3970. func (m *GlobalRollbackResponse) Marshal() (dAtA []byte, err error) {
  3971. size := m.Size()
  3972. dAtA = make([]byte, size)
  3973. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3974. if err != nil {
  3975. return nil, err
  3976. }
  3977. return dAtA[:n], nil
  3978. }
  3979. func (m *GlobalRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
  3980. size := m.Size()
  3981. return m.MarshalToSizedBuffer(dAtA[:size])
  3982. }
  3983. func (m *GlobalRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3984. i := len(dAtA)
  3985. _ = i
  3986. var l int
  3987. _ = l
  3988. if m.GlobalStatus != 0 {
  3989. i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
  3990. i--
  3991. dAtA[i] = 0x20
  3992. }
  3993. if len(m.Message) > 0 {
  3994. i -= len(m.Message)
  3995. copy(dAtA[i:], m.Message)
  3996. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  3997. i--
  3998. dAtA[i] = 0x1a
  3999. }
  4000. if m.ExceptionCode != 0 {
  4001. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  4002. i--
  4003. dAtA[i] = 0x10
  4004. }
  4005. if m.ResultCode != 0 {
  4006. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  4007. i--
  4008. dAtA[i] = 0x8
  4009. }
  4010. return len(dAtA) - i, nil
  4011. }
  4012. func (m *GlobalReportRequest) Marshal() (dAtA []byte, err error) {
  4013. size := m.Size()
  4014. dAtA = make([]byte, size)
  4015. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4016. if err != nil {
  4017. return nil, err
  4018. }
  4019. return dAtA[:n], nil
  4020. }
  4021. func (m *GlobalReportRequest) MarshalTo(dAtA []byte) (int, error) {
  4022. size := m.Size()
  4023. return m.MarshalToSizedBuffer(dAtA[:size])
  4024. }
  4025. func (m *GlobalReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4026. i := len(dAtA)
  4027. _ = i
  4028. var l int
  4029. _ = l
  4030. if m.GlobalStatus != 0 {
  4031. i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
  4032. i--
  4033. dAtA[i] = 0x10
  4034. }
  4035. if len(m.XID) > 0 {
  4036. i -= len(m.XID)
  4037. copy(dAtA[i:], m.XID)
  4038. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  4039. i--
  4040. dAtA[i] = 0xa
  4041. }
  4042. return len(dAtA) - i, nil
  4043. }
  4044. func (m *GlobalReportResponse) Marshal() (dAtA []byte, err error) {
  4045. size := m.Size()
  4046. dAtA = make([]byte, size)
  4047. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4048. if err != nil {
  4049. return nil, err
  4050. }
  4051. return dAtA[:n], nil
  4052. }
  4053. func (m *GlobalReportResponse) MarshalTo(dAtA []byte) (int, error) {
  4054. size := m.Size()
  4055. return m.MarshalToSizedBuffer(dAtA[:size])
  4056. }
  4057. func (m *GlobalReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4058. i := len(dAtA)
  4059. _ = i
  4060. var l int
  4061. _ = l
  4062. if m.GlobalStatus != 0 {
  4063. i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
  4064. i--
  4065. dAtA[i] = 0x20
  4066. }
  4067. if len(m.Message) > 0 {
  4068. i -= len(m.Message)
  4069. copy(dAtA[i:], m.Message)
  4070. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  4071. i--
  4072. dAtA[i] = 0x1a
  4073. }
  4074. if m.ExceptionCode != 0 {
  4075. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  4076. i--
  4077. dAtA[i] = 0x10
  4078. }
  4079. if m.ResultCode != 0 {
  4080. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  4081. i--
  4082. dAtA[i] = 0x8
  4083. }
  4084. return len(dAtA) - i, nil
  4085. }
  4086. func (m *BranchCommitRequest) Marshal() (dAtA []byte, err error) {
  4087. size := m.Size()
  4088. dAtA = make([]byte, size)
  4089. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4090. if err != nil {
  4091. return nil, err
  4092. }
  4093. return dAtA[:n], nil
  4094. }
  4095. func (m *BranchCommitRequest) MarshalTo(dAtA []byte) (int, error) {
  4096. size := m.Size()
  4097. return m.MarshalToSizedBuffer(dAtA[:size])
  4098. }
  4099. func (m *BranchCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4100. i := len(dAtA)
  4101. _ = i
  4102. var l int
  4103. _ = l
  4104. if len(m.ApplicationData) > 0 {
  4105. i -= len(m.ApplicationData)
  4106. copy(dAtA[i:], m.ApplicationData)
  4107. i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
  4108. i--
  4109. dAtA[i] = 0x32
  4110. }
  4111. if m.BranchType != 0 {
  4112. i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
  4113. i--
  4114. dAtA[i] = 0x28
  4115. }
  4116. if len(m.LockKey) > 0 {
  4117. i -= len(m.LockKey)
  4118. copy(dAtA[i:], m.LockKey)
  4119. i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
  4120. i--
  4121. dAtA[i] = 0x22
  4122. }
  4123. if len(m.ResourceID) > 0 {
  4124. i -= len(m.ResourceID)
  4125. copy(dAtA[i:], m.ResourceID)
  4126. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  4127. i--
  4128. dAtA[i] = 0x1a
  4129. }
  4130. if m.BranchID != 0 {
  4131. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  4132. i--
  4133. dAtA[i] = 0x10
  4134. }
  4135. if len(m.XID) > 0 {
  4136. i -= len(m.XID)
  4137. copy(dAtA[i:], m.XID)
  4138. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  4139. i--
  4140. dAtA[i] = 0xa
  4141. }
  4142. return len(dAtA) - i, nil
  4143. }
  4144. func (m *BranchCommitResponse) Marshal() (dAtA []byte, err error) {
  4145. size := m.Size()
  4146. dAtA = make([]byte, size)
  4147. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4148. if err != nil {
  4149. return nil, err
  4150. }
  4151. return dAtA[:n], nil
  4152. }
  4153. func (m *BranchCommitResponse) MarshalTo(dAtA []byte) (int, error) {
  4154. size := m.Size()
  4155. return m.MarshalToSizedBuffer(dAtA[:size])
  4156. }
  4157. func (m *BranchCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4158. i := len(dAtA)
  4159. _ = i
  4160. var l int
  4161. _ = l
  4162. if m.BranchStatus != 0 {
  4163. i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
  4164. i--
  4165. dAtA[i] = 0x30
  4166. }
  4167. if m.BranchID != 0 {
  4168. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  4169. i--
  4170. dAtA[i] = 0x28
  4171. }
  4172. if len(m.XID) > 0 {
  4173. i -= len(m.XID)
  4174. copy(dAtA[i:], m.XID)
  4175. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  4176. i--
  4177. dAtA[i] = 0x22
  4178. }
  4179. if len(m.Message) > 0 {
  4180. i -= len(m.Message)
  4181. copy(dAtA[i:], m.Message)
  4182. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  4183. i--
  4184. dAtA[i] = 0x1a
  4185. }
  4186. if m.ExceptionCode != 0 {
  4187. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  4188. i--
  4189. dAtA[i] = 0x10
  4190. }
  4191. if m.ResultCode != 0 {
  4192. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  4193. i--
  4194. dAtA[i] = 0x8
  4195. }
  4196. return len(dAtA) - i, nil
  4197. }
  4198. func (m *BranchRollbackRequest) Marshal() (dAtA []byte, err error) {
  4199. size := m.Size()
  4200. dAtA = make([]byte, size)
  4201. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4202. if err != nil {
  4203. return nil, err
  4204. }
  4205. return dAtA[:n], nil
  4206. }
  4207. func (m *BranchRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
  4208. size := m.Size()
  4209. return m.MarshalToSizedBuffer(dAtA[:size])
  4210. }
  4211. func (m *BranchRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4212. i := len(dAtA)
  4213. _ = i
  4214. var l int
  4215. _ = l
  4216. if len(m.ApplicationData) > 0 {
  4217. i -= len(m.ApplicationData)
  4218. copy(dAtA[i:], m.ApplicationData)
  4219. i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
  4220. i--
  4221. dAtA[i] = 0x32
  4222. }
  4223. if m.BranchType != 0 {
  4224. i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
  4225. i--
  4226. dAtA[i] = 0x28
  4227. }
  4228. if len(m.LockKey) > 0 {
  4229. i -= len(m.LockKey)
  4230. copy(dAtA[i:], m.LockKey)
  4231. i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
  4232. i--
  4233. dAtA[i] = 0x22
  4234. }
  4235. if len(m.ResourceID) > 0 {
  4236. i -= len(m.ResourceID)
  4237. copy(dAtA[i:], m.ResourceID)
  4238. i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
  4239. i--
  4240. dAtA[i] = 0x1a
  4241. }
  4242. if m.BranchID != 0 {
  4243. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  4244. i--
  4245. dAtA[i] = 0x10
  4246. }
  4247. if len(m.XID) > 0 {
  4248. i -= len(m.XID)
  4249. copy(dAtA[i:], m.XID)
  4250. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  4251. i--
  4252. dAtA[i] = 0xa
  4253. }
  4254. return len(dAtA) - i, nil
  4255. }
  4256. func (m *BranchRollbackResponse) Marshal() (dAtA []byte, err error) {
  4257. size := m.Size()
  4258. dAtA = make([]byte, size)
  4259. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4260. if err != nil {
  4261. return nil, err
  4262. }
  4263. return dAtA[:n], nil
  4264. }
  4265. func (m *BranchRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
  4266. size := m.Size()
  4267. return m.MarshalToSizedBuffer(dAtA[:size])
  4268. }
  4269. func (m *BranchRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4270. i := len(dAtA)
  4271. _ = i
  4272. var l int
  4273. _ = l
  4274. if m.BranchStatus != 0 {
  4275. i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
  4276. i--
  4277. dAtA[i] = 0x30
  4278. }
  4279. if m.BranchID != 0 {
  4280. i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
  4281. i--
  4282. dAtA[i] = 0x28
  4283. }
  4284. if len(m.XID) > 0 {
  4285. i -= len(m.XID)
  4286. copy(dAtA[i:], m.XID)
  4287. i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
  4288. i--
  4289. dAtA[i] = 0x22
  4290. }
  4291. if len(m.Message) > 0 {
  4292. i -= len(m.Message)
  4293. copy(dAtA[i:], m.Message)
  4294. i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
  4295. i--
  4296. dAtA[i] = 0x1a
  4297. }
  4298. if m.ExceptionCode != 0 {
  4299. i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
  4300. i--
  4301. dAtA[i] = 0x10
  4302. }
  4303. if m.ResultCode != 0 {
  4304. i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
  4305. i--
  4306. dAtA[i] = 0x8
  4307. }
  4308. return len(dAtA) - i, nil
  4309. }
  4310. func (m *BranchMessage) Marshal() (dAtA []byte, err error) {
  4311. size := m.Size()
  4312. dAtA = make([]byte, size)
  4313. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4314. if err != nil {
  4315. return nil, err
  4316. }
  4317. return dAtA[:n], nil
  4318. }
  4319. func (m *BranchMessage) MarshalTo(dAtA []byte) (int, error) {
  4320. size := m.Size()
  4321. return m.MarshalToSizedBuffer(dAtA[:size])
  4322. }
  4323. func (m *BranchMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4324. i := len(dAtA)
  4325. _ = i
  4326. var l int
  4327. _ = l
  4328. if m.Message != nil {
  4329. {
  4330. size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
  4331. if err != nil {
  4332. return 0, err
  4333. }
  4334. i -= size
  4335. i = encodeVarintSeata(dAtA, i, uint64(size))
  4336. }
  4337. i--
  4338. dAtA[i] = 0x1a
  4339. }
  4340. if m.BranchMessageType != 0 {
  4341. i = encodeVarintSeata(dAtA, i, uint64(m.BranchMessageType))
  4342. i--
  4343. dAtA[i] = 0x10
  4344. }
  4345. if m.ID != 0 {
  4346. i = encodeVarintSeata(dAtA, i, uint64(m.ID))
  4347. i--
  4348. dAtA[i] = 0x8
  4349. }
  4350. return len(dAtA) - i, nil
  4351. }
  4352. func encodeVarintSeata(dAtA []byte, offset int, v uint64) int {
  4353. offset -= sovSeata(v)
  4354. base := offset
  4355. for v >= 1<<7 {
  4356. dAtA[offset] = uint8(v&0x7f | 0x80)
  4357. v >>= 7
  4358. offset++
  4359. }
  4360. dAtA[offset] = uint8(v)
  4361. return base
  4362. }
  4363. func (m *GlobalSession) Size() (n int) {
  4364. if m == nil {
  4365. return 0
  4366. }
  4367. var l int
  4368. _ = l
  4369. l = len(m.Addressing)
  4370. if l > 0 {
  4371. n += 1 + l + sovSeata(uint64(l))
  4372. }
  4373. l = len(m.XID)
  4374. if l > 0 {
  4375. n += 1 + l + sovSeata(uint64(l))
  4376. }
  4377. if m.TransactionID != 0 {
  4378. n += 1 + sovSeata(uint64(m.TransactionID))
  4379. }
  4380. l = len(m.TransactionName)
  4381. if l > 0 {
  4382. n += 1 + l + sovSeata(uint64(l))
  4383. }
  4384. if m.Timeout != 0 {
  4385. n += 1 + sovSeata(uint64(m.Timeout))
  4386. }
  4387. if m.BeginTime != 0 {
  4388. n += 1 + sovSeata(uint64(m.BeginTime))
  4389. }
  4390. if m.Status != 0 {
  4391. n += 1 + sovSeata(uint64(m.Status))
  4392. }
  4393. if m.Active {
  4394. n += 2
  4395. }
  4396. return n
  4397. }
  4398. func (m *BranchSession) Size() (n int) {
  4399. if m == nil {
  4400. return 0
  4401. }
  4402. var l int
  4403. _ = l
  4404. l = len(m.Addressing)
  4405. if l > 0 {
  4406. n += 1 + l + sovSeata(uint64(l))
  4407. }
  4408. l = len(m.XID)
  4409. if l > 0 {
  4410. n += 1 + l + sovSeata(uint64(l))
  4411. }
  4412. if m.BranchID != 0 {
  4413. n += 1 + sovSeata(uint64(m.BranchID))
  4414. }
  4415. if m.TransactionID != 0 {
  4416. n += 1 + sovSeata(uint64(m.TransactionID))
  4417. }
  4418. l = len(m.ResourceID)
  4419. if l > 0 {
  4420. n += 1 + l + sovSeata(uint64(l))
  4421. }
  4422. l = len(m.LockKey)
  4423. if l > 0 {
  4424. n += 1 + l + sovSeata(uint64(l))
  4425. }
  4426. if m.Type != 0 {
  4427. n += 1 + sovSeata(uint64(m.Type))
  4428. }
  4429. if m.Status != 0 {
  4430. n += 1 + sovSeata(uint64(m.Status))
  4431. }
  4432. l = len(m.ApplicationData)
  4433. if l > 0 {
  4434. n += 1 + l + sovSeata(uint64(l))
  4435. }
  4436. if m.AsyncCommit {
  4437. n += 2
  4438. }
  4439. return n
  4440. }
  4441. func (m *RowLock) Size() (n int) {
  4442. if m == nil {
  4443. return 0
  4444. }
  4445. var l int
  4446. _ = l
  4447. l = len(m.XID)
  4448. if l > 0 {
  4449. n += 1 + l + sovSeata(uint64(l))
  4450. }
  4451. if m.TransactionID != 0 {
  4452. n += 1 + sovSeata(uint64(m.TransactionID))
  4453. }
  4454. if m.BranchID != 0 {
  4455. n += 1 + sovSeata(uint64(m.BranchID))
  4456. }
  4457. l = len(m.ResourceID)
  4458. if l > 0 {
  4459. n += 1 + l + sovSeata(uint64(l))
  4460. }
  4461. l = len(m.TableName)
  4462. if l > 0 {
  4463. n += 1 + l + sovSeata(uint64(l))
  4464. }
  4465. l = len(m.PK)
  4466. if l > 0 {
  4467. n += 1 + l + sovSeata(uint64(l))
  4468. }
  4469. l = len(m.RowKey)
  4470. if l > 0 {
  4471. n += 1 + l + sovSeata(uint64(l))
  4472. }
  4473. return n
  4474. }
  4475. func (m *GlobalBeginRequest) Size() (n int) {
  4476. if m == nil {
  4477. return 0
  4478. }
  4479. var l int
  4480. _ = l
  4481. l = len(m.Addressing)
  4482. if l > 0 {
  4483. n += 1 + l + sovSeata(uint64(l))
  4484. }
  4485. if m.Timeout != 0 {
  4486. n += 1 + sovSeata(uint64(m.Timeout))
  4487. }
  4488. l = len(m.TransactionName)
  4489. if l > 0 {
  4490. n += 1 + l + sovSeata(uint64(l))
  4491. }
  4492. return n
  4493. }
  4494. func (m *GlobalBeginResponse) Size() (n int) {
  4495. if m == nil {
  4496. return 0
  4497. }
  4498. var l int
  4499. _ = l
  4500. if m.ResultCode != 0 {
  4501. n += 1 + sovSeata(uint64(m.ResultCode))
  4502. }
  4503. if m.ExceptionCode != 0 {
  4504. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4505. }
  4506. l = len(m.Message)
  4507. if l > 0 {
  4508. n += 1 + l + sovSeata(uint64(l))
  4509. }
  4510. l = len(m.XID)
  4511. if l > 0 {
  4512. n += 1 + l + sovSeata(uint64(l))
  4513. }
  4514. return n
  4515. }
  4516. func (m *BranchRegisterRequest) Size() (n int) {
  4517. if m == nil {
  4518. return 0
  4519. }
  4520. var l int
  4521. _ = l
  4522. l = len(m.Addressing)
  4523. if l > 0 {
  4524. n += 1 + l + sovSeata(uint64(l))
  4525. }
  4526. l = len(m.XID)
  4527. if l > 0 {
  4528. n += 1 + l + sovSeata(uint64(l))
  4529. }
  4530. l = len(m.ResourceID)
  4531. if l > 0 {
  4532. n += 1 + l + sovSeata(uint64(l))
  4533. }
  4534. l = len(m.LockKey)
  4535. if l > 0 {
  4536. n += 1 + l + sovSeata(uint64(l))
  4537. }
  4538. if m.BranchType != 0 {
  4539. n += 1 + sovSeata(uint64(m.BranchType))
  4540. }
  4541. l = len(m.ApplicationData)
  4542. if l > 0 {
  4543. n += 1 + l + sovSeata(uint64(l))
  4544. }
  4545. if m.AsyncCommit {
  4546. n += 2
  4547. }
  4548. return n
  4549. }
  4550. func (m *BranchRegisterResponse) Size() (n int) {
  4551. if m == nil {
  4552. return 0
  4553. }
  4554. var l int
  4555. _ = l
  4556. if m.ResultCode != 0 {
  4557. n += 1 + sovSeata(uint64(m.ResultCode))
  4558. }
  4559. if m.ExceptionCode != 0 {
  4560. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4561. }
  4562. l = len(m.Message)
  4563. if l > 0 {
  4564. n += 1 + l + sovSeata(uint64(l))
  4565. }
  4566. if m.BranchID != 0 {
  4567. n += 1 + sovSeata(uint64(m.BranchID))
  4568. }
  4569. return n
  4570. }
  4571. func (m *BranchReportRequest) Size() (n int) {
  4572. if m == nil {
  4573. return 0
  4574. }
  4575. var l int
  4576. _ = l
  4577. l = len(m.XID)
  4578. if l > 0 {
  4579. n += 1 + l + sovSeata(uint64(l))
  4580. }
  4581. if m.BranchID != 0 {
  4582. n += 1 + sovSeata(uint64(m.BranchID))
  4583. }
  4584. l = len(m.ResourceID)
  4585. if l > 0 {
  4586. n += 1 + l + sovSeata(uint64(l))
  4587. }
  4588. if m.BranchType != 0 {
  4589. n += 1 + sovSeata(uint64(m.BranchType))
  4590. }
  4591. if m.BranchStatus != 0 {
  4592. n += 1 + sovSeata(uint64(m.BranchStatus))
  4593. }
  4594. l = len(m.ApplicationData)
  4595. if l > 0 {
  4596. n += 1 + l + sovSeata(uint64(l))
  4597. }
  4598. return n
  4599. }
  4600. func (m *BranchReportResponse) Size() (n int) {
  4601. if m == nil {
  4602. return 0
  4603. }
  4604. var l int
  4605. _ = l
  4606. if m.ResultCode != 0 {
  4607. n += 1 + sovSeata(uint64(m.ResultCode))
  4608. }
  4609. if m.ExceptionCode != 0 {
  4610. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4611. }
  4612. l = len(m.Message)
  4613. if l > 0 {
  4614. n += 1 + l + sovSeata(uint64(l))
  4615. }
  4616. return n
  4617. }
  4618. func (m *GlobalLockQueryRequest) Size() (n int) {
  4619. if m == nil {
  4620. return 0
  4621. }
  4622. var l int
  4623. _ = l
  4624. l = len(m.XID)
  4625. if l > 0 {
  4626. n += 1 + l + sovSeata(uint64(l))
  4627. }
  4628. l = len(m.ResourceID)
  4629. if l > 0 {
  4630. n += 1 + l + sovSeata(uint64(l))
  4631. }
  4632. l = len(m.LockKey)
  4633. if l > 0 {
  4634. n += 1 + l + sovSeata(uint64(l))
  4635. }
  4636. if m.BranchType != 0 {
  4637. n += 1 + sovSeata(uint64(m.BranchType))
  4638. }
  4639. return n
  4640. }
  4641. func (m *GlobalLockQueryResponse) Size() (n int) {
  4642. if m == nil {
  4643. return 0
  4644. }
  4645. var l int
  4646. _ = l
  4647. if m.ResultCode != 0 {
  4648. n += 1 + sovSeata(uint64(m.ResultCode))
  4649. }
  4650. if m.ExceptionCode != 0 {
  4651. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4652. }
  4653. l = len(m.Message)
  4654. if l > 0 {
  4655. n += 1 + l + sovSeata(uint64(l))
  4656. }
  4657. if m.Lockable {
  4658. n += 2
  4659. }
  4660. return n
  4661. }
  4662. func (m *GlobalStatusRequest) Size() (n int) {
  4663. if m == nil {
  4664. return 0
  4665. }
  4666. var l int
  4667. _ = l
  4668. l = len(m.XID)
  4669. if l > 0 {
  4670. n += 1 + l + sovSeata(uint64(l))
  4671. }
  4672. return n
  4673. }
  4674. func (m *GlobalStatusResponse) Size() (n int) {
  4675. if m == nil {
  4676. return 0
  4677. }
  4678. var l int
  4679. _ = l
  4680. if m.ResultCode != 0 {
  4681. n += 1 + sovSeata(uint64(m.ResultCode))
  4682. }
  4683. if m.ExceptionCode != 0 {
  4684. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4685. }
  4686. l = len(m.Message)
  4687. if l > 0 {
  4688. n += 1 + l + sovSeata(uint64(l))
  4689. }
  4690. if m.GlobalStatus != 0 {
  4691. n += 1 + sovSeata(uint64(m.GlobalStatus))
  4692. }
  4693. return n
  4694. }
  4695. func (m *GlobalCommitRequest) Size() (n int) {
  4696. if m == nil {
  4697. return 0
  4698. }
  4699. var l int
  4700. _ = l
  4701. l = len(m.XID)
  4702. if l > 0 {
  4703. n += 1 + l + sovSeata(uint64(l))
  4704. }
  4705. return n
  4706. }
  4707. func (m *GlobalCommitResponse) Size() (n int) {
  4708. if m == nil {
  4709. return 0
  4710. }
  4711. var l int
  4712. _ = l
  4713. if m.ResultCode != 0 {
  4714. n += 1 + sovSeata(uint64(m.ResultCode))
  4715. }
  4716. if m.ExceptionCode != 0 {
  4717. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4718. }
  4719. l = len(m.Message)
  4720. if l > 0 {
  4721. n += 1 + l + sovSeata(uint64(l))
  4722. }
  4723. if m.GlobalStatus != 0 {
  4724. n += 1 + sovSeata(uint64(m.GlobalStatus))
  4725. }
  4726. return n
  4727. }
  4728. func (m *GlobalRollbackRequest) Size() (n int) {
  4729. if m == nil {
  4730. return 0
  4731. }
  4732. var l int
  4733. _ = l
  4734. l = len(m.XID)
  4735. if l > 0 {
  4736. n += 1 + l + sovSeata(uint64(l))
  4737. }
  4738. return n
  4739. }
  4740. func (m *GlobalRollbackResponse) Size() (n int) {
  4741. if m == nil {
  4742. return 0
  4743. }
  4744. var l int
  4745. _ = l
  4746. if m.ResultCode != 0 {
  4747. n += 1 + sovSeata(uint64(m.ResultCode))
  4748. }
  4749. if m.ExceptionCode != 0 {
  4750. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4751. }
  4752. l = len(m.Message)
  4753. if l > 0 {
  4754. n += 1 + l + sovSeata(uint64(l))
  4755. }
  4756. if m.GlobalStatus != 0 {
  4757. n += 1 + sovSeata(uint64(m.GlobalStatus))
  4758. }
  4759. return n
  4760. }
  4761. func (m *GlobalReportRequest) Size() (n int) {
  4762. if m == nil {
  4763. return 0
  4764. }
  4765. var l int
  4766. _ = l
  4767. l = len(m.XID)
  4768. if l > 0 {
  4769. n += 1 + l + sovSeata(uint64(l))
  4770. }
  4771. if m.GlobalStatus != 0 {
  4772. n += 1 + sovSeata(uint64(m.GlobalStatus))
  4773. }
  4774. return n
  4775. }
  4776. func (m *GlobalReportResponse) Size() (n int) {
  4777. if m == nil {
  4778. return 0
  4779. }
  4780. var l int
  4781. _ = l
  4782. if m.ResultCode != 0 {
  4783. n += 1 + sovSeata(uint64(m.ResultCode))
  4784. }
  4785. if m.ExceptionCode != 0 {
  4786. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4787. }
  4788. l = len(m.Message)
  4789. if l > 0 {
  4790. n += 1 + l + sovSeata(uint64(l))
  4791. }
  4792. if m.GlobalStatus != 0 {
  4793. n += 1 + sovSeata(uint64(m.GlobalStatus))
  4794. }
  4795. return n
  4796. }
  4797. func (m *BranchCommitRequest) Size() (n int) {
  4798. if m == nil {
  4799. return 0
  4800. }
  4801. var l int
  4802. _ = l
  4803. l = len(m.XID)
  4804. if l > 0 {
  4805. n += 1 + l + sovSeata(uint64(l))
  4806. }
  4807. if m.BranchID != 0 {
  4808. n += 1 + sovSeata(uint64(m.BranchID))
  4809. }
  4810. l = len(m.ResourceID)
  4811. if l > 0 {
  4812. n += 1 + l + sovSeata(uint64(l))
  4813. }
  4814. l = len(m.LockKey)
  4815. if l > 0 {
  4816. n += 1 + l + sovSeata(uint64(l))
  4817. }
  4818. if m.BranchType != 0 {
  4819. n += 1 + sovSeata(uint64(m.BranchType))
  4820. }
  4821. l = len(m.ApplicationData)
  4822. if l > 0 {
  4823. n += 1 + l + sovSeata(uint64(l))
  4824. }
  4825. return n
  4826. }
  4827. func (m *BranchCommitResponse) Size() (n int) {
  4828. if m == nil {
  4829. return 0
  4830. }
  4831. var l int
  4832. _ = l
  4833. if m.ResultCode != 0 {
  4834. n += 1 + sovSeata(uint64(m.ResultCode))
  4835. }
  4836. if m.ExceptionCode != 0 {
  4837. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4838. }
  4839. l = len(m.Message)
  4840. if l > 0 {
  4841. n += 1 + l + sovSeata(uint64(l))
  4842. }
  4843. l = len(m.XID)
  4844. if l > 0 {
  4845. n += 1 + l + sovSeata(uint64(l))
  4846. }
  4847. if m.BranchID != 0 {
  4848. n += 1 + sovSeata(uint64(m.BranchID))
  4849. }
  4850. if m.BranchStatus != 0 {
  4851. n += 1 + sovSeata(uint64(m.BranchStatus))
  4852. }
  4853. return n
  4854. }
  4855. func (m *BranchRollbackRequest) Size() (n int) {
  4856. if m == nil {
  4857. return 0
  4858. }
  4859. var l int
  4860. _ = l
  4861. l = len(m.XID)
  4862. if l > 0 {
  4863. n += 1 + l + sovSeata(uint64(l))
  4864. }
  4865. if m.BranchID != 0 {
  4866. n += 1 + sovSeata(uint64(m.BranchID))
  4867. }
  4868. l = len(m.ResourceID)
  4869. if l > 0 {
  4870. n += 1 + l + sovSeata(uint64(l))
  4871. }
  4872. l = len(m.LockKey)
  4873. if l > 0 {
  4874. n += 1 + l + sovSeata(uint64(l))
  4875. }
  4876. if m.BranchType != 0 {
  4877. n += 1 + sovSeata(uint64(m.BranchType))
  4878. }
  4879. l = len(m.ApplicationData)
  4880. if l > 0 {
  4881. n += 1 + l + sovSeata(uint64(l))
  4882. }
  4883. return n
  4884. }
  4885. func (m *BranchRollbackResponse) Size() (n int) {
  4886. if m == nil {
  4887. return 0
  4888. }
  4889. var l int
  4890. _ = l
  4891. if m.ResultCode != 0 {
  4892. n += 1 + sovSeata(uint64(m.ResultCode))
  4893. }
  4894. if m.ExceptionCode != 0 {
  4895. n += 1 + sovSeata(uint64(m.ExceptionCode))
  4896. }
  4897. l = len(m.Message)
  4898. if l > 0 {
  4899. n += 1 + l + sovSeata(uint64(l))
  4900. }
  4901. l = len(m.XID)
  4902. if l > 0 {
  4903. n += 1 + l + sovSeata(uint64(l))
  4904. }
  4905. if m.BranchID != 0 {
  4906. n += 1 + sovSeata(uint64(m.BranchID))
  4907. }
  4908. if m.BranchStatus != 0 {
  4909. n += 1 + sovSeata(uint64(m.BranchStatus))
  4910. }
  4911. return n
  4912. }
  4913. func (m *BranchMessage) Size() (n int) {
  4914. if m == nil {
  4915. return 0
  4916. }
  4917. var l int
  4918. _ = l
  4919. if m.ID != 0 {
  4920. n += 1 + sovSeata(uint64(m.ID))
  4921. }
  4922. if m.BranchMessageType != 0 {
  4923. n += 1 + sovSeata(uint64(m.BranchMessageType))
  4924. }
  4925. if m.Message != nil {
  4926. l = m.Message.Size()
  4927. n += 1 + l + sovSeata(uint64(l))
  4928. }
  4929. return n
  4930. }
  4931. func sovSeata(x uint64) (n int) {
  4932. return (math_bits.Len64(x|1) + 6) / 7
  4933. }
  4934. func sozSeata(x uint64) (n int) {
  4935. return sovSeata(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  4936. }
  4937. func (this *GlobalSession) String() string {
  4938. if this == nil {
  4939. return "nil"
  4940. }
  4941. s := strings.Join([]string{`&GlobalSession{`,
  4942. `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
  4943. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  4944. `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
  4945. `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
  4946. `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
  4947. `BeginTime:` + fmt.Sprintf("%v", this.BeginTime) + `,`,
  4948. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  4949. `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
  4950. `}`,
  4951. }, "")
  4952. return s
  4953. }
  4954. func (this *BranchSession) String() string {
  4955. if this == nil {
  4956. return "nil"
  4957. }
  4958. s := strings.Join([]string{`&BranchSession{`,
  4959. `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
  4960. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  4961. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  4962. `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
  4963. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  4964. `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
  4965. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  4966. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  4967. `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
  4968. `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
  4969. `}`,
  4970. }, "")
  4971. return s
  4972. }
  4973. func (this *RowLock) String() string {
  4974. if this == nil {
  4975. return "nil"
  4976. }
  4977. s := strings.Join([]string{`&RowLock{`,
  4978. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  4979. `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
  4980. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  4981. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  4982. `TableName:` + fmt.Sprintf("%v", this.TableName) + `,`,
  4983. `PK:` + fmt.Sprintf("%v", this.PK) + `,`,
  4984. `RowKey:` + fmt.Sprintf("%v", this.RowKey) + `,`,
  4985. `}`,
  4986. }, "")
  4987. return s
  4988. }
  4989. func (this *GlobalBeginRequest) String() string {
  4990. if this == nil {
  4991. return "nil"
  4992. }
  4993. s := strings.Join([]string{`&GlobalBeginRequest{`,
  4994. `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
  4995. `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
  4996. `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
  4997. `}`,
  4998. }, "")
  4999. return s
  5000. }
  5001. func (this *GlobalBeginResponse) String() string {
  5002. if this == nil {
  5003. return "nil"
  5004. }
  5005. s := strings.Join([]string{`&GlobalBeginResponse{`,
  5006. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5007. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5008. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5009. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5010. `}`,
  5011. }, "")
  5012. return s
  5013. }
  5014. func (this *BranchRegisterRequest) String() string {
  5015. if this == nil {
  5016. return "nil"
  5017. }
  5018. s := strings.Join([]string{`&BranchRegisterRequest{`,
  5019. `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
  5020. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5021. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  5022. `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
  5023. `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
  5024. `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
  5025. `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
  5026. `}`,
  5027. }, "")
  5028. return s
  5029. }
  5030. func (this *BranchRegisterResponse) String() string {
  5031. if this == nil {
  5032. return "nil"
  5033. }
  5034. s := strings.Join([]string{`&BranchRegisterResponse{`,
  5035. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5036. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5037. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5038. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5039. `}`,
  5040. }, "")
  5041. return s
  5042. }
  5043. func (this *BranchReportRequest) String() string {
  5044. if this == nil {
  5045. return "nil"
  5046. }
  5047. s := strings.Join([]string{`&BranchReportRequest{`,
  5048. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5049. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5050. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  5051. `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
  5052. `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
  5053. `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
  5054. `}`,
  5055. }, "")
  5056. return s
  5057. }
  5058. func (this *BranchReportResponse) String() string {
  5059. if this == nil {
  5060. return "nil"
  5061. }
  5062. s := strings.Join([]string{`&BranchReportResponse{`,
  5063. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5064. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5065. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5066. `}`,
  5067. }, "")
  5068. return s
  5069. }
  5070. func (this *GlobalLockQueryRequest) String() string {
  5071. if this == nil {
  5072. return "nil"
  5073. }
  5074. s := strings.Join([]string{`&GlobalLockQueryRequest{`,
  5075. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5076. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  5077. `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
  5078. `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
  5079. `}`,
  5080. }, "")
  5081. return s
  5082. }
  5083. func (this *GlobalLockQueryResponse) String() string {
  5084. if this == nil {
  5085. return "nil"
  5086. }
  5087. s := strings.Join([]string{`&GlobalLockQueryResponse{`,
  5088. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5089. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5090. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5091. `Lockable:` + fmt.Sprintf("%v", this.Lockable) + `,`,
  5092. `}`,
  5093. }, "")
  5094. return s
  5095. }
  5096. func (this *GlobalStatusRequest) String() string {
  5097. if this == nil {
  5098. return "nil"
  5099. }
  5100. s := strings.Join([]string{`&GlobalStatusRequest{`,
  5101. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5102. `}`,
  5103. }, "")
  5104. return s
  5105. }
  5106. func (this *GlobalStatusResponse) String() string {
  5107. if this == nil {
  5108. return "nil"
  5109. }
  5110. s := strings.Join([]string{`&GlobalStatusResponse{`,
  5111. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5112. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5113. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5114. `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
  5115. `}`,
  5116. }, "")
  5117. return s
  5118. }
  5119. func (this *GlobalCommitRequest) String() string {
  5120. if this == nil {
  5121. return "nil"
  5122. }
  5123. s := strings.Join([]string{`&GlobalCommitRequest{`,
  5124. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5125. `}`,
  5126. }, "")
  5127. return s
  5128. }
  5129. func (this *GlobalCommitResponse) String() string {
  5130. if this == nil {
  5131. return "nil"
  5132. }
  5133. s := strings.Join([]string{`&GlobalCommitResponse{`,
  5134. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5135. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5136. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5137. `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
  5138. `}`,
  5139. }, "")
  5140. return s
  5141. }
  5142. func (this *GlobalRollbackRequest) String() string {
  5143. if this == nil {
  5144. return "nil"
  5145. }
  5146. s := strings.Join([]string{`&GlobalRollbackRequest{`,
  5147. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5148. `}`,
  5149. }, "")
  5150. return s
  5151. }
  5152. func (this *GlobalRollbackResponse) String() string {
  5153. if this == nil {
  5154. return "nil"
  5155. }
  5156. s := strings.Join([]string{`&GlobalRollbackResponse{`,
  5157. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5158. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5159. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5160. `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
  5161. `}`,
  5162. }, "")
  5163. return s
  5164. }
  5165. func (this *GlobalReportRequest) String() string {
  5166. if this == nil {
  5167. return "nil"
  5168. }
  5169. s := strings.Join([]string{`&GlobalReportRequest{`,
  5170. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5171. `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
  5172. `}`,
  5173. }, "")
  5174. return s
  5175. }
  5176. func (this *GlobalReportResponse) String() string {
  5177. if this == nil {
  5178. return "nil"
  5179. }
  5180. s := strings.Join([]string{`&GlobalReportResponse{`,
  5181. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5182. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5183. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5184. `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
  5185. `}`,
  5186. }, "")
  5187. return s
  5188. }
  5189. func (this *BranchCommitRequest) String() string {
  5190. if this == nil {
  5191. return "nil"
  5192. }
  5193. s := strings.Join([]string{`&BranchCommitRequest{`,
  5194. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5195. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5196. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  5197. `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
  5198. `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
  5199. `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
  5200. `}`,
  5201. }, "")
  5202. return s
  5203. }
  5204. func (this *BranchCommitResponse) String() string {
  5205. if this == nil {
  5206. return "nil"
  5207. }
  5208. s := strings.Join([]string{`&BranchCommitResponse{`,
  5209. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5210. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5211. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5212. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5213. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5214. `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
  5215. `}`,
  5216. }, "")
  5217. return s
  5218. }
  5219. func (this *BranchRollbackRequest) String() string {
  5220. if this == nil {
  5221. return "nil"
  5222. }
  5223. s := strings.Join([]string{`&BranchRollbackRequest{`,
  5224. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5225. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5226. `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
  5227. `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
  5228. `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
  5229. `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
  5230. `}`,
  5231. }, "")
  5232. return s
  5233. }
  5234. func (this *BranchRollbackResponse) String() string {
  5235. if this == nil {
  5236. return "nil"
  5237. }
  5238. s := strings.Join([]string{`&BranchRollbackResponse{`,
  5239. `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
  5240. `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
  5241. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  5242. `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
  5243. `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
  5244. `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
  5245. `}`,
  5246. }, "")
  5247. return s
  5248. }
  5249. func (this *BranchMessage) String() string {
  5250. if this == nil {
  5251. return "nil"
  5252. }
  5253. s := strings.Join([]string{`&BranchMessage{`,
  5254. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  5255. `BranchMessageType:` + fmt.Sprintf("%v", this.BranchMessageType) + `,`,
  5256. `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Any", "types.Any", 1) + `,`,
  5257. `}`,
  5258. }, "")
  5259. return s
  5260. }
  5261. func valueToStringSeata(v interface{}) string {
  5262. rv := reflect.ValueOf(v)
  5263. if rv.IsNil() {
  5264. return "nil"
  5265. }
  5266. pv := reflect.Indirect(rv).Interface()
  5267. return fmt.Sprintf("*%v", pv)
  5268. }
  5269. func (m *GlobalSession) Unmarshal(dAtA []byte) error {
  5270. l := len(dAtA)
  5271. iNdEx := 0
  5272. for iNdEx < l {
  5273. preIndex := iNdEx
  5274. var wire uint64
  5275. for shift := uint(0); ; shift += 7 {
  5276. if shift >= 64 {
  5277. return ErrIntOverflowSeata
  5278. }
  5279. if iNdEx >= l {
  5280. return io.ErrUnexpectedEOF
  5281. }
  5282. b := dAtA[iNdEx]
  5283. iNdEx++
  5284. wire |= uint64(b&0x7F) << shift
  5285. if b < 0x80 {
  5286. break
  5287. }
  5288. }
  5289. fieldNum := int32(wire >> 3)
  5290. wireType := int(wire & 0x7)
  5291. if wireType == 4 {
  5292. return fmt.Errorf("proto: GlobalSession: wiretype end group for non-group")
  5293. }
  5294. if fieldNum <= 0 {
  5295. return fmt.Errorf("proto: GlobalSession: illegal tag %d (wire type %d)", fieldNum, wire)
  5296. }
  5297. switch fieldNum {
  5298. case 1:
  5299. if wireType != 2 {
  5300. return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
  5301. }
  5302. var stringLen uint64
  5303. for shift := uint(0); ; shift += 7 {
  5304. if shift >= 64 {
  5305. return ErrIntOverflowSeata
  5306. }
  5307. if iNdEx >= l {
  5308. return io.ErrUnexpectedEOF
  5309. }
  5310. b := dAtA[iNdEx]
  5311. iNdEx++
  5312. stringLen |= uint64(b&0x7F) << shift
  5313. if b < 0x80 {
  5314. break
  5315. }
  5316. }
  5317. intStringLen := int(stringLen)
  5318. if intStringLen < 0 {
  5319. return ErrInvalidLengthSeata
  5320. }
  5321. postIndex := iNdEx + intStringLen
  5322. if postIndex < 0 {
  5323. return ErrInvalidLengthSeata
  5324. }
  5325. if postIndex > l {
  5326. return io.ErrUnexpectedEOF
  5327. }
  5328. m.Addressing = string(dAtA[iNdEx:postIndex])
  5329. iNdEx = postIndex
  5330. case 2:
  5331. if wireType != 2 {
  5332. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  5333. }
  5334. var stringLen uint64
  5335. for shift := uint(0); ; shift += 7 {
  5336. if shift >= 64 {
  5337. return ErrIntOverflowSeata
  5338. }
  5339. if iNdEx >= l {
  5340. return io.ErrUnexpectedEOF
  5341. }
  5342. b := dAtA[iNdEx]
  5343. iNdEx++
  5344. stringLen |= uint64(b&0x7F) << shift
  5345. if b < 0x80 {
  5346. break
  5347. }
  5348. }
  5349. intStringLen := int(stringLen)
  5350. if intStringLen < 0 {
  5351. return ErrInvalidLengthSeata
  5352. }
  5353. postIndex := iNdEx + intStringLen
  5354. if postIndex < 0 {
  5355. return ErrInvalidLengthSeata
  5356. }
  5357. if postIndex > l {
  5358. return io.ErrUnexpectedEOF
  5359. }
  5360. m.XID = string(dAtA[iNdEx:postIndex])
  5361. iNdEx = postIndex
  5362. case 3:
  5363. if wireType != 0 {
  5364. return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
  5365. }
  5366. m.TransactionID = 0
  5367. for shift := uint(0); ; shift += 7 {
  5368. if shift >= 64 {
  5369. return ErrIntOverflowSeata
  5370. }
  5371. if iNdEx >= l {
  5372. return io.ErrUnexpectedEOF
  5373. }
  5374. b := dAtA[iNdEx]
  5375. iNdEx++
  5376. m.TransactionID |= int64(b&0x7F) << shift
  5377. if b < 0x80 {
  5378. break
  5379. }
  5380. }
  5381. case 4:
  5382. if wireType != 2 {
  5383. return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
  5384. }
  5385. var stringLen uint64
  5386. for shift := uint(0); ; shift += 7 {
  5387. if shift >= 64 {
  5388. return ErrIntOverflowSeata
  5389. }
  5390. if iNdEx >= l {
  5391. return io.ErrUnexpectedEOF
  5392. }
  5393. b := dAtA[iNdEx]
  5394. iNdEx++
  5395. stringLen |= uint64(b&0x7F) << shift
  5396. if b < 0x80 {
  5397. break
  5398. }
  5399. }
  5400. intStringLen := int(stringLen)
  5401. if intStringLen < 0 {
  5402. return ErrInvalidLengthSeata
  5403. }
  5404. postIndex := iNdEx + intStringLen
  5405. if postIndex < 0 {
  5406. return ErrInvalidLengthSeata
  5407. }
  5408. if postIndex > l {
  5409. return io.ErrUnexpectedEOF
  5410. }
  5411. m.TransactionName = string(dAtA[iNdEx:postIndex])
  5412. iNdEx = postIndex
  5413. case 5:
  5414. if wireType != 0 {
  5415. return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
  5416. }
  5417. m.Timeout = 0
  5418. for shift := uint(0); ; shift += 7 {
  5419. if shift >= 64 {
  5420. return ErrIntOverflowSeata
  5421. }
  5422. if iNdEx >= l {
  5423. return io.ErrUnexpectedEOF
  5424. }
  5425. b := dAtA[iNdEx]
  5426. iNdEx++
  5427. m.Timeout |= int32(b&0x7F) << shift
  5428. if b < 0x80 {
  5429. break
  5430. }
  5431. }
  5432. case 6:
  5433. if wireType != 0 {
  5434. return fmt.Errorf("proto: wrong wireType = %d for field BeginTime", wireType)
  5435. }
  5436. m.BeginTime = 0
  5437. for shift := uint(0); ; shift += 7 {
  5438. if shift >= 64 {
  5439. return ErrIntOverflowSeata
  5440. }
  5441. if iNdEx >= l {
  5442. return io.ErrUnexpectedEOF
  5443. }
  5444. b := dAtA[iNdEx]
  5445. iNdEx++
  5446. m.BeginTime |= int64(b&0x7F) << shift
  5447. if b < 0x80 {
  5448. break
  5449. }
  5450. }
  5451. case 7:
  5452. if wireType != 0 {
  5453. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  5454. }
  5455. m.Status = 0
  5456. for shift := uint(0); ; shift += 7 {
  5457. if shift >= 64 {
  5458. return ErrIntOverflowSeata
  5459. }
  5460. if iNdEx >= l {
  5461. return io.ErrUnexpectedEOF
  5462. }
  5463. b := dAtA[iNdEx]
  5464. iNdEx++
  5465. m.Status |= GlobalSession_GlobalStatus(b&0x7F) << shift
  5466. if b < 0x80 {
  5467. break
  5468. }
  5469. }
  5470. case 8:
  5471. if wireType != 0 {
  5472. return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
  5473. }
  5474. var v int
  5475. for shift := uint(0); ; shift += 7 {
  5476. if shift >= 64 {
  5477. return ErrIntOverflowSeata
  5478. }
  5479. if iNdEx >= l {
  5480. return io.ErrUnexpectedEOF
  5481. }
  5482. b := dAtA[iNdEx]
  5483. iNdEx++
  5484. v |= int(b&0x7F) << shift
  5485. if b < 0x80 {
  5486. break
  5487. }
  5488. }
  5489. m.Active = bool(v != 0)
  5490. default:
  5491. iNdEx = preIndex
  5492. skippy, err := skipSeata(dAtA[iNdEx:])
  5493. if err != nil {
  5494. return err
  5495. }
  5496. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5497. return ErrInvalidLengthSeata
  5498. }
  5499. if (iNdEx + skippy) > l {
  5500. return io.ErrUnexpectedEOF
  5501. }
  5502. iNdEx += skippy
  5503. }
  5504. }
  5505. if iNdEx > l {
  5506. return io.ErrUnexpectedEOF
  5507. }
  5508. return nil
  5509. }
  5510. func (m *BranchSession) Unmarshal(dAtA []byte) error {
  5511. l := len(dAtA)
  5512. iNdEx := 0
  5513. for iNdEx < l {
  5514. preIndex := iNdEx
  5515. var wire uint64
  5516. for shift := uint(0); ; shift += 7 {
  5517. if shift >= 64 {
  5518. return ErrIntOverflowSeata
  5519. }
  5520. if iNdEx >= l {
  5521. return io.ErrUnexpectedEOF
  5522. }
  5523. b := dAtA[iNdEx]
  5524. iNdEx++
  5525. wire |= uint64(b&0x7F) << shift
  5526. if b < 0x80 {
  5527. break
  5528. }
  5529. }
  5530. fieldNum := int32(wire >> 3)
  5531. wireType := int(wire & 0x7)
  5532. if wireType == 4 {
  5533. return fmt.Errorf("proto: BranchSession: wiretype end group for non-group")
  5534. }
  5535. if fieldNum <= 0 {
  5536. return fmt.Errorf("proto: BranchSession: illegal tag %d (wire type %d)", fieldNum, wire)
  5537. }
  5538. switch fieldNum {
  5539. case 1:
  5540. if wireType != 2 {
  5541. return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
  5542. }
  5543. var stringLen uint64
  5544. for shift := uint(0); ; shift += 7 {
  5545. if shift >= 64 {
  5546. return ErrIntOverflowSeata
  5547. }
  5548. if iNdEx >= l {
  5549. return io.ErrUnexpectedEOF
  5550. }
  5551. b := dAtA[iNdEx]
  5552. iNdEx++
  5553. stringLen |= uint64(b&0x7F) << shift
  5554. if b < 0x80 {
  5555. break
  5556. }
  5557. }
  5558. intStringLen := int(stringLen)
  5559. if intStringLen < 0 {
  5560. return ErrInvalidLengthSeata
  5561. }
  5562. postIndex := iNdEx + intStringLen
  5563. if postIndex < 0 {
  5564. return ErrInvalidLengthSeata
  5565. }
  5566. if postIndex > l {
  5567. return io.ErrUnexpectedEOF
  5568. }
  5569. m.Addressing = string(dAtA[iNdEx:postIndex])
  5570. iNdEx = postIndex
  5571. case 2:
  5572. if wireType != 2 {
  5573. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  5574. }
  5575. var stringLen uint64
  5576. for shift := uint(0); ; shift += 7 {
  5577. if shift >= 64 {
  5578. return ErrIntOverflowSeata
  5579. }
  5580. if iNdEx >= l {
  5581. return io.ErrUnexpectedEOF
  5582. }
  5583. b := dAtA[iNdEx]
  5584. iNdEx++
  5585. stringLen |= uint64(b&0x7F) << shift
  5586. if b < 0x80 {
  5587. break
  5588. }
  5589. }
  5590. intStringLen := int(stringLen)
  5591. if intStringLen < 0 {
  5592. return ErrInvalidLengthSeata
  5593. }
  5594. postIndex := iNdEx + intStringLen
  5595. if postIndex < 0 {
  5596. return ErrInvalidLengthSeata
  5597. }
  5598. if postIndex > l {
  5599. return io.ErrUnexpectedEOF
  5600. }
  5601. m.XID = string(dAtA[iNdEx:postIndex])
  5602. iNdEx = postIndex
  5603. case 3:
  5604. if wireType != 0 {
  5605. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  5606. }
  5607. m.BranchID = 0
  5608. for shift := uint(0); ; shift += 7 {
  5609. if shift >= 64 {
  5610. return ErrIntOverflowSeata
  5611. }
  5612. if iNdEx >= l {
  5613. return io.ErrUnexpectedEOF
  5614. }
  5615. b := dAtA[iNdEx]
  5616. iNdEx++
  5617. m.BranchID |= int64(b&0x7F) << shift
  5618. if b < 0x80 {
  5619. break
  5620. }
  5621. }
  5622. case 4:
  5623. if wireType != 0 {
  5624. return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
  5625. }
  5626. m.TransactionID = 0
  5627. for shift := uint(0); ; shift += 7 {
  5628. if shift >= 64 {
  5629. return ErrIntOverflowSeata
  5630. }
  5631. if iNdEx >= l {
  5632. return io.ErrUnexpectedEOF
  5633. }
  5634. b := dAtA[iNdEx]
  5635. iNdEx++
  5636. m.TransactionID |= int64(b&0x7F) << shift
  5637. if b < 0x80 {
  5638. break
  5639. }
  5640. }
  5641. case 5:
  5642. if wireType != 2 {
  5643. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  5644. }
  5645. var stringLen uint64
  5646. for shift := uint(0); ; shift += 7 {
  5647. if shift >= 64 {
  5648. return ErrIntOverflowSeata
  5649. }
  5650. if iNdEx >= l {
  5651. return io.ErrUnexpectedEOF
  5652. }
  5653. b := dAtA[iNdEx]
  5654. iNdEx++
  5655. stringLen |= uint64(b&0x7F) << shift
  5656. if b < 0x80 {
  5657. break
  5658. }
  5659. }
  5660. intStringLen := int(stringLen)
  5661. if intStringLen < 0 {
  5662. return ErrInvalidLengthSeata
  5663. }
  5664. postIndex := iNdEx + intStringLen
  5665. if postIndex < 0 {
  5666. return ErrInvalidLengthSeata
  5667. }
  5668. if postIndex > l {
  5669. return io.ErrUnexpectedEOF
  5670. }
  5671. m.ResourceID = string(dAtA[iNdEx:postIndex])
  5672. iNdEx = postIndex
  5673. case 6:
  5674. if wireType != 2 {
  5675. return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
  5676. }
  5677. var stringLen uint64
  5678. for shift := uint(0); ; shift += 7 {
  5679. if shift >= 64 {
  5680. return ErrIntOverflowSeata
  5681. }
  5682. if iNdEx >= l {
  5683. return io.ErrUnexpectedEOF
  5684. }
  5685. b := dAtA[iNdEx]
  5686. iNdEx++
  5687. stringLen |= uint64(b&0x7F) << shift
  5688. if b < 0x80 {
  5689. break
  5690. }
  5691. }
  5692. intStringLen := int(stringLen)
  5693. if intStringLen < 0 {
  5694. return ErrInvalidLengthSeata
  5695. }
  5696. postIndex := iNdEx + intStringLen
  5697. if postIndex < 0 {
  5698. return ErrInvalidLengthSeata
  5699. }
  5700. if postIndex > l {
  5701. return io.ErrUnexpectedEOF
  5702. }
  5703. m.LockKey = string(dAtA[iNdEx:postIndex])
  5704. iNdEx = postIndex
  5705. case 7:
  5706. if wireType != 0 {
  5707. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  5708. }
  5709. m.Type = 0
  5710. for shift := uint(0); ; shift += 7 {
  5711. if shift >= 64 {
  5712. return ErrIntOverflowSeata
  5713. }
  5714. if iNdEx >= l {
  5715. return io.ErrUnexpectedEOF
  5716. }
  5717. b := dAtA[iNdEx]
  5718. iNdEx++
  5719. m.Type |= BranchSession_BranchType(b&0x7F) << shift
  5720. if b < 0x80 {
  5721. break
  5722. }
  5723. }
  5724. case 8:
  5725. if wireType != 0 {
  5726. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  5727. }
  5728. m.Status = 0
  5729. for shift := uint(0); ; shift += 7 {
  5730. if shift >= 64 {
  5731. return ErrIntOverflowSeata
  5732. }
  5733. if iNdEx >= l {
  5734. return io.ErrUnexpectedEOF
  5735. }
  5736. b := dAtA[iNdEx]
  5737. iNdEx++
  5738. m.Status |= BranchSession_BranchStatus(b&0x7F) << shift
  5739. if b < 0x80 {
  5740. break
  5741. }
  5742. }
  5743. case 9:
  5744. if wireType != 2 {
  5745. return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
  5746. }
  5747. var byteLen int
  5748. for shift := uint(0); ; shift += 7 {
  5749. if shift >= 64 {
  5750. return ErrIntOverflowSeata
  5751. }
  5752. if iNdEx >= l {
  5753. return io.ErrUnexpectedEOF
  5754. }
  5755. b := dAtA[iNdEx]
  5756. iNdEx++
  5757. byteLen |= int(b&0x7F) << shift
  5758. if b < 0x80 {
  5759. break
  5760. }
  5761. }
  5762. if byteLen < 0 {
  5763. return ErrInvalidLengthSeata
  5764. }
  5765. postIndex := iNdEx + byteLen
  5766. if postIndex < 0 {
  5767. return ErrInvalidLengthSeata
  5768. }
  5769. if postIndex > l {
  5770. return io.ErrUnexpectedEOF
  5771. }
  5772. m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
  5773. if m.ApplicationData == nil {
  5774. m.ApplicationData = []byte{}
  5775. }
  5776. iNdEx = postIndex
  5777. case 10:
  5778. if wireType != 0 {
  5779. return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
  5780. }
  5781. var v int
  5782. for shift := uint(0); ; shift += 7 {
  5783. if shift >= 64 {
  5784. return ErrIntOverflowSeata
  5785. }
  5786. if iNdEx >= l {
  5787. return io.ErrUnexpectedEOF
  5788. }
  5789. b := dAtA[iNdEx]
  5790. iNdEx++
  5791. v |= int(b&0x7F) << shift
  5792. if b < 0x80 {
  5793. break
  5794. }
  5795. }
  5796. m.AsyncCommit = bool(v != 0)
  5797. default:
  5798. iNdEx = preIndex
  5799. skippy, err := skipSeata(dAtA[iNdEx:])
  5800. if err != nil {
  5801. return err
  5802. }
  5803. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5804. return ErrInvalidLengthSeata
  5805. }
  5806. if (iNdEx + skippy) > l {
  5807. return io.ErrUnexpectedEOF
  5808. }
  5809. iNdEx += skippy
  5810. }
  5811. }
  5812. if iNdEx > l {
  5813. return io.ErrUnexpectedEOF
  5814. }
  5815. return nil
  5816. }
  5817. func (m *RowLock) Unmarshal(dAtA []byte) error {
  5818. l := len(dAtA)
  5819. iNdEx := 0
  5820. for iNdEx < l {
  5821. preIndex := iNdEx
  5822. var wire uint64
  5823. for shift := uint(0); ; shift += 7 {
  5824. if shift >= 64 {
  5825. return ErrIntOverflowSeata
  5826. }
  5827. if iNdEx >= l {
  5828. return io.ErrUnexpectedEOF
  5829. }
  5830. b := dAtA[iNdEx]
  5831. iNdEx++
  5832. wire |= uint64(b&0x7F) << shift
  5833. if b < 0x80 {
  5834. break
  5835. }
  5836. }
  5837. fieldNum := int32(wire >> 3)
  5838. wireType := int(wire & 0x7)
  5839. if wireType == 4 {
  5840. return fmt.Errorf("proto: RowLock: wiretype end group for non-group")
  5841. }
  5842. if fieldNum <= 0 {
  5843. return fmt.Errorf("proto: RowLock: illegal tag %d (wire type %d)", fieldNum, wire)
  5844. }
  5845. switch fieldNum {
  5846. case 1:
  5847. if wireType != 2 {
  5848. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  5849. }
  5850. var stringLen uint64
  5851. for shift := uint(0); ; shift += 7 {
  5852. if shift >= 64 {
  5853. return ErrIntOverflowSeata
  5854. }
  5855. if iNdEx >= l {
  5856. return io.ErrUnexpectedEOF
  5857. }
  5858. b := dAtA[iNdEx]
  5859. iNdEx++
  5860. stringLen |= uint64(b&0x7F) << shift
  5861. if b < 0x80 {
  5862. break
  5863. }
  5864. }
  5865. intStringLen := int(stringLen)
  5866. if intStringLen < 0 {
  5867. return ErrInvalidLengthSeata
  5868. }
  5869. postIndex := iNdEx + intStringLen
  5870. if postIndex < 0 {
  5871. return ErrInvalidLengthSeata
  5872. }
  5873. if postIndex > l {
  5874. return io.ErrUnexpectedEOF
  5875. }
  5876. m.XID = string(dAtA[iNdEx:postIndex])
  5877. iNdEx = postIndex
  5878. case 2:
  5879. if wireType != 0 {
  5880. return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
  5881. }
  5882. m.TransactionID = 0
  5883. for shift := uint(0); ; shift += 7 {
  5884. if shift >= 64 {
  5885. return ErrIntOverflowSeata
  5886. }
  5887. if iNdEx >= l {
  5888. return io.ErrUnexpectedEOF
  5889. }
  5890. b := dAtA[iNdEx]
  5891. iNdEx++
  5892. m.TransactionID |= int64(b&0x7F) << shift
  5893. if b < 0x80 {
  5894. break
  5895. }
  5896. }
  5897. case 3:
  5898. if wireType != 0 {
  5899. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  5900. }
  5901. m.BranchID = 0
  5902. for shift := uint(0); ; shift += 7 {
  5903. if shift >= 64 {
  5904. return ErrIntOverflowSeata
  5905. }
  5906. if iNdEx >= l {
  5907. return io.ErrUnexpectedEOF
  5908. }
  5909. b := dAtA[iNdEx]
  5910. iNdEx++
  5911. m.BranchID |= int64(b&0x7F) << shift
  5912. if b < 0x80 {
  5913. break
  5914. }
  5915. }
  5916. case 4:
  5917. if wireType != 2 {
  5918. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  5919. }
  5920. var stringLen uint64
  5921. for shift := uint(0); ; shift += 7 {
  5922. if shift >= 64 {
  5923. return ErrIntOverflowSeata
  5924. }
  5925. if iNdEx >= l {
  5926. return io.ErrUnexpectedEOF
  5927. }
  5928. b := dAtA[iNdEx]
  5929. iNdEx++
  5930. stringLen |= uint64(b&0x7F) << shift
  5931. if b < 0x80 {
  5932. break
  5933. }
  5934. }
  5935. intStringLen := int(stringLen)
  5936. if intStringLen < 0 {
  5937. return ErrInvalidLengthSeata
  5938. }
  5939. postIndex := iNdEx + intStringLen
  5940. if postIndex < 0 {
  5941. return ErrInvalidLengthSeata
  5942. }
  5943. if postIndex > l {
  5944. return io.ErrUnexpectedEOF
  5945. }
  5946. m.ResourceID = string(dAtA[iNdEx:postIndex])
  5947. iNdEx = postIndex
  5948. case 5:
  5949. if wireType != 2 {
  5950. return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  5951. }
  5952. var stringLen uint64
  5953. for shift := uint(0); ; shift += 7 {
  5954. if shift >= 64 {
  5955. return ErrIntOverflowSeata
  5956. }
  5957. if iNdEx >= l {
  5958. return io.ErrUnexpectedEOF
  5959. }
  5960. b := dAtA[iNdEx]
  5961. iNdEx++
  5962. stringLen |= uint64(b&0x7F) << shift
  5963. if b < 0x80 {
  5964. break
  5965. }
  5966. }
  5967. intStringLen := int(stringLen)
  5968. if intStringLen < 0 {
  5969. return ErrInvalidLengthSeata
  5970. }
  5971. postIndex := iNdEx + intStringLen
  5972. if postIndex < 0 {
  5973. return ErrInvalidLengthSeata
  5974. }
  5975. if postIndex > l {
  5976. return io.ErrUnexpectedEOF
  5977. }
  5978. m.TableName = string(dAtA[iNdEx:postIndex])
  5979. iNdEx = postIndex
  5980. case 6:
  5981. if wireType != 2 {
  5982. return fmt.Errorf("proto: wrong wireType = %d for field PK", wireType)
  5983. }
  5984. var stringLen uint64
  5985. for shift := uint(0); ; shift += 7 {
  5986. if shift >= 64 {
  5987. return ErrIntOverflowSeata
  5988. }
  5989. if iNdEx >= l {
  5990. return io.ErrUnexpectedEOF
  5991. }
  5992. b := dAtA[iNdEx]
  5993. iNdEx++
  5994. stringLen |= uint64(b&0x7F) << shift
  5995. if b < 0x80 {
  5996. break
  5997. }
  5998. }
  5999. intStringLen := int(stringLen)
  6000. if intStringLen < 0 {
  6001. return ErrInvalidLengthSeata
  6002. }
  6003. postIndex := iNdEx + intStringLen
  6004. if postIndex < 0 {
  6005. return ErrInvalidLengthSeata
  6006. }
  6007. if postIndex > l {
  6008. return io.ErrUnexpectedEOF
  6009. }
  6010. m.PK = string(dAtA[iNdEx:postIndex])
  6011. iNdEx = postIndex
  6012. case 7:
  6013. if wireType != 2 {
  6014. return fmt.Errorf("proto: wrong wireType = %d for field RowKey", wireType)
  6015. }
  6016. var stringLen uint64
  6017. for shift := uint(0); ; shift += 7 {
  6018. if shift >= 64 {
  6019. return ErrIntOverflowSeata
  6020. }
  6021. if iNdEx >= l {
  6022. return io.ErrUnexpectedEOF
  6023. }
  6024. b := dAtA[iNdEx]
  6025. iNdEx++
  6026. stringLen |= uint64(b&0x7F) << shift
  6027. if b < 0x80 {
  6028. break
  6029. }
  6030. }
  6031. intStringLen := int(stringLen)
  6032. if intStringLen < 0 {
  6033. return ErrInvalidLengthSeata
  6034. }
  6035. postIndex := iNdEx + intStringLen
  6036. if postIndex < 0 {
  6037. return ErrInvalidLengthSeata
  6038. }
  6039. if postIndex > l {
  6040. return io.ErrUnexpectedEOF
  6041. }
  6042. m.RowKey = string(dAtA[iNdEx:postIndex])
  6043. iNdEx = postIndex
  6044. default:
  6045. iNdEx = preIndex
  6046. skippy, err := skipSeata(dAtA[iNdEx:])
  6047. if err != nil {
  6048. return err
  6049. }
  6050. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6051. return ErrInvalidLengthSeata
  6052. }
  6053. if (iNdEx + skippy) > l {
  6054. return io.ErrUnexpectedEOF
  6055. }
  6056. iNdEx += skippy
  6057. }
  6058. }
  6059. if iNdEx > l {
  6060. return io.ErrUnexpectedEOF
  6061. }
  6062. return nil
  6063. }
  6064. func (m *GlobalBeginRequest) Unmarshal(dAtA []byte) error {
  6065. l := len(dAtA)
  6066. iNdEx := 0
  6067. for iNdEx < l {
  6068. preIndex := iNdEx
  6069. var wire uint64
  6070. for shift := uint(0); ; shift += 7 {
  6071. if shift >= 64 {
  6072. return ErrIntOverflowSeata
  6073. }
  6074. if iNdEx >= l {
  6075. return io.ErrUnexpectedEOF
  6076. }
  6077. b := dAtA[iNdEx]
  6078. iNdEx++
  6079. wire |= uint64(b&0x7F) << shift
  6080. if b < 0x80 {
  6081. break
  6082. }
  6083. }
  6084. fieldNum := int32(wire >> 3)
  6085. wireType := int(wire & 0x7)
  6086. if wireType == 4 {
  6087. return fmt.Errorf("proto: GlobalBeginRequest: wiretype end group for non-group")
  6088. }
  6089. if fieldNum <= 0 {
  6090. return fmt.Errorf("proto: GlobalBeginRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6091. }
  6092. switch fieldNum {
  6093. case 1:
  6094. if wireType != 2 {
  6095. return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
  6096. }
  6097. var stringLen uint64
  6098. for shift := uint(0); ; shift += 7 {
  6099. if shift >= 64 {
  6100. return ErrIntOverflowSeata
  6101. }
  6102. if iNdEx >= l {
  6103. return io.ErrUnexpectedEOF
  6104. }
  6105. b := dAtA[iNdEx]
  6106. iNdEx++
  6107. stringLen |= uint64(b&0x7F) << shift
  6108. if b < 0x80 {
  6109. break
  6110. }
  6111. }
  6112. intStringLen := int(stringLen)
  6113. if intStringLen < 0 {
  6114. return ErrInvalidLengthSeata
  6115. }
  6116. postIndex := iNdEx + intStringLen
  6117. if postIndex < 0 {
  6118. return ErrInvalidLengthSeata
  6119. }
  6120. if postIndex > l {
  6121. return io.ErrUnexpectedEOF
  6122. }
  6123. m.Addressing = string(dAtA[iNdEx:postIndex])
  6124. iNdEx = postIndex
  6125. case 2:
  6126. if wireType != 0 {
  6127. return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
  6128. }
  6129. m.Timeout = 0
  6130. for shift := uint(0); ; shift += 7 {
  6131. if shift >= 64 {
  6132. return ErrIntOverflowSeata
  6133. }
  6134. if iNdEx >= l {
  6135. return io.ErrUnexpectedEOF
  6136. }
  6137. b := dAtA[iNdEx]
  6138. iNdEx++
  6139. m.Timeout |= int32(b&0x7F) << shift
  6140. if b < 0x80 {
  6141. break
  6142. }
  6143. }
  6144. case 3:
  6145. if wireType != 2 {
  6146. return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
  6147. }
  6148. var stringLen uint64
  6149. for shift := uint(0); ; shift += 7 {
  6150. if shift >= 64 {
  6151. return ErrIntOverflowSeata
  6152. }
  6153. if iNdEx >= l {
  6154. return io.ErrUnexpectedEOF
  6155. }
  6156. b := dAtA[iNdEx]
  6157. iNdEx++
  6158. stringLen |= uint64(b&0x7F) << shift
  6159. if b < 0x80 {
  6160. break
  6161. }
  6162. }
  6163. intStringLen := int(stringLen)
  6164. if intStringLen < 0 {
  6165. return ErrInvalidLengthSeata
  6166. }
  6167. postIndex := iNdEx + intStringLen
  6168. if postIndex < 0 {
  6169. return ErrInvalidLengthSeata
  6170. }
  6171. if postIndex > l {
  6172. return io.ErrUnexpectedEOF
  6173. }
  6174. m.TransactionName = string(dAtA[iNdEx:postIndex])
  6175. iNdEx = postIndex
  6176. default:
  6177. iNdEx = preIndex
  6178. skippy, err := skipSeata(dAtA[iNdEx:])
  6179. if err != nil {
  6180. return err
  6181. }
  6182. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6183. return ErrInvalidLengthSeata
  6184. }
  6185. if (iNdEx + skippy) > l {
  6186. return io.ErrUnexpectedEOF
  6187. }
  6188. iNdEx += skippy
  6189. }
  6190. }
  6191. if iNdEx > l {
  6192. return io.ErrUnexpectedEOF
  6193. }
  6194. return nil
  6195. }
  6196. func (m *GlobalBeginResponse) Unmarshal(dAtA []byte) error {
  6197. l := len(dAtA)
  6198. iNdEx := 0
  6199. for iNdEx < l {
  6200. preIndex := iNdEx
  6201. var wire uint64
  6202. for shift := uint(0); ; shift += 7 {
  6203. if shift >= 64 {
  6204. return ErrIntOverflowSeata
  6205. }
  6206. if iNdEx >= l {
  6207. return io.ErrUnexpectedEOF
  6208. }
  6209. b := dAtA[iNdEx]
  6210. iNdEx++
  6211. wire |= uint64(b&0x7F) << shift
  6212. if b < 0x80 {
  6213. break
  6214. }
  6215. }
  6216. fieldNum := int32(wire >> 3)
  6217. wireType := int(wire & 0x7)
  6218. if wireType == 4 {
  6219. return fmt.Errorf("proto: GlobalBeginResponse: wiretype end group for non-group")
  6220. }
  6221. if fieldNum <= 0 {
  6222. return fmt.Errorf("proto: GlobalBeginResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6223. }
  6224. switch fieldNum {
  6225. case 1:
  6226. if wireType != 0 {
  6227. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  6228. }
  6229. m.ResultCode = 0
  6230. for shift := uint(0); ; shift += 7 {
  6231. if shift >= 64 {
  6232. return ErrIntOverflowSeata
  6233. }
  6234. if iNdEx >= l {
  6235. return io.ErrUnexpectedEOF
  6236. }
  6237. b := dAtA[iNdEx]
  6238. iNdEx++
  6239. m.ResultCode |= ResultCode(b&0x7F) << shift
  6240. if b < 0x80 {
  6241. break
  6242. }
  6243. }
  6244. case 2:
  6245. if wireType != 0 {
  6246. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  6247. }
  6248. m.ExceptionCode = 0
  6249. for shift := uint(0); ; shift += 7 {
  6250. if shift >= 64 {
  6251. return ErrIntOverflowSeata
  6252. }
  6253. if iNdEx >= l {
  6254. return io.ErrUnexpectedEOF
  6255. }
  6256. b := dAtA[iNdEx]
  6257. iNdEx++
  6258. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  6259. if b < 0x80 {
  6260. break
  6261. }
  6262. }
  6263. case 3:
  6264. if wireType != 2 {
  6265. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  6266. }
  6267. var stringLen uint64
  6268. for shift := uint(0); ; shift += 7 {
  6269. if shift >= 64 {
  6270. return ErrIntOverflowSeata
  6271. }
  6272. if iNdEx >= l {
  6273. return io.ErrUnexpectedEOF
  6274. }
  6275. b := dAtA[iNdEx]
  6276. iNdEx++
  6277. stringLen |= uint64(b&0x7F) << shift
  6278. if b < 0x80 {
  6279. break
  6280. }
  6281. }
  6282. intStringLen := int(stringLen)
  6283. if intStringLen < 0 {
  6284. return ErrInvalidLengthSeata
  6285. }
  6286. postIndex := iNdEx + intStringLen
  6287. if postIndex < 0 {
  6288. return ErrInvalidLengthSeata
  6289. }
  6290. if postIndex > l {
  6291. return io.ErrUnexpectedEOF
  6292. }
  6293. m.Message = string(dAtA[iNdEx:postIndex])
  6294. iNdEx = postIndex
  6295. case 4:
  6296. if wireType != 2 {
  6297. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  6298. }
  6299. var stringLen uint64
  6300. for shift := uint(0); ; shift += 7 {
  6301. if shift >= 64 {
  6302. return ErrIntOverflowSeata
  6303. }
  6304. if iNdEx >= l {
  6305. return io.ErrUnexpectedEOF
  6306. }
  6307. b := dAtA[iNdEx]
  6308. iNdEx++
  6309. stringLen |= uint64(b&0x7F) << shift
  6310. if b < 0x80 {
  6311. break
  6312. }
  6313. }
  6314. intStringLen := int(stringLen)
  6315. if intStringLen < 0 {
  6316. return ErrInvalidLengthSeata
  6317. }
  6318. postIndex := iNdEx + intStringLen
  6319. if postIndex < 0 {
  6320. return ErrInvalidLengthSeata
  6321. }
  6322. if postIndex > l {
  6323. return io.ErrUnexpectedEOF
  6324. }
  6325. m.XID = string(dAtA[iNdEx:postIndex])
  6326. iNdEx = postIndex
  6327. default:
  6328. iNdEx = preIndex
  6329. skippy, err := skipSeata(dAtA[iNdEx:])
  6330. if err != nil {
  6331. return err
  6332. }
  6333. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6334. return ErrInvalidLengthSeata
  6335. }
  6336. if (iNdEx + skippy) > l {
  6337. return io.ErrUnexpectedEOF
  6338. }
  6339. iNdEx += skippy
  6340. }
  6341. }
  6342. if iNdEx > l {
  6343. return io.ErrUnexpectedEOF
  6344. }
  6345. return nil
  6346. }
  6347. func (m *BranchRegisterRequest) Unmarshal(dAtA []byte) error {
  6348. l := len(dAtA)
  6349. iNdEx := 0
  6350. for iNdEx < l {
  6351. preIndex := iNdEx
  6352. var wire uint64
  6353. for shift := uint(0); ; shift += 7 {
  6354. if shift >= 64 {
  6355. return ErrIntOverflowSeata
  6356. }
  6357. if iNdEx >= l {
  6358. return io.ErrUnexpectedEOF
  6359. }
  6360. b := dAtA[iNdEx]
  6361. iNdEx++
  6362. wire |= uint64(b&0x7F) << shift
  6363. if b < 0x80 {
  6364. break
  6365. }
  6366. }
  6367. fieldNum := int32(wire >> 3)
  6368. wireType := int(wire & 0x7)
  6369. if wireType == 4 {
  6370. return fmt.Errorf("proto: BranchRegisterRequest: wiretype end group for non-group")
  6371. }
  6372. if fieldNum <= 0 {
  6373. return fmt.Errorf("proto: BranchRegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6374. }
  6375. switch fieldNum {
  6376. case 1:
  6377. if wireType != 2 {
  6378. return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
  6379. }
  6380. var stringLen uint64
  6381. for shift := uint(0); ; shift += 7 {
  6382. if shift >= 64 {
  6383. return ErrIntOverflowSeata
  6384. }
  6385. if iNdEx >= l {
  6386. return io.ErrUnexpectedEOF
  6387. }
  6388. b := dAtA[iNdEx]
  6389. iNdEx++
  6390. stringLen |= uint64(b&0x7F) << shift
  6391. if b < 0x80 {
  6392. break
  6393. }
  6394. }
  6395. intStringLen := int(stringLen)
  6396. if intStringLen < 0 {
  6397. return ErrInvalidLengthSeata
  6398. }
  6399. postIndex := iNdEx + intStringLen
  6400. if postIndex < 0 {
  6401. return ErrInvalidLengthSeata
  6402. }
  6403. if postIndex > l {
  6404. return io.ErrUnexpectedEOF
  6405. }
  6406. m.Addressing = string(dAtA[iNdEx:postIndex])
  6407. iNdEx = postIndex
  6408. case 2:
  6409. if wireType != 2 {
  6410. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  6411. }
  6412. var stringLen uint64
  6413. for shift := uint(0); ; shift += 7 {
  6414. if shift >= 64 {
  6415. return ErrIntOverflowSeata
  6416. }
  6417. if iNdEx >= l {
  6418. return io.ErrUnexpectedEOF
  6419. }
  6420. b := dAtA[iNdEx]
  6421. iNdEx++
  6422. stringLen |= uint64(b&0x7F) << shift
  6423. if b < 0x80 {
  6424. break
  6425. }
  6426. }
  6427. intStringLen := int(stringLen)
  6428. if intStringLen < 0 {
  6429. return ErrInvalidLengthSeata
  6430. }
  6431. postIndex := iNdEx + intStringLen
  6432. if postIndex < 0 {
  6433. return ErrInvalidLengthSeata
  6434. }
  6435. if postIndex > l {
  6436. return io.ErrUnexpectedEOF
  6437. }
  6438. m.XID = string(dAtA[iNdEx:postIndex])
  6439. iNdEx = postIndex
  6440. case 3:
  6441. if wireType != 2 {
  6442. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  6443. }
  6444. var stringLen uint64
  6445. for shift := uint(0); ; shift += 7 {
  6446. if shift >= 64 {
  6447. return ErrIntOverflowSeata
  6448. }
  6449. if iNdEx >= l {
  6450. return io.ErrUnexpectedEOF
  6451. }
  6452. b := dAtA[iNdEx]
  6453. iNdEx++
  6454. stringLen |= uint64(b&0x7F) << shift
  6455. if b < 0x80 {
  6456. break
  6457. }
  6458. }
  6459. intStringLen := int(stringLen)
  6460. if intStringLen < 0 {
  6461. return ErrInvalidLengthSeata
  6462. }
  6463. postIndex := iNdEx + intStringLen
  6464. if postIndex < 0 {
  6465. return ErrInvalidLengthSeata
  6466. }
  6467. if postIndex > l {
  6468. return io.ErrUnexpectedEOF
  6469. }
  6470. m.ResourceID = string(dAtA[iNdEx:postIndex])
  6471. iNdEx = postIndex
  6472. case 4:
  6473. if wireType != 2 {
  6474. return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
  6475. }
  6476. var stringLen uint64
  6477. for shift := uint(0); ; shift += 7 {
  6478. if shift >= 64 {
  6479. return ErrIntOverflowSeata
  6480. }
  6481. if iNdEx >= l {
  6482. return io.ErrUnexpectedEOF
  6483. }
  6484. b := dAtA[iNdEx]
  6485. iNdEx++
  6486. stringLen |= uint64(b&0x7F) << shift
  6487. if b < 0x80 {
  6488. break
  6489. }
  6490. }
  6491. intStringLen := int(stringLen)
  6492. if intStringLen < 0 {
  6493. return ErrInvalidLengthSeata
  6494. }
  6495. postIndex := iNdEx + intStringLen
  6496. if postIndex < 0 {
  6497. return ErrInvalidLengthSeata
  6498. }
  6499. if postIndex > l {
  6500. return io.ErrUnexpectedEOF
  6501. }
  6502. m.LockKey = string(dAtA[iNdEx:postIndex])
  6503. iNdEx = postIndex
  6504. case 5:
  6505. if wireType != 0 {
  6506. return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
  6507. }
  6508. m.BranchType = 0
  6509. for shift := uint(0); ; shift += 7 {
  6510. if shift >= 64 {
  6511. return ErrIntOverflowSeata
  6512. }
  6513. if iNdEx >= l {
  6514. return io.ErrUnexpectedEOF
  6515. }
  6516. b := dAtA[iNdEx]
  6517. iNdEx++
  6518. m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
  6519. if b < 0x80 {
  6520. break
  6521. }
  6522. }
  6523. case 6:
  6524. if wireType != 2 {
  6525. return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
  6526. }
  6527. var byteLen int
  6528. for shift := uint(0); ; shift += 7 {
  6529. if shift >= 64 {
  6530. return ErrIntOverflowSeata
  6531. }
  6532. if iNdEx >= l {
  6533. return io.ErrUnexpectedEOF
  6534. }
  6535. b := dAtA[iNdEx]
  6536. iNdEx++
  6537. byteLen |= int(b&0x7F) << shift
  6538. if b < 0x80 {
  6539. break
  6540. }
  6541. }
  6542. if byteLen < 0 {
  6543. return ErrInvalidLengthSeata
  6544. }
  6545. postIndex := iNdEx + byteLen
  6546. if postIndex < 0 {
  6547. return ErrInvalidLengthSeata
  6548. }
  6549. if postIndex > l {
  6550. return io.ErrUnexpectedEOF
  6551. }
  6552. m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
  6553. if m.ApplicationData == nil {
  6554. m.ApplicationData = []byte{}
  6555. }
  6556. iNdEx = postIndex
  6557. case 7:
  6558. if wireType != 0 {
  6559. return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
  6560. }
  6561. var v int
  6562. for shift := uint(0); ; shift += 7 {
  6563. if shift >= 64 {
  6564. return ErrIntOverflowSeata
  6565. }
  6566. if iNdEx >= l {
  6567. return io.ErrUnexpectedEOF
  6568. }
  6569. b := dAtA[iNdEx]
  6570. iNdEx++
  6571. v |= int(b&0x7F) << shift
  6572. if b < 0x80 {
  6573. break
  6574. }
  6575. }
  6576. m.AsyncCommit = bool(v != 0)
  6577. default:
  6578. iNdEx = preIndex
  6579. skippy, err := skipSeata(dAtA[iNdEx:])
  6580. if err != nil {
  6581. return err
  6582. }
  6583. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6584. return ErrInvalidLengthSeata
  6585. }
  6586. if (iNdEx + skippy) > l {
  6587. return io.ErrUnexpectedEOF
  6588. }
  6589. iNdEx += skippy
  6590. }
  6591. }
  6592. if iNdEx > l {
  6593. return io.ErrUnexpectedEOF
  6594. }
  6595. return nil
  6596. }
  6597. func (m *BranchRegisterResponse) Unmarshal(dAtA []byte) error {
  6598. l := len(dAtA)
  6599. iNdEx := 0
  6600. for iNdEx < l {
  6601. preIndex := iNdEx
  6602. var wire uint64
  6603. for shift := uint(0); ; shift += 7 {
  6604. if shift >= 64 {
  6605. return ErrIntOverflowSeata
  6606. }
  6607. if iNdEx >= l {
  6608. return io.ErrUnexpectedEOF
  6609. }
  6610. b := dAtA[iNdEx]
  6611. iNdEx++
  6612. wire |= uint64(b&0x7F) << shift
  6613. if b < 0x80 {
  6614. break
  6615. }
  6616. }
  6617. fieldNum := int32(wire >> 3)
  6618. wireType := int(wire & 0x7)
  6619. if wireType == 4 {
  6620. return fmt.Errorf("proto: BranchRegisterResponse: wiretype end group for non-group")
  6621. }
  6622. if fieldNum <= 0 {
  6623. return fmt.Errorf("proto: BranchRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6624. }
  6625. switch fieldNum {
  6626. case 1:
  6627. if wireType != 0 {
  6628. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  6629. }
  6630. m.ResultCode = 0
  6631. for shift := uint(0); ; shift += 7 {
  6632. if shift >= 64 {
  6633. return ErrIntOverflowSeata
  6634. }
  6635. if iNdEx >= l {
  6636. return io.ErrUnexpectedEOF
  6637. }
  6638. b := dAtA[iNdEx]
  6639. iNdEx++
  6640. m.ResultCode |= ResultCode(b&0x7F) << shift
  6641. if b < 0x80 {
  6642. break
  6643. }
  6644. }
  6645. case 2:
  6646. if wireType != 0 {
  6647. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  6648. }
  6649. m.ExceptionCode = 0
  6650. for shift := uint(0); ; shift += 7 {
  6651. if shift >= 64 {
  6652. return ErrIntOverflowSeata
  6653. }
  6654. if iNdEx >= l {
  6655. return io.ErrUnexpectedEOF
  6656. }
  6657. b := dAtA[iNdEx]
  6658. iNdEx++
  6659. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  6660. if b < 0x80 {
  6661. break
  6662. }
  6663. }
  6664. case 3:
  6665. if wireType != 2 {
  6666. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  6667. }
  6668. var stringLen uint64
  6669. for shift := uint(0); ; shift += 7 {
  6670. if shift >= 64 {
  6671. return ErrIntOverflowSeata
  6672. }
  6673. if iNdEx >= l {
  6674. return io.ErrUnexpectedEOF
  6675. }
  6676. b := dAtA[iNdEx]
  6677. iNdEx++
  6678. stringLen |= uint64(b&0x7F) << shift
  6679. if b < 0x80 {
  6680. break
  6681. }
  6682. }
  6683. intStringLen := int(stringLen)
  6684. if intStringLen < 0 {
  6685. return ErrInvalidLengthSeata
  6686. }
  6687. postIndex := iNdEx + intStringLen
  6688. if postIndex < 0 {
  6689. return ErrInvalidLengthSeata
  6690. }
  6691. if postIndex > l {
  6692. return io.ErrUnexpectedEOF
  6693. }
  6694. m.Message = string(dAtA[iNdEx:postIndex])
  6695. iNdEx = postIndex
  6696. case 4:
  6697. if wireType != 0 {
  6698. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  6699. }
  6700. m.BranchID = 0
  6701. for shift := uint(0); ; shift += 7 {
  6702. if shift >= 64 {
  6703. return ErrIntOverflowSeata
  6704. }
  6705. if iNdEx >= l {
  6706. return io.ErrUnexpectedEOF
  6707. }
  6708. b := dAtA[iNdEx]
  6709. iNdEx++
  6710. m.BranchID |= int64(b&0x7F) << shift
  6711. if b < 0x80 {
  6712. break
  6713. }
  6714. }
  6715. default:
  6716. iNdEx = preIndex
  6717. skippy, err := skipSeata(dAtA[iNdEx:])
  6718. if err != nil {
  6719. return err
  6720. }
  6721. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6722. return ErrInvalidLengthSeata
  6723. }
  6724. if (iNdEx + skippy) > l {
  6725. return io.ErrUnexpectedEOF
  6726. }
  6727. iNdEx += skippy
  6728. }
  6729. }
  6730. if iNdEx > l {
  6731. return io.ErrUnexpectedEOF
  6732. }
  6733. return nil
  6734. }
  6735. func (m *BranchReportRequest) Unmarshal(dAtA []byte) error {
  6736. l := len(dAtA)
  6737. iNdEx := 0
  6738. for iNdEx < l {
  6739. preIndex := iNdEx
  6740. var wire uint64
  6741. for shift := uint(0); ; shift += 7 {
  6742. if shift >= 64 {
  6743. return ErrIntOverflowSeata
  6744. }
  6745. if iNdEx >= l {
  6746. return io.ErrUnexpectedEOF
  6747. }
  6748. b := dAtA[iNdEx]
  6749. iNdEx++
  6750. wire |= uint64(b&0x7F) << shift
  6751. if b < 0x80 {
  6752. break
  6753. }
  6754. }
  6755. fieldNum := int32(wire >> 3)
  6756. wireType := int(wire & 0x7)
  6757. if wireType == 4 {
  6758. return fmt.Errorf("proto: BranchReportRequest: wiretype end group for non-group")
  6759. }
  6760. if fieldNum <= 0 {
  6761. return fmt.Errorf("proto: BranchReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6762. }
  6763. switch fieldNum {
  6764. case 1:
  6765. if wireType != 2 {
  6766. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  6767. }
  6768. var stringLen uint64
  6769. for shift := uint(0); ; shift += 7 {
  6770. if shift >= 64 {
  6771. return ErrIntOverflowSeata
  6772. }
  6773. if iNdEx >= l {
  6774. return io.ErrUnexpectedEOF
  6775. }
  6776. b := dAtA[iNdEx]
  6777. iNdEx++
  6778. stringLen |= uint64(b&0x7F) << shift
  6779. if b < 0x80 {
  6780. break
  6781. }
  6782. }
  6783. intStringLen := int(stringLen)
  6784. if intStringLen < 0 {
  6785. return ErrInvalidLengthSeata
  6786. }
  6787. postIndex := iNdEx + intStringLen
  6788. if postIndex < 0 {
  6789. return ErrInvalidLengthSeata
  6790. }
  6791. if postIndex > l {
  6792. return io.ErrUnexpectedEOF
  6793. }
  6794. m.XID = string(dAtA[iNdEx:postIndex])
  6795. iNdEx = postIndex
  6796. case 2:
  6797. if wireType != 0 {
  6798. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  6799. }
  6800. m.BranchID = 0
  6801. for shift := uint(0); ; shift += 7 {
  6802. if shift >= 64 {
  6803. return ErrIntOverflowSeata
  6804. }
  6805. if iNdEx >= l {
  6806. return io.ErrUnexpectedEOF
  6807. }
  6808. b := dAtA[iNdEx]
  6809. iNdEx++
  6810. m.BranchID |= int64(b&0x7F) << shift
  6811. if b < 0x80 {
  6812. break
  6813. }
  6814. }
  6815. case 3:
  6816. if wireType != 2 {
  6817. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  6818. }
  6819. var stringLen uint64
  6820. for shift := uint(0); ; shift += 7 {
  6821. if shift >= 64 {
  6822. return ErrIntOverflowSeata
  6823. }
  6824. if iNdEx >= l {
  6825. return io.ErrUnexpectedEOF
  6826. }
  6827. b := dAtA[iNdEx]
  6828. iNdEx++
  6829. stringLen |= uint64(b&0x7F) << shift
  6830. if b < 0x80 {
  6831. break
  6832. }
  6833. }
  6834. intStringLen := int(stringLen)
  6835. if intStringLen < 0 {
  6836. return ErrInvalidLengthSeata
  6837. }
  6838. postIndex := iNdEx + intStringLen
  6839. if postIndex < 0 {
  6840. return ErrInvalidLengthSeata
  6841. }
  6842. if postIndex > l {
  6843. return io.ErrUnexpectedEOF
  6844. }
  6845. m.ResourceID = string(dAtA[iNdEx:postIndex])
  6846. iNdEx = postIndex
  6847. case 4:
  6848. if wireType != 0 {
  6849. return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
  6850. }
  6851. m.BranchType = 0
  6852. for shift := uint(0); ; shift += 7 {
  6853. if shift >= 64 {
  6854. return ErrIntOverflowSeata
  6855. }
  6856. if iNdEx >= l {
  6857. return io.ErrUnexpectedEOF
  6858. }
  6859. b := dAtA[iNdEx]
  6860. iNdEx++
  6861. m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
  6862. if b < 0x80 {
  6863. break
  6864. }
  6865. }
  6866. case 5:
  6867. if wireType != 0 {
  6868. return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
  6869. }
  6870. m.BranchStatus = 0
  6871. for shift := uint(0); ; shift += 7 {
  6872. if shift >= 64 {
  6873. return ErrIntOverflowSeata
  6874. }
  6875. if iNdEx >= l {
  6876. return io.ErrUnexpectedEOF
  6877. }
  6878. b := dAtA[iNdEx]
  6879. iNdEx++
  6880. m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
  6881. if b < 0x80 {
  6882. break
  6883. }
  6884. }
  6885. case 6:
  6886. if wireType != 2 {
  6887. return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
  6888. }
  6889. var byteLen int
  6890. for shift := uint(0); ; shift += 7 {
  6891. if shift >= 64 {
  6892. return ErrIntOverflowSeata
  6893. }
  6894. if iNdEx >= l {
  6895. return io.ErrUnexpectedEOF
  6896. }
  6897. b := dAtA[iNdEx]
  6898. iNdEx++
  6899. byteLen |= int(b&0x7F) << shift
  6900. if b < 0x80 {
  6901. break
  6902. }
  6903. }
  6904. if byteLen < 0 {
  6905. return ErrInvalidLengthSeata
  6906. }
  6907. postIndex := iNdEx + byteLen
  6908. if postIndex < 0 {
  6909. return ErrInvalidLengthSeata
  6910. }
  6911. if postIndex > l {
  6912. return io.ErrUnexpectedEOF
  6913. }
  6914. m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
  6915. if m.ApplicationData == nil {
  6916. m.ApplicationData = []byte{}
  6917. }
  6918. iNdEx = postIndex
  6919. default:
  6920. iNdEx = preIndex
  6921. skippy, err := skipSeata(dAtA[iNdEx:])
  6922. if err != nil {
  6923. return err
  6924. }
  6925. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6926. return ErrInvalidLengthSeata
  6927. }
  6928. if (iNdEx + skippy) > l {
  6929. return io.ErrUnexpectedEOF
  6930. }
  6931. iNdEx += skippy
  6932. }
  6933. }
  6934. if iNdEx > l {
  6935. return io.ErrUnexpectedEOF
  6936. }
  6937. return nil
  6938. }
  6939. func (m *BranchReportResponse) Unmarshal(dAtA []byte) error {
  6940. l := len(dAtA)
  6941. iNdEx := 0
  6942. for iNdEx < l {
  6943. preIndex := iNdEx
  6944. var wire uint64
  6945. for shift := uint(0); ; shift += 7 {
  6946. if shift >= 64 {
  6947. return ErrIntOverflowSeata
  6948. }
  6949. if iNdEx >= l {
  6950. return io.ErrUnexpectedEOF
  6951. }
  6952. b := dAtA[iNdEx]
  6953. iNdEx++
  6954. wire |= uint64(b&0x7F) << shift
  6955. if b < 0x80 {
  6956. break
  6957. }
  6958. }
  6959. fieldNum := int32(wire >> 3)
  6960. wireType := int(wire & 0x7)
  6961. if wireType == 4 {
  6962. return fmt.Errorf("proto: BranchReportResponse: wiretype end group for non-group")
  6963. }
  6964. if fieldNum <= 0 {
  6965. return fmt.Errorf("proto: BranchReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6966. }
  6967. switch fieldNum {
  6968. case 1:
  6969. if wireType != 0 {
  6970. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  6971. }
  6972. m.ResultCode = 0
  6973. for shift := uint(0); ; shift += 7 {
  6974. if shift >= 64 {
  6975. return ErrIntOverflowSeata
  6976. }
  6977. if iNdEx >= l {
  6978. return io.ErrUnexpectedEOF
  6979. }
  6980. b := dAtA[iNdEx]
  6981. iNdEx++
  6982. m.ResultCode |= ResultCode(b&0x7F) << shift
  6983. if b < 0x80 {
  6984. break
  6985. }
  6986. }
  6987. case 2:
  6988. if wireType != 0 {
  6989. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  6990. }
  6991. m.ExceptionCode = 0
  6992. for shift := uint(0); ; shift += 7 {
  6993. if shift >= 64 {
  6994. return ErrIntOverflowSeata
  6995. }
  6996. if iNdEx >= l {
  6997. return io.ErrUnexpectedEOF
  6998. }
  6999. b := dAtA[iNdEx]
  7000. iNdEx++
  7001. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  7002. if b < 0x80 {
  7003. break
  7004. }
  7005. }
  7006. case 3:
  7007. if wireType != 2 {
  7008. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7009. }
  7010. var stringLen uint64
  7011. for shift := uint(0); ; shift += 7 {
  7012. if shift >= 64 {
  7013. return ErrIntOverflowSeata
  7014. }
  7015. if iNdEx >= l {
  7016. return io.ErrUnexpectedEOF
  7017. }
  7018. b := dAtA[iNdEx]
  7019. iNdEx++
  7020. stringLen |= uint64(b&0x7F) << shift
  7021. if b < 0x80 {
  7022. break
  7023. }
  7024. }
  7025. intStringLen := int(stringLen)
  7026. if intStringLen < 0 {
  7027. return ErrInvalidLengthSeata
  7028. }
  7029. postIndex := iNdEx + intStringLen
  7030. if postIndex < 0 {
  7031. return ErrInvalidLengthSeata
  7032. }
  7033. if postIndex > l {
  7034. return io.ErrUnexpectedEOF
  7035. }
  7036. m.Message = string(dAtA[iNdEx:postIndex])
  7037. iNdEx = postIndex
  7038. default:
  7039. iNdEx = preIndex
  7040. skippy, err := skipSeata(dAtA[iNdEx:])
  7041. if err != nil {
  7042. return err
  7043. }
  7044. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7045. return ErrInvalidLengthSeata
  7046. }
  7047. if (iNdEx + skippy) > l {
  7048. return io.ErrUnexpectedEOF
  7049. }
  7050. iNdEx += skippy
  7051. }
  7052. }
  7053. if iNdEx > l {
  7054. return io.ErrUnexpectedEOF
  7055. }
  7056. return nil
  7057. }
  7058. func (m *GlobalLockQueryRequest) Unmarshal(dAtA []byte) error {
  7059. l := len(dAtA)
  7060. iNdEx := 0
  7061. for iNdEx < l {
  7062. preIndex := iNdEx
  7063. var wire uint64
  7064. for shift := uint(0); ; shift += 7 {
  7065. if shift >= 64 {
  7066. return ErrIntOverflowSeata
  7067. }
  7068. if iNdEx >= l {
  7069. return io.ErrUnexpectedEOF
  7070. }
  7071. b := dAtA[iNdEx]
  7072. iNdEx++
  7073. wire |= uint64(b&0x7F) << shift
  7074. if b < 0x80 {
  7075. break
  7076. }
  7077. }
  7078. fieldNum := int32(wire >> 3)
  7079. wireType := int(wire & 0x7)
  7080. if wireType == 4 {
  7081. return fmt.Errorf("proto: GlobalLockQueryRequest: wiretype end group for non-group")
  7082. }
  7083. if fieldNum <= 0 {
  7084. return fmt.Errorf("proto: GlobalLockQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7085. }
  7086. switch fieldNum {
  7087. case 1:
  7088. if wireType != 2 {
  7089. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  7090. }
  7091. var stringLen uint64
  7092. for shift := uint(0); ; shift += 7 {
  7093. if shift >= 64 {
  7094. return ErrIntOverflowSeata
  7095. }
  7096. if iNdEx >= l {
  7097. return io.ErrUnexpectedEOF
  7098. }
  7099. b := dAtA[iNdEx]
  7100. iNdEx++
  7101. stringLen |= uint64(b&0x7F) << shift
  7102. if b < 0x80 {
  7103. break
  7104. }
  7105. }
  7106. intStringLen := int(stringLen)
  7107. if intStringLen < 0 {
  7108. return ErrInvalidLengthSeata
  7109. }
  7110. postIndex := iNdEx + intStringLen
  7111. if postIndex < 0 {
  7112. return ErrInvalidLengthSeata
  7113. }
  7114. if postIndex > l {
  7115. return io.ErrUnexpectedEOF
  7116. }
  7117. m.XID = string(dAtA[iNdEx:postIndex])
  7118. iNdEx = postIndex
  7119. case 2:
  7120. if wireType != 2 {
  7121. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  7122. }
  7123. var stringLen uint64
  7124. for shift := uint(0); ; shift += 7 {
  7125. if shift >= 64 {
  7126. return ErrIntOverflowSeata
  7127. }
  7128. if iNdEx >= l {
  7129. return io.ErrUnexpectedEOF
  7130. }
  7131. b := dAtA[iNdEx]
  7132. iNdEx++
  7133. stringLen |= uint64(b&0x7F) << shift
  7134. if b < 0x80 {
  7135. break
  7136. }
  7137. }
  7138. intStringLen := int(stringLen)
  7139. if intStringLen < 0 {
  7140. return ErrInvalidLengthSeata
  7141. }
  7142. postIndex := iNdEx + intStringLen
  7143. if postIndex < 0 {
  7144. return ErrInvalidLengthSeata
  7145. }
  7146. if postIndex > l {
  7147. return io.ErrUnexpectedEOF
  7148. }
  7149. m.ResourceID = string(dAtA[iNdEx:postIndex])
  7150. iNdEx = postIndex
  7151. case 3:
  7152. if wireType != 2 {
  7153. return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
  7154. }
  7155. var stringLen uint64
  7156. for shift := uint(0); ; shift += 7 {
  7157. if shift >= 64 {
  7158. return ErrIntOverflowSeata
  7159. }
  7160. if iNdEx >= l {
  7161. return io.ErrUnexpectedEOF
  7162. }
  7163. b := dAtA[iNdEx]
  7164. iNdEx++
  7165. stringLen |= uint64(b&0x7F) << shift
  7166. if b < 0x80 {
  7167. break
  7168. }
  7169. }
  7170. intStringLen := int(stringLen)
  7171. if intStringLen < 0 {
  7172. return ErrInvalidLengthSeata
  7173. }
  7174. postIndex := iNdEx + intStringLen
  7175. if postIndex < 0 {
  7176. return ErrInvalidLengthSeata
  7177. }
  7178. if postIndex > l {
  7179. return io.ErrUnexpectedEOF
  7180. }
  7181. m.LockKey = string(dAtA[iNdEx:postIndex])
  7182. iNdEx = postIndex
  7183. case 4:
  7184. if wireType != 0 {
  7185. return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
  7186. }
  7187. m.BranchType = 0
  7188. for shift := uint(0); ; shift += 7 {
  7189. if shift >= 64 {
  7190. return ErrIntOverflowSeata
  7191. }
  7192. if iNdEx >= l {
  7193. return io.ErrUnexpectedEOF
  7194. }
  7195. b := dAtA[iNdEx]
  7196. iNdEx++
  7197. m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
  7198. if b < 0x80 {
  7199. break
  7200. }
  7201. }
  7202. default:
  7203. iNdEx = preIndex
  7204. skippy, err := skipSeata(dAtA[iNdEx:])
  7205. if err != nil {
  7206. return err
  7207. }
  7208. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7209. return ErrInvalidLengthSeata
  7210. }
  7211. if (iNdEx + skippy) > l {
  7212. return io.ErrUnexpectedEOF
  7213. }
  7214. iNdEx += skippy
  7215. }
  7216. }
  7217. if iNdEx > l {
  7218. return io.ErrUnexpectedEOF
  7219. }
  7220. return nil
  7221. }
  7222. func (m *GlobalLockQueryResponse) Unmarshal(dAtA []byte) error {
  7223. l := len(dAtA)
  7224. iNdEx := 0
  7225. for iNdEx < l {
  7226. preIndex := iNdEx
  7227. var wire uint64
  7228. for shift := uint(0); ; shift += 7 {
  7229. if shift >= 64 {
  7230. return ErrIntOverflowSeata
  7231. }
  7232. if iNdEx >= l {
  7233. return io.ErrUnexpectedEOF
  7234. }
  7235. b := dAtA[iNdEx]
  7236. iNdEx++
  7237. wire |= uint64(b&0x7F) << shift
  7238. if b < 0x80 {
  7239. break
  7240. }
  7241. }
  7242. fieldNum := int32(wire >> 3)
  7243. wireType := int(wire & 0x7)
  7244. if wireType == 4 {
  7245. return fmt.Errorf("proto: GlobalLockQueryResponse: wiretype end group for non-group")
  7246. }
  7247. if fieldNum <= 0 {
  7248. return fmt.Errorf("proto: GlobalLockQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7249. }
  7250. switch fieldNum {
  7251. case 1:
  7252. if wireType != 0 {
  7253. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  7254. }
  7255. m.ResultCode = 0
  7256. for shift := uint(0); ; shift += 7 {
  7257. if shift >= 64 {
  7258. return ErrIntOverflowSeata
  7259. }
  7260. if iNdEx >= l {
  7261. return io.ErrUnexpectedEOF
  7262. }
  7263. b := dAtA[iNdEx]
  7264. iNdEx++
  7265. m.ResultCode |= ResultCode(b&0x7F) << shift
  7266. if b < 0x80 {
  7267. break
  7268. }
  7269. }
  7270. case 2:
  7271. if wireType != 0 {
  7272. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  7273. }
  7274. m.ExceptionCode = 0
  7275. for shift := uint(0); ; shift += 7 {
  7276. if shift >= 64 {
  7277. return ErrIntOverflowSeata
  7278. }
  7279. if iNdEx >= l {
  7280. return io.ErrUnexpectedEOF
  7281. }
  7282. b := dAtA[iNdEx]
  7283. iNdEx++
  7284. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  7285. if b < 0x80 {
  7286. break
  7287. }
  7288. }
  7289. case 3:
  7290. if wireType != 2 {
  7291. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7292. }
  7293. var stringLen uint64
  7294. for shift := uint(0); ; shift += 7 {
  7295. if shift >= 64 {
  7296. return ErrIntOverflowSeata
  7297. }
  7298. if iNdEx >= l {
  7299. return io.ErrUnexpectedEOF
  7300. }
  7301. b := dAtA[iNdEx]
  7302. iNdEx++
  7303. stringLen |= uint64(b&0x7F) << shift
  7304. if b < 0x80 {
  7305. break
  7306. }
  7307. }
  7308. intStringLen := int(stringLen)
  7309. if intStringLen < 0 {
  7310. return ErrInvalidLengthSeata
  7311. }
  7312. postIndex := iNdEx + intStringLen
  7313. if postIndex < 0 {
  7314. return ErrInvalidLengthSeata
  7315. }
  7316. if postIndex > l {
  7317. return io.ErrUnexpectedEOF
  7318. }
  7319. m.Message = string(dAtA[iNdEx:postIndex])
  7320. iNdEx = postIndex
  7321. case 4:
  7322. if wireType != 0 {
  7323. return fmt.Errorf("proto: wrong wireType = %d for field Lockable", wireType)
  7324. }
  7325. var v int
  7326. for shift := uint(0); ; shift += 7 {
  7327. if shift >= 64 {
  7328. return ErrIntOverflowSeata
  7329. }
  7330. if iNdEx >= l {
  7331. return io.ErrUnexpectedEOF
  7332. }
  7333. b := dAtA[iNdEx]
  7334. iNdEx++
  7335. v |= int(b&0x7F) << shift
  7336. if b < 0x80 {
  7337. break
  7338. }
  7339. }
  7340. m.Lockable = bool(v != 0)
  7341. default:
  7342. iNdEx = preIndex
  7343. skippy, err := skipSeata(dAtA[iNdEx:])
  7344. if err != nil {
  7345. return err
  7346. }
  7347. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7348. return ErrInvalidLengthSeata
  7349. }
  7350. if (iNdEx + skippy) > l {
  7351. return io.ErrUnexpectedEOF
  7352. }
  7353. iNdEx += skippy
  7354. }
  7355. }
  7356. if iNdEx > l {
  7357. return io.ErrUnexpectedEOF
  7358. }
  7359. return nil
  7360. }
  7361. func (m *GlobalStatusRequest) Unmarshal(dAtA []byte) error {
  7362. l := len(dAtA)
  7363. iNdEx := 0
  7364. for iNdEx < l {
  7365. preIndex := iNdEx
  7366. var wire uint64
  7367. for shift := uint(0); ; shift += 7 {
  7368. if shift >= 64 {
  7369. return ErrIntOverflowSeata
  7370. }
  7371. if iNdEx >= l {
  7372. return io.ErrUnexpectedEOF
  7373. }
  7374. b := dAtA[iNdEx]
  7375. iNdEx++
  7376. wire |= uint64(b&0x7F) << shift
  7377. if b < 0x80 {
  7378. break
  7379. }
  7380. }
  7381. fieldNum := int32(wire >> 3)
  7382. wireType := int(wire & 0x7)
  7383. if wireType == 4 {
  7384. return fmt.Errorf("proto: GlobalStatusRequest: wiretype end group for non-group")
  7385. }
  7386. if fieldNum <= 0 {
  7387. return fmt.Errorf("proto: GlobalStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7388. }
  7389. switch fieldNum {
  7390. case 1:
  7391. if wireType != 2 {
  7392. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  7393. }
  7394. var stringLen uint64
  7395. for shift := uint(0); ; shift += 7 {
  7396. if shift >= 64 {
  7397. return ErrIntOverflowSeata
  7398. }
  7399. if iNdEx >= l {
  7400. return io.ErrUnexpectedEOF
  7401. }
  7402. b := dAtA[iNdEx]
  7403. iNdEx++
  7404. stringLen |= uint64(b&0x7F) << shift
  7405. if b < 0x80 {
  7406. break
  7407. }
  7408. }
  7409. intStringLen := int(stringLen)
  7410. if intStringLen < 0 {
  7411. return ErrInvalidLengthSeata
  7412. }
  7413. postIndex := iNdEx + intStringLen
  7414. if postIndex < 0 {
  7415. return ErrInvalidLengthSeata
  7416. }
  7417. if postIndex > l {
  7418. return io.ErrUnexpectedEOF
  7419. }
  7420. m.XID = string(dAtA[iNdEx:postIndex])
  7421. iNdEx = postIndex
  7422. default:
  7423. iNdEx = preIndex
  7424. skippy, err := skipSeata(dAtA[iNdEx:])
  7425. if err != nil {
  7426. return err
  7427. }
  7428. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7429. return ErrInvalidLengthSeata
  7430. }
  7431. if (iNdEx + skippy) > l {
  7432. return io.ErrUnexpectedEOF
  7433. }
  7434. iNdEx += skippy
  7435. }
  7436. }
  7437. if iNdEx > l {
  7438. return io.ErrUnexpectedEOF
  7439. }
  7440. return nil
  7441. }
  7442. func (m *GlobalStatusResponse) Unmarshal(dAtA []byte) error {
  7443. l := len(dAtA)
  7444. iNdEx := 0
  7445. for iNdEx < l {
  7446. preIndex := iNdEx
  7447. var wire uint64
  7448. for shift := uint(0); ; shift += 7 {
  7449. if shift >= 64 {
  7450. return ErrIntOverflowSeata
  7451. }
  7452. if iNdEx >= l {
  7453. return io.ErrUnexpectedEOF
  7454. }
  7455. b := dAtA[iNdEx]
  7456. iNdEx++
  7457. wire |= uint64(b&0x7F) << shift
  7458. if b < 0x80 {
  7459. break
  7460. }
  7461. }
  7462. fieldNum := int32(wire >> 3)
  7463. wireType := int(wire & 0x7)
  7464. if wireType == 4 {
  7465. return fmt.Errorf("proto: GlobalStatusResponse: wiretype end group for non-group")
  7466. }
  7467. if fieldNum <= 0 {
  7468. return fmt.Errorf("proto: GlobalStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7469. }
  7470. switch fieldNum {
  7471. case 1:
  7472. if wireType != 0 {
  7473. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  7474. }
  7475. m.ResultCode = 0
  7476. for shift := uint(0); ; shift += 7 {
  7477. if shift >= 64 {
  7478. return ErrIntOverflowSeata
  7479. }
  7480. if iNdEx >= l {
  7481. return io.ErrUnexpectedEOF
  7482. }
  7483. b := dAtA[iNdEx]
  7484. iNdEx++
  7485. m.ResultCode |= ResultCode(b&0x7F) << shift
  7486. if b < 0x80 {
  7487. break
  7488. }
  7489. }
  7490. case 2:
  7491. if wireType != 0 {
  7492. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  7493. }
  7494. m.ExceptionCode = 0
  7495. for shift := uint(0); ; shift += 7 {
  7496. if shift >= 64 {
  7497. return ErrIntOverflowSeata
  7498. }
  7499. if iNdEx >= l {
  7500. return io.ErrUnexpectedEOF
  7501. }
  7502. b := dAtA[iNdEx]
  7503. iNdEx++
  7504. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  7505. if b < 0x80 {
  7506. break
  7507. }
  7508. }
  7509. case 3:
  7510. if wireType != 2 {
  7511. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7512. }
  7513. var stringLen uint64
  7514. for shift := uint(0); ; shift += 7 {
  7515. if shift >= 64 {
  7516. return ErrIntOverflowSeata
  7517. }
  7518. if iNdEx >= l {
  7519. return io.ErrUnexpectedEOF
  7520. }
  7521. b := dAtA[iNdEx]
  7522. iNdEx++
  7523. stringLen |= uint64(b&0x7F) << shift
  7524. if b < 0x80 {
  7525. break
  7526. }
  7527. }
  7528. intStringLen := int(stringLen)
  7529. if intStringLen < 0 {
  7530. return ErrInvalidLengthSeata
  7531. }
  7532. postIndex := iNdEx + intStringLen
  7533. if postIndex < 0 {
  7534. return ErrInvalidLengthSeata
  7535. }
  7536. if postIndex > l {
  7537. return io.ErrUnexpectedEOF
  7538. }
  7539. m.Message = string(dAtA[iNdEx:postIndex])
  7540. iNdEx = postIndex
  7541. case 4:
  7542. if wireType != 0 {
  7543. return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
  7544. }
  7545. m.GlobalStatus = 0
  7546. for shift := uint(0); ; shift += 7 {
  7547. if shift >= 64 {
  7548. return ErrIntOverflowSeata
  7549. }
  7550. if iNdEx >= l {
  7551. return io.ErrUnexpectedEOF
  7552. }
  7553. b := dAtA[iNdEx]
  7554. iNdEx++
  7555. m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
  7556. if b < 0x80 {
  7557. break
  7558. }
  7559. }
  7560. default:
  7561. iNdEx = preIndex
  7562. skippy, err := skipSeata(dAtA[iNdEx:])
  7563. if err != nil {
  7564. return err
  7565. }
  7566. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7567. return ErrInvalidLengthSeata
  7568. }
  7569. if (iNdEx + skippy) > l {
  7570. return io.ErrUnexpectedEOF
  7571. }
  7572. iNdEx += skippy
  7573. }
  7574. }
  7575. if iNdEx > l {
  7576. return io.ErrUnexpectedEOF
  7577. }
  7578. return nil
  7579. }
  7580. func (m *GlobalCommitRequest) Unmarshal(dAtA []byte) error {
  7581. l := len(dAtA)
  7582. iNdEx := 0
  7583. for iNdEx < l {
  7584. preIndex := iNdEx
  7585. var wire uint64
  7586. for shift := uint(0); ; shift += 7 {
  7587. if shift >= 64 {
  7588. return ErrIntOverflowSeata
  7589. }
  7590. if iNdEx >= l {
  7591. return io.ErrUnexpectedEOF
  7592. }
  7593. b := dAtA[iNdEx]
  7594. iNdEx++
  7595. wire |= uint64(b&0x7F) << shift
  7596. if b < 0x80 {
  7597. break
  7598. }
  7599. }
  7600. fieldNum := int32(wire >> 3)
  7601. wireType := int(wire & 0x7)
  7602. if wireType == 4 {
  7603. return fmt.Errorf("proto: GlobalCommitRequest: wiretype end group for non-group")
  7604. }
  7605. if fieldNum <= 0 {
  7606. return fmt.Errorf("proto: GlobalCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7607. }
  7608. switch fieldNum {
  7609. case 1:
  7610. if wireType != 2 {
  7611. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  7612. }
  7613. var stringLen uint64
  7614. for shift := uint(0); ; shift += 7 {
  7615. if shift >= 64 {
  7616. return ErrIntOverflowSeata
  7617. }
  7618. if iNdEx >= l {
  7619. return io.ErrUnexpectedEOF
  7620. }
  7621. b := dAtA[iNdEx]
  7622. iNdEx++
  7623. stringLen |= uint64(b&0x7F) << shift
  7624. if b < 0x80 {
  7625. break
  7626. }
  7627. }
  7628. intStringLen := int(stringLen)
  7629. if intStringLen < 0 {
  7630. return ErrInvalidLengthSeata
  7631. }
  7632. postIndex := iNdEx + intStringLen
  7633. if postIndex < 0 {
  7634. return ErrInvalidLengthSeata
  7635. }
  7636. if postIndex > l {
  7637. return io.ErrUnexpectedEOF
  7638. }
  7639. m.XID = string(dAtA[iNdEx:postIndex])
  7640. iNdEx = postIndex
  7641. default:
  7642. iNdEx = preIndex
  7643. skippy, err := skipSeata(dAtA[iNdEx:])
  7644. if err != nil {
  7645. return err
  7646. }
  7647. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7648. return ErrInvalidLengthSeata
  7649. }
  7650. if (iNdEx + skippy) > l {
  7651. return io.ErrUnexpectedEOF
  7652. }
  7653. iNdEx += skippy
  7654. }
  7655. }
  7656. if iNdEx > l {
  7657. return io.ErrUnexpectedEOF
  7658. }
  7659. return nil
  7660. }
  7661. func (m *GlobalCommitResponse) Unmarshal(dAtA []byte) error {
  7662. l := len(dAtA)
  7663. iNdEx := 0
  7664. for iNdEx < l {
  7665. preIndex := iNdEx
  7666. var wire uint64
  7667. for shift := uint(0); ; shift += 7 {
  7668. if shift >= 64 {
  7669. return ErrIntOverflowSeata
  7670. }
  7671. if iNdEx >= l {
  7672. return io.ErrUnexpectedEOF
  7673. }
  7674. b := dAtA[iNdEx]
  7675. iNdEx++
  7676. wire |= uint64(b&0x7F) << shift
  7677. if b < 0x80 {
  7678. break
  7679. }
  7680. }
  7681. fieldNum := int32(wire >> 3)
  7682. wireType := int(wire & 0x7)
  7683. if wireType == 4 {
  7684. return fmt.Errorf("proto: GlobalCommitResponse: wiretype end group for non-group")
  7685. }
  7686. if fieldNum <= 0 {
  7687. return fmt.Errorf("proto: GlobalCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7688. }
  7689. switch fieldNum {
  7690. case 1:
  7691. if wireType != 0 {
  7692. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  7693. }
  7694. m.ResultCode = 0
  7695. for shift := uint(0); ; shift += 7 {
  7696. if shift >= 64 {
  7697. return ErrIntOverflowSeata
  7698. }
  7699. if iNdEx >= l {
  7700. return io.ErrUnexpectedEOF
  7701. }
  7702. b := dAtA[iNdEx]
  7703. iNdEx++
  7704. m.ResultCode |= ResultCode(b&0x7F) << shift
  7705. if b < 0x80 {
  7706. break
  7707. }
  7708. }
  7709. case 2:
  7710. if wireType != 0 {
  7711. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  7712. }
  7713. m.ExceptionCode = 0
  7714. for shift := uint(0); ; shift += 7 {
  7715. if shift >= 64 {
  7716. return ErrIntOverflowSeata
  7717. }
  7718. if iNdEx >= l {
  7719. return io.ErrUnexpectedEOF
  7720. }
  7721. b := dAtA[iNdEx]
  7722. iNdEx++
  7723. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  7724. if b < 0x80 {
  7725. break
  7726. }
  7727. }
  7728. case 3:
  7729. if wireType != 2 {
  7730. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7731. }
  7732. var stringLen uint64
  7733. for shift := uint(0); ; shift += 7 {
  7734. if shift >= 64 {
  7735. return ErrIntOverflowSeata
  7736. }
  7737. if iNdEx >= l {
  7738. return io.ErrUnexpectedEOF
  7739. }
  7740. b := dAtA[iNdEx]
  7741. iNdEx++
  7742. stringLen |= uint64(b&0x7F) << shift
  7743. if b < 0x80 {
  7744. break
  7745. }
  7746. }
  7747. intStringLen := int(stringLen)
  7748. if intStringLen < 0 {
  7749. return ErrInvalidLengthSeata
  7750. }
  7751. postIndex := iNdEx + intStringLen
  7752. if postIndex < 0 {
  7753. return ErrInvalidLengthSeata
  7754. }
  7755. if postIndex > l {
  7756. return io.ErrUnexpectedEOF
  7757. }
  7758. m.Message = string(dAtA[iNdEx:postIndex])
  7759. iNdEx = postIndex
  7760. case 4:
  7761. if wireType != 0 {
  7762. return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
  7763. }
  7764. m.GlobalStatus = 0
  7765. for shift := uint(0); ; shift += 7 {
  7766. if shift >= 64 {
  7767. return ErrIntOverflowSeata
  7768. }
  7769. if iNdEx >= l {
  7770. return io.ErrUnexpectedEOF
  7771. }
  7772. b := dAtA[iNdEx]
  7773. iNdEx++
  7774. m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
  7775. if b < 0x80 {
  7776. break
  7777. }
  7778. }
  7779. default:
  7780. iNdEx = preIndex
  7781. skippy, err := skipSeata(dAtA[iNdEx:])
  7782. if err != nil {
  7783. return err
  7784. }
  7785. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7786. return ErrInvalidLengthSeata
  7787. }
  7788. if (iNdEx + skippy) > l {
  7789. return io.ErrUnexpectedEOF
  7790. }
  7791. iNdEx += skippy
  7792. }
  7793. }
  7794. if iNdEx > l {
  7795. return io.ErrUnexpectedEOF
  7796. }
  7797. return nil
  7798. }
  7799. func (m *GlobalRollbackRequest) Unmarshal(dAtA []byte) error {
  7800. l := len(dAtA)
  7801. iNdEx := 0
  7802. for iNdEx < l {
  7803. preIndex := iNdEx
  7804. var wire uint64
  7805. for shift := uint(0); ; shift += 7 {
  7806. if shift >= 64 {
  7807. return ErrIntOverflowSeata
  7808. }
  7809. if iNdEx >= l {
  7810. return io.ErrUnexpectedEOF
  7811. }
  7812. b := dAtA[iNdEx]
  7813. iNdEx++
  7814. wire |= uint64(b&0x7F) << shift
  7815. if b < 0x80 {
  7816. break
  7817. }
  7818. }
  7819. fieldNum := int32(wire >> 3)
  7820. wireType := int(wire & 0x7)
  7821. if wireType == 4 {
  7822. return fmt.Errorf("proto: GlobalRollbackRequest: wiretype end group for non-group")
  7823. }
  7824. if fieldNum <= 0 {
  7825. return fmt.Errorf("proto: GlobalRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7826. }
  7827. switch fieldNum {
  7828. case 1:
  7829. if wireType != 2 {
  7830. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  7831. }
  7832. var stringLen uint64
  7833. for shift := uint(0); ; shift += 7 {
  7834. if shift >= 64 {
  7835. return ErrIntOverflowSeata
  7836. }
  7837. if iNdEx >= l {
  7838. return io.ErrUnexpectedEOF
  7839. }
  7840. b := dAtA[iNdEx]
  7841. iNdEx++
  7842. stringLen |= uint64(b&0x7F) << shift
  7843. if b < 0x80 {
  7844. break
  7845. }
  7846. }
  7847. intStringLen := int(stringLen)
  7848. if intStringLen < 0 {
  7849. return ErrInvalidLengthSeata
  7850. }
  7851. postIndex := iNdEx + intStringLen
  7852. if postIndex < 0 {
  7853. return ErrInvalidLengthSeata
  7854. }
  7855. if postIndex > l {
  7856. return io.ErrUnexpectedEOF
  7857. }
  7858. m.XID = string(dAtA[iNdEx:postIndex])
  7859. iNdEx = postIndex
  7860. default:
  7861. iNdEx = preIndex
  7862. skippy, err := skipSeata(dAtA[iNdEx:])
  7863. if err != nil {
  7864. return err
  7865. }
  7866. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7867. return ErrInvalidLengthSeata
  7868. }
  7869. if (iNdEx + skippy) > l {
  7870. return io.ErrUnexpectedEOF
  7871. }
  7872. iNdEx += skippy
  7873. }
  7874. }
  7875. if iNdEx > l {
  7876. return io.ErrUnexpectedEOF
  7877. }
  7878. return nil
  7879. }
  7880. func (m *GlobalRollbackResponse) Unmarshal(dAtA []byte) error {
  7881. l := len(dAtA)
  7882. iNdEx := 0
  7883. for iNdEx < l {
  7884. preIndex := iNdEx
  7885. var wire uint64
  7886. for shift := uint(0); ; shift += 7 {
  7887. if shift >= 64 {
  7888. return ErrIntOverflowSeata
  7889. }
  7890. if iNdEx >= l {
  7891. return io.ErrUnexpectedEOF
  7892. }
  7893. b := dAtA[iNdEx]
  7894. iNdEx++
  7895. wire |= uint64(b&0x7F) << shift
  7896. if b < 0x80 {
  7897. break
  7898. }
  7899. }
  7900. fieldNum := int32(wire >> 3)
  7901. wireType := int(wire & 0x7)
  7902. if wireType == 4 {
  7903. return fmt.Errorf("proto: GlobalRollbackResponse: wiretype end group for non-group")
  7904. }
  7905. if fieldNum <= 0 {
  7906. return fmt.Errorf("proto: GlobalRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7907. }
  7908. switch fieldNum {
  7909. case 1:
  7910. if wireType != 0 {
  7911. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  7912. }
  7913. m.ResultCode = 0
  7914. for shift := uint(0); ; shift += 7 {
  7915. if shift >= 64 {
  7916. return ErrIntOverflowSeata
  7917. }
  7918. if iNdEx >= l {
  7919. return io.ErrUnexpectedEOF
  7920. }
  7921. b := dAtA[iNdEx]
  7922. iNdEx++
  7923. m.ResultCode |= ResultCode(b&0x7F) << shift
  7924. if b < 0x80 {
  7925. break
  7926. }
  7927. }
  7928. case 2:
  7929. if wireType != 0 {
  7930. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  7931. }
  7932. m.ExceptionCode = 0
  7933. for shift := uint(0); ; shift += 7 {
  7934. if shift >= 64 {
  7935. return ErrIntOverflowSeata
  7936. }
  7937. if iNdEx >= l {
  7938. return io.ErrUnexpectedEOF
  7939. }
  7940. b := dAtA[iNdEx]
  7941. iNdEx++
  7942. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  7943. if b < 0x80 {
  7944. break
  7945. }
  7946. }
  7947. case 3:
  7948. if wireType != 2 {
  7949. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7950. }
  7951. var stringLen uint64
  7952. for shift := uint(0); ; shift += 7 {
  7953. if shift >= 64 {
  7954. return ErrIntOverflowSeata
  7955. }
  7956. if iNdEx >= l {
  7957. return io.ErrUnexpectedEOF
  7958. }
  7959. b := dAtA[iNdEx]
  7960. iNdEx++
  7961. stringLen |= uint64(b&0x7F) << shift
  7962. if b < 0x80 {
  7963. break
  7964. }
  7965. }
  7966. intStringLen := int(stringLen)
  7967. if intStringLen < 0 {
  7968. return ErrInvalidLengthSeata
  7969. }
  7970. postIndex := iNdEx + intStringLen
  7971. if postIndex < 0 {
  7972. return ErrInvalidLengthSeata
  7973. }
  7974. if postIndex > l {
  7975. return io.ErrUnexpectedEOF
  7976. }
  7977. m.Message = string(dAtA[iNdEx:postIndex])
  7978. iNdEx = postIndex
  7979. case 4:
  7980. if wireType != 0 {
  7981. return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
  7982. }
  7983. m.GlobalStatus = 0
  7984. for shift := uint(0); ; shift += 7 {
  7985. if shift >= 64 {
  7986. return ErrIntOverflowSeata
  7987. }
  7988. if iNdEx >= l {
  7989. return io.ErrUnexpectedEOF
  7990. }
  7991. b := dAtA[iNdEx]
  7992. iNdEx++
  7993. m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
  7994. if b < 0x80 {
  7995. break
  7996. }
  7997. }
  7998. default:
  7999. iNdEx = preIndex
  8000. skippy, err := skipSeata(dAtA[iNdEx:])
  8001. if err != nil {
  8002. return err
  8003. }
  8004. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8005. return ErrInvalidLengthSeata
  8006. }
  8007. if (iNdEx + skippy) > l {
  8008. return io.ErrUnexpectedEOF
  8009. }
  8010. iNdEx += skippy
  8011. }
  8012. }
  8013. if iNdEx > l {
  8014. return io.ErrUnexpectedEOF
  8015. }
  8016. return nil
  8017. }
  8018. func (m *GlobalReportRequest) Unmarshal(dAtA []byte) error {
  8019. l := len(dAtA)
  8020. iNdEx := 0
  8021. for iNdEx < l {
  8022. preIndex := iNdEx
  8023. var wire uint64
  8024. for shift := uint(0); ; shift += 7 {
  8025. if shift >= 64 {
  8026. return ErrIntOverflowSeata
  8027. }
  8028. if iNdEx >= l {
  8029. return io.ErrUnexpectedEOF
  8030. }
  8031. b := dAtA[iNdEx]
  8032. iNdEx++
  8033. wire |= uint64(b&0x7F) << shift
  8034. if b < 0x80 {
  8035. break
  8036. }
  8037. }
  8038. fieldNum := int32(wire >> 3)
  8039. wireType := int(wire & 0x7)
  8040. if wireType == 4 {
  8041. return fmt.Errorf("proto: GlobalReportRequest: wiretype end group for non-group")
  8042. }
  8043. if fieldNum <= 0 {
  8044. return fmt.Errorf("proto: GlobalReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8045. }
  8046. switch fieldNum {
  8047. case 1:
  8048. if wireType != 2 {
  8049. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  8050. }
  8051. var stringLen uint64
  8052. for shift := uint(0); ; shift += 7 {
  8053. if shift >= 64 {
  8054. return ErrIntOverflowSeata
  8055. }
  8056. if iNdEx >= l {
  8057. return io.ErrUnexpectedEOF
  8058. }
  8059. b := dAtA[iNdEx]
  8060. iNdEx++
  8061. stringLen |= uint64(b&0x7F) << shift
  8062. if b < 0x80 {
  8063. break
  8064. }
  8065. }
  8066. intStringLen := int(stringLen)
  8067. if intStringLen < 0 {
  8068. return ErrInvalidLengthSeata
  8069. }
  8070. postIndex := iNdEx + intStringLen
  8071. if postIndex < 0 {
  8072. return ErrInvalidLengthSeata
  8073. }
  8074. if postIndex > l {
  8075. return io.ErrUnexpectedEOF
  8076. }
  8077. m.XID = string(dAtA[iNdEx:postIndex])
  8078. iNdEx = postIndex
  8079. case 2:
  8080. if wireType != 0 {
  8081. return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
  8082. }
  8083. m.GlobalStatus = 0
  8084. for shift := uint(0); ; shift += 7 {
  8085. if shift >= 64 {
  8086. return ErrIntOverflowSeata
  8087. }
  8088. if iNdEx >= l {
  8089. return io.ErrUnexpectedEOF
  8090. }
  8091. b := dAtA[iNdEx]
  8092. iNdEx++
  8093. m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
  8094. if b < 0x80 {
  8095. break
  8096. }
  8097. }
  8098. default:
  8099. iNdEx = preIndex
  8100. skippy, err := skipSeata(dAtA[iNdEx:])
  8101. if err != nil {
  8102. return err
  8103. }
  8104. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8105. return ErrInvalidLengthSeata
  8106. }
  8107. if (iNdEx + skippy) > l {
  8108. return io.ErrUnexpectedEOF
  8109. }
  8110. iNdEx += skippy
  8111. }
  8112. }
  8113. if iNdEx > l {
  8114. return io.ErrUnexpectedEOF
  8115. }
  8116. return nil
  8117. }
  8118. func (m *GlobalReportResponse) Unmarshal(dAtA []byte) error {
  8119. l := len(dAtA)
  8120. iNdEx := 0
  8121. for iNdEx < l {
  8122. preIndex := iNdEx
  8123. var wire uint64
  8124. for shift := uint(0); ; shift += 7 {
  8125. if shift >= 64 {
  8126. return ErrIntOverflowSeata
  8127. }
  8128. if iNdEx >= l {
  8129. return io.ErrUnexpectedEOF
  8130. }
  8131. b := dAtA[iNdEx]
  8132. iNdEx++
  8133. wire |= uint64(b&0x7F) << shift
  8134. if b < 0x80 {
  8135. break
  8136. }
  8137. }
  8138. fieldNum := int32(wire >> 3)
  8139. wireType := int(wire & 0x7)
  8140. if wireType == 4 {
  8141. return fmt.Errorf("proto: GlobalReportResponse: wiretype end group for non-group")
  8142. }
  8143. if fieldNum <= 0 {
  8144. return fmt.Errorf("proto: GlobalReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8145. }
  8146. switch fieldNum {
  8147. case 1:
  8148. if wireType != 0 {
  8149. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  8150. }
  8151. m.ResultCode = 0
  8152. for shift := uint(0); ; shift += 7 {
  8153. if shift >= 64 {
  8154. return ErrIntOverflowSeata
  8155. }
  8156. if iNdEx >= l {
  8157. return io.ErrUnexpectedEOF
  8158. }
  8159. b := dAtA[iNdEx]
  8160. iNdEx++
  8161. m.ResultCode |= ResultCode(b&0x7F) << shift
  8162. if b < 0x80 {
  8163. break
  8164. }
  8165. }
  8166. case 2:
  8167. if wireType != 0 {
  8168. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  8169. }
  8170. m.ExceptionCode = 0
  8171. for shift := uint(0); ; shift += 7 {
  8172. if shift >= 64 {
  8173. return ErrIntOverflowSeata
  8174. }
  8175. if iNdEx >= l {
  8176. return io.ErrUnexpectedEOF
  8177. }
  8178. b := dAtA[iNdEx]
  8179. iNdEx++
  8180. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  8181. if b < 0x80 {
  8182. break
  8183. }
  8184. }
  8185. case 3:
  8186. if wireType != 2 {
  8187. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  8188. }
  8189. var stringLen uint64
  8190. for shift := uint(0); ; shift += 7 {
  8191. if shift >= 64 {
  8192. return ErrIntOverflowSeata
  8193. }
  8194. if iNdEx >= l {
  8195. return io.ErrUnexpectedEOF
  8196. }
  8197. b := dAtA[iNdEx]
  8198. iNdEx++
  8199. stringLen |= uint64(b&0x7F) << shift
  8200. if b < 0x80 {
  8201. break
  8202. }
  8203. }
  8204. intStringLen := int(stringLen)
  8205. if intStringLen < 0 {
  8206. return ErrInvalidLengthSeata
  8207. }
  8208. postIndex := iNdEx + intStringLen
  8209. if postIndex < 0 {
  8210. return ErrInvalidLengthSeata
  8211. }
  8212. if postIndex > l {
  8213. return io.ErrUnexpectedEOF
  8214. }
  8215. m.Message = string(dAtA[iNdEx:postIndex])
  8216. iNdEx = postIndex
  8217. case 4:
  8218. if wireType != 0 {
  8219. return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
  8220. }
  8221. m.GlobalStatus = 0
  8222. for shift := uint(0); ; shift += 7 {
  8223. if shift >= 64 {
  8224. return ErrIntOverflowSeata
  8225. }
  8226. if iNdEx >= l {
  8227. return io.ErrUnexpectedEOF
  8228. }
  8229. b := dAtA[iNdEx]
  8230. iNdEx++
  8231. m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
  8232. if b < 0x80 {
  8233. break
  8234. }
  8235. }
  8236. default:
  8237. iNdEx = preIndex
  8238. skippy, err := skipSeata(dAtA[iNdEx:])
  8239. if err != nil {
  8240. return err
  8241. }
  8242. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8243. return ErrInvalidLengthSeata
  8244. }
  8245. if (iNdEx + skippy) > l {
  8246. return io.ErrUnexpectedEOF
  8247. }
  8248. iNdEx += skippy
  8249. }
  8250. }
  8251. if iNdEx > l {
  8252. return io.ErrUnexpectedEOF
  8253. }
  8254. return nil
  8255. }
  8256. func (m *BranchCommitRequest) Unmarshal(dAtA []byte) error {
  8257. l := len(dAtA)
  8258. iNdEx := 0
  8259. for iNdEx < l {
  8260. preIndex := iNdEx
  8261. var wire uint64
  8262. for shift := uint(0); ; shift += 7 {
  8263. if shift >= 64 {
  8264. return ErrIntOverflowSeata
  8265. }
  8266. if iNdEx >= l {
  8267. return io.ErrUnexpectedEOF
  8268. }
  8269. b := dAtA[iNdEx]
  8270. iNdEx++
  8271. wire |= uint64(b&0x7F) << shift
  8272. if b < 0x80 {
  8273. break
  8274. }
  8275. }
  8276. fieldNum := int32(wire >> 3)
  8277. wireType := int(wire & 0x7)
  8278. if wireType == 4 {
  8279. return fmt.Errorf("proto: BranchCommitRequest: wiretype end group for non-group")
  8280. }
  8281. if fieldNum <= 0 {
  8282. return fmt.Errorf("proto: BranchCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8283. }
  8284. switch fieldNum {
  8285. case 1:
  8286. if wireType != 2 {
  8287. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  8288. }
  8289. var stringLen uint64
  8290. for shift := uint(0); ; shift += 7 {
  8291. if shift >= 64 {
  8292. return ErrIntOverflowSeata
  8293. }
  8294. if iNdEx >= l {
  8295. return io.ErrUnexpectedEOF
  8296. }
  8297. b := dAtA[iNdEx]
  8298. iNdEx++
  8299. stringLen |= uint64(b&0x7F) << shift
  8300. if b < 0x80 {
  8301. break
  8302. }
  8303. }
  8304. intStringLen := int(stringLen)
  8305. if intStringLen < 0 {
  8306. return ErrInvalidLengthSeata
  8307. }
  8308. postIndex := iNdEx + intStringLen
  8309. if postIndex < 0 {
  8310. return ErrInvalidLengthSeata
  8311. }
  8312. if postIndex > l {
  8313. return io.ErrUnexpectedEOF
  8314. }
  8315. m.XID = string(dAtA[iNdEx:postIndex])
  8316. iNdEx = postIndex
  8317. case 2:
  8318. if wireType != 0 {
  8319. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  8320. }
  8321. m.BranchID = 0
  8322. for shift := uint(0); ; shift += 7 {
  8323. if shift >= 64 {
  8324. return ErrIntOverflowSeata
  8325. }
  8326. if iNdEx >= l {
  8327. return io.ErrUnexpectedEOF
  8328. }
  8329. b := dAtA[iNdEx]
  8330. iNdEx++
  8331. m.BranchID |= int64(b&0x7F) << shift
  8332. if b < 0x80 {
  8333. break
  8334. }
  8335. }
  8336. case 3:
  8337. if wireType != 2 {
  8338. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  8339. }
  8340. var stringLen uint64
  8341. for shift := uint(0); ; shift += 7 {
  8342. if shift >= 64 {
  8343. return ErrIntOverflowSeata
  8344. }
  8345. if iNdEx >= l {
  8346. return io.ErrUnexpectedEOF
  8347. }
  8348. b := dAtA[iNdEx]
  8349. iNdEx++
  8350. stringLen |= uint64(b&0x7F) << shift
  8351. if b < 0x80 {
  8352. break
  8353. }
  8354. }
  8355. intStringLen := int(stringLen)
  8356. if intStringLen < 0 {
  8357. return ErrInvalidLengthSeata
  8358. }
  8359. postIndex := iNdEx + intStringLen
  8360. if postIndex < 0 {
  8361. return ErrInvalidLengthSeata
  8362. }
  8363. if postIndex > l {
  8364. return io.ErrUnexpectedEOF
  8365. }
  8366. m.ResourceID = string(dAtA[iNdEx:postIndex])
  8367. iNdEx = postIndex
  8368. case 4:
  8369. if wireType != 2 {
  8370. return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
  8371. }
  8372. var stringLen uint64
  8373. for shift := uint(0); ; shift += 7 {
  8374. if shift >= 64 {
  8375. return ErrIntOverflowSeata
  8376. }
  8377. if iNdEx >= l {
  8378. return io.ErrUnexpectedEOF
  8379. }
  8380. b := dAtA[iNdEx]
  8381. iNdEx++
  8382. stringLen |= uint64(b&0x7F) << shift
  8383. if b < 0x80 {
  8384. break
  8385. }
  8386. }
  8387. intStringLen := int(stringLen)
  8388. if intStringLen < 0 {
  8389. return ErrInvalidLengthSeata
  8390. }
  8391. postIndex := iNdEx + intStringLen
  8392. if postIndex < 0 {
  8393. return ErrInvalidLengthSeata
  8394. }
  8395. if postIndex > l {
  8396. return io.ErrUnexpectedEOF
  8397. }
  8398. m.LockKey = string(dAtA[iNdEx:postIndex])
  8399. iNdEx = postIndex
  8400. case 5:
  8401. if wireType != 0 {
  8402. return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
  8403. }
  8404. m.BranchType = 0
  8405. for shift := uint(0); ; shift += 7 {
  8406. if shift >= 64 {
  8407. return ErrIntOverflowSeata
  8408. }
  8409. if iNdEx >= l {
  8410. return io.ErrUnexpectedEOF
  8411. }
  8412. b := dAtA[iNdEx]
  8413. iNdEx++
  8414. m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
  8415. if b < 0x80 {
  8416. break
  8417. }
  8418. }
  8419. case 6:
  8420. if wireType != 2 {
  8421. return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
  8422. }
  8423. var byteLen int
  8424. for shift := uint(0); ; shift += 7 {
  8425. if shift >= 64 {
  8426. return ErrIntOverflowSeata
  8427. }
  8428. if iNdEx >= l {
  8429. return io.ErrUnexpectedEOF
  8430. }
  8431. b := dAtA[iNdEx]
  8432. iNdEx++
  8433. byteLen |= int(b&0x7F) << shift
  8434. if b < 0x80 {
  8435. break
  8436. }
  8437. }
  8438. if byteLen < 0 {
  8439. return ErrInvalidLengthSeata
  8440. }
  8441. postIndex := iNdEx + byteLen
  8442. if postIndex < 0 {
  8443. return ErrInvalidLengthSeata
  8444. }
  8445. if postIndex > l {
  8446. return io.ErrUnexpectedEOF
  8447. }
  8448. m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
  8449. if m.ApplicationData == nil {
  8450. m.ApplicationData = []byte{}
  8451. }
  8452. iNdEx = postIndex
  8453. default:
  8454. iNdEx = preIndex
  8455. skippy, err := skipSeata(dAtA[iNdEx:])
  8456. if err != nil {
  8457. return err
  8458. }
  8459. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8460. return ErrInvalidLengthSeata
  8461. }
  8462. if (iNdEx + skippy) > l {
  8463. return io.ErrUnexpectedEOF
  8464. }
  8465. iNdEx += skippy
  8466. }
  8467. }
  8468. if iNdEx > l {
  8469. return io.ErrUnexpectedEOF
  8470. }
  8471. return nil
  8472. }
  8473. func (m *BranchCommitResponse) Unmarshal(dAtA []byte) error {
  8474. l := len(dAtA)
  8475. iNdEx := 0
  8476. for iNdEx < l {
  8477. preIndex := iNdEx
  8478. var wire uint64
  8479. for shift := uint(0); ; shift += 7 {
  8480. if shift >= 64 {
  8481. return ErrIntOverflowSeata
  8482. }
  8483. if iNdEx >= l {
  8484. return io.ErrUnexpectedEOF
  8485. }
  8486. b := dAtA[iNdEx]
  8487. iNdEx++
  8488. wire |= uint64(b&0x7F) << shift
  8489. if b < 0x80 {
  8490. break
  8491. }
  8492. }
  8493. fieldNum := int32(wire >> 3)
  8494. wireType := int(wire & 0x7)
  8495. if wireType == 4 {
  8496. return fmt.Errorf("proto: BranchCommitResponse: wiretype end group for non-group")
  8497. }
  8498. if fieldNum <= 0 {
  8499. return fmt.Errorf("proto: BranchCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8500. }
  8501. switch fieldNum {
  8502. case 1:
  8503. if wireType != 0 {
  8504. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  8505. }
  8506. m.ResultCode = 0
  8507. for shift := uint(0); ; shift += 7 {
  8508. if shift >= 64 {
  8509. return ErrIntOverflowSeata
  8510. }
  8511. if iNdEx >= l {
  8512. return io.ErrUnexpectedEOF
  8513. }
  8514. b := dAtA[iNdEx]
  8515. iNdEx++
  8516. m.ResultCode |= ResultCode(b&0x7F) << shift
  8517. if b < 0x80 {
  8518. break
  8519. }
  8520. }
  8521. case 2:
  8522. if wireType != 0 {
  8523. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  8524. }
  8525. m.ExceptionCode = 0
  8526. for shift := uint(0); ; shift += 7 {
  8527. if shift >= 64 {
  8528. return ErrIntOverflowSeata
  8529. }
  8530. if iNdEx >= l {
  8531. return io.ErrUnexpectedEOF
  8532. }
  8533. b := dAtA[iNdEx]
  8534. iNdEx++
  8535. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  8536. if b < 0x80 {
  8537. break
  8538. }
  8539. }
  8540. case 3:
  8541. if wireType != 2 {
  8542. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  8543. }
  8544. var stringLen uint64
  8545. for shift := uint(0); ; shift += 7 {
  8546. if shift >= 64 {
  8547. return ErrIntOverflowSeata
  8548. }
  8549. if iNdEx >= l {
  8550. return io.ErrUnexpectedEOF
  8551. }
  8552. b := dAtA[iNdEx]
  8553. iNdEx++
  8554. stringLen |= uint64(b&0x7F) << shift
  8555. if b < 0x80 {
  8556. break
  8557. }
  8558. }
  8559. intStringLen := int(stringLen)
  8560. if intStringLen < 0 {
  8561. return ErrInvalidLengthSeata
  8562. }
  8563. postIndex := iNdEx + intStringLen
  8564. if postIndex < 0 {
  8565. return ErrInvalidLengthSeata
  8566. }
  8567. if postIndex > l {
  8568. return io.ErrUnexpectedEOF
  8569. }
  8570. m.Message = string(dAtA[iNdEx:postIndex])
  8571. iNdEx = postIndex
  8572. case 4:
  8573. if wireType != 2 {
  8574. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  8575. }
  8576. var stringLen uint64
  8577. for shift := uint(0); ; shift += 7 {
  8578. if shift >= 64 {
  8579. return ErrIntOverflowSeata
  8580. }
  8581. if iNdEx >= l {
  8582. return io.ErrUnexpectedEOF
  8583. }
  8584. b := dAtA[iNdEx]
  8585. iNdEx++
  8586. stringLen |= uint64(b&0x7F) << shift
  8587. if b < 0x80 {
  8588. break
  8589. }
  8590. }
  8591. intStringLen := int(stringLen)
  8592. if intStringLen < 0 {
  8593. return ErrInvalidLengthSeata
  8594. }
  8595. postIndex := iNdEx + intStringLen
  8596. if postIndex < 0 {
  8597. return ErrInvalidLengthSeata
  8598. }
  8599. if postIndex > l {
  8600. return io.ErrUnexpectedEOF
  8601. }
  8602. m.XID = string(dAtA[iNdEx:postIndex])
  8603. iNdEx = postIndex
  8604. case 5:
  8605. if wireType != 0 {
  8606. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  8607. }
  8608. m.BranchID = 0
  8609. for shift := uint(0); ; shift += 7 {
  8610. if shift >= 64 {
  8611. return ErrIntOverflowSeata
  8612. }
  8613. if iNdEx >= l {
  8614. return io.ErrUnexpectedEOF
  8615. }
  8616. b := dAtA[iNdEx]
  8617. iNdEx++
  8618. m.BranchID |= int64(b&0x7F) << shift
  8619. if b < 0x80 {
  8620. break
  8621. }
  8622. }
  8623. case 6:
  8624. if wireType != 0 {
  8625. return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
  8626. }
  8627. m.BranchStatus = 0
  8628. for shift := uint(0); ; shift += 7 {
  8629. if shift >= 64 {
  8630. return ErrIntOverflowSeata
  8631. }
  8632. if iNdEx >= l {
  8633. return io.ErrUnexpectedEOF
  8634. }
  8635. b := dAtA[iNdEx]
  8636. iNdEx++
  8637. m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
  8638. if b < 0x80 {
  8639. break
  8640. }
  8641. }
  8642. default:
  8643. iNdEx = preIndex
  8644. skippy, err := skipSeata(dAtA[iNdEx:])
  8645. if err != nil {
  8646. return err
  8647. }
  8648. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8649. return ErrInvalidLengthSeata
  8650. }
  8651. if (iNdEx + skippy) > l {
  8652. return io.ErrUnexpectedEOF
  8653. }
  8654. iNdEx += skippy
  8655. }
  8656. }
  8657. if iNdEx > l {
  8658. return io.ErrUnexpectedEOF
  8659. }
  8660. return nil
  8661. }
  8662. func (m *BranchRollbackRequest) Unmarshal(dAtA []byte) error {
  8663. l := len(dAtA)
  8664. iNdEx := 0
  8665. for iNdEx < l {
  8666. preIndex := iNdEx
  8667. var wire uint64
  8668. for shift := uint(0); ; shift += 7 {
  8669. if shift >= 64 {
  8670. return ErrIntOverflowSeata
  8671. }
  8672. if iNdEx >= l {
  8673. return io.ErrUnexpectedEOF
  8674. }
  8675. b := dAtA[iNdEx]
  8676. iNdEx++
  8677. wire |= uint64(b&0x7F) << shift
  8678. if b < 0x80 {
  8679. break
  8680. }
  8681. }
  8682. fieldNum := int32(wire >> 3)
  8683. wireType := int(wire & 0x7)
  8684. if wireType == 4 {
  8685. return fmt.Errorf("proto: BranchRollbackRequest: wiretype end group for non-group")
  8686. }
  8687. if fieldNum <= 0 {
  8688. return fmt.Errorf("proto: BranchRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8689. }
  8690. switch fieldNum {
  8691. case 1:
  8692. if wireType != 2 {
  8693. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  8694. }
  8695. var stringLen uint64
  8696. for shift := uint(0); ; shift += 7 {
  8697. if shift >= 64 {
  8698. return ErrIntOverflowSeata
  8699. }
  8700. if iNdEx >= l {
  8701. return io.ErrUnexpectedEOF
  8702. }
  8703. b := dAtA[iNdEx]
  8704. iNdEx++
  8705. stringLen |= uint64(b&0x7F) << shift
  8706. if b < 0x80 {
  8707. break
  8708. }
  8709. }
  8710. intStringLen := int(stringLen)
  8711. if intStringLen < 0 {
  8712. return ErrInvalidLengthSeata
  8713. }
  8714. postIndex := iNdEx + intStringLen
  8715. if postIndex < 0 {
  8716. return ErrInvalidLengthSeata
  8717. }
  8718. if postIndex > l {
  8719. return io.ErrUnexpectedEOF
  8720. }
  8721. m.XID = string(dAtA[iNdEx:postIndex])
  8722. iNdEx = postIndex
  8723. case 2:
  8724. if wireType != 0 {
  8725. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  8726. }
  8727. m.BranchID = 0
  8728. for shift := uint(0); ; shift += 7 {
  8729. if shift >= 64 {
  8730. return ErrIntOverflowSeata
  8731. }
  8732. if iNdEx >= l {
  8733. return io.ErrUnexpectedEOF
  8734. }
  8735. b := dAtA[iNdEx]
  8736. iNdEx++
  8737. m.BranchID |= int64(b&0x7F) << shift
  8738. if b < 0x80 {
  8739. break
  8740. }
  8741. }
  8742. case 3:
  8743. if wireType != 2 {
  8744. return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
  8745. }
  8746. var stringLen uint64
  8747. for shift := uint(0); ; shift += 7 {
  8748. if shift >= 64 {
  8749. return ErrIntOverflowSeata
  8750. }
  8751. if iNdEx >= l {
  8752. return io.ErrUnexpectedEOF
  8753. }
  8754. b := dAtA[iNdEx]
  8755. iNdEx++
  8756. stringLen |= uint64(b&0x7F) << shift
  8757. if b < 0x80 {
  8758. break
  8759. }
  8760. }
  8761. intStringLen := int(stringLen)
  8762. if intStringLen < 0 {
  8763. return ErrInvalidLengthSeata
  8764. }
  8765. postIndex := iNdEx + intStringLen
  8766. if postIndex < 0 {
  8767. return ErrInvalidLengthSeata
  8768. }
  8769. if postIndex > l {
  8770. return io.ErrUnexpectedEOF
  8771. }
  8772. m.ResourceID = string(dAtA[iNdEx:postIndex])
  8773. iNdEx = postIndex
  8774. case 4:
  8775. if wireType != 2 {
  8776. return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
  8777. }
  8778. var stringLen uint64
  8779. for shift := uint(0); ; shift += 7 {
  8780. if shift >= 64 {
  8781. return ErrIntOverflowSeata
  8782. }
  8783. if iNdEx >= l {
  8784. return io.ErrUnexpectedEOF
  8785. }
  8786. b := dAtA[iNdEx]
  8787. iNdEx++
  8788. stringLen |= uint64(b&0x7F) << shift
  8789. if b < 0x80 {
  8790. break
  8791. }
  8792. }
  8793. intStringLen := int(stringLen)
  8794. if intStringLen < 0 {
  8795. return ErrInvalidLengthSeata
  8796. }
  8797. postIndex := iNdEx + intStringLen
  8798. if postIndex < 0 {
  8799. return ErrInvalidLengthSeata
  8800. }
  8801. if postIndex > l {
  8802. return io.ErrUnexpectedEOF
  8803. }
  8804. m.LockKey = string(dAtA[iNdEx:postIndex])
  8805. iNdEx = postIndex
  8806. case 5:
  8807. if wireType != 0 {
  8808. return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
  8809. }
  8810. m.BranchType = 0
  8811. for shift := uint(0); ; shift += 7 {
  8812. if shift >= 64 {
  8813. return ErrIntOverflowSeata
  8814. }
  8815. if iNdEx >= l {
  8816. return io.ErrUnexpectedEOF
  8817. }
  8818. b := dAtA[iNdEx]
  8819. iNdEx++
  8820. m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
  8821. if b < 0x80 {
  8822. break
  8823. }
  8824. }
  8825. case 6:
  8826. if wireType != 2 {
  8827. return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
  8828. }
  8829. var byteLen int
  8830. for shift := uint(0); ; shift += 7 {
  8831. if shift >= 64 {
  8832. return ErrIntOverflowSeata
  8833. }
  8834. if iNdEx >= l {
  8835. return io.ErrUnexpectedEOF
  8836. }
  8837. b := dAtA[iNdEx]
  8838. iNdEx++
  8839. byteLen |= int(b&0x7F) << shift
  8840. if b < 0x80 {
  8841. break
  8842. }
  8843. }
  8844. if byteLen < 0 {
  8845. return ErrInvalidLengthSeata
  8846. }
  8847. postIndex := iNdEx + byteLen
  8848. if postIndex < 0 {
  8849. return ErrInvalidLengthSeata
  8850. }
  8851. if postIndex > l {
  8852. return io.ErrUnexpectedEOF
  8853. }
  8854. m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
  8855. if m.ApplicationData == nil {
  8856. m.ApplicationData = []byte{}
  8857. }
  8858. iNdEx = postIndex
  8859. default:
  8860. iNdEx = preIndex
  8861. skippy, err := skipSeata(dAtA[iNdEx:])
  8862. if err != nil {
  8863. return err
  8864. }
  8865. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8866. return ErrInvalidLengthSeata
  8867. }
  8868. if (iNdEx + skippy) > l {
  8869. return io.ErrUnexpectedEOF
  8870. }
  8871. iNdEx += skippy
  8872. }
  8873. }
  8874. if iNdEx > l {
  8875. return io.ErrUnexpectedEOF
  8876. }
  8877. return nil
  8878. }
  8879. func (m *BranchRollbackResponse) Unmarshal(dAtA []byte) error {
  8880. l := len(dAtA)
  8881. iNdEx := 0
  8882. for iNdEx < l {
  8883. preIndex := iNdEx
  8884. var wire uint64
  8885. for shift := uint(0); ; shift += 7 {
  8886. if shift >= 64 {
  8887. return ErrIntOverflowSeata
  8888. }
  8889. if iNdEx >= l {
  8890. return io.ErrUnexpectedEOF
  8891. }
  8892. b := dAtA[iNdEx]
  8893. iNdEx++
  8894. wire |= uint64(b&0x7F) << shift
  8895. if b < 0x80 {
  8896. break
  8897. }
  8898. }
  8899. fieldNum := int32(wire >> 3)
  8900. wireType := int(wire & 0x7)
  8901. if wireType == 4 {
  8902. return fmt.Errorf("proto: BranchRollbackResponse: wiretype end group for non-group")
  8903. }
  8904. if fieldNum <= 0 {
  8905. return fmt.Errorf("proto: BranchRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8906. }
  8907. switch fieldNum {
  8908. case 1:
  8909. if wireType != 0 {
  8910. return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
  8911. }
  8912. m.ResultCode = 0
  8913. for shift := uint(0); ; shift += 7 {
  8914. if shift >= 64 {
  8915. return ErrIntOverflowSeata
  8916. }
  8917. if iNdEx >= l {
  8918. return io.ErrUnexpectedEOF
  8919. }
  8920. b := dAtA[iNdEx]
  8921. iNdEx++
  8922. m.ResultCode |= ResultCode(b&0x7F) << shift
  8923. if b < 0x80 {
  8924. break
  8925. }
  8926. }
  8927. case 2:
  8928. if wireType != 0 {
  8929. return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
  8930. }
  8931. m.ExceptionCode = 0
  8932. for shift := uint(0); ; shift += 7 {
  8933. if shift >= 64 {
  8934. return ErrIntOverflowSeata
  8935. }
  8936. if iNdEx >= l {
  8937. return io.ErrUnexpectedEOF
  8938. }
  8939. b := dAtA[iNdEx]
  8940. iNdEx++
  8941. m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
  8942. if b < 0x80 {
  8943. break
  8944. }
  8945. }
  8946. case 3:
  8947. if wireType != 2 {
  8948. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  8949. }
  8950. var stringLen uint64
  8951. for shift := uint(0); ; shift += 7 {
  8952. if shift >= 64 {
  8953. return ErrIntOverflowSeata
  8954. }
  8955. if iNdEx >= l {
  8956. return io.ErrUnexpectedEOF
  8957. }
  8958. b := dAtA[iNdEx]
  8959. iNdEx++
  8960. stringLen |= uint64(b&0x7F) << shift
  8961. if b < 0x80 {
  8962. break
  8963. }
  8964. }
  8965. intStringLen := int(stringLen)
  8966. if intStringLen < 0 {
  8967. return ErrInvalidLengthSeata
  8968. }
  8969. postIndex := iNdEx + intStringLen
  8970. if postIndex < 0 {
  8971. return ErrInvalidLengthSeata
  8972. }
  8973. if postIndex > l {
  8974. return io.ErrUnexpectedEOF
  8975. }
  8976. m.Message = string(dAtA[iNdEx:postIndex])
  8977. iNdEx = postIndex
  8978. case 4:
  8979. if wireType != 2 {
  8980. return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
  8981. }
  8982. var stringLen uint64
  8983. for shift := uint(0); ; shift += 7 {
  8984. if shift >= 64 {
  8985. return ErrIntOverflowSeata
  8986. }
  8987. if iNdEx >= l {
  8988. return io.ErrUnexpectedEOF
  8989. }
  8990. b := dAtA[iNdEx]
  8991. iNdEx++
  8992. stringLen |= uint64(b&0x7F) << shift
  8993. if b < 0x80 {
  8994. break
  8995. }
  8996. }
  8997. intStringLen := int(stringLen)
  8998. if intStringLen < 0 {
  8999. return ErrInvalidLengthSeata
  9000. }
  9001. postIndex := iNdEx + intStringLen
  9002. if postIndex < 0 {
  9003. return ErrInvalidLengthSeata
  9004. }
  9005. if postIndex > l {
  9006. return io.ErrUnexpectedEOF
  9007. }
  9008. m.XID = string(dAtA[iNdEx:postIndex])
  9009. iNdEx = postIndex
  9010. case 5:
  9011. if wireType != 0 {
  9012. return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
  9013. }
  9014. m.BranchID = 0
  9015. for shift := uint(0); ; shift += 7 {
  9016. if shift >= 64 {
  9017. return ErrIntOverflowSeata
  9018. }
  9019. if iNdEx >= l {
  9020. return io.ErrUnexpectedEOF
  9021. }
  9022. b := dAtA[iNdEx]
  9023. iNdEx++
  9024. m.BranchID |= int64(b&0x7F) << shift
  9025. if b < 0x80 {
  9026. break
  9027. }
  9028. }
  9029. case 6:
  9030. if wireType != 0 {
  9031. return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
  9032. }
  9033. m.BranchStatus = 0
  9034. for shift := uint(0); ; shift += 7 {
  9035. if shift >= 64 {
  9036. return ErrIntOverflowSeata
  9037. }
  9038. if iNdEx >= l {
  9039. return io.ErrUnexpectedEOF
  9040. }
  9041. b := dAtA[iNdEx]
  9042. iNdEx++
  9043. m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
  9044. if b < 0x80 {
  9045. break
  9046. }
  9047. }
  9048. default:
  9049. iNdEx = preIndex
  9050. skippy, err := skipSeata(dAtA[iNdEx:])
  9051. if err != nil {
  9052. return err
  9053. }
  9054. if (skippy < 0) || (iNdEx+skippy) < 0 {
  9055. return ErrInvalidLengthSeata
  9056. }
  9057. if (iNdEx + skippy) > l {
  9058. return io.ErrUnexpectedEOF
  9059. }
  9060. iNdEx += skippy
  9061. }
  9062. }
  9063. if iNdEx > l {
  9064. return io.ErrUnexpectedEOF
  9065. }
  9066. return nil
  9067. }
  9068. func (m *BranchMessage) Unmarshal(dAtA []byte) error {
  9069. l := len(dAtA)
  9070. iNdEx := 0
  9071. for iNdEx < l {
  9072. preIndex := iNdEx
  9073. var wire uint64
  9074. for shift := uint(0); ; shift += 7 {
  9075. if shift >= 64 {
  9076. return ErrIntOverflowSeata
  9077. }
  9078. if iNdEx >= l {
  9079. return io.ErrUnexpectedEOF
  9080. }
  9081. b := dAtA[iNdEx]
  9082. iNdEx++
  9083. wire |= uint64(b&0x7F) << shift
  9084. if b < 0x80 {
  9085. break
  9086. }
  9087. }
  9088. fieldNum := int32(wire >> 3)
  9089. wireType := int(wire & 0x7)
  9090. if wireType == 4 {
  9091. return fmt.Errorf("proto: BranchMessage: wiretype end group for non-group")
  9092. }
  9093. if fieldNum <= 0 {
  9094. return fmt.Errorf("proto: BranchMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  9095. }
  9096. switch fieldNum {
  9097. case 1:
  9098. if wireType != 0 {
  9099. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  9100. }
  9101. m.ID = 0
  9102. for shift := uint(0); ; shift += 7 {
  9103. if shift >= 64 {
  9104. return ErrIntOverflowSeata
  9105. }
  9106. if iNdEx >= l {
  9107. return io.ErrUnexpectedEOF
  9108. }
  9109. b := dAtA[iNdEx]
  9110. iNdEx++
  9111. m.ID |= int64(b&0x7F) << shift
  9112. if b < 0x80 {
  9113. break
  9114. }
  9115. }
  9116. case 2:
  9117. if wireType != 0 {
  9118. return fmt.Errorf("proto: wrong wireType = %d for field BranchMessageType", wireType)
  9119. }
  9120. m.BranchMessageType = 0
  9121. for shift := uint(0); ; shift += 7 {
  9122. if shift >= 64 {
  9123. return ErrIntOverflowSeata
  9124. }
  9125. if iNdEx >= l {
  9126. return io.ErrUnexpectedEOF
  9127. }
  9128. b := dAtA[iNdEx]
  9129. iNdEx++
  9130. m.BranchMessageType |= BranchMessageType(b&0x7F) << shift
  9131. if b < 0x80 {
  9132. break
  9133. }
  9134. }
  9135. case 3:
  9136. if wireType != 2 {
  9137. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  9138. }
  9139. var msglen int
  9140. for shift := uint(0); ; shift += 7 {
  9141. if shift >= 64 {
  9142. return ErrIntOverflowSeata
  9143. }
  9144. if iNdEx >= l {
  9145. return io.ErrUnexpectedEOF
  9146. }
  9147. b := dAtA[iNdEx]
  9148. iNdEx++
  9149. msglen |= int(b&0x7F) << shift
  9150. if b < 0x80 {
  9151. break
  9152. }
  9153. }
  9154. if msglen < 0 {
  9155. return ErrInvalidLengthSeata
  9156. }
  9157. postIndex := iNdEx + msglen
  9158. if postIndex < 0 {
  9159. return ErrInvalidLengthSeata
  9160. }
  9161. if postIndex > l {
  9162. return io.ErrUnexpectedEOF
  9163. }
  9164. if m.Message == nil {
  9165. m.Message = &types.Any{}
  9166. }
  9167. if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9168. return err
  9169. }
  9170. iNdEx = postIndex
  9171. default:
  9172. iNdEx = preIndex
  9173. skippy, err := skipSeata(dAtA[iNdEx:])
  9174. if err != nil {
  9175. return err
  9176. }
  9177. if (skippy < 0) || (iNdEx+skippy) < 0 {
  9178. return ErrInvalidLengthSeata
  9179. }
  9180. if (iNdEx + skippy) > l {
  9181. return io.ErrUnexpectedEOF
  9182. }
  9183. iNdEx += skippy
  9184. }
  9185. }
  9186. if iNdEx > l {
  9187. return io.ErrUnexpectedEOF
  9188. }
  9189. return nil
  9190. }
  9191. func skipSeata(dAtA []byte) (n int, err error) {
  9192. l := len(dAtA)
  9193. iNdEx := 0
  9194. depth := 0
  9195. for iNdEx < l {
  9196. var wire uint64
  9197. for shift := uint(0); ; shift += 7 {
  9198. if shift >= 64 {
  9199. return 0, ErrIntOverflowSeata
  9200. }
  9201. if iNdEx >= l {
  9202. return 0, io.ErrUnexpectedEOF
  9203. }
  9204. b := dAtA[iNdEx]
  9205. iNdEx++
  9206. wire |= (uint64(b) & 0x7F) << shift
  9207. if b < 0x80 {
  9208. break
  9209. }
  9210. }
  9211. wireType := int(wire & 0x7)
  9212. switch wireType {
  9213. case 0:
  9214. for shift := uint(0); ; shift += 7 {
  9215. if shift >= 64 {
  9216. return 0, ErrIntOverflowSeata
  9217. }
  9218. if iNdEx >= l {
  9219. return 0, io.ErrUnexpectedEOF
  9220. }
  9221. iNdEx++
  9222. if dAtA[iNdEx-1] < 0x80 {
  9223. break
  9224. }
  9225. }
  9226. case 1:
  9227. iNdEx += 8
  9228. case 2:
  9229. var length int
  9230. for shift := uint(0); ; shift += 7 {
  9231. if shift >= 64 {
  9232. return 0, ErrIntOverflowSeata
  9233. }
  9234. if iNdEx >= l {
  9235. return 0, io.ErrUnexpectedEOF
  9236. }
  9237. b := dAtA[iNdEx]
  9238. iNdEx++
  9239. length |= (int(b) & 0x7F) << shift
  9240. if b < 0x80 {
  9241. break
  9242. }
  9243. }
  9244. if length < 0 {
  9245. return 0, ErrInvalidLengthSeata
  9246. }
  9247. iNdEx += length
  9248. case 3:
  9249. depth++
  9250. case 4:
  9251. if depth == 0 {
  9252. return 0, ErrUnexpectedEndOfGroupSeata
  9253. }
  9254. depth--
  9255. case 5:
  9256. iNdEx += 4
  9257. default:
  9258. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  9259. }
  9260. if iNdEx < 0 {
  9261. return 0, ErrInvalidLengthSeata
  9262. }
  9263. if depth == 0 {
  9264. return iNdEx, nil
  9265. }
  9266. }
  9267. return 0, io.ErrUnexpectedEOF
  9268. }
  9269. var (
  9270. ErrInvalidLengthSeata = fmt.Errorf("proto: negative length found during unmarshaling")
  9271. ErrIntOverflowSeata = fmt.Errorf("proto: integer overflow")
  9272. ErrUnexpectedEndOfGroupSeata = fmt.Errorf("proto: unexpected end of group")
  9273. )