|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: seata.proto
-
- package apis
-
- import (
- bytes "bytes"
- fmt "fmt"
- _ "github.com/gogo/protobuf/gogoproto"
- proto "github.com/gogo/protobuf/proto"
- types "github.com/gogo/protobuf/types"
- io "io"
- math "math"
- math_bits "math/bits"
- reflect "reflect"
- strconv "strconv"
- strings "strings"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
-
- type ResultCode int32
-
- const (
- ResultCodeFailed ResultCode = 0
- ResultCodeSuccess ResultCode = 1
- )
-
- var ResultCode_name = map[int32]string{
- 0: "ResultCodeFailed",
- 1: "ResultCodeSuccess",
- }
-
- var ResultCode_value = map[string]int32{
- "ResultCodeFailed": 0,
- "ResultCodeSuccess": 1,
- }
-
- func (ResultCode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0}
- }
-
- type ExceptionCode int32
-
- const (
- // Unknown transaction error code.
- UnknownErr ExceptionCode = 0
- // BeginFailed
- BeginFailed ExceptionCode = 1
- // Lock key conflict transaction error code.
- LockKeyConflict ExceptionCode = 2
- // Io transaction error code.
- IO ExceptionCode = 3
- // Branch rollback failed retryable transaction error code.
- BranchRollbackFailedRetryable ExceptionCode = 4
- // Branch rollback failed unretryable transaction error code.
- BranchRollbackFailedUnretryable ExceptionCode = 5
- // Branch register failed transaction error code.
- BranchRegisterFailed ExceptionCode = 6
- // Branch report failed transaction error code.
- BranchReportFailed ExceptionCode = 7
- // Lockable check failed transaction error code.
- LockableCheckFailed ExceptionCode = 8
- // Branch transaction not exist transaction error code.
- BranchTransactionNotExist ExceptionCode = 9
- // Global transaction not exist transaction error code.
- GlobalTransactionNotExist ExceptionCode = 10
- // Global transaction not active transaction error code.
- GlobalTransactionNotActive ExceptionCode = 11
- // Global transaction status invalid transaction error code.
- GlobalTransactionStatusInvalid ExceptionCode = 12
- // Failed to send branch commit request transaction error code.
- FailedToSendBranchCommitRequest ExceptionCode = 13
- // Failed to send branch rollback request transaction error code.
- FailedToSendBranchRollbackRequest ExceptionCode = 14
- // Failed to add branch transaction error code.
- FailedToAddBranch ExceptionCode = 15
- // Failed to lock global transaction error code.
- FailedLockGlobalTransaction ExceptionCode = 16
- // FailedWriteSession
- FailedWriteSession ExceptionCode = 17
- // Failed to holder error code
- FailedStore ExceptionCode = 18
- )
-
- var ExceptionCode_name = map[int32]string{
- 0: "UnknownErr",
- 1: "BeginFailed",
- 2: "LockKeyConflict",
- 3: "IO",
- 4: "BranchRollbackFailedRetryable",
- 5: "BranchRollbackFailedUnretryable",
- 6: "BranchRegisterFailed",
- 7: "BranchReportFailed",
- 8: "LockableCheckFailed",
- 9: "BranchTransactionNotExist",
- 10: "GlobalTransactionNotExist",
- 11: "GlobalTransactionNotActive",
- 12: "GlobalTransactionStatusInvalid",
- 13: "FailedToSendBranchCommitRequest",
- 14: "FailedToSendBranchRollbackRequest",
- 15: "FailedToAddBranch",
- 16: "FailedLockGlobalTransaction",
- 17: "FailedWriteSession",
- 18: "FailedStore",
- }
-
- var ExceptionCode_value = map[string]int32{
- "UnknownErr": 0,
- "BeginFailed": 1,
- "LockKeyConflict": 2,
- "IO": 3,
- "BranchRollbackFailedRetryable": 4,
- "BranchRollbackFailedUnretryable": 5,
- "BranchRegisterFailed": 6,
- "BranchReportFailed": 7,
- "LockableCheckFailed": 8,
- "BranchTransactionNotExist": 9,
- "GlobalTransactionNotExist": 10,
- "GlobalTransactionNotActive": 11,
- "GlobalTransactionStatusInvalid": 12,
- "FailedToSendBranchCommitRequest": 13,
- "FailedToSendBranchRollbackRequest": 14,
- "FailedToAddBranch": 15,
- "FailedLockGlobalTransaction": 16,
- "FailedWriteSession": 17,
- "FailedStore": 18,
- }
-
- func (ExceptionCode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1}
- }
-
- type BranchMessageType int32
-
- const (
- TypeBranchCommit BranchMessageType = 0
- TypeBranchCommitResult BranchMessageType = 1
- TypeBranchRollback BranchMessageType = 2
- TypeBranchRollBackResult BranchMessageType = 3
- )
-
- var BranchMessageType_name = map[int32]string{
- 0: "TypeBranchCommit",
- 1: "TypeBranchCommitResult",
- 2: "TypeBranchRollback",
- 3: "TypeBranchRollBackResult",
- }
-
- var BranchMessageType_value = map[string]int32{
- "TypeBranchCommit": 0,
- "TypeBranchCommitResult": 1,
- "TypeBranchRollback": 2,
- "TypeBranchRollBackResult": 3,
- }
-
- func (BranchMessageType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{2}
- }
-
- type GlobalSession_GlobalStatus int32
-
- const (
- // Un known global status.
- UnknownGlobalStatus GlobalSession_GlobalStatus = 0
- // PHASE 1: can accept new branch registering.
- Begin GlobalSession_GlobalStatus = 1
- // PHASE 2: Running Status: may be changed any time.
- Committing GlobalSession_GlobalStatus = 2
- // The Commit retrying.
- // Retrying commit after a recoverable failure.
- CommitRetrying GlobalSession_GlobalStatus = 3
- // Rolling back global status.
- RollingBack GlobalSession_GlobalStatus = 4
- // The Rollback retrying.
- // Retrying rollback after a recoverable failure.
- RollbackRetrying GlobalSession_GlobalStatus = 5
- // The Timeout rolling back.
- // Rolling back since timeout
- TimeoutRollingBack GlobalSession_GlobalStatus = 6
- // The Timeout rollback retrying.
- // Retrying rollback (since timeout) after a recoverable failure.
- TimeoutRollbackRetrying GlobalSession_GlobalStatus = 7
- // All branches can be async committed. The committing is NOT done yet, but it can be seen as
- // committed for TM/RM rpc_client.
- AsyncCommitting GlobalSession_GlobalStatus = 8
- // PHASE 2: Final Status: will NOT change any more.
- // Finally: global transaction is successfully committed.
- Committed GlobalSession_GlobalStatus = 9
- // The Commit failed.
- // Finally: failed to commit
- CommitFailed GlobalSession_GlobalStatus = 10
- // The RolledBack.
- // Finally: global transaction is successfully rollback.
- RolledBack GlobalSession_GlobalStatus = 11
- // The Rollback failed.
- // Finally: failed to rollback
- RollbackFailed GlobalSession_GlobalStatus = 12
- // The Timeout rolled back.
- // Finally: global transaction is successfully rollback since timeout.
- TimeoutRolledBack GlobalSession_GlobalStatus = 13
- // The Timeout rollback failed.
- // Finally: failed to rollback since timeout
- TimeoutRollbackFailed GlobalSession_GlobalStatus = 14
- // The Finished.
- // Not managed in getty_session MAP any more
- Finished GlobalSession_GlobalStatus = 15
- )
-
- var GlobalSession_GlobalStatus_name = map[int32]string{
- 0: "UnknownGlobalStatus",
- 1: "Begin",
- 2: "Committing",
- 3: "CommitRetrying",
- 4: "RollingBack",
- 5: "RollbackRetrying",
- 6: "TimeoutRollingBack",
- 7: "TimeoutRollbackRetrying",
- 8: "AsyncCommitting",
- 9: "Committed",
- 10: "CommitFailed",
- 11: "RolledBack",
- 12: "RollbackFailed",
- 13: "TimeoutRolledBack",
- 14: "TimeoutRollbackFailed",
- 15: "Finished",
- }
-
- var GlobalSession_GlobalStatus_value = map[string]int32{
- "UnknownGlobalStatus": 0,
- "Begin": 1,
- "Committing": 2,
- "CommitRetrying": 3,
- "RollingBack": 4,
- "RollbackRetrying": 5,
- "TimeoutRollingBack": 6,
- "TimeoutRollbackRetrying": 7,
- "AsyncCommitting": 8,
- "Committed": 9,
- "CommitFailed": 10,
- "RolledBack": 11,
- "RollbackFailed": 12,
- "TimeoutRolledBack": 13,
- "TimeoutRollbackFailed": 14,
- "Finished": 15,
- }
-
- func (GlobalSession_GlobalStatus) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0, 0}
- }
-
- type BranchSession_BranchType int32
-
- const (
- AT BranchSession_BranchType = 0
- TCC BranchSession_BranchType = 1
- SAGA BranchSession_BranchType = 2
- XA BranchSession_BranchType = 3
- )
-
- var BranchSession_BranchType_name = map[int32]string{
- 0: "AT",
- 1: "TCC",
- 2: "SAGA",
- 3: "XA",
- }
-
- var BranchSession_BranchType_value = map[string]int32{
- "AT": 0,
- "TCC": 1,
- "SAGA": 2,
- "XA": 3,
- }
-
- func (BranchSession_BranchType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1, 0}
- }
-
- type BranchSession_BranchStatus int32
-
- const (
- // description:BranchStatus_Unknown branch status.
- UnknownBranchStatus BranchSession_BranchStatus = 0
- // description:BranchStatus_Registered to TC.
- Registered BranchSession_BranchStatus = 1
- // The Phase one done.
- // description:Branch logic is successfully done at phase one.
- PhaseOneDone BranchSession_BranchStatus = 2
- // The Phase one failed.
- // description:Branch logic is failed at phase one.
- PhaseOneFailed BranchSession_BranchStatus = 3
- // The Phase one timeout.
- // description:Branch logic is NOT reported for a timeout.
- PhaseOneTimeout BranchSession_BranchStatus = 4
- // The Phase two committed.
- // description:Commit logic is successfully done at phase two.
- PhaseTwoCommitted BranchSession_BranchStatus = 5
- // The Phase two commit failed retryable.
- // description:Commit logic is failed but retryable.
- PhaseTwoCommitFailedRetryable BranchSession_BranchStatus = 6
- // The Phase two commit failed and can not retry.
- // description:Commit logic is failed and NOT retryable.
- PhaseTwoCommitFailedCanNotRetry BranchSession_BranchStatus = 7
- // The Phase two rollback completed.
- // description:Rollback logic is successfully done at phase two.
- PhaseTwoRolledBack BranchSession_BranchStatus = 8
- // The Phase two rollback failed retryable.
- // description:Rollback logic is failed but retryable.
- PhaseTwoRollbackFailedRetryable BranchSession_BranchStatus = 9
- // The Phase two rollback failed and can not retry.
- // description:Rollback logic is failed but NOT retryable.
- PhaseTwoRollbackFailedCanNotRetry BranchSession_BranchStatus = 10
- )
-
- var BranchSession_BranchStatus_name = map[int32]string{
- 0: "UnknownBranchStatus",
- 1: "Registered",
- 2: "PhaseOneDone",
- 3: "PhaseOneFailed",
- 4: "PhaseOneTimeout",
- 5: "PhaseTwoCommitted",
- 6: "PhaseTwoCommitFailedRetryable",
- 7: "PhaseTwoCommitFailedCanNotRetry",
- 8: "PhaseTwoRolledBack",
- 9: "PhaseTwoRollbackFailedRetryable",
- 10: "PhaseTwoRollbackFailedCanNotRetry",
- }
-
- var BranchSession_BranchStatus_value = map[string]int32{
- "UnknownBranchStatus": 0,
- "Registered": 1,
- "PhaseOneDone": 2,
- "PhaseOneFailed": 3,
- "PhaseOneTimeout": 4,
- "PhaseTwoCommitted": 5,
- "PhaseTwoCommitFailedRetryable": 6,
- "PhaseTwoCommitFailedCanNotRetry": 7,
- "PhaseTwoRolledBack": 8,
- "PhaseTwoRollbackFailedRetryable": 9,
- "PhaseTwoRollbackFailedCanNotRetry": 10,
- }
-
- func (BranchSession_BranchStatus) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1, 1}
- }
-
- type GlobalSession struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- TransactionID int64 `protobuf:"varint,3,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- TransactionName string `protobuf:"bytes,4,opt,name=TransactionName,proto3" json:"TransactionName,omitempty" xorm:"transaction_name"`
- Timeout int32 `protobuf:"varint,5,opt,name=Timeout,proto3" json:"Timeout,omitempty" xorm:"timeout"`
- BeginTime int64 `protobuf:"varint,6,opt,name=BeginTime,proto3" json:"BeginTime,omitempty" xorm:"begin_time"`
- Status GlobalSession_GlobalStatus `protobuf:"varint,7,opt,name=Status,proto3,enum=apis.GlobalSession_GlobalStatus" json:"Status,omitempty" xorm:"status"`
- Active bool `protobuf:"varint,8,opt,name=Active,proto3" json:"Active,omitempty" xorm:"active"`
- }
-
- func (m *GlobalSession) Reset() { *m = GlobalSession{} }
- func (*GlobalSession) ProtoMessage() {}
- func (*GlobalSession) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0}
- }
- func (m *GlobalSession) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalSession.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalSession) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalSession.Merge(m, src)
- }
- func (m *GlobalSession) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalSession) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalSession.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalSession proto.InternalMessageInfo
-
- func (m *GlobalSession) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *GlobalSession) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalSession) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *GlobalSession) GetTransactionName() string {
- if m != nil {
- return m.TransactionName
- }
- return ""
- }
-
- func (m *GlobalSession) GetTimeout() int32 {
- if m != nil {
- return m.Timeout
- }
- return 0
- }
-
- func (m *GlobalSession) GetBeginTime() int64 {
- if m != nil {
- return m.BeginTime
- }
- return 0
- }
-
- func (m *GlobalSession) GetStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.Status
- }
- return UnknownGlobalStatus
- }
-
- func (m *GlobalSession) GetActive() bool {
- if m != nil {
- return m.Active
- }
- return false
- }
-
- type BranchSession struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
- TransactionID int64 `protobuf:"varint,4,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- ResourceID string `protobuf:"bytes,5,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
- LockKey string `protobuf:"bytes,6,opt,name=LockKey,proto3" json:"LockKey,omitempty" xorm:"lock_key"`
- Type BranchSession_BranchType `protobuf:"varint,7,opt,name=Type,proto3,enum=apis.BranchSession_BranchType" json:"Type,omitempty" xorm:"branch_type"`
- Status BranchSession_BranchStatus `protobuf:"varint,8,opt,name=Status,proto3,enum=apis.BranchSession_BranchStatus" json:"Status,omitempty" xorm:"status"`
- ApplicationData []byte `protobuf:"bytes,9,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty" xorm:"application_data"`
- AsyncCommit bool `protobuf:"varint,10,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty" xorm:"async_commit"`
- }
-
- func (m *BranchSession) Reset() { *m = BranchSession{} }
- func (*BranchSession) ProtoMessage() {}
- func (*BranchSession) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1}
- }
- func (m *BranchSession) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchSession.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchSession) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchSession.Merge(m, src)
- }
- func (m *BranchSession) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchSession) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchSession.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchSession proto.InternalMessageInfo
-
- func (m *BranchSession) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *BranchSession) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchSession) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchSession) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *BranchSession) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchSession) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchSession) GetType() BranchSession_BranchType {
- if m != nil {
- return m.Type
- }
- return AT
- }
-
- func (m *BranchSession) GetStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.Status
- }
- return UnknownBranchStatus
- }
-
- func (m *BranchSession) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- func (m *BranchSession) GetAsyncCommit() bool {
- if m != nil {
- return m.AsyncCommit
- }
- return false
- }
-
- type RowLock struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- TransactionID int64 `protobuf:"varint,2,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
- ResourceID string `protobuf:"bytes,4,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
- TableName string `protobuf:"bytes,5,opt,name=TableName,proto3" json:"TableName,omitempty" xorm:"table_name"`
- PK string `protobuf:"bytes,6,opt,name=PK,proto3" json:"PK,omitempty" xorm:"pk"`
- RowKey string `protobuf:"bytes,7,opt,name=RowKey,proto3" json:"RowKey,omitempty" xorm:"row_key"`
- }
-
- func (m *RowLock) Reset() { *m = RowLock{} }
- func (*RowLock) ProtoMessage() {}
- func (*RowLock) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{2}
- }
- func (m *RowLock) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RowLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RowLock.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *RowLock) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RowLock.Merge(m, src)
- }
- func (m *RowLock) XXX_Size() int {
- return m.Size()
- }
- func (m *RowLock) XXX_DiscardUnknown() {
- xxx_messageInfo_RowLock.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_RowLock proto.InternalMessageInfo
-
- func (m *RowLock) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *RowLock) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *RowLock) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *RowLock) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *RowLock) GetTableName() string {
- if m != nil {
- return m.TableName
- }
- return ""
- }
-
- func (m *RowLock) GetPK() string {
- if m != nil {
- return m.PK
- }
- return ""
- }
-
- func (m *RowLock) GetRowKey() string {
- if m != nil {
- return m.RowKey
- }
- return ""
- }
-
- // GlobalBeginRequest represents a global transaction begin
- type GlobalBeginRequest struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
- Timeout int32 `protobuf:"varint,2,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
- TransactionName string `protobuf:"bytes,3,opt,name=TransactionName,proto3" json:"TransactionName,omitempty"`
- }
-
- func (m *GlobalBeginRequest) Reset() { *m = GlobalBeginRequest{} }
- func (*GlobalBeginRequest) ProtoMessage() {}
- func (*GlobalBeginRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{3}
- }
- func (m *GlobalBeginRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalBeginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalBeginRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalBeginRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalBeginRequest.Merge(m, src)
- }
- func (m *GlobalBeginRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalBeginRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalBeginRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalBeginRequest proto.InternalMessageInfo
-
- func (m *GlobalBeginRequest) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *GlobalBeginRequest) GetTimeout() int32 {
- if m != nil {
- return m.Timeout
- }
- return 0
- }
-
- func (m *GlobalBeginRequest) GetTransactionName() string {
- if m != nil {
- return m.TransactionName
- }
- return ""
- }
-
- // GlobalBeginResponse represents a response to GlobalBeginRequest
- type GlobalBeginResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalBeginResponse) Reset() { *m = GlobalBeginResponse{} }
- func (*GlobalBeginResponse) ProtoMessage() {}
- func (*GlobalBeginResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{4}
- }
- func (m *GlobalBeginResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalBeginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalBeginResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalBeginResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalBeginResponse.Merge(m, src)
- }
- func (m *GlobalBeginResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalBeginResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalBeginResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalBeginResponse proto.InternalMessageInfo
-
- func (m *GlobalBeginResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalBeginResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalBeginResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalBeginResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // BranchRegisterRequest represents a branch transaction join in the global transaction
- type BranchRegisterRequest struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- AsyncCommit bool `protobuf:"varint,7,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty"`
- }
-
- func (m *BranchRegisterRequest) Reset() { *m = BranchRegisterRequest{} }
- func (*BranchRegisterRequest) ProtoMessage() {}
- func (*BranchRegisterRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{5}
- }
- func (m *BranchRegisterRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRegisterRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRegisterRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRegisterRequest.Merge(m, src)
- }
- func (m *BranchRegisterRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRegisterRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRegisterRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRegisterRequest proto.InternalMessageInfo
-
- func (m *BranchRegisterRequest) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchRegisterRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- func (m *BranchRegisterRequest) GetAsyncCommit() bool {
- if m != nil {
- return m.AsyncCommit
- }
- return false
- }
-
- // BranchRegisterResponse represents a response to BranchRegisterRequest
- type BranchRegisterResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- BranchID int64 `protobuf:"varint,4,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- }
-
- func (m *BranchRegisterResponse) Reset() { *m = BranchRegisterResponse{} }
- func (*BranchRegisterResponse) ProtoMessage() {}
- func (*BranchRegisterResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{6}
- }
- func (m *BranchRegisterResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRegisterResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRegisterResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRegisterResponse.Merge(m, src)
- }
- func (m *BranchRegisterResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRegisterResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRegisterResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRegisterResponse proto.InternalMessageInfo
-
- func (m *BranchRegisterResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchRegisterResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchRegisterResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchRegisterResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- // BranchReportRequest represents a request to report branch transaction execution status
- type BranchReportRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,5,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchReportRequest) Reset() { *m = BranchReportRequest{} }
- func (*BranchReportRequest) ProtoMessage() {}
- func (*BranchReportRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{7}
- }
- func (m *BranchReportRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchReportRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchReportRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchReportRequest.Merge(m, src)
- }
- func (m *BranchReportRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchReportRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchReportRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchReportRequest proto.InternalMessageInfo
-
- func (m *BranchReportRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchReportRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchReportRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchReportRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchReportRequest) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- func (m *BranchReportRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchReportResponse represents a response to BranchReportRequest
- type BranchReportResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- }
-
- func (m *BranchReportResponse) Reset() { *m = BranchReportResponse{} }
- func (*BranchReportResponse) ProtoMessage() {}
- func (*BranchReportResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{8}
- }
- func (m *BranchReportResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchReportResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchReportResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchReportResponse.Merge(m, src)
- }
- func (m *BranchReportResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchReportResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchReportResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchReportResponse proto.InternalMessageInfo
-
- func (m *BranchReportResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchReportResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchReportResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- // GlobalLockQueryRequest represents a request to query the global lock
- type GlobalLockQueryRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- ResourceID string `protobuf:"bytes,2,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,3,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- }
-
- func (m *GlobalLockQueryRequest) Reset() { *m = GlobalLockQueryRequest{} }
- func (*GlobalLockQueryRequest) ProtoMessage() {}
- func (*GlobalLockQueryRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{9}
- }
- func (m *GlobalLockQueryRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalLockQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalLockQueryRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalLockQueryRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalLockQueryRequest.Merge(m, src)
- }
- func (m *GlobalLockQueryRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalLockQueryRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalLockQueryRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalLockQueryRequest proto.InternalMessageInfo
-
- func (m *GlobalLockQueryRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- // GlobalLockQueryResponse represents a response to GlobalLockQueryRequest
- type GlobalLockQueryResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- Lockable bool `protobuf:"varint,4,opt,name=Lockable,proto3" json:"Lockable,omitempty"`
- }
-
- func (m *GlobalLockQueryResponse) Reset() { *m = GlobalLockQueryResponse{} }
- func (*GlobalLockQueryResponse) ProtoMessage() {}
- func (*GlobalLockQueryResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{10}
- }
- func (m *GlobalLockQueryResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalLockQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalLockQueryResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalLockQueryResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalLockQueryResponse.Merge(m, src)
- }
- func (m *GlobalLockQueryResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalLockQueryResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalLockQueryResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalLockQueryResponse proto.InternalMessageInfo
-
- func (m *GlobalLockQueryResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalLockQueryResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalLockQueryResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalLockQueryResponse) GetLockable() bool {
- if m != nil {
- return m.Lockable
- }
- return false
- }
-
- // GlobalStatusRequest represents a request to query the global transaction status
- type GlobalStatusRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalStatusRequest) Reset() { *m = GlobalStatusRequest{} }
- func (*GlobalStatusRequest) ProtoMessage() {}
- func (*GlobalStatusRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{11}
- }
- func (m *GlobalStatusRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalStatusRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalStatusRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalStatusRequest.Merge(m, src)
- }
- func (m *GlobalStatusRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalStatusRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalStatusRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalStatusRequest proto.InternalMessageInfo
-
- func (m *GlobalStatusRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalStatusResponse represents a response to GlobalStatusRequest
- type GlobalStatusResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalStatusResponse) Reset() { *m = GlobalStatusResponse{} }
- func (*GlobalStatusResponse) ProtoMessage() {}
- func (*GlobalStatusResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{12}
- }
- func (m *GlobalStatusResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalStatusResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalStatusResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalStatusResponse.Merge(m, src)
- }
- func (m *GlobalStatusResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalStatusResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalStatusResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalStatusResponse proto.InternalMessageInfo
-
- func (m *GlobalStatusResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalStatusResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalStatusResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalStatusResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalCommitRequest represents a request to commit global transaction
- type GlobalCommitRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalCommitRequest) Reset() { *m = GlobalCommitRequest{} }
- func (*GlobalCommitRequest) ProtoMessage() {}
- func (*GlobalCommitRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{13}
- }
- func (m *GlobalCommitRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalCommitRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalCommitRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalCommitRequest.Merge(m, src)
- }
- func (m *GlobalCommitRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalCommitRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalCommitRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalCommitRequest proto.InternalMessageInfo
-
- func (m *GlobalCommitRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalCommitResponse represents a response to GlobalCommitRequest
- type GlobalCommitResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalCommitResponse) Reset() { *m = GlobalCommitResponse{} }
- func (*GlobalCommitResponse) ProtoMessage() {}
- func (*GlobalCommitResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{14}
- }
- func (m *GlobalCommitResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalCommitResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalCommitResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalCommitResponse.Merge(m, src)
- }
- func (m *GlobalCommitResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalCommitResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalCommitResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalCommitResponse proto.InternalMessageInfo
-
- func (m *GlobalCommitResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalCommitResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalCommitResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalCommitResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalRollbackRequest represents a request to rollback global transaction
- type GlobalRollbackRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalRollbackRequest) Reset() { *m = GlobalRollbackRequest{} }
- func (*GlobalRollbackRequest) ProtoMessage() {}
- func (*GlobalRollbackRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{15}
- }
- func (m *GlobalRollbackRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalRollbackRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalRollbackRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalRollbackRequest.Merge(m, src)
- }
- func (m *GlobalRollbackRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalRollbackRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalRollbackRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalRollbackRequest proto.InternalMessageInfo
-
- func (m *GlobalRollbackRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalRollbackResponse represents a response to GlobalRollbackRequest
- type GlobalRollbackResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalRollbackResponse) Reset() { *m = GlobalRollbackResponse{} }
- func (*GlobalRollbackResponse) ProtoMessage() {}
- func (*GlobalRollbackResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{16}
- }
- func (m *GlobalRollbackResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalRollbackResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalRollbackResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalRollbackResponse.Merge(m, src)
- }
- func (m *GlobalRollbackResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalRollbackResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalRollbackResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalRollbackResponse proto.InternalMessageInfo
-
- func (m *GlobalRollbackResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalRollbackResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalRollbackResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalRollbackResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalReportRequest represents a request to report global transaction execution status
- type GlobalReportRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,2,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalReportRequest) Reset() { *m = GlobalReportRequest{} }
- func (*GlobalReportRequest) ProtoMessage() {}
- func (*GlobalReportRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{17}
- }
- func (m *GlobalReportRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalReportRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalReportRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalReportRequest.Merge(m, src)
- }
- func (m *GlobalReportRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalReportRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalReportRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalReportRequest proto.InternalMessageInfo
-
- func (m *GlobalReportRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalReportRequest) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalReportResponse represents a response to GlobalReportRequest
- type GlobalReportResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalReportResponse) Reset() { *m = GlobalReportResponse{} }
- func (*GlobalReportResponse) ProtoMessage() {}
- func (*GlobalReportResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{18}
- }
- func (m *GlobalReportResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalReportResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalReportResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalReportResponse.Merge(m, src)
- }
- func (m *GlobalReportResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalReportResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalReportResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalReportResponse proto.InternalMessageInfo
-
- func (m *GlobalReportResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalReportResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalReportResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalReportResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // BranchCommitRequest represents a request to commit branch transaction
- type BranchCommitRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchCommitRequest) Reset() { *m = BranchCommitRequest{} }
- func (*BranchCommitRequest) ProtoMessage() {}
- func (*BranchCommitRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{19}
- }
- func (m *BranchCommitRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchCommitRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchCommitRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchCommitRequest.Merge(m, src)
- }
- func (m *BranchCommitRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchCommitRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchCommitRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchCommitRequest proto.InternalMessageInfo
-
- func (m *BranchCommitRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchCommitRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchCommitRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchCommitResponse represents a response to BranchCommitRequest
- type BranchCommitResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- }
-
- func (m *BranchCommitResponse) Reset() { *m = BranchCommitResponse{} }
- func (*BranchCommitResponse) ProtoMessage() {}
- func (*BranchCommitResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{20}
- }
- func (m *BranchCommitResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchCommitResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchCommitResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchCommitResponse.Merge(m, src)
- }
- func (m *BranchCommitResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchCommitResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchCommitResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchCommitResponse proto.InternalMessageInfo
-
- func (m *BranchCommitResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchCommitResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchCommitResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchCommitResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchCommitResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchCommitResponse) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- // BranchCommitRequest represents a request to rollback branch transaction
- type BranchRollbackRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchRollbackRequest) Reset() { *m = BranchRollbackRequest{} }
- func (*BranchRollbackRequest) ProtoMessage() {}
- func (*BranchRollbackRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{21}
- }
- func (m *BranchRollbackRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRollbackRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRollbackRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRollbackRequest.Merge(m, src)
- }
- func (m *BranchRollbackRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRollbackRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRollbackRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRollbackRequest proto.InternalMessageInfo
-
- func (m *BranchRollbackRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchRollbackRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchRollbackRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchRollbackResponse represents a response to BranchRollbackRequest
- type BranchRollbackResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- }
-
- func (m *BranchRollbackResponse) Reset() { *m = BranchRollbackResponse{} }
- func (*BranchRollbackResponse) ProtoMessage() {}
- func (*BranchRollbackResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{22}
- }
- func (m *BranchRollbackResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRollbackResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRollbackResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRollbackResponse.Merge(m, src)
- }
- func (m *BranchRollbackResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRollbackResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRollbackResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRollbackResponse proto.InternalMessageInfo
-
- func (m *BranchRollbackResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchRollbackResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchRollbackResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchRollbackResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRollbackResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchRollbackResponse) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- type BranchMessage struct {
- ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
- BranchMessageType BranchMessageType `protobuf:"varint,2,opt,name=BranchMessageType,proto3,enum=apis.BranchMessageType" json:"BranchMessageType,omitempty"`
- Message *types.Any `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- }
-
- func (m *BranchMessage) Reset() { *m = BranchMessage{} }
- func (*BranchMessage) ProtoMessage() {}
- func (*BranchMessage) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{23}
- }
- func (m *BranchMessage) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchMessage.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchMessage) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchMessage.Merge(m, src)
- }
- func (m *BranchMessage) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchMessage) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchMessage.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchMessage proto.InternalMessageInfo
-
- func (m *BranchMessage) GetID() int64 {
- if m != nil {
- return m.ID
- }
- return 0
- }
-
- func (m *BranchMessage) GetBranchMessageType() BranchMessageType {
- if m != nil {
- return m.BranchMessageType
- }
- return TypeBranchCommit
- }
-
- func (m *BranchMessage) GetMessage() *types.Any {
- if m != nil {
- return m.Message
- }
- return nil
- }
-
- func init() {
- proto.RegisterEnum("apis.ResultCode", ResultCode_name, ResultCode_value)
- proto.RegisterEnum("apis.ExceptionCode", ExceptionCode_name, ExceptionCode_value)
- proto.RegisterEnum("apis.BranchMessageType", BranchMessageType_name, BranchMessageType_value)
- proto.RegisterEnum("apis.GlobalSession_GlobalStatus", GlobalSession_GlobalStatus_name, GlobalSession_GlobalStatus_value)
- proto.RegisterEnum("apis.BranchSession_BranchType", BranchSession_BranchType_name, BranchSession_BranchType_value)
- proto.RegisterEnum("apis.BranchSession_BranchStatus", BranchSession_BranchStatus_name, BranchSession_BranchStatus_value)
- proto.RegisterType((*GlobalSession)(nil), "apis.GlobalSession")
- proto.RegisterType((*BranchSession)(nil), "apis.BranchSession")
- proto.RegisterType((*RowLock)(nil), "apis.RowLock")
- proto.RegisterType((*GlobalBeginRequest)(nil), "apis.GlobalBeginRequest")
- proto.RegisterType((*GlobalBeginResponse)(nil), "apis.GlobalBeginResponse")
- proto.RegisterType((*BranchRegisterRequest)(nil), "apis.BranchRegisterRequest")
- proto.RegisterType((*BranchRegisterResponse)(nil), "apis.BranchRegisterResponse")
- proto.RegisterType((*BranchReportRequest)(nil), "apis.BranchReportRequest")
- proto.RegisterType((*BranchReportResponse)(nil), "apis.BranchReportResponse")
- proto.RegisterType((*GlobalLockQueryRequest)(nil), "apis.GlobalLockQueryRequest")
- proto.RegisterType((*GlobalLockQueryResponse)(nil), "apis.GlobalLockQueryResponse")
- proto.RegisterType((*GlobalStatusRequest)(nil), "apis.GlobalStatusRequest")
- proto.RegisterType((*GlobalStatusResponse)(nil), "apis.GlobalStatusResponse")
- proto.RegisterType((*GlobalCommitRequest)(nil), "apis.GlobalCommitRequest")
- proto.RegisterType((*GlobalCommitResponse)(nil), "apis.GlobalCommitResponse")
- proto.RegisterType((*GlobalRollbackRequest)(nil), "apis.GlobalRollbackRequest")
- proto.RegisterType((*GlobalRollbackResponse)(nil), "apis.GlobalRollbackResponse")
- proto.RegisterType((*GlobalReportRequest)(nil), "apis.GlobalReportRequest")
- proto.RegisterType((*GlobalReportResponse)(nil), "apis.GlobalReportResponse")
- proto.RegisterType((*BranchCommitRequest)(nil), "apis.BranchCommitRequest")
- proto.RegisterType((*BranchCommitResponse)(nil), "apis.BranchCommitResponse")
- proto.RegisterType((*BranchRollbackRequest)(nil), "apis.BranchRollbackRequest")
- proto.RegisterType((*BranchRollbackResponse)(nil), "apis.BranchRollbackResponse")
- proto.RegisterType((*BranchMessage)(nil), "apis.BranchMessage")
- }
-
- func init() { proto.RegisterFile("seata.proto", fileDescriptor_450a439f8893981f) }
-
- var fileDescriptor_450a439f8893981f = []byte{
- // 1943 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4f, 0x6f, 0x23, 0x49,
- 0x15, 0x77, 0xb7, 0xff, 0xbf, 0xc4, 0x76, 0xa5, 0x3c, 0x49, 0x1c, 0xcf, 0xa6, 0xed, 0xe9, 0xd5,
- 0x0a, 0xef, 0x88, 0xcd, 0x8c, 0x32, 0x80, 0x34, 0x08, 0xb1, 0xb2, 0x93, 0xec, 0x10, 0xc2, 0xee,
- 0x0e, 0x9d, 0xac, 0xd8, 0x5b, 0xd4, 0xb1, 0x6b, 0x9d, 0x56, 0x9c, 0x6e, 0xd3, 0xdd, 0x9e, 0xc4,
- 0xe2, 0xc2, 0x37, 0x58, 0xd0, 0x4a, 0x1c, 0x90, 0xb8, 0x71, 0xe0, 0xc4, 0x8d, 0x03, 0x82, 0x33,
- 0xe2, 0xc0, 0x61, 0x4e, 0x68, 0x4f, 0x16, 0x93, 0x11, 0x02, 0x24, 0x0e, 0x2b, 0x7f, 0x02, 0x54,
- 0x7f, 0xda, 0x5d, 0x65, 0x3b, 0xeb, 0xc9, 0x02, 0x22, 0xec, 0xcd, 0xf5, 0xde, 0xaf, 0x5e, 0x55,
- 0xbf, 0xf7, 0x7e, 0xef, 0x55, 0x95, 0x61, 0x29, 0x20, 0x76, 0x68, 0x6f, 0xf5, 0x7d, 0x2f, 0xf4,
- 0x70, 0xca, 0xee, 0x3b, 0x41, 0xf5, 0xad, 0xae, 0x13, 0x9e, 0x0e, 0x4e, 0xb6, 0xda, 0xde, 0xf9,
- 0x83, 0xae, 0xd7, 0xf5, 0x1e, 0x30, 0xe5, 0xc9, 0xe0, 0x23, 0x36, 0x62, 0x03, 0xf6, 0x8b, 0x4f,
- 0xaa, 0x6e, 0x74, 0x3d, 0xaf, 0xdb, 0x23, 0x31, 0xca, 0x76, 0x87, 0x5c, 0x65, 0xfe, 0x3c, 0x03,
- 0x85, 0x27, 0x3d, 0xef, 0xc4, 0xee, 0x1d, 0x92, 0x20, 0x70, 0x3c, 0x17, 0x7f, 0x1d, 0xa0, 0xd9,
- 0xe9, 0xf8, 0x74, 0xe4, 0x76, 0x2b, 0x5a, 0x5d, 0x6b, 0xe4, 0x5b, 0xab, 0xe3, 0x51, 0x6d, 0xe5,
- 0xd2, 0xf3, 0xcf, 0xbf, 0x69, 0xda, 0x13, 0x9d, 0x69, 0x49, 0x40, 0x5c, 0x87, 0xe4, 0x87, 0xfb,
- 0xbb, 0x15, 0x9d, 0xe1, 0x8b, 0xe3, 0x51, 0x0d, 0x38, 0xfe, 0xd2, 0xe9, 0x98, 0x16, 0x55, 0xe1,
- 0xb7, 0xa1, 0x70, 0xe4, 0xdb, 0x6e, 0x60, 0xb7, 0x43, 0xc7, 0x73, 0xf7, 0x77, 0x2b, 0xc9, 0xba,
- 0xd6, 0x48, 0xb6, 0x36, 0xc6, 0xa3, 0xda, 0x2a, 0xc7, 0x86, 0xb1, 0xfa, 0x98, 0x4e, 0x53, 0xf1,
- 0x78, 0x0f, 0x4a, 0x92, 0xe0, 0x3d, 0xfb, 0x9c, 0x54, 0x52, 0x6c, 0xb9, 0xbb, 0xe3, 0x51, 0x6d,
- 0x7d, 0xd6, 0x84, 0x6b, 0x9f, 0x13, 0xd3, 0x9a, 0x9e, 0x83, 0xbf, 0x0a, 0xd9, 0x23, 0xe7, 0x9c,
- 0x78, 0x83, 0xb0, 0x92, 0xae, 0x6b, 0x8d, 0x74, 0x0b, 0x8f, 0x47, 0xb5, 0xa2, 0x98, 0xce, 0x15,
- 0xa6, 0x15, 0x41, 0xf0, 0x23, 0xc8, 0xb7, 0x48, 0xd7, 0x71, 0xe9, 0xb8, 0x92, 0x61, 0x3b, 0x96,
- 0xbc, 0x71, 0x42, 0x55, 0xc7, 0x74, 0x96, 0x69, 0xc5, 0x38, 0x7c, 0x00, 0x99, 0xc3, 0xd0, 0x0e,
- 0x07, 0x41, 0x25, 0x5b, 0xd7, 0x1a, 0xc5, 0xed, 0xfa, 0x16, 0x0d, 0xdb, 0x96, 0xe2, 0xe8, 0x68,
- 0xc4, 0x70, 0xad, 0x95, 0xf1, 0xa8, 0x56, 0xe0, 0x36, 0x03, 0x26, 0x31, 0x2d, 0x61, 0x02, 0xbf,
- 0x09, 0x99, 0x66, 0x3b, 0x74, 0x9e, 0x91, 0x4a, 0xae, 0xae, 0x35, 0x72, 0x32, 0xd4, 0x66, 0x72,
- 0xd3, 0x12, 0x00, 0xf3, 0x4f, 0x3a, 0x2c, 0xcb, 0x66, 0xf1, 0x3a, 0x94, 0x3f, 0x70, 0xcf, 0x5c,
- 0xef, 0xc2, 0x95, 0xc5, 0x28, 0x81, 0xf3, 0x90, 0x66, 0xdb, 0x45, 0x1a, 0x2e, 0x02, 0xec, 0x78,
- 0xe7, 0xe7, 0x4e, 0x18, 0x3a, 0x6e, 0x17, 0xe9, 0x18, 0x43, 0x91, 0x8f, 0x2d, 0x12, 0xfa, 0x43,
- 0x2a, 0x4b, 0xe2, 0x12, 0x2c, 0x59, 0x5e, 0xaf, 0xe7, 0xb8, 0xdd, 0x96, 0xdd, 0x3e, 0x43, 0x29,
- 0x7c, 0x07, 0x10, 0x15, 0x9c, 0xd8, 0xed, 0xb3, 0x09, 0x2c, 0x8d, 0xd7, 0x00, 0x0b, 0xbf, 0xc9,
- 0xe8, 0x0c, 0xbe, 0x0b, 0xeb, 0x92, 0x5c, 0x99, 0x94, 0xc5, 0x65, 0x28, 0x35, 0x83, 0xa1, 0xdb,
- 0x96, 0x36, 0x91, 0xc3, 0x05, 0xc8, 0x8b, 0x31, 0xe9, 0xa0, 0x3c, 0x46, 0xb0, 0xcc, 0x87, 0xef,
- 0xd8, 0x4e, 0x8f, 0x74, 0x10, 0xd0, 0x5d, 0x53, 0x5b, 0xa4, 0xc3, 0x96, 0x58, 0xa2, 0xbb, 0x8e,
- 0x6c, 0x0b, 0xcc, 0x32, 0x5e, 0x85, 0x15, 0x69, 0x59, 0x01, 0x2d, 0xe0, 0x0d, 0x58, 0x9d, 0xda,
- 0x8d, 0x98, 0x51, 0xc4, 0xcb, 0x90, 0x7b, 0xc7, 0x71, 0x9d, 0xe0, 0x94, 0x74, 0x50, 0xc9, 0xfc,
- 0x43, 0x16, 0x0a, 0x2d, 0xdf, 0x76, 0xdb, 0xa7, 0xff, 0x75, 0x72, 0x3c, 0x84, 0x1c, 0x5f, 0x69,
- 0xc2, 0x8b, 0x3b, 0xe3, 0x51, 0x0d, 0x89, 0x2c, 0x63, 0x1a, 0x46, 0x89, 0x09, 0x6a, 0x96, 0x4e,
- 0xa9, 0x1b, 0xd2, 0xe9, 0x1b, 0x00, 0x16, 0x09, 0xbc, 0x81, 0xdf, 0x26, 0xfb, 0xbb, 0x8c, 0x0a,
- 0xf9, 0xd6, 0xda, 0x78, 0x54, 0xc3, 0x7c, 0xb6, 0x2f, 0x74, 0x6c, 0xaa, 0x84, 0xc4, 0x6f, 0x41,
- 0xf6, 0x7b, 0x5e, 0xfb, 0xec, 0x80, 0x0c, 0x19, 0x1f, 0xf2, 0xad, 0xf2, 0x78, 0x54, 0x2b, 0xf1,
- 0x49, 0x3d, 0xaf, 0x7d, 0x76, 0x7c, 0x46, 0x86, 0xa6, 0x15, 0x61, 0xf0, 0x77, 0x21, 0x75, 0x34,
- 0xec, 0x13, 0xc1, 0x04, 0x83, 0x33, 0x41, 0xf1, 0xaa, 0x18, 0x51, 0x94, 0xbc, 0x01, 0xf1, 0xd5,
- 0xe1, 0xb0, 0x4f, 0x4c, 0x8b, 0xd9, 0x90, 0x78, 0x95, 0x93, 0x79, 0x35, 0xcf, 0xda, 0x62, 0x5e,
- 0xed, 0x41, 0xa9, 0xd9, 0xef, 0xf7, 0x9c, 0xb6, 0x4d, 0x1d, 0xb2, 0x6b, 0x87, 0x76, 0x25, 0x5f,
- 0xd7, 0x1a, 0xcb, 0x72, 0x39, 0xb1, 0x63, 0xc0, 0x71, 0xc7, 0x0e, 0x6d, 0xd3, 0x9a, 0x9e, 0x83,
- 0x1f, 0xc3, 0x92, 0x94, 0xbe, 0x15, 0x60, 0x1c, 0x5d, 0x1f, 0x8f, 0x6a, 0x65, 0x61, 0x82, 0x2a,
- 0x8f, 0xdb, 0x4c, 0x6b, 0x5a, 0x32, 0xd6, 0x7c, 0x00, 0x10, 0x7f, 0x3a, 0xce, 0x80, 0xde, 0x3c,
- 0x42, 0x09, 0x9c, 0x85, 0xe4, 0xd1, 0xce, 0x0e, 0xd2, 0x70, 0x0e, 0x52, 0x87, 0xcd, 0x27, 0x4d,
- 0xa4, 0x53, 0xd5, 0x87, 0x4d, 0x94, 0x34, 0x7f, 0xa3, 0xc3, 0xb2, 0xfc, 0x79, 0x12, 0xbf, 0x65,
- 0x31, 0x4a, 0x30, 0x7a, 0x90, 0xae, 0x13, 0x84, 0xc4, 0x27, 0x1d, 0xa4, 0x51, 0x02, 0x3d, 0x3d,
- 0xb5, 0x03, 0xf2, 0xbe, 0x4b, 0x76, 0x3d, 0x97, 0x70, 0x9a, 0x47, 0x12, 0x91, 0xfe, 0x49, 0x4a,
- 0xc5, 0x48, 0x26, 0x18, 0x82, 0x52, 0x94, 0x45, 0x4c, 0x78, 0x74, 0xe1, 0xc5, 0x94, 0x4c, 0xe3,
- 0x7b, 0xb0, 0xa9, 0x8a, 0xb9, 0x15, 0x46, 0x6c, 0xfb, 0xa4, 0x47, 0x50, 0x06, 0xbf, 0x0e, 0xb5,
- 0x79, 0x90, 0x1d, 0xdb, 0x7d, 0xcf, 0xe3, 0xd5, 0x05, 0x65, 0x69, 0xcd, 0x88, 0x40, 0x12, 0x4b,
- 0x73, 0xf2, 0x64, 0x95, 0xa6, 0xf1, 0x0a, 0x79, 0xfc, 0x06, 0xdc, 0x9b, 0x0f, 0x92, 0xd7, 0x00,
- 0xf3, 0xcf, 0x3a, 0x64, 0x2d, 0xef, 0x82, 0xa6, 0x64, 0xc4, 0x45, 0xed, 0x06, 0x8d, 0x4a, 0xbf,
- 0x21, 0xb3, 0x6e, 0x4e, 0x66, 0x95, 0x8b, 0xa9, 0x57, 0xe6, 0xe2, 0x23, 0xc8, 0x1f, 0x51, 0x57,
- 0xb0, 0x66, 0x98, 0x9e, 0x2e, 0x47, 0x21, 0x55, 0x89, 0x36, 0x18, 0xe3, 0xf0, 0x26, 0xe8, 0x4f,
- 0x0f, 0x04, 0x77, 0x0b, 0xe3, 0x51, 0x2d, 0xcf, 0xd1, 0xfd, 0x33, 0xd3, 0xd2, 0x9f, 0x1e, 0xe0,
- 0xfb, 0x90, 0xb1, 0xbc, 0x0b, 0x4a, 0xef, 0x2c, 0x83, 0x48, 0xed, 0xd1, 0xf7, 0x2e, 0x38, 0xbb,
- 0x05, 0xc2, 0xbc, 0x04, 0xcc, 0x1b, 0x0b, 0x6b, 0x26, 0x16, 0xf9, 0xe1, 0x80, 0x04, 0x21, 0x36,
- 0x66, 0xab, 0xa4, 0x52, 0x0e, 0x2b, 0x71, 0x07, 0xa6, 0xae, 0x4d, 0xc7, 0xdd, 0xb6, 0x31, 0xdb,
- 0xe2, 0x93, 0x6c, 0xfa, 0xb4, 0xd8, 0xfc, 0xb5, 0x06, 0x65, 0x65, 0xe9, 0xa0, 0xef, 0xb9, 0x01,
- 0xc1, 0x0f, 0x99, 0x27, 0x07, 0xbd, 0x70, 0xc7, 0xeb, 0x10, 0xb6, 0x76, 0x71, 0x1b, 0xf1, 0x32,
- 0x11, 0xcb, 0x2d, 0x09, 0x83, 0x1f, 0x43, 0x61, 0xef, 0xb2, 0x4d, 0xfa, 0xd4, 0x34, 0x9b, 0xa4,
- 0xb3, 0x49, 0x65, 0x3e, 0x49, 0x51, 0x59, 0x2a, 0x92, 0x7e, 0xc8, 0xbb, 0x24, 0x08, 0xec, 0x6e,
- 0xb4, 0xcd, 0x68, 0x88, 0x11, 0xcf, 0x32, 0x16, 0x49, 0x96, 0x55, 0xe6, 0xc7, 0x3a, 0xac, 0xf2,
- 0x78, 0x47, 0xc4, 0x7c, 0x55, 0x77, 0x21, 0xa9, 0x7b, 0xf0, 0x0c, 0x35, 0x94, 0x74, 0xe1, 0x4b,
- 0xcb, 0x69, 0x51, 0x89, 0x4b, 0x34, 0xdf, 0xc1, 0xa4, 0x1a, 0x7f, 0x5b, 0x2e, 0x39, 0x2c, 0x63,
- 0x16, 0xd6, 0x64, 0x4b, 0x2e, 0x52, 0x8d, 0xd9, 0xa2, 0x49, 0x13, 0x69, 0x79, 0xb6, 0x2e, 0xd6,
- 0xd5, 0xba, 0x48, 0x73, 0x29, 0xa7, 0x96, 0xbf, 0xdf, 0x69, 0xb0, 0x36, 0xed, 0x91, 0xdb, 0x15,
- 0xc5, 0xaa, 0x44, 0x64, 0xd6, 0x5e, 0x63, 0xca, 0x9a, 0x9f, 0xe8, 0x50, 0x8e, 0x76, 0xdf, 0xf7,
- 0xfc, 0x30, 0x8a, 0x26, 0x92, 0xea, 0x0b, 0x8f, 0x96, 0x6c, 0x45, 0x57, 0xad, 0x2c, 0x8c, 0xa4,
- 0x1a, 0xaf, 0xd4, 0x8d, 0xe3, 0xb5, 0xab, 0x36, 0x0c, 0x11, 0xf1, 0x85, 0x7d, 0xd3, 0x52, 0xdb,
- 0xcc, 0x2b, 0x47, 0xdd, 0xfc, 0x85, 0x06, 0x77, 0x54, 0xaf, 0xdc, 0xaa, 0x88, 0x9a, 0xbf, 0xd4,
- 0x60, 0x8d, 0x97, 0x0d, 0xca, 0x88, 0xef, 0x0f, 0x88, 0x3f, 0xbc, 0x3e, 0x70, 0x6a, 0x70, 0xf4,
- 0xcf, 0xa3, 0x59, 0xf2, 0xf3, 0x68, 0x76, 0xe3, 0xb0, 0x99, 0xbf, 0xd7, 0x60, 0x7d, 0x66, 0x9b,
- 0xb7, 0x8e, 0x1b, 0x74, 0x6f, 0xb4, 0xab, 0xb0, 0x0f, 0xcc, 0x59, 0x93, 0xb1, 0xf9, 0x95, 0xa8,
- 0x36, 0x8b, 0x6c, 0xba, 0xce, 0xc3, 0xe6, 0x4b, 0x0d, 0xee, 0xa8, 0xc8, 0xdb, 0xf5, 0x91, 0xbb,
- 0xea, 0x7d, 0x4a, 0x44, 0x72, 0xe1, 0x75, 0xce, 0x52, 0x66, 0xc5, 0xee, 0x88, 0xee, 0x55, 0x8b,
- 0xdd, 0x11, 0x21, 0xbf, 0x8c, 0xee, 0x78, 0x13, 0x56, 0xf9, 0x38, 0xbe, 0x0c, 0x5e, 0xe7, 0x90,
- 0xbf, 0x4e, 0xe8, 0x1a, 0x63, 0xbf, 0x8c, 0x2e, 0x39, 0x8f, 0x32, 0x64, 0x51, 0x2f, 0x99, 0x5e,
- 0x4e, 0xff, 0x42, 0xcb, 0xc5, 0x79, 0x76, 0x2b, 0xab, 0xf4, 0x7f, 0xc8, 0xa9, 0x7f, 0xd3, 0xa2,
- 0x0e, 0xbd, 0x80, 0x77, 0xff, 0x56, 0x87, 0xbe, 0x05, 0x67, 0x2d, 0xf3, 0xa7, 0x7a, 0xd4, 0x75,
- 0x6f, 0x67, 0xdd, 0x98, 0x39, 0x0d, 0x2b, 0x1e, 0x4f, 0x4f, 0x79, 0x7c, 0xfa, 0xcc, 0x92, 0xf9,
- 0x22, 0x67, 0x16, 0xf3, 0x1f, 0xda, 0xe4, 0xbc, 0xbd, 0xa8, 0xcc, 0xfc, 0xdf, 0xc7, 0xff, 0x13,
- 0x7d, 0x72, 0x92, 0xbe, 0xa5, 0x65, 0xf2, 0x7f, 0x91, 0x01, 0x3f, 0xd3, 0xa2, 0xe7, 0xbb, 0x68,
- 0x17, 0x45, 0xd0, 0x45, 0xe0, 0x93, 0x96, 0xce, 0x5e, 0x94, 0x57, 0x14, 0x00, 0x0b, 0x14, 0xff,
- 0xdc, 0x75, 0x79, 0x31, 0x49, 0x6d, 0xcd, 0xce, 0xc0, 0x5b, 0xea, 0x67, 0x2f, 0x6d, 0xdf, 0xd9,
- 0xe2, 0x2f, 0xee, 0x5b, 0xd1, 0x8b, 0xfb, 0x56, 0xd3, 0x1d, 0x4e, 0x9c, 0x71, 0xff, 0xb1, 0x1c,
- 0x13, 0xf6, 0x94, 0x3a, 0x19, 0x89, 0xa7, 0x98, 0x04, 0x5e, 0x85, 0x95, 0x58, 0x7a, 0x38, 0x68,
- 0xb7, 0x49, 0x10, 0x20, 0xed, 0xfe, 0xc7, 0xa9, 0xa9, 0xe8, 0xe0, 0x22, 0x80, 0x78, 0x02, 0xda,
- 0xf3, 0x7d, 0x94, 0xc0, 0x25, 0x58, 0x62, 0x37, 0x62, 0x61, 0x49, 0xc3, 0x65, 0x28, 0x89, 0x8c,
- 0xdc, 0xf1, 0xdc, 0x8f, 0x7a, 0x4e, 0x3b, 0xe4, 0x2f, 0x4a, 0xfb, 0xef, 0xa3, 0x24, 0xbe, 0x07,
- 0x9b, 0x6a, 0xe2, 0x4c, 0xbf, 0xb1, 0xa4, 0xf0, 0xeb, 0x50, 0x9b, 0x07, 0xf9, 0xc0, 0xf5, 0x27,
- 0xa0, 0x34, 0xae, 0xc4, 0xc7, 0x7e, 0x7e, 0x95, 0x13, 0xcb, 0x67, 0xf0, 0x1a, 0x60, 0xf9, 0x42,
- 0x20, 0xe4, 0x59, 0xbc, 0x0e, 0xe5, 0xe8, 0xbc, 0xb8, 0x73, 0x4a, 0x26, 0x6f, 0xb0, 0x39, 0xbc,
- 0x09, 0x1b, 0x82, 0x04, 0xd2, 0x95, 0xdf, 0x0b, 0xf7, 0x2e, 0x9d, 0x20, 0x44, 0x79, 0xaa, 0xe6,
- 0x55, 0x7e, 0x9e, 0x1a, 0xb0, 0x01, 0xd5, 0x79, 0x6a, 0xfe, 0x40, 0x8e, 0x96, 0xb0, 0x09, 0xc6,
- 0x8c, 0x9e, 0xe7, 0xcb, 0xbe, 0xfb, 0xcc, 0xee, 0x39, 0x1d, 0xb4, 0x4c, 0xbf, 0x98, 0xef, 0xe6,
- 0xc8, 0x3b, 0x24, 0x6e, 0x67, 0x4e, 0x0f, 0x41, 0x05, 0xfc, 0x06, 0xdc, 0x9b, 0x05, 0x4d, 0x95,
- 0x1a, 0x54, 0xa4, 0x71, 0x8c, 0x60, 0xcd, 0x8e, 0x40, 0xa1, 0x12, 0xae, 0xc1, 0x5d, 0x2e, 0xa6,
- 0x3e, 0x98, 0xd9, 0x10, 0x42, 0xd4, 0x6d, 0x1c, 0xf0, 0x03, 0xdf, 0x09, 0x89, 0xc8, 0x76, 0xb4,
- 0x42, 0xc3, 0xcb, 0xe5, 0x87, 0xa1, 0xe7, 0x13, 0x84, 0xef, 0xff, 0x68, 0x4e, 0x0e, 0xd3, 0x9c,
- 0x62, 0xcf, 0xa9, 0xd2, 0xce, 0x51, 0x02, 0x57, 0x61, 0x6d, 0x5a, 0xca, 0x73, 0x0c, 0x69, 0xec,
- 0xe9, 0x7e, 0xa2, 0x8b, 0x3e, 0x03, 0xe9, 0xf8, 0x35, 0xa8, 0xa8, 0xf2, 0x16, 0xaf, 0x2e, 0x74,
- 0x56, 0x72, 0xfb, 0x9f, 0x3a, 0x6c, 0x48, 0xfb, 0x7e, 0xd7, 0x76, 0xed, 0x2e, 0xf1, 0x0f, 0x89,
- 0xff, 0xcc, 0x69, 0x13, 0xfc, 0x2d, 0xf1, 0x27, 0x03, 0xae, 0xc8, 0x9d, 0x5b, 0x7e, 0x2a, 0xaa,
- 0x6e, 0xcc, 0xd1, 0x88, 0xca, 0xd5, 0x82, 0xfc, 0x13, 0x12, 0x8a, 0x1b, 0xa8, 0x82, 0x53, 0x6e,
- 0x15, 0xd5, 0xea, 0x3c, 0x95, 0xb0, 0xb1, 0x17, 0x1d, 0x24, 0x78, 0xf2, 0xa9, 0x66, 0x94, 0xb3,
- 0x96, 0x6a, 0x66, 0xea, 0x58, 0xf4, 0x36, 0x64, 0xb8, 0xbb, 0x54, 0x03, 0x4a, 0x4a, 0xa8, 0x06,
- 0xa6, 0xfa, 0xf0, 0x1e, 0xe4, 0x22, 0x9f, 0xe2, 0xbb, 0xca, 0x42, 0x6a, 0xc2, 0x54, 0x5f, 0x9b,
- 0xaf, 0xe4, 0x66, 0xb6, 0x7f, 0xab, 0xc3, 0x5a, 0xd4, 0x7a, 0xa6, 0x7c, 0xdd, 0x8c, 0xd2, 0x80,
- 0xae, 0x3c, 0x70, 0x69, 0x77, 0x20, 0xb8, 0x3c, 0xa7, 0x88, 0x55, 0xe7, 0x09, 0x1b, 0xda, 0x43,
- 0x0d, 0x1f, 0x40, 0x51, 0xe5, 0x70, 0xb4, 0xd5, 0xb9, 0xcf, 0x56, 0xd1, 0x56, 0xaf, 0x79, 0xc1,
- 0xd9, 0x8b, 0x4a, 0xb8, 0xea, 0xf9, 0x39, 0x2f, 0x26, 0x91, 0xe3, 0xe6, 0x3e, 0x1b, 0x7c, 0x07,
- 0xf2, 0x93, 0x1b, 0x30, 0x56, 0x9c, 0x33, 0x7d, 0x7f, 0xaf, 0x6e, 0x5e, 0xa3, 0xe5, 0x96, 0x5a,
- 0x5f, 0x7b, 0xfe, 0xc2, 0x48, 0x7c, 0xfa, 0xc2, 0x48, 0x7c, 0xf6, 0xc2, 0xd0, 0x7e, 0x7c, 0x65,
- 0x68, 0xbf, 0xba, 0x32, 0xb4, 0x3f, 0x5e, 0x19, 0xda, 0xf3, 0x2b, 0x43, 0xfb, 0xcb, 0x95, 0xa1,
- 0xfd, 0xfd, 0xca, 0x48, 0x7c, 0x76, 0x65, 0x68, 0x3f, 0x79, 0x69, 0x24, 0x9e, 0xbf, 0x34, 0x12,
- 0x9f, 0xbe, 0x34, 0x12, 0x27, 0x19, 0x56, 0xc1, 0x1f, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x29,
- 0x5b, 0x99, 0x9e, 0x85, 0x1d, 0x00, 0x00,
- }
-
- func (x ResultCode) String() string {
- s, ok := ResultCode_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x ExceptionCode) String() string {
- s, ok := ExceptionCode_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchMessageType) String() string {
- s, ok := BranchMessageType_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x GlobalSession_GlobalStatus) String() string {
- s, ok := GlobalSession_GlobalStatus_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchSession_BranchType) String() string {
- s, ok := BranchSession_BranchType_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchSession_BranchStatus) String() string {
- s, ok := BranchSession_BranchStatus_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (this *GlobalSession) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalSession)
- if !ok {
- that2, ok := that.(GlobalSession)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.TransactionName != that1.TransactionName {
- return false
- }
- if this.Timeout != that1.Timeout {
- return false
- }
- if this.BeginTime != that1.BeginTime {
- return false
- }
- if this.Status != that1.Status {
- return false
- }
- if this.Active != that1.Active {
- return false
- }
- return true
- }
- func (this *BranchSession) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchSession)
- if !ok {
- that2, ok := that.(BranchSession)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.Type != that1.Type {
- return false
- }
- if this.Status != that1.Status {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- if this.AsyncCommit != that1.AsyncCommit {
- return false
- }
- return true
- }
- func (this *RowLock) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*RowLock)
- if !ok {
- that2, ok := that.(RowLock)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.TableName != that1.TableName {
- return false
- }
- if this.PK != that1.PK {
- return false
- }
- if this.RowKey != that1.RowKey {
- return false
- }
- return true
- }
- func (this *GlobalBeginRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalBeginRequest)
- if !ok {
- that2, ok := that.(GlobalBeginRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.Timeout != that1.Timeout {
- return false
- }
- if this.TransactionName != that1.TransactionName {
- return false
- }
- return true
- }
- func (this *GlobalBeginResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalBeginResponse)
- if !ok {
- that2, ok := that.(GlobalBeginResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *BranchRegisterRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRegisterRequest)
- if !ok {
- that2, ok := that.(BranchRegisterRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- if this.AsyncCommit != that1.AsyncCommit {
- return false
- }
- return true
- }
- func (this *BranchRegisterResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRegisterResponse)
- if !ok {
- that2, ok := that.(BranchRegisterResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- return true
- }
- func (this *BranchReportRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchReportRequest)
- if !ok {
- that2, ok := that.(BranchReportRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchReportResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchReportResponse)
- if !ok {
- that2, ok := that.(BranchReportResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- return true
- }
- func (this *GlobalLockQueryRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalLockQueryRequest)
- if !ok {
- that2, ok := that.(GlobalLockQueryRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- return true
- }
- func (this *GlobalLockQueryResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalLockQueryResponse)
- if !ok {
- that2, ok := that.(GlobalLockQueryResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.Lockable != that1.Lockable {
- return false
- }
- return true
- }
- func (this *GlobalStatusRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalStatusRequest)
- if !ok {
- that2, ok := that.(GlobalStatusRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalStatusResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalStatusResponse)
- if !ok {
- that2, ok := that.(GlobalStatusResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalCommitRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalCommitRequest)
- if !ok {
- that2, ok := that.(GlobalCommitRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalCommitResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalCommitResponse)
- if !ok {
- that2, ok := that.(GlobalCommitResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalRollbackRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalRollbackRequest)
- if !ok {
- that2, ok := that.(GlobalRollbackRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalRollbackResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalRollbackResponse)
- if !ok {
- that2, ok := that.(GlobalRollbackResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalReportRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalReportRequest)
- if !ok {
- that2, ok := that.(GlobalReportRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalReportResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalReportResponse)
- if !ok {
- that2, ok := that.(GlobalReportResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *BranchCommitRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchCommitRequest)
- if !ok {
- that2, ok := that.(BranchCommitRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchCommitResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchCommitResponse)
- if !ok {
- that2, ok := that.(BranchCommitResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- return true
- }
- func (this *BranchRollbackRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRollbackRequest)
- if !ok {
- that2, ok := that.(BranchRollbackRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchRollbackResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRollbackResponse)
- if !ok {
- that2, ok := that.(BranchRollbackResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- return true
- }
- func (this *BranchMessage) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchMessage)
- if !ok {
- that2, ok := that.(BranchMessage)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ID != that1.ID {
- return false
- }
- if this.BranchMessageType != that1.BranchMessageType {
- return false
- }
- if !this.Message.Equal(that1.Message) {
- return false
- }
- return true
- }
- func (this *GlobalSession) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 12)
- s = append(s, "&apis.GlobalSession{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
- s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
- s = append(s, "BeginTime: "+fmt.Sprintf("%#v", this.BeginTime)+",\n")
- s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
- s = append(s, "Active: "+fmt.Sprintf("%#v", this.Active)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchSession) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 14)
- s = append(s, "&apis.BranchSession{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
- s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *RowLock) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 11)
- s = append(s, "&apis.RowLock{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "TableName: "+fmt.Sprintf("%#v", this.TableName)+",\n")
- s = append(s, "PK: "+fmt.Sprintf("%#v", this.PK)+",\n")
- s = append(s, "RowKey: "+fmt.Sprintf("%#v", this.RowKey)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalBeginRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.GlobalBeginRequest{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
- s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalBeginResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalBeginResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRegisterRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 11)
- s = append(s, "&apis.BranchRegisterRequest{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRegisterResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.BranchRegisterResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchReportRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchReportRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchReportResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.BranchReportResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalLockQueryRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalLockQueryRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalLockQueryResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalLockQueryResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "Lockable: "+fmt.Sprintf("%#v", this.Lockable)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalStatusRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalStatusRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalStatusResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalStatusResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalCommitRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalCommitRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalCommitResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalCommitResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalRollbackRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalRollbackRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalRollbackResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalRollbackResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalReportRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 6)
- s = append(s, "&apis.GlobalReportRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalReportResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalReportResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchCommitRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchCommitRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchCommitResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchCommitResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRollbackRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchRollbackRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRollbackResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchRollbackResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchMessage) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.BranchMessage{")
- s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
- s = append(s, "BranchMessageType: "+fmt.Sprintf("%#v", this.BranchMessageType)+",\n")
- if this.Message != nil {
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- }
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func valueToGoStringSeata(v interface{}, typ string) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
- }
- func (m *GlobalSession) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalSession) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Active {
- i--
- if m.Active {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.Status != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Status))
- i--
- dAtA[i] = 0x38
- }
- if m.BeginTime != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BeginTime))
- i--
- dAtA[i] = 0x30
- }
- if m.Timeout != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
- i--
- dAtA[i] = 0x28
- }
- if len(m.TransactionName) > 0 {
- i -= len(m.TransactionName)
- copy(dAtA[i:], m.TransactionName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
- i--
- dAtA[i] = 0x22
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x18
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchSession) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchSession) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.AsyncCommit {
- i--
- if m.AsyncCommit {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x4a
- }
- if m.Status != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Status))
- i--
- dAtA[i] = 0x40
- }
- if m.Type != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Type))
- i--
- dAtA[i] = 0x38
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x2a
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x20
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x18
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *RowLock) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *RowLock) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *RowLock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.RowKey) > 0 {
- i -= len(m.RowKey)
- copy(dAtA[i:], m.RowKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.RowKey)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.PK) > 0 {
- i -= len(m.PK)
- copy(dAtA[i:], m.PK)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.PK)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.TableName) > 0 {
- i -= len(m.TableName)
- copy(dAtA[i:], m.TableName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TableName)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x22
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x18
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalBeginRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalBeginRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalBeginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.TransactionName) > 0 {
- i -= len(m.TransactionName)
- copy(dAtA[i:], m.TransactionName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
- i--
- dAtA[i] = 0x1a
- }
- if m.Timeout != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
- i--
- dAtA[i] = 0x10
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalBeginResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalBeginResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalBeginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRegisterRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRegisterRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.AsyncCommit {
- i--
- if m.AsyncCommit {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRegisterResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRegisterResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchReportRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchReportRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x28
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x20
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchReportResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchReportResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalLockQueryRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalLockQueryRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalLockQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x20
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalLockQueryResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalLockQueryResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalLockQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Lockable {
- i--
- if m.Lockable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalStatusRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalStatusRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalStatusResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalStatusResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalCommitRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalCommitRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalCommitResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalCommitResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalRollbackRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalRollbackResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalReportRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalReportRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalReportResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalReportResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchCommitRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchCommitRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchCommitResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchCommitResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x30
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x28
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRollbackRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRollbackResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x30
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x28
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchMessage) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchMessage) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Message != nil {
- {
- size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintSeata(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchMessageType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchMessageType))
- i--
- dAtA[i] = 0x10
- }
- if m.ID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ID))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func encodeVarintSeata(dAtA []byte, offset int, v uint64) int {
- offset -= sovSeata(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
- }
- func (m *GlobalSession) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- l = len(m.TransactionName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Timeout != 0 {
- n += 1 + sovSeata(uint64(m.Timeout))
- }
- if m.BeginTime != 0 {
- n += 1 + sovSeata(uint64(m.BeginTime))
- }
- if m.Status != 0 {
- n += 1 + sovSeata(uint64(m.Status))
- }
- if m.Active {
- n += 2
- }
- return n
- }
-
- func (m *BranchSession) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Type != 0 {
- n += 1 + sovSeata(uint64(m.Type))
- }
- if m.Status != 0 {
- n += 1 + sovSeata(uint64(m.Status))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.AsyncCommit {
- n += 2
- }
- return n
- }
-
- func (m *RowLock) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.TableName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.PK)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.RowKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalBeginRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Timeout != 0 {
- n += 1 + sovSeata(uint64(m.Timeout))
- }
- l = len(m.TransactionName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalBeginResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchRegisterRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.AsyncCommit {
- n += 2
- }
- return n
- }
-
- func (m *BranchRegisterResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- return n
- }
-
- func (m *BranchReportRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchReportResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalLockQueryRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- return n
- }
-
- func (m *GlobalLockQueryResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Lockable {
- n += 2
- }
- return n
- }
-
- func (m *GlobalStatusRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalStatusResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalCommitRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalCommitResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalRollbackRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalRollbackResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalReportRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalReportResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *BranchCommitRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchCommitResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- return n
- }
-
- func (m *BranchRollbackRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchRollbackResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- return n
- }
-
- func (m *BranchMessage) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovSeata(uint64(m.ID))
- }
- if m.BranchMessageType != 0 {
- n += 1 + sovSeata(uint64(m.BranchMessageType))
- }
- if m.Message != nil {
- l = m.Message.Size()
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func sovSeata(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
- }
- func sozSeata(x uint64) (n int) {
- return sovSeata(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (this *GlobalSession) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalSession{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
- `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
- `BeginTime:` + fmt.Sprintf("%v", this.BeginTime) + `,`,
- `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
- `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchSession) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchSession{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
- `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *RowLock) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&RowLock{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `TableName:` + fmt.Sprintf("%v", this.TableName) + `,`,
- `PK:` + fmt.Sprintf("%v", this.PK) + `,`,
- `RowKey:` + fmt.Sprintf("%v", this.RowKey) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalBeginRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalBeginRequest{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
- `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalBeginResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalBeginResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRegisterRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRegisterRequest{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRegisterResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRegisterResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchReportRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchReportRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchReportResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchReportResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalLockQueryRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalLockQueryRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalLockQueryResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalLockQueryResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `Lockable:` + fmt.Sprintf("%v", this.Lockable) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalStatusRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalStatusRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalStatusResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalStatusResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalCommitRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalCommitRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalCommitResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalCommitResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalRollbackRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalRollbackRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalRollbackResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalRollbackResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalReportRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalReportRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalReportResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalReportResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchCommitRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchCommitRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchCommitResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchCommitResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRollbackRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRollbackRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRollbackResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRollbackResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchMessage) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchMessage{`,
- `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
- `BranchMessageType:` + fmt.Sprintf("%v", this.BranchMessageType) + `,`,
- `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Any", "types.Any", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func valueToStringSeata(v interface{}) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("*%v", pv)
- }
- func (m *GlobalSession) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalSession: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalSession: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TransactionName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
- }
- m.Timeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Timeout |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BeginTime", wireType)
- }
- m.BeginTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BeginTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- m.Status = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Status |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Active = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchSession) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchSession: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchSession: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- m.Status = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Status |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AsyncCommit = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RowLock) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RowLock: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RowLock: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TableName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PK", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PK = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RowKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RowKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalBeginRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalBeginRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalBeginRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
- }
- m.Timeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Timeout |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TransactionName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalBeginResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalBeginResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalBeginResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRegisterRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRegisterRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AsyncCommit = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRegisterResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRegisterResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchReportRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchReportRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchReportResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchReportResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalLockQueryRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalLockQueryRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalLockQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalLockQueryResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalLockQueryResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalLockQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Lockable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Lockable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalStatusRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalStatusRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalStatusResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalStatusResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalCommitRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalCommitRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalCommitResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalCommitResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalRollbackRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalRollbackRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalRollbackResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalRollbackResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalReportRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalReportRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalReportResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalReportResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchCommitRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchCommitRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchCommitResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchCommitResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRollbackRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRollbackRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRollbackResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRollbackResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchMessage) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchMessage: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchMessage: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
- }
- m.ID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchMessageType", wireType)
- }
- m.BranchMessageType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchMessageType |= BranchMessageType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Message == nil {
- m.Message = &types.Any{}
- }
- if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipSeata(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthSeata
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupSeata
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthSeata
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
- }
-
- var (
- ErrInvalidLengthSeata = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowSeata = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupSeata = fmt.Errorf("proto: unexpected end of group")
- )
|